/* ──────────────────────────────────────────────────────────────────────────
   Короче, Медиа — портфолио
   Тёмный, кинематографичный, дерзкий
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0A0A0B;
  --bg-2:      #111114;
  --bg-3:      #18181C;
  --bg-4:      #1F1F24;
  --fg:        #F4F1EA;
  --fg-2:      #B7B4AC;
  --fg-3:      #6E6B65;
  --line:      rgba(244, 241, 234, 0.10);
  --line-2:    rgba(244, 241, 234, 0.05);
  --accent:    #2ce2f5;
  --accent-fg: #0A0A0B;
  --danger:    #FF2EC4;

  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body:    "Onest", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;

  --e-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --e-in:  cubic-bezier(0.6, 0, 0.8, 0.2);

  --sidenav-w: 220px;
}

[data-theme="light"] {
  --bg:        #F4F1EA;
  --bg-2:      #EEEAE0;
  --bg-3:      #E5E1D6;
  --bg-4:      #DDD9CD;
  --fg:        #0A0A0B;
  --fg-2:      #44423D;
  --fg-3:      #7A7770;
  --line:      rgba(10, 10, 11, 0.10);
  --line-2:    rgba(10, 10, 11, 0.05);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--accent-fg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* ── grain overlay ─────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.06; 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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── custom cursor ─────────────────────────────────────────────────────── */
.cursor {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999;
  width: 28px; height: 28px; border: 1px solid var(--fg);
  border-radius: 100px;
  transition: width 0.25s var(--e-out), height 0.25s var(--e-out),
              background 0.25s var(--e-out), opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor.--hover {
  width: 78px; height: 78px;
  background: color-mix(in srgb, #FFE03D 20%, transparent);
  border: 2px solid #FFE03D;
  mix-blend-mode: normal;
  -webkit-backdrop-filter: saturate(1.7) brightness(1.15) contrast(1.06);
  backdrop-filter: saturate(1.7) brightness(1.15) contrast(1.06);
  box-shadow: 0 0 26px rgba(255,224,61,0.55);
}
.cursor.--play  { width: 64px; height: 64px;
                  background: color-mix(in srgb, #FFE03D 22%, transparent);
                  border: 2px solid #FFE03D; mix-blend-mode: normal;
                  -webkit-backdrop-filter: saturate(1.7) brightness(1.15) contrast(1.06);
                  backdrop-filter: saturate(1.7) brightness(1.15) contrast(1.06);
                  box-shadow: 0 0 26px rgba(255,224,61,0.55); }
.cursor.--play::after {
  content: "СМОТРЕТЬ"; position: absolute; inset: 0;
  display: grid; place-items: center; color: #fff;
  font: 600 8px/1 var(--f-mono); letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
@media (hover: none) { .cursor { display: none; } }

/* ── layout ────────────────────────────────────────────────────────────── */
.shell { position: relative; z-index: 2; }
.container {
  max-width: 1440px; margin: 0 auto; padding: 0 32px 0 calc(var(--sidenav-w) + 60px);
}
@media (max-width: 1180px) {
  .container { padding: 0 32px; }
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: 96px 0; position: relative; }
.section--lg { padding: 140px 0; }

.eyebrow {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 9vw, 168px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4.6vw, 72px); }
h3 { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -0.02em; }

.mono { font-family: var(--f-mono); letter-spacing: 0; }

/* ── top Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.3s var(--e-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.--scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
@media (max-width: 720px) { .nav { padding: 14px 20px; } }

.logo {
  display: flex; align-items: baseline; gap: 0;
  font: 700 18px/1 var(--f-display); letter-spacing: -0.02em;
}
.logo .comma { color: var(--accent); margin: 0 2px 0 -2px; transform: translateY(2px); display: inline-block; }
.logo small {
  margin-left: 10px; padding-left: 10px;
  border-left: 1px solid var(--line);
  font: 500 10px/1 var(--f-mono); color: var(--fg-3); letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 540px) { .logo small { display: none; } }

.nav-links {
  display: flex; gap: 4px;
  font: 500 13px/1 var(--f-body);
}
.nav-links a {
  padding: 10px 14px; border-radius: 100px;
  color: var(--fg-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: var(--line-2); }
@media (max-width: 980px) { .nav-links { display: none; } }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 18px;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 100px;
  font: 600 13px/1 var(--f-body);
  transition: transform 0.2s var(--e-out), filter 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fg);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Side nav ──────────────────────────────────────────────────────────── */
.sidenav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--sidenav-w);
  z-index: 50;
  padding: 14px 0;
}
.sidenav-eyebrow {
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.sidenav-list {
  list-style: none;
  display: flex; flex-direction: column;
}
.sidenav-list li {
  position: relative;
}
.sidenav-list a {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 6px 16px;
  font: 500 13px/1.2 var(--f-body);
  color: var(--fg-3);
  transition: color 0.2s, transform 0.25s var(--e-out);
}
.sidenav-list a:hover { color: var(--fg); transform: translateX(2px); }
.sidenav-list .sn-n {
  font: 500 10px/1 var(--f-mono);
  color: var(--fg-3);
}
.sidenav-list .sn-c {
  font: 500 10px/1 var(--f-mono);
  color: var(--fg-3);
  opacity: 0.6;
}
.sidenav-list .--active a { color: var(--fg); font-weight: 600; }
.sidenav-list .--active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 100px;
  background: var(--accent);
}
@media (max-width: 1180px) {
  .sidenav { display: none; }
}

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 60px;
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.15) 35%, rgba(10,10,11,0.55) 75%, var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 30% 40%, transparent, rgba(10,10,11,0.25));
}
.hero > .container { position: relative; z-index: 2; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
  gap: 20px; flex-wrap: wrap;
}
.hero-meta .mono { font-size: 12px; color: var(--fg-3); }
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(54px, 11vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
}
.hero-title .comma { color: var(--accent); display: inline-block; transform: translate(-6px, -8px); font-size: 0.7em; }
.hero-title .line { display: block; }
.hero-title .line.--indent { padding-left: 14vw; }
.hero-title .line.--outline {
  -webkit-text-stroke: 2px var(--fg);
  color: transparent;
}

