/* ─────────────────────────────────────────────────────────────
   MOSTAFA MAHMOUD — PORTFOLIO V3
   Sleek dark · black + white + warm orange · Framer-style
───────────────────────────────────────────────────────────── */

:root {
  --bg: #050505;
  --bg-1: #0c0c0c;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --bg-4: #232323;
  --ink: #fafafa;
  --ink-2: #c4c4c4;
  --ink-3: #888888;
  --ink-4: #4a4a4a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #ff5b1e;
  --accent-2: #ff8a4d;
  --accent-soft: rgba(255, 91, 30, 0.15);

  --display: "Onest", "Plus Jakarta Sans", "Hanken Grotesk", -apple-system, sans-serif;
  --sans: "Onest", "Plus Jakarta Sans", "Hanken Grotesk", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad-x: clamp(20px, 4vw, 72px);
  --pad-y: clamp(80px, 10vw, 160px);
  --gut: clamp(14px, 1.6vw, 24px);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
}

[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-1: #efeee9;
  --bg-2: #e7e5df;
  --bg-3: #ddd9d0;
  --bg-4: #d4d0c5;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-3: #5a5a5a;
  --ink-4: #8a8a8a;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.16);
  --accent-soft: rgba(255, 91, 30, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  cursor: none;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}
@media (max-width: 900px) { body { cursor: auto; } }

img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ── Cursor ───────────────────────────────────────────────── */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
  transition: transform .12s ease, background .25s, opacity .2s;
}
#cursor-ring {
  width: 0; height: 0; border-radius: 50%;
  background: var(--accent);
  transition: width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1),
              background .25s, transform .12s linear;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: transparent;
}
body.cursor-hover #cursor-ring {
  width: 64px; height: 64px; color: #fff;
}
body.cursor-hover[data-cursor-text="view"] #cursor-ring::after { content: "View"; }
body.cursor-hover[data-cursor-text="play"] #cursor-ring::after { content: "▶  Play"; }
body.cursor-hover[data-cursor-text="drag"] #cursor-ring::after { content: "⇄  Drag"; }
body.cursor-hover[data-cursor-text="edit"] #cursor-ring::after { content: "Edit"; }
body.cursor-hover[data-cursor-text="open"] #cursor-ring::after { content: "Open ↗"; }
body.cursor-hover #cursor-dot { opacity: 0; }
@media (max-width: 900px) { #cursor-dot, #cursor-ring { display: none; } }

/* ── Type ─────────────────────────────────────────────────── */
.lbl, .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.h-mega { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 140px); line-height: 0.96; letter-spacing: -0.045em; }
.h-1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.5vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.h-2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.h-3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.h-4 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.012em; }

.body-lg { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; max-width: 62ch; font-weight: 400; }
.body { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.fine { font-size: 13px; line-height: 1.45; color: var(--ink-3); }

.accent { color: var(--accent); }
.muted { color: var(--ink-3); }
.italic { font-style: italic; }

/* ── Layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--pad-x); }
.section { position: relative; padding: var(--pad-y) 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

.divider { height: 1px; background: var(--line); width: 100%; }

/* ── Top nav (pill) ───────────────────────────────────────── */
.topnav-wrap {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 70;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.topnav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 20px;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: auto;
  font-size: 14px;
  max-width: 100%;
}
[data-theme="light"] .topnav { background: rgba(255,255,255,.7); }

.topnav .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 6px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  color: var(--ink);
}
.topnav .brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.topnav nav { display: flex; gap: 2px; padding: 0 4px; }
.topnav nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.topnav nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
[data-theme="light"] .topnav nav a:hover { background: rgba(0,0,0,.05); }
.topnav .cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .2s, background .2s;
}
.topnav .cta:hover { background: var(--accent-2); transform: translateY(-1px); }

@media (max-width: 800px) {
  .topnav nav { display: none; }
  .topnav .brand { border-right: 0; padding-right: 8px; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--bg-4); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { background: transparent; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ── Card + glow ──────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.card--glow { box-shadow: 0 30px 80px -40px rgba(255, 91, 30, .35), 0 0 0 1px var(--line); }
.card--accent { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── HERO (full-bleed Spector-style) ─────────────────────── */
.hero--full {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: none;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.1) brightness(0.7) grayscale(0.2);
  opacity: 0.35;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-bg__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Lower-opacity grid, fading at the edges of the hero,
     with the cursor cutting a soft hole into it */
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: clamp(40px, 4vw, 80px) clamp(40px, 4vw, 80px);
  mask-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent 0%, transparent 10%, #000 26%),
    radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, rgba(0,0,0,0.5) 65%, transparent 100%);
  -webkit-mask-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent 0%, transparent 10%, #000 26%),
    radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, rgba(0,0,0,0.5) 65%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.hero-bg__spot {
  position: absolute;
  width: clamp(360px, 38vw, 620px);
  height: clamp(360px, 38vw, 620px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 91, 30, 0.22) 0%, rgba(255, 91, 30, 0.08) 35%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  mix-blend-mode: screen;
  filter: blur(2px);
  z-index: 1;
}
.hero-bg__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent 50%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

/* Animated decorative elements over the hero */
.hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.hero-fx__orb {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.hero-fx__orb--a { top: 20%; left: 18%; animation: orbDrift 7s ease-in-out infinite, orbBlink 2.4s ease-in-out infinite; }
.hero-fx__orb--b { top: 65%; left: 28%; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 10px #fff; animation: orbDrift 9s ease-in-out infinite 1s, orbBlink 3s ease-in-out infinite 0.6s; }
.hero-fx__orb--c { top: 30%; right: 22%; width: 6px; height: 6px; animation: orbDrift 8s ease-in-out infinite reverse, orbBlink 2.8s ease-in-out infinite 1s; }
.hero-fx__orb--d { top: 72%; right: 18%; width: 4px; height: 4px; background: #fff; opacity: 0.6; animation: orbDrift 10s ease-in-out infinite reverse 0.5s, orbBlink 3.4s ease-in-out infinite 1.4s; }

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -16px); }
}
@keyframes orbBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero-fx__crosshair {
  position: absolute;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-size: 10px;
  animation: crosshairBlink 2.4s ease-in-out infinite;
}
.hero-fx__crosshair::before, .hero-fx__crosshair::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,0.4);
}
.hero-fx__crosshair::before { width: 100%; height: 1px; top: 50%; }
.hero-fx__crosshair::after { height: 100%; width: 1px; left: 50%; }
.hero-fx__crosshair--tl { top: 22%; left: 38%; }
.hero-fx__crosshair--tr { top: 28%; right: 36%; animation-delay: 0.6s; }
.hero-fx__crosshair--bl { bottom: 32%; left: 42%; animation-delay: 1.2s; }

@keyframes crosshairBlink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

.hero-fx__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Top-left: identity */
.hero-tl {
  position: absolute;
  top: clamp(100px, 14vh, 140px);
  left: var(--pad-x);
  z-index: 2;
  color: #fff;
  max-width: 30ch;
}
.hero-tl__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 18px;
}
.hero-tl__eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
  display: inline-block;
}
.hero-tl__eyebrow .jp { color: rgba(255,255,255,.65); font-family: var(--sans); letter-spacing: 0.04em; text-transform: none; }
.hero-tl__name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 22px;
}
.hero-tl__addr {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 44ch;
}
.hero-tl__addr .addr-acc {
  color: rgba(255,255,255,.85);
}

/* Top-right: nav list */
.hero-tr {
  position: absolute;
  top: clamp(100px, 14vh, 140px);
  right: var(--pad-x);
  z-index: 2;
  color: #fff;
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.hero-tr__plus { color: var(--accent); font-size: 16px; }
.hero-tr__kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 12px;
  margin-bottom: 4px;
  min-width: 140px;
}
.hero-tr__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.012em;
  color: rgba(255,255,255,.9);
}
.hero-tr__list li {
  cursor: none;
  transition: color .25s, transform .25s;
}
.hero-tr__list li:hover { color: var(--accent); transform: translateX(-3px); }

@media (max-width: 800px) {
  .hero-tr { top: auto; bottom: 50%; right: var(--pad-x); }
  .hero-tr__kicker { min-width: 100px; }
}

/* Bottom: massive headline + meta */
.hero-bottom {
  position: absolute;
  bottom: clamp(28px, 4vw, 60px);
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 2;
}
.hero-bottom__display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 80px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: clamp(20px, 2.5vw, 40px);
  text-transform: uppercase;
  max-width: 18ch;
}
.hero-bottom__display .line { display: block; overflow: hidden; }
.hero-bottom__display .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-bottom__display .line:nth-child(2) > span { animation-delay: .1s; }
.hero-bottom__display .line:nth-child(3) > span { animation-delay: .2s; }
.hero-bottom__display .star {
  font-size: 0.55em;
  color: var(--accent);
  vertical-align: top;
  margin-left: 0.1em;
  animation: spin 14s linear infinite;
  transform-origin: center;
  display: inline-block;
}
.hero-bottom__display .acc {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}
.hero-bottom__display .dot-blink {
  color: var(--accent);
  display: inline-block;
  animation: dotBlink 1.1s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
@keyframes rise { to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bottom__meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-bottom__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
}
.hero-bottom__pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6dd47e;
  box-shadow: 0 0 10px #6dd47e;
  animation: pulse 2s infinite;
}
.hero-bottom__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-bottom__cta .btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: #fff;
}
.hero-bottom__cta .btn:hover { background: rgba(255,255,255,.15); }
.hero-bottom__cta .btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-bottom__cta .btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: clamp(28px, 4vw, 60px);
  right: var(--pad-x);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,.5);
}
.hero-scroll .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 900px) { .hero-scroll { display: none; } }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Marquee ──────────────────────────────────────────────── */
.marquee {
  display: flex; overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex; gap: 56px; flex-shrink: 0; padding: 28px 28px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.marquee__track > .w {
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.marquee__track > .s { color: var(--accent); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Works grid ───────────────────────────────────────────── */
.filterbar {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.filterbar button {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.filterbar button:hover { color: var(--ink); }
.filterbar button.active { background: var(--ink); color: var(--bg); }
.filterbar button .ct { font-size: 11px; opacity: 0.5; }

.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  row-gap: clamp(32px, 4vw, 56px);
}

.work {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.work:hover { transform: translateY(-4px); border-color: var(--line-2); }
.work[data-hidden="true"] { display: none; }
.work__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
}
.work__media img, .work__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.work:hover .work__media img, .work:hover .work__media video { transform: scale(1.04); }
.work__tag {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
.work__meta {
  padding: 22px 22px 26px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
}
.work__title {
  font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.work__sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.work__cat {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
@media (max-width: 1100px) { .span-3, .span-4, .span-5 { grid-column: span 6; } .span-7, .span-8 { grid-column: span 12; } }
@media (max-width: 640px) { .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; } }

.work.aspect-tall .work__media { aspect-ratio: 4/5; }
.work.aspect-wide .work__media { aspect-ratio: 16/9; }
.work.aspect-square .work__media { aspect-ratio: 1; }

/* ── Case study ───────────────────────────────────────────── */
.case { padding: var(--pad-y) 0; border-top: 1px solid var(--line); position: relative; }
.case::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 30% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.case > .container { position: relative; z-index: 1; }

.case__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.case__chip .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}

.case__title { margin-bottom: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gut); align-items: end; }
@media (max-width: 900px) { .case__title { grid-template-columns: 1fr; } }

.case__hero {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.case__hero img, .case__hero video { width: 100%; height: 100%; object-fit: cover; }
.case__hero .tag {
  position: absolute; top: 20px; left: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  font-size: 12px; color: #fff;
}

.case__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: clamp(32px, 4vw, 56px) 0;
}
.case__meta .m {
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.case__meta .m h5 { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-bottom: 10px; }
.case__meta .m p { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
@media (max-width: 800px) { .case__meta { grid-template-columns: 1fr 1fr; } }

.case__body {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gut);
  margin-bottom: clamp(40px, 5vw, 80px);
}
@media (max-width: 900px) { .case__body { grid-template-columns: 1fr; } }
.case__body .col {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.case__body h6 { font-size: 12px; color: var(--accent); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 14px; text-transform: uppercase; }
.case__body p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 12px; }

/* Workflow — alternating timeline */
.wf {
  position: relative;
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px);
  padding: 8px 0;
}
.wf__spine {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
}
.wf__row {
  position: relative;
  display: grid; align-items: center;
  grid-template-columns: 1fr 56px 1fr;
  gap: clamp(16px, 2.4vw, 40px);
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
}
.wf__row.is-in { opacity: 1; transform: translateY(0); }
.wf__row--right .wf__media { order: 3; }
.wf__row--right .wf__node  { order: 2; }
.wf__row--right .wf__text  { order: 1; text-align: right; }
.wf__row--right .wf__text .num { flex-direction: row-reverse; }

.wf__media {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  aspect-ratio: 16/10;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.7);
}
.wf__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.wf__row:hover .wf__media img { transform: scale(1.045); }

.wf__node {
  justify-self: center; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-1); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink);
  box-shadow: 0 0 0 6px var(--bg-0);
  transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.wf__row:hover .wf__node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--bg-0), 0 0 18px -2px var(--accent); }

