/* ==========================================================================
   MR.MYORSER — matte noir / emerald signal
   ========================================================================== */

:root {
  --bg: #121516;
  --bg-2: #171a1c;
  --surface: #1a1e1f;
  --surface-2: #1d2122;
  --surface-3: #252a2b;
  --line: rgba(226, 240, 233, 0.08);
  --line-2: rgba(226, 240, 233, 0.14);
  --line-3: rgba(226, 240, 233, 0.24);
  --ink: #eef2ef;
  --ink-2: #a9b3ae;
  --ink-3: #6e7873;
  --accent: #2fe0a6;
  --accent-2: #7ef0b8;
  --accent-deep: #0b7a5c;
  --accent-mid: #14b88a;
  --accent-ink: #04140e;
  --accent-a08: rgba(47, 224, 166, 0.08);
  --accent-a16: rgba(47, 224, 166, 0.16);
  --accent-a35: rgba(47, 224, 166, 0.35);
  --grad: linear-gradient(120deg, #0b7a5c 0%, #14b88a 45%, #7ef0b8 100%);
  --warn: #ffb547;

  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --f-brand: "Archivo", "Unbounded", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1520px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

/* ---------- Atmosphere layers ---------- */

#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 7, 7, 0.55) 100%);
}

main, .nav, .footer { position: relative; z-index: 2; }
main { overflow-x: clip; }

/* ---------- Typography primitives ---------- */

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .idx { color: var(--accent); }
.eyebrow .bar { width: 36px; height: 1px; background: var(--line-3); }

.h-xl, .h-lg, .h-md {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.h-xl { font-size: clamp(44px, 8.4vw, 148px); }
.h-lg { font-size: clamp(36px, 5.6vw, 96px); }
.h-md { font-size: clamp(26px, 2.8vw, 44px); line-height: 1.04; letter-spacing: -0.025em; }
.h-light { font-weight: 300; }
.accent { color: var(--accent); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-a35), 0 10px 40px -12px var(--accent-a35);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent-2);
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.55s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { box-shadow: 0 0 0 6px var(--accent-a16), 0 16px 50px -10px var(--accent-a35); }
.btn--ghost {
  border: 1px solid var(--line-3); color: var(--ink);
  background: rgba(15, 17, 18, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--disabled {
  border: 1px dashed var(--line-3); color: var(--ink-3); cursor: not-allowed;
}
.btn--sm { --h: 42px; padding: 0 18px; font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__mark { width: 140px; overflow: visible; }
.preloader__mark .p-c { transform-origin: 34px 66px; animation: pl-c 0.9s var(--ease) both; }
.preloader__mark .p-s { animation: pl-s 0.9s 0.12s var(--ease) both; }
.preloader__mark .p-r { transform-origin: 166px 100px; animation: pl-r 0.9s 0.24s var(--ease) both; }
@keyframes pl-c { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pl-s { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pl-r { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.preloader__meta {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3);
}
.preloader__count { color: var(--accent); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.preloader__bar { width: 180px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */

.cursor { position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(126, 240, 184, 0.45);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: var(--accent-a08); border-color: var(--accent);
}
.cursor__label {
  position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent);
  opacity: 0; transition: opacity 0.3s;
}
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ---------- Navigation ---------- */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 17, 18, 0.62);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 46px; height: auto; }
.brand__word {
  font-family: var(--f-brand); font-weight: 800; font-stretch: 125%;
  font-size: 15px; letter-spacing: 0.02em;
}
.brand__word span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative; padding: 8px 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); transition: color 0.3s var(--ease);
}
.nav__link sup { color: var(--accent); font-size: 9px; margin-right: 6px; vertical-align: 4px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
}
.lang button {
  padding: 7px 11px; border-radius: 999px; color: var(--ink-3);
  transition: color 0.3s, background-color 0.3s;
}
.lang button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger i:nth-child(1) { top: 19px; }
.burger i:nth-child(2) { top: 26px; }
body.menu-open .burger i:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(13, 15, 16, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path 0.8s var(--ease-in-out);
  visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.menu a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 10vw, 64px);
  letter-spacing: -0.03em; line-height: 1.15; padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.menu a sup { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.menu__foot { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 28px;
}
.hero .wrap { flex: 1; display: flex; flex-direction: column; }
.hero__hud {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  color: var(--ink-3);
}
.hud-block { display: grid; gap: 6px; }
.hud-block b { color: var(--ink-2); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-a35); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 224, 166, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(47, 224, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 224, 166, 0); }
}

.hero__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0 4vh; }
.hero__kicker { margin-bottom: clamp(18px, 3vh, 36px); }
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(54px, 13.2vw, 232px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--2 { padding-left: clamp(0px, 9vw, 180px); }
.hero__title .outline { color: #6f7a76; }
.hero__title .dot { color: var(--accent); }

.hero__bottom {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end;
  margin-top: clamp(28px, 5vh, 64px);
}
.hero__desc { max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

.hero__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue__line { width: 1px; height: 34px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--accent); animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 100%; } }

.hero__orbit {
  position: absolute; right: calc(var(--gutter) + 1vw);
  width: clamp(180px, 20vw, 330px); aspect-ratio: 1; transform: translateY(-50%); top: 36%;
  pointer-events: none; opacity: 0.9;
}
.hero__orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit-spin { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.orbit-spin--rev { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal-on-load for hero */
.js .hero [data-hero] { opacity: 0; transform: translateY(24px); }
.js .hero__title .line > span { transform: translateY(105%); }
.is-ready .hero [data-hero] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms + 500ms);
}
.is-ready .hero__title .line > span {
  transform: none;
  transition: transform 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms + 250ms);
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 17, 18, 0.3), rgba(15, 17, 18, 0.7));
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 7.6vw, 132px); letter-spacing: -0.04em; line-height: 1;
  padding: 0 0.32em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--line-3);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.marquee__item.is-fill { color: var(--ink); -webkit-text-stroke: 0; }
