/* ==========================================================
   Suyash Babad : studio
   Concept: a precision instrument. Deep petrol, brushed brass,
   ivory ink, and one cool "signal" colour for live data.
   ========================================================== */

:root {
    --pad: clamp(20px, 3.4vw, 64px);
    --rail: 0px;
    --f-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
    --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-io: cubic-bezier(.7, 0, .2, 1);
    color-scheme: dark;
}

:root[data-theme="dark"] {
    --bg: #061719;
    --bg2: #0A2226;
    --panel: #0D2A2F;
    --ink: #EEE7D4;
    --ink2: #9DB1AE;
    --line: rgba(238, 231, 212, .13);
    --line2: rgba(238, 231, 212, .3);
    --brass: #D8A94E;
    --ice: #86E3DA;
    --copper: #E8876B;
    --sand: #C9C1A9;
    --on-brass: #1A1204;
    --scrim: rgba(2, 10, 12, .8);
    --grid-dot: rgba(238, 231, 212, .09);
    --grid-dot-hi: rgba(216, 169, 78, .75);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #F1EBDA;
    --bg2: #E7DFC9;
    --panel: #F8F3E6;
    --ink: #0B2227;
    --ink2: #47615F;
    --line: rgba(11, 34, 39, .15);
    --line2: rgba(11, 34, 39, .32);
    --brass: #9A6A0E;
    --ice: #0E8A82;
    --copper: #B8512F;
    --sand: #6E6753;
    --on-brass: #FFFFFF;
    --scrim: rgba(11, 34, 39, .6);
    --grid-dot: rgba(11, 34, 39, .1);
    --grid-dot-hi: rgba(154, 106, 14, .8);
}

:root { --accent: var(--brass); --on-accent: var(--on-brass); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
    font: 400 17px/1.6 var(--f-body);
    background: var(--bg);
    color: var(--ink);
    overflow-x: clip;
    transition: background .4s, color .4s;
}
body.locked { overflow: hidden; }

