/* =========================================================
   KAMRON KADIROV — Portfolio
   Stack: vanilla CSS + GSAP + Lenis
   Palette: pitch-black / off-white / red
   ========================================================= */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --bg-3: #161616;
  --text: #f2f2f2;
  --text-2: #b8b8b8;
  --text-dim: #6a6a6a;
  --accent: #ff1a1a;
  --accent-2: #ff3838;
  --accent-glow: rgba(255, 26, 26, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);

  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 14vw, 180px);
  --radius: 14px;

  --display: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

html {
  scroll-behavior: auto; /* lenis handles it */
  overflow-x: hidden;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  z-index: 10000;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__text {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.85;
  color: var(--text);
  letter-spacing: -0.04em;
}

.loader__text::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.08em;
  background: var(--accent);
  margin-left: 0.06em;
  vertical-align: bottom;
  margin-bottom: 0.18em;
  animation: dotBlink 0.6s steps(2) infinite;
}

@keyframes dotBlink {
  50% { opacity: 0; }
}

.loader__bar {
  width: clamp(180px, 30vw, 320px);
  height: 2px;
  background: var(--border-2);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  animation: load 1.4s ease-in-out forwards;
}

@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(.2,.8,.2,1), height 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s ease;
  mix-blend-mode: difference;
}

.cursor.is-hover {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-color: var(--accent);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* ---------- Grain noise ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.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 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad-x);
  z-index: 1000;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  mix-blend-mode: difference;
  text-transform: uppercase;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav__logo .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.4); opacity: 0.6; }
}

.nav__logo sup {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 2px;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher button {
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.lang-switcher button.active {
  opacity: 1;
  color: var(--accent);
}

.lang-switcher button:not(.active):hover {
  opacity: 0.8;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px var(--pad-x) 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255, 26, 26, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 90%, rgba(255, 26, 26, 0.12), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.6), transparent 60%);
  z-index: 0;
  filter: blur(40px);
  animation: bgDrift 14s ease-in-out infinite alternate;
}

.hero__portrait {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 52%;
  max-width: 780px;
  object-fit: cover;
  object-position: 60% center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
  filter: contrast(1.08) brightness(0.95) saturate(1.05);
  mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  will-change: transform, opacity;
}

@media (max-width: 720px) {
  .hero__portrait {
    width: 70%;
    opacity: 0.5;
    mask-image: linear-gradient(to left, #000 15%, transparent 95%);
    -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 95%);
  }
}

@keyframes bgDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(3%, -2%); }
}

.hero__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.hero__label::before {
  content: '◉';
  color: var(--accent);
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}

.hero__content {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(64px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero__title .word {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__title .word .inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero__title .word--accent {
  color: var(--accent);
  margin-left: clamp(20px, 12vw, 220px);
  text-shadow: 0 0 80px rgba(255, 26, 26, 0.4);
}

.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__tagline {
  font-size: clamp(16px, 1.6vw, 22px);
  max-width: 480px;
  line-height: 1.35;
  color: var(--text-2);
}

.hero__cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
}

.btn--ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 60px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollBar 1.8s ease-in-out infinite;
}

@keyframes scrollBar {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

.hero__time {
  font-variant-numeric: tabular-nums;
}

/* ---------- Status pill (in hero) ---------- */
.hero__top-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 26, 26, 0.4);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 26, 26, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.status-pill:hover {
  background: rgba(255, 26, 26, 0.15);
  border-color: var(--accent);
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 26, 26, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- Horizontal Snapshots section ----------
   The outer .snapshots is the scroll-trigger area (GSAP pins it).
   .snapshots__inner stays in place and the track translates horizontally
   as the user scrolls vertically. */
.snapshots {
  background: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.snapshots__inner {
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.snapshots__header {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 48px) var(--pad-x) 16px;
  flex-shrink: 0;
}

.snapshots__title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.snapshots__hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}

.snapshots__hint::before {
  content: '→  ';
  color: var(--accent);
}

.snapshots__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: 24px var(--pad-x);
  flex: 1;
  width: max-content; /* expand to content; transform handles the offset */
  will-change: transform;
}

.snap {
  flex: 0 0 clamp(280px, 32vw, 460px);
  height: clamp(420px, 60vh, 620px);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.snap:hover { transform: translateY(-6px); }

.snap__media,
.snap__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg-3);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5) contrast(1.05) brightness(0.8);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.snap:hover .snap__media,
.snap:hover .snap__video {
  filter: grayscale(0) contrast(1.15) brightness(0.95);
  transform: scale(1.05);
}