.wf__text .num {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 10px;
}
.wf__text .num .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wf__text h4 { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.01em; margin: 0 0 8px; }
.wf__text p { font-size: clamp(13px, 1.05vw, 15px); color: var(--ink-3); line-height: 1.55; margin: 0; max-width: 40ch; }
.wf__row--right .wf__text p { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .wf__row { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 720px) {
  .wf__spine { left: 27px; }
  .wf__row, .wf__row--right { grid-template-columns: 54px 1fr; align-items: start; }
  .wf__row .wf__media, .wf__row--right .wf__media { order: 2; grid-column: 2; }
  .wf__row .wf__node, .wf__row--right .wf__node { order: 1; grid-column: 1; grid-row: 1 / span 2; justify-self: center; width: 54px; height: 54px; }
  .wf__row .wf__text, .wf__row--right .wf__text { order: 3; grid-column: 2; text-align: left; }
  .wf__row--right .wf__text .num { flex-direction: row; }
  .wf__row--right .wf__text p { margin-left: 0; }
  .wf__media { margin-bottom: 12px; }
}

/* Workflow — interactive stepper */
.wfs {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.wfs__list { display: flex; flex-direction: column; }
.wfs__item {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 14px; padding: 16px 4px; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--line);
  text-align: left; font: inherit; color: var(--ink-3);
  transition: color .25s ease, padding-left .3s cubic-bezier(.2,.8,.2,1);
}
.wfs__item:last-child { border-bottom: 1px solid var(--line); }
.wfs__fill { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; background: var(--accent); opacity: 0; transition: opacity .3s ease; }
.wfs__item.is-active .wfs__fill { opacity: 1; }
.wfs__num { font-family: var(--mono); font-size: 12px; color: var(--ink-4, #6b6b6b); transition: color .25s ease; }
.wfs__label { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: -.01em; transition: color .25s ease; }
.wfs__bar { position: absolute; left: -1px; top: 50%; transform: translateY(-50%) scaleY(0); transform-origin: center; width: 2px; height: 60%; background: var(--accent); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.wfs__item.is-active { color: var(--ink); padding-left: 16px; }
.wfs__item.is-active .wfs__num { color: var(--accent); }
.wfs__item.is-active .wfs__label { color: #fff; }
.wfs__item.is-active .wfs__bar { transform: translateY(-50%) scaleY(1); }
.wfs__item:hover .wfs__label { color: #fff; }

.wfs__preview { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
.wfs__stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16/10;
  box-shadow: 0 30px 70px -32px rgba(0,0,0,.75);
}
.wfs__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .55s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.wfs__stage img.is-on { opacity: 1; transform: scale(1); animation: wfsKenBurns 5.4s ease forwards; }
@keyframes wfsKenBurns { from { transform: scale(1.005); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .wfs__stage img.is-on { animation: none; } }
.wfs__progress { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; gap: 5px; }
.wfs__seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.wfs__seg.is-done { background: var(--accent); }
.wfs__seg i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.wfs__chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; color: #fff;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
}
.wfs__meta .num { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.wfs__meta .num .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wfs__meta h4 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.01em; margin: 0 0 8px; }
.wfs__meta p { font-size: clamp(13px, 1.1vw, 16px); color: var(--ink-3); line-height: 1.6; margin: 0; max-width: 60ch; }

@media (max-width: 760px) {
  .wfs { grid-template-columns: 1fr; }
  .wfs__preview { position: static; order: -1; }
}

/* Workflow (legacy grid) */
.workflow {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 600px) { .workflow { grid-template-columns: 1fr; } }
.workflow__step {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.workflow__step .num {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--accent); font-weight: 500;
}
.workflow__step .num .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.workflow__step .thumb { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.workflow__step .thumb img { width: 100%; height: 100%; object-fit: cover; }
.workflow__step h4 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.workflow__step p { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* Carousel */
.carousel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
@media (max-width: 900px) { .carousel { grid-template-columns: 1fr 1fr; gap: 3px; } }
.carousel__slide {
  aspect-ratio: 1/1; border-radius: 4px; overflow: hidden;
  background: var(--bg-3); position: relative;
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.carousel.is-in .carousel__slide { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .carousel__slide { opacity: 1; transform: none; transition: none; }
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.carousel__slide:hover img { transform: scale(1.05); }
.carousel__slide .n {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  font-size: 11px; color: #fff;
}

/* Compare slider */
.compare {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-3); user-select: none; cursor: ew-resize;
  border: 1px solid var(--line);
}
.compare__layer { position: absolute; inset: 0; }
.compare__top { clip-path: inset(0 0 0 50%); transition: clip-path 0.05s linear; }
.compare__handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 16px var(--accent); }
.compare__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 8px 24px rgba(255,91,30,.4);
}
.compare__lbl {
  position: absolute; bottom: 20px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  color: #fff; font-size: 12px;
}
.compare__lbl.l { left: 20px; }
.compare__lbl.r { right: 20px; }

/* Storyboard */
.storyboard {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
@media (max-width: 800px) { .storyboard { grid-template-columns: repeat(3, 1fr); } }
.storyboard__frame {
  aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-3); position: relative;
  border: 1px solid var(--line);
}
.storyboard__frame .inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 8px; text-align: center; }
.storyboard__frame .inner .t { font-size: 10px; color: var(--ink-3); }
.storyboard__frame.is-ai { background: linear-gradient(135deg, var(--accent-soft), transparent); border-color: rgba(255,91,30,.3); }
.storyboard__frame .tc { position: absolute; bottom: 6px; left: 6px; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.6); font-size: 9px; color: #fff; }
.storyboard__frame .ai { position: absolute; top: 6px; right: 6px; padding: 3px 6px; border-radius: 4px; background: var(--accent); font-size: 9px; color: #fff; }

/* Slot (placeholders) */
.slot {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, var(--bg-3), var(--bg-1));
  display: grid; place-items: center;
  overflow: hidden;
}
.slot__inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; color: var(--ink-3);
  text-align: center; padding: 16px;
}
.slot__inner .big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.02em;
  color: var(--ink-2);
}
.slot__inner .plus {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 24px rgba(255,91,30,.35);
}

/* ── Reel ─────────────────────────────────────────────────── */
.reel { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gut); }
@media (max-width: 1000px) { .reel { grid-template-columns: 1fr; } }
.reel__main { position: relative; aspect-ratio: 16/9; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.reel__main .play-big {
  position: absolute; inset: 0; margin: auto;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 12px 40px rgba(255,91,30,.45);
}
.reel__main .bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}

.reel__list { display: flex; flex-direction: column; gap: 8px; }
.reel__item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; align-items: center;
  padding: 10px;
  border-radius: var(--r);
  background: var(--bg-1);
  border: 1px solid var(--line);
  text-align: left;
  transition: background .25s, border-color .25s, transform .2s;
}
.reel__item:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateX(2px); }
.reel__item.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.reel__item.active .sub, .reel__item.active .dur { color: rgba(255,255,255,.85); }
.reel__item .thumb { aspect-ratio: 16/9; border-radius: 10px; background: var(--bg-3); position: relative; overflow: hidden; }
.reel__item .thumb .play { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: 11px; }
.reel__item h5 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.reel__item .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.reel__item .dur { font-size: 13px; color: var(--ink-3); }

.breakdown {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 900px) { .breakdown { grid-template-columns: 1fr 1fr; } }
.breakdown__card {
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex; flex-direction: column; gap: 12px;
}
.breakdown__card .frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg-3); position: relative; }
.breakdown__card .tc { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.6); font-size: 10px; color: #fff; }
.breakdown__card h6 { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.breakdown__card p { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* ── Web mocks ────────────────────────────────────────────── */
.web { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gut); }
@media (max-width: 1000px) { .web { grid-template-columns: 1fr; } }

.web-mock {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.web-mock .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0,0,0,.4); border-bottom: 1px solid var(--line); }
.web-mock .bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.web-mock .url { margin-left: 14px; font-size: 12px; color: var(--ink-3); }
.web-mock .body { position: absolute; inset: 41px 0 0 0; overflow: hidden; }
.web-mock--mini { aspect-ratio: 16/9; }

.web__list { display: flex; flex-direction: column; gap: var(--gut); }

