/* ============================================================================
   sections.css — nav, preloader, 00→07 sections
   ============================================================================ */

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  padding-block: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav-brand .bdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.nav-brand .bsub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--text-4); text-transform: uppercase; align-self: center; padding-left: 8px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a .nl-num { font-family: var(--font-mono); font-size: 10px; color: var(--accent-dim); margin-right: 5px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta { display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; padding: 10px 16px; min-height: 40px; border-radius: 8px; border: 1px solid var(--accent-line); color: var(--accent); transition: background .25s, box-shadow .25s; }
.nav-cta:hover { background: var(--accent-soft); box-shadow: 0 0 24px -6px var(--accent-glow); }
/* hamburger — hidden on desktop, shown on mobile */
.nav-burger { display: none; position: relative; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); cursor: pointer; padding: 0; }
.nav-burger span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .28s var(--ease), opacity .18s; }
.nav-burger span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-burger span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-burger span:nth-child(3) { transform: translate(-50%, 5px); }
.nav.menu-open .nav-burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: color-mix(in oklch, var(--bg) 95%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 14px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 16px; min-height: 50px; display: flex; align-items: center; padding: 0 2px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 760px) { .nav-cta { min-height: 44px; padding: 12px 18px; } }

/* scroll progress hairline */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 1001; width: 0; box-shadow: 0 0 12px var(--accent-glow); }

/* ── PRELOADER ───────────────────────────────────────────────────────────── */
.preloader { position: fixed; inset: 0; z-index: 3000; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; }
.preloader.done { animation: preWipe .9s var(--ease-out) forwards; }
@keyframes preWipe { to { transform: translateY(-100%); } }
.pre-counter { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 12vw, 8rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pre-counter .accent { color: var(--accent); }
.pre-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
.pre-bar { width: min(280px, 60vw); height: 1px; background: var(--line-2); overflow: hidden; }
.pre-bar i { display: block; height: 100%; background: var(--accent); width: 0; box-shadow: 0 0 10px var(--accent-glow); }
.pre-ready { color: var(--accent); }

/* ── 00 HERO ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 90px; padding-bottom: 60px; overflow: hidden; }
.hero-wrap { width: 100%; max-width: var(--maxw); display: grid; align-items: center; gap: clamp(28px, 4vw, 56px); }
.hero-right .hero-wrap { grid-template-columns: minmax(0, 1fr) minmax(420px, 560px); }
.hero-copy { max-width: 600px; min-width: 0; }
h1.hero-h1 { margin: 20px 0 0; font-size: clamp(2.2rem, 4vw, 3.55rem); }
.hero-h1 .hb { display: none; }
.hero-accent { color: var(--accent); position: relative; }
.hero-accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.5em; background: radial-gradient(60% 100% at 50% 100%, var(--accent-soft), transparent 75%); z-index: -1; }
.hero-sub { margin-top: 26px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.hero-meta b { font-weight: 600; }
.hero-meta .dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-3); }

.hero-stage { position: relative; perspective: 1800px; display: flex; justify-content: center; min-width: 0; }
.hero-console { position: relative; width: 100%; max-width: 560px; min-width: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-9deg) rotateZ(0.5deg); transform-origin: 50% 60%; }
.hc-tilt { position: relative; width: 100%; min-width: 0; transform-style: preserve-3d; will-change: transform; }
.hero-stage.is-hovering { cursor: none; }
.hc-glow { position: absolute; inset: -12% -8% -22%; background: radial-gradient(50% 50% at var(--gx, 50%) var(--gy, 45%), var(--accent-soft), transparent 70%); filter: blur(28px); z-index: -1; transition: background-position .2s linear; }
.hero-console [data-panel] { animation: panelPop .8s var(--ease-out) backwards; }
.hero-console [data-panel="0"] { animation-delay: .15s; }
.hero-console [data-panel="1"] { animation-delay: .28s; }
.hero-console [data-panel="2"] { animation-delay: .4s; }
.hero-console [data-panel="3"] { animation-delay: .52s; }
.hero-console [data-panel="4"] { animation-delay: .64s; }
.hero-console [data-panel="5"] { animation-delay: .76s; }
@keyframes panelPop { from { opacity: 0; transform: translateY(16px) translateZ(-40px); } to { opacity: 1; transform: none; } }

.hero-float { position: absolute; font-size: 11px; color: var(--accent); background: color-mix(in oklch, var(--surface) 80%, transparent); border: 1px solid var(--accent-line); padding: 6px 10px; border-radius: 8px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; box-shadow: 0 8px 30px -12px var(--accent-glow); }
.hero-float[data-float="1"] { top: 4%; right: 0%; animation: floaty 5s var(--ease) infinite; }
.hero-float.f2 { bottom: 4%; right: 6%; color: var(--text-2); border-color: var(--line-2); animation: floaty 6.5s var(--ease) infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-scrollcue { position: absolute; bottom: 30px; left: 0; right: 0; margin-inline: auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.32em; color: var(--text-3); will-change: transform, opacity; }
.hero-scrollcue .cue-track { position: relative; width: 2px; height: 84px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hero-scrollcue .cue-track i { position: absolute; top: 0; left: 0; width: 100%; height: 46%; border-radius: 2px; background: linear-gradient(var(--accent), color-mix(in oklch, var(--accent) 0%, transparent)); box-shadow: 0 0 14px var(--accent-glow); animation: cueBead 1.9s var(--ease) infinite; }
@keyframes cueBead { 0% { transform: translateY(-110%); } 60% { transform: translateY(150%); } 100% { transform: translateY(150%); } }
/* Below ~920px the console grows wide/stacks and the centered scroll cue lands
   on top of it. Hide the cue there — it's a decorative hint, not load-bearing. */
@media (max-width: 920px) { .hero-scrollcue { display: none; } }

/* hero variants */
.hero-center .hero-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-center .hero-copy { max-width: 820px; }
.hero-center .hero-sub { margin-inline: auto; }
.hero-center .hero-cta, .hero-center .hero-meta { justify-content: center; }
.hero-center .hero-stage { margin-top: 56px; }
.hero-center .hero-console { transform: rotateX(14deg) rotateY(0deg); }

.hero-bleed { min-height: 100svh; }
.hero-bleed .hero-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; position: relative; z-index: 2; }
.hero-bleed .hero-copy { max-width: 880px; }
.hero-bleed .hero-sub { margin-inline: auto; }
.hero-bleed .hero-cta, .hero-bleed .hero-meta { justify-content: center; }
.hero-bleed .hero-stage { position: absolute; inset: 0; z-index: 0; align-items: center; opacity: 0.16; filter: blur(1px); transform: scale(1.25) translateY(8%); pointer-events: none; }
.hero-bleed .hero-float { display: none; }

