/* Kenjaboyev Quvondiq — Director's Cut design system (2026-09-30) */

:root {
  --bg: #050409;
  --bg-2: #0c0a10;
  --surface: rgba(255, 236, 214, 0.045);
  --surface-2: rgba(255, 236, 214, 0.08);
  --surface-solid: #141218;
  --line: rgba(243, 234, 220, 0.09);
  --line-2: rgba(243, 234, 220, 0.16);
  --fg: #f6f0e6;
  --fg-2: #cbbfae;
  --muted: #8f8578;

  --gold: #e8c9a0;
  --cream: #f3eadc;
  --cyan: #7ee7d0;
  --blue: #7eb6ff;
  --violet: #c4a6ff;
  --pink: #ff8fab;
  --green: #86d4a8;
  --amber: #f0c674;
  --red: #ff4d6d;

  --grad: linear-gradient(115deg, var(--gold) 0%, var(--pink) 52%, var(--cyan) 100%);
  --grad-cinema: linear-gradient(120deg, #ff4d6d 0%, #ff8a5c 100%);

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 32px;
  --shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.78);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 72px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --spot-x: 50%;
  --spot-y: 20%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: none;
}

img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--cyan); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #fff; }
svg { width: 18px; height: 18px; flex: none; }
strong { color: #fff; font-weight: 700; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

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

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

.wrap, .container {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(860px + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--surface-solid);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at var(--spot-x) var(--spot-y), rgba(232, 201, 160, 0.14), transparent 55%),
    radial-gradient(800px 600px at 100% 8%, rgba(255, 77, 109, 0.10), transparent 58%),
    radial-gradient(700px 500px at 0% 90%, rgba(126, 231, 208, 0.07), transparent 55%),
    var(--bg);
  transition: background 0.4s linear;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(243, 234, 220, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 220, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.45) 100%);
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 400;
  width: 12px; height: 12px;
  pointer-events: none;
  mix-blend-mode: difference;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.cursor.live { opacity: 1; }
.cursor i {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s var(--ease), background .2s;
}
.cursor.hover i { transform: scale(3.4); background: var(--gold); }
.cursor.click i { transform: scale(0.55); }
html.fine-pointer, html.fine-pointer * { cursor: none !important; }

.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .18;
  animation: drift 28s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) { background: #c48a52; left: -16vmax; top: -18vmax; }
.aurora i:nth-child(2) { background: #ff4d6d; right: -18vmax; top: 22vh; animation-delay: -9s; opacity: .12; }
.aurora i:nth-child(3) { background: #7ee7d0; left: 28vw; bottom: -28vmax; opacity: .10; animation-delay: -16s; }
@keyframes drift {
  to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); }
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ------------------------------------------------------------ header */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 4, 9, 0.45);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
  backdrop-filter: saturate(140%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); background: rgba(5, 4, 9, 0.86); }

.bar, .nav-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex: none;
}
.brand:hover { color: #fff; }
.brand .mono {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--cream));
  color: #1a120c;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px -10px rgba(232, 201, 160, 0.7);
}
.brand span:last-child { font-size: 15.5px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a.active { color: #fff; background: var(--surface-2); }
.nav a.nav-cinema { color: var(--gold); }
.nav a.nav-cinema::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.6);
  animation: rec 1.8s infinite;
  vertical-align: 1px;
}
@keyframes rec {
  70% { box-shadow: 0 0 0 8px rgba(255, 61, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); }
}

.lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  flex: none;
}
.nav + .lang { margin-left: 8px; }
.lang a {
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 11.5px/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}
.lang a:hover { color: #fff; }
.lang a.on { background: var(--cream); color: #1a120c; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  place-items: center;
  flex: none;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn svg + svg { display: none; }
.menu-open .menu-btn svg { display: none; }
.menu-open .menu-btn svg + svg { display: block; }

/* ------------------------------------------------------------ buttons */
.btn {
  --bg-btn: var(--surface-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-btn);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-glass { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-primary, .btn.pri {
  background: linear-gradient(135deg, var(--gold), #d4b48a);
  border-color: transparent;
  color: #1a120c;
  box-shadow: 0 16px 40px -14px rgba(232, 201, 160, 0.75);
}
.btn-primary:hover, .btn.pri:hover { color: #1a120c; box-shadow: 0 20px 48px -12px rgba(232, 201, 160, 1); }
.btn-cinema {
  background: var(--grad-cinema);
  border-color: transparent;
  box-shadow: 0 14px 36px -12px rgba(255, 61, 110, 0.85);
}
.btn-cinema:hover { box-shadow: 0 18px 44px -10px rgba(255, 61, 110, 1); }
.btn.big { min-height: 58px; padding: 16px 30px; font-size: 16.5px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(232, 201, 160, 0.1);
  border: 1px solid rgba(232, 201, 160, 0.28);
  color: var(--gold);
  font-weight: 700;
  font-size: 13.5px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.link-btn svg { width: 14px; height: 14px; }
.link-btn:hover { background: var(--gold); color: #1a120c; }

/* ------------------------------------------------------------ typography */
h1, h2, h3 { color: #fff; line-height: 1.15; letter-spacing: -0.02em; }
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.75rem);
  margin-bottom: 14px;
  text-wrap: balance;
}
h3 { font-size: 1.2rem; font-weight: 800; }

.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.split > div:first-child { max-width: 680px; }
.sec-desc, .sub { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.1rem); text-wrap: pretty; }
.sec-head.center .sec-desc { margin-inline: auto; max-width: 680px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font: 700 11.5px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 22px; height: 1px; border-radius: 2px; background: currentColor; }
.kicker svg { width: 14px; height: 14px; }
.kicker-red { color: var(--red); }
.kicker-red::before { display: none; }

.sec-index {
  display: block;
  margin-bottom: 10px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .22em;
  color: var(--muted);
}
.sec-index::before { content: "— "; }

.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.now-showing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 77, 109, 0.08);
  color: var(--cream);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.now-showing .dot { color: var(--muted); }
.now-showing .mono-year { color: var(--gold); letter-spacing: .08em; }
.rec {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55);
  animation: rec 1.8s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1rem + 6.4vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.hero-title .line { display: block; }
.hero-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, var(--gold), var(--cream) 40%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(.82rem, .78rem + .28vw, .98rem);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-lead {
  color: var(--fg-2);
  font-size: clamp(1.02rem, .96rem + .38vw, 1.18rem);
  max-width: 34em;
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 18px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
}
.stat dd { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.hero-visual { position: relative; perspective: 1400px; }
.film-gate {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 460px;
  margin-inline: auto;
  padding: 14px 0;
  background: #1a1612;
  border-radius: 8px;
  box-shadow:
    0 50px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 80px -20px rgba(232, 201, 160, 0.25);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.5deg);
  transition: transform .6s var(--ease);
}
.sprockets {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 22px;
  padding: 8px 0;
  flex: none;
}
.sprockets b {
  display: block;
  width: 10px;
  height: 14px;
  margin-inline: auto;
  border-radius: 2px;
  background: #050409;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 160, 0.12);
}
.portrait {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #000;
}
.portrait > img {
  width: 100%;
  aspect-ratio: 1792 / 2332;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}
.film-edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(12, 10, 16, 0.72);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
  z-index: 2;
}
.float-chip img { width: 22px; height: 22px; border-radius: 6px; }
.float-chip b { font-family: var(--font-display); color: var(--gold); }
.float-chip.c1 { left: -28px; top: 14%; }
.float-chip.c2 { right: -22px; top: 48%; animation-delay: -2s; }
.float-chip.c3 { left: 10%; bottom: 18px; animation-delay: -4s; color: var(--cyan); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------ marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 13.5px/1.2 var(--font-mono);
  color: var(--fg-2);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ------------------------------------------------------------ cinema */
.cinema {
  position: relative;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(255, 77, 109, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(8, 5, 8, 0.92) 16%, rgba(8, 5, 8, 0.92) 84%, transparent);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 26px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.seg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--fg-2);
  font-weight: 700;
  font-size: 14px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg svg { width: 15px; height: 15px; }
.seg:hover { color: #fff; }
.seg.active { background: var(--cream); color: #1a120c; }

.theater {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #020104;
  border: 1px solid rgba(232, 201, 160, 0.16);
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 0.95), 0 0 0 8px #141018, 0 0 90px -24px rgba(255, 77, 109, 0.4);
}
.theater:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.theater:fullscreen .screen { flex: 1; aspect-ratio: auto; }
.theater:fullscreen .narrative { display: none; }

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.screen video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; background: #000; }
.comic-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 22px);
  background: radial-gradient(circle at 50% 40%, #151827, #050509);
}
.comic-frame img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow); }

.big-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  animation: halo 2.4s infinite;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.big-play svg { width: 38%; height: 38%; margin-left: 6%; }
.big-play:hover { background: var(--red); border-color: transparent; transform: scale(1.06); }
.theater.playing .big-play { opacity: 0; pointer-events: none; transform: scale(.8); }
@keyframes halo { 70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

.screen-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.progress {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  touch-action: none;
  transition: height .2s var(--ease);
}
.progress:hover, .progress:focus-visible { height: 9px; }
.progress:focus-visible { outline-offset: 0; border-radius: 0; }
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--grad-cinema);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px clamp(12px, 2vw, 20px);
  background: #0a0b14;
}
.controls-group { display: flex; align-items: center; gap: 8px; }
.ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  min-width: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13.5px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.ctrl:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--line-2); }
.ctrl.icon { padding: 8px; }
.ctrl.primary { background: var(--cream); color: #1a120c; border-color: transparent; min-width: 120px; }
.ctrl.primary:hover { background: #fff; }
.ctrl svg { width: 16px; height: 16px; }
.time { font: 500 12.5px/1 var(--font-mono); color: var(--muted); margin-left: 4px; white-space: nowrap; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background .25s var(--ease);
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s var(--ease);
}
.switch input:checked + .switch-ui { background: var(--red); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--cyan); outline-offset: 2px; }

.narrative {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0d18, #090a13);
}
.narrative-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.year { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.tag-pill {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 61, 110, 0.12);
  border: 1px solid rgba(255, 61, 110, 0.35);
  color: #ff9db4;
  font: 700 11.5px/1.2 var(--font-mono);
  letter-spacing: .04em;
}
.narrative h3 { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); margin-bottom: 8px; }
.narrative p { color: var(--fg-2); }
.narrative.swap > * { animation: fade-up .45s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.episodes {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 6px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  overscroll-behavior-x: contain;
}
.episodes::-webkit-scrollbar { height: 6px; }
.episodes::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
.ep {
  position: relative;
  flex: 0 0 clamp(150px, 18vw, 190px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 2px solid transparent;
  background: var(--surface-solid);
  text-align: left;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.ep img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.62); transition: filter .3s var(--ease), transform .5s var(--ease); }
.ep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.8)); }
.ep-num, .ep-year { position: absolute; z-index: 1; left: 10px; }
.ep-num { top: 8px; font: 700 11px/1 var(--font-mono); padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); }
.ep-year { bottom: 8px; font-weight: 800; font-size: 13.5px; }
.ep:hover { transform: translateY(-3px); }
.ep:hover img { filter: saturate(1) brightness(.85); transform: scale(1.05); }
.ep.active { border-color: var(--red); }
.ep.active img { filter: none; }
.ep.active .ep-num { background: var(--red); }

