:root {
  --paper: #FAF9F5;
  --ivory: #F0EEE6;
  --white: #FFFFFF;
  --ink: #141413;
  --ink-2: #3D3D3A;
  --muted: #6B6A64;
  --line: #E6E3DA;
  --clay: #D97757;
  --clay-ink: #B5583A;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --serif: "Source Serif 4", "Tiempos Text", Georgia, serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* clip (not hidden): animated elements that start offset sideways must not widen the page, and clip does not create a scroll container, so position: sticky keeps working */
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: .86em; background: var(--ivory); padding: .1em .38em; border-radius: 6px; }
::selection { background: var(--clay); color: #fff; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform; border: 1px solid transparent; cursor: pointer;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2a2a28; }
.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .4s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.nav.is-scrolled { background: rgba(250, 249, 245, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.nav__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 500 17px/1 var(--serif); padding-bottom: 3px; position: relative; }
.nav__mark::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); top: 4px; right: 4px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav__links a { position: relative; padding: 4px 0; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { position: fixed; inset: 60px 0 0; z-index: 49; background: rgba(250,249,245,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px var(--gutter); display: flex; flex-direction: column; }
.sheet[hidden] { display: none; }
.sheet a { font: 500 30px/1.15 var(--display); letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); animation: sheetIn .6s var(--ease) forwards; }
.sheet a:nth-child(2){animation-delay:.03s}.sheet a:nth-child(3){animation-delay:.06s}.sheet a:nth-child(4){animation-delay:.09s}.sheet a:nth-child(5){animation-delay:.12s}.sheet a:nth-child(6){animation-delay:.15s}.sheet a:nth-child(7){animation-delay:.18s}.sheet a:nth-child(8){animation-delay:.21s}
@keyframes sheetIn { to { opacity: 1; transform: none; } }

/* type */
.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(217,119,87,.15); }
.h2 { font: 600 clamp(36px, 6vw, 72px)/1.02 var(--display); letter-spacing: -0.045em; margin: 0; }
.h2 em { color: var(--muted); }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 620px; margin: 22px 0 0; }
.head { margin-bottom: clamp(40px, 6vw, 72px); }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; padding: 120px 0 80px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero__title { font: 600 clamp(44px, 6.6vw, 96px)/.95 var(--display); letter-spacing: -0.055em; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--muted { color: var(--muted); }
.hero__title em { color: var(--clay-ink); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 540px; margin: 30px 0 34px; }
.hero__lead strong { font-weight: 600; color: var(--ink); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual { position: relative; height: 520px; perspective: 1200px; }
.portrait { position: absolute; margin: 0; top: 30px; right: 0; width: 76%; max-width: 360px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: 0 30px 60px -30px rgba(20,20,19,.25), 0 2px 6px rgba(20,20,19,.04); transform-style: preserve-3d; }
.portrait img { border-radius: 20px; width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.portrait figcaption .live { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.portrait figcaption { display: block; white-space: nowrap; font-size: 13.5px; color: var(--muted); padding: 12px 8px 4px; }
.portrait figcaption strong { color: var(--ink); font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #34C759; position: relative; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #34C759; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.codecard { position: absolute; left: -4%; bottom: 0; width: 88%; max-width: 370px; background: #1A1A18; color: #E8E6DC; border-radius: var(--r-md); box-shadow: 0 30px 60px -24px rgba(20,20,19,.45); overflow: hidden; z-index: 2; }
.codecard__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #2c2c29; font: 12px var(--mono); color: #8A8880; }
.codecard__bar i, .app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.codecard__bar i:nth-child(2), .app__bar i:nth-child(2) { background: #FEBC2E; }
.codecard__bar i:nth-child(3), .app__bar i:nth-child(3) { background: #28C840; }
.codecard__bar span { margin-left: 8px; }
.codecard pre { margin: 0; padding: 16px 18px 18px; font: 13px/1.65 var(--mono); white-space: pre; overflow: hidden; }
.codecard code { background: none; padding: 0; font-size: inherit; }
.k { color: #D97757; } .s { color: #B9C99A; } .n { color: #9CC3E6; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--clay); vertical-align: -2px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--muted); }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 48px; font: 500 clamp(18px, 2vw, 24px)/1 var(--display); letter-spacing: -0.03em; color: var(--ink-2); }
.marquee__track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee__track span::after { content: "✳"; color: var(--clay); font-size: .7em; }

/* statement */
.statement { padding: clamp(110px, 16vw, 200px) 0; }
.statement__text { font: 500 clamp(30px, 4.6vw, 58px)/1.14 var(--display); letter-spacing: -0.04em; margin: 0; max-width: 1040px; }
.statement__text .w { color: #CFCBBF; transition: color .2s; }
.statement__text .w.is-lit { color: var(--ink); }
.statement__text .w.is-clay { color: var(--clay-ink); font-family: var(--serif); font-style: italic; font-weight: 400; }

/* stats */
.stats { padding-bottom: clamp(80px, 10vw, 140px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat b { display: block; font: 600 clamp(44px, 5.4vw, 72px)/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat b, .music__nums b { white-space: nowrap; }
.stat b small, .music__nums b small { font-size: .5em; letter-spacing: -0.03em; margin-left: .06em; color: var(--muted); font-weight: 500; }
.stat span { display: block; color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 18ch; }

/* section */
.section { padding: clamp(90px, 12vw, 160px) 0; }

/* layers */
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1400px; }
.layer { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 24px; position: relative; transform-style: preserve-3d; transition: box-shadow .5s var(--ease), border-color .4s; min-height: 280px; display: flex; flex-direction: column; }
.layer:hover { box-shadow: 0 30px 50px -30px rgba(20,20,19,.22); border-color: #d8d4c8; }
.layer__no { font: 500 12px var(--mono); color: var(--clay-ink); background: rgba(217,119,87,.1); padding: 4px 8px; border-radius: 6px; align-self: flex-start; }
.layer h3 { font: 600 24px/1.1 var(--display); letter-spacing: -0.035em; margin: 22px 0 8px; }
.layer p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 12.5px/1 var(--mono); padding: 7px 9px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.specs { margin-top: 56px; border-top: 1px solid var(--ink); }
.specs__row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs__row span { color: var(--muted); font-size: 15px; }
.specs__row b { font-weight: 500; }

/* joe */
.joe { padding: clamp(90px, 12vw, 160px) 0; background: var(--white); border-block: 1px solid var(--line); }
.joe .h2 em { color: var(--clay-ink); }
.joe__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.jstep { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
.jstep.is-on { opacity: 1; }
.jstep:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 8vh; }
.jstep__no { font: 500 13px var(--mono); color: var(--clay-ink); }
.jstep h3 { font: 600 clamp(28px, 3.4vw, 40px)/1.05 var(--display); letter-spacing: -0.04em; margin: 12px 0 14px; }
.jstep p { color: var(--muted); font-size: 17.5px; margin: 0 0 22px; max-width: 460px; }
.jstep .btn { align-self: flex-start; }
.joe__stage { position: sticky; top: 14vh; height: 72vh; display: flex; align-items: center; perspective: 1600px; }
.app { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(20,20,19,.35), 0 0 0 6px rgba(240,238,230,.6); transform-style: preserve-3d; }
.app__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.app__bar span { margin: 0 auto; font: 12px var(--mono); color: var(--muted); padding-right: 40px; }
.app__body { display: grid; grid-template-columns: 130px 1fr; min-height: 380px; }
.app__side { border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; background: rgba(255,255,255,.5); }
.app__side b { font: 600 18px var(--serif); padding: 2px 10px 12px; }
.app__side span { padding: 7px 10px; border-radius: 8px; color: var(--muted); transition: background .3s, color .3s; }
.app__side span.is-on { background: var(--ink); color: var(--paper); }
.app__panes { position: relative; padding: 20px; }
.pane { position: absolute; inset: 20px; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.pane.is-on { opacity: 1; transform: none; }
.pane__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pane__kpis div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pane__kpis small { display: block; font-size: 11.5px; color: var(--muted); }
.pane__kpis b { font: 600 22px var(--display); letter-spacing: -0.03em; }
.pane__label { display: block; font: 11px var(--mono); color: var(--muted); margin: 16px 0 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; }
.bars i { flex: 1; background: var(--ink); border-radius: 3px 3px 1px 1px; transform-origin: bottom; }
.bars i.hot { background: var(--clay); }
.moments { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.moments li { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; }
.moments i { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.graph { width: 100%; height: 250px; }
.graph .edges line { stroke-dasharray: 200; stroke-dashoffset: 200; }
.pane.is-on .graph .edges line { animation: draw 1.4s var(--ease) forwards; }
.pane.is-on .graph .edges line:nth-child(n+4) { animation-delay: .15s; }
.pane.is-on .graph .edges line:nth-child(n+7) { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.graph .nodes circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease); }
.pane.is-on .graph .nodes circle { transform: scale(1); }
.pane.is-on .graph .nodes circle:nth-child(n+2) { transition-delay: .2s; }
.pane.is-on .graph .nodes circle:nth-child(n+6) { transition-delay: .4s; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.lenses { display: flex; flex-wrap: wrap; gap: 6px; }
.lenses span { font-size: 12.5px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s; }
.pane.is-on .lenses span { opacity: 1; transform: none; }
.lenses span:nth-child(3n+1) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.synth { margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.synth small { font: 11px var(--mono); color: var(--muted); }
.synth p { font: 400 16px/1.5 var(--serif); margin: 6px 0 10px; }
.synth mark { background: rgba(217,119,87,.14); color: var(--clay-ink); font: 500 11px var(--mono); padding: 2px 5px; border-radius: 5px; }
.badge { font-size: 11.5px; padding: 4px 9px; border-radius: 99px; background: #FFF4D6; color: #8A6A10; }
.mask p { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; font-size: 14px; }
.mask small { display: block; font: 11px var(--mono); color: var(--muted); margin-bottom: 4px; }
.mask b.m { background: var(--ink); color: var(--paper); font: 500 12px var(--mono); padding: 3px 7px; border-radius: 6px; }
.cost { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.cost b { color: var(--ink); }
.cost button { margin-left: auto; border: 0; background: var(--clay); color: #fff; font: 500 13px var(--sans); padding: 9px 14px; border-radius: 99px; }
.local { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); margin-top: 18px; }
.lock { width: 10px; height: 8px; background: var(--ink); border-radius: 2px; position: relative; margin-top: 4px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; }

/* work: horizontal */
.work { padding: clamp(90px, 12vw, 160px) 0 0; }
.hscroll { overflow: hidden; }
.hscroll__track { display: flex; gap: 18px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.pcard { width: min(410px, 82vw); flex: none; background: var(--c); border-radius: var(--r-lg); padding: 26px 26px 22px; display: flex; flex-direction: column; min-height: clamp(470px, calc(100vh - 250px), 560px); position: relative; }
.pcard__top { display: flex; justify-content: space-between; gap: 10px; font: 12px var(--mono); color: rgba(20,20,19,.6); }
.pcard h3 { font: 600 clamp(34px, 3.4vw, 42px)/1.02 var(--display); letter-spacing: -0.045em; margin: 34px 0 8px; }
.pcard__tag { font: italic 400 19px/1.35 var(--serif); margin: 0 0 16px; color: var(--ink-2); }
.pcard p { font-size: 15.5px; margin: 0 0 16px; color: var(--ink-2); }
.pcard__viz { margin-top: auto; height: 96px; border-radius: 14px; background: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; padding: 14px; }
.pcard__links { display: flex; gap: 18px; padding-top: 18px; font-weight: 500; font-size: 15px; flex-wrap: wrap; }
.pcard__links a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.pcard__links a:hover { color: var(--clay-ink); }
.pcard--dark { color: var(--paper); }
.pcard--dark .pcard__top, .pcard--dark p, .pcard--dark .pcard__tag { color: rgba(250,249,245,.7); }
.pcard--dark .pcard__viz { background: rgba(255,255,255,.06); }
.lockpill { background: var(--clay); color: #fff; padding: 3px 8px; border-radius: 99px; }
.viz-nehir { flex-direction: column; align-items: stretch; gap: 4px; }
.viz-nehir i { height: 5px; border-radius: 3px; background: rgba(20,20,19,.1); position: relative; overflow: hidden; }
.viz-nehir i::after { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: 3px; transform-origin: left; animation: fill 2.8s var(--ease) infinite alternate; }
.viz-nehir i:nth-child(odd)::after { animation-duration: 2.2s; background: var(--clay); }
.viz-nehir i:nth-child(3n)::after { animation-duration: 3.4s; }
@keyframes fill { from { transform: scaleX(.12); } to { transform: scaleX(.96); } }
.viz-term { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.viz-term code { background: none; color: #B9C99A; padding: 0; font-size: 12.5px; }
.viz-term code:first-child { color: var(--paper); }
.viz-check { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font: 12.5px var(--mono); justify-content: stretch; align-items: center; }
.viz-check b { font-weight: 500; padding: 3px 8px; border-radius: 99px; font-size: 11.5px; }
.viz-check .ok { background: #DDEFD9; color: #2E6B2A; } .viz-check .bad { background: #F7DCD3; color: #A33E22; }
.viz-council { position: relative; }
.viz-council i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); position: absolute; left: 50%; top: 50%; margin: -7px; transform: rotate(calc(var(--i) * 72deg)) translateY(-32px); }
.viz-council i:nth-child(1){--i:0}.viz-council i:nth-child(2){--i:1}.viz-council i:nth-child(3){--i:2}.viz-council i:nth-child(4){--i:3}.viz-council i:nth-child(5){--i:4}
.viz-council b { width: 18px; height: 18px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 8px rgba(217,119,87,.18); }
.viz-council { animation: spin 18s linear infinite; background: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.viz-loop { color: var(--ink); } .viz-loop svg { width: 140px; }
.viz-loop path { stroke-dasharray: 8 6; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -56; } }
.mini { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.mini li { padding: 9px 0; border-bottom: 1px solid rgba(20,20,19,.1); }
.mini b { display: block; font: 500 13px var(--mono); color: var(--ink); }

/* locked github + tooltip */
.locked { position: relative; display: inline-flex; align-items: center; gap: 6px; color: rgba(250,249,245,.55); cursor: not-allowed; border-bottom: 1px dashed currentColor; padding-bottom: 1px; }
.tip { position: absolute; left: 0; bottom: calc(100% + 12px); width: 250px; background: var(--paper); color: var(--ink); font: 400 13.5px/1.45 var(--sans); padding: 12px 14px; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px) scale(.97); transform-origin: 20px 100%; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; cursor: default; z-index: 5; }
.tip::after { content: ""; position: absolute; left: 22px; top: 100%; border: 7px solid transparent; border-top-color: var(--paper); }
.locked:hover .tip, .locked:focus .tip, .locked.is-open .tip { opacity: 1; transform: none; }

/* all projects */
.all { margin-top: clamp(80px, 10vw, 120px); }
.all__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.all__head h3 { font: 600 28px/1 var(--display); letter-spacing: -0.035em; margin: 0; }
.filters { display: flex; gap: 4px; background: var(--ivory); padding: 4px; border-radius: 99px; overflow-x: auto; max-width: 100%; }
.filters button { border: 0; background: transparent; font: 500 13.5px var(--sans); padding: 8px 14px; border-radius: 99px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.filters button.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,19,.1); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 70px 1fr 1.4fr 40px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .3s; }
.rows li:hover { padding-left: 10px; background: linear-gradient(90deg, var(--ivory), transparent); }
.rows li.is-out { display: none; }
.rows span { font: 13px var(--mono); color: var(--muted); }
.rows b { font: 600 19px var(--display); letter-spacing: -0.025em; }
.rows em { font-style: normal; font-family: var(--sans); color: var(--muted); font-size: 15px; }
.rows a { justify-self: end; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, color .3s, transform .4s var(--ease); }
.rows li:hover a { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

/* timeline */
.timeline { background: var(--ivory); }
.tl { position: relative; max-width: 820px; }
.tl__line { position: absolute; left: 84px; top: 6px; bottom: 6px; width: 1.5px; background: #D9D5C9; }
.tl__line span { display: block; height: 100%; background: var(--clay); transform-origin: top; transform: scaleY(0); }
.tl__item { display: grid; grid-template-columns: 84px 1fr; gap: 40px; padding: 0 0 52px; position: relative; }
.tl__item::before { content: ""; position: absolute; left: 79px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid #C9C4B6; transition: border-color .4s, background .4s, transform .5s var(--ease); }
.tl__item.is-on::before { border-color: var(--clay); background: var(--clay); transform: scale(1.15); }
.tl__y { font: 500 14px var(--mono); color: var(--muted); padding-top: 4px; }
.tl__item h3 { font: 600 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -0.035em; margin: 0 0 6px; }
.tl__item p { color: var(--muted); margin: 0; }
.tl__item--now h3::after { content: "şimdi"; font: 500 11px var(--mono); color: var(--clay-ink); background: rgba(217,119,87,.12); padding: 3px 7px; border-radius: 6px; margin-left: 10px; vertical-align: middle; letter-spacing: 0; }

/* roles */
.rlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rlist li { display: grid; grid-template-columns: 76px 1fr 40px; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rlist img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--white); border: 1px solid var(--line); padding: 6px; }
.rlist img.rlist__wide { width: 64px; padding: 14px 6px; }
.rlist__mono { width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 500 12px var(--mono); }
.rlist b { font: 600 22px/1.2 var(--display); letter-spacing: -0.03em; display: block; }
.rlist span:not(.rlist__mono) { font-size: 14px; color: var(--muted); }
.rlist p { margin: 8px 0 0; color: var(--ink-2); max-width: 620px; }
.rlist a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.rlist a:hover { background: var(--ink); color: var(--paper); }

/* eda */
.eda { background: var(--white); border-block: 1px solid var(--line); }
.eda__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.eda__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.eda__card small { font: 12px var(--mono); color: var(--clay-ink); }
.eda__card h3 { font: 600 34px/1 var(--display); letter-spacing: -0.045em; margin: 12px 0 10px; }
.eda__card p { color: var(--muted); margin: 0 0 22px; }
.chat { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; }
.msg--u { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg--a { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; min-height: 42px; min-width: 60px; }
.typing:empty::after { content: "•••"; letter-spacing: 2px; color: var(--muted); animation: blink 1s steps(1) infinite; }
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.modules div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.modules b { width: 100%; font: 500 12px var(--mono); color: var(--muted); margin-bottom: 4px; }
.modules span { font-size: 13px; padding: 5px 9px; border-radius: 8px; background: var(--paper); }

/* music */
.music { overflow: hidden; }
.music__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.music__nums { display: flex; gap: 36px; margin: 32px 0; }
.music__nums b { display: block; font: 600 40px/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.music__nums span { font-size: 14px; color: var(--muted); }
.vinyl { display: grid; place-items: center; }
.vinyl__disc { width: min(400px, 80vw); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1b1b19 0 2px, #222220 2px 4px); position: relative; box-shadow: 0 40px 70px -30px rgba(20,20,19,.5); display: grid; place-items: center; }
.vinyl__disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 10%, rgba(255,255,255,.08) 14%, transparent 20% 60%, rgba(255,255,255,.06) 64%, transparent 70%); }
.vinyl__disc span { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--clay) center / cover; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 6px #121211; }
.vinyl__disc span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.albums { overflow: hidden; }
.albums__track { display: flex; gap: 18px; padding: 0 var(--gutter); width: max-content; }
.album { margin: 0; width: clamp(180px, 22vw, 240px); }
.albums__label { margin: 80px 0 18px; }
.albums + .wrap .albums__label { margin-top: 56px; }
.album__cover { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ivory); box-shadow: 0 24px 44px -24px rgba(20,20,19,.45), 0 0 0 1px rgba(20,20,19,.05); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.album__cover img, .single img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.album:hover .album__cover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 34px 50px -24px rgba(20,20,19,.5); }
.album:hover img, .single:hover img { transform: scale(1.05); }
.album figcaption, .single figcaption { font-weight: 500; margin-top: 12px; font-size: 15px; letter-spacing: -0.015em; }
.album small, .single small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.singles { overflow: hidden; }
.singles__track { display: flex; gap: 14px; padding: 0 var(--gutter); width: max-content; }
.single { margin: 0; width: clamp(128px, 13vw, 160px); }
.single img { aspect-ratio: 1; border-radius: 10px; box-shadow: 0 14px 28px -18px rgba(20,20,19,.45), 0 0 0 1px rgba(20,20,19,.05); }
.single figcaption { font-size: 13.5px; margin-top: 9px; }
.single small { font-size: 12px; }

/* quote */
.quote { padding: clamp(100px, 14vw, 180px) 0; background: var(--ivory); }
.quote blockquote { margin: 0; max-width: 980px; }
.quote p { font: 400 clamp(32px, 5vw, 64px)/1.1 var(--serif); letter-spacing: -0.03em; margin: 0; }
.quote p em { color: var(--clay-ink); }
.quote cite { display: block; margin-top: 30px; font: 500 14px var(--mono); font-style: normal; color: var(--muted); }

/* contact */
.contact { padding: clamp(100px, 14vw, 180px) 0 80px; }
.contact__title { font: 600 clamp(52px, 10vw, 140px)/.92 var(--display); letter-spacing: -0.06em; margin: 0; }
.contact__title em { color: var(--clay-ink); }
.contact__mail { display: inline-flex; gap: 12px; align-items: center; margin: 48px 0 56px; font: 500 clamp(20px, 3vw, 34px)/1.2 var(--display); letter-spacing: -0.03em; border-bottom: 2px solid var(--ink); padding-bottom: 6px; word-break: break-all; }
.contact__mail .arr { transition: transform .4s var(--ease); }
.contact__mail:hover .arr { transform: translateX(6px); }
.contact__mail:hover { color: var(--clay-ink); border-color: var(--clay); }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact__grid a { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; transition: transform .4s var(--ease), border-color .3s; min-width: 0; }
.contact__grid a:hover { transform: translateY(-4px); border-color: var(--ink); }
.contact__grid small { display: block; font: 12px var(--mono); color: var(--muted); margin-bottom: 6px; }
.contact__grid b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.contact__meta { color: var(--muted); font-size: 14px; margin-top: 30px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--muted); }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot time { font-family: var(--mono); color: var(--ink); }

/* reveal (only when JS active) */
.js .reveal { opacity: 0; transform: translateY(36px); }

/* responsive */
@media (max-width: 1080px) {
  .layers { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 100px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { height: 440px; max-width: 520px; width: 100%; }
  .hero__scroll { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 24px 12px 24px 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .stat b { font-size: clamp(36px, 10vw, 56px); }
  .stat span { font-size: 14px; }
  .singles { overflow-x: auto; scrollbar-width: none; }
  .singles::-webkit-scrollbar { display: none; }
  .joe__grid { grid-template-columns: 1fr; gap: 0; }
  .joe__stage { order: -1; top: 70px; height: auto; z-index: 2; padding: 10px 0 18px; background: linear-gradient(var(--white) 88%, transparent); }
  .app__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 330px; }
  .app__side { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .app__side b { display: none; }
  .app__side span { white-space: nowrap; font-size: 12.5px; }
  .graph { height: 190px; }
  .jstep, .jstep:first-child { min-height: 46vh; padding-top: 0; justify-content: center; }
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
  .hscroll::-webkit-scrollbar { display: none; }
  .pcard { scroll-snap-align: center; min-height: 480px; }
  .rows li { grid-template-columns: 52px 1fr 36px; }
  .rows em { grid-column: 2; grid-row: 2; margin-top: -10px; font-size: 14px; }
  .rows a { grid-row: 1 / span 2; grid-column: 3; }
  .eda__grid, .music__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .albums { overflow-x: auto; scrollbar-width: none; }
  .albums::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__visual { height: 400px; }
  .portrait { width: 74%; }
  .codecard { width: 82%; }
  .codecard pre { font-size: 11.5px; padding: 12px 14px; }
  .layers { grid-template-columns: 1fr; }
  .layer { min-height: 0; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .tl__line { left: 6px; }
  .tl__item { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .tl__item::before { left: 1px; }
  .rlist li { grid-template-columns: 56px 1fr; gap: 16px; }
  .rlist li > a { display: none; }
  .rlist img, .rlist__mono { width: 44px; height: 44px; }
  .rlist img.rlist__wide { width: 52px; padding: 12px 4px; }
  .modules { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .music__nums { gap: 24px; }
  .pane__kpis b { font-size: 18px; }
  .eda__card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- hero dot field ---------- */
.hero > .wrap, .hero__scroll { position: relative; z-index: 1; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 45%, #000 35%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 70% 45%, #000 35%, transparent 80%); }

/* ---------- search button ---------- */
.kbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font: 500 13.5px var(--sans); cursor: pointer; transition: border-color .3s, color .3s; }
.kbtn:hover { border-color: var(--ink); color: var(--ink); }
.kbtn kbd, .cmdk kbd { font: 500 11px var(--mono); background: var(--ivory); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--ink-2); }

/* ---------- open source: merged vs pending, capped ---------- */
.upstream { background: var(--white); border-block: 1px solid var(--line); }
.up__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.upcol { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 22px; min-width: 0; display: flex; flex-direction: column; }
.upcol--merged { background: #FBF1EB; border-color: #F0DCD0; }
.upcol__head { margin-bottom: 18px; }
.upcol__head > div { display: flex; align-items: baseline; gap: 12px; }
.upcol__head b { font: 600 clamp(48px, 5vw, 68px)/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.upcol--merged .upcol__head b { color: var(--clay-ink); }
.upcol__head h3 { font: 500 18px var(--display); letter-spacing: -0.02em; margin: 0; }
.upcol__head p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.upcol__list { position: relative; padding-left: 30px; }
.upcol__line { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: #EBCFC1; overflow: hidden; }
.upcol__line u { display: block; height: 100%; background: var(--clay); transform-origin: top; text-decoration: none; }
.js .upcol--merged .upcol__line u { transform: scaleY(0); }
.upcol--open .upcol__line { width: 0; background: none; border-left: 2px dashed #CFCBBF; }
.upcol--open .upcol__line u { display: none; }
.upcol__list { margin-bottom: 14px; }
.prs { list-style: none; margin: 0; padding: 0; }
.pr { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(20,20,19,.07); }
.pr:last-child { border-bottom: 0; }
.pr__node { position: absolute; left: -30px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--clay); z-index: 1; transition: transform .5s var(--ease); }
.upcol--merged .pr__node { background: var(--clay); }
.upcol--open .pr__node { border: 2px dashed #A8A49A; }
.pr img { width: 24px; height: 24px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.pr__main { min-width: 0; }
.pr__repo { display: block; font: 500 11.5px/1.3 var(--mono); color: var(--muted); margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr__repo i { font-style: normal; color: #A8A49A; }
.pr__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13.5px/1.35 var(--mono); letter-spacing: -0.02em; color: var(--ink); transition: color .25s; }
.pr__title:hover { color: var(--clay-ink); }
.pr time { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.pr:hover .pr__node { transform: scale(1.35); }
.pr--empty { grid-template-columns: 1fr; color: var(--muted); font-size: 14px; }
.upcol__more { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(20,20,19,.1); font-weight: 500; font-size: 14.5px; transition: color .25s; }
.upcol__more em { font: 500 12px var(--mono); font-style: normal; background: var(--ink); color: var(--paper); padding: 4px 9px; border-radius: 99px; }
.upcol__more .arr { margin-left: auto; display: inline-block; transition: transform .4s var(--ease); }
.upcol__more:hover { color: var(--clay-ink); }
.upcol__more:hover .arr { transform: translate(3px, -3px); }
.up__note { display: flex; align-items: center; gap: 10px; font: 12.5px var(--mono); color: var(--muted); margin: 22px 0 0; }

/* ---------- command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(250,249,245,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s var(--ease); }
.cmdk__panel { position: relative; width: min(620px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(20,20,19,.35), 0 0 0 6px rgba(240,238,230,.7); overflow: hidden; animation: popIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.cmdk__input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk__input input { flex: 1; height: 58px; border: 0; outline: 0; background: transparent; font: 400 17px var(--sans); color: var(--ink); min-width: 0; }
.cmdk__input input::placeholder { color: #A8A49A; }
#cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
#cmdk-list .grp { font: 500 11.5px var(--mono); color: var(--muted); padding: 12px 10px 6px; }
#cmdk-list [role="option"] { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
#cmdk-list [role="option"] .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font: 500 12px var(--mono); color: var(--ink-2); flex: none; }
#cmdk-list [role="option"] small { margin-left: auto; color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
#cmdk-list [role="option"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
#cmdk-list [role="option"][aria-selected="true"] .ic { background: #2a2a28; border-color: #3a3a37; color: var(--paper); }
#cmdk-list [role="option"][aria-selected="true"] small { color: #A8A49A; }
#cmdk-list mark { background: none; color: var(--clay); font-weight: 600; }
#cmdk-list .empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk__foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--paper); }
.cmdk__foot kbd { margin-right: 3px; }

/* ---------- project peek ---------- */
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: 290px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 30px 60px -24px rgba(20,20,19,.3); pointer-events: none; opacity: 0; transform: scale(.9); }
.peek__meta { font: 11.5px var(--mono); color: var(--muted); }
.peek__name { display: block; font: 600 22px/1.1 var(--display); letter-spacing: -0.035em; margin: 6px 0 6px; }
.peek__desc { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.peek__foot { display: flex; gap: 12px; font: 12px var(--mono); color: var(--muted); flex-wrap: wrap; }
.peek__lang::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lc, var(--clay)); margin-right: 6px; }
.peek__lang:empty, .peek__stars:empty, .peek__time:empty { display: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); font: 500 14px var(--sans); padding: 11px 18px; border-radius: 999px; pointer-events: none; transition: opacity .3s, transform .45s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) { .kbtn span { display: none; } }
@media (max-width: 900px) {
  .kbtn { margin-left: auto; height: 40px; width: 40px; padding: 0; justify-content: center; }
  .kbtn kbd { display: none; }
  .nav__burger { margin-left: 4px; }
  .up__cols { grid-template-columns: 1fr; }
  .upcol--merged { order: -1; }
  .upcol { padding: 22px 18px 18px; }
  .pr { grid-template-columns: 24px 1fr; }
  .pr time { display: none; }
  .pr__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cmdk { padding-top: 10vh; }
}
@media (hover: none) { .peek { display: none; } }


/* ---------- selected work: header stays pinned with the cards ---------- */
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.work__head { margin-bottom: clamp(22px, 3.4vh, 34px); }
.work__head .h2 { font-size: clamp(36px, 5.2vw, 64px); }
.work__stage { padding-bottom: 8px; }
.work__prog { text-align: right; flex: none; }
.work__count { font: 500 13px var(--mono); color: var(--muted); }
.work__count b { color: var(--ink); font-weight: 500; font-size: 15px; }
.work__prog i { display: block; width: 180px; height: 2px; background: var(--line); border-radius: 2px; margin: 12px 0 0 auto; overflow: hidden; }
.work__prog u { display: block; height: 100%; background: var(--clay); transform-origin: left; transform: scaleX(.09); text-decoration: none; }

/* new card visuals */
.viz-flow { gap: 0; padding: 14px 16px; justify-content: space-between; }
.viz-flow span, .viz-steps span { font: 500 12px var(--mono); background: var(--white); border: 1px solid rgba(20,20,19,.12); border-radius: 10px; padding: 8px 10px; position: relative; z-index: 1; white-space: nowrap; }
.viz-flow i, .viz-steps i { flex: 1; height: 2px; background: rgba(20,20,19,.16); position: relative; min-width: 14px; }
.viz-flow i::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); animation: travel 2.6s var(--ease) infinite; }
.viz-flow i:nth-of-type(2)::after { animation-delay: 1.3s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.viz-table { display: grid; grid-template-columns: 1fr 1fr 2fr; align-content: center; gap: 7px 10px; justify-content: stretch; }
.viz-table b { font: 500 11px var(--mono); color: var(--muted); }
.viz-table i { height: 6px; border-radius: 3px; background: rgba(20,20,19,.14); animation: pulse 2.6s ease-in-out infinite; }
.viz-table i:nth-of-type(3n+2) { animation-delay: .4s; } .viz-table i:nth-of-type(3n) { animation-delay: .8s; }
@keyframes pulse { 50% { background: rgba(217,119,87,.5); } }
.viz-steps { gap: 0; padding: 14px 12px; justify-content: space-between; }
.viz-steps span { font-size: 11.5px; padding: 7px 9px; border-radius: 99px; animation: step 6s infinite; }
.viz-steps span:nth-of-type(2) { animation-delay: 1.5s; } .viz-steps span:nth-of-type(3) { animation-delay: 3s; } .viz-steps span:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes step { 0%, 22% { background: var(--ink); color: var(--paper); border-color: var(--ink); } 28%, 100% { background: var(--white); color: var(--ink); border-color: rgba(20,20,19,.12); } }
.viz-mc { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; background: #1D1C1A; }
.viz-mc code { background: none; padding: 0; font-size: 12.5px; color: #E8E6DC; }
.viz-mc code b { color: #F5D56B; font-weight: 500; }
.viz-mc code.r { color: #9EE6C5; }
.viz-mc code.r::before { content: "▌ "; color: #6BCB9B; }
.viz-mc code.r::after { content: ""; display: inline-block; width: 6px; height: 12px; background: var(--clay); margin-left: 4px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }

@media (max-width: 900px) {
  .work__prog { display: none; }
  .work__head { margin-bottom: 28px; }
  .pcard { min-height: 480px; }
}


/* ---------- SEO / about block ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.who__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.who__lead { color: var(--ink-2); font-size: 18px; line-height: 1.65; margin: 26px 0 0; max-width: 540px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font: 600 clamp(18px, 2vw, 21px)/1.3 var(--display); letter-spacing: -0.03em; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay-ink); }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font: 400 20px/1 var(--sans); color: var(--ink-2); transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details p { margin: 0 0 24px; color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 580px; }
.faq details a { color: var(--ink); border-bottom: 1px solid var(--clay); transition: color .25s; }
.faq details a:hover { color: var(--clay-ink); }
@media (max-width: 900px) { .who__grid { grid-template-columns: 1fr; } }
