/* =========================================================
   FARID — Break the Surface
   Monochrome poster world + one accent (wine, from the blazer)
   ========================================================= */
:root {
  --bg: #e6e6e3;
  --bg-2: #ededea;
  --ink: #0d0d0f;
  --ink-2: #34343a;
  --muted: #6e6e74;
  --line: rgba(13, 13, 15, .12);
  --line-2: rgba(13, 13, 15, .28);
  --wine: #7a1f2b;
  --wine-2: #c23a4c;
  --dark: #0c0c0e;
  --display: "Oswald", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ring: 128px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ---------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  color: #eaeae6;
}
.loader__tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 12), 1fr); }
.loader__tiles i { background: var(--dark); transition: transform .55s cubic-bezier(.7, 0, .2, 1), opacity .55s; }
.loader__inner { position: relative; display: grid; justify-items: center; gap: 14px; transition: opacity .4s, translate .6s var(--ease); }
.loader__inner > .mono { font-size: 11px; color: #8d8d93; }
.loader__count { font-family: var(--display); font-weight: 700; font-size: clamp(88px, 15vw, 190px); line-height: .9; letter-spacing: -.01em; }
.loader__count small { font-size: .3em; vertical-align: top; margin-left: 6px; color: var(--wine-2); }
.loader__bar { width: min(320px, 70vw); height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: #fff; }
.loader__status { font-size: 10.5px !important; color: #fff !important; }
.loader.is-done .loader__inner { opacity: 0; translate: 0 -20px; }
.loader.is-done .loader__tiles i { transform: scale(0); opacity: 0; }
.loader.is-gone { display: none; }

/* ---------------------------------------------------------- cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor, .cursor.is-demo { opacity: 1; }
.cursor__ring, .cursor__dot, .cursor__label { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__ring::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px;
  border: 1px solid #fff; border-radius: 50%;
  transition: all .45s var(--ease);
}
.cursor__ring::after {  /* crosshair ticks */
  content: ""; position: absolute; left: -24px; top: -24px; width: 48px; height: 48px;
  background:
    linear-gradient(#fff, #fff) 50% 0 / 1px 6px no-repeat,
    linear-gradient(#fff, #fff) 50% 100% / 1px 6px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) 100% 50% / 6px 1px no-repeat;
  opacity: 0; transition: all .45s var(--ease);
}
.cursor.is-hot .cursor__ring::before { left: calc(var(--ring) / -2); top: calc(var(--ring) / -2); width: var(--ring); height: var(--ring); border-style: dashed; }
.cursor.is-hot .cursor__ring::after { left: calc(var(--ring) / -2 - 8px); top: calc(var(--ring) / -2 - 8px); width: calc(var(--ring) + 16px); height: calc(var(--ring) + 16px); opacity: 1; }
.cursor.is-link .cursor__ring::before { left: -28px; top: -28px; width: 56px; height: 56px; background: #fff; }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .cursor__ring::before { left: -40px; top: -40px; width: 80px; height: 80px; border-color: rgba(255, 255, 255, .9); }
.cursor.is-down .cursor__ring::before { transform: scale(.82); }
.cursor__dot::before { content: ""; position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; background: #fff; }
.cursor__label { white-space: nowrap; font-size: 10px; color: #fff; padding: 22px 0 0 18px; letter-spacing: .14em; }

.shock {
  position: fixed; z-index: 140; pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 1px solid var(--wine); border-radius: 50%;
  animation: shock .75s var(--ease) forwards;
}
@keyframes shock { to { transform: scale(18); opacity: 0; border-width: .2px; } }

/* ---------------------------------------------------------- nav — "control bar" */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  padding: 16px var(--pad) 18px;
  border-bottom: 1px solid transparent;
  transition: background .4s, padding .4s, border-color .4s, color .4s, translate .9s var(--ease), opacity .9s;
  --fg: var(--ink); --bgc: rgba(255, 255, 255, .55); --bd: var(--line);
}
.is-loading .nav { opacity: 0; translate: 0 -20px; }
.nav.is-scrolled { background: rgba(232, 232, 229, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); padding-block: 10px 12px; border-color: var(--line); }
.nav.is-dark { background: rgba(12, 12, 14, .78); border-color: rgba(255, 255, 255, .08); color: #ededea; --fg: #ededea; --bgc: rgba(255, 255, 255, .06); --bd: rgba(255, 255, 255, .14); }
.nav__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.nav__mark { display: block; width: 117px; height: 28px; }
.nav__where { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--bd); font-size: 9.5px; color: var(--muted); white-space: nowrap; min-width: 150px; }
.nav.is-dark .nav__where { color: #8a8a90; }
.nav__where b { padding: 2px 5px; background: var(--wine); color: #fff; font-weight: 500; }
.nav__links { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 4px; border: 1px solid var(--bd); background: var(--bgc); }
.nav__blob { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--fg); opacity: 0; transition: left .45s cubic-bezier(.5, 1.6, .4, 1), width .45s cubic-bezier(.5, 1.6, .4, 1), opacity .3s; pointer-events: none; }
.nav__blob::before { content: ""; position: absolute; left: -4px; top: 50%; width: 4px; height: 4px; translate: 0 -50%; background: var(--wine-2); }
.nav__links a { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 6px; padding: 7px 12px; font-size: 13px; font-weight: 500; text-decoration: none; transition: color .3s; }
.nav__links a i { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: .1em; opacity: .55; }
.nav__links a.is-on { color: var(--wine); }
.nav.is-dark .nav__links a.is-on { color: var(--wine-2); }
.nav__links a.is-hl { color: #fff; }
.nav.is-dark .nav__links a.is-hl { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__clock { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--bd); background: var(--bgc); font-size: 9.5px; white-space: nowrap; }
.nav__clock b { padding-left: 8px; border-left: 1px solid var(--bd); font-weight: 500; font-variant-numeric: tabular-nums; }
.nav__cmd { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--bd); background: var(--bgc); color: inherit; font-size: 10px; cursor: pointer; transition: border-color .3s; }
.nav__cmd:hover { border-color: var(--fg); }
kbd { display: inline-block; padding: 3px 6px; border: 1px solid currentColor; border-bottom-width: 2px; font-family: var(--mono); font-size: 9.5px; line-height: 1.2; }
.nav__cv { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ink); color: #fff; font-size: 10.5px; text-decoration: none; transition: background .3s; }
.nav__cv:hover { background: var(--wine); }
.nav.is-dark .nav__cv { background: #ededea; color: var(--ink); }
.nav.is-dark .nav__cv:hover { background: var(--wine-2); color: #fff; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.nav__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, var(--wine-2) 0 6px, transparent 6px 8px); }
.nav__progress span { position: absolute; top: -3px; width: 1px; height: 9px; background: var(--fg); opacity: .35; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2fae5b; display: inline-block; flex: none; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 174, 91, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 174, 91, 0); } }

/* ---------------------------------------------------------- command menu */
.cmd { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: clamp(70px, 14vh, 140px) 16px 20px; }
.cmd[hidden] { display: none; }
.cmd__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.cmd__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 6px; }
.cmd__panel { position: relative; width: min(640px, 100%); max-height: calc(100svh - 120px); display: flex; flex-direction: column; background: #0f0f12; color: #ededea; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px #000; animation: cmdIn .45s cubic-bezier(.2, 1.2, .3, 1); }
.cmd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--wine-2) 0 6px, transparent 6px 8px); }
@keyframes cmdIn { from { opacity: 0; clip-path: inset(0 0 100% 0); translate: 0 -12px; } to { opacity: 1; clip-path: inset(0 0 0 0); translate: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.cmd__head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; font-size: 9.5px; color: #8a8a90; }
.cmd__head i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--wine-2); }
.cmd__input { display: flex; align-items: center; gap: 12px; margin: 0 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); background: #09090b; }
.cmd__input span { color: var(--wine-2); font-size: 16px; }
.cmd__input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-family: var(--mono); font-size: 15px; caret-color: var(--wine-2); }
.cmd__input input::placeholder { color: #5d5d64; }
.cmd__list { list-style: none; overflow-y: auto; padding: 8px 12px; margin-top: 4px; }
.cmd__item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; cursor: pointer; border-left: 2px solid transparent; transition: background .15s; }
.cmd__item .n { font-family: var(--mono); font-size: 10px; color: #6f6f76; }
.cmd__item b { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .04em; }
.cmd__item small { display: block; margin-top: 2px; font-size: 13px; color: #8a8a90; }
.cmd__item .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #6f6f76; }
.cmd__item.is-sel { background: rgba(194, 58, 76, .14); border-left-color: var(--wine-2); }
.cmd__item.is-sel .k { color: var(--wine-2); }
.cmd__item mark { background: none; color: var(--wine-2); }
.cmd__empty { padding: 18px 12px; font-family: var(--mono); font-size: 12px; color: #8a8a90; }
.cmd__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 9.5px; color: #8a8a90; }
.cmd__foot span:first-child { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  background: radial-gradient(120% 85% at 58% 18%, #f7f7f5 0%, #e7e7e4 46%, #cdcdc9 100%);
  touch-action: pan-y;
  --sp: 0;
}
.env { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.env__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(13, 13, 15, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 13, 15, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 65% at 55% 38%, #000 10%, transparent 80%);
  mask-image: radial-gradient(75% 65% at 55% 38%, #000 10%, transparent 80%);
}
.pane {
  position: absolute; bottom: 26%;
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(168deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .1) 55%, rgba(255, 255, 255, .32));
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(13, 13, 15, .04);
}
.pane span { position: absolute; left: 10px; top: 8px; font-size: 9px; color: rgba(13, 13, 15, .35); }
.pane--1 { left: 2%; width: 13%; height: 44%; }
.pane--2 { left: 17%; width: 8%; height: 60%; opacity: .65; }
.pane--3 { right: 3%; width: 15%; height: 56%; }
.pane--4 { right: 20%; width: 9%; height: 34%; opacity: .55; }
.pane--5 { left: 34%; width: 30%; height: 18%; opacity: .35; }
.env__floor {
  position: absolute; left: -40%; right: -40%; top: 74%; height: 80%;
  transform-origin: 50% 0; transform: perspective(420px) rotateX(60deg);
  background:
    linear-gradient(rgba(13, 13, 15, .075) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, rgba(13, 13, 15, .075) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .15));
  border-top: 1px solid rgba(255, 255, 255, .95);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 62%);
  mask-image: linear-gradient(#000 0%, transparent 62%);
}
.env__shine {
  position: absolute; left: var(--feet-x, 50%); top: var(--feet-y, 92%);
  width: 300px; height: 46px; transform: translate(-50%, -55%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .3), rgba(0, 0, 0, .08) 60%, transparent);
}

.stage { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.layer--bg { z-index: 2; }
.layer--fg { z-index: 6; }
.sketch { position: absolute; pointer-events: none; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity 1s; }
.sketch.is-ready { opacity: 1; }
#sketchBg { z-index: 1; opacity: 0; }
#sketchBg.is-ready { opacity: calc(1 - var(--sp) * .9); }
#sketchFg { z-index: 5; }
#sketchFg.is-ready { opacity: calc(1 - var(--sp) * .9); }

.hero__name {
  position: absolute; left: 0; right: 0; z-index: 3;
  top: var(--floor-y, 90%);
  display: flex; justify-content: center;
  pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(130px, 25vw, 440px); letter-spacing: .02em;
  translate: 0 calc(var(--sp) * -80px);
}
.hero__name span {
  display: block; transform: translateY(-96%);
  background: linear-gradient(180deg, rgba(13, 13, 15, .14), rgba(13, 13, 15, .03) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(13, 13, 15, .14);
  -webkit-box-reflect: below -.04em linear-gradient(transparent 60%, rgba(0, 0, 0, .2));
  opacity: 0; transition: opacity 1.4s .9s;
}
.is-ready .hero__name span { opacity: 1; }

/* hero text + panels */
.hero__ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: calc(1 - var(--sp) * 1.5); }
.hero__ui > * { pointer-events: auto; }
.hero__intro { position: absolute; left: var(--pad); top: clamp(92px, 15vh, 160px); max-width: 30vw; }
.tag { font-size: 10.5px; color: var(--muted); display: inline-block; }
.hero__title {
  margin-top: 16px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: min(6.1vw, 9.4vh); line-height: .9; letter-spacing: -.005em;
}
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--wine); }
.hero__list { list-style: none; margin-top: 22px; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.22; letter-spacing: .02em; counter-reset: l; }
.hero__list li { counter-increment: l; display: flex; align-items: baseline; gap: 12px; }
.hero__list li::before { content: "0" counter(l); font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.hero__hint { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; background: var(--wine); display: inline-block; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* entrance animation */
.tag, .hero__title span, .hero__list li, .hero__hint, .panel, .scroll-cue {
  opacity: 0; translate: 0 26px;
  transition: opacity 1s var(--ease), translate 1.1s var(--ease);
}
.is-ready .tag, .is-ready .hero__title span, .is-ready .hero__list li, .is-ready .hero__hint, .is-ready .panel, .is-ready .scroll-cue { opacity: 1; translate: 0 0; }
.is-ready .tag { transition-delay: 1.1s; }
.is-ready .hero__title span:nth-child(1) { transition-delay: 1.2s; }
.is-ready .hero__title span:nth-child(2) { transition-delay: 1.3s; }
.is-ready .hero__title span:nth-child(3) { transition-delay: 1.4s; }
.is-ready .hero__list li:nth-child(1) { transition-delay: 1.55s; }
.is-ready .hero__list li:nth-child(2) { transition-delay: 1.6s; }
.is-ready .hero__list li:nth-child(3) { transition-delay: 1.65s; }
.is-ready .hero__list li:nth-child(4) { transition-delay: 1.7s; }
.is-ready .hero__list li:nth-child(5) { transition-delay: 1.75s; }
.is-ready .hero__hint { transition-delay: 1.9s; }
.is-ready .panel--quote { transition-delay: 1.5s; }
.is-ready .panel--id { transition-delay: 1.7s; }
.is-ready .panel--hud { transition-delay: 1.85s; }
.is-ready .scroll-cue { transition-delay: 2.2s; }

/* glass panels */
.panel {
  position: absolute; padding: 20px 22px 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .24));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -30px rgba(20, 20, 26, .4), 0 0 0 1px rgba(13, 13, 15, .05);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  transition: opacity 1s var(--ease), translate 1.1s var(--ease), transform .6s var(--ease);
}
.panel::before { /* blueprint corner marks */
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 10px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 10px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 100% / 1px 10px no-repeat;
  opacity: .5;
}
.tilt { position: relative; }
.panel.tilt { position: absolute; }
.tilt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 55%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light;
}
.tilt:hover::after { opacity: 1; }
.panel__label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.panel__label::before { content: ""; width: 6px; height: 6px; background: var(--ink); }
.panel--quote { right: var(--pad); top: clamp(92px, 16vh, 170px); width: 250px; }
.panel__big { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: .95; }
.panel__big em { font-style: normal; color: var(--wine); }
.panel__small { list-style: none; display: flex; gap: 12px; margin-top: 16px; font-size: 10px; color: var(--ink-2); }
.panel__small li + li::before { content: "·"; margin-right: 12px; color: var(--muted); }
.panel--id { left: var(--pad); bottom: clamp(22px, 6vh, 56px); width: 300px; }
.idcard { margin-top: 12px; }
.idcard div { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.idcard div:last-child { border-bottom: 0; }
.idcard dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
.idcard dd { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.panel--hud { right: var(--pad); bottom: clamp(22px, 6vh, 56px); width: 270px; }
.hud__value { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s; }
.hud__value small { font-size: .38em; margin-left: 4px; color: var(--muted); }
.hud__bar { height: 3px; background: rgba(13, 13, 15, .1); margin: 12px 0 10px; overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: background .3s; }
.panel--hud.is-low .hud__value { color: var(--wine); }
.panel--hud.is-low .hud__bar i { background: var(--wine); }
.hud__meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.hud__meta b { color: var(--ink); font-weight: 500; }
.btn-shatter {
  width: 100%; margin-top: 14px; padding: 11px 14px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  transition: background .25s, color .25s;
}
.btn-shatter:hover { background: var(--ink); color: #fff; }
.btn-shatter span { font-size: 14px; }

/* labels that appear in the blueprint */
.annos { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.anno { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .3s; --off: 70px; }
.anno.on { opacity: 1; }
.anno__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border: 1.5px solid var(--wine); border-radius: 50%; background: rgba(255, 255, 255, .85); }
.anno__dot::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--wine); }
.anno__line { position: absolute; left: 0; top: 0; height: 1px; width: var(--len, 62px); background: var(--wine); transform-origin: 0 0; transform: rotate(var(--ang, 0deg)) scaleX(0); transition: transform .4s .05s var(--ease); }
.anno.on .anno__line { transform: rotate(var(--ang, 0deg)) scaleX(1); }
.anno__box {
  position: absolute; top: calc(var(--dy, 0px) - 24px); width: max-content; max-width: 220px; padding: 9px 13px 10px;
  background: rgba(13, 13, 15, .9); color: #fff;
  border-left: 2px solid var(--wine-2);
  opacity: 0; translate: 0 6px; transition: opacity .35s .12s, translate .35s .12s var(--ease);
}
.anno[data-side="right"] .anno__box { left: var(--off); }
.anno[data-side="left"] .anno__box { right: var(--off); }
.anno.on .anno__box { opacity: 1; translate: 0 0; }
.anno__box b { display: block; font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: .16em; color: #ee9aa6; }
.anno__box span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; }

.scroll-cue {
  position: absolute; z-index: 4; right: calc(var(--pad) * .35); top: 50%;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
  font-size: 9.5px; letter-spacing: .3em; color: var(--muted); text-decoration: none;
}
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--ink) 0 0) 0 0 / 1px 40% no-repeat, var(--line); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { background-position: 0 -40%; } to { background-position: 0 160%; } }

/* ---------------------------------------------------------- shared section bits */
.sec-head { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); margin-bottom: clamp(44px, 6vw, 84px); }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(50px, 7vw, 124px); line-height: .9; letter-spacing: -.005em; }
.display em { font-style: normal; color: var(--wine); }
.reveal { opacity: 0; translate: 0 36px; transition: opacity 1.1s var(--ease), translate 1.2s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------- about — declassified identity file */
.about { padding: clamp(96px, 13vw, 180px) var(--pad); background: linear-gradient(var(--bg), var(--bg-2)); overflow: hidden; }

/* 1. dossier: redacted words collapse into text as you scroll */
.dossier { position: relative; padding: clamp(22px, 3vw, 40px) 0 clamp(60px, 8vw, 110px); }
.dossier__bar { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 16px; margin-bottom: clamp(26px, 3.5vw, 48px); border-bottom: 1px dashed var(--line-2); font-size: 10px; color: var(--muted); }
.dossier__bar b { margin-left: 6px; font-weight: 500; color: var(--ink); }
.dossier__state { padding: 2px 6px; background: var(--ink); color: #fff !important; transition: background .4s; }
.dossier.is-open .dossier__state { background: var(--wine); }
.manifesto { max-width: 26em; font-size: clamp(26px, 3.3vw, 54px); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; }
.manifesto .w {
  color: transparent;
  background: repeating-linear-gradient(90deg, rgba(13, 13, 15, .13) 0 .46em, transparent .46em .52em) 0 58% / 100% .74em no-repeat;
  transition: color .45s var(--ease), background-size .45s var(--ease);
}
.manifesto .w.on { color: var(--ink); background-size: 100% 0; }
.manifesto .w.hl.on {
  color: var(--wine);
  background: linear-gradient(var(--wine), var(--wine)) 0 96% / 100% .07em no-repeat;
}
.stamp {
  position: absolute; right: clamp(0px, 4vw, 70px); bottom: clamp(6px, 2vw, 30px);
  display: grid; justify-items: center; gap: 4px; padding: 12px 22px 10px;
  border: 3px solid var(--wine); outline: 1px solid var(--wine); outline-offset: 4px;
  color: var(--wine); pointer-events: none; opacity: 0; rotate: -9deg; scale: 2.6;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, .75) 75%), radial-gradient(circle at 80% 70%, #000 50%, rgba(0, 0, 0, .8));
}
.stamp b { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.2vw, 50px); line-height: 1; letter-spacing: .1em; }
.stamp small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; }
.stamp.hit { animation: stamp .6s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; scale: 2.6; } 55% { opacity: 1; scale: .93; } 100% { opacity: .9; scale: 1; } }
.dossier.shake { animation: shake .32s linear; }
@keyframes shake { 20% { translate: -3px 2px; } 40% { translate: 3px -2px; } 60% { translate: -2px 1px; } 80% { translate: 2px 0; } }