.kbd-hint { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ timeline */
.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  translate: -1px 0;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink), var(--green));
  opacity: .45;
  border-radius: 2px;
}
.tl-item { --accent: var(--cyan); position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.tl-item[data-accent="violet"] { --accent: var(--violet); }
.tl-item[data-accent="green"] { --accent: var(--green); }
.tl-item[data-accent="pink"] { --accent: var(--pink); }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 2; }
.tl-dot {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 18px;
  height: 18px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 24px var(--accent);
  z-index: 1;
}
.tl-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.tl-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--surface-2); transform: translateY(-3px); }
.tl-thumb { position: relative; align-self: start; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tl-thumb:hover img { transform: scale(1.08); }
.tl-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.tl-play svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: #fff; color: #07070d; }
.tl-thumb:hover .tl-play, .tl-thumb:focus-visible .tl-play { opacity: 1; }
.tl-year { font: 700 12.5px/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; margin-bottom: 8px; }
.tl-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.tl-body p:not(.tl-year) { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ------------------------------------------------------------ gallery */
.comic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.comic {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #f3eadc;
  border: 0;
  padding: 10px 10px 0;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.comic:nth-child(odd) { transform: rotate(-1.1deg); }
.comic:nth-child(even) { transform: rotate(1.1deg); }
.comic img { width: 100%; aspect-ratio: 1822 / 2368; object-fit: cover; transition: transform .6s var(--ease); }
.comic-info { position: relative; z-index: 1; display: grid; gap: 2px; padding: 12px 8px 14px; background: #f3eadc; border-top: 0; }
.comic-num { font: 700 11px/1.2 var(--font-mono); color: #8a3a2a; }
.comic-title { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 15px; color: #1a120c; line-height: 1.3; }
.comic:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.comic:hover img { transform: scale(1.04); }

.storyboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(232, 201, 160, 0.08), rgba(255, 77, 109, 0.06));
  border: 1px solid var(--line-2);
}
.storyboard h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); margin: 14px 0 12px; }
.storyboard p { color: var(--fg-2); margin-bottom: 22px; }
.storyboard-img { display: block; border-radius: var(--r); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); max-height: 460px; }
.storyboard-img img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.storyboard-img:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------ projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg-2);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip sup { font: 700 10.5px/1 var(--font-mono); color: var(--muted); }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.chip.on { background: var(--cream); color: #1a120c; border-color: var(--cream); }
.chip.on sup { color: #1a120c; }

.projects-grid, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.projects-grid { margin-bottom: 36px; }

.project, .card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.project::before, .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 201, 160, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.project:hover, .card:hover { color: var(--fg); transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.project:hover::before, .card:hover::before { opacity: 1; }
.project.is-hidden { display: none; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.project-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.project-go svg { width: 15px; height: 15px; }
.project:hover .project-go { background: var(--cream); color: #1a120c; transform: rotate(45deg); }
.project h3, .card h3 { font-size: 1.12rem; }
.project-desc, .card .tag { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 8px 0 16px; flex-grow: 1; }

.card-h { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }

.appicon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.appicon.md { width: 56px; height: 56px; }
.appicon.lg { width: clamp(84px, 14vw, 120px); height: clamp(84px, 14vw, 120px); border-radius: 28%; }
.appicon.letter {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.appicon.letter.lg { font-size: clamp(28px, 5vw, 40px); }
.g-mydokon { background: linear-gradient(135deg, #f97316, #ef4444); }
.g-hujjat { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.g-smartcoinuz { background: linear-gradient(135deg, #0098ea, #22d3ee); }
.g-itvi { background: linear-gradient(135deg, #ef4444, #7c3aed); }
.g-quickutils { background: linear-gradient(135deg, #10b981, #0f766e); }

.plats, .project-platforms { font: 500 12.5px/1.4 var(--font-mono); color: var(--gold); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 11.5px/1.2 var(--font-mono);
  border: 1px solid currentColor;
}
.badge svg { width: 12px; height: 12px; }
.badge.live { color: var(--green); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.badge.soon { color: var(--amber); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.badge.web { color: var(--cyan); background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.3); }

/* ------------------------------------------------------------ about / bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.about-card {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(232, 201, 160, 0.08), rgba(255, 77, 109, 0.05) 60%, var(--surface));
}
.about-card p { color: var(--fg-2); margin-bottom: 14px; font-size: 1.02rem; }
.sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sig img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; object-position: top; border: 2px solid rgba(255, 255, 255, 0.15); }
.sig b { display: block; color: #fff; font-weight: 800; }
.sig span { color: var(--muted); font-size: 13.5px; }
.sig-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.sig-facts li {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg-2);
}
.sig-facts li b { font-family: var(--font-display); color: var(--gold); margin-right: 4px; }
.links-card, .stack-card { grid-column: span 5; }
.bento-card h3 { margin-bottom: 16px; }

.plist { display: grid; gap: 8px; }
.plist a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.plist a > svg:first-child { width: 20px; height: 20px; color: var(--fg-2); }
.plist a > svg:last-child { margin-left: auto; width: 15px; height: 15px; color: var(--muted); transition: transform .2s var(--ease); }
.plist a:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateX(3px); }
.plist a:hover > svg:last-child { transform: rotate(45deg); color: #fff; }
.plist span { min-width: 0; }
.plist small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; overflow-wrap: anywhere; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 13px/1.3 var(--font-mono);
  color: var(--fg-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chips li:hover { border-color: var(--gold); color: #fff; }

/* ------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq details[open] { background: var(--surface-2); border-color: var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); border-color: transparent; }
.faq details p { padding: 0 22px 20px; color: var(--fg-2); }

/* ------------------------------------------------------------ contact */
.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 40px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px 320px at 18% 0%, rgba(232, 201, 160, 0.22), transparent 70%),
    radial-gradient(700px 320px at 82% 100%, rgba(255, 77, 109, 0.16), transparent 70%),
    linear-gradient(160deg, #141018, #0a080c);
}
.contact-card .kicker { justify-content: center; }
.contact-card .kicker::before { display: none; }
.contact-card h2 { font-size: clamp(1.9rem, 1rem + 3.6vw, 3.6rem); max-width: 860px; margin-inline: auto; }
.contact-card .sec-desc { max-width: 620px; margin: 0 auto; }
.giant-mail {
  display: inline-block;
  margin: 28px 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 0.6rem + 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--cream);
  overflow-wrap: anywhere;
  background: linear-gradient(110deg, var(--gold), var(--cream), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: letter-spacing .4s var(--ease);
}
.giant-mail:hover { letter-spacing: 0.01em; color: transparent; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-actions .btn.big span { overflow-wrap: anywhere; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg-2);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--cream); color: #1a120c; transform: translateY(-3px); }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 10px; }
.foot-inner { justify-items: center; text-align: center; }
.foot .links, .footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.foot-inner .links { justify-content: center; }
.foot .links a { color: var(--fg-2); }
.foot .links a:hover { color: #fff; }

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 18, 31, 0.85);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--cream); color: #1a120c; }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(3, 3, 8, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.lb-figure { display: grid; justify-items: center; gap: 12px; min-width: 0; touch-action: pan-y; }
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  animation: zoom-in .35s var(--ease);
}
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } }
.lb-figure figcaption { color: var(--fg-2); font-weight: 700; font-size: 14px; text-align: center; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
  color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb-btn:hover { background: var(--cream); color: #1a120c; }
.lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }

/* ------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ subpages */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--fg-2); }
.crumbs a:hover { color: #fff; }
.proj { padding-top: clamp(32px, 5vw, 64px); }
.ph { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; margin-bottom: 8px; }
.ph h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.9rem); line-height: 1.1; margin-bottom: 8px; }
.ph .tag.big { color: var(--fg-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); margin-bottom: 12px; }
.byline {
  margin: 26px 0 8px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--fg-2);
}
.byline a { font-weight: 800; }
.proj .two, .two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); margin-top: 32px; }
.proj h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin: 28px 0 12px; }
.proj .two > div > h2:first-child, .proj aside > h2:first-child { margin-top: 0; }
.proj .two p { color: var(--fg-2); }
.proj aside {
  align-self: start;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.feat { display: grid; gap: 10px; margin: 16px 0; }
.feat li { position: relative; padding-left: 28px; color: var(--fg-2); }
.feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.note { font-size: 14px; color: var(--muted); border: 1px dashed var(--line-2); padding: 12px 16px; border-radius: 14px; background: var(--surface); margin-top: 14px; }
.stores { display: grid; gap: 10px; }
.store {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  overflow-wrap: anywhere;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.store svg { width: 20px; height: 20px; }
.store small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.store:hover { color: #fff; background: var(--surface-2); border-color: var(--line-2); transform: translateX(3px); }
.store.off { opacity: .6; border-style: dashed; }
.more { margin-top: clamp(48px, 7vw, 88px); }
.more > h2 { margin-bottom: 20px; }
.more > p { margin-top: 24px; }
main > .wrap.sec > h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); margin-bottom: 14px; }
main > .wrap.sec > h1 + p, main > .wrap.sec > .sub { margin-bottom: 28px; color: var(--fg-2); }
main > .wrap.sec > p .btn { margin: 6px 6px 0 0; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .brand .brand-name { display: none; }
  .comic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; width: 82%; margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .now-showing { justify-content: center; }
  .film-gate { transform: none; }
  .sprockets { width: 16px; }
  .sprockets b { width: 8px; height: 11px; }
  .float-chip.c1 { left: 6px; }
  .float-chip.c2 { right: 6px; }
  .about-card, .links-card, .stack-card { grid-column: 1 / -1; grid-row: auto; }
  .storyboard { grid-template-columns: 1fr; }
  .proj .two, .two { grid-template-columns: 1fr; }

  .timeline::before { left: 9px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .tl-item:nth-child(n) .tl-card { grid-column: 1; }
  .tl-dot { left: 9px; top: 24px; }
}

/* Header without JS: nav wraps into a scrollable row (subpages have no script). */
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; row-gap: 0; }
  .nav {
    order: 3;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scrollbar-width: none;
    width: calc(100% + var(--gutter) * 2);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav + .lang { margin-left: auto; }
  .brand .brand-name { display: inline; }

  .js .home .bar { flex-wrap: nowrap; }
  .js .home .menu-btn { display: grid; }
  .js .home .lang { margin-left: auto; }
  .js .home .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    width: auto;
    margin: 0;
    padding: 12px var(--gutter) 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #0c0a10;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    overflow: visible;
  }
  .js .home .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .js .home .nav a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .comic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .comic:nth-child(odd), .comic:nth-child(even) { transform: none; }
  .comic:hover { transform: translateY(-4px); }
  .narrative { grid-template-columns: 1fr; gap: 10px; }
  .narrative-meta { flex-direction: row; align-items: center; gap: 12px; }
  .hide-sm { display: none; }
  .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 18px; }
  .seg { flex-direction: column; justify-content: center; gap: 4px; padding: 9px 6px; border-radius: 14px; font-size: 12.5px; line-height: 1.2; text-align: center; }
  .ctrl.primary { min-width: 0; }
  .controls { gap: 8px; }
  .tl-card { grid-template-columns: 1fr; }
  .tl-thumb { aspect-ratio: 16 / 9; }
  .sec-head.split { align-items: flex-start; }
  .filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-figure img { max-height: calc(100dvh - 170px); }
  .ph { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .js .home .brand .brand-name { display: none; }
}

@media (max-width: 420px) {
  :root { --header-h: 62px; }
  .brand .brand-name { font-size: 14px; }
  .float-chip { font-size: 11.5px; padding: 7px 10px; }
  .float-chip.c1 { left: 8px; }
  .float-chip.c2 { right: 8px; }
  .cta .btn { width: 100%; }
  .sprockets { display: none; }
  .film-gate { padding: 0; border-radius: 18px; overflow: hidden; }
  .portrait > img { border-radius: 0; }
  .time { display: none; }
  .comic-info { padding: 10px 10px 12px; }
  .comic-title { font-size: 13px; }
  .contact-actions .btn { width: 100%; }
  .contact-actions .btn.big { font-size: 15px; padding-inline: 18px; }
}

@media (hover: none) {
  .project:hover, .card:hover, .comic:hover, .tl-card:hover, .ep:hover { transform: none; }
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .cursor { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .grain, .vignette { display: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span[aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

@media print {
  .top, .aurora, .scroll-progress, .to-top, .cinema, .marquee, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
}