/* Ambient: a dot grid that lights up under the cursor */
body::before, body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(circle, var(--grid-dot) 1.2px, transparent 1.6px);
    background-size: 30px 30px;
}
body::after {
    background-image: radial-gradient(circle, var(--grid-dot-hi) 1.4px, transparent 1.8px);
    -webkit-mask-image: radial-gradient(circle 190px at var(--mx, -400px) var(--my, -400px), #000, transparent);
    mask-image: radial-gradient(circle 190px at var(--mx, -400px) var(--my, -400px), #000, transparent);
}
main, header, footer, .rail { position: relative; z-index: 1; }

[hidden] { display: none !important; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
    width: 100%; max-width: 1840px; margin: 0 auto;
    padding: 0 var(--pad) 0 calc(var(--pad) + var(--rail));
}
.ico { width: 14px; height: 14px; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 900; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--ink);
    font-weight: 600; text-decoration: none;
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s; }
.link:hover { color: var(--accent); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 700; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.vis { opacity: 1; }
.cursor::before {
    content: ""; position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%;
    background: var(--accent); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .2s;
}
.cursor.link::before { width: 46px; height: 46px; margin: -23px; background: transparent; border: 1.5px solid var(--accent); }
.cursor.label::before { opacity: 0; }
.cursor-label {
    position: absolute; transform: translate(-50%, -50%) scale(.6); opacity: 0; white-space: nowrap;
    padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
    font-size: .88rem; font-weight: 700; transition: opacity .25s, transform .25s var(--ease);
}
.cursor.label .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Page transition curtain ---------- */
.curtain {
    position: fixed; inset: 0; z-index: 800; pointer-events: none;
    background: var(--accent); transform: translateY(100%);
    display: grid; place-items: center;
}
.curtain span { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 14vw, 12rem); color: var(--on-accent); letter-spacing: -.03em; }
.arrive .curtain { transform: none; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 850; display: none; pointer-events: none; }
.intro-on .intro { display: block; pointer-events: auto; animation: introSafety 0s 6s forwards; }
@keyframes introSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro-half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--bg); transition: transform .9s var(--ease-io); }
.intro-half.top { top: 0; } .intro-half.bottom { bottom: 0; }
.intro.open .top { transform: translateY(-100%); }
.intro.open .bottom { transform: translateY(100%); }
.intro-core { position: absolute; inset: 0; display: grid; place-content: center; gap: 22px; text-align: left; width: min(520px, 80vw); margin: auto; transition: opacity .4s; }
.intro.open .intro-core { opacity: 0; }
.intro-title { font-family: var(--f-display); font-weight: 700; font-stretch: 80%; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; line-height: 1; }
.intro-bar { height: 2px; background: var(--line2); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.intro-row { display: flex; justify-content: space-between; font: 500 .8rem var(--f-mono); color: var(--ink2); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line); }
.hd { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-size: .78rem; color: var(--accent); transition: background .3s, color .3s; }
.brand:hover .brand-mark { background: var(--accent); color: var(--on-accent); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a { position: relative; padding: 6px 0; font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.hd-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line2); transition: border-color .2s, background .2s, color .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* ---------- Signal rail (scroll progress as a signal line) ---------- */
.rail { display: none !important; }
@media (min-width: 1200px) { .rail { display: none !important; } :root { --rail: 0px; } }

/* ---------- Common type ---------- */
.sec { padding: clamp(80px, 11vw, 170px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px clamp(20px, 3vw, 56px); align-items: end; margin-bottom: clamp(40px, 6vw, 90px); }
.sec-head h2 { grid-column: 1 / 8; font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: clamp(3rem, 8.4vw, 8.5rem); line-height: .92; letter-spacing: -.03em; }
.sec-head p { grid-column: 8 / 13; color: var(--ink2); font-size: 1.12rem; max-width: 46ch; justify-self: end; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 .8rem var(--f-mono); color: var(--accent); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 108px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 90px); align-items: center; }
.hero-name { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(4.6rem, 14vw, 16rem); line-height: .86; letter-spacing: -.04em; }
.hero-name .line { display: block; overflow: hidden; padding: .02em .04em .1em 0; }
.ch { display: inline-block; transform: translateY(112%); }
.ready .ch { animation: chrise 1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes chrise { from { transform: translateY(112%) rotate(6deg); } to { transform: none; } }
.hero-role { margin-top: clamp(18px, 2.4vw, 34px); font-family: var(--f-display); font-weight: 600; font-stretch: 85%; font-size: clamp(1.3rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; max-width: 24ch; }
.hero-role em { font-style: normal; color: var(--accent); }
.hero-bio { margin-top: 20px; color: var(--ink2); font-size: 1.12rem; max-width: 56ch; }
.hero-bio + .hero-bio { margin-top: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.fade-late { opacity: 0; transform: translateY(18px); }
.ready .fade-late { animation: fadein 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms + 700ms); }
@keyframes fadein { to { opacity: 1; transform: none; } }

.portrait-stage { position: relative; width: min(100%, calc(76vh * .8)); aspect-ratio: 4 / 5; margin-left: auto; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line2); background: var(--bg2); }
.portrait-stage .portrait-photo { width: 100%; height: 100%; object-fit: cover; display: block; }


.scroll-cue { position: absolute; left: calc(var(--pad) + var(--rail)); bottom: 74px; display: flex; align-items: center; gap: 14px; font: 500 .8rem var(--f-mono); color: var(--ink2); }
.scroll-cue i { display: block; width: 1.5px; height: 46px; background: var(--line2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; border-top: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.ticker-row { display: flex; gap: 0; width: max-content; animation: marq 46s linear infinite; }
.ticker-row span { padding: 0 34px; font: 500 .82rem var(--f-mono); color: var(--ink2); white-space: nowrap; }
.ticker-row span b { color: var(--accent); font-weight: 500; }
.ticker-row span::after { content: "+"; margin-left: 68px; color: var(--line2); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Workshop (pinned horizontal journey) ---------- */
.pin { position: relative; border-top: 1px solid var(--line); }
.pin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pin-hud { position: absolute; z-index: 5; left: 0; right: 0; top: 92px; }
.pin-hud .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pin-hud h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: .95; letter-spacing: -.03em; }
.pin-ticks { display: flex; align-items: center; gap: 12px; font: 500 .85rem var(--f-mono); color: var(--ink2); }
.pin-tick { width: 52px; height: 22px; display: grid; align-items: center; }
.pin-tick::before { content: ""; height: 2px; background: var(--line2); transition: background .3s, height .3s; }
.pin-tick.on::before { background: var(--accent); height: 4px; }
.h-track { display: flex; height: 100%; will-change: transform; }
.h-panel { position: relative; flex: 0 0 100%; height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; padding: 190px var(--pad) 84px calc(var(--pad) + var(--rail)); perspective: 1600px; }
.hp-num { position: absolute; right: 2vw; bottom: -3vw; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 34vw; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; transform: translateX(calc(var(--off, 0) * -22vw)); }
.hp-meta { grid-column: 1 / 6; position: relative; z-index: 2; transform: translateX(calc(var(--off, 0) * 6vw)); opacity: calc(1 - var(--abs, 0) * .95); }
.hp-media { grid-column: 6 / 13; position: relative; z-index: 2; transform: translateX(calc(var(--off, 0) * -10vw)) rotateY(calc(var(--off, 0) * -9deg)); opacity: calc(1 - var(--abs, 0) * .6); }
.status { display: inline-flex; align-items: center; gap: 10px; font: 500 .85rem var(--f-mono); color: var(--ink); }
.status i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.status.live i { background: var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.hp-meta h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(2.4rem, 4.8vw, 5.2rem); line-height: .92; letter-spacing: -.03em; margin: 18px 0 16px; }
.hp-sub { font-size: 1.2rem; margin-bottom: 14px; max-width: 34ch; }
.hp-desc { color: var(--ink2); max-width: 46ch; }
.hp-stack { margin-top: 18px; font-size: .92rem; color: var(--ink2); max-width: 48ch; }
.hp-stack b { color: var(--ink); }
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

.ex-frame { position: relative; }
.ex-frame::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--accent); transform: translate(14px, 14px); pointer-events: none; transition: transform .4s var(--ease); }
.ex-frame:hover::before { transform: translate(22px, 22px); }
.ex-stage { position: relative; z-index: 1; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 10; max-height: 60vh; overflow: hidden; cursor: pointer; background: var(--bg2); border: 1.5px solid var(--ink); text-align: left; }
.ex-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle 260px at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .16), transparent 70%); opacity: 0; transition: opacity .3s; }
.ex-stage:hover::after { opacity: 1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.on { opacity: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide.contain img { object-fit: contain; padding: 10%; }
.ex-chip { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .9rem; font-weight: 700; pointer-events: auto; }
.ex-nav-btn { position: absolute; top: 0; bottom: 0; z-index: 4; width: 50%; opacity: 0; background: transparent; border: none; outline: none; }
.ex-nav-btn.prev { left: 0; cursor: w-resize; }
.ex-nav-btn.next { right: 0; cursor: e-resize; }
.ex-nav-hint { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line2); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; opacity: 0.7; pointer-events: none; transition: opacity .25s, transform .25s; }
.ex-stage:hover .ex-nav-hint, .car-stage:hover .ex-nav-hint, .pv-media:hover .ex-nav-hint { opacity: 1; }
.ex-nav-hint.prev { left: 16px; }
.ex-nav-hint.next { right: 16px; }
.ex-under { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; min-height: 28px; font-size: .9rem; color: var(--ink2); }
.dots { display: flex; gap: 6px; }
.dot { width: 22px; height: 22px; display: grid; place-items: center; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink2); transition: background .2s, border-color .2s; }
.dot.on::before { background: var(--accent); border-color: var(--accent); }