.marquee__sep { width: clamp(28px, 3.4vw, 56px); flex: none; opacity: 0.9; }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.section--tight { padding: clamp(72px, 9vw, 140px) 0; }
.section__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section__head .eyebrow { margin-bottom: 26px; }
.section__note { color: var(--ink-3); max-width: 34ch; text-align: right; font-size: 15px; }

/* Reveal-on-scroll */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal="scale"].is-in { transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* ---------- About / Manifesto ---------- */

.about__grid { display: grid; grid-template-columns: 0.9fr 2fr; gap: clamp(32px, 6vw, 120px); }
.about__side { display: grid; align-content: start; gap: 40px; }
.portrait-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(120% 80% at 30% 20%, rgba(47, 224, 166, 0.16), transparent 60%), var(--surface);
  display: grid; place-items: center;
}
.portrait-card .big-mark { width: 62%; filter: drop-shadow(0 20px 60px rgba(47, 224, 166, 0.35)); }
.portrait-card__hud {
  position: absolute; inset: 16px; display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none; color: var(--ink-3);
}
.portrait-card__hud div { display: flex; justify-content: space-between; }
.corners { position: absolute; inset: 0; pointer-events: none; }
.corners::before, .corners::after,
.corners i::before, .corners i::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; border-width: 0;
}
.corners::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.corners::after { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.corners i::before { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.corners i::after { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.manifesto {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(26px, 3.3vw, 56px); line-height: 1.12; letter-spacing: -0.03em;
  margin: 0 0 clamp(48px, 6vw, 88px);
  text-wrap: balance;
}
.manifesto .w { opacity: 0.16; transition: opacity 0.4s linear, color 0.4s linear; }
.manifesto .w.is-lit { opacity: 1; }
.manifesto .w.hl.is-lit { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat__num {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -0.04em; line-height: 1;
}
.stat__num sup { font-size: 0.45em; color: var(--accent); vertical-align: 0.9em; margin-left: 2px; }
.stat__label { margin-top: 12px; color: var(--ink-3); font-size: 14px; line-height: 1.4; }

/* ---------- Disciplines ---------- */

.disc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 33, 34, 0.78), rgba(21, 24, 25, 0.78));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(47, 224, 166, 0.13), transparent 45%);
  transition: opacity 0.5s var(--ease);
}
.card:hover { border-color: var(--line-3); }
.card:hover::before { opacity: 1; }
.disc .card { padding: clamp(26px, 2.6vw, 40px); min-height: 520px; display: flex; flex-direction: column; }
.disc__num { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.disc__icon {
  width: 92px; height: 92px; margin: clamp(48px, 6vw, 88px) 0 auto;
  color: var(--accent);
}
.disc__icon svg { width: 100%; height: 100%; overflow: visible; }
.disc__title { margin: 40px 0 14px; }
.disc__text { color: var(--ink-2); margin: 0 0 26px; max-width: 34ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s;
}
.card:hover .tag { border-color: var(--line-3); }
.tag--accent { border-color: rgba(47, 224, 166, 0.4); color: var(--accent); background: var(--accent-a08); }

/* ---------- Work ---------- */

.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work__item { grid-column: span 6; display: block; }
.work__item--wide { grid-column: span 12; }
.work__item--7 { grid-column: span 7; }
.work__item--5 { grid-column: span 5; }
.work__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--surface);
  border: 1px solid var(--line);
}
.work__item--wide .work__media { aspect-ratio: 21 / 9; }
.work__media img, .work__media video, .work__media iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
  transform: scale(1.04); transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}
