  :root {
    --navy: #0B1A3D;
    --navy-deep: #071230;
    --navy-mid: #14275A;
    --cyan: #2FE0D0;
    --cyan-soft: #8FF0E6;
    --off-white: #F7F9FC;
    --slate: #5A6B8C;
    --slate-light: #9AA8C4;
    --line: rgba(255,255,255,0.08);
    --line-dark: rgba(11,26,61,0.1);
    --radius: 2px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--off-white);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .eyebrow::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--cyan);
  }

  a { color: inherit; text-decoration: none; }

  .wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ===== NAV ===== */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,249,252,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-dark);
  }

  nav {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand img { height: 34px; width: auto; display: block; }

  .navlinks {
    display: flex;
    gap: 36px;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .navlinks a {
    position: relative;
    padding: 4px 0;
    color: var(--navy-mid);
    transition: color 0.2s ease;
  }
  .navlinks a:hover { color: var(--navy); }
  .navlinks a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--cyan);
    transition: width 0.25s ease;
  }
  .navlinks a:hover::after { width: 100%; }

  .nav-cta {
    background: var(--navy);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--navy);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-cta:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-deep); }

  .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .menu-toggle span {
    width: 22px; height: 1.5px;
    background: var(--navy);
  }

  @media (max-width: 860px) {
    .navlinks {
      position: absolute;
      top: 100%; left: 0; right: 0;
      background: var(--off-white);
      flex-direction: column;
      gap: 0;
      border-bottom: 1px solid var(--line-dark);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .navlinks.open { max-height: 260px; }
    .navlinks a { padding: 16px 32px; width: 100%; border-top: 1px solid var(--line-dark); }
    .menu-toggle { display: flex; }
  }

  /* ===== TRACE SPINE ===== */
  .spine {
    position: fixed;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  .spine svg { width: 100%; height: 100%; }
  .spine-path {
    stroke: var(--cyan);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.35;
    stroke-dasharray: 8 6;
  }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    padding: 100px 32px 90px;
    overflow: hidden;
  }

  .hero-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.5vw, 3.6rem);
    line-height: 1.08;
    margin: 18px 0 22px;
  }
  .hero h1 .split {
    color: var(--slate);
  }

  .hero p.lede {
    font-size: 1.08rem;
    color: var(--slate);
    max-width: 460px;
    margin-bottom: 34px;
  }

  .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
  }
  .btn-primary {
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
  }
  .btn-primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-deep); }
  .btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line-dark);
  }
  .btn-ghost:hover { border-color: var(--navy); }

  /* hero visual: solid block -> circuit, echoing the logo split */
  .hero-visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
    background: var(--navy-deep);
    border-radius: 4px;
    overflow: hidden;
  }
  .hero-visual .solid-half {
    position: absolute;
    left: 0; top: 0;
    width: 46%; height: 100%;
    background: linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  }
  .hero-visual svg.circuit {
    position: absolute;
    right: 0; top: 0;
    width: 60%; height: 100%;
  }
  .hero-visual .chip {
    position: absolute;
    left: 8%;
    top: 40%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--cyan-soft);
    letter-spacing: 0.08em;
    line-height: 1.9;
    opacity: 0.85;
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
  }

  /* ===== SECTION SHELL ===== */
  section { position: relative; padding: 90px 32px; }
  .section-head { max-width: 620px; margin-bottom: 56px; }
  .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; }
  .section-head p { color: var(--slate); margin-top: 14px; font-size: 1.02rem; }

  /* ===== SERVICES ===== */
  .services { background: #fff; }
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
  }
  .service-card {
    display: block;
    background: #fff;
    padding: 34px 30px;
    position: relative;
    transition: background 0.25s ease;
  }
  .service-card:hover { background: var(--off-white); }
  .service-card h3 { transition: color 0.2s ease; }
  .service-card:hover h3 { color: var(--navy-mid); }
  .service-card .node {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    margin-bottom: 20px;
    box-shadow: 0 0 0 4px rgba(47,224,208,0.14);
  }
  .service-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }
  .service-card p {
    font-size: 0.92rem;
    color: var(--slate);
  }

  .service-card:last-child { grid-column: 1 / -1; }

  @media (max-width: 780px) {
    .service-grid { grid-template-columns: 1fr; }
  }

  /* ===== HARDWARE ===== */
  .hardware {
    background: var(--navy-deep);
    color: #fff;
  }
  .hardware .eyebrow { color: var(--cyan); }
  .hardware .section-head h2 { color: #fff; }
  .hardware .section-head p { color: var(--slate-light); }

  .hw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .hw-card {
    border: 1px solid rgba(255,255,255,0.12);
    padding: 28px 22px;
    border-radius: 2px;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .hw-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
  .hw-card .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .hw-card h3 { font-size: 1.02rem; font-weight: 500; margin-bottom: 6px; color: #fff; }
  .hw-card p { font-size: 0.85rem; color: var(--slate-light); }

  @media (max-width: 900px) {
    .hw-grid { grid-template-columns: repeat(2, 1fr); }
  }

  .hw-cta { margin-top: 44px; }

  /* ===== WORK / CASE STUDIES ===== */
  .work { background: var(--off-white); }
  .work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .work-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line-dark);
    padding: 28px 22px;
    border-radius: 2px;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .work-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
  .work-card .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .work-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
  .work-card p { font-size: 0.88rem; color: var(--slate); }

  @media (max-width: 780px) {
    .work-grid { grid-template-columns: 1fr; }
  }

  /* ===== ABOUT ===== */
  .about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
  }
  .about-stat {
    padding: 22px 0;
    border-top: 1px solid var(--line-dark);
  }
  .about-stat:first-child { border-top: none; }
  .about-stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy);
  }
  .about-stat .label { color: var(--slate); font-size: 0.9rem; margin-top: 2px; }

  .about-copy p { color: var(--slate); margin-bottom: 18px; font-size: 1.02rem; max-width: 560px; }

  @media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  }

  /* ===== CONTACT ===== */
  .contact {
    background: #fff;
    border-top: 1px solid var(--line-dark);
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .contact-cards { display: flex; flex-direction: column; gap: 18px; }
  .contact-card {
    border: 1px solid var(--line-dark);
    padding: 24px;
    border-radius: 2px;
  }
  .contact-card .eyebrow { margin-bottom: 10px; }
  .contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .contact-card p { color: var(--slate); font-size: 0.92rem; }

  form { display: flex; flex-direction: column; gap: 16px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .field input, .field select, .field textarea {
    border: 1px solid var(--line-dark);
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 2px;
    background: var(--off-white);
    color: var(--navy);
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
  }
  .field textarea { resize: vertical; min-height: 100px; }

  .form-status {
    font-size: 0.88rem;
    padding: 10px 0;
    display: none;
  }
  .form-status.ok { display: block; color: var(--navy); }
  .form-status.err { display: block; color: #B3261E; }

  /* ===== DETAIL PAGES (services, case studies) ===== */
  .breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--slate);
    padding: 26px 32px 0;
    max-width: 1160px;
    margin: 0 auto;
  }
  .breadcrumb a:hover { color: var(--cyan); }

  .detail-hero { padding: 40px 32px 70px; }
  .detail-hero .eyebrow { margin-bottom: 4px; }
  .detail-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 18px 0 20px; max-width: 760px; }
  .detail-hero p.lede { font-size: 1.05rem; color: var(--slate); max-width: 620px; margin-bottom: 30px; }

  .detail-body { background: #fff; }
  .detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .detail-copy h2 { font-size: 1.4rem; margin: 34px 0 14px; }
  .detail-copy h2:first-child { margin-top: 0; }
  .detail-copy p { color: var(--slate); margin-bottom: 16px; max-width: 640px; }

  .checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
  .checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--navy-mid); }
  .checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 8px; height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(47,224,208,0.14);
  }

  .detail-sidebar .contact-card { margin-bottom: 18px; }

  @media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
  }

  /* ===== CASE STUDIES ===== */
  .case-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
  .case-item { background: #fff; padding: 40px; scroll-margin-top: 90px; }
  .case-item .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .case-item h3 { font-size: 1.3rem; margin-bottom: 14px; }
  .case-item p { color: var(--slate); max-width: 720px; margin-bottom: 10px; }
  .case-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
  .case-meta div { font-size: 0.85rem; }
  .case-meta .num { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--navy); display: block; font-size: 1.2rem; }
  .case-meta .label2 { color: var(--slate); }

  /* ===== SMALL SCREENS ===== */
  @media (max-width: 480px) {
    .wrap { padding: 0 20px; }
    nav { padding: 16px 20px; }
    .hero { padding: 70px 20px 60px; }
    section { padding: 60px 20px; }
    .detail-hero { padding: 30px 20px 50px; }
    .breadcrumb { padding: 20px 20px 0; }
    .case-item { padding: 26px 22px; }
    .hw-grid { grid-template-columns: 1fr; }
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--navy-deep);
    color: var(--slate-light);
    padding: 50px 32px 30px;
  }
  .footer-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
  }
  .footer-brand { display: flex; align-items: center; gap: 10px; }
  .footer-brand img { height: 26px; }
  footer .fine { font-size: 0.82rem; }
  footer .foot-links { display: flex; gap: 24px; font-size: 0.85rem; }
  footer .foot-links a:hover { color: var(--cyan); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
