:root {
  --bg: #0d1015;
  --bg-2: #11151c;
  --panel: #151a22;
  --line: #232a34;
  --line-2: #323b48;
  --ink: #eee9e0;
  --ink-2: #b9b4aa;
  --mute: #80868f;
  --gold: #e3b964;
  --leaf: #6fcf97;
  --trade: #82a9f4;
  --roblox: #ef8e66;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.2rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-2xl: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --t-hero: clamp(6.5rem, 4rem + 13vw, 15rem);
  --pad: clamp(18px, 4vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--t-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #17130b; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
dd, .num { font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #17130b; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mark { font: italic 400 1.9rem/1 var(--serif); text-decoration: none; }
.ico { width: 20px; height: 20px; filter: invert(1); opacity: .7; transition: opacity .15s; }
.ico-color { filter: none; }
a:hover .ico, button:hover .ico { opacity: 1; }
.topnav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.topnav a { display: inline-flex; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.topnav a:hover { color: var(--ink); }
.topbar-contact { display: flex; align-items: center; gap: 20px; padding-left: 24px; border-left: 1px solid var(--line); }
.topbar-contact > a { display: inline-flex; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.icon-link .ico { width: 18px; height: 18px; }

.discord {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-2);
}
.discord .discord-user { color: var(--ink); font-weight: 700; }
.discord .discord-state { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.discord:hover .discord-state { color: var(--ink); }
.discord.done .discord-state { color: var(--leaf); text-decoration: none; }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - 64px), 900px);
  display: flex; align-items: flex-end;
  padding: 96px var(--pad) 64px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0a0c10; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,16,21,.92) 0%, rgba(13,16,21,.6) 45%, rgba(13,16,21,.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,16,21,0) 35%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-name { font: 400 var(--t-hero)/0.8 var(--serif); letter-spacing: -0.045em; margin-left: -0.04em; }
.hero-role {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; font-size: var(--t-lg); font-weight: 600; color: var(--ink);
}
.flag { display: inline-block; flex: none; width: 24px; height: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.hero-lead { max-width: 44ch; margin-top: 14px; font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 40px; }
.hero-stats dd { font: 400 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--serif); }
.hero-stats dt { font-size: var(--t-sm); color: var(--mute); margin-top: 6px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-credit {
  position: absolute; right: var(--pad); bottom: 64px; max-width: 340px; text-align: right;
  font-size: var(--t-sm); color: rgba(238,233,224,.7); text-decoration: none; line-height: 1.4;
}
.hero-credit:hover { color: var(--ink); }
.hero-credit b { display: block; color: var(--ink); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 6px;
  font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s;
}
.btn-primary { background: var(--gold); color: #1a140a; }
.btn-ico { width: 18px; height: 18px; margin-right: 10px; filter: brightness(0); opacity: .75; }
.btn-primary:hover { background: #efcb85; }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--ink); }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 136px) var(--pad) 0; }
.section-title { font: 400 var(--t-2xl)/1 var(--serif); letter-spacing: -0.02em; }
.section-note { color: var(--ink-2); margin-top: 14px; max-width: 60ch; }
.sub-title { font: 400 var(--t-xl)/1.1 var(--serif); margin-bottom: 20px; }

.chart { margin-top: 40px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { width: 10px; height: 10px; display: inline-block; }
.lg-line i { width: 18px; height: 2px; background: var(--gold); }
.chart-wrap { position: relative; }
#chart { overflow: visible; }
#chart .grid line { stroke: rgba(255,255,255,.05); }
#chart .grid line.major { stroke: rgba(255,255,255,.14); }
#chart .grid line.minor { stroke: rgba(255,255,255,.03); }
#chart .axis text, #chart .pane, #chart .bar-val, #chart .now-label, #chart .zone-note {
  font: 600 11px var(--sans); fill: var(--mute); font-variant-numeric: tabular-nums;
}
#chart .pane { fill: var(--ink-2); }
#chart .pane-dim { fill: var(--mute); }
#chart .bar-val { fill: var(--ink-2); }
#chart .zone-title { font: italic 400 19px var(--serif); fill: var(--ink); }
#chart .zone-title-sm { font-size: 14px; fill: var(--ink-2); }
#chart .zone-year { font: 700 11px var(--sans); fill: var(--gold); }
#chart .zone-note tspan:not(.zone-year) { fill: var(--ink-2); font-size: 12px; }
#chart .eq-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
#chart .eq-area { fill: url(#eqfill); }
#chart .now-dot { fill: var(--gold); }
#chart .now-label { fill: var(--gold); }
#chart .cross line { stroke: rgba(238,233,224,.3); stroke-dasharray: 2 3; }
#chart .mk { cursor: pointer; outline: none; }
#chart .mk-hit { fill: transparent; }
#chart .mk-dot { fill: var(--bg); stroke: var(--gold); stroke-width: 2; }
#chart .mk:hover .mk-dot, #chart .mk:focus-visible .mk-dot { fill: var(--gold); }
#chart .mk:focus-visible .mk-hit { stroke: var(--gold); stroke-width: 1.5; }
#chart .mk-leaf .mk-dot { fill: var(--leaf); stroke: var(--bg); stroke-width: 2; }
#chart .mk-label { font: italic 400 17px var(--serif); fill: var(--leaf); }
#chart .mk-leader { stroke: var(--leaf); stroke-width: 1; opacity: .6; }

.readout {
  position: absolute; top: 8px; left: 0; pointer-events: none;
  display: grid; gap: 4px; min-width: 190px; max-width: 260px;
  padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-2); opacity: 0; transition: opacity .15s;
}
.readout.on { opacity: 1; }
.readout b { font: italic 400 20px/1.1 var(--serif); color: var(--ink); }
.readout span { display: flex; gap: 8px; align-items: center; }
.readout i { width: 8px; height: 8px; display: inline-block; flex: none; }
.readout .ro-start { color: var(--gold); font-weight: 700; }
.readout .ro-count { color: var(--mute); font-size: 12px; }

.leaf-title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.leaf-logo { width: 40px; height: 40px; object-fit: contain; }
.leaf-years { font-size: var(--t-sm); color: var(--mute); margin-left: auto; }
.leaf-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; margin-top: 24px; }
.leaf-lead { font: 400 var(--t-xl)/1.3 var(--serif); }
.leaf-role { color: var(--ink-2); }
.leaf-role b { color: var(--ink); }
.leaf-metrics { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 40px 0 48px; }
.leaf-metrics dd { font: 400 clamp(2.2rem, 1.7rem + 1.8vw, 3.2rem)/1 var(--serif); }
.leaf-metrics dt { font-size: var(--t-sm); color: var(--mute); margin-top: 6px; }

.screen { margin-bottom: 72px; }
.screen-frame { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.screen-frame video { width: 100%; height: 100%; object-fit: cover; }
.screen-toggle {
  position: absolute; right: 14px; bottom: 14px; height: 34px; padding: 0 14px; border-radius: 4px;
  border: 0; background: rgba(13,16,21,.8); font-size: var(--t-sm); font-weight: 700; cursor: pointer;
}
.screen-toggle:hover { background: var(--bg); }
.screen figcaption { margin-top: 12px; font-size: var(--t-sm); color: var(--mute); }

.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.parts li { border-top: 1px solid var(--line-2); padding-top: 16px; }
.parts { margin-bottom: 72px; }
.parts h4 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--t-lg); font-weight: 700; }
.parts .what { font-size: var(--t-sm); color: var(--ink-2); margin-top: 10px; }
.tech-list { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; vertical-align: middle; }
.lang { width: 18px; height: 18px; }
.lang[src*="/mono-"] { filter: invert(1); opacity: .85; }
.lang-text { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }

.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.text-link { font-weight: 600; color: var(--ink-2); }
.text-link:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--panel); transition: opacity .2s; }
.shot:hover img { opacity: .85; }
.shot-cap { display: block; margin-top: 8px; font-size: var(--t-sm); color: var(--ink-2); }