/* ── 01 PROBLEM (pinned depth-stack scene) ───────────────────────────────── */
.problem { position: relative; height: 185vh; }
.problem-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.problem-inner { width: 100%; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.problem-copy { max-width: 540px; }
.problem-h { position: relative; margin-top: 22px; display: grid; font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.02; min-height: 2.1em; }
.problem-h .ph { grid-area: 1 / 1; will-change: opacity, transform; }
.problem-h .ph-a { opacity: calc(1 - var(--p, 0) * 2.4); transform: translateY(calc(var(--p, 0) * -26px)); }
.problem-h .ph-b { opacity: calc((var(--p, 0) - 0.34) * 2.7); transform: translateY(calc((1 - var(--p, 0)) * 26px)); }
.problem-lede { margin-top: 26px; max-width: 460px; }
.problem-cue { display: flex; align-items: stretch; gap: 20px; margin-top: 48px; }
.problem-cue-track { position: relative; width: 10px; min-height: 168px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); flex: 0 0 auto; }
.problem-cue-track .pcue-fill { position: absolute; top: 0; left: 0; right: 0; border-radius: 999px; background: linear-gradient(var(--accent), color-mix(in oklch, var(--accent) 35%, transparent)); box-shadow: 0 0 20px var(--accent-glow); }
.problem-cue-track .pcue-thumb { position: absolute; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 24px var(--accent-glow); animation: cueThumbPulse 2s var(--ease) infinite; }
@keyframes cueThumbPulse { 0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--accent-glow); } 50% { box-shadow: 0 0 0 4px var(--bg), 0 0 34px var(--accent); } }
.problem-cue-text { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.pcue-label { font-family: var(--font-mono); font-size: 16px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pcue-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.pcue-chevs { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; }
.pcue-chevs i { width: 11px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); opacity: 0.25; animation: chevPulse 1.5s var(--ease) infinite; }
.pcue-chevs i:nth-child(2) { animation-delay: 0.18s; }
.pcue-chevs i:nth-child(3) { animation-delay: 0.36s; }
@keyframes chevPulse { 0%, 100% { opacity: 0.18; } 50% { opacity: 1; } }

.problem-stack { position: relative; height: 540px; display: flex; align-items: center; justify-content: center; perspective: 1800px; }
.engine { position: relative; width: min(468px, 96%); height: 460px; transform-style: preserve-3d; }

/* cross-section axis labels */
.engine-axis { position: absolute; left: 12px; font-size: 10px; letter-spacing: 0.2em; color: var(--text-4); z-index: 40; pointer-events: none; }
.engine-axis-top { top: -26px; color: var(--accent); }
.engine-axis-bot { bottom: -26px; }

/* data conduit: continuous dim guide + bright active segment */
.engine-guide { pointer-events: none; position: absolute; left: 22px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent); z-index: 0; }
.engine-spine { pointer-events: none; position: absolute; left: 22px; width: 2px; border-radius: 2px; z-index: 1;
  top: calc(50% - (48px + var(--p, 0) * 144px));
  height: calc(96px + var(--p, 0) * 288px);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 60%, transparent), color-mix(in oklch, var(--accent) 22%, transparent));
  box-shadow: 0 0 12px -2px var(--accent-glow); }