.capability {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex; flex-direction: column; gap: 10px;
}
.capability .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 20px;
  margin-bottom: 6px;
}
.capability h4 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.capability p { font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* ── Poster editor ────────────────────────────────────────── */
.poster-editor {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 900px) { .poster-editor { grid-template-columns: 1fr; } }
.poster-editor__canvas {
  padding: clamp(24px, 3vw, 48px);
  display: grid; place-items: center;
  min-height: 540px;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) { .poster-editor__canvas { border-right: 0; border-bottom: 1px solid var(--line); } }
.poster-editor__controls { padding: clamp(24px, 2.5vw, 36px); display: flex; flex-direction: column; gap: 22px; }

.poster {
  width: 100%; max-width: 420px; aspect-ratio: 4/5;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  transition: background .3s, color .3s;
}
.poster__hero {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.03em; line-height: 0.98;
}
.poster__top, .poster__bottom { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.7; }
.poster__sub { font-size: 14px; line-height: 1.45; opacity: 0.75; max-width: 32ch; margin-top: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.field input, .field textarea, .field select {
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; transition: transform .2s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button.active { border-color: var(--accent); transform: scale(1.1); }
.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.templates button {
  aspect-ratio: 4/5;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg-2);
  font-size: 12px; font-weight: 500;
  display: grid; place-items: end center;
  padding: 8px;
  color: var(--ink-2);
  transition: all .2s;
}
.templates button:hover { border-color: var(--line-2); }
.templates button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* ── Services ─────────────────────────────────────────────── */
.services {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }
.service {
  padding: 32px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s, border-color .3s, transform .3s;
  position: relative;
  overflow: hidden;
}
.service:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(-2px); }
.service__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.service__n { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.service__ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-size: 22px;
}
.service__t { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.service__d { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.service__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.service__chips span {
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); font-size: 11px; color: var(--ink-2);
}

/* ── About ────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about__photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.about__photo .ph-text { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.04em; color: var(--ink-4); }
.about__photo .drop {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3);
}
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.about__stats .stat {
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.about__stats .stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.03em; color: var(--accent); line-height: 0.95; }
.about__stats .stat .l { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ── Behance grid ─────────────────────────────────────────── */
.bh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gut); }
@media (max-width: 800px) { .bh-grid { grid-template-columns: 1fr; } }
.bh-card {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 16px;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: none;
}
.bh-card:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(-3px); }
.bh-card__visual {
  aspect-ratio: 16/10;
  border-radius: var(--r);
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, var(--accent-soft), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.bh-card__visual .visual-text { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--ink-2); text-align: center; padding: 16px; }
.bh-card__visual .num {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  font-size: 11px; color: #fff;
}
.bh-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.bh-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.018em; line-height: 1.15; }
.bh-card__arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3); display: grid; place-items: center; font-size: 14px; color: var(--ink-2);
  transition: background .25s, color .25s, transform .25s;
}
.bh-card:hover .bh-card__arrow { background: var(--accent); color: #fff; transform: translate(2px, -2px); }
.bh-card__d { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.bh-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-card__meta span { padding: 4px 10px; border-radius: 999px; background: var(--bg-3); font-size: 11px; color: var(--ink-2); }

/* ── Contact ──────────────────────────────────────────────── */
.contact { padding: var(--pad-y) 0 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 30% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.contact > .container { position: relative; z-index: 1; }
.contact-big {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.96;
  font-size: clamp(56px, 9vw, 152px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.contact-big .acc { color: var(--accent); font-style: italic; }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid a {
  padding: 24px 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background .3s, border-color .3s, transform .3s;
}
.contact-grid a:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(-2px); }
.contact-grid a .label { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.contact-grid a .value { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.012em; color: var(--ink); }
.contact-grid a .arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 16px;
  flex-shrink: 0;
  transition: transform .25s;
}
.contact-grid a:hover .arrow { transform: translate(2px, -2px); }

footer {
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
  background: var(--bg-1);
}
@media (max-width: 700px) { footer { flex-direction: column; gap: 12px; text-align: center; } }


/* ───────────────────────────────────────────────────────────
   ABOUT (rebuilt as story chapter 02)
─────────────────────────────────────────────────────────── */
.section--about { padding: var(--pad-y) 0; border-top: 1px solid var(--line); position: relative; }
.section--about::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.section--about > .container { position: relative; z-index: 1; }

.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .about-meta { grid-template-columns: 1fr; } }
.about-meta__item { display: flex; flex-direction: column; gap: 6px; }
.about-meta__item .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.about-meta__item .val { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.about-meta__item .val .dot { width: 8px; height: 8px; border-radius: 50%; background: #6dd47e; box-shadow: 0 0 8px #6dd47e; animation: pulse 2s infinite; }

.about-stage {
  position: relative;
  aspect-ratio: 4/5;
}
.about-stage__photo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.about-stage__photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }
.about-stage__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85) 100%); }
.about-stage__tag {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 12px;
}
.about-stage__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
.about-stage__role {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.018em;
  color: #fff; line-height: 1.2;
}
.about-stage__chip {
  position: absolute;
  background: rgba(20,20,20,.7);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.6);
}
.about-stage__chip .ico {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.about-stage__chip .ico--green { background: #6dd47e; color: #0a0a0a; }
.about-stage__chip .meta .t { font-weight: 600; font-size: 13px; line-height: 1.2; }
.about-stage__chip .meta .s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.about-stage__chip--tl { top: -2%; left: -8%; animation: floatA 7s ease-in-out infinite; }
.about-stage__chip--br { bottom: 8%; right: -8%; animation: floatA 8s ease-in-out infinite reverse; }
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -8px); }
}


/* ───────────────────────────────────────────────────────────
   CASE STUDY MODAL
─────────────────────────────────────────────────────────── */
.case-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  animation: modalFadeIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.case-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(20px);
}

.case-modal__sheet {
  position: relative;
  width: min(94vw, 1240px);
  height: min(94vh, 1000px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalSlideIn .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.case-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.case-modal__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 12px; color: var(--ink-2);
}
.case-modal__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }

.case-modal__close {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink);
  transition: background .25s, color .25s;
}
.case-modal__close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.case-modal__close .x {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.2); display: grid; place-items: center; font-size: 11px;
}

.case-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 64px);
  scrollbar-width: thin;
}
.case-modal__body::-webkit-scrollbar { width: 8px; }
.case-modal__body::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }

.case-modal__title { margin-bottom: 32px; max-width: 26ch; }
.case-modal__hero-media {
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.case-modal__hero-media img, .case-modal__hero-media video { width: 100%; height: 100%; object-fit: cover; }
.case-modal__hero-media .tag {
  position: absolute; top: 18px; left: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  color: #fff; font-size: 12px;
}

.case-chapter {
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(28px, 3vw, 40px);
}
.case-chapter__head {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.case-chapter__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 13px;
}
.case-chapter__head .eyebrow { color: var(--ink-2); }
.case-chapter__head .eyebrow::before { display: none; }


/* ───────────────────────────────────────────────────────────
   ABOUT v2 — merged with capabilities (no photo)
─────────────────────────────────────────────────────────── */
.about-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.about-head__right { padding-top: 0; }
@media (max-width: 900px) { .about-head { grid-template-columns: 1fr; } }
.about-head .body-lg strong { color: var(--ink); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: clamp(28px, 3vw, 48px);
}
@media (max-width: 1000px) { .about-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .about-stats { grid-template-columns: 1fr; } }

.stat-card {
  padding: 28px 28px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: background .3s, border-color .3s, transform .4s;
}
.stat-card:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(-3px); }
.stat-card--big {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg-1);
  border-color: rgba(255,91,30,.18);
}
.stat-card--big::after {
  content: "";
  position: absolute; bottom: -40%; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.stat-card__lbl {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.stat-card__n {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.035em;
  line-height: 0.95; color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.stat-card--big .stat-card__n .num { color: var(--accent); }
.stat-card__n .suffix { font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--ink-3); letter-spacing: 0; }
.stat-card__sub { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* Timeline */
.about-timeline {
  margin-bottom: clamp(64px, 8vw, 120px);
}
.about-timeline__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.about-timeline__line {
  flex: 1; height: 1px; background: var(--line);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px dashed var(--line-2);
  padding-top: 28px;
}
@media (max-width: 1000px) { .timeline { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px)  { .timeline { grid-template-columns: 1fr 1fr; } }

.timeline__node {
  position: relative;
  padding: 14px 16px 4px 0;
  opacity: 0; transform: translateY(8px);
  animation: timelineIn .6s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes timelineIn { to { opacity: 1; transform: none; } }

.timeline__dot {
  position: absolute;
  top: -33px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: transform .25s, background .25s;
}
.timeline__node:hover .timeline__dot { background: var(--accent); transform: scale(1.2); }

.timeline__year {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.timeline__title {
  font-family: var(--display); font-weight: 600;
  font-size: 15px; letter-spacing: -0.012em;
  color: var(--ink); line-height: 1.2;
  margin-bottom: 4px;
}
.timeline__sub {
  font-size: 12px; color: var(--ink-3); line-height: 1.4;
}

/* Capabilities head */
.about-caps__head {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
@media (max-width: 900px) { .about-caps__head { grid-template-columns: 1fr; } }
.about-caps__head .h-2 { grid-column: 1; }
.about-caps__head .eyebrow { grid-column: 1; }
.about-caps__head .body-lg { grid-column: 2; }
@media (max-width: 900px) {
  .about-caps__head .h-2,
  .about-caps__head .eyebrow,
  .about-caps__head .body-lg { grid-column: 1; }
}

.about-caps__cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-caps__cta .lbl-sub {
  font-size: 13px; color: var(--ink-3);
}


/* About head v2 — quote card + tag chips fill the right side */
.about-head__right { display: flex; flex-direction: column; gap: 28px; justify-content: flex-end; }

.about-quote {
  position: relative;
  padding: 32px 32px 28px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--line);
}
.about-quote::before {
  content: "";
  position: absolute; top: 0; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.about-quote__mark {
  position: absolute; top: 14px; right: 28px;
  font-family: var(--display); font-weight: 700; font-size: 84px;
  line-height: 1; color: var(--accent); opacity: 0.25;
  pointer-events: none;
}
.about-quote p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about-quote p strong { color: var(--ink); font-weight: 600; }

.about-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.about-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}
.about-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.about-tag .dot--white { background: var(--ink-3); box-shadow: none; }


/* Toolkit compact — small horizontal cards instead of large stacked ones */
.about-caps .services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .about-caps .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .about-caps .services { grid-template-columns: 1fr; } }

.about-caps .service {
  padding: 18px 20px;
  gap: 10px;
  border-radius: var(--r);
}
.about-caps .service__head { gap: 12px; align-items: center; }
.about-caps .service__ico {
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 14px;
}
.about-caps .service__n {
  font-size: 10px; letter-spacing: 0.12em;
}
.about-caps .service__t {
  font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.about-caps .service__d {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.about-caps .service__chips { gap: 5px; margin-top: 2px; }
.about-caps .service__chips span {
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.02em;
}


/* Toolkit rail — single thin label that ties cards to About */
.about-caps { margin-top: clamp(8px, 1vw, 16px); }
.about-caps__rail {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.about-caps__rail-lbl {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.about-caps__rail-lbl::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.about-caps__rail-line { flex: 1; height: 1px; background: var(--line); }
.about-caps__rail-meta {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}


/* About headline scale-down */
.about-head .h-1 {
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}


/* Toolkit simplified — minimal rows, no card chrome */
.about-caps .services {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-caps .service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: 18px 4px;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transform: none !important;
  transition: padding .25s, background .25s;
}
.about-caps .service:hover {
  background: rgba(255, 91, 30, 0.03) !important;
  padding-left: 16px;
}
.about-caps .service__head {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
}
.about-caps .service__ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 91, 30, 0.12);
  color: var(--accent);
  font-size: 14px;
  display: grid; place-items: center;
}
.about-caps .service__n {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.about-caps .service__t {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  min-width: 0;
}
.about-caps .service__d {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0;
  max-width: 60ch;
  grid-column: 2;
  display: none;
}
.about-caps .service__chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0;
  justify-self: end;
}
.about-caps .service__chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-3);
}

@media (max-width: 800px) {
  .about-caps .service { grid-template-columns: auto 1fr; }
  .about-caps .service__chips { grid-column: 2; justify-self: start; }
}


/* Toolkit consolidated into a single card */
.about-caps .services {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 6px 4px;
}
.about-caps .service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  padding: 12px 18px;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0;
  transform: none !important;
  transition: padding .25s, background .25s;
}
.about-caps .service:last-child { border-bottom: 0 !important; }
.about-caps .service:hover {
  background: rgba(255, 91, 30, 0.04) !important;
  padding-left: 24px;
}
.about-caps .service__head {
  display: flex; align-items: center; gap: 12px;
  margin: 0;
}
.about-caps .service__ico {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255, 91, 30, 0.12);
  color: var(--accent);
  font-size: 12px;
  display: grid; place-items: center;
}
.about-caps .service__n {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.about-caps .service__t {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(15px, 1.3vw, 18px); letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 0;
}
.about-caps .service__d { display: none; }
.about-caps .service__chips {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin: 0;
  justify-self: end;
}
.about-caps .service__chips span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
}

@media (max-width: 800px) {
  .about-caps .service { grid-template-columns: auto 1fr; padding: 10px 14px; }
  .about-caps .service__chips { grid-column: 2; justify-self: start; margin-top: 4px; }
}


/* Toolkit — bring descriptions back inside the consolidated card */
.about-caps .service {
  align-items: start !important;
  padding: 16px 18px !important;
}
.about-caps .service__head { align-self: center; }
.about-caps .service__d {
  display: block !important;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
  margin: 4px 0 0;
  max-width: 56ch;
}
.about-caps .service__t {
  margin-bottom: 0;
}
.about-caps .service__chips { align-self: center; }

@media (max-width: 800px) {
  .about-caps .service__d { font-size: 12px; }
}


/* Toolkit — single-line rows, smaller everything */
.about-caps .service {
  display: grid !important;
  grid-template-columns: auto auto 1fr auto !important;
  align-items: center !important;
  gap: clamp(10px, 1.2vw, 18px) !important;
  padding: 10px 16px !important;
}
.about-caps .service__head {
  display: contents;
}
.about-caps .service__ico {
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 11px;
  grid-column: 1;
}
.about-caps .service__n {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--ink-3);
  grid-column: auto;
}
.about-caps .service__t {
  font-family: var(--display); font-weight: 600;
  font-size: 14px; letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  grid-column: auto;
}
.about-caps .service__t::before {
  content: "·";
  margin-right: 10px;
  color: var(--ink-4);
}
.about-caps .service__d {
  display: block !important;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-3);
  margin: 0;
  max-width: none;
  grid-column: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.about-caps .service__chips {
  display: flex; gap: 4px; flex-wrap: nowrap;
  margin: 0;
  justify-self: end;
  grid-column: auto;
}
.about-caps .service__chips span {
  padding: 3px 8px;
  font-size: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .about-caps .service__chips span:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  .about-caps .service__d { display: none !important; }
  .about-caps .service__chips span:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  .about-caps .service { grid-template-columns: auto auto 1fr auto !important; }
  .about-caps .service__chips { display: none; }
}


/* Toolkit single-line — proper grid with 5 columns (no contents trick) */
.about-caps .service {
  display: grid !important;
  grid-template-columns: 22px auto auto 1fr auto !important;
  align-items: center !important;
  gap: clamp(10px, 1.2vw, 16px) !important;
  padding: 11px 16px !important;
}
.about-caps .service__head {
  display: contents !important;
}
.about-caps .service__ico {
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 11px;
  grid-column: 1 / 2 !important;
}
.about-caps .service__n {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--ink-3);
  grid-column: 2 / 3 !important;
  justify-self: start;
}
.about-caps .service__t {
  font-family: var(--display); font-weight: 600;
  font-size: 14px; letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  grid-column: 3 / 4 !important;
  justify-self: start;
}
.about-caps .service__t::before {
  content: none;
}
.about-caps .service__d {
  display: block !important;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-3);
  margin: 0;
  grid-column: 4 / 5 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.about-caps .service__chips {
  display: flex; gap: 4px; flex-wrap: nowrap;
  margin: 0;
  grid-column: 5 / 6 !important;
  justify-self: end;
}
.about-caps .service__chips span {
  padding: 3px 8px;
  font-size: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .about-caps .service__chips span:nth-child(n+4) { display: none; }
}
@media (max-width: 1000px) {
  .about-caps .service { grid-template-columns: 22px auto 1fr auto !important; }
  .about-caps .service__n { display: none !important; }
  .about-caps .service__t { grid-column: 2 / 3 !important; }
  .about-caps .service__d { grid-column: 3 / 4 !important; }
  .about-caps .service__chips { grid-column: 4 / 5 !important; }
  .about-caps .service__chips span:nth-child(n+3) { display: none; }
}
@media (max-width: 700px) {
  .about-caps .service__d { display: none !important; }
  .about-caps .service__chips { display: none !important; }
}


/* Toolkit — bigger text, no chips */
.about-caps .service {
  grid-template-columns: 32px auto auto 1fr !important;
  gap: clamp(14px, 1.6vw, 22px) !important;
  padding: 16px 22px !important;
}
.about-caps .service__ico {
  width: 32px !important; height: 32px !important; border-radius: 8px !important;
  font-size: 14px !important;
}
.about-caps .service__n {
  font-size: 11px !important; letter-spacing: 0.12em !important;
}
.about-caps .service__t {
  font-size: clamp(17px, 1.5vw, 20px) !important;
  letter-spacing: -0.012em !important;
}
.about-caps .service__d {
  font-size: 14px !important;
  line-height: 1.4 !important;
  grid-column: 4 / 5 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.about-caps .service__chips { display: none !important; }

@media (max-width: 1100px) {
  .about-caps .service__d { font-size: 13px !important; }
}
@media (max-width: 900px) {
  .about-caps .service { grid-template-columns: 32px auto 1fr !important; }
  .about-caps .service__n { display: none !important; }
  .about-caps .service__t { grid-column: 2 / 3 !important; }
  .about-caps .service__d { grid-column: 3 / 4 !important; }
}
@media (max-width: 700px) {
  .about-caps .service__d { display: none !important; }
  .about-caps .service { grid-template-columns: 32px 1fr !important; }
  .about-caps .service__t { grid-column: 2 / 3 !important; }
}


/* Toolkit — no icons, no numbers; big title + description side by side filling row */
.about-caps .service {
  grid-template-columns: 0.9fr 1.1fr !important;
  gap: clamp(20px, 3vw, 56px) !important;
  padding: 20px 28px !important;
  align-items: center !important;
}
.about-caps .service__head { display: none !important; }
.about-caps .service__t {
  grid-column: 1 / 2 !important;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
  margin: 0 !important;
  white-space: nowrap;
  color: var(--ink);
  transition: color .25s, transform .25s;
}
.about-caps .service:hover .service__t {
  color: var(--accent);
}
.about-caps .service__d {
  grid-column: 2 / 3 !important;
  font-size: clamp(14px, 1vw, 16px) !important;
  line-height: 1.45 !important;
  color: var(--ink-3);
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 64ch;
}
.about-caps .service__chips { display: none !important; }
.about-caps .service::after {
  content: "↗";
  position: absolute;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 14px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.about-caps .service { position: relative; }
.about-caps .service:hover::after {
  opacity: 1;
  transform: translate(4px, -50%);
  color: var(--accent);
}
.about-caps .service:hover {
  padding-left: 36px !important;
  padding-right: 56px !important;
}

@media (max-width: 800px) {
  .about-caps .service {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .about-caps .service__t { grid-column: 1 / 2 !important; white-space: normal; }
  .about-caps .service__d { grid-column: 1 / 2 !important; }
}


/* Toolkit — Spector/Cryptix-style 3x2 grid, centered, icon-led */
.about-caps .services {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0 !important;
}
@media (max-width: 900px) { .about-caps .services { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .about-caps .services { grid-template-columns: 1fr !important; } }

.about-caps .service {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 32px 28px !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  gap: 16px !important;
  transform: none !important;
  transition: background .25s !important;
  position: relative;
}
.about-caps .service:hover {
  padding-left: 28px !important;
  padding-right: 28px !important;
  background: rgba(255, 91, 30, 0.04) !important;
}
.about-caps .service:hover .service__t { color: var(--ink) !important; }
.about-caps .service::after { display: none !important; }

/* Hide right border on last column items */
.about-caps .service:nth-child(3n) { border-right: 0 !important; }
@media (max-width: 900px) {
  .about-caps .service:nth-child(3n) { border-right: 1px solid var(--line) !important; }
  .about-caps .service:nth-child(2n) { border-right: 0 !important; }
}
@media (max-width: 600px) {
  .about-caps .service { border-right: 0 !important; }
}
/* Hide bottom border on last row */
.about-caps .service:nth-last-child(-n+3) { border-bottom: 0 !important; }
@media (max-width: 900px) {
  .about-caps .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--line) !important; }
  .about-caps .service:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 600px) {
  .about-caps .service { border-bottom: 1px solid var(--line) !important; }
  .about-caps .service:last-child { border-bottom: 0 !important; }
}

.about-caps .service__head {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
}
.about-caps .service__ico {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255, 91, 30, 0.12);
  color: var(--accent);
  font-size: 20px !important;
  display: grid; place-items: center;
}
.about-caps .service__n {
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  color: var(--ink-3);
}

.about-caps .service__t {
  grid-column: unset !important;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 1.7vw, 24px) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  margin: 0 !important;
  color: var(--ink);
}
.about-caps .service__d {
  grid-column: unset !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--ink-3);
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 38ch;
}
.about-caps .service__chips { display: none !important; }