.snap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}

.snap__meta {
  position: absolute;
  left: clamp(16px, 1.8vw, 28px);
  right: clamp(16px, 1.8vw, 28px);
  bottom: clamp(16px, 1.8vw, 24px);
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snap__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.snap__title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.snap__cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Text-only tiles (use big background lettering instead of an image) */
.snap--text {
  background: linear-gradient(135deg, #161616 0%, #0a0a0a 100%);
}
.snap--text .snap__text-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(70px, 9vw, 140px);
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.12;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s ease, color 0.5s ease;
}
.snap--text:hover .snap__text-bg { opacity: 0.28; }
.snap--text::before { display: none; }

.snap--red {
  background: linear-gradient(135deg, #2a0a0a 0%, #0a0a0a 100%);
}
.snap--red .snap__text-bg { color: var(--accent); opacity: 0.4; }
.snap--red:hover .snap__text-bg { opacity: 0.6; }

.snap--cream {
  background: linear-gradient(135deg, #1e1c18 0%, #0a0a0a 100%);
}
.snap--cream .snap__text-bg { color: #f5e9d4; }

/* Progress indicator at the bottom */
.snapshots__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad-x) clamp(20px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.snapshots__counter { color: var(--text); }

.snapshots__bar {
  flex: 1;
  height: 1px;
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}

.snapshots__bar span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 8px rgba(255, 26, 26, 0.6);
}

@media (max-width: 720px) {
  .snapshots__header { flex-wrap: wrap; }
  .snapshots__hint { display: none; }
}

/* ---------- Stats section ---------- */
.stats {
  padding: clamp(60px, 10vw, 140px) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 60px);
}

@media (max-width: 720px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  border-right: 1px solid var(--border);
  padding-right: clamp(20px, 4vw, 60px);
}
.stat:last-child { border-right: none; }

@media (max-width: 720px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
}

.stat__num {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat:nth-child(odd) .stat__num { color: var(--accent); }

.stat__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Process section ---------- */
.process {
  padding: var(--section-y) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}

.process__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.process__step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
  transition: padding-left 0.4s cubic-bezier(.2,.8,.2,1);
  position: relative;
}

.process__step:last-child { border-bottom: 1px solid var(--border); }

.process__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: width 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  pointer-events: none;
}

.process__step:hover {
  padding-left: 24px;
}

.process__step:hover::before {
  width: 3px;
  opacity: 1;
}

.process__step:hover .process__h {
  color: var(--accent);
}

@media (max-width: 720px) {
  .process__step { grid-template-columns: 1fr; gap: 8px; }
}

.process__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.process__h {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.process__p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 480px;
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
  position: relative;
}

.marquee--big {
  padding: 38px 0;
  background: var(--bg);
}

.marquee__track {
  display: flex;
  gap: clamp(28px, 5vw, 60px);
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 120px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  padding-right: clamp(28px, 5vw, 60px);
}

.marquee__track span:not(.star) {
  display: inline-block;
}

.marquee__track .star {
  color: var(--accent);
  font-family: var(--body);
  font-size: 0.4em;
  align-self: center;
}

.marquee--small {
  padding: 18px 0;
}

.marquee--small .marquee__track {
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  animation-duration: 28s;
  gap: 30px;
}

.marquee__track--reverse {
  animation-direction: reverse;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.section-header {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.bracket {
  color: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.section-count {
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 16px);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 0.4em;
}

/* ---------- Intro / Manifesto ---------- */
.intro {
  padding: var(--section-y) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}

.intro__label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 48px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro__heading {
  font-family: var(--display);
  font-size: clamp(34px, 5.8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 1300px;
  margin-bottom: 100px;
}

.intro__heading span {
  display: inline;
}

.intro__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1200px;
}

.intro__col h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intro__col p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 360px;
}

@media (max-width: 900px) {
  .intro__columns { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Work ---------- */
.work {
  padding: var(--section-y) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  isolation: isolate;
}

.project:hover {
  transform: translateY(-6px);
}

.project--01 { grid-column: span 7; aspect-ratio: 16 / 11; }
.project--02 { grid-column: span 5; aspect-ratio: 4 / 5; }
.project--03 { grid-column: span 5; aspect-ratio: 4 / 5; }
.project--04 { grid-column: span 7; aspect-ratio: 16 / 11; }

@media (max-width: 900px) {
  .project { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

.project__media {
  position: absolute;
  inset: 0;
  background-color: var(--bg-3);
  background-size: cover;
  background-position: top center;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), filter 0.5s ease;
  filter: grayscale(0.7) contrast(1.05) brightness(0.7);
}

.project:hover .project__media {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.15) brightness(0.95);
}

.project__media--ph {
  background: radial-gradient(ellipse at 30% 30%, #2a0a0a, #0a0a0a 70%);
  position: relative;
}

.project__media--ph::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.project__media--ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 6px),
    radial-gradient(ellipse at 70% 70%, rgba(255, 26, 26, 0.3), transparent 60%);
  pointer-events: none;
}

.project__media--ai {
  background: radial-gradient(ellipse at 70% 30%, #1a0a1a, #0a0a0a 70%);
}

.project__media--ai::before {
  color: #ff60a0;
}

.project__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), filter 0.5s ease;
  filter: grayscale(0.15) contrast(1.05) brightness(0.85) saturate(1.1);
  background: #0a0a0a;
}

.project:hover .project__video {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.15) brightness(1) saturate(1.2);
}

/* ---- Live video card badge (slot 03) ---- */
.project--video::after {
  content: '● REEL';
  position: absolute;
  top: clamp(20px, 2.2vw, 36px);
  right: clamp(20px, 2.2vw, 36px);
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* ---- Split card (slot 04) — vertical video + text panel ---- */
.project--split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--bg-2);
}