.engine-spine .packet { position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: packetFlow 2.6s linear infinite; }
.engine-spine .packet.p2 { animation-delay: .85s; }
.engine-spine .packet.p3 { animation-delay: 1.7s; }
@keyframes packetFlow { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* the stack of engine plates */
.engine-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg); animation: engineFloat 10s var(--ease) infinite; }
@keyframes engineFloat {
  0%, 100% { transform: rotateX(8deg) translateY(0); }
  50% { transform: rotateX(9.5deg) translateY(-9px); }
}
.eplate {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 80px;
  transform: translateY(calc(-50% + (var(--i) - 2) * (24px + var(--p, 0) * 72px)));
  z-index: calc(10 - var(--i));
}
.ep-port { position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--accent-line); z-index: 2; box-shadow: 0 0 0 3px var(--bg); transition: background .35s var(--ease), border-color .35s, box-shadow .35s; }
.eplate.lit .ep-port { background: var(--accent-dim); }
.eplate.active .ep-port { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 14px var(--accent-glow); }
.eplate-inner {
  display: flex; align-items: center; gap: 14px;
  height: 100%; padding: 0 18px 0 42px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 16px 38px -22px rgba(0,0,0,0.8);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.eplate.lit .eplate-inner { border-color: var(--accent-line); }
.eplate.active .eplate-inner { border-color: var(--accent-line); background: radial-gradient(160% 240% at 0% 0%, var(--accent-soft), transparent 52%), linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 20px 48px -22px var(--accent-glow); }
.ep-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text-2); flex: 0 0 auto; transition: border-color .35s, background .35s, color .35s; }
.eplate.lit .ep-icon { border-color: var(--accent-line); color: var(--accent-dim); }
.eplate.active .ep-icon { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.ep-text { display: flex; flex-direction: column; min-width: 0; }
.ep-k { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.ep-d { font-size: 11px; color: var(--text-3); margin-top: 3px; letter-spacing: 0.02em; }
.ep-preview { margin-left: auto; width: 96px; height: 46px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; flex: 0 0 auto; opacity: 0.4; transition: opacity .35s var(--ease); }
.eplate.lit .ep-preview, .eplate.active .ep-preview { opacity: 1; }
/* No hover-lift — the stack is a scroll-driven display, not clickable cards
   (a hover animation on only some plates read as inconsistent/broken). */
.ep-0 .eplate-inner, .ep-1 .eplate-inner, .ep-2 .eplate-inner, .ep-3 .eplate-inner, .ep-4 .eplate-inner { will-change: transform; }

/* ── mini schematic previews ── */
.pv { width: 100%; height: 100%; padding: 6px; display: flex; }
.pv-site { flex-direction: column; gap: 4px; }
.pv-site .pv-bar { display: flex; gap: 3px; }
.pv-site .pv-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-3); }
.pv-site .pv-hero { height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-line), transparent); }
.pv-site .pv-row { display: flex; gap: 4px; flex: 1; }
.pv-site .pv-row b { flex: 1; border-radius: 3px; background: var(--surface-3); }
.pv-dash { gap: 4px; align-items: stretch; }
.pv-dash .pv-tile { width: 22px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--line); }
.pv-dash .pv-bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; }
.pv-dash .pv-bars i { flex: 1; background: var(--accent); opacity: .7; border-radius: 2px 2px 0 0; }
.pv-db { flex-direction: column; gap: 3px; justify-content: center; }
.pv-db .pv-rec { display: flex; align-items: center; gap: 5px; }
.pv-db .pv-rec i { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: .65; }
.pv-db .pv-rec b { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.pv-wave { align-items: center; gap: 2.5px; }
.pv-wave i { flex: 1; background: var(--accent); opacity: .75; border-radius: 2px; align-self: center; }
.pv-nodes { position: relative; }
.pv-nodes .pv-hub { position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.pv-nodes .pv-node { position: absolute; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-3); }
.pv-nodes .pv-node.n1 { top: 8px; } .pv-nodes .pv-node.n2 { top: 50%; margin-top: -3px; } .pv-nodes .pv-node.n3 { bottom: 8px; }
.pv-nodes .pv-link { position: absolute; left: 16px; height: 1px; background: var(--accent-line); transform-origin: left center; }
.pv-nodes .pv-link.l1 { top: 14px; width: 64px; transform: rotate(-16deg); }
.pv-nodes .pv-link.l2 { top: 50%; width: 66px; }
.pv-nodes .pv-link.l3 { bottom: 14px; width: 64px; transform: rotate(16deg); }

@media (max-width: 900px) {
  .problem { height: auto; }
  .problem-sticky { position: static; height: auto; padding-block: 96px; }
  .problem-inner { grid-template-columns: 1fr; gap: 56px; }
  .problem-h { --p: 1; min-height: 0; }
  .problem-h .ph-a { display: none; }
  .problem-stack { height: 540px; --p: 1; }
  .engine-3d { animation: none; transform: rotateX(6deg); --p: 1; }
  .engine { --p: 1; }
}
@media (max-width: 460px) {
  .ep-preview { display: none; }
  .engine { width: 100%; }
}

/* ── 02 BUILD (animated feature rows) ────────────────────────────────────── */
.build-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 64px; }
h2.build-title { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.feat-list { display: flex; flex-direction: column; gap: clamp(56px, 9vh, 120px); }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feat-row.rev .feat-copy { order: 2; }
.feat-row.rev .feat-visual { order: 1; }
.feat-copy { max-width: 480px; }
.feat-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.015em; margin-top: 14px; }
.feat-desc { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; margin-top: 16px; text-wrap: pretty; }
.feat-points { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.feat-points li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--text-2); }
.fp-tick { position: relative; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--accent-line); background: var(--accent-soft); flex: 0 0 auto; }
.fp-tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(42deg); }
.feat-visual { display: flex; justify-content: center; }
@media (max-width: 880px) {
  /* minmax(0,1fr) (not 1fr=minmax(auto,1fr)) so a wide min-content child can't
     blow the track past the viewport at 320px */
  .feat-row, .feat-row.rev { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .feat-row.rev .feat-copy { order: 1; }
  .feat-row.rev .feat-visual { order: 2; }
  .feat-copy { max-width: none; min-width: 0; }
}

/* ── 03 WORK (guided tour of shipped work) ───────────────────────────────── */
.work { position: relative; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18), transparent); }
.work-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
h2.work-title { font-size: clamp(2rem, 4vw, 3.2rem); }