/* Toolkit — all 6 in one row */
.about-caps .services {
  grid-template-columns: repeat(6, 1fr) !important;
}
.about-caps .service {
  padding: 24px 18px !important;
  gap: 12px !important;
  border-bottom: 0 !important;
}
.about-caps .service:nth-child(n) { border-right: 1px solid var(--line) !important; }
.about-caps .service:last-child { border-right: 0 !important; }
.about-caps .service__ico {
  width: 36px !important; height: 36px !important;
  font-size: 16px !important;
}
.about-caps .service__t {
  font-size: 16px !important;
  line-height: 1.15 !important;
}
.about-caps .service__d {
  font-size: 12px !important;
  line-height: 1.4 !important;
  max-width: none !important;
}
.about-caps .service__n { font-size: 10px !important; }

@media (max-width: 1200px) {
  .about-caps .services { grid-template-columns: repeat(3, 1fr) !important; }
  .about-caps .service:nth-child(3n) { border-right: 0 !important; }
  .about-caps .service:nth-child(-n+3) { border-bottom: 1px solid var(--line) !important; }
}
@media (max-width: 700px) {
  .about-caps .services { grid-template-columns: 1fr 1fr !important; }
  .about-caps .service:nth-child(n) { border-right: 1px solid var(--line) !important; }
  .about-caps .service:nth-child(2n) { border-right: 0 !important; }
  .about-caps .service:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--line) !important; }
}


/* Toolkit — hide icons + numbers, bump text */
.about-caps .service__head { display: none !important; }
.about-caps .service {
  padding: 28px 22px !important;
  gap: 12px !important;
}
.about-caps .service__t {
  font-size: 18px !important;
  letter-spacing: -0.015em !important;
}
.about-caps .service__d {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}








/* ───────────────────────────────────────────────────────────
   ABOUT → WORK creative wave divider (no text)
─────────────────────────────────────────────────────────── */
.aw-rail {
  position: relative;
  display: block;
  height: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.aw-rail::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 100% at 50% 50%, rgba(255, 91, 30, 0.10), transparent 70%);
  pointer-events: none;
}

.aw-rail__wave {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.aw-rail__wave-path {
  stroke-dasharray: 4 6;
  animation: awDash 16s linear infinite;
}
@keyframes awDash { to { stroke-dashoffset: -200; } }

.aw-rail__orb {
  filter: drop-shadow(0 0 6px rgba(255, 91, 30, 0.9));
}

.aw-rail__star {
  transform-origin: 600px 40px;
  transform-box: fill-box;
  animation: awStarSpin 14s linear infinite;
}
@keyframes awStarSpin {
  from { transform: translate(600px, 40px) rotate(0deg); }
  to   { transform: translate(600px, 40px) rotate(360deg); }
}


/* ───────────────────────────────────────────────────────────
   WORK — restored (tabs, mosaic, stage, pager)
─────────────────────────────────────────────────────────── */
.work-section {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 80px);
  border-top: 0;
  position: relative;
}
.work-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 20% 35%, var(--accent-soft), transparent 75%);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
}
.work-section > .container { position: relative; z-index: 1; }

.work-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 40px);
}
@media (max-width: 900px) {
  .work-head { grid-template-columns: 1fr; align-items: start; }
}
.work-head__left { display: flex; flex-direction: column; gap: 18px; }
.work-head__chapter { margin-bottom: 0; }
.work-head__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.work-head__title .accent { color: var(--accent); }
.work-head__title .italic { font-style: italic; }
.work-head__right { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 900px) {
  .work-head__right { align-items: flex-end; }
}
.work-head__hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.work-head__hint .hint-arr {
  display: inline-block;
  color: var(--accent);
  animation: hintBob 1.6s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Tab bar */
.work-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  width: max-content; max-width: 100%;
  justify-content: center;
}
.work-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  cursor: none;
  transition: background .25s, color .25s;
  position: relative;
}
.work-tab:hover { color: var(--ink); }
.work-tab.active { background: var(--accent); color: #fff; }
.work-tab__num {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-3);
  opacity: 0.7;
}
.work-tab.active .work-tab__num { color: rgba(255,255,255,.7); opacity: 1; }
.work-tab__lbl { white-space: nowrap; }
.work-tab__pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: tabPulse 1.4s infinite;
}
@keyframes tabPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.work-tab__new {
  display: inline-flex; align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.14em;
  font-weight: 600;
  margin-left: 2px;
  box-shadow: 0 0 12px rgba(255, 91, 30, 0.45);
  animation: newPulse 1.8s ease-in-out infinite;
}
.work-tab.active .work-tab__new {
  background: #fff; color: var(--accent); box-shadow: none;
}
@keyframes newPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Stage — swap area */
.work-stage-viewport {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  contain: layout paint style;
}
.work-stage-slide {
  width: 100%;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: stageSlideFwd .9s cubic-bezier(.22, 1, .36, 1);
}
.work-stage-slide.slide-back {
  animation: stageSlideBack 1.1s cubic-bezier(.22, 1, .36, 1);
}
@keyframes stageSlideFwd {
  0%   { transform: translate3d(8%, 0, 0); opacity: 0; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes stageSlideBack {
  0%   { transform: translate3d(-6%, 0, 0); opacity: 0; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* Mosaic */
.mosaic { display: grid; gap: clamp(14px, 1.6vw, 22px); }

.mosaic--featured {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "h a b"
    "c c c";
}
.mosaic--featured .mtile--0 { grid-area: h; }
.mosaic--featured .mtile--1 { grid-area: a; }
.mosaic--featured .mtile--2 { grid-area: b; }
.mosaic--featured .mtile--upload { grid-area: c; }
.mosaic--featured .mtile--0 .mtile__media { aspect-ratio: 1/1; }
.mosaic--featured .mtile--1 .mtile__media,
.mosaic--featured .mtile--2 .mtile__media { aspect-ratio: 4/5; }
.mosaic--featured .mtile--upload .mtile__media { aspect-ratio: 16/5; }

.mosaic--ai {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "h a"
    "h b";
}
.mosaic--ai .mtile--0 { grid-area: h; }
.mosaic--ai .mtile--1 { grid-area: a; }
.mosaic--ai .mtile--upload { grid-area: b; }
.mosaic--ai .mtile--0 .mtile__media { aspect-ratio: 4/5; }
.mosaic--ai .mtile--1 .mtile__media { aspect-ratio: 4/5; }
.mosaic--ai .mtile--upload .mtile__media { aspect-ratio: 4/3; }

.mosaic--art {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas: "a b c";
}
.mosaic--art .mtile--0 { grid-area: a; }
.mosaic--art .mtile--1 { grid-area: b; }
.mosaic--art .mtile--upload { grid-area: c; }
.mosaic--art .mtile__media { aspect-ratio: 4/5; }

@media (max-width: 1000px) {
  .mosaic--featured,
  .mosaic--ai,
  .mosaic--art {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
  }
  .mosaic--featured .mtile--0,
  .mosaic--featured .mtile--1,
  .mosaic--featured .mtile--2,
  .mosaic--featured .mtile--upload,
  .mosaic--ai .mtile--0,
  .mosaic--ai .mtile--1,
  .mosaic--ai .mtile--upload,
  .mosaic--art .mtile--0,
  .mosaic--art .mtile--1,
  .mosaic--art .mtile--upload { grid-area: auto; }
  .mosaic--featured .mtile--0 .mtile__media,
  .mosaic--ai .mtile--0 .mtile__media { aspect-ratio: 16/10; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .mosaic--featured,
  .mosaic--ai,
  .mosaic--art { grid-template-columns: 1fr; }
}

/* Mosaic tile */
.mtile {
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  cursor: none;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s;
  position: relative;
}
.mtile:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--bg-2); }
.mtile__media {
  position: relative; overflow: hidden; background: var(--bg-3);
}
.mtile__media img, .mtile__media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.mtile:hover .mtile__media img,
.mtile:hover .mtile__media video { transform: scale(1.04); }
.mtile__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}
.mtile__tag {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 500;
}
.mtile__meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 16px 18px 18px;
}
.mtile__title {
  font-family: var(--display); font-weight: 600;
  font-size: 16px; letter-spacing: -0.012em; line-height: 1.15;
  color: var(--ink);
  transition: color .25s;
}
.mtile:hover .mtile__title { color: var(--accent); }
.mtile__sub { margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.mtile__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.mtile__cta .cat {
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-3); font-size: 10px; color: var(--ink-2);
  white-space: nowrap;
}
.mtile__cta .year { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-3); }

/* Upload tile */
.mtile--upload {
  border-style: dashed;
  background: transparent;
}
.mtile--upload:hover { background: rgba(255, 91, 30, 0.04); border-color: var(--accent); }
.mtile--upload .mtile__media {
  display: grid; place-items: center;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, var(--accent-soft), transparent 70%), var(--bg-1);
}
.mtile--upload .upload-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px;
}
.mtile--upload .upload-plus {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(255, 91, 30, .5);
  transition: transform .25s;
}
.mtile--upload:hover .upload-plus { transform: scale(1.08) rotate(90deg); }
.mtile--upload .upload-title {
  font-family: var(--display); font-weight: 600;
  font-size: 15px; letter-spacing: -0.012em;
  color: var(--ink);
}
.mtile--upload .upload-sub { font-size: 12px; color: var(--ink-3); }

/* Pager (dots only) */
.work-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 0;
}
.work-pager__dots { display: inline-flex; gap: 10px; align-items: center; }
.work-pager__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-4);
  transition: background .25s, width .3s, border-radius .3s;
  cursor: none;
}
.work-pager__dot:hover { background: var(--ink-3); }
.work-pager__dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent);
}

/* Sentinels */
.work-sentinel {
  display: block;
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.work-sentinel--top { margin-top: -1px; }
.work-sentinel--bot { margin-top: 0; }


/* Poster editor — intro card on top of controls */
.poster-editor__intro {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 4px;
}
.poster-editor__intro-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.poster-editor__intro-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
.poster-editor__intro-copy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
}
.poster-editor__intro-copy strong {
  color: var(--ink);
  font-weight: 600;
}


/* Seal badge — rotating name circle between work pager and contact */
.seal-wrap {
  display: grid; place-items: center;
  padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 1;
}
.seal {
  width: clamp(160px, 18vw, 220px);
  height: clamp(160px, 18vw, 220px);
  position: relative;
}
.seal__svg {
  width: 100%; height: 100%;
}
.seal__rotor {
  transform-origin: 100px 100px;
  transform-box: fill-box;
  animation: sealSpin 22s linear infinite;
}
@keyframes sealSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* Category footer — description + tags after each chapter's content */
.cat-foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .cat-foot { grid-template-columns: 1fr; gap: 18px; } }

.cat-foot__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.cat-foot__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.cat-foot__desc {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
}
.cat-foot__lbl {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.cat-foot__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-foot__tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
}
@media (min-width: 800px) {
  .cat-foot__col--tags { display: flex; flex-direction: column; align-items: flex-end; }
  .cat-foot__col--tags .cat-foot__tags { justify-content: flex-end; }
}


