:root {
    --abyss: #00141F;
    --navy: #002132;
    --navy-2: #00293D;
    --cyan: #21DAE8;
    --cyan-soft: rgba(33, 218, 232, 0.14);
    --teal: #0E7A72;
    --light: #F3F6F7;
    --white: #FFFFFF;
    --ink: #002132;
    --muted: #4B5E6A;
    --muted-dark: rgba(255, 255, 255, 0.66);
    --line: rgba(0, 33, 50, 0.12);
    --line-dark: rgba(255, 255, 255, 0.1);
    --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --wrap: 1200px;
    --gutter: clamp(20px, 5vw, 56px);
    --ease: cubic-bezier(.2, .7, .2, 1);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--abyss);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }
  p { margin: 0 0 1.1em; }
  h1, h2, h3 { font-weight: 500; margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
  ::selection { background: var(--cyan); color: var(--navy); }

  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 22px;
  }
  .eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 0 4px rgba(14, 122, 114, 0.15);
  }
  .dark .eyebrow { color: var(--cyan); }
  .dark .eyebrow::before { box-shadow: 0 0 12px var(--cyan); }

  .section { padding: clamp(84px, 11vw, 140px) 0; position: relative; overflow: hidden; }
  .light { background: var(--light); color: var(--ink); }
  .dark { background: var(--navy); color: var(--white); }
  .section-head { max-width: 800px; margin-bottom: clamp(44px, 6vw, 72px); }
  .section-head h2 { font-size: clamp(30px, 4.2vw, 50px); }
  .lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); margin-top: 22px; max-width: 660px; }
  .dark .lede { color: var(--muted-dark); }
  .hl { color: var(--teal); }
  .dark .hl { color: var(--cyan); }

  /* Grid texture for dark sections */
  .grid-bg::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(33, 218, 232, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(33, 218, 232, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  }

  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); color: var(--ink); padding: 8px 14px; }

  /* Header */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    transition: background .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
  }
  .site-header.scrolled {
    background: rgba(0, 20, 31, 0.82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom-color: var(--line-dark);
  }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
  .brand img { width: 136px; }
  .nav { display: flex; gap: 32px; align-items: center; }
  .nav a {
    text-decoration: none; font-size: 13.5px; font-weight: 400;
    color: rgba(255, 255, 255, 0.72); transition: color .2s ease;
  }
  .nav a:hover { color: var(--white); }
  .nav .nav-contact {
    color: var(--cyan); border: 1px solid rgba(33, 218, 232, 0.4);
    padding: 8px 16px; border-radius: 999px;
    transition: background .2s ease, color .2s ease;
  }
  .nav .nav-contact:hover { background: var(--cyan); color: var(--navy); }

  /* Hero */
  .hero {
    position: relative; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    background:
      radial-gradient(ellipse 60% 70% at 78% 40%, rgba(33, 218, 232, 0.10), transparent 70%),
      linear-gradient(180deg, var(--abyss) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 140px 0 0;
  }
  .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 20, 31, 0.92) 0%, rgba(0, 20, 31, 0.55) 45%, rgba(0, 20, 31, 0) 75%);
  }
  .hero .wrap { z-index: 2; width: 100%; }
  .hero h1 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 500;
    max-width: 13.5em;
    line-height: 1.06;
    letter-spacing: -0.03em;
  }
  .hero h1 .hl { color: var(--cyan); }
  .hero-sub { margin-top: 30px; max-width: 540px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted-dark); }
  .hero-sub strong { font-weight: 500; color: var(--white); }
  .hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

  .btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 15px 24px; border-radius: 999px;
    font-family: var(--sans); font-size: 14.5px; font-weight: 500;
    text-decoration: none; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease;
  }
  .btn .arrow { transition: transform .25s var(--ease); }
  .btn:hover .arrow { transform: translateX(4px); }
  .btn-cyan { background: var(--cyan); color: var(--navy); }
  .btn-cyan:hover { box-shadow: 0 0 0 6px rgba(33, 218, 232, 0.18), 0 10px 40px rgba(33, 218, 232, 0.35); }
  .btn-ink { background: var(--navy); color: var(--white); }
  .btn-ink:hover { background: var(--abyss); box-shadow: 0 10px 30px rgba(0, 33, 50, 0.25); }

  .hero-rail {
    position: relative; z-index: 2;
    margin-top: clamp(64px, 10vh, 110px);
    border-top: 1px solid var(--line-dark);
    background: rgba(0, 20, 31, 0.5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .hero-rail .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
  .rail-link {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 24px 0; text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color .2s ease;
  }
  .rail-link + .rail-link { padding-left: 28px; border-left: 1px solid var(--line-dark); }
  .rail-link:not(:last-child) { padding-right: 28px; }
  .rail-link span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); display: block; margin-bottom: 4px; }
  .rail-link strong { font-weight: 500; font-size: 15px; }
  .rail-link:hover { color: var(--white); }
  .rail-link .arrow { color: var(--cyan); transition: transform .25s var(--ease); }
  .rail-link:hover .arrow { transform: translateX(4px); }

  /* Doors */
  .doors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .door {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 32px 34px;
    transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
  }
  .door:hover { transform: translateY(-6px); border-color: rgba(14, 122, 114, 0.45); box-shadow: 0 24px 60px -24px rgba(0, 33, 50, 0.35); }
  .door-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
  .door-index { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .door-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
  .door h3 { font-size: clamp(24px, 2.2vw, 28px); margin-bottom: 6px; }
  .door-brand { font-size: 14px; font-weight: 500; color: var(--teal); margin-bottom: 20px; }
  .door p.desc { color: var(--muted); flex: 1; margin-bottom: 30px; font-size: 15px; }
  .door .btn { align-self: flex-start; }
  .powered {
    margin-top: 20px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
    background: var(--navy); color: var(--white);
    border-radius: 18px; padding: 24px 32px;
  }
  .powered .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 2px; }
  .powered .v { font-weight: 500; font-size: 18px; margin: 0; }
  .powered .d { margin: 0; color: var(--muted-dark); font-size: 14.5px; max-width: 520px; }

  /* Problem */
  .problem { background: linear-gradient(180deg, var(--navy) 0%, var(--abyss) 100%); }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .stat {
    position: relative;
    padding: 32px 28px 30px;
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(33, 218, 232, 0.05), rgba(33, 218, 232, 0));
  }
  .stat-num {
    display: block;
    font-weight: 500;
    font-size: clamp(48px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.03em;
    color: var(--cyan);
    text-shadow: 0 0 40px rgba(33, 218, 232, 0.35);
    margin-bottom: 18px;
    font-variant-numeric: tabular-nums;
  }
  .stat p { margin: 0; color: var(--muted-dark); font-size: 15px; max-width: 290px; }
  .problem-org {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 6vw, 88px);
    margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px);
    border-top: 1px solid var(--line-dark);
  }
  .problem-org h3 { font-size: clamp(22px, 2.3vw, 28px); }
  .problem-org p { color: var(--muted-dark); }
  .problem-org .closer { color: var(--white); font-weight: 400; margin-bottom: 0; }
  .impact-case { margin-top: clamp(56px, 7vw, 88px); }
  .impact-case h3 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 28px; }
  .stats-2 { grid-template-columns: 1fr 1fr 1.2fr; }
  .stats-2 .note { border: 0; background: none; padding: 32px 0 0; color: var(--muted-dark); font-size: 15px; }
  .sources { margin-top: 44px; font-size: 12.5px; color: rgba(255, 255, 255, 0.48); font-family: var(--mono); letter-spacing: 0.01em; line-height: 1.7; }

  /* Technology */
  .tech-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
  .tech-copy h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 26px; }
  .tech-copy p { color: var(--muted); }
  .tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; padding: 0; list-style: none; }
  .tags li {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12.5px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
  }
  .tags li i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  .t-vis i { background: var(--navy); }
  .t-hid i { background: var(--cyan); box-shadow: 0 0 0 3px rgba(33, 218, 232, 0.25); }
  .t-bli i { background: transparent; border: 1.5px dashed var(--teal); }
  .engines { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .engines li { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--white); }
  .engines strong { display: block; font-weight: 500; font-size: 15px; }
  .engines span { font-size: 13.5px; color: var(--muted); }
  .thesis { color: var(--ink) !important; font-weight: 400; }

  .proof {
    background: var(--navy); color: var(--white);
    border-radius: 22px; padding: clamp(28px, 3.4vw, 44px);
    position: relative; overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 33, 50, 0.6);
  }
  .proof::before {
    content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -140px;
    background: radial-gradient(circle, rgba(33, 218, 232, 0.22), transparent 65%); pointer-events: none;
  }
  .proof .eyebrow { color: var(--cyan); margin-bottom: 12px; }
  .proof .eyebrow::before { box-shadow: 0 0 12px var(--cyan); }
  .proof-intro { color: var(--muted-dark); font-size: 14.5px; margin-bottom: 24px; max-width: 460px; }
  .toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); margin-bottom: 22px; }
  .toggle button {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
    background: none; border: 0; color: var(--muted-dark);
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
    transition: background .25s ease, color .25s ease;
  }
  .toggle button[aria-pressed="true"] { background: var(--cyan); color: var(--navy); }
  .dots { display: grid; grid-template-columns: repeat(18, 1fr); gap: 7px; margin-bottom: 14px; }
  .dot {
    aspect-ratio: 1; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background .5s ease, box-shadow .5s ease, transform .5s var(--ease);
  }
  .dot.on { background: var(--white); }
  .dot.hid { background: var(--cyan); box-shadow: 0 0 10px rgba(33, 218, 232, 0.8); transform: scale(1.08); }
  .dots-caption { font-family: var(--mono); font-size: 12.5px; color: var(--muted-dark); min-height: 2.6em; margin-bottom: 18px; }
  .dots-caption b { color: var(--cyan); font-weight: 500; }
  .proof-list { list-style: none; margin: 0; padding: 0; }
  .proof-list li {
    display: grid; grid-template-columns: 5.2em 1fr; gap: 18px; align-items: baseline;
    padding: 15px 0; border-top: 1px solid var(--line-dark);
  }
  .proof-num { font-size: 32px; font-weight: 500; line-height: 1; color: var(--cyan); white-space: nowrap; letter-spacing: -0.02em; }
  .proof-list p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
  .proof-foot { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 14.5px; color: var(--white); font-weight: 400; }

  /* Founder */
  .founder { background: var(--white); }
  .founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .portrait-wrap { position: relative; }
  .portrait {
    position: relative; border-radius: 22px; overflow: hidden;
    background: #EEF1F2; aspect-ratio: 4 / 5;
  }
  .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
  .portrait-tag {
    position: absolute; left: 20px; bottom: 20px; right: 20px;
    background: rgba(0, 33, 50, 0.86);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--white); border-radius: 14px; padding: 14px 18px;
  }
  .portrait-tag strong { display: block; font-weight: 500; font-size: 16px; }
  .portrait-tag span { font-size: 13px; color: var(--muted-dark); }
  .founder-copy h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 26px; }
  .founder-copy p { color: var(--muted); }
  .rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
  .room { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--light); }
  .room .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
  .room p { margin: 0; color: var(--ink); font-size: 15px; font-weight: 400; }
  .creds { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .creds li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
  .founder-copy .signature {
    margin-top: 34px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  }
  .founder-copy .signature span { color: var(--teal); }

  /* Closing */
  .closing {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(33, 218, 232, 0.12), transparent 70%), var(--abyss);
    color: var(--white);
    padding: clamp(100px, 13vw, 160px) 0 0;
  }
  .closing canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
  .closing .wrap { z-index: 2; }
  .closing-inner { text-align: center; max-width: 820px; margin: 0 auto; }
  .closing h2 { font-size: clamp(34px, 5vw, 62px); letter-spacing: -0.03em; }
  .closing h2 .hl { color: var(--cyan); }
  .closing-text { margin: 24px auto 0; max-width: 560px; color: var(--muted-dark); font-size: clamp(16px, 1.5vw, 18px); }
  .email {
    display: inline-flex; align-items: center; gap: 14px;
    margin-top: 40px;
    font-size: clamp(20px, 3vw, 32px); font-weight: 500;
    color: var(--navy); background: var(--cyan);
    text-decoration: none;
    padding: 16px 30px; border-radius: 999px;
    word-break: break-word;
    transition: box-shadow .25s ease;
  }
  .email:hover { box-shadow: 0 0 0 8px rgba(33, 218, 232, 0.18), 0 16px 60px rgba(33, 218, 232, 0.4); }
  .footer {
    margin-top: clamp(96px, 12vw, 150px);
    border-top: 1px solid var(--line-dark);
    padding: 44px 0 52px;
    display: grid; grid-template-columns: auto 1fr; gap: 32px 72px; align-items: start;
  }
  .footer img { width: 128px; }
  .footer-statement { color: var(--muted-dark); font-size: 14px; max-width: 680px; margin: 0 0 16px; }
  .footer-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin: 0; }
  .footer-meta a { text-decoration: none; color: rgba(255, 255, 255, 0.78); }
  .footer-meta a:hover { color: var(--cyan); }

  /* Reveal (only when JS is running) */
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .1s; }
  .js .reveal.d2 { transition-delay: .2s; }
  .js .reveal.d3 { transition-delay: .3s; }

  /* Responsive */
  @media (max-width: 960px) {
    .nav a:not(.nav-contact) { display: none; }
    .doors-grid, .stats, .stats-2 { grid-template-columns: 1fr; }
    .stats-2 .note { padding-top: 8px; }
    .problem-org, .tech-grid, .founder-grid { grid-template-columns: 1fr; }
    .portrait-wrap { max-width: 460px; }
    .footer { grid-template-columns: 1fr; }
    .hero-rail .wrap { grid-template-columns: 1fr; }
    .rail-link, .rail-link + .rail-link, .rail-link:not(:last-child) { padding: 16px 0; border-left: 0; }
    .rail-link + .rail-link { border-top: 1px solid var(--line-dark); }
    .hero::after { background: linear-gradient(180deg, rgba(0, 20, 31, 0.3) 0%, rgba(0, 20, 31, 0.85) 60%); }
  }
  @media (max-width: 560px) {
    .site-header .wrap { height: 72px; }
    .brand img { width: 112px; }
    .engines, .rooms, .creds { grid-template-columns: 1fr; }
    .dots { grid-template-columns: repeat(9, 1fr); gap: 8px; }
    .btn { white-space: normal; }
    .door { padding: 30px 24px; }
    .powered { padding: 22px 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
  }

/* ===== Inner pages (V2) ===== */
.nav a[aria-current="page"] { color: var(--cyan); }
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(33, 218, 232, 0.10), transparent 70%),
    linear-gradient(180deg, var(--abyss) 0%, var(--navy) 100%);
  color: var(--white);
  padding: clamp(150px, 18vw, 210px) 0 clamp(84px, 10vw, 130px);
}
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 20, 31, 0.94) 0%, rgba(0, 20, 31, 0.6) 50%, rgba(0, 20, 31, 0.1) 85%);
}
.page-hero .wrap { z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 66px); max-width: 15em; line-height: 1.08; letter-spacing: -0.03em; }
.page-hero h1 .hl { color: var(--cyan); }
.page-hero .hero-sub { max-width: 660px; }
.page-hero.quiet { padding-bottom: clamp(64px, 8vw, 100px); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Placeholder marker: visible until real copy replaces it */
.ph {
  border: 1.5px dashed rgba(14, 122, 114, 0.55); border-radius: 14px;
  padding: 16px 18px; margin: 0;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: var(--teal); background: rgba(14, 122, 114, 0.05);
}
.dark .ph, .offer .ph, .closing .ph { border-color: rgba(33, 218, 232, 0.55); color: var(--cyan); background: rgba(33, 218, 232, 0.06); }
.ph-inline { font-family: var(--mono); color: var(--cyan); background: rgba(33, 218, 232, 0.1); padding: 1px 8px; border-radius: 6px; font-size: 0.85em; white-space: nowrap; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(14, 122, 114, 0.4); box-shadow: 0 24px 60px -28px rgba(0, 33, 50, 0.35); }
.card .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin: 0 0 16px; }
.card h3 { font-size: clamp(20px, 1.8vw, 23px); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .ph { margin-top: 8px; }
.card.feature { background: var(--navy); color: var(--white); border-color: var(--navy); grid-column: 1 / -1; }
.card.feature .k { color: var(--cyan); }
.card.feature p { color: var(--muted-dark); max-width: 760px; }
.card.feature strong { color: var(--white); font-weight: 500; }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); display: flex; flex-direction: column; }
.step.now { border-color: rgba(14, 122, 114, 0.55); box-shadow: 0 0 0 4px rgba(14, 122, 114, 0.08); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 26px; display: flex; align-items: center; gap: 10px; }
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 18px; }
.status { align-self: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; background: var(--light); color: var(--muted); border: 1px solid var(--line); }
.step.now .status { background: var(--navy); color: var(--cyan); border-color: var(--navy); }
.quiet-door { margin-top: 34px; font-size: 15px; color: var(--muted); }
.quiet-door a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(14, 122, 114, 0.35); }
.quiet-door a:hover { border-color: var(--teal); }