.wtour { display: grid; grid-template-columns: minmax(238px, 0.92fr) minmax(0, 1.7fr); gap: 30px; align-items: center; margin-top: 30px; }
.wtour-main { min-width: 0; }
.wtour-side { min-width: 0; }

/* left: pick-a-piece tabs (name + description on the active one) */
.wtour-tabs { display: flex; flex-direction: column; gap: 10px; }
.wtour-tab { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 15px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.wtour-tab:hover { border-color: var(--line-2); transform: translateX(2px); }
.wtour-tab.on { border-color: var(--accent-line); background: radial-gradient(140% 180% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.wtour-tab-l { font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.wtour-tab.on .wtour-tab-l { color: var(--accent); }
.wtour-tab-d { font-size: 13px; line-height: 1.5; color: var(--text-3); display: none; }
.wtour-tab.on .wtour-tab-d { display: block; color: var(--text-2); }
.wtour-tab-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: wtourProg 9s linear forwards; }
@keyframes wtourProg { from { width: 0; } to { width: 100%; } }

/* right: the browser frame */
.wtour-frame { min-width: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 44px 100px -55px rgba(0,0,0,0.85), 0 0 80px -46px var(--accent-glow); }
.wtour-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.wtour-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.wtour-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.wtour-url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; max-width: 360px; margin: 0 auto; min-width: 0; font-size: 11px; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; overflow: hidden; }
.wtour-url > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.wtour-lock { width: 7px; height: 7px; border-radius: 2px; border: 1px solid var(--text-4); flex: 0 0 auto; }
.wtour-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.08em; color: var(--accent); flex: 0 0 auto; }
.wtour-stage { position: relative; overflow: hidden; aspect-ratio: 1440 / 860; background: var(--bg-2); border-radius: 0 0 13px 13px; isolation: isolate; }
.wtour-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .32s var(--ease-out); }
.wtour-slide.on { opacity: 1; pointer-events: auto; }
.wtour-shot { display: block; width: 100%; height: 100%; position: relative; }
.wtour-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.04); transition: transform 1.1s var(--ease-out); }
.wtour-slide.on .wtour-shot img { transform: scale(1); }