.pin.stacked .pin-sticky { position: static; height: auto; overflow: visible; }
.pin.stacked .pin-hud { position: static; padding: 80px 0 0; }
.pin.stacked .pin-ticks { display: none; }
.pin.stacked .h-track { display: block; transform: none !important; }
.pin.stacked .h-panel { height: auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: 48px var(--pad) 24px; border-top: 1px solid var(--line); }
.pin.stacked .hp-meta { grid-column: 1 / 6; transform: none !important; opacity: 1 !important; }
.pin.stacked .hp-media { grid-column: 6 / 13; margin-top: 0; padding: 0 14px 14px 0; transform: none !important; opacity: 1 !important; }
.pin.stacked .hp-num { display: none; }
@media (max-width: 900px) {
    .pin.stacked .h-panel { display: block; }
    .pin.stacked .hp-media { margin-top: 36px; }
}

/* ---------- Toolbox (periodic table of tools) ---------- */
.tb { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.bands { display: grid; gap: 0; }
.band { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.band:last-child { border-bottom: 1px solid var(--line); }
.band h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.35rem; line-height: 1.1; color: var(--tone); }
.band p { margin-top: 8px; font-size: .9rem; color: var(--ink2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 1 / 1.08; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line2); background: color-mix(in srgb, var(--panel) 70%, transparent); opacity: .18; filter: grayscale(1); transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease), filter .6s, transform .35s var(--ease), border-color .25s, background .25s, box-shadow .3s; transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s, 0s, 0s, 0s; }
.band.in .tile { opacity: 1; filter: none; transform: none; }
.tile:hover, .tile.sel { transform: translateY(-6px) scale(1.07); z-index: 2; border-color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, var(--panel)); box-shadow: 0 14px 40px -12px var(--tone); transition-delay: 0s; }
.tile em { font: 500 .72rem var(--f-mono); font-style: normal; color: var(--ink2); }
.tile strong { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; color: var(--tone); }
.tile span { font-size: .78rem; font-weight: 600; line-height: 1.15; }
.tone-core { --tone: var(--sand); } .tone-ml { --tone: var(--brass); } .tone-dl { --tone: var(--ice); } .tone-ship { --tone: var(--copper); }