/* Offer */
.offer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 72px);
  background: var(--navy); color: var(--white);
  border-radius: 26px; padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 40px 90px -40px rgba(0, 33, 50, 0.6);
}
.offer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; background: radial-gradient(circle, rgba(33, 218, 232, 0.2), transparent 65%); pointer-events: none; }
.offer .eyebrow { color: var(--cyan); }
.offer .eyebrow::before { box-shadow: 0 0 12px var(--cyan); }
.offer h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 26px; }
.offer h2 .hl { color: var(--cyan); }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.84); font-size: 15px; }
.offer-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(33, 218, 232, 0.8); }
.offer-side { position: relative; align-self: start; border: 1px solid var(--line-dark); border-radius: 20px; padding: 28px; background: rgba(0, 20, 31, 0.45); }
.offer-side .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
.price { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.3; margin: 0 0 22px; }
.offer-facts { list-style: none; margin: 0 0 26px; padding: 0; }
.offer-facts li { padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.offer-side .btn { width: 100%; justify-content: center; }

/* Two-column prose */
.prose-2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose-2 h2 { font-size: clamp(28px, 3.6vw, 44px); }
.prose-2 p { color: var(--muted); font-size: 16.5px; }
.prose-2 .strong { color: var(--ink); font-weight: 400; }
.stack { display: grid; gap: 14px; }
.faq-q { font-weight: 500; color: var(--ink); margin: 0 0 6px; }

/* Home V2 additions */
.problem-org + .problem-org { margin-top: clamp(40px, 5vw, 56px); }
.problem-org .lead-line { color: var(--white); font-size: clamp(17px, 1.6vw, 19px); font-weight: 400; margin: 0; }
.promise { margin: 6px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink) !important; font-weight: 400; font-size: 15px; }