.project--split .project__split-video {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-right: 1px solid var(--border);
}

.project--split .project__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project--split .project__split-info {
  position: relative;
  padding: clamp(24px, 2.6vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  background:
    radial-gradient(ellipse at top right, rgba(255, 26, 26, 0.12), transparent 60%),
    var(--bg-2);
}

.project--split .project__top,
.project--split .project__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: static;
}

.project--split .project__num { color: var(--accent); }

.project__title--big {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 24px 0 0;
  color: var(--text);
}

.project__split-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 320px;
  margin-top: 16px;
}

/* Hide the generic overlay/meta on split */
.project--split .project__overlay,
.project--split > .project__meta {
  display: none;
}

@media (max-width: 720px) {
  .project--split { grid-template-columns: 1fr; }
  .project--split .project__split-video { aspect-ratio: 9 / 12; border-right: none; border-bottom: 1px solid var(--border); }
}

.project__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.95) 100%),
    radial-gradient(ellipse at top right, rgba(255, 26, 26, 0.18), transparent 60%);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.project:hover .project__overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.95) 100%),
    radial-gradient(ellipse at top right, rgba(255, 26, 26, 0.24), transparent 60%);
}

.project__meta {
  position: absolute;
  inset: 0;
  padding: clamp(20px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  z-index: 2;
}

.project__top, .project__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project__num {
  color: var(--accent);
}

.project__title {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: auto 0;
}

.project__arrow {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.project:hover .project__arrow {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(45deg);
}

.work__view-all {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 60px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.4s cubic-bezier(.2,.8,.2,1);
}

.work__view-all:hover {
  gap: 22px;
}

/* ---------- Quote ---------- */
.quote {
  padding: var(--section-y) var(--pad-x);
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote__mark {
  font-family: var(--display);
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: -0.2em;
}

.quote__text {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.quote__author {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-y) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 720px) {
  .services__grid { grid-template-columns: 1fr; }
}

.service {
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.service:nth-child(2n) { border-right: none; }
.service:nth-child(n+3) { border-bottom: none; }

@media (max-width: 720px) {
  .service { border-right: none; border-bottom: 1px solid var(--border); }
  .service:last-child { border-bottom: none; }
}

.service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 26, 26, 0.08));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service:hover::after { opacity: 1; }

.service:hover .service__title { color: var(--accent); transform: translateX(10px); }

.service__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: auto;
  display: block;
  letter-spacing: 0.08em;
}

.service__title {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 60px 0 16px;
  transition: color 0.3s ease, transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.service__desc {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
  max-width: 380px;
  margin-bottom: 24px;
}

.service__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service__tags li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  color: var(--text-2);
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-y) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}