.sk-panel { position: sticky; top: 100px; min-height: 340px; padding: 26px; border: 1.5px solid var(--ink); background: var(--panel); }
.sk-panel .sym { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: 6rem; line-height: .9; letter-spacing: -.04em; color: var(--tone, var(--accent)); }
.sk-panel h4 { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; margin-top: 10px; }
.sk-panel .meta { font: 500 .8rem var(--f-mono); color: var(--ink2); margin: 6px 0 16px; }
.sk-panel li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.sk-panel .none { color: var(--ink2); font-size: .95rem; }
.sk-panel .btn { margin-top: 20px; padding: 11px 20px; font-size: .92rem; }
.sk-panel.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(10px); opacity: .4; } }
.sk-note { margin-top: 18px; font-size: .85rem; color: var(--ink2); }
.sk-topics { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sk-topics h5, .sk-projects h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ink2); margin-bottom: 10px; font-family: var(--f-mono); }
.sk-projects h5 { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sk-tags span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tone, var(--accent)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 35%, transparent); color: var(--ink); font-weight: 500; }

/* ---------- The road ---------- */
.road { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); min-height: 560px; --p: 0; }
.road-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line2) 0 2px, transparent 2px 14px); }
.road-fill { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -.5px; width: calc(var(--p) * 100%); background: var(--accent); }
.road-probe { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 16px; height: 16px; margin: -7px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 34px var(--accent); }
.ms { position: relative; }
.ms-dot { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -6px 0 0 0; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: background .4s, border-color .4s, transform .4s var(--ease); z-index: 2; }
.ms.lit .ms-dot { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.ms-card { position: absolute; left: 0; width: 145%; padding: 0 0 0 0; opacity: .25; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.ms.lit .ms-card { opacity: 1; transform: none; }
.ms.up .ms-card { bottom: calc(50% + 40px); }
.ms.down .ms-card { top: calc(50% + 40px); }
.ms:last-child .ms-card { left: auto; right: 0; width: 160%; }
.ms-card::before { content: ""; position: absolute; left: 6px; width: 1.5px; background: var(--line2); }
.ms.up .ms-card::before { top: 100%; height: 40px; }
.ms.down .ms-card::before { bottom: 100%; height: 40px; }
.ms-card h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.5rem; line-height: 1.05; letter-spacing: -.01em; }
.ms-card p { margin-top: 8px; font-size: .94rem; color: var(--ink2); max-width: 32ch; }
.ms-card .tag { display: inline-block; margin-top: 10px; font: 500 .78rem var(--f-mono); color: var(--accent); }
.ms:last-child .ms-card::before { left: auto; right: 6px; }
.ms.now .ms-dot { animation: pulse 2.4s ease-out infinite; }

/* ---------- Collection teaser ---------- */
.teaser { overflow: hidden; }
.mq { display: grid; gap: 16px; margin: 0 calc(-1 * var(--pad)) 0 calc(-1 * (var(--pad) + var(--rail))); }
.mq-row { display: flex; gap: 16px; width: max-content; animation: marq 70s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 85s; }
.mq:hover .mq-row { animation-play-state: paused; }
.mq-item { position: relative; display: block; width: clamp(240px, 22vw, 360px); aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); border: 1px solid var(--line2); text-decoration: none; }
.mq-item img, .mq-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.8); }
.mq-item:hover img { transform: scale(1.07); filter: none; }
.mq-item b { position: absolute; left: 0; top: 0; padding: 4px 11px; background: var(--bg); font: 500 .75rem var(--f-mono); }
.mq-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(to top, rgba(3, 12, 14, .88), transparent); color: #EEE7D4; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.mq-item:hover span { opacity: 1; transform: none; }
.teaser-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: clamp(36px, 5vw, 64px); }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 10px; max-width: 70ch; }
.topic-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--line2); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.topic-chip b { font: 500 .78rem var(--f-mono); color: var(--accent); transition: color .25s; }
.topic-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.topic-chip:hover b { color: var(--on-accent); }

.teaser-count { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 22px; }
.teaser-count b { color: var(--accent); font-weight: 800; }