/* floating feature pins over the screenshot. Same treatment as the §04 .anno-pin
   tags: the cyan dot marks the exact spot, a hairline connector reaches to an
   offset [label] pill, the dot pulses, and the connector lights cyan on hover. */
.wtour-pin { position: absolute; z-index: 5; width: 0; height: 0; }
.wtour-pin:hover, .wtour-pin:focus-visible { z-index: 6; outline: none; }
/* the dot sits ON the pin's point (the wrapper's top-left = the target) */
.wtour-pin-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 12px var(--accent-glow); transform: translate(-50%, -50%); transition: box-shadow .2s; }
.wtour-pin-dot::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent-line); opacity: 0; animation: annoPulse 3.4s var(--ease) infinite; }
.wtour-pin:hover .wtour-pin-dot, .wtour-pin:focus-visible .wtour-pin-dot { box-shadow: 0 0 18px var(--accent-glow); }
.wtour-pin:hover .wtour-pin-dot::before, .wtour-pin:focus-visible .wtour-pin-dot::before { animation: none; }
/* hairline connector from the dot toward the label */
.wtour-pin::after { content: ""; position: absolute; top: 0; height: 1px; width: 27px; opacity: 1; }
.wtour-pin:not(.flip)::after { left: 7px; background: linear-gradient(90deg, var(--accent), transparent); }
.wtour-pin.flip::after { right: 7px; background: linear-gradient(270deg, var(--accent), transparent); }
/* the label pill — offset past the connector; visible by default (it IS the callout) */
.wtour-pin-lbl { position: absolute; top: 0; transform: translateY(-50%); white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; color: var(--text); background: color-mix(in oklch, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; box-shadow: 0 12px 32px -18px rgba(0,0,0,0.85); transition: border-color .2s, background .2s, color .2s; }
.wtour-pin:not(.flip) .wtour-pin-lbl { left: 34px; }
.wtour-pin.flip .wtour-pin-lbl { right: 34px; }
.wtour-pin:hover .wtour-pin-lbl, .wtour-pin:focus-visible .wtour-pin-lbl { border-color: var(--accent-line); background: color-mix(in oklch, var(--bg) 84%, transparent); }
.wtour-pinlist { display: none; }

.work-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.work-proof .wp-stat { font-family: var(--font-display); font-weight: 600; color: var(--text-2); font-size: 16px; }
.work-proof .wp-stat b { color: var(--accent); }
.work-proof .wp-sep { color: var(--line-3); }
.work-cta { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  .wtour-slide { transition: none; }
  .wtour-shot img, .wtour-slide.on .wtour-shot img { transform: none; }
  .wtour-tab-prog { display: none; }
}
@media (max-width: 960px) {
  .wtour { grid-template-columns: 1fr; gap: 20px; }
  .wtour-pin { display: none; }
  .wtour-pinlist { display: flex; flex-wrap: wrap; gap: 7px 9px; margin-top: 14px; list-style: none; padding: 0; }
  .wtour-pinlist li { font-size: 11px; letter-spacing: 0.02em; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .wtour-pinlist li::before { content: "\203A"; color: var(--accent); margin-right: 6px; }
}

/* ── 04 SYSTEM (annotated product showcase) ──────────────────────────────── */
.system-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 760px; }
h2.system-title { font-size: clamp(1.9rem, 4vw, 3.2rem); }

.showcase { position: relative; margin-top: 8px; }
.showcase-stage { position: relative; }
.showcase-stage .portal { width: 100%; max-width: 100%; }

/* floating annotation tags pinned to the portal's real regions (desktop) */
.anno-pin { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in oklch, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-2); cursor: pointer; white-space: nowrap; box-shadow: 0 12px 32px -18px rgba(0,0,0,0.85); transition: border-color .2s, color .2s, transform .2s, box-shadow .2s, background .2s; }
.anno-pin:hover, .anno-pin.on { border-color: var(--accent-line); color: var(--text); transform: scale(1.04); box-shadow: 0 16px 46px -20px var(--accent-glow); background: color-mix(in oklch, var(--bg) 84%, transparent); }
.anno-dot { position: relative; display: inline-flex; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); flex: 0 0 auto; transition: background .2s, border-color .2s, box-shadow .2s; }
.anno-pin:hover .anno-dot, .anno-pin.on .anno-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.anno-lbl { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
/* sit in the margin opened up by the scaled portal; dot faces the portal */
.anno-pin.anno-l { left: 4px; flex-direction: row-reverse; padding: 7px 8px 7px 14px; }
.anno-pin.anno-r { right: 4px; flex-direction: row; }
/* hairline connector from the dot toward the portal region */
.anno-pin::after { content: ""; position: absolute; top: 50%; width: 30px; height: 1px; opacity: 0.6; transition: background .2s, opacity .2s; }
.anno-pin.anno-l::after { left: 100%; background: linear-gradient(90deg, var(--line-2), transparent); }
.anno-pin.anno-r::after { right: 100%; background: linear-gradient(270deg, var(--line-2), transparent); }
.anno-pin:hover::after, .anno-pin.on::after { opacity: 1; }
.anno-pin.anno-l:hover::after, .anno-pin.anno-l.on::after { background: linear-gradient(90deg, var(--accent), transparent); }
.anno-pin.anno-r:hover::after, .anno-pin.anno-r.on::after { background: linear-gradient(270deg, var(--accent), transparent); }
/* gentle always-on pulse so the tags read as interactive */
.anno-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-line); opacity: 0; animation: annoPulse 3.4s var(--ease) infinite; }
.anno-pin:hover .anno-dot::before, .anno-pin.on .anno-dot::before { animation: none; }
@keyframes annoPulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2); opacity: 0; } }
/* dim the other tags while one is active, to focus attention */
.showcase.is-spot .anno-pin:not(.on) { opacity: 0.42; }