.contact__heading {
  font-family: var(--display);
  font-size: clamp(56px, 12vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 24px 0 60px;
}

.contact__heading .accent {
  color: var(--accent);
  font-style: italic;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: clamp(22px, 3.5vw, 52px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--text);
  padding-bottom: 8px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.4s cubic-bezier(.2,.8,.2,1);
  word-break: break-all;
}

.contact__email:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 24px;
}

.contact__email svg {
  flex-shrink: 0;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .contact__row { grid-template-columns: 1fr; gap: 40px; }
}

.contact__col h5 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.contact__col p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
  max-width: 380px;
}

.contact__socials {
  list-style: none;
}

.contact__socials li {
  border-top: 1px solid var(--border);
}
.contact__socials li:last-child {
  border-bottom: 1px solid var(--border);
}

.contact__socials a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 36px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.3s ease, padding 0.4s cubic-bezier(.2,.8,.2,1);
}

.contact__socials a:hover {
  color: var(--accent);
  padding-left: 12px;
}

.contact__socials sup {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px var(--pad-x) 32px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* ===== Rich footer (main index only) ===== */
.footer--rich {
  padding: clamp(80px, 10vw, 140px) var(--pad-x) 32px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 26, 26, 0.10), transparent 60%),
    var(--bg);
}

/* Callout: status pill + huge email */
.footer__callout {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(60px, 10vw, 120px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  align-self: flex-start;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 100px;
  background: rgba(255, 26, 26, 0.06);
}

.footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

.footer__email {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(12px, 1.5vw, 24px);
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--text);
  padding-bottom: clamp(6px, 1vw, 14px);
  transition: color 0.4s ease, border-color 0.4s ease, gap 0.5s cubic-bezier(.2,.8,.2,1);
  word-break: break-all;
  align-self: flex-start;
  max-width: 100%;
}

.footer__email:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: clamp(20px, 2.5vw, 40px);
}

.footer__email svg {
  width: clamp(20px, 2.2vw, 32px);
  height: auto;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.footer__email:hover svg { transform: rotate(-12deg) scale(1.15); }

/* 3-column grid */
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 80px);
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__gcol { display: flex; flex-direction: column; gap: 18px; }

.footer__h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer__list li {
  border-top: 1px solid var(--border);
}
.footer__list li:last-child {
  border-bottom: 1px solid var(--border);
}

.footer__list a,
.footer__list li:not(:has(a)) {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: padding-left 0.4s cubic-bezier(.2,.8,.2,1), color 0.3s ease;
  position: relative;
}

/* Social block — big Anton names, more breathing room.
   Only applies to the .footer__list that ISN'T --plain (i.e. the socials),
   so Studio + Colophon rows stay compact. */