/* ---------- Education ---------- */
.edu-row { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px clamp(20px, 3vw, 56px); padding: clamp(30px, 4.4vw, 60px) 0; border-top: 1px solid var(--line2); }
.edu-row:last-child { border-bottom: 1px solid var(--line2); }
.edu-row::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.edu-row.in::before { transform: scaleX(1); }
.edu-years { grid-column: 1 / 4; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: .9; letter-spacing: -.03em; color: var(--accent); }
.edu-years small { display: block; margin-top: 12px; font: 500 .85rem var(--f-mono); letter-spacing: 0; color: var(--ink2); }
.edu-main { grid-column: 4 / 9; }
.edu-main h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.04; letter-spacing: -.015em; }
.edu-main .school { margin-top: 12px; font-size: 1.2rem; }
.edu-main .focus { margin-top: 6px; color: var(--ink2); }
.edu-side { grid-column: 9 / 13; display: grid; gap: 22px; align-content: start; }
.edu-stat strong { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: .95; letter-spacing: -.03em; }
.edu-stat span { display: block; margin-top: 6px; color: var(--ink2); font-size: .95rem; }
.meter { height: 3px; margin-top: 10px; background: var(--line2); max-width: 260px; }
.meter i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .3s; }
.edu-row.in .meter i { transform: scaleX(var(--v)); }
.edu-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.edu-topics li { padding: 5px 13px; border: 1px solid var(--line2); border-radius: 999px; font-size: .86rem; }
.edu-row.planned .edu-years { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.edu-row.planned .edu-main h3 { color: var(--ink2); }
@media (max-width: 960px) { .edu-years, .edu-main, .edu-side { grid-column: 1 / -1; } }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.cred { display: flex; flex-direction: column; gap: 18px; }
.cred-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); border: 1.5px solid var(--ink); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.cred-img img { width: 100%; height: 100%; object-fit: cover; }
.cred-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 240px at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .18), transparent 70%); opacity: 0; transition: opacity .3s; }
.cred-img:hover::after { opacity: 1; }
.cred h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -.01em; }
.cred p { color: var(--ink2); }
.cred .link { margin-top: auto; align-self: flex-start; }
.cred-degree { justify-content: space-between; padding: 30px; border: 1.5px solid var(--line2); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.cred-degree .big { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(5rem, 11vw, 10rem); line-height: .85; letter-spacing: -.04em; color: var(--accent); }

/* ---------- Studio log ---------- */
.log-stats { display: flex; flex-wrap: wrap; gap: 28px clamp(36px, 7vw, 120px); margin-bottom: clamp(32px, 5vw, 64px); }
.log-stats strong { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 9vw, 9rem); line-height: .9; letter-spacing: -.04em; }
.log-stats span { display: block; margin-top: 10px; color: var(--ink2); font-size: .98rem; }
.heat-scroll { overflow-x: auto; padding-bottom: 10px; }
.heat { min-width: 720px; }
.heat-months { display: grid; gap: 3px; margin-bottom: 8px; font: 500 .74rem var(--f-mono); color: var(--ink2); }
.heat-months span { white-space: nowrap; }
.heat-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.heat-grid i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); opacity: 0; transform: scale(.2); transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(var(--d) * 1ms); }
.heat-grid.in i { opacity: 1; transform: none; }
.heat-grid i[data-l="1"] { background: color-mix(in srgb, var(--ice) 28%, transparent); }
.heat-grid i[data-l="2"] { background: color-mix(in srgb, var(--ice) 52%, transparent); }
.heat-grid i[data-l="3"] { background: color-mix(in srgb, var(--ice) 78%, transparent); }
.heat-grid i[data-l="4"] { background: var(--ice); box-shadow: 0 0 10px color-mix(in srgb, var(--ice) 60%, transparent); }
.heat-note { margin-top: 20px; color: var(--ink2); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 5vw, 96px); }
.contact-lede { grid-column: 1 / 7; }
.contact-lede h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 76%; font-size: clamp(3.2rem, 8.6vw, 9rem); line-height: .9; letter-spacing: -.035em; }
.contact-lede > p { margin-top: 24px; color: var(--ink2); max-width: 44ch; font-size: 1.12rem; }
.mail { display: inline-block; margin-top: 30px; font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: -.01em; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .25s; }
.mail:hover { color: var(--accent); }
.contact-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.form { grid-column: 8 / 13; display: grid; gap: 26px; align-content: start; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1.5px solid var(--line2); color: var(--ink); font: inherit; outline: none; resize: vertical; transition: border-color .25s; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 130px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink2); font-size: .95rem; }
.form-status.err { color: var(--copper); }
.form-status svg { width: 22px; height: 22px; stroke: var(--ice); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .6s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink2); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Overlays: drawer + plate modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 400; display: flex; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.overlay.open { visibility: visible; opacity: 1; transition: opacity .3s; }
.sheet { position: relative; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.sheet-pad { padding: clamp(24px, 4vw, 56px); }
.close { position: sticky; top: 14px; float: right; z-index: 5; margin: 14px 14px 0 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--ink); font-size: 1.5rem; line-height: 1; transition: background .2s, color .2s, transform .3s var(--ease); }
.close:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(90deg); }
#drawer { justify-content: flex-end; }
#drawer .sheet { width: min(1100px, 100%); height: 100%; border-left: 1.5px solid var(--ink); transform: translateX(60px); transition: transform .5s var(--ease); }
#drawer.open .sheet { transform: none; }
#plate-modal { align-items: center; justify-content: center; padding: clamp(0px, 3vw, 40px); }
#plate-modal .sheet { width: min(1180px, 100%); max-height: 100%; border: 1.5px solid var(--ink); transform: translateY(28px) scale(.98); transition: transform .45s var(--ease); }
#plate-modal.open .sheet { transform: none; }