.desks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.desk-title { font: 400 clamp(2rem, 1.5rem + 1.5vw, 2.6rem)/1.05 var(--serif); }
.desk-meta { display: flex; align-items: center; gap: 14px; font-size: var(--t-sm); color: var(--mute); margin-top: 10px; }
.desk-lead { color: var(--ink-2); margin-top: 16px; }
.honest { color: var(--ink); margin-top: 16px; font-style: italic; }
.pipe { margin-top: 24px; }
.pipe li { padding: 14px 0; border-top: 1px solid var(--line); }
.pipe-name { font-weight: 700; }
.pipe-what { display: block; font-size: var(--t-sm); color: var(--ink-2); margin-top: 2px; }
.studio-media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.studio-media video { width: 100%; height: 100%; object-fit: cover; }
.desk-studio .desk-title { margin-top: 24px; }

.wins-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; margin-top: 24px; }
.wins-stick { position: sticky; top: calc(50vh - 60px); align-self: start; margin-top: calc(18vh + 40px); }
.wins-logos { display: flex; gap: 10px; height: 56px; align-items: center; }
.wins-logos img { height: 56px; width: auto; max-width: 120px; object-fit: contain; animation: win-swap .35s var(--ease); }
.wins-logos img[src$=".svg"][src*="mono-"], .wins-logos img[src$="roblox.svg"], .wins-logos img[src$="blender.svg"]:not([src*="lang-"]) { filter: invert(1); }
.wins-logos img[src$=".png"], .wins-logos img[src$=".jpg"] { border-radius: 8px; }
.wins-name { font: 400 2rem/1.1 var(--serif); margin-top: 16px; animation: win-swap .35s var(--ease); }
@keyframes win-swap { from { opacity: 0; transform: translateY(8px); } }
.wins-list { padding: 18vh 0 30vh; }
.win-group + .win-group { margin-top: 14vh; }
.win-project { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); font-weight: 600; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.win-project-logos { display: none; gap: 6px; }
.win-project-logos img { height: 22px; width: auto; max-width: 60px; }
.win {
  padding: 7vh 0 0;
  font: 400 clamp(1.8rem, 1.2rem + 2vw, 3rem)/1.12 var(--serif);
  letter-spacing: -0.01em;
  color: #3a414c;
  transition: color .45s var(--ease);
}
.win.seen { color: var(--ink-2); }
.win.on { color: var(--ink); }
.win-n { display: block; font-weight: 400; font-size: clamp(3.2rem, 2rem + 4.5vw, 6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.win.on .win-n { color: var(--gold); }
.win-note { margin-top: 28px; font-size: var(--t-sm); color: var(--mute); font-style: italic; }

.blotter { margin-top: 40px; border-top: 1px solid var(--line-2); }
.blotter-row {
  display: grid; grid-template-columns: minmax(0, 2.6fr) 100px minmax(0, 1.1fr) minmax(0, 1fr) 110px;
  gap: 20px; align-items: center; width: 100%;
  padding: 16px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
button.blotter-row { cursor: pointer; transition: background .15s; }
button.blotter-row:hover { background: rgba(255,255,255,.025); }
button.blotter-row:hover .c-title { color: var(--gold); }
button.blotter-row:focus-visible { outline-offset: -2px; }
.blotter-headrow { font-size: 12px; font-weight: 600; color: var(--mute); }
.c-pos { display: flex; align-items: center; gap: 16px; min-width: 0; }
.c-pos-text { display: grid; gap: 2px; min-width: 0; }
.c-title { font: 400 1.5rem/1.1 var(--serif); transition: color .15s; }
.c-line { font-size: var(--t-sm); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-open, .c-size { font-size: var(--t-sm); font-weight: 600; }
.c-size.dim { color: var(--ink-2); font-weight: 500; }
.c-inst { font-size: var(--t-sm); color: var(--ink-2); }
.pill { font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
.pill-live { color: var(--leaf); }

.thumb { flex: none; width: 72px; height: 48px; overflow: hidden; background: var(--panel); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-logo { display: flex; align-items: center; justify-content: center; background: transparent; }
.thumb-logo img { width: 100%; height: 100%; object-fit: contain; }
.thumb-logo img[src$=".svg"] { width: 30px; filter: invert(1); }
.thumb-icons { display: flex; align-items: center; justify-content: center; gap: 6px; background: transparent; }
.thumb-icons .lang { width: 20px; height: 20px; }
.lang[src$=".png"] { border-radius: 4px; }
.thumb-type { display: flex; align-items: center; justify-content: center; background: var(--k); }
.thumb-type b { font: italic 400 1.4rem/1 var(--serif); color: rgba(255,255,255,.85); }
.k-product { --k: #1d3a2b; }
.k-research { --k: #1d2b48; }
.k-games { --k: #47271a; }
.k-visual { --k: #471f33; }
.k-tool { --k: #3d3018; }
.k-library { --k: #262447; }
.k-language { --k: #331b42; }
.k-job { --k: #2c3035; }

.footer { max-width: var(--max); margin: clamp(96px, 12vw, 160px) auto 0; padding: 64px var(--pad) 56px; border-top: 1px solid var(--line); }
.footer-big { font: 400 clamp(3rem, 2rem + 5vw, 6.5rem)/0.95 var(--serif); letter-spacing: -0.03em; }
.footer-sub { margin-top: 16px; color: var(--ink-2); font-size: var(--t-lg); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 32px; margin-top: 32px; }
.footer-contact .discord { font-size: var(--t-lg); }
.footer-contact > a { font-weight: 600; color: var(--ink-2); }
.footer-contact > a:hover { color: var(--ink); }

.brief { display: grid; gap: 28px; max-width: 820px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.brief fieldset { border: 0; padding: 0; margin: 0; }
.brief legend, .brief label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.brief legend { margin-bottom: 14px; }
.needs { display: flex; flex-wrap: wrap; gap: 10px; }
.need { position: relative; cursor: pointer; }
.need input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.need span { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.need:hover span { border-color: var(--ink-2); color: var(--ink); }
.need input:checked + span { border-color: var(--gold); color: var(--gold); background: rgba(227,185,100,.08); }
.need input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.brief-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brief label { display: grid; gap: 8px; }
.brief input, .brief select, .brief textarea {
  width: 100%; font: 500 var(--t-md)/1.4 var(--sans); color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 14px;
}
.brief textarea { resize: vertical; min-height: 140px; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-color: var(--gold); }
.brief ::placeholder { color: var(--mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brief-send .btn { border: 0; cursor: pointer; }
.brief-send .btn:disabled { opacity: .5; cursor: not-allowed; }
.brief-status { font-size: var(--t-sm); color: var(--ink-2); }

dialog { color: var(--ink); padding: 0; border: 0; }
dialog::backdrop { background: rgba(5,7,10,.75); }
.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s cubic-bezier(.16,1,.3,1); }
.entry.open .detail { grid-template-rows: 1fr; }
.detail-clip { overflow: hidden; min-height: 0; }
.detail-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start;
  padding: 36px 8px 56px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-14px); transition: opacity .35s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.entry.open .detail-inner { opacity: 1; transform: none; transition-delay: .12s, .08s; }
.entry.open .blotter-row { background: rgba(255,255,255,.025); border-bottom-color: transparent; }
.entry.open .c-title { color: var(--gold); }
.detail-media { display: grid; gap: 14px; }
.detail-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.detail-media .shot img { aspect-ratio: 16 / 9; }
.detail-media-logo { display: flex; align-items: center; justify-content: center; gap: 36px; aspect-ratio: 16 / 9; background: var(--bg-2); }
.detail-media-logo img { max-width: 55%; max-height: 140px; object-fit: contain; }
.detail-media-logo img:not(:only-child) { max-width: 24%; max-height: 80px; }
.detail-media-logo img[src*="mono-"], .detail-media-logo img[src$="roblox.svg"] { filter: invert(1); max-height: 96px; }
.detail-initials { font: italic 400 5rem/1 var(--serif); color: var(--mute); }
.detail-text { display: grid; gap: 22px; }
.detail-lead { font: 400 clamp(1.4rem, 1.2rem + .6vw, 1.8rem)/1.25 var(--serif); }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.detail-meta dt { font-size: 12px; color: var(--mute); }
.detail-meta dd { font-weight: 600; margin-top: 2px; }
.detail-wins li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.detail-wins b { font: 400 1.35rem/1 var(--serif); color: var(--gold); }
.detail-note { font-size: var(--t-sm); color: var(--mute); font-style: italic; }
.detail-parts { display: grid; gap: 12px; }
.detail-parts p { font-size: var(--t-sm); color: var(--ink-2); }
.detail-link { justify-self: start; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(5,7,10,.95); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { display: grid; gap: 14px; justify-items: center; padding: 72px 96px 48px; max-width: 100%; }
.lb-figure img { max-width: min(1400px, 100%); max-height: calc(100dvh - 180px); }
.lb-figure figcaption { display: flex; gap: 16px; font-size: var(--t-sm); }
.lb-count { color: var(--mute); font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 600; font-size: var(--t-sm); cursor: pointer; }
.lb-btn:hover { border-color: var(--ink); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 20px; top: 20px; }

.hero-name .ch { display: inline-block; }
.motion .hero-name { overflow: hidden; padding: 0.04em 0.06em 0.06em; margin: -0.04em -0.06em -0.06em calc(-0.04em - 0.06em); }

.intro .hero-media { animation: reel-in 2.2s cubic-bezier(.2,.7,.2,1) both; }
.intro .hero-name .ch { animation: rise 1.15s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(250ms + var(--i) * 110ms); }
.intro .hero-role { animation: unveil 1s cubic-bezier(.16,1,.3,1) .65s both; }
.intro .hero-lead { animation: unveil 1s cubic-bezier(.16,1,.3,1) .8s both; }
.intro .hero-stats > div { animation: unveil .9s cubic-bezier(.16,1,.3,1) both; }
.intro .hero-stats > div:nth-child(1) { animation-delay: .95s; }
.intro .hero-stats > div:nth-child(2) { animation-delay: 1.05s; }
.intro .hero-stats > div:nth-child(3) { animation-delay: 1.15s; }
.intro .hero-actions { animation: unveil .9s cubic-bezier(.16,1,.3,1) 1.25s both; }
.intro .hero-credit { animation: fade 1.2s ease 1.6s both; }
.intro .topbar { animation: drop .9s cubic-bezier(.16,1,.3,1) .1s both; }
@keyframes reel-in { from { opacity: 0; transform: scale(1.14); filter: brightness(.3); } }
@keyframes rise { from { transform: translateY(108%) rotate(4deg); } }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { transform: translateY(-100%); } }

.motion .rv-title { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rv-inner { display: inline-block; }
.motion .rv-title .rv-inner { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0ms); }
.motion .rv-title.in .rv-inner { transform: none; }

.motion .screen-frame.rv, .motion .studio-media.rv { clip-path: inset(10% 14% 10% 14%); transition: clip-path 1.4s cubic-bezier(.16,1,.3,1); }
.motion .screen-frame.rv video, .motion .studio-media.rv video { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.motion .screen-frame.in, .motion .studio-media.in { clip-path: inset(0 0 0 0); }
.motion .screen-frame.in video, .motion .studio-media.in video { transform: none; }

.motion .parts li.rv { border-top-color: transparent; position: relative; opacity: 0; transform: translateY(16px); transition: opacity .8s ease var(--d), transform 1s cubic-bezier(.16,1,.3,1) var(--d); }
.motion .parts li.rv::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.16,1,.3,1) var(--d); }
.motion .parts li.in { opacity: 1; transform: none; }
.motion .parts li.in::before { transform: scaleX(1); }

.motion .gallery li.rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.16,1,.3,1) var(--d); }
.motion .gallery li.in { clip-path: inset(0 0 0 0); }

.motion #rows .entry.rv { opacity: 0; transform: translateX(-18px); transition: opacity .6s ease var(--d), transform .8s cubic-bezier(.16,1,.3,1) var(--d); }
.motion #rows .entry.in { opacity: 1; transform: none; }

.motion .pipe li.rv { opacity: 0; transition: opacity .8s ease var(--d); }
.motion .pipe li.in { opacity: 1; }

.motion .chart.rv { opacity: 0; transition: opacity 1s ease; }
.motion .chart.in { opacity: 1; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 280px; aspect-ratio: 16 / 10; pointer-events: none;
  overflow: hidden; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  opacity: 0; scale: .85; transition: opacity .25s ease, scale .35s cubic-bezier(.16,1,.3,1);
}
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.peek.on { opacity: 1; scale: 1; }

@media (max-width: 1000px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desks { grid-template-columns: 1fr; gap: 80px; }
  .blotter-row { grid-template-columns: minmax(0, 2.4fr) 90px minmax(0, 1fr) 100px; }
  .c-inst, .blotter-headrow span:nth-child(3) { display: none; }
}

@media (max-width: 760px) {
  .topbar { gap: 12px; padding: 12px 16px; }
  .topnav { gap: 18px; }
  .topnav a:last-child { display: none; }
  .topbar-contact { padding-left: 16px; gap: 14px; }
  .topbar-contact .discord-state { display: none; }
  .hero { padding: 96px 18px 40px; min-height: min(92svh, 820px); }
  .hero::before { background: linear-gradient(0deg, var(--bg) 10%, rgba(13,16,21,.75) 55%, rgba(13,16,21,.45) 100%); }
  .hero-stats { gap: 18px 32px; }
  .hero-credit { position: static; text-align: left; max-width: none; margin-top: 28px; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .leaf-intro { grid-template-columns: 1fr; }
  .leaf-years { margin-left: 0; width: 100%; }
  .parts { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .blotter-headrow { display: none; }
  .blotter-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 18px 2px; }
  .c-pos { grid-column: 1 / -1; align-items: flex-start; }
  .c-line { white-space: normal; }
  .c-open, .c-size { font-size: 13px; }
  .c-open::before, .c-size::before { content: attr(data-label) " "; color: var(--mute); font-weight: 500; }
  .c-open { grid-row: 2; grid-column: 1; }
  .c-status { grid-row: 2; grid-column: 2; justify-self: end; }
  .c-size { grid-row: 3; grid-column: 1 / -1; }
  .brief-row { grid-template-columns: 1fr; }
  .wins-body { grid-template-columns: 1fr; gap: 0; }
  .wins-stick { display: none; }
  .win-project-logos { display: inline-flex; }
  .win-project { position: sticky; top: 57px; z-index: 5; background: var(--bg); padding-top: 12px; color: var(--ink); }
  .wins-list { padding: 4vh 0 20vh; }
  .win { padding-top: 5vh; }
  .lb-figure { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .detail-inner { grid-template-columns: 1fr; gap: 28px; padding: 24px 2px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
