/* Nakilab: startup studio site (Monolith design). Brandbook v1.0: the studio is monochrome; hue belongs to products. */
:root {
  --bg: #000;
  --panel: #0a0a0b;
  --line: rgba(255,255,255,.12);
  --line-hi: rgba(255,255,255,.28);
  --text: #fff;
  --muted: #A1A1AA;   /* Silver: secondary text on black */
  --dim: #71717A;     /* Ash: large or meta text only */
  --red: #FF4D4D;     /* Alert Red: errors only, never a brand colour */
  --si-blue: #2E6AFF; /* siPaw accent: only inside the siPaw project card */
  --font: "Barlow", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --text-font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --data: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --wrap: 1280px;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { font: 400 17px/1.55 var(--text-font); color: var(--muted); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font); color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.label { font: 500 13px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons (SpaceX-style outlined, uppercase) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px; border: 2px solid #fff; background: transparent; color: #fff; font: 600 14px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover { background: #fff; color: #000; }
.btn:hover svg { transform: translateX(4px); }
.btn.solid { background: #fff; color: #000; }
.btn.solid:hover { background: transparent; color: #fff; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s; }
.nav.scrolled { background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav img { height: 22px; width: auto; }
.nav ul { display: flex; gap: 34px; list-style: none; padding: 0; margin-left: auto; }
.nav ul a { font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #fff; opacity: .85; transition: opacity .2s; }
.nav ul a:hover { opacity: 1; }

/* ---------- Full-screen panels ---------- */
.panel { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 160px 0; overflow: hidden; isolation: isolate; border-top: 1px solid rgba(255,255,255,.06); }
.panel h2 { font-size: clamp(40px, 6vw, 84px); max-width: 14ch; }
.panel .sub { margin-top: 22px; max-width: 34rem; font-size: clamp(17px, 1.5vw, 20px); }
.panel .btns { margin-top: 36px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; align-items: flex-end; padding: 0 0 12vh; border-top: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.85)); z-index: -1; pointer-events: none; }
.hero h1 { font-size: clamp(42px, 6.2vw, 96px); max-width: 15ch; margin-top: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero .sub { color: #d4d4d8; }
.si-tag { display: inline-flex; align-items: center; gap: 10px; }
.si-tag b { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid #fff; color: #fff; font: 600 12px/1 var(--font); letter-spacing: .04em; }
.scroll-cue { position: absolute; right: 32px; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 600 11px/1 var(--font); letter-spacing: .24em; color: var(--muted); writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(#fff, transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.js .hero .label, .js .hero .sub, .js .hero .btns { opacity: 0; transform: translateY(16px); }
.js .hero h1 .line > span { transform: translateY(110%); }
.loaded .hero .label, .loaded .hero .sub, .loaded .hero .btns { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.loaded .hero h1 .line > span { transform: none; transition: transform 1.2s var(--ease); }
.loaded .hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.loaded .hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.loaded .hero .sub { transition-delay: .35s; }
.loaded .hero .btns { transition-delay: .45s; }

/* ---------- How it works ---------- */
.how .wrap { width: 100%; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.step { position: relative; padding: 36px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .num { font: 500 13px/1 var(--data); letter-spacing: .04em; color: var(--muted); }
.step h3 { font-size: 28px; margin: 18px 0 10px; }
.step .vis { height: 170px; display: grid; place-items: center; margin-top: 18px; perspective: 800px; }

/* ---------- Mission: pinned 3D scroll story ---------- */
.mission { height: 320vh; padding: 0; display: block; min-height: 0; overflow: visible; }
.mission .sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
#mission-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.mission .steps { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 8px; }
.mission .steps li { display: flex; align-items: baseline; gap: 18px; font: 600 clamp(34px, 4.6vw, 68px)/1.05 var(--font); text-transform: uppercase; color: #2a2a2e; transition: color .5s var(--ease), transform .6s var(--ease); }
.mission .steps li span { font: 500 13px/1 var(--data); letter-spacing: .04em; color: var(--dim); transform: translateY(-.8em); }
.mission .steps li.on { color: #fff; transform: translateX(8px); }
.mission .steps li.on span { color: #fff; }
.mission .mline { margin-top: 30px; max-width: 26rem; font-size: 19px; color: #d4d4d8; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mission .mline.show { opacity: 1; transform: none; }
.mprog { position: absolute; right: 32px; top: 50%; width: 2px; height: 160px; transform: translateY(-50%); background: var(--line); overflow: hidden; }
.mprog i { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(var(--p, 0)); }

/* ---------- Projects ---------- */
.projects { display: block; }
.projects .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.plist { display: grid; gap: 20px; margin-top: 56px; }
.project { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 520px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.project .copy { padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; }
.project .status { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--data); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.project .status i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 2s infinite; }
.project.sipaw .status i { background: var(--si-blue); }
@keyframes blink { 50% { opacity: .35; } }
.project h3 { font-size: clamp(40px, 5vw, 72px); margin: 22px 0 14px; }
.project .ptile { --tw: clamp(150px, 16vw, 210px); width: var(--tw); height: auto; margin-left: calc(var(--tw) * -.124); }
.project.sipaw .ptile { margin-bottom: 4px; }
/* siValue (product 02): Gold accent, faded until launch */
.project.sivalue { grid-template-columns: 1fr; min-height: 0; }
.project.sivalue .copy { flex-direction: row; justify-content: flex-start; align-items: center; gap: 40px; padding: 40px 56px; flex-wrap: wrap; }
.project.sivalue .status i { background: #F5C400; }
.project.sivalue .copy p { color: var(--dim); }
.soon-tile { position: relative; flex: none; }
.soon-tile .ptile { margin-left: 0; opacity: .38; }
.soon-tile .stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg; white-space: nowrap; padding: 10px 16px; border: 1px solid #F5C400; background: rgba(0,0,0,.85); color: #fff; font: 600 13px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; }
.project .copy p { max-width: 26rem; }
.project .btns { margin-top: 32px; }
.project.next { grid-template-columns: 1fr; min-height: 0; border-style: dashed; background: transparent; }
.project.next .copy { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 56px; }
.project.next h3 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0 0; }
.stage { position: relative; min-height: 440px; overflow: hidden; border-left: 1px solid var(--line); }
/* siPaw stage: Sipo with Milo and Luna, lit by Si Blue */
.stage::before { content: ""; position: absolute; left: 50%; top: 46%; width: 90%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(46,106,255,.30), rgba(46,106,255,.07) 55%, transparent 75%); pointer-events: none; }
.stage .cast { position: absolute; left: 5%; right: 5%; bottom: 11%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.9fr) minmax(0,1fr); align-items: end; }
.stage .sipo { display: block; animation: float 6s ease-in-out infinite; }
.stage .sipo img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(46,106,255,.3)); }
.stage .pet { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stage .pet svg { width: 100%; max-width: 150px; height: auto; filter: drop-shadow(0 16px 26px rgba(0,0,0,.5)); }
.stage .pet span { font: 600 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #fff; padding: 7px 10px; border: 1px solid var(--line-hi); background: rgba(12,12,12,.85); }
.stage .chip { z-index: 2; }
.stage .chip.c2 { top: 24%; bottom: auto; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(12,12,12,.82); border: 1px solid var(--line-hi); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; line-height: 1.3; color: #fff; white-space: nowrap; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--muted); flex: none; }
.chip .dot.on { background: var(--si-blue); border-color: var(--si-blue); }
.chip small { display: block; color: var(--muted); font-size: 11px; }
.chip.c1 { left: 7%; top: 12%; animation: float 7s ease-in-out infinite .5s; }
.chip.c2 { right: 6%; bottom: 22%; animation: float 8s ease-in-out infinite 1.2s; }

/* ---------- SI ---------- */
.si { text-align: center; justify-content: center; }
.si .wrap { display: flex; flex-direction: column; align-items: center; }
.si h2 { max-width: none; }
.si .sub { margin-left: auto; margin-right: auto; }
.caps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.caps span { font: 600 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #fff; padding: 12px 16px; border: 1px solid var(--line-hi); }

/* ---------- Element tile (brandbook: index, year, symbol, category, origin; square corners) ---------- */
.etile { position: relative; width: 132px; aspect-ratio: 1; border: 3px solid #fff; display: grid; place-items: center; color: #fff; flex: none; }
.etile b { font: 600 52px/1 var(--font); letter-spacing: 0; text-transform: none; color: #fff; }
.etile span { position: absolute; font: 500 9px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.etile .tl { top: 10px; left: 10px; font: 500 12px/1 var(--data); letter-spacing: 0; }
.etile .tr { top: 10px; right: 10px; font: 500 12px/1 var(--data); letter-spacing: 0; }
.etile .bl { bottom: 10px; left: 10px; color: var(--muted); }
.etile .br { bottom: 10px; right: 10px; color: var(--muted); }
.etile.big { width: min(300px, 70vw); border-width: 5px; margin-bottom: 48px; }
.etile.big b { font-size: clamp(96px, 14vw, 150px); }
.etile.big .tl, .etile.big .tr { top: 18px; font-size: 18px; }
.etile.big .tl, .etile.big .bl { left: 18px; }
.etile.big .tr, .etile.big .br { right: 18px; }
.etile.big .bl, .etile.big .br { bottom: 18px; font-size: 12px; }

/* ---------- Split panels (need an idea, investors) ---------- */
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; width: 100%; }
.split .art { position: relative; min-height: 420px; display: grid; place-items: center; perspective: 1000px; }

/* ---------- Founders ---------- */
.founders { padding: 72px 0; border-top: 1px solid rgba(255,255,255,.06); }
.founders .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.founders ul { list-style: none; padding: 0; display: flex; gap: 56px; flex-wrap: wrap; }
.founders li { display: flex; flex-direction: column; gap: 8px; }
.founders li > b { font: 600 28px/1 var(--font); text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.founders li > span { font: 500 12px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.founders li .etile { width: 176px; margin-bottom: 12px; }
.founders li .etile .bl, .founders li .etile .br { font-size: 8px; letter-spacing: .08em; }

/* ---------- Intake ---------- */
.intake .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; width: 100%; }
.intake .portal-bg { position: absolute; left: 18%; top: 46%; width: 520px; height: 520px; margin: -260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); z-index: -1; pointer-events: none; }
form.intake-form { display: grid; gap: 18px; padding: 36px; background: rgba(10,10,11,.88); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-hi); }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg { position: relative; padding: 0; margin: 0; min-width: 0; }
.seg label { position: relative; display: grid; place-items: center; min-height: 52px; padding: 8px 10px; text-align: center; font: 600 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg label + label { border-left: 1px solid var(--line-hi); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: #000; }
.seg label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field label, .field .flabel { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #e4e4e7; }
.field .req { color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-hi); border-radius: 0; background: rgba(255,255,255,.03); color: #fff; font: 400 16px/1.4 var(--text-font); transition: border-color .2s, background .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3a3a8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: #111; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.06); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { font-size: 13px; color: var(--red); min-height: 0; }
.field .err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-hi); font: 500 14px/1 var(--text-font); color: #e4e4e7; cursor: pointer; letter-spacing: 0; text-transform: none; }
.checks input { accent-color: #fff; width: 16px; height: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { accent-color: #fff; width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake-form [data-for] { display: grid; gap: 18px; }
.intake-form [data-for][hidden] { display: none; }
.intake-form .btn { width: 100%; }
.intake-form .btn[disabled] { opacity: .5; cursor: progress; }
.form-status { font-size: 15px; color: var(--red); }
.form-status:empty { display: none; }
.form-done { display: grid; gap: 14px; padding: 48px 36px; border: 1px solid var(--line); background: rgba(10,10,11,.88); text-align: center; justify-items: center; }
.form-done h3 { font-size: 34px; }
.form-done .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; }
.form-done .tick svg { width: 26px; height: 26px; color: #fff; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer img { height: 18px; width: auto; }
footer ul { list-style: none; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
footer a, footer span { font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
footer a:hover { color: #fff; }

/* ---------- Monolith 3D components (CSS) ---------- */
.slab-wrap { position: relative; width: 220px; height: 200px; display: grid; place-items: center; perspective: 900px; }
.portal-css { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); opacity: .75; pointer-events: none; }
.slab { --w: 64px; --h: 128px; --d: 22px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; animation: slab 12s ease-in-out infinite; }
@keyframes slab { 0%, 100% { transform: rotateX(-10deg) rotateY(-35deg); } 50% { transform: rotateX(-10deg) rotateY(35deg); } }
.slab i { position: absolute; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(160deg, #3a3d44, #0d0e10 70%); }
.slab .f, .slab .b { left: 0; top: 0; width: var(--w); height: var(--h); }
.slab .f { transform: translateZ(calc(var(--d) / 2)); display: grid; place-items: center; overflow: hidden; }
.slab .b { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.slab .l, .slab .r { top: 0; width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2); }
.slab .l { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.slab .r { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.slab .t, .slab .bt { left: 0; width: var(--w); height: var(--d); top: calc(50% - var(--d) / 2); }
.slab .t { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.slab .bt { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.slab .f img { width: 68%; height: auto; }
.slab .f::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.slab .f b { font: 600 40px/1 var(--font); color: #fff; }
.pair { position: relative; width: 64px; height: 128px; transform-style: preserve-3d; animation: slab 12s ease-in-out infinite; }
.pair .slab { position: absolute; inset: 0; animation: none; }
.pair .wire i { background: transparent; border: 1px dashed rgba(255,255,255,.45); }
.pair .wire .f::after { display: none; }
.pair .solid { transform-origin: 50% 100%; animation: machine 5s var(--ease) infinite; }
.pair .solid i { background: linear-gradient(160deg, rgba(255,255,255,.42), rgba(255,255,255,.06)); border-color: rgba(255,255,255,.8); }
@keyframes machine { 0% { transform: scaleY(0); opacity: 1; } 55%, 85% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.layers { position: relative; width: 104px; height: 104px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg); }
.layers i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.22); background: linear-gradient(160deg, #3a3d44, #0d0e10); animation: explode 4s var(--ease) infinite; }
.layers i:nth-child(1) { --z: -34px; }
.layers i:nth-child(2) { --z: 0px; }
.layers i:nth-child(3) { --z: 34px; border-color: rgba(255,255,255,.7); }
@keyframes explode { 0%, 15%, 85%, 100% { transform: translateZ(0); } 40%, 60% { transform: translateZ(var(--z)); } }
.layers.big { width: 200px; height: 200px; }
.layers.big i:nth-child(1) { --z: -70px; }
.layers.big i:nth-child(3) { --z: 70px; }
.rise { position: relative; width: 180px; height: 160px; display: grid; place-items: end center; perspective: 600px; }
.floorgrid { position: absolute; left: -30%; right: -30%; bottom: 0; height: 120px; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 22px); transform: perspective(500px) rotateX(68deg); transform-origin: bottom; -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); }
.rise .floorgrid { height: 90px; }
.slab.sm { --w: 38px; --h: 88px; --d: 16px; margin-bottom: 22px; animation: rise 4s var(--ease) infinite; }
@keyframes rise { 0% { transform: translateY(70px) rotateX(-10deg) rotateY(-30deg); opacity: 0; } 30% { opacity: 1; } 55%, 85% { transform: translateY(0) rotateX(-10deg) rotateY(-30deg); opacity: 1; } 100% { transform: translateY(0) rotateX(-10deg) rotateY(-30deg); opacity: 0; } }
.stage .floorgrid { left: 0; right: 0; height: 200px; }
.split .art .floorgrid { height: 200px; }
.pillars { position: relative; height: 380px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 52px; perspective: 1000px; padding-bottom: 36px; }
.pillar { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pillar .slab { animation-duration: 14s; animation-delay: calc(var(--i) * -2.5s); }
.pillar span { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: 10px 12px; border: 1px solid var(--line-hi); background: rgba(12,12,12,.85); white-space: nowrap; }
.pillars .portal-css { width: 300px; height: 300px; top: 0; left: 50%; margin-left: -150px; opacity: .45; }
.pillars .floorgrid { height: 140px; }
.qslab .slab { --w: 90px; --h: 180px; --d: 30px; }
.qslab .portal-css { width: 300px; height: 300px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; translate: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav ul { display: none; }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .project, .split .wrap, .intake .wrap { grid-template-columns: 1fr; }
  .stage { min-height: 340px; order: -1; }
  .stage { min-height: 380px; }
  .stage .chip.c1 { left: 6%; top: 6%; }
  .stage .chip.c2 { left: 6%; right: auto; top: calc(6% + 56px); }
  .split .art { min-height: 340px; order: -1; }
}
@media (max-width: 640px) {
  .panel { padding: 112px 0; }
  .hero { padding-bottom: 72px; }
  .hero .copy { padding-top: 46vh; }
  .scroll-cue, .mprog { display: none; }
  .steps4 { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step .vis { height: 150px; }
  .project .copy, .project.next .copy, .project.sivalue .copy { padding: 32px 24px; }
  .mission { height: 260vh; }
  .mission .sticky { align-items: flex-end; padding-bottom: 72px; }
  .row2 { grid-template-columns: 1fr; }
  form.intake-form { padding: 24px 18px; }
  .seg label { font-size: 11px; letter-spacing: .06em; }
  .pillars { gap: 18px; transform: scale(.8); }
  .intake .portal-bg { left: 50%; top: 14%; width: 340px; height: 340px; margin: -170px; }
  .founders ul { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .label, .js .hero .sub, .js .hero .btns { opacity: 1; transform: none; translate: none; }
  .js .hero h1 .line > span { transform: none; }
  .mission { height: auto; }
  .mission .sticky { position: relative; min-height: 100svh; }
  .mission .steps li { color: #fff; }
  .mission .mline { opacity: 1; transform: none; }
}

/* ---------- Blog ---------- */
.page-blog main { padding-top: 76px; }
.blog-head { padding: 96px 0 56px; border-bottom: 1px solid var(--line); }
.blog-head h1 { font-size: clamp(44px, 6.4vw, 92px); margin-top: 22px; max-width: 16ch; }
.blog-list { padding: 56px 0 120px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; min-height: 280px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .25s, background .25s; }
.post-card:hover { border-color: rgba(255,255,255,.4); background: #0f0f11; }
.post-card.featured { grid-column: 1 / -1; min-height: 340px; justify-content: flex-end; }
.post-card .meta, .post-head .meta { font: 500 12px/1 var(--data); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.post-card h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.post-card.featured h2 { font-size: clamp(32px, 4vw, 56px); max-width: 20ch; }
.post-card p { color: var(--muted); max-width: 46rem; }
.post-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.post-card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card:hover .more svg { transform: translateX(4px); }
.blog-empty { padding: 80px 0; display: grid; gap: 18px; justify-items: start; }
.blog-empty h2 { font-size: clamp(32px, 4vw, 52px); }
.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.wrap.narrow { max-width: 780px; }
.post-head { padding: 96px 0 48px; border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.post-head .back { text-decoration: none; }
.post-head .back:hover { color: #fff; }
.post-head h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.04; margin: 24px 0 24px; text-transform: none; letter-spacing: -.01em; }
.prose { font-size: 19px; line-height: 1.75; color: #d4d4d8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { text-transform: none; letter-spacing: -.005em; line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 20px; }
.prose a { color: #fff; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 2px solid #fff; padding-left: 20px; color: #fff; font-size: 21px; }
.prose code { font-family: var(--data); font-size: .88em; padding: 2px 6px; background: rgba(255,255,255,.07); }
.prose pre { padding: 20px; background: var(--panel); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags span { font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line-hi); color: var(--muted); }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 72px; margin-bottom: 120px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-cta h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 14px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { padding: 24px; min-height: 0; }
  .blog-head, .post-head { padding: 64px 0 40px; }
  .prose { font-size: 18px; }
}