.footer__list:not(.footer__list--plain) a {
  padding: clamp(18px, 2vw, 22px) 0;
  gap: 12px;
}

.footer__list:not(.footer__list--plain) .footer__link-name {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 0.95;
}

.footer__list:not(.footer__list--plain) .footer__link-meta {
  font-size: clamp(11px, 1vw, 14px);
}

.footer__list:not(.footer__list--plain) .footer__link-arrow {
  font-size: clamp(20px, 2vw, 28px);
}

.footer__list a:hover {
  padding-left: 14px;
  color: var(--accent);
}

.footer__list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.4s cubic-bezier(.2,.8,.2,1);
}

.footer__list a:hover::before { width: 6px; }

.footer__link-name {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.footer__link-meta {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: right;
}

.footer__list a .footer__link-meta { text-align: right; }
.footer__list a:hover .footer__link-meta { color: var(--accent); }

.footer__list--plain li {
  grid-template-columns: 90px 1fr;
}

.footer__list--plain .footer__link-meta {
  text-align: left;
  color: var(--text-dim);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.footer__list--plain .footer__link-name {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text);
}

.footer__link-arrow {
  font-family: var(--display);
  color: var(--text-dim);
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), color 0.3s ease;
}

.footer__list a:hover .footer__link-arrow {
  color: var(--accent);
  transform: rotate(45deg);
}

/* Brand block (big gradient text + animated signature) */
.footer__brand {
  position: relative;
  margin: clamp(40px, 6vw, 80px) 0 24px;
  text-align: center;
}