.d-head h2, .pm-head h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.025em; margin: 14px 0 10px; }
.d-head .sub, .pm-head .sub { color: var(--ink2); font-size: 1.1rem; max-width: 60ch; }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 26px; align-items: center; }
.car { margin: 30px 0; }
.car-stage { position: relative; aspect-ratio: 16 / 10; max-height: 62vh; width: 100%; background: #031012; border: 1.5px solid var(--ink); overflow: hidden; }
.car-slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.car-slide.on { display: flex; }
.car-slide img, .car-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: auto; }
.car-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(to top, rgba(3, 12, 14, .9), transparent); color: #EEE7D4; font-size: .9rem; text-align: center; }
.car-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.car-btns { display: flex; gap: 8px; }
.car-count { font: 500 .85rem var(--f-mono); color: var(--ink2); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 6px; }
.thumb { flex: 0 0 96px; height: 62px; overflow: hidden; padding: 0; border: 2px solid transparent; opacity: .6; background: var(--bg2); transition: opacity .2s, border-color .2s; }
.thumb.on { border-color: var(--accent); opacity: 1; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.d-tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 30px; flex-wrap: wrap; margin: 0 calc(-1 * clamp(24px, 4vw, 56px)); padding: 0 clamp(24px, 4vw, 56px); background: var(--bg); border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 14px 0; font-weight: 600; color: var(--ink2); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.d-body { padding-top: 12px; }
.d-body p { margin: 0 0 1em; color: var(--ink2); max-width: 72ch; }
.d-body strong, .d-body b { color: var(--ink); font-weight: 600; }
.d-body h4 { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.8rem; line-height: 1.1; margin: 2em 0 .6em; }
.d-body h5 { font-size: 1.05rem; font-weight: 600; margin: 1.5em 0 .4em; }
.d-body ul:not(.plain), .d-body ol:not(.plain) { list-style: revert; padding-left: 1.2em; color: var(--ink2); margin-bottom: 1em; max-width: 72ch; }
.d-body li { margin-bottom: .45em; }
.d-body pre { overflow-x: auto; padding: 18px; margin: 1.2em 0; background: var(--bg2); border: 1px solid var(--line); font: .82rem/1.35 var(--f-mono); color: var(--ink); }
.architecture-layer { border-left: 2px solid var(--accent); padding-left: 16px; margin: 18px 0; }
.architecture-layer strong { display: block; margin-bottom: 4px; }
.plain { margin: 0 0 1em; padding: 0; }
.plain li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink2); max-width: 72ch; }
.plain li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.d-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.d-two ol { list-style: decimal; padding-left: 1.3em; color: var(--ink2); }
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 28px; margin: 6px 0 10px; }
.d-stats div { padding: 16px 0; border-top: 1px solid var(--line); }
.d-stats strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.d-stats span { font-size: .88rem; color: var(--ink2); }
.kv { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 6px 20px; padding: 18px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.kv dt { font-weight: 600; }
.kv dd { color: var(--ink2); }
.kv .kv-title { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.disclaimer { border: 1.5px solid var(--accent); padding: 18px 20px; margin: 1.4em 0; color: var(--ink); max-width: 72ch; }

.pm-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 28px; }
.pm-meta div { padding: 14px 0; border-top: 1px solid var(--line); }
.pm-meta dt { font-weight: 600; font-size: .9rem; }
.pm-meta dd { color: var(--ink2); font-size: .95rem; }
.pm-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pm-topics span { padding: 5px 13px; border: 1px solid var(--line2); border-radius: 999px; font-size: .85rem; }
.pm-summary { margin: 28px 0 8px; font-size: 1.15rem; max-width: 72ch; }
.report { margin-top: 12px; }
.report p { color: var(--ink2); margin: 0 0 1em; max-width: 72ch; }
.report .report-subtitle { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.5rem; line-height: 1.15; margin: 1.9em 0 .5em; color: var(--ink); }
.report ul { padding-left: 1.2em; color: var(--ink2); margin-bottom: 1em; max-width: 72ch; list-style: disc; }
.report ul ul { margin-top: 6px; list-style: circle; }
.report li { margin-bottom: .4em; }
.report strong { color: var(--ink); font-weight: 600; }
.report a { color: var(--ink); text-underline-offset: 3px; }
.report a:hover { color: var(--accent); }
.report table { border-collapse: collapse; margin: 1em 0 1.4em; width: 100%; max-width: 580px; font-size: .95rem; }
.report th, .report td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.report th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.report td { color: var(--ink2); }
.pm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.pm-step { display: flex; gap: 8px; }

/* ==========================================================
   Collection page
   ========================================================== */
.col-hero { padding: 140px 0 40px; }
.col-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px clamp(20px, 3vw, 56px); align-items: end; }
.col-hero h1 { grid-column: 1 / 8; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(3.6rem, 10.6vw, 12rem); line-height: .86; letter-spacing: -.04em; }
.col-hero-side { grid-column: 8 / 13; display: grid; gap: 22px; }
.col-hero-side p { color: var(--ink2); font-size: 1.12rem; max-width: 46ch; }
.col-hero-side b { color: var(--accent); font-weight: 600; }
.big-search { position: relative; }
.big-search svg { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--accent); }
.big-search input { width: 100%; padding: 16px 70px 16px 38px; background: none; border: 0; border-bottom: 2px solid var(--line2); color: var(--ink); font: 500 1.35rem var(--f-body); outline: none; transition: border-color .25s; }
.big-search input::placeholder { color: var(--ink2); }
.big-search input:focus { border-bottom-color: var(--accent); }
.big-search kbd { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 500 .78rem var(--f-mono); color: var(--ink2); border: 1px solid var(--line2); padding: 3px 9px; border-radius: 6px; }

