/* Onyxion Enterprises: D2 direction (dark operating-system hero, white interiors, one mint accent,
   copper reserved for the Onyxion wordmark). Anti-Claude rule applies: no cream, no brown ink, no serif. */
:root {
  --night: #05080D; --night-2: #0B111A; --wire: rgba(160, 190, 220, 0.2);
  --t1: #EEF3F8; --t2: #8E9BAC; --mint: #3CF2A0; --copper: #D68C54;
  --white: #FFFFFF; --ink: #0A1017; --ink-2: #566172; --line: #E4E8EE; --stage: #0B0F14;
  --pad: clamp(18px, 3.5vw, 48px); --maxw: 1440px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--t1); font-family: 'Host Grotesk', system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--mint); color: #03140C; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 11px 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); margin: 0 0 26px; }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(60,242,160,.14); flex: none; }
.kicker.dark { color: var(--ink-2); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 8px; font: 500 14px 'Host Grotesk', sans-serif; text-decoration: none; background: var(--mint); color: #03140C; will-change: transform; }
.btn.ghost { background: rgba(5,8,13,.35); color: inherit; border: 1px solid var(--wire); }

/* ---------- opening ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--night); display: grid; place-items: center; }
.loader-mark { width: min(360px, 62vw); -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 35%, #000 50%, rgba(0,0,0,.18) 65%); mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 35%, #000 50%, rgba(0,0,0,.18) 65%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.loader-mark img { display: block; width: 100%; height: auto; }
.reduce .loader { display: none; }

/* ---------- nav ---------- */
nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 70px; display: flex; align-items: center; gap: 36px; padding: 0 var(--pad); transition: background .35s, border-color .35s, color .35s; border-bottom: 1px solid transparent; }
nav.solid { background: #05080D; border-bottom-color: var(--wire); }
nav.on-white { background: #FFFFFF; border-bottom-color: var(--line); color: var(--ink); }
nav.on-white .logo img { filter: invert(1) brightness(.12); }
nav.on-white .btn.ghost { background: transparent; border-color: var(--line); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 17px; width: auto; display: block; transition: filter .35s; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { font-size: 14px; text-decoration: none; opacity: .72; transition: opacity .2s; }
.links a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; overflow: hidden; background: var(--night); }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,8,13,.94) 0%, rgba(5,8,13,.72) 30%, rgba(5,8,13,.12) 58%, rgba(5,8,13,0) 72%), linear-gradient(0deg, rgba(5,8,13,.7) 0%, rgba(5,8,13,0) 30%); }
.dim { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 3; height: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; align-items: center; padding: 90px var(--pad) 40px; }
h1 { margin: 0 0 24px; font: 500 clamp(44px, 5vw, 88px)/.98 'Host Grotesk', sans-serif; letter-spacing: -.045em; }
h1 .soft { color: #9AA7B8; }
.lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--t2); max-width: 44ch; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.readout { margin-top: 42px; border-top: 1px solid var(--wire); padding-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; opacity: 0; }
.year { font: 500 clamp(40px, 3.6vw, 60px)/1 'Geist Mono', monospace; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.year small { font-size: .35em; color: var(--t2); letter-spacing: .1em; margin-left: 6px; }
.stage-text { font-size: 15px; line-height: 1.5; color: var(--t2); min-height: 3em; }
.stage-text b { color: var(--t1); font-weight: 500; }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); font: 500 10px 'Geist Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--t2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(var(--mint), transparent); }
.diagram { width: 100%; height: min(78vh, 760px); opacity: 0; }
.diagram svg { width: 100%; height: 100%; overflow: visible; }
.wire { stroke: var(--wire); stroke-width: 1.2; fill: none; }
.wire.live { stroke: rgba(60,242,160,.6); }
.ring { fill: none; stroke: var(--wire); stroke-dasharray: 2 6; }
.node rect { fill: rgba(11,17,26,.92); stroke: var(--wire); stroke-width: 1.2; }
.node.core rect { fill: rgba(14,22,34,.95); stroke: rgba(60,242,160,.75); }
.node .n1 { fill: var(--t1); font: 500 15px 'Host Grotesk', sans-serif; }
.node .n2 { fill: var(--t2); font: 400 10.5px 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.node .dot, .pulse { fill: var(--mint); }
.node.ghost rect { fill: rgba(5,8,13,.6); stroke: rgba(60,242,160,.55); stroke-dasharray: 5 5; }
.node.ghost .n1 { fill: var(--mint); }
.layer-label { fill: var(--t2); font: 400 10px 'Geist Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- statement ---------- */
.statement { background: var(--night); position: relative; z-index: 4; }
.statement .wrap { padding-top: clamp(110px, 18vh, 220px); padding-bottom: clamp(110px, 18vh, 220px); }
.big { margin: 0; max-width: 21ch; font: 500 clamp(34px, 4.6vw, 76px)/1.08 'Host Grotesk', sans-serif; letter-spacing: -.04em; }
.big .w { color: rgba(238,243,248,.16); }
.reduce .big .w { color: var(--t1); }

/* ---------- portfolio ---------- */
.interior { background: var(--white); color: var(--ink); position: relative; z-index: 4; }
.interior > .wrap { padding-top: clamp(90px, 13vh, 150px); padding-bottom: 40px; }
.int-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.int-head h2, .layer h2, .story h2, footer h2 { margin: 0; font: 500 clamp(38px, 4.4vw, 72px)/1 'Host Grotesk', sans-serif; letter-spacing: -.045em; }
.int-head p { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 48ch; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); }
.visual { position: sticky; top: 96px; height: calc(100svh - 130px); border-radius: 18px; overflow: hidden; background: var(--stage); }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.visual img.on { opacity: 1; transform: scale(1); }
.visual .cap { position: absolute; left: 22px; bottom: 20px; z-index: 2; font: 500 11px 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(238,243,248,.7); }
.visual .cap b { color: var(--mint); font-weight: 500; }
.list { padding: 8vh 0 16vh; }
.co { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 44px 0; }
.co .brand { display: block; width: auto; align-self: flex-start; object-fit: contain; margin-bottom: 26px; }
.co .brand-row, .co .agency, .co .shot { align-self: flex-start; }
.co .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 600 18px 'Host Grotesk', sans-serif; letter-spacing: -.01em; }
.co .brand-row .brand { margin: 0; }
.co .i { font: 500 12px 'Geist Mono', monospace; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 14px; }
.co h3 { margin: 0 0 16px; font: 500 clamp(30px, 2.8vw, 46px)/1.02 'Host Grotesk', sans-serif; letter-spacing: -.035em; }
.co p { margin: 0 0 20px; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 44ch; }
.co .agency { display: flex; align-items: center; gap: 10px; margin: -4px 0 20px; font-size: 14px; color: var(--ink-2); }
.co .agency img { width: auto; }
.co .meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font: 500 12px 'Geist Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.co .meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; text-transform: none; letter-spacing: 0; font: 500 15px 'Host Grotesk', sans-serif; }
.co .shot { margin-top: 26px; width: min(360px, 100%); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.co .shot img { display: block; width: 100%; }
.co .inline-visual { display: none; }

/* ---------- shared layer ---------- */
.layer { background: var(--night); position: relative; z-index: 4; }
.layer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); padding-top: clamp(100px, 15vh, 180px); padding-bottom: clamp(100px, 15vh, 180px); }
.layer-left { position: sticky; top: 110px; align-self: start; }
.layer-lede { color: var(--t2); font-size: 18px; line-height: 1.55; max-width: 42ch; margin: 22px 0 34px; }
.layer-still { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--wire); }
.layer-still img { display: block; width: 100%; }
.layer-still figcaption { font: 500 10px 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); padding: 12px 14px; }
.layer-list { list-style: none; margin: 0; padding: 0; }
.layer-list li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 34px 0; border-top: 1px solid var(--wire); opacity: .32; transition: opacity .5s ease; }
.layer-list li.on { opacity: 1; }
.layer-list li:last-child { border-bottom: 1px solid var(--wire); }
.layer-list .n { font: 500 13px 'Geist Mono', monospace; color: var(--mint); padding-top: 8px; }
.layer-list h3 { margin: 0 0 8px; font: 500 clamp(26px, 2.4vw, 40px)/1.05 'Host Grotesk', sans-serif; letter-spacing: -.03em; }
.layer-list p { margin: 0; color: var(--t2); font-size: 17px; line-height: 1.55; max-width: 46ch; }
.reduce .layer-list li { opacity: 1; }