.footer__brand .footer__big {
  font-family: var(--display);
  font-size: clamp(80px, 22vw, 400px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, var(--text) 20%, rgba(242,242,242,0.05) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
}

.footer__signature {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(280px, 40vw, 600px);
  height: auto;
  pointer-events: none;
  opacity: 0.85;
}

.footer__sig-path {
  filter: drop-shadow(0 0 8px rgba(255, 26, 26, 0.5));
}

/* Bottom row */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__sig-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.footer__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer__back:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer__back svg { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.footer__back:hover svg { transform: translateY(-3px); }

@media (max-width: 720px) {
  .footer__email { font-size: clamp(32px, 11vw, 70px); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__center { order: 1; }
  .footer__back { order: 2; }
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__label {
  color: var(--text-dim);
}

.footer__val {
  color: var(--text);
}

.footer__big {
  font-family: var(--display);
  font-size: clamp(80px, 22vw, 400px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, var(--text) 20%, rgba(242,242,242,0.05) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 40px 0;
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  transition: color 0.3s ease;
}

.footer__back:hover {
  color: var(--accent);
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9997;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.7);
}

/* ---------- SplitType char/line masks ---------- */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split-word,
.split-char {
  display: inline-block;
  will-change: transform;
}

/* Detached trailing period — visually pushed from the word so big display
   headings don't have the dot kissing the last letter. Inserted by JS
   after SplitType runs. */
.dot-sep {
  display: inline-block;
  margin-left: 0.12em;
}

/* Hero scale-out helper — set transform origin so it shrinks toward center-top */
.hero__title {
  transform-origin: 50% 30%;
  will-change: transform, opacity;
}

/* When pinned, hero stays full-screen */
.hero.is-pinned {
  position: fixed;
  inset: 0;
}

/* ---------- Reveal animations (initial states) ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
}

/* =========================================================
   CASE STUDY PAGES
   ========================================================= */
.page--case {
  background: var(--bg);
}

.case-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--pad-x);
  z-index: 1000;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  transition: gap 0.4s cubic-bezier(.2,.8,.2,1);
  color: var(--text);
  font-weight: 500;
}

.case-back:hover { gap: 14px; }
.case-back__arrow { color: var(--accent); font-size: 16px; }

.case-nav__id {
  color: var(--text-dim);
  justify-self: center;
}

.case-nav__logo {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

.case-nav__logo sup { font-size: 9px; opacity: 0.6; margin-left: 2px; }

@media (max-width: 720px) {
  .case-nav { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case-nav__id { display: none; }
}

/* ----- Hero ----- */
.case-hero {
  padding: 120px var(--pad-x) clamp(40px, 6vw, 80px);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .case-hero { grid-template-columns: 1fr; padding-top: 100px; }
}

.case-hero__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-hero__title {
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 12px 0 4px;
}

.case-hero__tagline {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.case-meta div { display: flex; flex-direction: column; gap: 4px; }

.case-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-meta dd {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.case-meta a { border-bottom: 1px solid currentColor; transition: color 0.3s ease; }
.case-meta a:hover { color: var(--accent); }

.case-hero__shot {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-2);
}

.case-hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  filter: contrast(1.05);
}

.case-hero__shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}

/* ----- Sections ----- */
.case-section {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 80px);
}

@media (max-width: 900px) {
  .case-section { grid-template-columns: 1fr; gap: 24px; }
}

.case-section--dark {
  background: var(--bg-2);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-section--dark .case-section__body { max-width: 1100px; margin: 0 auto; }
.case-section--dark { grid-template-columns: 1fr; }
.case-section--dark .case-section__label { margin-bottom: 40px; }

.case-section--accent {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 26, 26, 0.16), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.case-section__label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  gap: 6px;
  align-items: baseline;
  position: sticky;
  top: 100px;
  align-self: start;
}

@media (max-width: 900px) {
  .case-section__label { position: static; }
}

.case-section__h {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.case-section__p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 16px;
}

.case-section__p--lead {
  font-size: clamp(20px, 1.6vw, 24px);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 24px;
}

/* ----- Step list ----- */
.case-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

.case-steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: clamp(20px, 2vw, 32px) 0;
  border-top: 1px solid var(--border);
}
.case-steps li:last-child { border-bottom: 1px solid var(--border); }

.case-step__n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.case-step__t {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-steps p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 700px;
}

/* ----- Decisions list ----- */
.case-decisions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.case-decisions li {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  padding-left: 24px;
  position: relative;
}

.case-decisions li::before {
  content: '◆';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 13px;
}

.case-decisions strong {
  color: var(--text);
  font-weight: 500;
}

/* ----- Gallery ----- */
.case-gallery {
  padding: clamp(40px, 6vw, 80px) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}

.case-gallery__row { display: flex; gap: clamp(16px, 2vw, 32px); }
.case-gallery__row--two { grid-template-columns: 1fr 1fr; }
.case-gallery__row--two .case-fig { flex: 1; }

.case-fig {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-fig__img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: top center;
  background-color: var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
  filter: contrast(1.05);
}

.case-fig--wide .case-fig__img { aspect-ratio: 16 / 9; }

.case-fig__txt {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #161616, #0a0a0a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(80px, 11vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.case-fig__txt span {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 12px;
}

.case-fig__txt--accent {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 26, 26, 0.18), transparent 60%),
    linear-gradient(135deg, #2a0a0a, #0a0a0a);
  color: var(--accent);
}

.case-fig figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .case-gallery__row, .case-gallery__row--two { flex-direction: column; }
}

/* ----- Result CTA ----- */
.case-result-link { margin-top: 32px; }

/* ----- Next case ----- */
.case-next {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  position: relative;
  text-align: center;
  transition: padding-bottom 0.4s cubic-bezier(.2,.8,.2,1);
}

.case-next:hover { padding-bottom: clamp(100px, 12vw, 170px); }

.case-next__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-next__label::before {
  content: '↓ ';
  color: var(--accent);
}

.case-next__title {
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.4s ease;
}

.case-next:hover .case-next__title { color: var(--accent); }

.case-next__arrow {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 96px);
  color: var(--accent);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.case-next:hover .case-next__arrow { transform: rotate(45deg); }

/* utilities */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