.filters { padding: 24px 0 8px; border-top: 1px solid var(--line); margin-top: 24px; }
.f-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; padding: 10px 0; }
.f-label { padding-top: 12px; font: 500 .78rem var(--f-mono); color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 18px 14px; border: 1px solid var(--line2); overflow: hidden; font-weight: 600; transition: border-color .25s, background .25s, color .25s, transform .3s var(--ease); }
.chip b { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: color .25s; }
.chip::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--w, 0) * 100%); background: var(--accent); opacity: .65; transition: opacity .25s; }
.chip:hover { border-color: var(--accent); transform: translateY(-3px); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] b { color: var(--on-accent); }
.chip[aria-pressed="true"]::after { background: var(--on-accent); opacity: .5; }
.f-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 18px 0 22px; }
.seg { display: inline-flex; border: 1px solid var(--line2); }
.seg button { padding: 10px 18px; font-size: .92rem; font-weight: 600; color: var(--ink2); transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.f-count { font: 500 .9rem var(--f-mono); color: var(--ink2); }
.f-count b { color: var(--accent); font-weight: 500; font-size: 1.15rem; }
.f-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sort { background: var(--bg); color: var(--ink); border: 1px solid var(--line2); padding: 10px 12px; font: inherit; font-size: .92rem; }

.results { padding: 8px 0 clamp(60px, 8vw, 110px); }
.ix { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 64px); align-items: start; }
.ix-list { height: clamp(520px, calc(100vh - 150px), 920px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line2); padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.ix-row { position: relative; display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: center; width: 100%; padding: 16px 12px 16px 8px; text-align: left; border-bottom: 1px solid var(--line); transition: background .25s, padding .3s var(--ease); animation: rowin .55s var(--ease) both; animation-delay: calc(min(var(--i), 14) * 28ms); }
@keyframes rowin { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.ix-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease); }
.ix-row:hover, .ix-row.sel { background: color-mix(in srgb, var(--accent) 9%, transparent); padding-left: 18px; }
.ix-row.sel::before, .ix-row:hover::before { transform: scaleY(1); }
.ix-no { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: 2rem; line-height: 1; color: var(--ink2); transition: color .25s; }
.ix-row.sel .ix-no, .ix-row:hover .ix-no { color: var(--accent); }
.ix-title { font-weight: 600; font-size: 1.04rem; line-height: 1.25; }
.ix-sub { margin-top: 4px; font-size: .84rem; color: var(--ink2); }
.ix-kind { font: 500 .74rem var(--f-mono); color: var(--ink2); text-align: right; }
.ix-kind small { display: block; margin-top: 4px; font-size: .74rem; }
.ix-preview { position: sticky; top: 92px; }
.pv-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); border: 1.5px solid var(--ink); }
.pv-media img, .pv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 300px at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .16), transparent 70%); }
.pv-media .pv-no { position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 14px; background: var(--bg); font: 500 .85rem var(--f-mono); }
.pv-media.noimg { background: repeating-linear-gradient(135deg, var(--bg2) 0 14px, var(--bg) 14px 28px); }
.pv-body { padding-top: 24px; animation: pvin .5s var(--ease); }
@keyframes pvin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pv-body h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: .98; letter-spacing: -.025em; }
.pv-body > p { margin-top: 14px; color: var(--ink2); max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin-top: 20px; }
.pv-facts div { padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pv-facts dt { font-weight: 600; margin-bottom: 2px; }
.pv-facts dd { color: var(--ink2); }
.pv-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-topics span { padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px; font-size: .82rem; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; align-items: center; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.wall-item { position: relative; display: block; text-align: left; overflow: hidden; border: 1px solid var(--line2); background: var(--panel); animation: rowin .55s var(--ease) both; animation-delay: calc(min(var(--i), 14) * 35ms); }
.wall-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); }
.wall-img img, .wall-img video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: saturate(.85); }
.wall-item:hover img, .wall-item:hover video { transform: scale(1.07); filter: none; }
.wall-img.noimg { background: repeating-linear-gradient(135deg, var(--bg2) 0 14px, var(--bg) 14px 28px); }
.wall-img b { position: absolute; left: 0; top: 0; padding: 4px 11px; background: var(--bg); font: 500 .76rem var(--f-mono); }
.wall-cap { padding: 14px 16px 18px; }
.wall-cap h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: 1.15rem; line-height: 1.15; }
.wall-cap p { margin-top: 6px; font-size: .82rem; color: var(--ink2); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.pager button { min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { padding: 60px 0; color: var(--ink2); font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb { grid-template-columns: 1fr; }
    .sk-panel { position: static; min-height: 0; }
    .band { grid-template-columns: 1fr; gap: 14px; }
    .road { grid-template-columns: 1fr; min-height: 0; padding-left: 34px; gap: 8px; }
    .road-line { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line2) 0 2px, transparent 2px 14px); }
    .road-fill { left: 8px; top: 0; width: 3px; height: calc(var(--p) * 100%); margin: 0; }
    .road-probe { left: 9px; top: calc(var(--p) * 100%); margin: -8px 0 0 -8px; }
    .ms { padding: 0 0 36px 0; }
    .ms-dot { left: -34px; top: 6px; margin: 0; }
    .ms-card, .ms.up .ms-card, .ms.down .ms-card, .ms:last-child .ms-card { position: static; width: 100%; left: auto; right: auto; }
    .ms-card::before { display: none; }
    .ix { grid-template-columns: 1fr; }
    .ix-preview { display: none; }
    .ix-list { height: auto; max-height: none; overflow: visible; }
}