/* Below 1060px the portal is full-width and there's no room to pin tags beside
   it — and a detached chip row is useless (you can't see the frame it controls),
   so the tags simply don't show. The live portal carries the section on its own. */
.anno-list { display: none; }
@media (max-width: 1060px) {
  .anno-pin { display: none; }
}

/* ── 05 PROOF ────────────────────────────────────────────────────────────── */
.proof { border-block: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.proof-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 46px 28px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; }
.proof-num { font-size: clamp(2rem, 4vw, 3.2rem); }
.proof-cap { font-size: 13px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.02em; }
@media (max-width: 760px) { .proof-wrap { grid-template-columns: repeat(2, 1fr); } .proof-item:nth-child(3) { border-left: 0; } .proof-item:nth-child(3), .proof-item:nth-child(4) { border-top: 1px solid var(--line); } }
/* below ~460 the big proof numbers (WCAG AA / 99–100) can't fit a 2-col item →
   stack to one column with top dividers (was overflowing the page by ~24px at 320) */
@media (max-width: 460px) {
  .proof-wrap { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 30px 24px; }
  .proof-item:first-child { border-top: 0; }
}

/* ── 06 CONTACT ──────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
h2.contact-title { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-top: 22px; }
.contact-sub { margin-top: 22px; max-width: 420px; }
.contact-channels { display: flex; flex-direction: column; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.cc-row { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cc-k { font-size: 11px; letter-spacing: 0.12em; color: var(--text-4); width: 80px; }
.contact-channels .ul { font-size: 16px; color: var(--text); }
/* touch targets — keep small links/buttons >= 44px tall */
.footer-cta .ul { display: inline-flex; align-items: center; min-height: 44px; }
.pt-btn { min-height: 44px; }