/* Breathing room under each category before the pager */
.cat-foot-space { height: clamp(20px, 3vw, 48px); }


/* Snap-flash: quick sweep across the section when auto-advancing */
.snap-flash {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px var(--accent);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: snapFlash 0.9s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes snapFlash {
  0%   { opacity: 0; transform: scaleX(0.2); transform-origin: left center; }
  30%  { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}


/* Hilton/NCB case body: title left, meta + story right */
.case-image-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 48px);
}
@media (max-width: 900px) { .case-image-head { grid-template-columns: 1fr; } }
.case-image-head__details {
  display: flex; flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}
.case-image-head__details .case__meta--compact {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.case-image-head__details .case__meta--compact .m {
  padding: 14px 16px;
}
.case-image-head__details .case__meta--compact .m p {
  font-size: 14px;
}
.case-image-head__details .case__body--compact {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.case-image-head__details .case__body--compact .col {
  padding: 18px 20px;
}
.case-image-head__details .case__body--compact .col p {
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .case-image-head__details .case__meta--compact,
  .case-image-head__details .case__body--compact { grid-template-columns: 1fr; }
}

/* Tall hero image: full natural height */
.case-modal__hero-media--tall {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
}


/* Force tall hero to its natural height, no aspect-ratio constraint */
.case-modal__hero-media.case-modal__hero-media--tall {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block;
}
.case-modal__hero-media.case-modal__hero-media--tall img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
}


/* Continuous image stack — no gap between adjacent tall hero images */
.case-image-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.case-image-stack .case-modal__hero-media {
  border-radius: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}
.case-image-stack .case-modal__hero-media img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
}


/* Hilton tile: landscape ratio matching the cover artwork */
.mosaic--featured .mtile--1 .mtile__media,
.mosaic--art .mtile__media {
  aspect-ratio: 4/3 !important;
}
.mosaic--featured .mtile--1 .mtile__media img,
.mosaic--art .mtile__media img {
  object-fit: contain !important;
  background: var(--bg-2);
}


/* Every Pregnancy featured hero tile: square 1:1 */
.mosaic--featured .mtile--0 .mtile__media {
  aspect-ratio: 1/1 !important;
}
.mosaic--ai .mtile--0 .mtile__media {
  aspect-ratio: 1/1 !important;
}


.mosaic--featured, .mosaic--art { align-items: start; }
.mosaic--featured .mtile--2 .mtile__media,
.mosaic--art .mtile--1 .mtile__media { aspect-ratio: 4/3 !important; }
.mosaic--featured .mtile--2 .mtile__media img,
.mosaic--art .mtile--1 .mtile__media img { object-fit: contain !important; background: var(--bg-2); }


/* Art mosaic — 4 columns (3 projects + upload) */
.mosaic--art {
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "a b c d";
}
.mosaic--art .mtile--0 { grid-area: a; }
.mosaic--art .mtile--1 { grid-area: b; }
.mosaic--art .mtile--2 { grid-area: c; }
.mosaic--art .mtile--upload { grid-area: d; }
.mosaic--art .mtile--2 .mtile__media { aspect-ratio: 4/3 !important; }
.mosaic--art .mtile--2 .mtile__media img { object-fit: contain !important; background: var(--bg-2); }

@media (max-width: 1200px) { .mosaic--art { grid-template-columns: repeat(2, 1fr); grid-template-areas: none; } }
@media (max-width: 600px) { .mosaic--art { grid-template-columns: 1fr; } }


/* Oakberry cover — fill the sides */
.mosaic--art .mtile--2 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.08);
  transform-origin: center;
}


/* Hilton + NCB covers in art mosaic — fill the tile */
.mosaic--art .mtile--0 .mtile__media img,
.mosaic--art .mtile--1 .mtile__media img,
.mosaic--featured .mtile--1 .mtile__media img,
.mosaic--featured .mtile--2 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.08);
  transform-origin: center;
}


/* Art mosaic — 5 columns to fit 4 projects + upload */
.mosaic--art {
  grid-template-columns: repeat(5, 1fr) !important;
  grid-template-areas: "a b c d e" !important;
}
.mosaic--art .mtile--0 { grid-area: a; }
.mosaic--art .mtile--1 { grid-area: b; }
.mosaic--art .mtile--2 { grid-area: c; }
.mosaic--art .mtile--3 { grid-area: d; }
.mosaic--art .mtile--upload { grid-area: e; }
.mosaic--art .mtile--3 .mtile__media { aspect-ratio: 4/3 !important; }
.mosaic--art .mtile--3 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.08);
  transform-origin: center;
}

@media (max-width: 1300px) { .mosaic--art { grid-template-columns: repeat(3, 1fr) !important; grid-template-areas: none !important; } }
@media (max-width: 800px)  { .mosaic--art { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 540px)  { .mosaic--art { grid-template-columns: 1fr !important; } }


/* Olympia (mtile--3 in art) — bigger scale */
.mosaic--art .mtile--3 .mtile__media img {
  transform: scale(1.18) !important;
}


/* Flipbook viewer — brand guidelines case study */
.flipbook {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
}
.flipbook__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.flipbook__page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: flipIn .55s cubic-bezier(.22, 1, .36, 1);
}
.flipbook__page.back { animation: flipBack .55s cubic-bezier(.22, 1, .36, 1); }
.flipbook__page img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@keyframes flipIn {
  0% { transform: translateX(8%) rotateY(-12deg); opacity: 0; transform-origin: left center; }
  100% { transform: translateX(0) rotateY(0); opacity: 1; }
}
@keyframes flipBack {
  0% { transform: translateX(-8%) rotateY(12deg); opacity: 0; transform-origin: right center; }
  100% { transform: translateX(0) rotateY(0); opacity: 1; }
}

.flipbook__nav {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.flipbook__nav:hover:not(:disabled) {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: scale(1.05);
}
.flipbook__nav:disabled { opacity: 0.3; cursor: default; }

.flipbook__bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  padding: 0 8px;
}
.flipbook__count {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.flipbook__count .cur { color: var(--accent); }
.flipbook__count .sep { margin: 0 6px; }

.flipbook__dots {
  display: inline-flex; gap: 4px; flex-wrap: wrap; max-width: 70%;
}
.flipbook__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4); border: 0; padding: 0;
  cursor: pointer;
  transition: background .2s, width .25s, border-radius .25s;
}
.flipbook__dot:hover { background: var(--ink-3); }
.flipbook__dot.active {
  background: var(--accent); width: 20px; border-radius: 999px;
  box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 700px) {
  .flipbook { grid-template-columns: 36px 1fr 36px; gap: 8px; }
  .flipbook__nav { width: 36px; height: 36px; font-size: 16px; }
}


/* Pureline cover (mtile--4 in art mosaic) — fill the tile */
.mosaic--art .mtile--4 .mtile__media {
  aspect-ratio: 4/3 !important;
}
.mosaic--art .mtile--4 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.4);
  transform-origin: center;
}


/* Art mosaic — 6 columns for 6 projects + upload, with overrides for Beeline (mtile--5) */
.mosaic--art {
  grid-template-columns: repeat(6, 1fr) !important;
  grid-template-areas: "a b c d e f" !important;
}
.mosaic--art .mtile--0 { grid-area: a; }
.mosaic--art .mtile--1 { grid-area: b; }
.mosaic--art .mtile--2 { grid-area: c; }
.mosaic--art .mtile--3 { grid-area: d; }
.mosaic--art .mtile--4 { grid-area: e; }
.mosaic--art .mtile--5 { grid-area: f; }
.mosaic--art .mtile--upload { display: none; }

.mosaic--art .mtile--5 .mtile__media { aspect-ratio: 4/3 !important; }
.mosaic--art .mtile--5 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.2);
  transform-origin: center;
}