.hero-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 32px;
}
@media (max-width: 1180px) {
  .hero-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}

.hero-title .line.--tiny {
  font: 500 13px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  -webkit-text-stroke: 0;
  margin-top: 20px;
}
.stat .n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 2px;
}
.stat .n sup { font-size: 0.45em; color: var(--accent); font-weight: 600; }
.stat .l {
  font: 500 11px/1.3 var(--f-mono);
  text-transform: uppercase;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  margin-top: 8px;
  max-width: 22ch;
}

/* showreel circle */
.showreel {
  position: absolute;
  right: 0; top: 38vh;
  width: 180px; height: 180px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-fg);
  animation: spin 18s linear infinite;
  z-index: 3;
}
.showreel::before {
  content: "";
  position: absolute; inset: 24%;
  background: var(--accent-fg);
  clip-path: polygon(20% 10%, 90% 50%, 20% 90%);
  animation: spin 18s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.showreel-text {
  position: absolute; inset: 0; pointer-events: none;
  font: 600 10px/1 var(--f-mono); letter-spacing: 0.32em;
}
.showreel-text svg { width: 100%; height: 100%; }
@media (max-width: 1180px) {
  .showreel { right: 1vw; top: 22vh; width: 160px; height: 160px; }
}
@media (max-width: 720px) {
  .showreel { position: relative; right: auto; top: auto; margin: 16px 0 32px; width: 140px; height: 140px; }
}

/* ── ticker ────────────────────────────────────────────────────────────── */
.ticker {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  white-space: nowrap;
  user-select: none;
}
.ticker-track {
  display: inline-flex; gap: 48px;
  animation: ticker-run 60s linear infinite;
}
.ticker-track > * { display: inline-flex; align-items: center; gap: 48px; }
.ticker-item {
  font: 700 clamp(28px, 5vw, 64px)/1 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.ticker-item.--ghost {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
}
.ticker-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
@keyframes ticker-run {
  to { transform: translateX(-50%); }
}

/* ── category index (быстрый переход) ──────────────────────────────────── */
.cat-index { padding: 90px 0 70px; }
.cat-index-head { margin-bottom: 44px; }
.cat-index-head h2 { margin-top: 16px; font-size: clamp(36px, 5vw, 80px); }
.cat-index-sub {
  margin-top: 16px;
  font: 400 16px/1.4 var(--f-body);
  color: var(--fg-2);
  max-width: 44ch;
}
.cat-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .cat-index-grid { grid-template-columns: 1fr; } }

.cat-tile {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-2);
  transition: border-color 0.25s var(--e-out), background 0.25s, transform 0.25s var(--e-out);
}
.cat-tile:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateX(4px);
}
.ct-num {
  font: 500 13px/1 var(--f-mono);
  color: var(--accent);
}
.ct-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ct-title {
  font: 700 clamp(18px, 1.8vw, 24px)/1.05 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.ct-sub {
  font: 400 12px/1.35 var(--f-body);
  color: var(--fg-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-count {
  font: 700 22px/1 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--fg-2);
}
.cat-tile:hover .ct-count { color: var(--fg); }
.ct-arrow {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 14px;
  transition: all 0.25s var(--e-out);
}
.cat-tile:hover .ct-arrow {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
  transform: translateY(2px);
}

/* ── manifesto ─────────────────────────────────────────────────────────── */
.manifesto-section { padding: 80px 0; }
.manifesto {
  position: relative;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-tag {
  position: absolute; top: -8px; left: 0;
  background: var(--bg); padding: 0 12px 0 0;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.manifesto p {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}
.manifesto mark {
  background: var(--accent); color: var(--accent-fg);
  padding: 0 8px; border-radius: 4px;
  margin: 0 -2px;
  white-space: nowrap;
}
.manifesto-sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--fg-3);
  margin-top: 24px;
  max-width: 38ch;
  letter-spacing: 0;
}

/* ── section head ──────────────────────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sh-num {
  font: 500 14px/1 var(--f-mono);
  color: var(--accent);
  padding-top: 14px;
  letter-spacing: 0.04em;
}
.section-head h2 {
  font-size: clamp(36px, 4.6vw, 68px);
}
.sh-subtitle {
  margin-top: 14px;
  font: 400 15px/1.4 var(--f-body);
  color: var(--fg-2);
  max-width: 48ch;
}
.sh-count {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end;
  padding-top: 14px;
}
.sh-count .n {
  font: 700 clamp(36px, 3.6vw, 56px)/1 var(--f-display);
  letter-spacing: -0.04em;
  color: var(--fg);
}
.sh-count .l {
  font: 500 10px/1 var(--f-mono);
  color: var(--fg-3);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 1fr; gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .sh-count { text-align: left; align-items: flex-start; padding-top: 0; }
}

/* ── case grid ─────────────────────────────────────────────────────────── */
.case-grid {
  display: grid;
  gap: 28px 24px;
}
.case-grid--lg {
  /* Top-5: первая карточка большая, остальные в сетке */
  grid-template-columns: repeat(12, 1fr);
}
.case-grid--lg .case-card:nth-child(1) { grid-column: span 12; }
.case-grid--lg .case-card:nth-child(2),
.case-grid--lg .case-card:nth-child(3) { grid-column: span 6; }
.case-grid--lg .case-card:nth-child(4),
.case-grid--lg .case-card:nth-child(5) { grid-column: span 6; }
.case-grid--md {
  grid-template-columns: repeat(3, 1fr);
}
.case-grid--sm {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1180px) {
  .case-grid--md, .case-grid--sm { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .case-grid--md, .case-grid--sm { grid-template-columns: 1fr; }
  .case-grid--lg .case-card { grid-column: span 12 !important; }
}

/* ── case card ─────────────────────────────────────────────────────────── */
.case-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--r-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  transition: transform 0.4s var(--e-out), border-color 0.25s;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--fg-3); }

.case-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.case-card.--lg:first-child .case-thumb { aspect-ratio: 21/9; }
.case-card.--sm .case-thumb { aspect-ratio: 4/3; }

.case-thumb .art {
  position: absolute; inset: 0;
  transition: transform 0.8s var(--e-out), filter 0.6s;
}
.case-card:hover .art { transform: scale(1.04); filter: brightness(1.08) saturate(1.1); }

.case-year {
  position: absolute; top: 14px; right: 14px;
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 10px/1 var(--f-mono);
  padding: 7px 9px; border-radius: 100px;
  z-index: 2; color: #F4F1EA;
  border: 1px solid rgba(244,241,234,0.15);
  letter-spacing: 0.04em;
}

.case-disk {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--accent-fg);
  font: 600 9px/1 var(--f-mono);
  padding: 6px 8px 6px 18px; border-radius: 100px;
  z-index: 2; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case-disk::before {
  content: ""; position: absolute; left: 7px; top: 50%;
  width: 7px; height: 7px;
  transform: translateY(-50%);
  background: var(--accent-fg);
  border-radius: 50%;
}

.case-play {
  position: absolute; right: 18px; bottom: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px) scale(0.8);
  transition: all 0.4s var(--e-out);
  z-index: 2;
}
.case-card:hover .case-play { opacity: 1; transform: translateY(0) scale(1); }
.case-play::after {
  content: ""; width: 0; height: 0;
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}