.work__item:hover .work__media img { transform: scale(1.09); }
.work__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 12, 0.7));
}
.work__chip { position: absolute; top: 18px; left: 18px; z-index: 2; }
.work__play {
  position: absolute; z-index: 2; right: 20px; bottom: 20px;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 17, 18, 0.5); border: 1px solid var(--line-3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.work__play svg { width: 18px; height: 18px; margin-left: 3px; }
.work__item:hover .work__play { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 4px 0; }
.work__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.work__sub { color: var(--ink-3); margin: 6px 0 0; font-size: 15px; }
.work__year { color: var(--ink-3); flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(15, 17, 18, 0.62); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip--warn i { background: var(--warn); }

/* ---------- Lab / Products ---------- */

.lab { background: linear-gradient(180deg, transparent, rgba(12, 14, 15, 0.65) 12%, rgba(12, 14, 15, 0.65) 88%, transparent); }
.product { position: relative; padding: clamp(36px, 4vw, 64px) 0 clamp(72px, 8vw, 120px); }
.product + .product { border-top: 1px solid var(--line); padding-top: clamp(72px, 8vw, 120px); }
.product__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.product--flip .product__grid { grid-template-columns: 1.25fr 1fr; }
.product--flip .product__info { order: 2; }
.product__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.product__icon {
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 28px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.product__icon svg { width: 30px; height: 30px; }
.product__name { margin-bottom: 18px; }
.product__name .ver {
  display: inline-block; vertical-align: top;
  font-family: var(--f-mono); font-size: 0.22em; letter-spacing: 0.06em; font-weight: 500;
  padding: 0.35em 0.7em; border-radius: 999px; margin-left: 0.3em; margin-top: 0.5em;
  background: var(--accent); color: var(--accent-ink);
}
.product--pro .product__name .ver { background: var(--warn); }
.product__tagline { font-size: clamp(19px, 1.6vw, 24px); color: var(--ink); margin: 0 0 18px; font-weight: 600; letter-spacing: -0.01em; }
.product__desc { color: var(--ink-2); margin: 0 0 32px; max-width: 48ch; }
.features { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features li { background: var(--bg-2); padding: 18px 18px 18px 46px; position: relative; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.features li b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.features li::before {
  content: ""; position: absolute; left: 18px; top: 22px; width: 12px; height: 12px;
  border: 1.5px solid var(--accent); border-radius: 3px; transform: rotate(45deg) scale(0.8);
}
.product--pro .features li::before { border-color: var(--warn); }
.product__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.product__fine { margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.product__fine code { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); word-break: break-all; }

.stage { position: relative; }
.stage__main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  aspect-ratio: 16 / 9; background: var(--surface);
}
.stage__main img { width: 100%; height: 100%; object-fit: cover; }
.stage__glow {
  position: absolute; inset: 10% 6% -6%; z-index: -1; filter: blur(70px); opacity: 0.5;
  background: radial-gradient(closest-side, rgba(150, 100, 255, 0.55), transparent);
}
.product--pro .stage__glow { background: radial-gradient(closest-side, rgba(255, 160, 40, 0.5), transparent); }
.stage__float {
  position: absolute; width: 27%; right: -4%; bottom: -12%;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-3);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  aspect-ratio: 9 / 16;
}
.product--flip .stage__float { right: auto; left: -4%; }
.stage__float img { width: 100%; height: 100%; object-fit: cover; }
.stage__video {
  position: absolute; left: 18px; top: 18px; z-index: 2;
}

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(64px, 7vw, 110px); }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--surface); cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.shot--tall { aspect-ratio: auto; }

.video-slot {
  margin-top: 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 18px 22px; border-radius: var(--radius);
  border: 1px dashed var(--line-3);
  color: var(--ink-2);
}
.video-slot__icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
}
.video-slot__icon svg { width: 16px; height: 16px; margin-left: 2px; }
.video-slot b { color: var(--ink); font-weight: 600; display: block; }