@media (max-width: 1400px) { .mosaic--art { grid-template-columns: repeat(3, 1fr) !important; grid-template-areas: none !important; } }
@media (max-width: 800px)  { .mosaic--art { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 540px)  { .mosaic--art { grid-template-columns: 1fr !important; } }


/* Art mosaic — 3 per row (2 rows × 3) */
.mosaic--art {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-areas: none !important;
}
.mosaic--art .mtile--0,
.mosaic--art .mtile--1,
.mosaic--art .mtile--2,
.mosaic--art .mtile--3,
.mosaic--art .mtile--4,
.mosaic--art .mtile--5 {
  grid-area: auto !important;
}
@media (max-width: 800px)  { .mosaic--art { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 540px)  { .mosaic--art { grid-template-columns: 1fr !important; } }


/* ───────────────────────────────────────────────────────────
   INSTAGRAM-STYLE CASE STUDY (Juice Time)
─────────────────────────────────────────────────────────── */
.ig-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
}
@media (max-width: 700px) { .ig-profile { grid-template-columns: 1fr; text-align: center; gap: 14px; } }
.ig-profile__avatar {
  width: clamp(80px, 9vw, 120px);
  height: clamp(80px, 9vw, 120px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3030, #cc1010);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.02em;
  border: 4px solid var(--bg-1);
  box-shadow: 0 0 0 3px var(--accent);
  margin: 0 auto;
}
.ig-profile__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 700px) { .ig-profile__top { justify-content: center; } }
.ig-profile__handle { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.ig-profile__verify {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.ig-profile__follow {
  padding: 6px 18px; border-radius: 8px; border: 0;
  background: var(--accent); color: #fff;
  font-weight: 500; font-size: 13px; cursor: none;
}
.ig-profile__msg {
  padding: 6px 18px; border-radius: 8px;
  background: var(--bg-3); color: var(--ink); border: 0;
  font-weight: 500; font-size: 13px; cursor: none;
}
.ig-profile__stats {
  display: flex; gap: 24px; margin-bottom: 14px;
  font-size: 14px; color: var(--ink-2);
}
@media (max-width: 700px) { .ig-profile__stats { justify-content: center; flex-wrap: wrap; gap: 14px; } }
.ig-profile__stats strong { color: var(--ink); font-weight: 600; }
.ig-profile__bio { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ig-profile__bio strong { color: var(--ink); font-weight: 600; }

.ig-tabs {
  display: flex; justify-content: center; gap: 4px;
  border-top: 1px solid var(--line);
  margin-bottom: 4px;
}
.ig-tab {
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid transparent;
  margin-top: -1px;
  cursor: none;
}
.ig-tab.active { color: var(--ink); border-top-color: var(--ink); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 4px;
}
@media (max-width: 500px) { .ig-grid { grid-template-columns: 1fr 1fr; } }

.ig-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 0; padding: 0;
  overflow: hidden;
  cursor: none;
}
.ig-tile img, .ig-tile video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.ig-tile:hover img, .ig-tile:hover video { transform: scale(1.04); }
.ig-tile__badge {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px;
  display: grid; place-items: center;
}
.ig-tile__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  opacity: 0; transition: opacity .25s;
}
.ig-tile:hover .ig-tile__overlay { opacity: 1; }

/* Lightbox */
.ig-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(20px);
  display: grid; place-items: center;
  padding: clamp(12px, 2vw, 24px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ig-lightbox__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  width: min(1100px, 96vw);
  height: min(720px, 88vh);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  animation: lightboxIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes lightboxIn { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 800px) {
  .ig-lightbox__card { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: min(96vh, 720px); }
}
.ig-lightbox__media { background: #000; display: grid; place-items: center; overflow: hidden; }
.ig-lightbox__media img, .ig-lightbox__media video { width: 100%; height: 100%; object-fit: contain; }
.ig-lightbox__side { display: flex; flex-direction: column; background: var(--bg-1); }
.ig-lightbox__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ig-lightbox__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ff3030, #cc1010);
  display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px;
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 0 2px var(--accent);
}
.ig-lightbox__handle { font-weight: 600; font-size: 14px; flex: 1; }
.ig-lightbox__close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3); border: 0; color: var(--ink);
  cursor: none; font-size: 14px;
  transition: background .2s, color .2s;
}
.ig-lightbox__close:hover { background: var(--accent); color: #fff; }
.ig-lightbox__body { padding: 16px; flex: 1; overflow-y: auto; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ig-lightbox__body p { margin: 0; }
.ig-lightbox__body strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.ig-lightbox__actions {
  display: flex; gap: 16px; padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}
.ig-lightbox__actions span { cursor: none; transition: color .2s; color: var(--ink); }
.ig-lightbox__actions span:hover { color: var(--accent); }
.ig-lightbox__likes {
  padding: 0 16px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.ig-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  border: 0; color: #fff; cursor: none;
  font-size: 24px; line-height: 1;
  z-index: 2;
}
.ig-lightbox__nav:hover { background: var(--accent); }
.ig-lightbox__nav.prev { left: 16px; }
.ig-lightbox__nav.next { right: calc(360px + 16px); }
@media (max-width: 800px) { .ig-lightbox__nav.next { right: 16px; } }


/* ───────────────────────────────────────────────────────────
   INSTAGRAM PHONE CAROUSEL — Juice Time (v2)
─────────────────────────────────────────────────────────── */
.ig-stage {
  position: relative;
  width: 100%;
  min-height: 720px;
  display: grid;
  place-items: center;
  margin: 40px 0 24px;
  user-select: none;
  perspective: 1400px;
}
@media (max-width: 700px) { .ig-stage { min-height: 600px; } }

/* Fanned side cards */
.ig-fan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  aspect-ratio: 1;
  margin-top: -140px;
  margin-left: -140px;
  border: 0; padding: 0;
  background: var(--bg-1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s, filter .4s;
  filter: brightness(0.7);
}
.ig-fan:hover { filter: brightness(0.95); }
.ig-fan img, .ig-fan video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
@media (max-width: 900px) { .ig-fan { display: none; } }

/* Center phone */
.ig-phone {
  position: relative;
  z-index: 20;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.ig-phone__frame {
  width: 360px;
  height: 740px;
  background: #0a0a0a;
  border-radius: 52px;
  padding: 12px;
  box-shadow: inset 0 0 0 1.5px #2a2a2a, 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
}
@media (max-width: 700px) {
  .ig-phone__frame { width: 300px; height: 620px; border-radius: 42px; padding: 10px; }
}
.ig-phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 32px;
  background: #000;
  border-radius: 22px;
  z-index: 5;
}
.ig-phone__screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 42px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
@media (max-width: 700px) { .ig-phone__screen { border-radius: 34px; } }

.ig-phone__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 6px;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
}
.ig-phone__status-icons { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.ig-phone__status-icons .dot { width: 4px; height: 4px; background: var(--ink); border-radius: 50%; display: inline-block; }
.ig-phone__home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 4px; background: var(--ink); border-radius: 4px; opacity: .9;
}

/* IG post header inside phone */
.ig-post-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.ig-post-head__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #ff3030, #cc1010);
  display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
}
.ig-post-head__name { flex: 1; line-height: 1.2; min-width: 0; }
.ig-post-head__handle {
  font-weight: 600; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; gap: 5px;
}
.ig-post-head__handle .verify {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-grid; place-items: center;
  font-size: 8px; font-weight: 700;
}
.ig-post-head__loc { font-size: 11px; color: var(--ink-3); }
.ig-post-head__more { color: var(--ink); font-size: 18px; line-height: 1; padding: 0 4px; }

/* Post media */
.ig-post-media {
  position: relative;
  flex: 1;
  background: #000;
  overflow: hidden;
  animation: postIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes postIn {
  from { opacity: 0; transform: translateX(8%); }
  to { opacity: 1; transform: none; }
}
.ig-post-media img, .ig-post-media video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ig-post-media__badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.ig-post-media__count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Action row */
.ig-post-actions {
  display: flex; gap: 16px; align-items: center;
  padding: 10px 14px 6px;
  font-size: 22px;
  color: var(--ink);
}
.ig-post-actions .heart { color: var(--accent); }
.ig-post-actions .bookmark { margin-left: auto; }
.ig-post-likes { padding: 0 14px; font-size: 13px; }
.ig-post-likes strong { font-weight: 600; }
.ig-post-caption {
  padding: 6px 14px;
  font-size: 13px; line-height: 1.4;
  color: var(--ink-2);
}
.ig-post-caption strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.ig-post-time {
  padding: 4px 14px 18px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Bottom controls */
.ig-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 18px 0 8px;
}
.ig-ctrl {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-1); color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 18px; line-height: 1;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.ig-ctrl:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }

.ig-dots { display: inline-flex; gap: 5px; flex-wrap: wrap; max-width: 60%; justify-content: center; }
.ig-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-4); border: 0; padding: 0;
  cursor: pointer;
  transition: background .25s, width .25s;
}
.ig-dot:hover { background: var(--ink-3); }
.ig-dot.active { background: var(--accent); width: 22px; border-radius: 999px; box-shadow: 0 0 8px var(--accent); }


/* Phone & post media v2 — natural aspect ratio */
.ig-phone__frame {
  width: 360px;
  height: auto !important;
  min-height: 0 !important;
}
.ig-phone__screen {
  height: auto !important;
}
.ig-post-media {
  flex: 0 0 auto !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
}
.ig-post-media img, .ig-post-media video {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
}

/* Fan card sizing — uniform square, fixed crop */
.ig-fan {
  width: 320px !important;
  margin-top: -160px !important;
  margin-left: -160px !important;
}

/* Hide loc text (no longer rendered, but defensive) */
.ig-post-head__loc { display: none !important; }

/* IG action icons */
.ig-act {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.ig-act:hover { transform: scale(1.06); }
.ig-act.bookmark { margin-left: auto; }


/* Phone fixed normal size — v3 */
.ig-phone__frame {
  width: 340px !important;
  height: 700px !important;
  min-height: 700px !important;
}
.ig-phone__screen {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Post media area — fills available height, media fits inside by aspect ratio */
.ig-post-media {
  flex: 1 1 auto !important;
  width: 100%;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: auto !important;
}
.ig-post-media__inner {
  position: relative;
  width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: postIn .45s cubic-bezier(.2,.8,.2,1);
}
.ig-post-media__inner > img,
.ig-post-media__inner > video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.ig-post-media__badge,
.ig-post-media__count {
  position: absolute;
  z-index: 2;
}
.ig-post-media__badge { top: 12px; right: 12px; }
.ig-post-media__count { bottom: 12px; right: 12px; }

/* Side cards — straight, no rotation */
.ig-fan {
  width: 320px !important;
  aspect-ratio: 1 !important;
  margin-top: -160px !important;
  margin-left: -160px !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  filter: brightness(.85);
  overflow: hidden;
}
.ig-fan img, .ig-fan video {
  width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 700px) {
  .ig-phone__frame { width: 290px !important; height: 600px !important; min-height: 600px !important; }
}


/* IG stage v4 — flex row layout for symmetric fan */
.ig-stage {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 760px !important;
  perspective: none !important;
  position: relative;
  overflow: hidden;
}
.ig-phone { flex: 0 0 auto; z-index: 30; }

/* Fan cards — straight squares, flex siblings */
.ig-fan {
  flex: 0 0 auto !important;
  position: static !important;
  margin: 0 !important;
  border: 0;
  padding: 0;
  background: var(--bg-1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  filter: brightness(.8);
  transition: filter .25s, transform .25s;
  cursor: pointer;
  transform: none !important;
}
.ig-fan:hover { filter: brightness(1); transform: translateY(-4px) !important; }
.ig-fan img, .ig-fan video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}

/* Near = right next to phone, large. Far = behind near, smaller */
.ig-fan--near {
  width: 240px;
  aspect-ratio: 1;
  opacity: 0.92;
  z-index: 20;
}
.ig-fan--far {
  width: 200px;
  aspect-ratio: 1;
  opacity: 0.55;
  z-index: 10;
}

/* Tuck them visually with negative margins so they overlap the phone slightly */
.ig-fan--left.ig-fan--near  { margin-right: -50px !important; }
.ig-fan--left.ig-fan--far   { margin-right: -110px !important; }
.ig-fan--right.ig-fan--near { margin-left:  -50px !important; }
.ig-fan--right.ig-fan--far  { margin-left:  -110px !important; }

@media (max-width: 1100px) {
  .ig-fan--far { display: none; }
}
@media (max-width: 800px) {
  .ig-fan { display: none !important; }
  .ig-stage { min-height: 640px !important; }
}


/* Fan cards — lower opacity + edge fade */
.ig-fan--near { opacity: 0.55 !important; filter: brightness(.7) !important; }
.ig-fan--far  { opacity: 0.3 !important; filter: brightness(.6) !important; }

/* Linear fade from inner-edge → outer-edge so the side closest to the phone is visible
   and the outer edge dissolves into the background */
.ig-fan--left {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.4) 35%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.4) 35%, #000 100%);
}
.ig-fan--right {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.4) 35%, #000 100%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.4) 35%, #000 100%);
}

/* Drop the hard shadow since the cards are now soft/faded */
.ig-fan { box-shadow: none !important; }

/* Reveal on hover so users can still preview clearly */
.ig-fan:hover { opacity: 0.95 !important; filter: brightness(1) !important; }


/* Juice Time tile (mtile--6 in art mosaic) — fill the tile */
.mosaic--art .mtile--6 .mtile__media { aspect-ratio: 4/3 !important; }
.mosaic--art .mtile--6 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.18);
  transform-origin: center;
}


/* Status bar removed (component no longer rendered); reserve a small top padding instead */
.ig-phone__status { display: none !important; }
.ig-phone__screen { padding-top: 32px; }