/* Footer disclaimer */
.disclaimer { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); margin: 14px 0 0; max-width: 680px; }

@media (max-width: 960px) {
  .cards-2, .cards-4, .journey, .offer, .prose-2 { grid-template-columns: 1fr; }
}
h2.ph, .section-head h2.ph { font-size: 14px; letter-spacing: 0; display: inline-block; }
.engines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .engines { grid-template-columns: 1fr; } }

/* ===== Career page (landing copy) ===== */
.book-strip { background: var(--abyss); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); color: var(--muted-dark); }
.book-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.book-strip p { margin: 0; font-size: 14.5px; }
.book-strip em { color: var(--white); font-style: italic; }
.book-strip a { color: var(--cyan); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.vtag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 500; white-space: nowrap; vertical-align: middle; }
.tag-explicit { background: var(--navy); color: var(--white); }
.tag-inferred { background: rgba(14, 122, 114, 0.12); color: var(--teal); }
.tag-blind { background: rgba(33, 218, 232, 0.16); color: #0B7F88; }
.dark .tag-blind, .demo .tag-blind { color: var(--cyan); }
.dark .tag-inferred, .demo .tag-inferred { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.card.sit .vtag { align-self: flex-start; margin-bottom: 18px; }
.card.sit .arch { font-family: var(--mono); font-size: 12.5px; color: var(--teal); margin: 0 0 10px; }
.card.sit h3 { font-size: clamp(20px, 1.9vw, 24px); }
.card.sit > p:not(.arch) { flex: 1; }
.sit-cta { margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--teal); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.sit-cta:hover .arrow { transform: translateX(4px); }
.price-now { font-size: clamp(48px, 5vw, 64px); font-weight: 500; line-height: 1; color: var(--cyan); margin: 0 0 6px; letter-spacing: -0.03em; text-shadow: 0 0 40px rgba(33, 218, 232, 0.35); }
.price-was { font-family: var(--mono); font-size: 13px; color: var(--muted-dark); margin: 0 0 22px; }
.assure { margin-top: 20px; }
.demo { border: 1px solid var(--line-dark); border-radius: 22px; background: rgba(0, 20, 31, 0.45); padding: clamp(10px, 2vw, 18px) clamp(22px, 3vw, 40px); }
.demo-row { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.demo-row:first-child { border-top: 0; }
.demo-row .before { margin: 0; color: var(--muted-dark); font-size: 15.5px; }
.demo-row .after { margin: 0; color: var(--white); font-size: 16.5px; font-weight: 400; }
.demo-row .vtag { margin-left: 6px; }
.demo-arrow { color: var(--cyan); font-size: 20px; }
.x-list, .tick-list { list-style: none; margin: 0; padding: 0; }
.x-list li, .tick-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.x-list li:first-child, .tick-list li:first-child { border-top: 0; }
.x-list li::before { content: "\2715"; position: absolute; left: 2px; top: 12px; font-size: 13px; color: #B9897E; }
.tick-list li { color: rgba(255, 255, 255, 0.86); border-top-color: var(--line-dark); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(33, 218, 232, 0.8); }
.card.is p { margin-top: 18px; }
.engine-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cyan) !important; margin-top: 22px !important; }
.faq-wrap .section-head { margin-bottom: 36px; }
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: clamp(17px, 1.6vw, 19px); font-weight: 500; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--teal); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }
.faq-item .ph { margin-bottom: 22px; }
@media (max-width: 760px) {
  .demo-row { grid-template-columns: 1fr; gap: 8px; }
  .demo-arrow { transform: rotate(90deg); justify-self: start; }
}