/* ---------- story ---------- */
.story { background: var(--white); color: var(--ink); position: relative; z-index: 4; }
.story .wrap { padding-top: clamp(100px, 15vh, 180px); padding-bottom: clamp(60px, 9vh, 100px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: end; margin-bottom: 56px; }
.story-copy p { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin: 0 0 16px; max-width: 50ch; }
.team { margin: 0 0 72px; border-radius: 18px; overflow: hidden; background: var(--stage); }
.team img { display: block; width: 100%; height: min(72vh, 760px); object-fit: cover; object-position: 50% 28%; }
.team figcaption { font: 500 11px 'Geist Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--t2); padding: 14px 18px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figures div { padding: 26px 24px 20px 0; }
.figures b { display: block; font: 500 clamp(34px, 3.4vw, 54px)/1 'Host Grotesk', sans-serif; letter-spacing: -.04em; }
.figures span { font: 500 11px 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- footer ---------- */
footer { background: var(--night); color: var(--t2); position: relative; z-index: 4; }
footer .wrap { padding-top: clamp(100px, 15vh, 170px); padding-bottom: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: end; padding-bottom: 60px; border-bottom: 1px solid var(--wire); }
footer h2 { color: var(--t1); max-width: 15ch; }
.foot-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-mid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; padding: 48px 0; font-size: 16px; line-height: 1.6; color: var(--t1); }
.foot-mid .kicker { display: flex; margin-bottom: 14px; }
.foot-mid .careers a { color: var(--mint); text-decoration: none; }
.foot-cos { list-style: none; margin: 0; padding: 0; }
.foot-cos li { padding: 6px 0; }
.foot-cos a { color: var(--t2); text-decoration: none; transition: color .2s; }
.foot-cos a:hover { color: var(--t1); }
.foot-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 28px; border-top: 1px solid var(--wire); font: 500 11px 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.foot-mark { width: min(240px, 50vw); height: auto; display: block; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; align-content: end; padding-top: 110px; min-height: 100svh; }
  .scrim { background: linear-gradient(0deg, rgba(5,8,13,.96) 20%, rgba(5,8,13,.55) 60%, rgba(5,8,13,.2) 100%); }
  .film { object-position: 60% 40%; }
  .diagram, .readout, .scroll-hint { display: none; }
  .links { display: none; } nav > .btn { margin-left: auto; }
  .int-head, .split, .layer-grid, .story-grid, .foot-mid { grid-template-columns: 1fr; }
  .visual { display: none; }
  .co { min-height: 0; }
  .co .inline-visual { display: block; border-radius: 14px; overflow: hidden; margin-bottom: 22px; background: var(--stage); }
  .co .inline-visual img { display: block; width: 100%; }
  .layer-left { position: static; }
  .layer-list li { opacity: 1; }
  .figures { grid-template-columns: 1fr 1fr; }
  .team img { height: 48vh; }
}

/* size attributes are for layout stability only; let CSS set the rendered height */
.co .shot img, .co .inline-visual img, .layer-still img { height: auto; }