/* Music toggle button — floats in the top-right of the phone screen */
.ig-music {
  position: absolute;
  top: 38px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.ig-music:hover { background: var(--accent); transform: scale(1.06); }
.ig-music__bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 12px;
}
.ig-music__bars i {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  display: inline-block;
}
.ig-music.playing .ig-music__bars i {
  animation: igBars 1s ease-in-out infinite;
}
.ig-music.playing .ig-music__bars i:nth-child(1) { animation-delay: 0s; }
.ig-music.playing .ig-music__bars i:nth-child(2) { animation-delay: 0.2s; }
.ig-music.playing .ig-music__bars i:nth-child(3) { animation-delay: 0.4s; }
@keyframes igBars {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}


/* Push the caption clear of the home indicator */
.ig-post-caption { padding-bottom: 28px !important; }
.ig-phone__home { bottom: 6px !important; }


/* Kayuf cover (mtile--7 in art mosaic) — fill the tile */
.mosaic--art .mtile--7 .mtile__media { aspect-ratio: 4/3 !important; }
.mosaic--art .mtile--7 .mtile__media img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.18);
  transform-origin: center;
}


/* Web section — list-only (big featured mock removed) */
.web--listonly { grid-template-columns: 1fr !important; }
.web--listonly .web__list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--gut) !important;
}
@media (max-width: 800px) { .web--listonly .web__list { grid-template-columns: 1fr !important; } }


/* Web — featured Spaice landing case card */
.web-feature {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  width: 100%; text-align: left;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  cursor: none; padding: 0;
  margin-bottom: var(--gut);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.web-feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
@media (max-width: 800px) { .web-feature { grid-template-columns: 1fr; } }
.web-feature__shot {
  max-height: 360px; overflow: hidden; background: #f7c948;
  border-right: 1px solid var(--line);
}
.web-feature__shot img { width: 100%; height: auto; display: block; }
.web-feature__meta {
  padding: clamp(20px, 2.5vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.web-feature__bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.web-feature__bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.web-feature__url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.web-feature__title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; color: var(--ink); }
.web-feature__note { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 40ch; }
.web-feature__foot { display: flex; justify-content: space-between; align-items: center; }
.web-feature__foot .live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--accent); }
.web-feature__foot .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.web-feature__foot .open { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; transition: background .25s; }
.web-feature:hover .web-feature__foot .open { background: var(--accent-2); }


/* Featured mosaic — 4 tiles in one row, no upload slot */
.mosaic--featured {
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: auto !important;
  grid-template-areas: "h a b c" !important;
  align-items: start;
}
.mosaic--featured .mtile--0 { grid-area: h; }
.mosaic--featured .mtile--1 { grid-area: a; }
.mosaic--featured .mtile--2 { grid-area: b; }
.mosaic--featured .mtile--3 { grid-area: c; }
.mosaic--featured .mtile--upload { display: none !important; }
.mosaic--featured .mtile__media { aspect-ratio: 4/5 !important; }
.mosaic--featured .mtile--0 .mtile__media { aspect-ratio: 4/5 !important; }
.mosaic--featured .mtile--3 .mtile__media img {
  object-fit: cover !important; object-position: center !important;
  transform: scale(1.18); transform-origin: center;
}
@media (max-width: 1000px) {
  .mosaic--featured { grid-template-columns: 1fr 1fr !important; grid-template-areas: none !important; }
  .mosaic--featured .mtile--0, .mosaic--featured .mtile--1,
  .mosaic--featured .mtile--2, .mosaic--featured .mtile--3 { grid-area: auto !important; }
}
@media (max-width: 600px) { .mosaic--featured { grid-template-columns: 1fr !important; } }


/* Featured: 2 per row, 2 rows; square images, meta below */
.mosaic--featured { grid-template-columns: repeat(2, 1fr) !important; grid-template-areas: none !important; align-items: start; max-width: none !important; margin-inline: 0 !important; gap: clamp(14px,1.6vw,22px) !important; }
.mosaic--featured .mtile--0, .mosaic--featured .mtile--1,
.mosaic--featured .mtile--2, .mosaic--featured .mtile--3 { grid-area: auto !important; }
.mosaic--featured .mtile { height: auto; }
.mosaic--featured .mtile__media,
.mosaic--featured .mtile--0 .mtile__media,
.mosaic--featured .mtile--1 .mtile__media,
.mosaic--featured .mtile--2 .mtile__media,
.mosaic--featured .mtile--3 .mtile__media { aspect-ratio: 1/1 !important; }
.mosaic--featured .mtile--1 .mtile__media img,
.mosaic--featured .mtile--2 .mtile__media img,
.mosaic--featured .mtile--3 .mtile__media img { object-fit: cover !important; object-position: center !important; transform: none !important; }
@media (max-width: 1000px) {
  .mosaic--featured { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .mosaic--featured { grid-template-columns: 1fr !important; }
}


/* EP carousel — interactive breath rhythm */
.epc { margin-top: 0; }

/* carousel slide highlight/dim states driven by rhythm hover */
.carousel--focus .carousel__slide { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), filter .45s ease; }
.carousel__slide.is-dim { opacity: .32; filter: saturate(.5); }
.carousel__slide.is-lit { transform: translateY(-8px) scale(1.015); z-index: 2; }
.carousel__slide.is-lit::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -12px rgba(0,0,0,.6);
  pointer-events: none;
}

.epc__rhythm { margin-top: 46px; }

/* ABCBA concept — contained panel */
.epc__concept {
  margin-top: 30px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 48px) clamp(40px, 4vw, 56px);
}
.epc__concept-top {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px);
}
.epc__eyebrow {
  flex: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); padding-top: 4px;
}
.epc__lead { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.6; max-width: 720px; margin: 0; }
.epc__lead em { color: #fff; font-style: italic; }
.epc__hint { color: var(--accent); display: inline; }

/* breath viz */
.epc__viz { position: relative; width: 100%; max-width: 980px; aspect-ratio: 1000 / 230; }
.epc__svg { position: absolute; inset: 0; width: 100%; height: 78%; overflow: visible; }
.epc__track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.epc__pulse {
  fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; opacity: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1), opacity .4s ease;
}
.epc__pulse.is-on { stroke-dashoffset: 0; opacity: .85; }
.epc__tie { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; vector-effect: non-scaling-stroke; }

.epc__nodes { position: absolute; inset: 0; height: 78%; }
.epc__node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; padding: 6px;
  font: inherit; color: inherit;
}
.epc__node .epc__key {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; font-weight: 600; color: #fff; background: #232323;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s ease, box-shadow .3s ease;
}
.epc__node.is-center .epc__key { background: #2a2a2a; }
.epc__node:hover .epc__key,
.epc__node.is-on .epc__key {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(255,90,20,.16), 0 8px 22px -6px rgba(255,90,20,.5);
}
.epc__meta {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; transition: color .3s ease;
}
.epc__meta b { font-size: 12px; color: #fff; font-weight: 600; }
.epc__node:hover .epc__meta, .epc__node.is-on .epc__meta { color: #fff; }
.epc__node:hover .epc__meta b, .epc__node.is-on .epc__meta b { color: var(--accent); }

@media (max-width: 640px) {
  .epc__viz { aspect-ratio: 1000 / 320; max-width: 100%; }
  .epc__node .epc__key { width: 34px; height: 34px; font-size: 14px; }
  .epc__meta { font-size: 9px; }
  .epc__meta b { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .epc__pulse { transition: opacity .3s ease; }
  .carousel__slide.is-lit { transform: none; }
}


/* carousel slide as zoomable button + zoom hint */
.carousel__slide { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--bg-3); cursor: zoom-in; font: inherit; text-align: left; }
.carousel__zoom {
  position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: #fff;
  opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .3s ease;
  pointer-events: none; z-index: 3;
}
.carousel__zoom svg { width: 16px; height: 16px; }
.carousel__slide:hover .carousel__zoom { opacity: 1; transform: scale(1); }
.epc__viz { margin-top: 0; }

/* lightbox */
.epc__lb {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,8,.92); backdrop-filter: blur(14px);
  padding: clamp(16px, 4vw, 48px);
  animation: epcFade .25s ease;
}
@keyframes epcFade { from { opacity: 0; } to { opacity: 1; } }
.epc__lb-fig { margin: 0; max-width: min(82vh, 820px); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: epcPop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes epcPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.epc__lb-fig img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.epc__lb-fig figcaption {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.epc__lb-beat {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0;
}
.epc__lb-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; font-size: 18px; cursor: pointer; transition: background .2s ease;
}
.epc__lb-close:hover { background: rgba(255,255,255,.16); }
.epc__lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.epc__lb-nav:hover { background: rgba(255,255,255,.16); }
.epc__lb-prev { left: clamp(12px, 3vw, 40px); }
.epc__lb-next { right: clamp(12px, 3vw, 40px); }
@media (max-width: 640px) {
  .epc__lb-nav { width: 42px; height: 42px; font-size: 22px; }
  .epc__lb-close { top: 14px; right: 14px; width: 38px; height: 38px; }
}




/* EP hero film — filled, with custom controls */
.ep-hero-vid {
  position: relative; width: 100%; max-width: 920px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.ep-hero-vid video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.ep-hero-vid > .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  font-size: 12px; color: #fff;
}
.ep-hero-vid__ctrl {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  display: flex; gap: 8px;
}
.ep-hero-vid__ctrl button {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.5); backdrop-filter: blur(10px);
  color: #fff; transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.ep-hero-vid__ctrl button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.ep-hero-vid__ctrl button svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .ep-hero-vid__ctrl button { width: 38px; height: 38px; }
  .ep-hero-vid__ctrl button svg { width: 18px; height: 18px; }
}


/* Thrive case — studio detail layout */
.thrive-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.thrive-detail .case-modal__hero-media { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 700px) { .thrive-detail { grid-template-columns: 1fr; } }
.thrive-cta { display: flex; justify-content: center; margin-top: 36px; }


/* AI Direction: two equal square projects, no upload slot */
.mosaic--ai { grid-template-columns: 1fr 1fr !important; grid-template-areas: none !important; align-items: start; }
.mosaic--ai .mtile--0, .mosaic--ai .mtile--1 { grid-area: auto !important; }
.mosaic--ai .mtile--upload { display: none !important; }
.mosaic--ai .mtile--0 .mtile__media,
.mosaic--ai .mtile--1 .mtile__media { aspect-ratio: 1/1 !important; }
@media (max-width: 600px) { .mosaic--ai { grid-template-columns: 1fr !important; } }

/* Catchy note pill under a category mosaic */
.cat-note {
  margin: 30px auto 0; width: fit-content; max-width: 90%;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2, #141414);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px); line-height: 1.2; letter-spacing: -.005em;
  color: var(--ink-2, #d6d6d6);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.6);
}
.cat-note::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent), 0 0 4px var(--accent);
  animation: catNoteBlink 2.4s ease-in-out infinite;
}
@keyframes catNoteBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .cat-note::before { animation: none; } }