.contact-formwrap { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 30px; }
.cform { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.1em; color: var(--text-4); }
.field label .opt { color: var(--text-4); text-transform: none; letter-spacing: 0; }
.field input, .field textarea { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; color: var(--text); font-family: var(--font-body); font-size: 16px; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.err, .field textarea.err { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in oklch, var(--bad) 14%, transparent); }
.cform-submit { margin-top: 4px; justify-content: center; }
.cform-fine { font-size: 11px; color: var(--text-4); text-align: center; letter-spacing: 0.02em; }
.cform-err { font-size: 12px; color: #f87171; text-align: center; letter-spacing: 0.01em; }
/* honeypot — hidden from people, catches bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 4px; }
.fs-mark { position: relative; width: 58px; height: 58px; border-radius: 16px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; transform: scale(0.4); opacity: 0; animation: fsPop .5s var(--ease-out) forwards; box-shadow: 0 0 0 0 var(--accent-glow); }
@keyframes fsPop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; box-shadow: 0 14px 40px -16px var(--accent-glow); } }
.fs-ring { position: absolute; inset: -1px; border-radius: 16px; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; animation: fsRing 1.1s var(--ease-out) .18s forwards; }
.fs-ring-2 { animation-delay: .42s; }
@keyframes fsRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.85); opacity: 0; } }
.fs-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: fsDraw .45s var(--ease-out) .34s forwards; }
@keyframes fsDraw { to { stroke-dashoffset: 0; } }
.form-sent h3 { font-size: 1.8rem; }
.form-sent p { color: var(--text-3); }
.form-sent .btn { margin-top: 8px; }
.fs-h, .fs-p, .fs-btn { opacity: 0; transform: translateY(10px); animation: fsUp .55s var(--ease-out) forwards; }
.fs-h { animation-delay: .46s; } .fs-p { animation-delay: .58s; } .fs-btn { animation-delay: .72s; }
@keyframes fsUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fs-mark, .fs-ring, .fs-check path, .fs-h, .fs-p, .fs-btn { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── 07 FOOTER ───────────────────────────────────────────────────────────── */
.footer { padding: 70px var(--gutter) 50px; border-top: 1px solid var(--line); }
.footer-wrap { max-width: var(--maxw); margin-inline: auto; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; }
.footer-mark { font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.03em; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; }
.footer-rule { height: 1px; background: var(--line); margin: 36px 0 22px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); flex-wrap: wrap; gap: 10px; }
.footer-mail { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s; }
.footer-mail:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Book-a-call modal — our own overlay with a plain Calendly iframe inside.
   Ad blockers kill Calendly's widget script, not a normal iframe to the page. */
.cal-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 4vw; background: color-mix(in oklch, #05070b 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: calFade .2s var(--ease-out); }
body.modal-open .nav { opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
@keyframes calFade { from { opacity: 0; } to { opacity: 1; } }
.cal-box { width: 100%; max-width: 460px; height: min(720px, 86vh); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9); }
.cal-bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-title { font-size: 11px; letter-spacing: 0.16em; color: var(--text-2); flex: 1; }
.cal-newtab { font-size: 11px; letter-spacing: 0.04em; color: var(--text-3); text-decoration: none; transition: color .2s; }
.cal-newtab:hover { color: var(--accent); }
.cal-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: border-color .2s, color .2s; }
.cal-close:hover { border-color: var(--accent-line); color: var(--accent); }
.cal-frame { flex: 1; width: 100%; border: 0; background: var(--bg); }

@media (max-width: 760px) {
  .hero-right .hero-wrap { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 48px; }
  .hero-console { transform: rotateX(10deg) rotateY(0); }
  .hero-float { display: none; }
  .problem-line { font-size: clamp(1.7rem, 8vw, 2.6rem); }
}