.combo {
  margin-top: clamp(40px, 5vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, rgba(150, 100, 255, 0.08), rgba(47, 224, 166, 0.06) 50%, rgba(255, 160, 40, 0.08));
  border: 1px solid var(--line-2);
}
.combo p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.combo b { color: var(--ink); }

/* ---------- Experience ---------- */

.xp { border-top: 1px solid var(--line); }
.xp__row {
  position: relative;
  display: grid; grid-template-columns: 180px 1.1fr 1.6fr 40px; gap: 32px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.xp__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1;
  background: linear-gradient(90deg, var(--accent-a08), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease);
  border-radius: 12px;
}
.xp__row:hover::before { opacity: 1; }
.xp__when { color: var(--accent); padding-top: 6px; }
.xp__co { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.xp__role { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.xp__desc { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.xp__desc .tags { margin-top: 14px; }
.xp__arrow { color: var(--ink-3); padding-top: 6px; transition: color 0.4s, transform 0.5s var(--ease); }
.xp__row:hover .xp__arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- Contact ---------- */

.contact { text-align: left; padding-bottom: clamp(72px, 9vw, 140px); }
.contact__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 11.5vw, 208px); line-height: 0.92; letter-spacing: -0.04em; margin: 0;
}
.contact__title .outline { color: #6f7a76; }
.contact__row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
  margin-top: clamp(40px, 6vw, 88px); padding-top: 40px; border-top: 1px solid var(--line);
}
.mail {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 3vw, 48px); letter-spacing: -0.03em;
  position: relative; padding-bottom: 6px; word-break: break-all;
}
.mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad);
  transform: scaleX(0.18); transform-origin: left; transition: transform 0.8s var(--ease);
}
.mail:hover::after { transform: scaleX(1); }
.mail svg { width: 0.8em; height: 0.8em; flex: none; color: var(--accent); transition: transform 0.6s var(--ease); }
.mail:hover svg { transform: rotate(45deg); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.socials a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; background: var(--bg-2);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  transition: background-color 0.4s, color 0.4s;
}
.socials a:hover { background: var(--surface-2); color: var(--accent); }
.socials a svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 28px 0 32px; color: var(--ink-3); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__brand img { width: 34px; }
.totop { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); transition: color 0.3s; }
.totop:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; padding: 4vw;
  background: rgba(8, 10, 10, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 86vh; border-radius: 14px; border: 1px solid var(--line-2);
  transform: scale(0.96); transition: transform 0.6s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-3); display: grid; place-items: center; background: rgba(15, 17, 18, 0.6);
}
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: var(--ink-2); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .disc { grid-template-columns: 1fr; }
  .disc .card { min-height: 0; }
  .disc__icon { margin: 40px 0 0; width: 72px; height: 72px; }
  .product__grid, .product--flip .product__grid { grid-template-columns: 1fr; }
  .product--flip .product__info { order: 0; }
  .stage { margin: 0 4% 8%; }
  .xp__row { grid-template-columns: 140px 1fr; }
  .xp__desc { grid-column: 2; }
  .xp__arrow { display: none; }
  .hero__orbit { opacity: 0.35; }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__right .btn, .nav__right .lang { display: none; }
  .burger { display: block; }
  .brand__mark { width: 40px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta { justify-content: flex-start; }
  .hero__title .line--2 { padding-left: 0; }
  .hero__hud .hud-block--right { display: none; }
  .hero__orbit { width: 64vw; right: -16vw; top: 30%; opacity: 0.22; }
  .section__head { grid-template-columns: 1fr; }
  .section__note { text-align: left; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait-card { aspect-ratio: 16 / 10; }
  .portrait-card .big-mark { width: 38%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .work__item, .work__item--7, .work__item--5, .work__item--wide { grid-column: span 12; }
  .work__item--wide .work__media { aspect-ratio: 16 / 10; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
  .video-slot { grid-template-columns: auto 1fr; }
  .video-slot .chip { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
  .xp__row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .xp__desc { grid-column: auto; }
  .xp__when { padding-top: 0; }
  .hero__foot > span:nth-child(2) { display: none; }
  .hero__title { font-size: 17.5vw; }
  .menu a { font-size: 34px; }
  .socials { grid-template-columns: 1fr; }
  .stage__float { width: 34%; }
  .btn { --h: 52px; padding: 0 20px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { animation: none; }
}

/* ---------- Gallery ---------- */

.filters { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.filter {
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  transition: background-color 0.3s, color 0.3s;
}
.filter sup { color: var(--accent); font-size: 9px; }
.filter[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-flow: dense; }
.art { margin: 0; }
.art.is-hidden { display: none; }
.art--big { grid-column: span 2; grid-row: span 2; }
.art button {
  position: relative; display: block; width: 100%; height: 100%; min-height: 100%;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; text-align: left;
}
.art--big button { aspect-ratio: auto; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: saturate(0.85); }
.art button:hover img { transform: scale(1.06); filter: saturate(1.05); }
.art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 10, 0.85));
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.art figcaption b { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.art figcaption .mono { color: var(--accent); font-size: 10.5px; }
.art button:hover figcaption, .art button:focus-visible figcaption { opacity: 1; transform: none; }
.center-link { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Free tools ---------- */

.tools-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: clamp(80px, 9vw, 140px) 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 14px; padding: 26px; min-height: 260px; }
.tool__app { color: var(--accent); font-size: 11px; }
.tool__name { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.tool__text { color: var(--ink-2); font-size: 14.5px; margin: 0 0 auto; }
.tool__go {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; align-self: flex-end;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.tool__go svg { width: 16px; height: 16px; }
.tool:hover .tool__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }

/* ---------- Apps ---------- */

.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app { display: flex; flex-direction: column; padding: 28px; min-height: 300px; gap: 22px; }
.app--feature {
  grid-column: span 2; grid-row: span 2; padding: clamp(28px, 3vw, 48px);
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(47, 224, 166, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(29, 33, 34, 0.85), rgba(21, 24, 25, 0.85));
}
.app__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-3); font-size: 11px; }
.app__body { flex: 1; }
.app__name { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; margin: 0 0 10px; }
.app--feature .app__name { font-size: clamp(48px, 7vw, 120px); line-height: 0.9; margin: clamp(20px, 4vw, 60px) 0 18px; letter-spacing: -0.05em; }
.app__short { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; margin: 0 0 12px; }
.app__text { color: var(--ink-2); margin: 0; font-size: 15px; max-width: 52ch; }
.app__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.keys { display: flex; gap: 8px; margin-top: 26px; }
.keys kbd {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  font-family: var(--f-mono); font-size: 16px; color: var(--ink);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-2); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

/* ---------- Support ---------- */

.support { margin-top: clamp(64px, 8vw, 120px); padding: clamp(26px, 3vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.support__text { margin: 18px 0 0; color: var(--ink-2); max-width: 56ch; font-size: 17px; }
.support__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.xp__desc p { margin: 0; }

/* ---------- Lightbox video ---------- */

.lightbox__body { width: 100%; display: grid; place-items: center; }
.lightbox__video { width: min(100%, 1280px); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .app--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .art--big { grid-column: span 2; grid-row: auto; }
  .art--big button { aspect-ratio: 16 / 9; }
  .art figcaption { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .tools, .apps { grid-template-columns: 1fr; }
  .app--feature { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .art--big { grid-column: auto; }
}

/* ---------- Solid bands: calm, single-tone sections that rest the eye ---------- */

.section--solid {
  background: #15181a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--solid + .section--solid { border-top: 0; }
.section--solid .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }

.btn--warn { background: var(--warn); color: #1a1104; box-shadow: 0 10px 40px -12px rgba(255, 181, 71, 0.4); }
.btn--warn::before { background: #ffd08a; }
.btn--warn:hover { box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.16), 0 16px 50px -10px rgba(255, 181, 71, 0.4); }
.stage__main[data-detail] { cursor: pointer; }

/* Clickable cards */
button.tool { text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.app[data-detail] { cursor: pointer; }
.app:focus-visible, .tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app__top .more {
  order: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-family: var(--f-body); font-size: 18px; color: var(--ink-2);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.app:hover .more { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.tool:hover .tool__go { transform: rotate(90deg); }
.card[data-detail]:hover { transform: translateY(-4px); }

/* ---------- Detail sheet ---------- */

.sheet { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(7, 9, 9, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  --c: var(--accent);
  position: relative; width: min(1180px, 100%); max-height: min(90vh, 900px); overflow: auto; overscroll-behavior: contain;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: #15181a;
  box-shadow: 0 60px 160px -40px rgba(0, 0, 0, 0.9);
  transform-origin: top left;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.sheet__panel.is-animating { transition: transform 0.75s var(--ease), opacity 0.5s var(--ease); }
.sheet__close {
  position: sticky; top: 16px; float: right; margin: 16px 16px -66px 0; z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 17, 18, 0.7); border: 1px solid var(--line-3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.sheet__close:hover { border-color: var(--c); color: var(--c); transform: rotate(90deg); }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__content { opacity: 0; transition: opacity 0.5s var(--ease) 0.15s; }
.sheet__content.is-shown { opacity: 1; }

.dt { display: grid; grid-template-columns: 1.05fr 1fr; }
.dt__visual { position: sticky; top: 0; align-self: start; padding: 16px; display: grid; gap: 12px; align-content: start; }
.dt__hero {
  position: relative; display: block; width: 100%; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10;
  border: 1px solid var(--line-2); background: var(--surface);
}
.dt__hero img { width: 100%; height: 100%; object-fit: cover; }
.dt__hero .work__play { right: 16px; bottom: 16px; }
.dt__hero:hover .work__play { background: var(--c); border-color: var(--c); color: #08100c; }
.dt__poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px;
  background:
    radial-gradient(80% 70% at 75% 25%, color-mix(in srgb, var(--c) 28%, transparent), transparent 65%),
    linear-gradient(rgba(226, 240, 233, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(226, 240, 233, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    #111415;
}
.dt__poster .mono { color: var(--ink-3); display: flex; justify-content: space-between; }
.dt__poster b {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 88px); line-height: 0.9; letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--c) 70%, white);
}
.dt__poster .keys { margin-top: 0; }
.dt__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dt__thumbs button { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; cursor: zoom-in; transition: border-color 0.3s; }
.dt__thumbs button:hover { border-color: var(--c); }
.dt__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.dt__info { padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 52px) clamp(28px, 3vw, 44px) clamp(20px, 2vw, 28px); }
.dt__kind { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; padding-right: 60px; }
.dt__kind .chip i { background: var(--c); }
.dt__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 4.2vw, 64px); letter-spacing: -0.045em; line-height: 0.95; margin: 0 0 14px; }
.dt__name sup { font-family: var(--f-mono); font-size: 0.26em; font-weight: 500; letter-spacing: 0.04em; vertical-align: 1.5em; margin-left: 0.25em; padding: 0.3em 0.65em; border-radius: 999px; background: var(--c); color: #08100c; }
.dt__short { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; margin: 0 0 16px; color: var(--c); }
.dt__desc p { margin: 0 0 12px; color: var(--ink-2); }
.dt__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 24px 0 0; }
.dt__meta div { background: #15181a; padding: 12px 16px; }
.dt__meta dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.dt__meta dd { margin: 3px 0 0; font-weight: 600; font-size: 14.5px; }
.dt__h { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 28px 0 14px; display: flex; align-items: center; gap: 12px; }
.dt__h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dt__features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt__features li { padding: 14px 14px 14px 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); position: relative; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.dt__features li::before { content: ""; position: absolute; left: 14px; top: 18px; width: 9px; height: 9px; border: 1.5px solid var(--c); border-radius: 2px; transform: rotate(45deg); }
.dt__features b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.dt__steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 8px; }
.dt__steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; color: var(--ink-2); font-size: 14.5px; }
.dt__steps li::before {
  content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.dt__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.dt__actions .btn--primary { background: var(--c); color: #08100c; box-shadow: none; }
.dt__actions .btn--primary::before { background: color-mix(in srgb, var(--c) 60%, white); }
.dt__actions .btn--ghost:hover { border-color: var(--c); color: var(--c); }
.dt__note { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; }

@media (max-width: 900px) {
  .dt { grid-template-columns: 1fr; }
  .dt__visual { position: relative; padding: 10px 10px 0; }
  .dt__info { padding: 22px 20px 28px; }
  .dt__features { grid-template-columns: 1fr; }
  .sheet { padding: 0; align-items: end; }
  .sheet__panel { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .sheet__close { margin: 10px 10px -60px 0; }
}
@media (max-width: 560px) {
  .dt__thumbs { grid-template-columns: repeat(2, 1fr); }
  .dt__meta { grid-template-columns: 1fr; }
}

/* ---------- Calm pass: one quiet surface, accents only where they matter ---------- */

.section--flush { padding-top: 0; }
.section--solid { background: #171a1c; border-color: transparent; }
.section--solid + .section--solid { border-top: 0; }
.lab { background: transparent; }
.vignette { display: none; }
.hero__foot { border-top-color: transparent; }
.card:hover::before { opacity: 0.6; }