/* ===== Book page ===== */
.book-hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(ellipse 60% 70% at 25% 45%, rgba(33, 218, 232, 0.12), transparent 70%), linear-gradient(180deg, var(--abyss) 0%, var(--navy) 100%);
  color: var(--white); padding: 130px 0 90px; }
.book-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.book-split { position: relative; z-index: 2; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; width: 100%; }
.book-cover img { width: 100%; max-width: 420px; border-radius: 8px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(33, 218, 232, 0.18); }
.book-copy h1 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.08; letter-spacing: -0.03em; }
.book-copy h1 .hl { color: var(--cyan); }
.book-copy .hero-sub { max-width: 560px; }
.form-card { margin-top: 30px; max-width: 480px; background: var(--white); color: var(--ink); border-radius: 20px; padding: 28px 28px 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.form-title { font-size: 19px; font-weight: 500; margin: 0 0 14px; color: var(--ink); }
.form-small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-fallback .btn, .form-done { width: 100%; }
.form-fallback .btn { justify-content: center; }
.form-done p { color: var(--muted); margin: 0; }
.hs-target { min-height: 120px; }
.trust { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted-dark); }
/* HubSpot embed styling to match the site */
.hs-target .hs-form fieldset { max-width: none !important; }
.hs-target .hs-form-field { margin-bottom: 12px; }
.hs-target .hs-form-field > label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hs-target .hs-input:not([type="checkbox"]):not([type="radio"]) { width: 100% !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--white); box-sizing: border-box; }
.hs-target .hs-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hs-target .legal-consent-container, .hs-target .hs-richtext { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hs-target ul.inputs-list { list-style: none; padding: 0; margin: 6px 0; }
.hs-target .hs-error-msgs { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12.5px; color: #B23A3A; }
.hs-target .hs-button { width: 100%; margin-top: 8px; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--cyan); color: var(--navy); font-family: var(--sans); font-size: 15px; font-weight: 500; cursor: pointer; transition: box-shadow .25s ease; }
.hs-target .hs-button:hover { box-shadow: 0 0 0 6px rgba(33, 218, 232, 0.18), 0 10px 40px rgba(33, 218, 232, 0.35); }
.hs-target .submitted-message { color: var(--ink); }
@media (max-width: 860px) {
  .book-split { grid-template-columns: 1fr; }
  .book-cover img { max-width: 260px; margin: 0 auto; }
  .book-hero { padding-top: 110px; }
}

/* ===== Quiz page ===== */
.quiz-hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(33, 218, 232, 0.12), transparent 70%), linear-gradient(180deg, var(--abyss) 0%, var(--navy) 100%);
  color: var(--white); padding: 130px 0 90px; }