.case-meta {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 12px;
  flex-grow: 1;
}
.case-card.--sm .case-meta { padding: 14px 16px 16px; gap: 10px; }
.case-blurb {
  font: 400 14px/1.5 var(--f-body);
  color: var(--fg-2);
  margin: 0;
}
.case-card.--sm .case-blurb { font-size: 13px; line-height: 1.45; }
.case-card.--lg:first-child .case-blurb { font-size: 16px; }

.case-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: auto;
}
.case-tag {
  font: 500 10px/1 var(--f-mono);
  padding: 5px 8px; border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-tag--more { background: var(--bg-3); color: var(--fg-2); border-color: transparent; }

/* ── case art (gradients + label) ──────────────────────────────────────── */
.art--gradient1 { background: linear-gradient(135deg, #ff5240 0%, #c91d5b 50%, #2c0a3d 100%); }
.art--gradient2 { background: linear-gradient(45deg, #0a3d62, #0c2461, #1e272e); }
.art--gradient3 { background: linear-gradient(160deg, #ffd34e, #ff7a18, #ce1f3a); }
.art--gradient4 { background: linear-gradient(135deg, #18181C 0%, #2b2b30 50%, #18181C 100%); }
.art--gradient5 { background: linear-gradient(180deg, #1a3c1f, #2d6a4f, #d4e8c4); }
.art--gradient6 { background: linear-gradient(135deg, #4a0e0e 0%, #d9ff3d 200%); }
.art--gradient7 { background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 50%, #a18cd1 100%); }
.art--gradient8 { background: linear-gradient(135deg, #1b1b2f, #162447, #1f4068, #e43f5a); }
.art--mono     { background: linear-gradient(135deg, #1a1a1d, #2c2c30, #0a0a0b); }

.art-label {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  color: #fff;
  pointer-events: none;
}
/* image cover layer */
.art-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.art-label { z-index: 2; }
.case-year, .case-disk, .case-play { z-index: 3; }
/* darken bottom for legible label when there is a photo */
.art-label.--has-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 40%, transparent 75%);
  z-index: -1;
}
.case-card.--lg:first-child .art-label { padding: 36px; }
.case-card.--sm .art-label { padding: 16px; }

.art-label .art-brand {
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.art-label .art-title {
  font: 700 clamp(22px, 2.6vw, 38px)/1 var(--f-display);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  text-wrap: balance;
}
.case-card.--lg:first-child .art-title {
  font-size: clamp(36px, 4.2vw, 64px);
}
.case-card.--sm .art-title {
  font-size: clamp(18px, 1.8vw, 24px);
}

/* corner crops on case art */
.art-crops::before, .art-crops::after,
.art-crops > i::before, .art-crops > i::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.55);
}
.art-crops::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.art-crops::after  { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.art-crops > i { position: absolute; inset: 0; pointer-events: none; }
.art-crops > i::before { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.art-crops > i::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.art-rec {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--f-mono); color: #fff;
  background: rgba(0,0,0,0.4); padding: 6px 10px; border-radius: 4px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 3;
}
.art-rec::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); animation: pulse 1.4s ease-in-out infinite;
}

/* ── modal ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto;
  padding: 48px 24px;
  animation: fade-in 0.25s var(--e-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%; max-width: 880px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  animation: modal-in 0.35s var(--e-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 100px;
  background: rgba(10,10,11,0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(244,241,234,0.15);
  z-index: 10;
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: var(--accent); transform: rotate(90deg); }
.modal-close:hover span { background: var(--accent-fg); }
.modal-close span {
  position: absolute;
  width: 16px; height: 1.5px;
  background: #F4F1EA;
  transition: background 0.2s;
}
.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }

.modal-hero {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
}
.modal-hero--video {
  aspect-ratio: 16/9;
  background: #000;
}
.modal-hero--video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.modal-hero.--linked {
  cursor: pointer;
}
.modal-hero.--linked:hover .art { transform: scale(1.02); filter: brightness(1.08); }
.modal-hero.--linked .art {
  position: absolute; inset: 0;
  transition: transform 0.5s var(--e-out), filter 0.4s;
}
.modal-hero-play {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: grid; place-items: center;
  z-index: 4;
  transition: transform 0.3s var(--e-out);
}
.modal-hero.--linked:hover .modal-hero-play { transform: translateY(-50%) scale(1.08); }
.modal-hero-play::after {
  content: "";
  width: 0; height: 0;
  border-left: 22px solid currentColor;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.modal-no-link {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
  padding: 14px 22px;
  border: 1px dashed var(--fg-3);
  border-radius: 100px;
}
.modal-no-link .lbl {
  font: 500 11px/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-3);
}
.modal-no-link .val {
  font: 500 13px/1 var(--f-body);
  color: var(--fg-2);
}
.modal-hero-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px;
  color: #fff;
  z-index: 2;
}
.modal-hero-label.--has-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 90%);
  z-index: -1;
}
.modal-hero .art-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.modal-hero .art-rec, .modal-hero-play { z-index: 3; }
.modal-hero-label .art-brand {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}
.modal-hero-label .art-title {
  font: 700 clamp(28px, 3.8vw, 56px)/1 var(--f-display);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  text-wrap: balance;
}

.modal-body {
  padding: 32px 36px 36px;
}
@media (max-width: 640px) { .modal-body { padding: 24px 24px 28px; } }

.modal-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.modal-title {
  font: 700 clamp(24px, 2.6vw, 38px)/1.05 var(--f-display);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.modal-blurb {
  font: 400 17px/1.5 var(--f-body);
  color: var(--fg);
  margin-bottom: 24px;
}
.modal-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding: 22px 24px;
  background: var(--bg-2);
  border-radius: var(--r-2);
  margin-bottom: 28px;
}
.modal-numbers .stat .n { font-size: clamp(24px, 2.4vw, 36px); }
.modal-numbers .stat .l { margin-top: 6px; }

.modal-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.modal-section h4 {
  font: 500 11px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 12px;
  letter-spacing: 0.12em;
}
.modal-section p {
  font: 400 15px/1.55 var(--f-body);
  color: var(--fg-2);
  white-space: pre-wrap;
}
.modal-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 24px;
}
.modal-cta-group {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.modal-cta-group .modal-cta { margin-top: 0; }

.modal-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 14px 22px;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 100px;
  font: 600 14px/1 var(--f-body);
  transition: transform 0.2s var(--e-out), filter 0.2s;
}
.modal-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.modal-cta .arrow { font-size: 16px; }
.modal-cta-group .modal-cta {
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line);
}
.modal-cta-group .modal-cta.--active {
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent);
}

/* ── services ──────────────────────────────────────────────────────────── */
.svc-row {
  display: grid;
  grid-template-columns: 60px 1.6fr 2.4fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--e-out);
  position: relative;
}
.services .svc-row:first-child { border-top: 1px solid var(--line); }
.svc-row:hover { background: linear-gradient(90deg, transparent, var(--bg-2), transparent); }
.svc-row:hover .svc-name { transform: translateX(8px); }
.svc-num { font: 500 13px/1 var(--f-mono); color: var(--fg-3); }
.svc-name {
  font: 700 clamp(22px, 2.2vw, 32px)/1 var(--f-display);
  letter-spacing: -0.02em;
  transition: transform 0.35s var(--e-out);
}
.svc-desc { color: var(--fg-2); font-size: 14px; line-height: 1.5; max-width: 52ch; }
.svc-tags {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
.svc-tag {
  font: 500 10px/1 var(--f-mono);
  padding: 6px 9px; border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 880px) {
  .svc-row { grid-template-columns: 40px 1fr; gap: 14px; }
  .svc-desc, .svc-tags { grid-column: 2; }
  .svc-tags { justify-content: flex-start; }
}

/* ── clients marquee ───────────────────────────────────────────────────── */
.clients-wrap { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
  gap: 16px; flex-wrap: wrap;
}
.clients-head .mono { font-size: 12px; color: var(--fg-3); }
.clients { overflow: hidden; }
.clients-track {
  display: flex; gap: 0;
  animation: ticker-run 60s linear infinite;
}
.clients-track > div {
  display: flex; align-items: center; gap: 60px;
  padding-right: 60px;
}
.client-logo {
  font: 700 clamp(18px, 2.2vw, 28px)/1 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--fg-2);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0;
}
.client-logo .dot { color: var(--accent); font-size: 0.7em; margin-left: 6px; }

/* ── process ───────────────────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
@media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }
.proc-step {
  background: var(--bg);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.25s;
  position: relative;
  min-height: 260px;
}
.proc-step:hover { background: var(--bg-2); }
.proc-num {
  font: 700 56px/0.9 var(--f-display);
  letter-spacing: -0.04em;
  color: var(--accent);
}
.proc-name {
  font: 600 18px/1.2 var(--f-display);
  letter-spacing: -0.01em;
}
.proc-desc { color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.proc-time {
  margin-top: auto;
  font: 500 11px/1 var(--f-mono);
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* ── contact ───────────────────────────────────────────────────────────── */
.contact h2 { margin-bottom: 0; font-size: clamp(46px, 7vw, 110px); line-height: 0.95; }
.contact h2 .underline {
  display: inline-block;
  background: var(--accent); color: var(--accent-fg);
  padding: 0 16px; border-radius: 8px;
  transform: rotate(-2deg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid--single { grid-template-columns: minmax(0, 460px); }
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.25s var(--e-out);
  background: var(--bg);
}
.contact-card:hover { background: var(--bg-2); border-color: var(--fg-3); transform: translateY(-2px); }
.contact-card .lbl { font: 500 11px/1 var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-card .val { font: 600 24px/1.1 var(--f-display); letter-spacing: -0.01em; }
.contact-card .sub { font-size: 13px; color: var(--fg-2); margin-top: 6px; line-height: 1.4; }
.contact-card .arrow { margin-top: auto; opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--e-out); font-size: 18px; }
.contact-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 60px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font: 500 11px/1 var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; line-height: 1.65; color: var(--fg-2); transition: color 0.2s; margin-bottom: 6px; }
.footer-col a:hover { color: var(--fg); }
.footer-mark {
  font: 800 clamp(80px, 18vw, 280px)/0.8 var(--f-display);
  letter-spacing: -0.06em;
  margin-bottom: 24px;
  -webkit-text-stroke: 1px var(--fg-3);
  color: transparent;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font: 500 11px/1 var(--f-mono); color: var(--fg-3);
  flex-wrap: wrap; gap: 12px;
}

/* ── back to top ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  height: 52px;
  padding: 0;
  width: 52px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-fg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s var(--e-out), transform 0.35s var(--e-out),
              width 0.35s var(--e-out), box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  white-space: nowrap;
}
.back-to-top.--show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  width: 168px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}
.btt-arrow {
  flex: 0 0 52px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  transition: transform 0.25s var(--e-out);
}
.back-to-top:hover .btt-arrow { transform: translateY(-2px); }
.btt-label {
  font: 600 13px/1 var(--f-body);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.25s var(--e-out);
  padding-right: 20px;
}
.back-to-top:hover .btt-label { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) {
  .back-to-top { left: 16px; bottom: 16px; }
}

/* ── scroll progress ───────────────────────────────────────────────────── */.progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 1000;
  transition: width 0.15s linear;
}

/* ── animations on scroll ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--e-out), transform 0.7s var(--e-out); }
.reveal.--in { opacity: 1; transform: translateY(0); }

/* hide cursor on touch */
@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) {
  body { cursor: none; }
  a, button, .case-card, .nav-cta, .showreel, .sidenav a { cursor: none; }
}
