:root {
  --ink: #0b0b0d;
  --paper: #f2f1ec;
  --lime: #c8ff3e;
  --grey: #8d8c86;
  --line: #2a2a2c;
  --hot: #ff5a3c;
  --gutter: clamp(20px, 4vw, 48px);
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--paper); }
a:hover { color: var(--lime); }
::selection { background: var(--lime); color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.mono { font: 500 12px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.lime { color: var(--lime); }
.grey { color: var(--grey); }
.paper { color: var(--paper); }
.wrap { max-width: 1440px; margin: 0 auto; box-sizing: border-box; }
.eyebrow { color: var(--lime); }
canvas { display: block; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter); mix-blend-mode: difference; }
.nav a { text-decoration: none; color: #fff; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); }
@media (max-width: 480px) { .nav nav a.nav-sm-hide { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; margin: -4px -2px -4px -4px; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; top: 72px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--paper); pointer-events: none; }
.hud-left { left: var(--gutter); }
.hud-right { right: var(--gutter); align-items: flex-end; }
#spark { width: 180px; height: 48px; }
.live { display: flex; align-items: center; gap: 8px; color: var(--grey); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.4s ease-in-out infinite; }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vw, 48px); pointer-events: none; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(44px, 9.2vw, 168px); line-height: .86; letter-spacing: -.02em; text-transform: uppercase; user-select: none; }
.hero h1 .line { display: flex; flex-wrap: nowrap; }
.hero h1 .ch { display: inline-block; white-space: pre; font-variation-settings: 'wdth' 100, 'wght' 800; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-top: clamp(16px, 2.4vw, 32px); }
.hero-foot p { margin: 0; max-width: 30em; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; color: #b9b8b1; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; pointer-events: auto; }
.btn-ghost, .btn-lime { text-decoration: none; padding: 14px 18px; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.btn-ghost:hover { border-color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (max-width: 760px) {
  .hud-right { display: none; }
  .hud { top: 64px; }
}

/* Hero film */
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
#terrain { opacity: 0; }
.hud { opacity: 0; }
.film-layer { position: absolute; inset: 0; pointer-events: none; }
.f-prompt { position: absolute; left: 0; top: 0; transform-origin: left center; white-space: nowrap; font: 500 clamp(13px, 4.2vw, 64px) 'JetBrains Mono', monospace; color: var(--paper); opacity: 0; will-change: transform; }
.f-caret { display: inline-block; width: .56em; height: 1em; margin-left: .1em; vertical-align: -.16em; background: var(--lime); }
.f-years { position: absolute; inset: 0; opacity: 0; }
.f-feed { position: absolute; right: var(--gutter); top: 0; bottom: 0; width: min(760px, 46vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
#f-feed { display: flex; flex-direction: column; gap: clamp(14px, 1.5vw, 28px); will-change: transform; }
#f-feed div { font: 400 clamp(13px, 1.45vw, 28px) 'JetBrains Mono', monospace; color: var(--grey); white-space: nowrap; }
#f-feed div.hl { color: var(--lime); }
.f-count-wrap { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; }
.f-count { font: 800 clamp(130px, 21vw, 400px)/0.82 'Archivo'; color: var(--paper); letter-spacing: -.02em; font-variation-settings: 'wdth' 62; }
.f-years-label { font: 800 clamp(26px, 3.8vw, 72px) 'Archivo'; font-variation-settings: 'wdth' 80; text-transform: uppercase; color: var(--lime); opacity: 0; }
.f-dom { position: absolute; left: 50%; top: 50%; width: 92vw; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.2vw, 20px); text-align: center; opacity: 0; will-change: transform, opacity; }
.f-dom-idx { font: 500 clamp(14px, 1.45vw, 28px) 'JetBrains Mono', monospace; color: var(--lime); overflow: hidden; }
.f-dom-word { font-weight: 800; line-height: .9; text-transform: uppercase; color: var(--paper); letter-spacing: -.02em; }
.f-dom-bar { height: clamp(5px, .55vw, 10px); background: var(--lime); }
.f-dom-desc { margin: 4px 0 0; max-width: 30em; font-size: clamp(14px, 1.2vw, 19px); line-height: 1.5; color: #b9b8b1; overflow: hidden; }
.f-dot { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--lime); transform: scale(0); }
.hero h1 .line { opacity: 0; will-change: transform, opacity; }
.hero-line-track { margin-top: clamp(14px, 2vw, 28px); }
.hero-line { height: 4px; width: 0; background: var(--lime); }
#hero-foot { opacity: 0; }
.film-ctrl { position: absolute; right: var(--gutter); top: 200px; z-index: 3; }
.film-ctrl button { font: inherit; text-transform: inherit; letter-spacing: inherit; background: rgba(11,11,13,.6); color: var(--grey); border: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }
.film-ctrl button:hover { color: var(--lime); border-color: var(--lime); }
@media (max-width: 760px) {
  .f-feed { left: var(--gutter); width: auto; opacity: .35; }
  .film-ctrl { top: 140px; }
}

/* Ticker */
.ticker { background: var(--lime); color: var(--ink); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg) scale(1.02); margin: 18px 0; position: relative; z-index: 2; }
#ticker-row { display: flex; width: max-content; white-space: nowrap; font: 800 clamp(20px, 2.4vw, 34px) 'Archivo'; font-variation-settings: 'wdth' 80; text-transform: uppercase; }
#ticker-row > span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; }
#ticker-row .star { font-size: .6em; }

/* Pinned scenes */
.scene { position: relative; }
.stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Approach · attention */
.s-attn { height: 320vh; }
#attn { position: absolute; inset: 0; width: 100%; height: 100%; }
.attn-copy { position: absolute; left: var(--gutter); top: clamp(80px, 12vh, 140px); max-width: 640px; z-index: 1; }
.attn-copy h2, .pipe-copy h3 { margin: 18px 0 14px; font-weight: 800; font-size: clamp(36px, 5.4vw, 92px); line-height: .92; text-transform: uppercase; letter-spacing: -.02em; font-variation-settings: 'wdth' 78; }
.attn-copy h2 em { font-style: normal; color: var(--lime); }
.attn-copy p, .pipe-copy p { margin: 0; max-width: 32em; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; color: #b9b8b1; text-wrap: pretty; }
.attn-meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; gap: 12px; color: var(--grey); z-index: 1; }

/* Services · pipeline */
.s-pipe { height: 560vh; }
.pipe-head { position: absolute; left: var(--gutter); right: var(--gutter); top: 70px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; z-index: 2; }
.pipe-steps { display: flex; gap: 6px; }
.pipe-steps span { padding: 7px 10px; border: 1px solid var(--line); color: var(--grey); transition: background .3s, color .3s, border-color .3s; }
.pipe-steps span.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pipe-body { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: clamp(20px, 3vw, 48px); padding: 120px var(--gutter) 48px; box-sizing: border-box; }
.pipe-copy { position: relative; height: 100%; }
.pipe-copy article { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; will-change: opacity, transform; }
.pipe-n { color: var(--lime); }
.pipe-copy h3 { font-size: clamp(34px, 4.2vw, 72px); text-wrap: balance; }
.pipe-n { letter-spacing: .06em; }
.pipe-copy ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--paper); }
.pipe-copy li::before { content: '→ '; color: var(--lime); }
.pipe-vis { position: relative; height: 100%; min-height: 0; border: 1px solid var(--line); background: #0e0e10; }
#pipe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .pipe-steps { display: none; }
  .pipe-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding-top: 100px; padding-bottom: 28px; gap: 16px; }
  .pipe-vis { grid-row: 1; }
  .pipe-copy { grid-row: 2; height: 18em; }
  .pipe-copy article { top: 0; transform: none; }
  .pipe-copy h3 { font-size: 28px; margin: 8px 0 8px; }
  .pipe-copy p { font-size: 13.5px; }
  .pipe-copy ul { display: none; }
}