@media (max-width: 960px) {
    .hero-grid, .contact, .col-hero-grid, .sec-head { grid-template-columns: 1fr; }
    .hero-grid { gap: 70px; }
    .portrait-stage { margin: 0 auto; width: min(100%, 420px); }
    .sec-head h2, .sec-head p, .col-hero h1, .col-hero-side, .contact-lede, .form { grid-column: 1 / -1; justify-self: start; }
    .scroll-cue { display: none; }
    .f-row { grid-template-columns: 1fr; gap: 4px; }
    .f-label { padding-top: 0; }
}

@media (max-width: 820px) {
    .site-header.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
    .menu-btn { display: grid; }
    .nav { position: fixed; inset: 0; z-index: 70; flex-direction: column; justify-content: center; gap: 22px; background: var(--bg); transform: translateX(100%); transition: transform .45s var(--ease-io); }
    .nav.open { transform: none; }
    .nav a { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: 3rem; letter-spacing: -.02em; }
    .hd-tools { position: relative; z-index: 80; }
    .creds { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .pv-facts { grid-template-columns: 1fr; }
    .ix-row { grid-template-columns: 48px 1fr; }
    .ix-kind { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .ch { transform: none; }
    .fade-late { opacity: 1; transform: none; }
    .tile { opacity: 1; filter: none; transform: none; }
    .heat-grid i { opacity: 1; transform: none; }
    .ticker-row, .mq-row { animation: none !important; }
}
