*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { max-width: 100%; overflow-x: hidden; }

  :root {
    --ink: #0a0a0a;
    --paper: #f4f4f2;
    --muted: #8a8a86;
    --accent-amber: #C8843C;
    --line: rgba(10,10,10,0.10);
    --accent: #0a0a0a;
  }

  html { scroll-behavior: smooth; }

  html::selection {
    background-color: cyan; 
    color: var(--accent-amber); 
  }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* amber wash overlay — covers page as can pours */
  #amber-wash {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: #C8843C;
    opacity: 0;
    mix-blend-mode: multiply;
  }

  /* footer can canvas — fixed, pinned to right edge, sits ON TOP of footer,
     BEHIND all page content (preorder, science etc) */
  #footer-canvas-wrap {
    position: fixed;
    bottom: 0;
    right: 20px;      /* always right-anchored, never drifts over links */
    width: 180px;
    height: 260px;
    z-index: 22;      /* above footer bg (z-index:20) so can sits ON footer,
                         below preorder/science (z-index:30+) so it never covers page content */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  #footer-canvas-wrap.visible { opacity: 1; }
  #footer-canvas { display: block; width: 100% !important; height: 100% !important; }

  #canvas-wrap {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 5;
    pointer-events: none;
  }
  #three-canvas { display: block; width: 100% !important; height: 100% !important; }

  .stage-glow {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh; height: 78vh;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
      rgba(255,255,255,0.9) 0%,
      rgba(232,232,228,0.55) 38%,
      rgba(232,232,228,0) 70%);
  }
  .stage-shadow {
    position: fixed;
    top: 71%; left: 50%;
    transform: translate(-50%, -50%);
    width: 22vh; height: 6vh;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
      rgba(10,10,10,0.28) 0%,
      rgba(10,10,10,0.12) 45%,
      rgba(10,10,10,0) 75%);
    filter: blur(6px);
  }

  nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    mix-blend-mode: difference;
    transition: background 0.4s ease, backdrop-filter 0.4s ease,
                border-bottom 0.4s ease, box-shadow 0.4s ease,
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }
  nav.nav--hidden {
    transform: translateY(-110%);
  }
  nav, nav a, nav .logo { color: #fff; }

  /* When scrolled: frosted glass + dark text, no blend mode */
  nav.nav--scrolled {
    mix-blend-mode: normal;
    background: rgba(236,232,221,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10,10,10,0.06);
    box-shadow: 0 2px 20px rgba(10,10,10,0.04);
  }
  nav.nav--scrolled, nav.nav--scrolled a, nav.nav--scrolled .logo { color: var(--ink); }
  nav.nav--scrolled .logo-mark { background: var(--accent-amber); }

  .logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .logo-mark { width: 9px; height: 9px; background: #fff; border-radius: 50%; }

  .nav-links { display: flex; gap: 38px; list-style: none; }
  .nav-links a {
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    opacity: 0.85;
    transition: opacity 0.25s;
  }
  .nav-links a:hover { opacity: 1; }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 1px;
    background: #fff;
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #fff;
    padding: 9px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.25s, color 0.25s;
  }

  .nav-toggle { display: none; }
  #mobileMenu { display: none; }



  .hero {
    position: relative;
    z-index: 20;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 40px 44px;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
  .hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--ink);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
  }
  @keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

  .hero-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-align: right;
    line-height: 1.8;
  }

  .hero-headline {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    pointer-events: none;
    overflow: visible;
  }
  .headline-word {
    font-size: clamp(70px, 15.5vw, 250px);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.05em;
    color: var(--ink);
    /* will be animated in via JS */
  }
  /* clip-path wrappers for small hero texts */
  .clip-reveal {
    overflow: hidden;
    display: inline-block;
  }
  .clip-reveal-inner {
    display: inline-block;
    transform: translateY(100%);
  }

  .hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
  .hero-tagline {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.55;
    color: #3a3a38;
    font-weight: 400;
  }
  .hero-tagline strong { font-weight: 600; color: var(--ink); }

  .scroll-cue {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .scroll-cue .bar {
    width: 44px; height: 1px;
    background: var(--ink);
    position: relative;
    overflow: hidden;
  }
  .scroll-cue .bar::after {
    content:'';
    position:absolute; top:0; left:-50%;
    width:50%; height:100%;
    background: var(--paper);
    animation: slide 1.8s ease-in-out infinite;
  }
  @keyframes slide { 0%{left:-50%;} 100%{left:100%;} }

  #progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0%;
    background: var(--ink);
    z-index: 200;
  }

  /* ============================================================
     VOLTAGE RAIL — custom scroll indicator (replaces native scrollbar)
     Only suppress the native scrollbar once JS confirms the rail is
     live — if the script ever fails, the browser's own scrollbar is
     still there as a fallback.
     ============================================================ */
  html.vrail-active { scrollbar-width: none; -ms-overflow-style: none; }
  html.vrail-active::-webkit-scrollbar { display: none; }

  #voltage-rail {
    position: fixed;
    top: 0; right: 0;
    width: 30px;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
  }
  /* gauge strip — resistor-style major/minor ticks, always faintly visible */
  .vrail-ticks {
    position: absolute;
    top: 16px; bottom: 16px;
    left: 50%;
    width: 13px;
    transform: translateX(-50%);
    background-image:
      repeating-linear-gradient(to bottom, rgba(200,132,60,0.55) 0 2px, transparent 2px 96px),
      repeating-linear-gradient(to bottom, rgba(10,10,10,0.16) 0 1px, transparent 1px 24px);
    pointer-events: auto;
    cursor: pointer;
  }
  /* the thumb itself — glowing amber capsule with a small pulsing core,
     echoing the blink dot used in the eyebrow / badge elsewhere */
  .vrail-thumb {
    position: absolute;
    left: 50%;
    width: 5px;
    transform: translateX(-50%);
    border-radius: 100px;
    background: linear-gradient(180deg, #e3aa72, var(--accent-amber));
    box-shadow: 0 0 7px rgba(200,132,60,0.65), 0 0 1px rgba(200,132,60,0.9);
    pointer-events: auto;
    cursor: grab;
    transition: box-shadow 0.2s ease;
  }
  .vrail-thumb::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 3px; height: 3px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    opacity: 0.9;
    animation: blink 1.6s ease-in-out infinite;
  }
  #voltage-rail.dragging .vrail-thumb { box-shadow: 0 0 14px rgba(200,132,60,0.95); cursor: grabbing; }

  /* live percentage readout — only appears while scrolling/dragging */
  .vrail-readout {
    position: absolute;
    right: 38px;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: var(--paper);
    padding: 5px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  .vrail-readout::after {
    content: '';
    position: absolute; right: -4px; top: 50%;
    width: 0; height: 0; transform: translateY(-50%);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid var(--ink);
  }
  #voltage-rail.active .vrail-readout { opacity: 1; }

  /* Touch / small screens — native overlay scrollbar already behaves
     well here and a 5px drag target isn't workable with a finger, so
     the rail steps aside entirely and the browser default returns. */
  @media (max-width: 860px), (pointer: coarse) {
    #voltage-rail { display: none; }
  }

  /* ============================================================
     DEMO MODAL — playful popups for Pre-order / Notify Me.
     This is a portfolio piece, not a live checkout, so both
     actions surface a self-aware joke instead of pretending to
     submit anything.
     ============================================================ */
  html.no-scroll { overflow: hidden; }

  #demo-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,10,0.55);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  #demo-modal-overlay.show { opacity: 1; pointer-events: auto; }

  .demo-modal {
    position: relative;
    width: 100%; max-width: 420px;
    background: var(--paper);
    border: 1px solid rgba(10,10,10,0.18);
    border-radius: 16px;
    padding: 32px 30px 28px;
    box-shadow: 0 30px 80px rgba(10,10,10,0.35);
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.2,1.4,.4,1), opacity 0.25s ease;
  }
  #demo-modal-overlay.show .demo-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
    animation: modal-zap 0.4s ease 0.32s 1;
  }
  /* a quick electric "settle" wobble once the modal lands, echoing
     the jittery border elsewhere on the page */
  @keyframes modal-zap {
    0%   { transform: scale(1) translateY(0) rotate(0deg); }
    25%  { transform: scale(1.012) translateY(-1px) rotate(-0.3deg); }
    50%  { transform: scale(0.994) translateY(0.5px) rotate(0.3deg); }
    75%  { transform: scale(1.005) translateY(0) rotate(-0.1deg); }
    100% { transform: scale(1) translateY(0) rotate(0deg); }
  }

  .demo-modal-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-amber);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
  }
  .demo-modal-tag .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-amber);
    animation: blink 1.4s ease-in-out infinite;
  }
  .demo-modal h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.25;
  }
  .demo-modal p {
    font-size: 14px;
    line-height: 1.6;
    color: #3a3a38;
    margin-bottom: 10px;
  }
  .demo-modal p:last-of-type { margin-bottom: 0; }
  .demo-modal-actions {
    margin-top: 22px;
    display: flex; justify-content: flex-end;
  }
  .demo-modal-close {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 11px 22px;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .demo-modal-close:hover { opacity: 0.85; }
  .demo-modal-x {
    position: absolute; top: 16px; right: 16px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
  }
  .demo-modal-x:hover { background: rgba(10,10,10,0.06); color: var(--ink); }

  .after { height: 40vh; position: relative; z-index: 1; }
  .after-tagline { display: none; } /* shown only on mobile via media query */
  .science-mobile-list { display: none; } /* shown only on mobile */

  /* ---------- SECTION 02 — WHAT'S INSIDE ---------- */
  .science {
    position: relative;
    z-index: 30;
    height: 100vh;
    pointer-events: none;
  }
  .science-inner {
    position: relative;
    height: 100vh;
    width: 100%;
  }

  /* Full-width top strip — number left, title center, sub right.
     Lives in the top 18vh of the pinned section.
     Callouts sit below it — zero conflict at any desktop width. */
  .science-head {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 25;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 40px 28px;
    border-bottom: 1px solid var(--line);
  }
  .science-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
  }
  .science-title {
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 700; line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    flex: 1;
    /* no max-width — it owns the center column */
  }
  .science-sub {
    font-size: 15px; line-height: 1.6;
    color: #5a5a56;
    max-width: 220px;
    text-align: right;
    flex-shrink: 0;
  }

  /* Callouts sit in the lower ~70% of the pinned viewport,
     well below the header strip. Left pair right-aligned,
     right pair left-aligned — flanking the can. */
  .callout-lines {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 22; pointer-events: none;
    overflow: visible;
  }
  .callout-lines line,
  .callout-lines circle { opacity: 0; }

  .callout {
    position: absolute;
    width: 220px;
    z-index: 24;
    opacity: 0;
    pointer-events: none;
  }
  .callout.left  { text-align: right; }
  .callout.right { text-align: left; }
  .callout-dose {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.14em;
    color: var(--accent-amber); margin-bottom: 6px;
    text-transform: uppercase;
  }
  .callout-name {
    font-size: 21px; font-weight: 600;
    letter-spacing: -0.01em; margin-bottom: 5px;
  }
  .callout-desc {
    font-size: 14px; line-height: 1.55; color: #56564f;
  }

  /* Callout positions — lower two-thirds, clear of the header strip.
     Use vw-relative offsets from center so they scale with viewport. */
  .callout.c1 { top: 36%; left: calc(50% - 22vw); transform: translateX(-100%); }
  .callout.c2 { top: 36%; left: calc(50% + 22vw); }
  .callout.c3 { top: 62%; left: calc(50% - 22vw); transform: translateX(-100%); }
  .callout.c4 { top: 62%; left: calc(50% + 22vw); }

  /* ---------- SECTION 03 — PRE-ORDER ---------- */
  .preorder {
    position: relative;
    z-index: 30;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px;
    overflow: hidden;
  }

  .preorder-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .preorder-left { position: relative; z-index: 2; min-width: 0; }

  .preorder-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 32px;
    display: flex; align-items: center; gap: 12px;
  }
  .preorder-num::before {
    content: '';
    display: block; width: 32px; height: 1px;
    background: var(--muted);
  }

  .preorder-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: var(--paper);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 14px; border-radius: 100px;
    margin-bottom: 28px;
  }
  .preorder-badge-dot {
    width: 6px; height: 6px; background: var(--accent-amber);
    border-radius: 50%; animation: blink 1.6s ease-in-out infinite;
  }

  .preorder-price {
    font-size: clamp(72px, 11vw, 150px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.88;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .preorder-price sup {
    font-size: 0.38em;
    font-weight: 600;
    vertical-align: super;
    letter-spacing: 0;
  }
  .preorder-per {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; letter-spacing: 0.1em;
    color: var(--muted); margin-bottom: 40px;
  }

  .preorder-specs {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 44px;
  }
  .spec-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(10,10,10,0.2);
    padding: 7px 16px; border-radius: 100px;
    color: var(--ink);
  }

  .preorder-cta {
    display: inline-flex; align-items: center; gap: 14px;
    background: #ffffff; color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 500;
    padding: 18px 36px; border-radius: 100px;
    text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(10,10,10,0.14);
  }
  .preorder-cta:hover {
    transform: translateY(-2px);
    background: var(--ink); color: #ffffff;
    box-shadow: 0 10px 40px rgba(10,10,10,0.22);
  }
  .preorder-cta-arrow { font-size: 16px; transition: transform 0.2s; }
  .preorder-cta:hover .preorder-cta-arrow { transform: translateX(4px); }

  .preorder-scarcity {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    color: var(--muted);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 48px;
  }
  .scarcity-bar-wrap {
    width: 80px; height: 3px;
    background: rgba(10,10,10,0.12); border-radius: 2px; overflow: hidden;
  }
  .scarcity-bar {
    height: 100%; width: 68%;
    background: var(--accent-amber); border-radius: 2px;
  }

  .preorder-email-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 12px;
  }
  .preorder-email-row {
    display: flex; gap: 0;
    border: 1px solid rgba(10,10,10,0.25);
    border-radius: 100px; overflow: hidden;
    max-width: 380px;
    min-width: 0;
  }
  .preorder-email-row input {
    flex: 1; min-width: 0; border: none; background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px; padding: 13px 20px;
    color: var(--ink); outline: none;
  }
  .preorder-email-row input::placeholder { color: var(--muted); }
  .preorder-email-row button {
    background: var(--ink); color: var(--paper);
    border: none; font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 13px 22px;
    cursor: pointer; white-space: nowrap;
  }

  .preorder-right {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 1px;
    min-width: 0;
  }

  .product-card {
    border: 1px solid rgba(10,10,10,0.18);
    border-radius: 16px; overflow: visible;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 4px 40px rgba(10,10,10,0.10);
    position: relative;
    isolation: isolate;
  }
  .product-card-inner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  /* Canvas sits over the card with exact BORDER_OFF inset on all sides */
  #eb-canvas-wrap {
    position: absolute;
    top: -30px; left: -30px;
    pointer-events: none;
    z-index: 2;
  }
  /* Glow layers */
  .eb-glow-1, .eb-glow-2, .eb-bg-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-sizing: border-box;
  }
  .eb-glow-1 {
    border: 2px solid rgba(200,132,60,0.6);
    filter: blur(1px);
    z-index: 0;
  }
  .eb-glow-2 {
    border: 2px solid rgba(200,132,60,0.9);
    filter: blur(4px);
    z-index: 0;
  }
  .eb-bg-glow {
    z-index: -1;
    transform: scale(1.1);
    filter: blur(32px);
    opacity: 0.18;
    background: linear-gradient(-30deg, #C8843C, transparent, #C8843C);
  }

  .product-card-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(10,10,10,0.08);
    display: flex; justify-content: space-between; align-items: flex-start;
  }
  .product-card-name {
    font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  }
  .product-card-flavor {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent-amber);
    margin-top: 4px;
  }
  .product-card-qty {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    color: var(--muted); text-align: right;
  }
  .product-card-qty strong {
    display: block; font-size: 22px; font-weight: 700;
    color: var(--ink); letter-spacing: -0.02em;
  }

  .product-card-rows { padding: 0 32px; }
  .product-card-row {
    display: flex; justify-content: space-between;
    align-items: center; padding: 16px 0;
    border-bottom: 1px solid rgba(10,10,10,0.07);
    font-size: 14px;
  }
  .product-card-row:last-child { border-bottom: none; }
  .product-card-row .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
  }
  .product-card-row .val { font-weight: 600; font-size: 14px; color: var(--ink); }
  .product-card-row .val.amber { color: var(--accent-amber); }

  .product-card-footer {
    padding: 20px 32px;
    border-top: 1px solid rgba(10,10,10,0.08);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10,10,10,0.02);
  }
  .product-card-total-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
  }
  .product-card-total-price {
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.03em; color: var(--ink);
  }

  .preorder-inner > * { opacity: 0; transform: translateY(24px); }

  /* ---------- FOOTER ---------- */
  .site-footer {
    position: relative;
    z-index: 20;
    background: var(--ink);
    overflow: visible; /* allow can to sit on top */
  }
  .footer-roll {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .footer-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
  }
  .footer-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 14s linear infinite;
  }
  .footer-marquee-item {
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,0.07);
    padding-right: 48px;
    flex-shrink: 0;
    user-select: none;
  }
  .footer-marquee-item.accent { color: rgba(200,132,60,0.20); }
  @keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 36px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .footer-logo {
    font-size: 20px; font-weight: 700;
    letter-spacing: -0.02em; color: #fff;
    text-decoration: none;
    display: flex; align-items: center; gap: 9px;
  }
  .footer-logo .fmark {
    width: 9px; height: 9px;
    background: var(--accent-amber);
    border-radius: 50%;
  }
  .footer-links {
    display: flex; gap: 28px; list-style: none;
  }
  .footer-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: #fff; }
  .footer-legal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.18);
  }
  /* =============================================
     RESPONSIVE SYSTEM
     ============================================= */

  /* ---------- TABLET: 861px – 1100px ---------- */
  /* Callout positions use vw-based offsets so they scale automatically.
     Only tighten the header strip padding at mid widths. */
  @media (max-width: 1100px) {
    .science-head { padding: 80px 28px 24px; gap: 28px; }
    .science-sub { max-width: 180px; font-size: 14px; }
  }

  /* ---------- TABLET / LARGE MOBILE: ≤ 860px ---------- */
  @media (max-width: 860px) {

    /* NAV */
    nav { padding: 18px 22px; }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle {
      display: flex; flex-direction: column; justify-content: center; gap: 5px;
      width: 32px; height: 32px;
      background: none; border: none; cursor: pointer;
      position: relative; z-index: 1001;
    }
    .nav-toggle span {
      width: 24px; height: 2px; background: #fff;
      transition: transform 0.25s ease, opacity 0.2s ease;
      transform-origin: center;
    }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Boot-sequence menu: the nav itself grows taller in place —
       no fullscreen overlay, no off-canvas drawer. Links "power on"
       one at a time next to a live calibration readout. */
    #mobileMenu {
      display: block;
      position: fixed;
      top: 68px; left: 0;
      width: 100%;
      max-height: 0;
      overflow: hidden;
      background: var(--ink);
      z-index: 999;
      transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
    }
    #mobileMenu.show { max-height: 420px; }

    .mm-signal {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 22px 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
    }
    .mm-signal-left { display: flex; align-items: center; gap: 8px; }
    .mm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-amber); }
    .mm-dot.on { animation: blink 1s ease-in-out infinite; }

    .mobile-menu-links { list-style: none; padding: 4px 22px 8px; }
    .mobile-menu-links li.mm-row {
      display: flex; align-items: baseline; gap: 12px;
      padding: 13px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .mobile-menu-links li.mm-row.show { opacity: 1; transform: translateY(0); }
    .mm-idx {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--accent-amber);
    }
    .mobile-menu-links a {
      font-size: 17px;
      font-weight: 500;
      text-decoration: none;
      color: rgba(255,255,255,0.9);
      letter-spacing: -0.01em;
    }
    .mobile-menu-cta {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      margin: 4px 22px 20px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      letter-spacing: 0.08em;
      text-decoration: none;
      background: var(--accent-amber);
      color: var(--ink);
      text-align: center;
      padding: 14px 0;
      border-radius: 100px;
      font-weight: 600;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .mobile-menu-cta.show { opacity: 1; }

    /* HERO SHELL — flex column, space-between pushes top/bottom to edges.
       The headline is absolute so it doesn't disturb this flow. */
    .hero {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 0;
      height: 100vh;
      height: 100dvh;
    }

    /* Eyebrow strip — top-left, below nav */
    .hero-top {
      position: relative;
      z-index: 25;
      padding: 96px 22px 0;
      justify-content: flex-start;
    }
    .hero-meta { display: none; }

    /* HEADLINE: absolute, full viewport — split words to top & bottom.
       The fixed 3D canvas sits between them naturally. */
    .hero-headline {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      transform: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      pointer-events: none;
    }

    .headline-word {
      font-size: clamp(68px, 21vw, 244px);
      line-height: 0.86;
      letter-spacing: -0.04em;
      color: var(--ink);
      padding-left: 0;
      width: 100%;
      text-align: center;
    }

    /* EYEBROW — slightly more presence on mobile */
    .hero-eyebrow {
      font-size: 13px;
      letter-spacing: 0.22em;
      color: #5a5a56; /* a touch darker than --muted (#8a8a86) */
      gap: 12px;
    }
    .hero-eyebrow .dot {
      width: 7px; height: 7px; /* 1px bigger, easier to notice */
      animation: blink 1.6s ease-in-out infinite; /* slightly faster pulse */
    }

    /* PURE — just below the eyebrow text */
    .headline-word:first-child {
      margin-top: clamp(80px, 11vh, 500px);
    }

    /* FUEL — just above the tagline block at the bottom */
    .headline-word:last-child {
      margin-bottom: clamp(10px, 4vh, 180px);
    }

    /* Bottom bar — hidden inside hero on mobile, lives in .after below */
    .hero-bottom { display: none; }

    /* Tagline + scroll shown below the hero on mobile.
       .after height is reduced so this block controls its own spacing
       and doesn't push into the science ScrollTrigger zone. */
    .after { height: 20vh; } /* slim breathing gap on mobile */
    .after-tagline {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 28px 22px 40px;
      position: relative;
      z-index: 20;
      background: var(--paper); /* ensure it sits above fixed canvas */
    }
    .after-tagline .hero-tagline {
      max-width: 100%;
      font-size: 14px;
      line-height: 1.55;
      color: #3a3a38;
    }
    .after-tagline .scroll-cue { font-size: 12px; }

    /* SCIENCE — mobile layout */

    /* ── SCIENCE MOBILE ── */

    /* Hide desktop elements */
    .callout { display: none; }
    .callout-lines { display: none; }
    .science-mobile-list { display: flex; }

    /* Header strip stacks vertically */
    .science-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      padding: 80px 22px 18px;
      border-bottom: 1px solid var(--line);
    }
    .science-title {
      font-size: clamp(20px, 6vw, 30px);
      text-align: left;
    }
    .science-sub { display: none; }

    /* Ingredient list — pinned to bottom of section above the fold */
    .science-mobile-list {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 0 22px 28px;
      display: flex;
      flex-direction: column;
      gap: 0;
      z-index: 26;
      pointer-events: none;
      background: linear-gradient(to top, var(--paper) 80%, transparent);
    }

    .sci-item {
      opacity: 1;
      transform: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid rgba(10,10,10,0.07);
    }
    .sci-item:first-child { border-top: 1px solid rgba(10,10,10,0.07); }

    .sci-animated .sci-item {
      opacity: 0;
      transform: translateY(8px);
    }

    .sci-item-name {
      font-size: 15px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--ink);
    }
    .sci-item-dose {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent-amber);
    }

    /* FOOTER */
    .footer-bottom { padding: 28px 22px; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .footer-roll { height: 180px; }
    .footer-marquee-item { font-size: clamp(32px, 9vw, 56px); }

    /* SCIENCE — handled by new mobile rules above */

    /* PRE-ORDER */
    .preorder {
      padding: 80px 18px 60px;
      z-index: 30; /* above canvas (z-index:5) so card is never obscured */
      overflow: visible;
    }
    .preorder-inner {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .preorder-left  { z-index: 31; }
    .preorder-right {
      display: flex;
      width: 100%;
      z-index: 31;
    }
    .product-card {
      width: 100%;
      max-width: 100%;
      border-radius: 12px;
      overflow: visible;
      position: relative;
      z-index: 31;
    }
    .product-card-inner { border-radius: 12px; }
    .product-card-header { padding: 20px 18px 16px; }
    .product-card-rows  { padding: 0; }
    .product-card-row   { padding: 12px 18px; }
    .product-card-footer { padding: 16px 18px 18px; }
    .preorder-price { font-size: clamp(56px, 17vw, 96px); }
    .preorder-email-row { max-width: 100%; }
    .preorder-email-row button { white-space: nowrap; flex-shrink: 0; }
  }

  /* ---------- SMALL MOBILE: ≤ 480px ---------- */
  @media (max-width: 480px) {
    .hero-top { padding-top: 84px; }

    .headline-word {
      font-size: clamp(60px, 22vw, 96px);
      letter-spacing: -0.035em;
      padding-left: 0;
      text-align: center;
    }

    .headline-word:first-child { margin-top: clamp(120px, 12vh, 172px); }
    .headline-word:last-child  { margin-bottom: clamp(36px, 10vh, 72px); }

    .hero-tagline { font-size: 14px; }

    .callout { width: 40vw; max-width: 160px; }
    .callout-name { font-size: 15px; }
    .callout-dose { font-size: 12px; }
    .callout-desc { display: none; }

    .callout.c1 { top: 14%; left: 8px; }
    .callout.c2 { top: 14%; right: 8px; }
    .callout.c3 { top: 76%; left: 8px; }
    .callout.c4 { top: 76%; right: 8px; }
  }

  /* ---------- VERY SMALL: ≤ 360px ---------- */
  @media (max-width: 360px) {
    /* Hero */
    .headline-word {
      font-size: 98px;
      padding-left: 0;
      text-align: center;
    }
    .headline-word:first-child { margin-top: 112px; }
    .headline-word:last-child  { margin-bottom: 68px; }
    nav { padding: 14px 16px; }
    .hero-top { padding-top: 76px; padding-left: 16px; padding-right: 16px; }
    .hero-bottom { padding-left: 16px; padding-right: 16px; }

    /* Science head */
    .science-head { padding: 76px 16px 16px; }
    .science-title { font-size: 18px; }
    .science-mobile-list { padding: 0 16px 20px; }
    .sci-item { padding: 10px 0; }
    .sci-item-name { font-size: 14px; }

    /* Pre-order */
    .preorder { padding: 72px 14px 48px; }
    .preorder-price { font-size: clamp(48px, 16vw, 80px); }

    /* Email row — stack on very small screens so button doesn't clip */
    .preorder-email-row {
      flex-direction: column;
      border-radius: 12px;
      max-width: 100%;
    }
    .preorder-email-row input {
      padding: 12px 16px;
      border-bottom: 1px solid rgba(10,10,10,0.12);
    }
    .preorder-email-row button {
      padding: 12px 16px;
      border-radius: 0 0 12px 12px;
      text-align: center;
    }

    /* Product card — ensure it never clips */
    .product-card-header { padding: 16px 14px 14px; }
    .product-card-name { font-size: 16px; }
    .product-card-row { padding: 10px 14px; }
    .product-card-footer { padding: 14px 14px 16px; }
    .product-card-total-price { font-size: 24px; }

    /* After tagline */
    .after-tagline { padding: 24px 16px 0; }
    .after-tagline .hero-tagline { font-size: 14px; }

    /* Footer */
    .footer-bottom { padding: 22px 16px; }
    .footer-roll { height: 140px; }
    .footer-marquee-item { font-size: clamp(26px, 8vw, 44px); }
  }

  /* ---------- TINY: ≤ 320px ---------- */
  @media (max-width: 320px) {
    .headline-word { font-size: 58px; }
    .headline-word:first-child { margin-top: 100px; }
    .headline-word:last-child  { margin-bottom: 60px; }
    .science-title { font-size: 16px; }
    .preorder-price { font-size: 44px; }
    .product-card-name { font-size: 14px; }
    .product-card-row .label { font-size: 11px; letter-spacing: 0.06em; }
    .product-card-row .val { font-size: 13px; }
    .product-card-total-price { font-size: 22px; }
  }