/* Build log */
.build { padding: clamp(70px, 9vw, 150px) var(--gutter) clamp(60px, 8vw, 120px); }
.build-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.build-title { margin: 18px 0 0; font-weight: 800; font-size: clamp(48px, 8vw, 140px); line-height: .88; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wdth' 78; }
#build-loading::after { content: attr(data-dots); color: var(--lime); }
.build-head p { margin: 0; max-width: 30em; color: #b9b8b1; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; }
.loadbar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)) auto; gap: 6px; margin-top: clamp(36px, 5vw, 64px); }
.seg { position: relative; height: 18px; border: 1px solid var(--line); overflow: hidden; }
.seg i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--lime); }
.seg.done i { animation: segFill 1.1s cubic-bezier(.2,.8,.2,1) .2s forwards; }
.seg.building i { opacity: .55; animation: segBuild 2.8s ease-in-out infinite; }
.seg:not(.done):not(.building):not(.plus)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(242,241,236,.08), transparent); animation: segShimmer 2.6s linear infinite; }
.seg:nth-child(4)::after { animation-delay: .25s !important; } .seg:nth-child(5)::after { animation-delay: .5s !important; } .seg:nth-child(6)::after { animation-delay: .75s !important; }
.seg:nth-child(7)::after { animation-delay: 1s !important; } .seg:nth-child(8)::after { animation-delay: 1.25s !important; } .seg:nth-child(9)::after { animation-delay: 1.5s !important; } .seg:nth-child(10)::after { animation-delay: 1.75s !important; }
.seg.plus { border: 0; height: auto; display: flex; align-items: center; padding: 0 4px; font: 800 22px/1 'Archivo'; color: var(--lime); }
@keyframes segFill { to { transform: scaleX(1); } }
@keyframes segBuild { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(.42); } }
@keyframes segShimmer { to { left: 100%; } }
.loadbar-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 clamp(28px, 4vw, 48px); color: var(--grey); }
.build .pt-card { margin-bottom: 16px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.slot { position: relative; padding: 20px; border: 1px solid var(--line); background: #0e0e10; display: flex; flex-direction: column; gap: 10px; min-height: 170px; overflow: hidden; }
.slot-top { display: flex; justify-content: space-between; color: var(--grey); }
.slot .st { padding: 3px 7px; border: 1px solid var(--line); font-size: 10px; }
.slot .st-build { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.slot h3 { margin: 4px 0 0; font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; font-variation-settings: 'wdth' 82; min-height: 1em; overflow-wrap: anywhere; }
.slot p { margin: 0; color: #b9b8b1; font-size: 14px; line-height: 1.45; }
.slot-bar { margin-top: auto; height: 3px; background: var(--line); }
.slot-bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.slot.in .slot-bar i { width: calc(var(--to) * 100%); }
.slot-lab h3 { color: #4a4a4c; letter-spacing: .02em; font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); }
.slot-lab p { color: var(--grey); font-size: 11px; margin-top: auto; }
.slot-lab::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(242,241,236,.025) 0 2px, transparent 2px 4px); pointer-events: none; }
.slot-plus { border-style: dashed; }
.slot-plus h3 { color: var(--lime); }
.day-one { display: flex; align-items: center; gap: 10px; width: max-content; margin-bottom: 12px; color: var(--lime); text-decoration: none; pointer-events: auto; }
.day-one:hover { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .seg i, .seg::after { animation: none !important; } .seg.done i { transform: scaleX(1); } .seg.building i { transform: scaleX(.42); } }

/* Probe teaser */
.pt-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); border: 1px solid rgba(200,255,62,.45); background: radial-gradient(120% 140% at 100% 0%, rgba(200,255,62,.10), transparent 55%), #0e0e10; text-decoration: none; color: var(--paper); transition: border-color .3s, transform .3s; }
.pt-card:hover { border-color: var(--lime); transform: translateY(-3px); color: var(--paper); }
.pt-badge { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); }
.pt-card h2 { margin: 18px 0 16px; font-weight: 800; font-size: clamp(38px, 5.4vw, 92px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wdth' 78; }
.pt-card p { margin: 0 0 24px; max-width: 32em; color: #b9b8b1; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; }
.pt-cta { display: inline-block; padding: 14px 18px; background: var(--lime); color: var(--ink); }
.pt-card:hover .pt-cta { background: var(--paper); }
.pt-right { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--ink); font-size: 12px; }
.pt-line { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.pt-dots { flex: 1; border-bottom: 1px dashed var(--line); transform: translateY(-3px); }
.pt-foot { margin-top: 6px; color: var(--grey); font-size: 10.5px; }
.nav-probe { color: var(--lime) !important; }
@media (max-width: 860px) { .pt-card { grid-template-columns: 1fr; } }

/* Why Pivyon */
.edge { padding: clamp(80px, 11vw, 180px) var(--gutter) clamp(60px, 8vw, 120px); }
.edge-head { margin: 22px 0 0; max-width: 18em; font-weight: 800; font-size: clamp(34px, 5.2vw, 88px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wdth' 78; text-wrap: balance; }
.edge-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.edge-stat { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.edge-n { font: 800 clamp(64px, 8vw, 132px)/0.9 'Archivo'; font-variation-settings: 'wdth' 70; letter-spacing: -.02em; }
.edge-stat p { margin: 14px 0 0; color: var(--grey); letter-spacing: .06em; max-width: 24em; line-height: 1.6; }
.edge-sub { margin: clamp(32px, 4vw, 56px) 0 0; max-width: 34em; font-size: clamp(20px, 2vw, 30px); line-height: 1.3; color: #b9b8b1; text-wrap: pretty; }
.edge-sub em { font-style: normal; color: var(--lime); }

/* Field notes */
.findings { padding: clamp(80px, 10vw, 160px) var(--gutter); }
.findings-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.findings h2, .engage-head, .contact-head { margin: 18px 0 0; font-weight: 800; font-size: clamp(40px, 6vw, 104px); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wdth' 78; }
.findings-head p { margin: 0; max-width: 28em; color: #b9b8b1; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.term { border: 1px solid var(--line); background: #0e0e10; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--grey); font-size: 11px; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term-dots i:first-child { background: var(--hot); }
.term-body { height: clamp(360px, 46vh, 520px); overflow: hidden; padding: 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; font: 400 clamp(12px, 1.05vw, 15px)/1.5 'JetBrains Mono', monospace; }
.f-row { display: grid; grid-template-columns: 7.5em 5.5em minmax(0, 1fr); gap: 4px 14px; animation: rowIn .35s ease-out; }
.f-row .tag { color: var(--paper); }
.f-row .sev { font-weight: 500; }
.f-row .sev.crit { color: var(--hot); } .f-row .sev.high { color: #ffb23c; } .f-row .sev.med { color: var(--lime); } .f-row .sev.low { color: var(--grey); }
.f-row .what { color: var(--paper); }
.f-row .fix { grid-column: 3; color: var(--grey); }
.f-row .fix b { color: var(--lime); font-weight: 400; }
.term-caret { display: inline-block; width: .6em; height: 1.1em; background: var(--lime); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .term-bar span:nth-child(2) { display: none; }
  .f-row { grid-template-columns: auto auto; }
  .f-row .what, .f-row .fix { grid-column: 1 / -1; }
}

/* Engagements */
.engage { padding: clamp(60px, 8vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.offer { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); background: #0e0e10; overflow: hidden; transition: border-color .3s, transform .3s; }
.offer::before { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(transparent, rgba(200,255,62,.08), transparent); transition: top 1.1s ease; pointer-events: none; }
.offer:hover { border-color: var(--lime); transform: translateY(-4px); }
.offer:hover::before { top: 110%; }
.offer-hot { border-color: rgba(200,255,62,.5); }
.offer-top { display: flex; justify-content: space-between; color: var(--grey); }
.offer h3 { margin: 6px 0 0; font-weight: 800; font-size: clamp(34px, 3.4vw, 54px); line-height: .95; text-transform: uppercase; letter-spacing: -.02em; font-variation-settings: 'wdth' 80; }
.offer p { margin: 0; color: #b9b8b1; font-size: 16px; line-height: 1.5; }
.offer ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.offer li::before { content: '→ '; color: var(--lime); }
.offer-cta { margin-top: auto; padding-top: 14px; text-decoration: none; color: var(--lime); }
.offer-hot .offer-cta { align-self: flex-start; background: var(--lime); color: var(--ink); padding: 12px 16px; }
.offer-hot .offer-cta:hover { background: var(--paper); color: var(--ink); }
.for { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; color: var(--paper); }
.for span:not(.grey)::before { content: '◆ '; color: var(--lime); font-size: .8em; }

/* Founder */
.founder { grid-column: span 2; min-width: 0; }
.founder .bio { grid-column: auto; }
.founder-sig { margin-top: 24px; color: var(--grey); }
@media (max-width: 700px) { .founder { grid-column: auto; } }

.contact-head { margin-bottom: 8px; font-size: clamp(32px, 4.6vw, 80px); }

/* Close */
.s-close { padding: clamp(80px, 12vw, 200px) var(--gutter) clamp(80px, 10vw, 160px); max-width: 1680px; margin: 0 auto; box-sizing: border-box; }
.close-words { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 2vw, 40px); align-items: flex-end; }
.close-words div { font: 800 clamp(52px, 9.5vw, 160px)/0.85 'Archivo'; text-transform: uppercase; letter-spacing: -.02em; opacity: 0; }
.close-words div:last-child { color: var(--lime); }
.close-line-track { display: flex; justify-content: center; margin: clamp(40px, 6vw, 90px) 0 clamp(18px, 2.4vw, 40px); }
.close-line { height: 6px; width: 0; background: var(--lime); }
.close-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: clamp(12px, 1.6vw, 32px); letter-spacing: .06em; opacity: 0; }

/* About */
.about { padding: clamp(40px, 6vw, 100px) var(--gutter) clamp(80px, 10vw, 160px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 80px); }
.about-side { display: flex; flex-direction: column; gap: 24px; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; letter-spacing: .06em; color: var(--grey); }
.stat { font: 800 clamp(64px, 8vw, 120px)/0.9 'Archivo'; font-variation-settings: 'wdth' 70; color: var(--paper); letter-spacing: normal; }
.bio { grid-column: span 2; margin: 0; font-weight: 400; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.25; letter-spacing: -.01em; text-wrap: pretty; min-width: 0; }
.bio span { color: #3a3a3c; transition: color .25s; }
@media (max-width: 700px) { .bio { grid-column: auto; } }

/* Film */
.film { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }
.film .eyebrow { margin-bottom: 24px; }
.film-card { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #141416; border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .3s; }
.film-card:hover { border-color: var(--lime); }
.film-tag { position: absolute; top: 18px; left: 20px; font-size: 11px; color: var(--grey); }
.film-cta { display: flex; align-items: center; gap: 20px; font-weight: 800; font-size: clamp(32px, 6vw, 96px); text-transform: uppercase; font-variation-settings: 'wdth' 75; color: var(--paper); }
.film-play { width: clamp(56px, 7vw, 110px); height: clamp(56px, 7vw, 110px); border-radius: 50%; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: .45em; }

/* Contact */
.contact { padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; border-top: 1px solid var(--line); }
.contact-inner { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.contact-line, .contact-sent { font-weight: 800; font-size: clamp(36px, 7vw, 120px); line-height: 1; text-transform: uppercase; font-variation-settings: 'wdth' 72; }
.contact-line { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--line); padding-bottom: 12px; transition: border-color .2s; }
.contact-line.err { border-color: var(--hot); }
.contact-line input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--paper); font: inherit; font-variation-settings: inherit; text-transform: uppercase; caret-color: var(--lime); }
.contact-line input::placeholder { color: #5d5c58; }
.contact-line button { flex: none; width: clamp(56px, 7vw, 100px); height: clamp(56px, 7vw, 100px); border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); font-size: clamp(22px, 2.6vw, 36px); cursor: pointer; transition: transform .25s; }
.contact-line button:hover { transform: rotate(-45deg) scale(1.06); }
.contact-hint { display: flex; justify-content: space-between; gap: 16px; letter-spacing: .06em; color: var(--grey); }
.blink { animation: blink 1s steps(1) infinite; }
.contact footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--grey); }
.footer-identity { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer-founder strong { color: var(--paper); font-weight: 500; }
.footer-legal { max-width: 100%; }
.contact footer a { color: inherit; text-decoration: none; }
.contact footer a:hover, .contact footer a:focus-visible { color: var(--lime); }

/* Frontier Systems Lab preview: a lit window into the lab, opened by scroll */
.nav-lab { color: var(--lime) !important; }
.s-lab { height: 270vh; }
.s-lab .stick { background: var(--ink); }
.lab-portal { position: absolute; inset: 0; overflow: hidden; clip-path: inset(14% 4% 12% 46%); will-change: clip-path;
  background:
    radial-gradient(50% 55% at 68% 48%, rgba(200,255,62,.09), transparent 70%),
    radial-gradient(40% 40% at 15% 90%, rgba(200,255,62,.04), transparent 70%),
    #0e0e10; }
.lab-portal::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(242,241,236,.09) 1.5px, transparent 1.5px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(75% 75% at 62% 50%, #000, transparent); mask-image: radial-gradient(75% 75% at 62% 50%, #000, transparent); }
#lab-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-portal-hud { position: absolute; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; color: var(--paper); pointer-events: none; }
.lab-portal-hud > span { display: flex; align-items: center; gap: 8px; }
#lab-hud-engine { color: var(--grey); }
.lab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.4s ease-in-out infinite; }
.lab-frame { position: absolute; pointer-events: none; border: 1px solid rgba(200,255,62,.4); box-shadow: 0 0 80px rgba(200,255,62,.08); }
.lab-frame i { position: absolute; width: 14px; height: 14px; border-color: var(--lime); border-style: solid; border-width: 0; }
.lab-frame i:nth-child(1) { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.lab-frame i:nth-child(2) { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.lab-frame i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.lab-frame i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.lab-tease { position: absolute; left: var(--gutter); top: 50%; width: min(40vw, 560px); transform: translateY(-50%); will-change: transform, opacity; }
.lab-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(200,255,62,.45); color: var(--lime); }
.lab-title { margin: 22px 0 18px; font-weight: 800; font-size: clamp(48px, 6.4vw, 112px); line-height: .88; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wdth' 78; }
.lab-tease p { margin: 0; max-width: 28em; color: #b9b8b1; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.lab-list { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: var(--grey); font-size: 11px; }
.lab-list li { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); transition: color .35s, border-color .35s; }
.lab-list b { font-weight: 500; color: #5d5c58; transition: color .35s; }
.lab-list li.on { color: var(--paper); border-color: var(--lime); }
.lab-list li.on b { color: var(--lime); }
.lab-tease-cta { display: inline-block; }
.lab-final { position: absolute; left: var(--gutter); top: 50%; max-width: 640px; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.lab-final.is-live { pointer-events: auto; }
.lab-final-eyebrow { color: var(--lime); }
.lab-final h2 { margin: 18px 0 16px; font-weight: 800; font-size: clamp(42px, 6.2vw, 108px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wdth' 78; }
.lab-final h2 span { color: var(--lime); }
.lab-final p { margin: 0 0 28px; max-width: 26em; color: #b9b8b1; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; }
.lab-enter { display: inline-flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--lime); color: var(--ink) !important; text-decoration: none; transition: background .25s, transform .25s; }
.lab-enter span { transition: transform .25s; }
.lab-enter:hover { background: var(--paper); transform: translateY(-2px); }
.lab-enter:hover span { transform: translateX(4px); }
@media (max-width: 860px) {
  .lab-portal { clip-path: inset(52% 4% 4% 4%); }
  .lab-tease { top: 84px; transform: none; width: auto; right: var(--gutter); }
  .lab-title { font-size: clamp(40px, 11vw, 64px); margin: 14px 0 12px; }
  .lab-tease p { font-size: 14px; }
  .lab-list { margin: 14px 0 0; font-size: 10px; gap: 0 14px; }
  .lab-list li { padding: 6px 0; }
  .lab-tease-cta { display: none; }
  .lab-final { top: 96px; transform: none; right: var(--gutter); }
}
/* The page-wide wipe into the lab: a lime ring opens onto ink */
.lab-transit { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--ink); }
.lab-transit::after { content: ''; position: absolute; inset: 0; background: radial-gradient(28% 28% at var(--x, 50%) var(--y, 50%), rgba(200,255,62,.28), transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .lab-dot { animation: none; }
}