.quiz-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.quiz-wrap { position: relative; z-index: 2; width: 100%; max-width: 760px; }
.qscreen { display: none; }
.qscreen.on { display: block; animation: qfade .45s var(--ease); }
@keyframes qfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qscreen h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
.qscreen h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; margin-bottom: 18px; }
.qscreen h1 .hl { color: var(--cyan); }
.qscreen .hero-sub { margin: 0 0 30px; }
.q-progress { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted-dark); margin-bottom: 28px; }
.q-bar { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 20%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transition: width .4s var(--ease); }
.q-opts { display: grid; gap: 12px; margin-top: 8px; }
.q-opt { display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.82); font-family: var(--sans); font-size: 15.5px; line-height: 1.55; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.q-opt:hover:not(:disabled) { border-color: rgba(33, 218, 232, 0.5); background: rgba(33, 218, 232, 0.06); transform: translateX(3px); }
.q-opt.sel { border-color: var(--cyan); background: rgba(33, 218, 232, 0.12); color: var(--white); }
.q-letter { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.q-opt.sel .q-letter { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.link-quiet { display: inline-block; margin-top: 16px; background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dark .link-quiet { color: var(--muted-dark); }
.result-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(26px, 4vw, 40px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7); }
.result-card .vtag { margin-bottom: 16px; }
.result-card .arch { font-family: var(--mono); font-size: 12.5px; color: var(--teal); margin: 0 0 8px; }
.result-card h2 { color: var(--ink); font-size: clamp(22px, 2.8vw, 30px); }
.result-card > p { color: var(--muted); }
.r-blind { margin-top: 22px; padding: 20px 22px; border-radius: 16px; background: var(--light); border: 1px solid var(--line); }
.r-blind .vtag { margin-bottom: 10px; }
.r-blind p { margin: 0; color: var(--ink); font-size: 15px; }
.r-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.result-card .btn-ghost { color: var(--ink); border-color: var(--line); }
.result-card .btn-ghost:hover { color: var(--teal); border-color: var(--teal); }