/* 2. x-ray scanner frame */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.frame { position: relative; width: 100%; max-width: 540px; aspect-ratio: 4 / 5; background: #d6d6d2; --y: 0px; }
.frame canvas, .frame .sketch--cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame canvas { z-index: 1; }
.sketch--cover { object-fit: cover; z-index: 0; }
.frame__c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); z-index: 4; }
.frame__c.tl { left: -12px; top: -12px; border-left-width: 1.5px; border-top-width: 1.5px; }
.frame__c.tr { right: -12px; top: -12px; border-right-width: 1.5px; border-top-width: 1.5px; }
.frame__c.bl { left: -12px; bottom: -12px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.frame__c.br { right: -12px; bottom: -12px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.frame figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 22px); display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.frame__hint { color: var(--wine); }
.scan { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scan__xray {
  position: absolute; left: 0; right: 0; top: 0; height: var(--y);
  background:
    linear-gradient(rgba(122, 31, 43, .07) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(122, 31, 43, .07) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(transparent 70%, rgba(122, 31, 43, .16));
}
.scan__line { position: absolute; left: -14px; right: -14px; top: var(--y); height: 2px; translate: 0 -1px; background: var(--wine-2); box-shadow: 0 0 0 1px rgba(194, 58, 76, .25), 0 0 18px 2px rgba(194, 58, 76, .55); }
.scan__line::before, .scan__line::after { content: ""; position: absolute; top: -5px; width: 8px; height: 12px; background: var(--wine-2); }
.scan__line::before { left: 0; }
.scan__line::after { right: 0; }
.scan__line span { position: absolute; left: calc(100% + 6px); top: -11px; padding: 4px 8px; background: var(--wine); color: #fff; font-size: 9.5px; white-space: nowrap; }
.scan__legend { position: absolute; left: 12px; top: 12px; padding: 4px 8px; background: rgba(255, 255, 255, .8); font-size: 9px; color: var(--ink); }
.scan__mark { position: absolute; left: calc(var(--u) * 100%); top: calc(var(--v) * 100%); width: 0; height: 0; opacity: 0; transition: opacity .35s; }
.scan__mark.on { opacity: 1; }
.scan__mark > i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border: 1.5px solid var(--wine-2); background: rgba(194, 58, 76, .15); scale: .4; rotate: 45deg; transition: scale .4s cubic-bezier(.34, 1.56, .64, 1); }
.scan__mark.on > i { scale: 1; rotate: 0deg; transition: scale .4s cubic-bezier(.34, 1.56, .64, 1), rotate .5s var(--ease); }
.scan__mark > div { position: absolute; top: -20px; width: max-content; max-width: 190px; padding: 8px 11px; background: rgba(13, 13, 15, .9); color: #fff; border-left: 2px solid var(--wine-2); translate: 0 6px; transition: translate .35s var(--ease); }
.scan__mark[data-side="right"] > div { left: 22px; }
.scan__mark[data-side="left"] > div { right: 22px; }
.scan__mark.on > div { translate: 0 0; }
.scan__mark b { display: block; font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: .16em; color: #ee9aa6; }
.scan__mark span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; }

/* 3. scan report */
.report { position: relative; padding: clamp(22px, 2.6vw, 34px); background: rgba(255, 255, 255, .55); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(13, 13, 15, .35); }
.report::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 18px); }
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.report__head h3 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.2vw, 52px); line-height: .95; }
.idhash { display: grid; justify-items: end; gap: 8px; flex: none; }
.idhash span { font-size: 8.5px; color: var(--muted); }
.idhash__grid { display: grid; grid-template-columns: repeat(7, 9px); grid-auto-rows: 9px; gap: 2px; padding: 6px; border: 1px solid var(--line-2); background: #fff; }
.idhash__grid i { background: transparent; }
.idhash__grid i.on { background: var(--ink); }
.idhash__grid i.on.w { background: var(--wine); }
.report__lines { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.report__lines li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report__lines .k { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.report__lines .k::before { content: "> "; color: var(--wine); }
.report__lines li::after { content: ""; order: 1; flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); translate: 0 -4px; }
.report__lines .v { order: 2; min-height: 1.45em; text-align: right; font-size: 15.5px; font-weight: 500; }
.report__lines .v.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--wine); animation: blink .8s steps(2, start) infinite; }
.report__result { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; background: var(--ink); color: #fff; font-size: 10.5px; opacity: .15; transition: opacity .5s, background .5s; }
.report__result span { color: #9d9da3; }
.report__result b { flex: 1; font-weight: 500; }
.report__result i { display: grid; place-items: center; width: 22px; height: 22px; background: #2fae5b; font-style: normal; scale: 0; transition: scale .45s cubic-bezier(.34, 1.56, .64, 1) .2s; }
.report.is-done .report__result { opacity: 1; background: var(--wine); }
.report.is-done .report__result span { color: rgba(255, 255, 255, .7); }
.report.is-done .report__result i { scale: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.stats b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4vw, 60px); line-height: 1; }
.stats span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------- principles (dark) */
.is-dark-section { background: var(--dark); color: #ededea; }
.is-dark-section .sec-head { border-color: rgba(255, 255, 255, .12); color: #8a8a90; }
.is-dark-section .display em { color: var(--wine-2); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.split-head p { max-width: 38ch; justify-self: end; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.split-head p b { color: var(--ink); font-weight: 600; }
.is-dark-section .split-head p { color: #9d9da3; }
.is-dark-section .split-head p b { color: #ededea; font-weight: 500; }
.code { padding: clamp(96px, 13vw, 180px) var(--pad) 0; overflow: hidden; }

/* ---------------------------------------------------------- experience (pinned "level up" scene) */
.exp { position: relative; height: calc(100vh + 270vh); height: calc(100svh + 270svh); background: var(--bg-2); border-top: 1px solid var(--line); }
.exp__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(80px, 11vh, 112px) var(--pad) clamp(18px, 3.5vh, 36px);
  background:
    linear-gradient(rgba(13, 13, 15, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(13, 13, 15, .04) 1px, transparent 1px) 0 0 / 48px 48px;
}
.exp .sec-head { margin-bottom: clamp(10px, 2vh, 22px); }
.exp__count b { color: var(--wine); font-weight: 500; }
.exp__title { font-size: clamp(30px, 3.6vw, 60px); }
.exp__scene { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; margin-top: clamp(6px, 1.5vh, 18px); }
.exp__visual { position: relative; height: 100%; min-height: 200px; }
.exp__visual canvas { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); touch-action: pan-y; }
.exp__fig { position: absolute; left: 0; top: 4px; font-size: 9.5px; color: var(--muted); pointer-events: none; }
.exp__hint { position: absolute; left: 0; bottom: 4px; font-size: 9.5px; color: var(--wine); pointer-events: none; transition: opacity .5s; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }
.exp__flash {
  position: absolute; right: 0; top: 0; display: flex; gap: 10px; align-items: center;
  padding: 9px 14px; background: var(--wine); color: #fff; font-size: 11px; pointer-events: none; opacity: 0;
  box-shadow: 0 16px 30px -14px rgba(122, 31, 43, .7);
}
.exp__flash.go { animation: lvlup 1.5s var(--ease) forwards; }
@keyframes lvlup { 0% { opacity: 0; translate: 0 16px; scale: .9; } 14% { opacity: 1; translate: 0 0; scale: 1.06; } 24% { scale: 1; } 72% { opacity: 1; } 100% { opacity: 0; translate: 0 -16px; } }

.exp__cards { display: grid; align-self: center; }
.xcard { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 36px; transition: opacity .4s, translate .6s var(--ease), visibility 0s .6s; }
.xcard.is-past { translate: 0 -36px; }
.xcard.on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .55s .08s, translate .75s .08s var(--ease), visibility 0s; }
.xcard__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 10.5px; color: var(--muted); }
.xcard__lv { padding: 4px 8px; border: 1px solid var(--ink); color: var(--ink); }
.badge { padding: 4px 8px; background: var(--wine); color: #fff; font-size: 9px; }
.xcard__role { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.7vw, 62px); line-height: .95; text-transform: uppercase; min-height: .95em; }
.xcard__co { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--wine); }
.xcard__list { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.xcard__list li { position: relative; padding-left: 20px; max-width: 58ch; color: var(--ink-2); line-height: 1.55; opacity: 0; translate: 0 12px; transition: opacity .4s, translate .5s var(--ease); }
.xcard__list li::before { content: ""; position: absolute; left: 0; top: .64em; width: 6px; height: 6px; background: var(--ink); }
.xcard.on .xcard__list li { opacity: 1; translate: 0 0; }
.xcard.on .xcard__list li:nth-child(1) { transition-delay: .25s; }
.xcard.on .xcard__list li:nth-child(2) { transition-delay: .33s; }
.xcard.on .xcard__list li:nth-child(3) { transition-delay: .41s; }
.xcard__unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; font-size: 9.5px; }
.xcard__unlock span { margin-right: 6px; color: var(--wine); }
.xcard__unlock span::before { content: "+ "; }
.xcard__unlock b { padding: 5px 9px; background: var(--ink); color: #fff; font-weight: 500; opacity: 0; scale: .5; transition: opacity .3s, scale .45s cubic-bezier(.34, 1.56, .64, 1); }
.xcard.on .xcard__unlock b { opacity: 1; scale: 1; }
.xcard.on .xcard__unlock b:nth-of-type(1) { transition-delay: .5s; }
.xcard.on .xcard__unlock b:nth-of-type(2) { transition-delay: .56s; }
.xcard.on .xcard__unlock b:nth-of-type(3) { transition-delay: .62s; }
.xcard.on .xcard__unlock b:nth-of-type(4) { transition-delay: .68s; }
.xcard.on .xcard__unlock b:nth-of-type(5) { transition-delay: .74s; }
.xcard--next .xcard__role { color: var(--wine); }
.xcard__lead { margin-top: 18px; max-width: 46ch; color: var(--ink-2); line-height: 1.6; }
.xcard--next .btn { margin-top: 24px; }

.xp { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); margin-top: clamp(10px, 2.5vh, 28px); padding-top: 16px; border-top: 1px solid var(--line); }
.xp__years { display: flex; align-items: baseline; gap: 8px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.xp__years b { min-width: 2.1ch; font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.xp__track { position: relative; flex: 1; height: 4px; margin: 0 12px 20px; background: var(--line); }
.xp__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, var(--wine) 0 9px, transparent 9px 11px); }
.xp__node { position: absolute; left: var(--x); top: 50%; width: 26px; height: 26px; translate: -50% -50%; border: 0; background: none; padding: 0; cursor: pointer; }
.xp__node::before { content: ""; position: absolute; inset: 6px; background: var(--bg-2); border: 1px solid var(--ink); transition: background .3s, border-color .3s, rotate .4s var(--ease); }
.xp__node.lit::before { background: var(--wine); border-color: var(--wine); rotate: 45deg; }
.xp__node em { position: absolute; top: 26px; left: 50%; translate: -50% 0; font-family: var(--mono); font-style: normal; font-size: 9.5px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; transition: color .3s; }
.xp__node.lit em { color: var(--ink); }

/* ---------------------------------------------------------- selected work — blueprint → product render engine */
.work { padding: clamp(96px, 13vw, 180px) var(--pad); }
.queue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: clamp(36px, 4vw, 60px); padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); font-size: 10px; color: #8a8a90; }
.queue__cells { display: flex; flex-wrap: wrap; gap: 5px; }
.queue__item { position: relative; overflow: hidden; width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, .22); transition: border-color .4s; }
.queue__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--p, 0%); background: var(--wine-2); transition: height .15s; }
.queue__item.is-rendering { border-color: var(--wine-2); animation: blink .6s steps(2, start) infinite; }
.queue__item.is-done { border-color: #3fcf7a; animation: none; }
.queue__item.is-done::after { height: 100%; background: #3fcf7a; }
.queue__count { margin-left: auto; }
.queue__count b { font-weight: 500; color: #ededea; font-variant-numeric: tabular-nums; }
.cases { display: grid; gap: clamp(90px, 11vw, 160px); margin-top: clamp(60px, 7vw, 110px); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4.5vw, 80px); align-items: center; }
.case--right { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.case--right .case__screen { order: 2; }
.case__screen { perspective: 1600px; min-width: 0; }
.case__info { min-width: 0; }
.browser {
  position: relative; background: #141418; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 70px 120px -60px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease);
}
.browser::after { content: ""; position: absolute; inset: -1px; pointer-events: none; border: 1px solid transparent; transition: border-color .4s; }
.case:hover .browser::after { border-color: rgba(194, 58, 76, .6); }
.browser__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #1a1a1f; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.browser__dots i:first-child { background: var(--wine-2); }
.browser__url { flex: 1; min-width: 0; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255, 255, 255, .05); font-size: 10px; letter-spacing: .05em; text-transform: none; color: #d4d4d8; }
.browser__url b { font-weight: 400; color: #6f6f76; }
.browser__res { white-space: nowrap; font-size: 9.5px; color: var(--wine-2); font-variant-numeric: tabular-nums; }
.browser__body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #101015; }
.browser__view { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.browser__scan { position: absolute; left: 0; right: 0; top: var(--scan, 0%); height: 2px; background: var(--wine-2); box-shadow: 0 0 18px 3px rgba(194, 58, 76, .6); opacity: 0; pointer-events: none; }
.browser.is-scanning .browser__scan { opacity: 1; }
.browser__mode { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: rgba(12, 12, 14, .88); border-left: 2px solid var(--wine-2); color: #fff; font-size: 9px; pointer-events: none; }
.browser__mode.is-live { border-color: #3fcf7a; }
.browser__hint { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; background: rgba(12, 12, 14, .88); color: #d4d4d8; font-size: 9px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.case.is-ready .browser__hint { opacity: 1; }
.case.is-ready:hover .browser__hint { opacity: 0; }

.case__top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #8a8a90; }
.case__n { font-family: var(--display); font-weight: 700; font-size: 70px; line-height: .9; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.case__status { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .16); color: #c9c9cd; transition: color .4s, border-color .4s; }
.case__status.is-live { color: #3fcf7a; border-color: rgba(63, 207, 122, .45); }
.case__status.is-live::before { content: "● "; }
.case__name { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4vw, 66px); line-height: .95; text-transform: uppercase; }
.case__desc { margin-top: 14px; color: #a3a3a9; font-size: 15.5px; line-height: 1.6; }
.case__spec { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.case__spec div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.case__spec dt { padding-top: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #8a8a90; }
.case__spec dd { font-size: 14px; color: #e4e4e6; }
.case__cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; padding: 10px 10px 10px 18px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 14px; text-decoration: none; transition: background .3s, border-color .3s; max-width: 100%; }
.case__cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case__cta i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--wine-2); font-style: normal; transition: transform .45s var(--ease), background .3s, color .3s; }
.case__cta:hover { background: var(--wine); border-color: var(--wine); }
.case__cta:hover i { transform: rotate(45deg); background: #fff; color: var(--wine); }

/* the smaller "render wall" cards */
.wall-head { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(100px, 12vw, 170px); padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 10.5px; color: #8a8a90; }
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 4.5vw, 64px) clamp(20px, 2.4vw, 36px); margin-top: clamp(30px, 4vw, 56px); }
.case--mini { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
.case--mini .browser__bar { height: 32px; gap: 10px; padding: 0 10px; }
.case--mini .browser__dots i { width: 7px; height: 7px; }
.case--mini .browser__url { font-size: 9px; padding: 4px 8px; }
.case--mini .browser__res { display: none; }
.case--mini .browser__mode, .case--mini .browser__hint { font-size: 8.5px; padding: 4px 7px; }
.case--mini .browser__hint { display: none; }
.case--mini .case__n { font-size: 40px; }
.case--mini .case__name { margin-top: 8px; font-size: clamp(26px, 2.3vw, 36px); }
.case--mini .case__desc { margin-top: 10px; font-size: 14.5px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: 9.5px; }
.case__tags span { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .16); color: #c9c9cd; }
.case__tags span:first-child { border-color: rgba(194, 58, 76, .6); color: #ee9aa6; }
.case--mini .case__cta { align-self: flex-start; margin-top: 18px; padding: 7px 7px 7px 14px; font-size: 13px; }
.case--mini .case__cta i { width: 26px; height: 26px; }

/* ---------------------------------------------------------- toolkit (periodic table) */
.stack { padding: clamp(96px, 13vw, 180px) var(--pad); background: var(--bg); overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-backend  { --eb: var(--wine); --ef: #fff; --ed: var(--wine); }
.c-frontend { --eb: var(--ink); --ef: #fff; --ed: var(--ink); }
.c-database { --eb: #4a4a52; --ef: #fff; --ed: #4a4a52; }
.c-ai       { --eb: #f0e1e3; --ef: var(--wine); --ed: rgba(122, 31, 43, .45); }
.c-cms      { --eb: #d2d2cd; --ef: var(--ink); --ed: #c2c2bc; }
.c-tools    { --eb: rgba(255, 255, 255, .6); --ef: var(--ink); --ed: var(--line-2); }

.ptable-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: clamp(50px, 6vw, 90px); }
.ptable { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(4, auto) 14px auto; gap: 6px; }
.el {
  grid-column: var(--c); grid-row: var(--r); position: relative; aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left;
  padding: clamp(6px, .7vw, 10px); border: 1px solid var(--ed); background: var(--eb); color: var(--ef);
  cursor: pointer; font: inherit;
  opacity: 0; translate: 0 -70vh; rotate: 8deg;
  transition: transform .35s var(--ease), box-shadow .35s, opacity .35s, filter .35s;
}
.ptable.is-in .el { opacity: 1; translate: 0 0; rotate: 0deg; transition: translate .9s cubic-bezier(.34, 1.4, .64, 1) var(--d), rotate .9s var(--ease) var(--d), opacity .3s var(--d), transform .35s var(--ease), box-shadow .35s, filter .35s; }
.ptable.is-in.settled .el { transition: transform .35s var(--ease), box-shadow .35s, opacity .35s, filter .35s; }
.el__n { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; opacity: .7; }
.el__s { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 42px); line-height: .9; letter-spacing: .01em; }
.el__name { width: 100%; font-size: clamp(9px, .75vw, 11px); font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.el.hot::after { content: ""; position: absolute; right: 8px; top: 8px; width: 6px; height: 6px; background: currentColor; animation: blink 1.6s steps(2, start) infinite; }
.el:hover, .el:focus-visible, .el.sel { z-index: 2; transform: translateY(-6px) scale(1.07); box-shadow: 0 22px 40px -18px rgba(13, 13, 15, .55); }
.el.sel { outline: 2px solid var(--ink); outline-offset: 3px; }
.el.c-backend.sel { outline-color: var(--wine); }
.ptable.is-in .el.dim { opacity: .2; filter: grayscale(1); }
.ptable__key { grid-column: 2 / 6; grid-row: 1; align-self: center; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 clamp(6px, 1vw, 16px); }
.ptable__keylabel { width: 100%; margin-bottom: 4px; font-size: 9.5px; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .25s, border-color .25s; }
.key i { width: 10px; height: 10px; background: var(--eb); border: 1px solid var(--ed); }
.key:hover, .key.on { background: #fff; border-color: var(--ink); }
.ptable__stat { grid-column: 6 / 9; grid-row: 4; align-self: center; justify-self: end; font-size: 9.5px; color: var(--muted); line-height: 1.8; text-align: right; }
.ptable__stat b { color: var(--ink); font-weight: 500; }
.ptable__tools { grid-column: 1 / 3; grid-row: 6; align-self: center; font-size: 10px; color: var(--muted); }

.inspector { position: sticky; top: 100px; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); padding: 20px; }
.inspector__tile {
  position: relative; overflow: hidden; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; background: var(--eb); color: var(--ef); border: 1px solid var(--ed);
  transition: background .4s, color .4s, border-color .4s;
}
.inspector__tile > span:first-child { font-size: 11px; opacity: .75; }
.inspector__tile b { font-family: var(--display); font-weight: 700; font-size: clamp(90px, 9vw, 140px); line-height: .85; }
.inspector__tile > span:last-child { font-size: 15px; font-weight: 600; }
.inspector__tile.scan::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(transparent, rgba(255, 255, 255, .35), transparent); animation: scan .6s var(--ease) forwards; }
@keyframes scan { to { top: 100%; } }
.inspector__body { margin-top: 18px; }
.inspector__body h3 { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; }
.inspector__body p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; min-height: 3.1em; }
.inspector__row { margin-top: 14px; }
.inspector__row > span { font-size: 9.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tags span { padding: 5px 9px; background: var(--ink); color: #fff; font-size: 12px; }
.tags span.none { background: none; color: var(--muted); padding-left: 0; }
.inspector__hot { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 9.5px; color: var(--wine); }
.inspector__hot i { width: 7px; height: 7px; background: var(--wine); animation: blink 1.6s steps(2, start) infinite; }
.inspector__hot[hidden] { display: none; }

.stack__extra { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
.side-card { padding: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.edu, .langs { list-style: none; margin-top: 8px; }
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.edu li { padding: 10px 0 2px 16px; border-left: 1px solid var(--line); }
.edu b { display: block; font-size: 15.5px; font-weight: 600; }
.edu span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.edu em { display: block; margin-bottom: 8px; font-style: normal; font-size: 10px; color: var(--wine); }
.langs li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.langs li:last-child { border-bottom: 0; padding-bottom: 0; }
.langs b { font-size: 15.5px; font-weight: 600; }
.langs span { padding: 4px 8px; border: 1px solid var(--line-2); font-size: 9.5px; }
/* ---------------------------------------------------------- how I work — build pipeline */
.pipeline { margin-top: clamp(50px, 6vw, 90px); padding: clamp(16px, 2.2vw, 28px); border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 60%); }
.pipeline__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 10px; color: #8a8a90; }
.pipeline__top b { font-weight: 500; color: #ededea; }
.pipeline__dot { width: 9px; height: 9px; background: #6f6f76; }
.pipeline.is-running .pipeline__dot { background: var(--wine-2); animation: blink .8s steps(2, start) infinite; }
.pipeline.is-done .pipeline__dot { background: #3fcf7a; }
.pipeline__state { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .18); color: #ededea; }
.pipeline.is-running .pipeline__state { border-color: var(--wine-2); color: var(--wine-2); }
.pipeline.is-done .pipeline__state { border-color: #3fcf7a; color: #3fcf7a; }
.pipeline__clock { color: #ededea; font-variant-numeric: tabular-nums; }
.pipeline__rerun { margin-left: auto; padding: 8px 12px; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #ededea; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; cursor: pointer; transition: background .3s, border-color .3s; }
.pipeline__rerun:hover { background: var(--wine); border-color: var(--wine); }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 14px; }
.rail__seg { display: flex; align-items: center; height: 18px; }
.rail__seg::before { content: ""; position: relative; z-index: 1; flex: none; width: 18px; height: 18px; border: 1px solid rgba(255, 255, 255, .35); background: var(--dark); transition: background .3s, border-color .3s; }
.rail__seg::after { content: ""; flex: 1; height: 6px; margin-right: -16px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 6px, transparent 6px 14px); }
.rail__seg:last-child::after { margin-right: 0; }
.rail__seg.is-running::before { background: var(--wine-2); border-color: var(--wine-2); animation: blink .6s steps(2, start) infinite; }
.rail__seg.is-passed::before { background: #3fcf7a; border-color: #3fcf7a; }
.rail__seg.is-flow::after { background: repeating-linear-gradient(90deg, var(--wine-2) 0 6px, transparent 6px 14px); animation: flow .45s linear infinite; }
.pipeline.is-done .rail__seg.is-flow::after { background-image: repeating-linear-gradient(90deg, #3fcf7a 0 6px, transparent 6px 14px); }
@keyframes flow { to { background-position: 14px 0; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; min-height: 0; padding: 20px; border: 1px solid rgba(255, 255, 255, .1); background: #111114; opacity: .5; transition: opacity .4s, border-color .4s, box-shadow .4s, translate .4s var(--ease); }
.step.is-running { opacity: 1; border-color: var(--wine-2); box-shadow: 0 0 0 1px var(--wine-2), 0 30px 70px -30px rgba(194, 58, 76, .55); translate: 0 -6px; }
.step.is-passed { opacity: 1; border-color: rgba(63, 207, 122, .3); }
.step__head { display: flex; align-items: center; gap: 10px; font-size: 10px; color: #c9c9cd; }
.step__icon { position: relative; flex: none; width: 14px; height: 14px; border: 1px solid rgba(255, 255, 255, .4); }
.step.is-running .step__icon { border-color: var(--wine-2); background: linear-gradient(var(--wine-2), var(--wine-2)) 0 0 / 50% 50% no-repeat; animation: spin .8s steps(4) infinite; }
.step.is-passed .step__icon { border-color: #3fcf7a; background: #3fcf7a; }
.step.is-passed .step__icon::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; line-height: 1; color: var(--dark); }
@keyframes spin { to { rotate: 360deg; } }
.step__time { margin-left: auto; color: #6f6f76; }
.step.is-running .step__time { color: var(--wine-2); }
.step.is-passed .step__time { color: #3fcf7a; }
.step h3 { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.3vw, 38px); line-height: 1; text-transform: uppercase; }
.step__log { min-height: 8em; margin-top: 14px; padding: 12px; background: #09090b; border: 1px solid rgba(255, 255, 255, .06); font-size: 11px; line-height: 1.65; letter-spacing: .02em; text-transform: none; white-space: pre-wrap; color: #8a8a90; overflow: hidden; }
.step__log .c { color: #ededea; }
.step__log .ok { color: #3fcf7a; }
.step__log .cur::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--wine-2); animation: blink .7s steps(2, start) infinite; }
.step p { margin-top: auto; padding-top: 18px; color: #9d9da3; font-size: 14.5px; line-height: 1.55; }
.pipeline__result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .14); font-size: 10.5px; color: #6f6f76; transition: background .5s, border-color .5s, color .5s; }
.pipeline__result i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; font-style: normal; transition: background .5s, color .5s; }
.pipeline__result b { margin-left: auto; font-weight: 500; }
.pipeline.is-done .pipeline__result { border-style: solid; border-color: #3fcf7a; background: rgba(63, 207, 122, .08); color: #3fcf7a; }
.pipeline.is-done .pipeline__result i { background: #3fcf7a; color: var(--dark); }

.marquee { margin: clamp(80px, 10vw, 140px) calc(var(--pad) * -1) 0; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); animation: marquee 28s linear infinite; font-family: var(--display); font-weight: 700; font-size: clamp(54px, 8.5vw, 130px); line-height: 1; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.marquee__track i { flex: none; width: .16em; height: .16em; background: var(--wine-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- contact — "brief builder" */
.contact { padding: clamp(96px, 13vw, 180px) var(--pad) clamp(80px, 10vw, 140px); }
.contact__head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 8vw, 160px); line-height: .88; letter-spacing: -.01em; }
.contact__title em { font-style: normal; color: var(--wine); }
.contact__lead { max-width: 34ch; justify-self: end; padding-bottom: 12px; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.contact__lead b { color: var(--ink); font-weight: 600; }
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.ch.hit { transition: transform .14s ease-out; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }

.brief { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; margin-top: clamp(50px, 6vw, 90px); }
.bf { border: 0; padding: 22px 0 24px; border-top: 1px solid var(--line); min-width: 0; }
.bf legend { display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin-bottom: 16px; font-size: 10.5px; color: var(--ink); }
.bf legend b { display: grid; place-items: center; width: 26px; height: 22px; background: var(--ink); color: #fff; font-weight: 500; font-size: 10px; }
.bf legend small { margin-left: auto; font-size: 9.5px; color: var(--muted); }
.bf__opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .45); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, translate .3s var(--ease);
}
.opt i { width: 10px; height: 10px; border: 1.5px solid currentColor; transition: background .25s, rotate .35s var(--ease); }
.opt:hover { border-color: var(--ink); translate: 0 -2px; }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt[aria-pressed="true"] i { background: var(--wine-2); border-color: var(--wine-2); rotate: 45deg; }
.spark { position: fixed; z-index: 130; width: 6px; height: 6px; pointer-events: none; background: var(--wine-2); animation: spark .6s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes spark { to { translate: var(--sx) var(--sy); rotate: var(--sr); opacity: 0; } }
.bf--inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.bf--inputs legend { grid-column: 1 / -1; margin-bottom: 0; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: 9.5px; color: var(--muted); }
.field small { letter-spacing: .08em; text-transform: none; }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1.5px solid var(--line-2); border-radius: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 18px; font-weight: 500; resize: none; outline: none; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #a5a5a9; font-weight: 400; }
.field input:focus, .field textarea:focus { border-color: var(--wine); }

.brief__out { position: sticky; top: 96px; overflow: hidden; background: #0f0f12; color: #ededea; border: 1px solid #000; box-shadow: 0 50px 100px -50px rgba(13, 13, 15, .6); }
.brief__out::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--wine-2) 0 6px, transparent 6px 8px); }
.brief__bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 10px; color: #8a8a90; }
.brief__dots { display: flex; gap: 6px; }
.brief__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.brief__dots i:first-child { background: var(--wine-2); }
.brief__bar span:last-child { margin-left: auto; color: #ededea; font-variant-numeric: tabular-nums; }
.brief__code { min-height: 300px; margin: 0; padding: 18px 18px 8px; font-size: 12.5px; line-height: 1.75; letter-spacing: .02em; text-transform: none; white-space: pre-wrap; word-break: break-word; color: #8a8a90; }
.brief__code .k { color: #ee9aa6; }
.brief__code .s { color: #e6e6e1; transition: background 1.2s; }
.brief__code .e { color: #5d5d64; }
.brief__code .c { color: #6f9f7f; }
.brief__code .new { background: rgba(194, 58, 76, .45); transition: none; }
.brief__meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; padding: 6px 18px 16px; }
.brief__meter i { height: 8px; background: rgba(255, 255, 255, .1); transition: background .3s; }
.brief__meter i.on { background: var(--wine-2); }
.brief__meter.full i.on { background: #3fcf7a; }
.brief__term { margin: 0 18px 14px; padding: 12px 14px; background: #09090b; border: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; line-height: 1.7; letter-spacing: .02em; text-transform: none; white-space: pre-wrap; color: #8a8a90; }
.brief__term .c { color: #ededea; }
.brief__term .ok { color: #3fcf7a; }
.brief__go {
  display: flex; align-items: center; justify-content: space-between; width: calc(100% - 36px); margin: 0 18px; padding: 16px 18px;
  border: 0; background: var(--wine-2); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; cursor: pointer;
  transition: background .3s, translate .3s var(--ease);
}
.brief__go:hover { background: #d4485b; translate: 0 -2px; }
.brief__go:disabled { background: #3a3a40; cursor: progress; translate: 0 0; }
.brief__go kbd { color: #fff; }
.brief__note { padding: 12px 18px 18px; font-size: 9.5px; color: #6f6f76; }
.brief__stamp { position: absolute; right: 18px; top: 64px; padding: 8px 14px; border: 2.5px solid #3fcf7a; color: #3fcf7a; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .08em; rotate: -8deg; opacity: 0; scale: 2; pointer-events: none; }
.brief__stamp.hit { animation: stamp .55s cubic-bezier(.2, 1.3, .4, 1) forwards; }

.contact__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: clamp(60px, 7vw, 100px); padding-top: 26px; border-top: 1px solid var(--line); }
.contact__or { width: 100%; font-size: 10px; color: var(--muted); }
.contact__mail { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.2vw, 64px); line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--wine), var(--wine)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.contact__mail:hover { color: var(--wine); background-size: 100% 3px; }
.contact__mail span { font-size: .5em; color: var(--wine); }
.contact__actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: #fff; }
.contact__avail { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 10.5px; color: var(--ink-2); }

/* ---------------------------------------------------------- footer — "end of file" */
.footer { position: relative; overflow: hidden; padding: clamp(60px, 7vw, 100px) var(--pad) 26px; background: var(--dark); color: #ededea; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 48px 48px; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.footer a { color: inherit; text-decoration: none; }
.footer__top { position: relative; display: flex; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 10.5px; color: #8a8a90; }
.footer__ver { margin-right: auto; }
.footer__rebuild { padding: 10px 14px; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #ededea; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; cursor: pointer; transition: background .3s, border-color .3s; }
.footer__rebuild:hover { background: var(--wine); border-color: var(--wine); }
/* footer portrait: the canvas draws the face; the caption is placed at eye level by js/chrome.js */
.sig { position: relative; height: clamp(300px, 38vw, 580px); margin: clamp(24px, 3vw, 44px) calc(var(--pad) * -.5) 0; }
.sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.sig__cap { position: absolute; left: 72%; top: 30%; display: grid; justify-items: start; gap: 6px; width: max-content; max-width: 320px; pointer-events: none; opacity: 0; transform: translateX(-12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sig.is-in .sig__cap { opacity: 1; transform: none; }
.sig__fig { font-size: 10px; line-height: 16px; color: var(--wine-2); }
.sig__name { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.2vw, 52px); line-height: .98; letter-spacing: .01em; color: #ededea; }
.sig__role { margin-top: 4px; font-size: 14px; color: #a3a3a8; }
.sig__meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 10px; color: #6f6f76; }
.sig__meta i { font-style: normal; color: #ededea; }
.sig__hint { position: absolute; right: calc(var(--pad) * .5); bottom: 0; font-size: 9.5px; color: #6f6f76; pointer-events: none; }
@media (max-width: 859px) {
  /* face on top, caption underneath */
  .sig { height: calc(min(82vw, 460px) + 130px); }
  .sig canvas { height: calc(100% - 130px); }
  .sig__cap { left: calc(var(--pad) * .5); top: auto; bottom: 0; max-width: calc(100% - var(--pad)); transform: translateY(10px); }
  .sig__name { font-size: 30px; }
  .sig__name br { display: none; }
  .sig__hint { bottom: 138px; }
}
@media (prefers-reduced-motion: reduce) { .sig__cap { transition: none; } }
.footer__grid { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 5vw, 70px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fcol__label { margin-bottom: 6px; font-size: 9.5px; color: #8a8a90; }
.fcol__label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--wine-2); vertical-align: 1px; }
.fcol__nav { list-style: none; display: grid; gap: 8px; }
.fcol__nav a { display: inline-flex; align-items: baseline; gap: 10px; font-size: 15px; transition: color .25s, translate .3s var(--ease); }
.fcol__nav a i { font-family: var(--mono); font-style: normal; font-size: 9.5px; color: #6f6f76; }
.fcol__nav a:hover { color: var(--wine-2); translate: 6px 0; }
.fcol__mail { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; overflow-wrap: anywhere; background: linear-gradient(var(--wine-2), var(--wine-2)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.fcol__mail:hover { background-size: 100% 1px; }
.fcol__link { font-size: 14px; color: #c9c9cd; }
.fcol__link:hover { color: #fff; }
.fcol__note, .fcol__sub { font-size: 13px; color: #8a8a90; }
.fcol__sub { display: flex; align-items: center; gap: 8px; font-size: 9.5px; }
.fclock { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.visit { display: grid; gap: 0; }
.visit div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.visit dt { font-size: 13px; color: #9d9da3; }
.visit dd { font-family: var(--display); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.visit div:nth-child(2) dd { color: var(--wine-2); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 9.5px; color: #6f6f76; }
.footer__bottom kbd { color: #ededea; }
.cmd__list:focus { outline: none; }
@media (pointer: coarse) { .footer__kbd, .brief__go kbd { display: none; } }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 18px; background: var(--ink); color: #fff; font-size: 11px; border-radius: 99px; transition: opacity .3s, translate .4s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------------------------------------------------------- responsive */
@media (max-height: 720px) and (min-width: 860px) {
  .hero__list { display: none; }
}
@media (max-width: 1320px) {
  .nav__clock > span { display: none; }
}
@media (max-width: 1180px) {
  .nav__clock { display: none; }
  .nav__where { min-width: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { display: none; }
  .panel--quote { width: 220px; }
  .panel__big { font-size: 34px; }
}
/* narrow / portrait — keep in sync with isNarrow() in main.js */
@media (max-width: 859px), (max-aspect-ratio: 17/20) {
  .nav__links, .nav__clock { display: none; }
  .nav__right { margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero { height: auto; min-height: 0; }
  .env { bottom: auto; height: 100vh; height: 100svh; min-height: 560px; }
  .pane--2, .pane--5 { display: none; }
  .stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
  .hero__name { font-size: 30vw; }
  .hero__ui { position: relative; inset: auto; opacity: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px var(--pad) 64px; }
  .hero__intro { position: static; max-width: none; grid-column: 1 / -1; padding: 28px 0 18px; }
  .hero__title { font-size: clamp(48px, 15vw, 96px); }
  .hero__title span { display: inline; }
  .hero__title span + span::before { content: " "; }
  .hero__list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .panel, .panel.tilt { position: relative; inset: auto; width: auto; }
  .panel--id { grid-column: 1 / -1; order: 1; }
  .panel--quote { order: 2; }
  .panel--hud { order: 3; }
  .panel__big { font-size: clamp(26px, 8vw, 40px); }
  .panel__small { flex-wrap: wrap; gap: 6px 10px; }
  .panel__small li + li::before { margin-right: 10px; }
  .hud__value { font-size: 40px; }
  .scroll-cue { display: none; }
  .anno { --off: 40px; }
  .anno__box { max-width: 150px; padding: 7px 10px 8px; }
  .anno__box span { font-size: 11.5px; }
  .about__grid { grid-template-columns: 1fr; }
  .frame { max-width: 520px; margin: 0 auto 40px; }
  .scan__mark[data-side="left"] > div { right: auto; left: 22px; }
  .scan__mark > div { max-width: 150px; }
  .scan__line span { left: auto; right: 14px; top: 8px; }
  .stamp { right: 0; bottom: 0; }
  .stats b { font-size: 38px; }
  .contact__avail { margin-left: 0; width: 100%; }
  .contact__head, .brief { grid-template-columns: minmax(0, 1fr); }
  .contact__lead { justify-self: start; }
  .brief__out { position: relative; top: 0; }
  .brief__code { min-height: 0; }
  .exp__pin { padding-top: 74px; }
  .exp__title { font-size: clamp(26px, 7vw, 40px); }
  .exp__scene { grid-template-columns: 1fr; grid-template-rows: minmax(110px, 22svh) auto; align-items: start; gap: 12px; }
  .exp__fig { display: none; }
  .exp__flash { top: auto; bottom: 0; padding: 7px 11px; font-size: 10px; }
  .xcard__role { font-size: clamp(30px, 8.5vw, 44px); }
  .xcard__co { font-size: 15px; }
  .xcard__list li { font-size: 14px; }
  .xcard__unlock { margin-top: 14px; }
  .xp__years b { font-size: 26px; }
  .xp__years span { display: none; }
  .ptable-wrap { grid-template-columns: 1fr; }
  .inspector { position: static; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; order: -1; }
  .inspector__tile b { font-size: 72px; }
  .inspector__body { margin-top: 0; }
  .stack__extra { grid-template-columns: 1fr; }
  .case, .case--right { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .case--right .case__screen { order: 0; }
  .case__n { font-size: 54px; }
}
@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; gap: 24px; }
  .split-head p { justify-self: start; }
}
@media (max-width: 1100px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 860px) {
  .case { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .case--right { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .pipeline__rerun { margin-left: 0; }
  .pipeline__result b { margin-left: 0; width: 100%; }
  .queue__label { width: 100%; }
  .queue__count { margin-left: 0; }
  .wall { grid-template-columns: minmax(0, 1fr); }
  .wall-head span:last-child { display: none; }
  .sec-head span:last-child { display: none; }
  .dossier__bar { gap: 6px 16px; }
  .dossier { padding-bottom: 110px; }
  .report__lines li { flex-wrap: wrap; gap: 4px 12px; }
  .report__lines li::after { display: none; }
  .report__lines .v { width: 100%; text-align: left; font-size: 15px; }
  .idhash span { display: none; }
  .nav__where { display: none; }
  .nav__mark { width: 96px; height: 23px; }
  .nav__cmd kbd { display: none; }
  .nav__cmd { padding: 9px 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .bf--inputs { grid-template-columns: 1fr; }
  .opt { padding: 10px 13px; font-size: 14px; }
  .footer__ver { display: none; }
  .footer__top { justify-content: space-between; }
  .cmd { padding-top: 70px; }
  .cmd__keys { display: none; }
  .ptable { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: none; gap: 5px; }
  .el { grid-column: auto; grid-row: auto; }
  .el__name { display: none; }
  .el__s { font-size: 24px; }
  .el.hot::after { right: 5px; top: 5px; width: 5px; height: 5px; }
  .ptable__key { grid-column: 1 / -1; grid-row: auto; padding: 0 0 10px; }
  .ptable__stat, .ptable__tools { display: none; }
  .inspector { grid-template-columns: 110px minmax(0, 1fr); padding: 14px; gap: 14px; }
  .inspector__tile { padding: 10px; }
  .inspector__tile b { font-size: 50px; }
  .inspector__tile > span:last-child { font-size: 11px; }
  .inspector__body h3 { font-size: 22px; }
  .inspector__body p { font-size: 13.5px; min-height: 0; }
  .edu { grid-template-columns: 1fr; gap: 10px; }
  .case__desc { font-size: 14.5px; }
  .xcard__list { gap: 6px; margin-top: 12px; }
  .btn { padding: 16px 22px; font-size: 14px; }
}
@media (max-width: 380px) {
  .hero__ui { grid-template-columns: 1fr; }
}
@media (max-height: 760px) {
  .xcard__list li:nth-child(3) { display: none; }
  .exp__title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}

/* once the intro is over, hover effects should react instantly */
.intro-done .panel, .intro-done .tag, .intro-done .hero__hint, .intro-done .scroll-cue { transition-delay: 0s !important; }
