/* ============================================================
   DEX — D EXUBERANCE · v2 "Kinetic Dark Cinema"
   Charcoal / signal red / bone. Motion-first, image-forward.
   ============================================================ */

:root {
  --bg: #101014;
  --bg-2: #16161b;
  --surface: #1c1c22;
  --ink: #f2ede4;
  --ink-dim: #a39f9a;
  --ink-faint: #66635f;
  --red: #e11f3f;
  --red-deep: #a3142c;
  --line: rgba(242, 237, 228, 0.08);
  --line-strong: rgba(242, 237, 228, 0.2);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1360px;
  --pad: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(0.65, 0.05, 0.15, 1);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

::selection { background: var(--red); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- custom cursor (fine pointers only) ---------- */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--red); }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(225, 31, 63, 0.5);
    transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  }
  body.cursor-hover .cursor-ring {
    width: 58px; height: 58px;
    background: rgba(225, 31, 63, 0.12);
    border-color: rgba(225, 31, 63, 0.9);
  }
  body.cursor-drag .cursor-ring {
    width: 72px; height: 72px;
    background: rgba(225, 31, 63, 0.95);
    border-color: transparent;
  }
  .cursor-ring::after {
    content: "DRAG";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px; letter-spacing: 0.2em;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.2s;
  }
  body.cursor-drag .cursor-ring::after { opacity: 1; }
}

/* ---------- typography ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--red); flex: none; }
.kicker.center { justify-content: center; }

h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }

.display {
  font-size: clamp(52px, 9.5vw, 152px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.025em;
}
@media (max-width: 560px) {
  .display { font-size: clamp(30px, 9.6vw, 52px); }
  .h-section { font-size: clamp(26px, 8vw, 34px); }
  .cta-title { font-size: clamp(40px, 12.5vw, 56px); }
  .cap-title { font-size: clamp(34px, 10.5vw, 44px); }
}
.h-section { font-size: clamp(34px, 5.2vw, 72px); text-transform: uppercase; font-weight: 900; line-height: 0.98; }
.accent { color: var(--red); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 237, 228, 0.55);
}
.outline-red { color: transparent; -webkit-text-stroke: 1.5px var(--red); }

.lede {
  font-size: clamp(17px, 1.55vw, 21px);
  color: var(--ink-dim);
  max-width: 620px;
  margin-top: 26px;
  line-height: 1.75;
}
.mono-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* split-line kinetic headline */
.k-line { display: block; overflow: hidden; }
.k-line > span {
  display: block;
  transform: translateY(115%) rotate(2.5deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease);
}
.in .k-line > span, .k-line.in > span { transform: none; }
.k-line:nth-child(2) > span { transition-delay: 0.09s; }
.k-line:nth-child(3) > span { transition-delay: 0.18s; }
.k-line:nth-child(4) > span { transition-delay: 0.27s; }

/* ---------- nav ---------- */

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.4s, border-color 0.4s, transform 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(16, 16, 20, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 20px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); transition: color 0.2s; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); }
.nav-cta { background: var(--red); color: var(--ink) !important; padding: 13px 24px !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--red-deep); }
.nav-cta.active::after { display: none; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 102; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: 0.3s; }
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger span:nth-child(3) { top: 28px; }
body.menu-open .nav-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 0; left: 0; right: 0; height: 100svh;
    background: rgba(16,16,20,0.98);
    flex-direction: column; justify-content: center; gap: 34px;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
    z-index: 101;
  }
  body.menu-open .nav-links {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.5s var(--ease);
  }
  .nav-links a { font-size: 20px; letter-spacing: 0.26em; }
}

/* ---------- HERO (home) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease;
  filter: saturate(0.85) contrast(1.05);
}
.hero-bg img.on { opacity: 0.42; animation: heroZoom 9s linear forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,16,20,0.65) 0%, rgba(16,16,20,0.25) 40%, rgba(16,16,20,0.92) 88%),
    radial-gradient(ellipse 90% 60% at 15% 100%, rgba(225,31,63,0.14), transparent 60%);
}
.hero-content { width: 100%; }
.hero-title { margin-top: 18px; }
.hero-meta {
  display: flex; flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(30px, 5vh, 56px);
}
.hero-meta .lede { margin-top: 0; }
.hero-tags { display: flex; flex-direction: column; gap: 10px; text-align: right; }
@media (max-width: 700px) { .hero-tags { text-align: left; } }
.hero-tags span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); }
.hero-tags span b { color: var(--red); font-weight: 400; }
.hero-scroll {
  position: absolute; right: var(--pad); bottom: 40px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll::after { content: ""; width: 1px; height: 52px; background: linear-gradient(var(--red), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 50% { transform: scaleY(0.55); opacity: 0.4; } }
@media (max-width: 880px) { .hero-scroll { display: none; } }

/* page heroes (inner pages) */
.page-hero { position: relative; padding-top: clamp(150px, 22vh, 240px); padding-bottom: clamp(40px, 7vh, 80px); overflow: hidden; }
.page-hero .ghost {
  position: absolute; top: 6%; right: -3vw;
  font-size: clamp(200px, 34vw, 480px);
  font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.06);
  pointer-events: none; user-select: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 20px 36px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover { border-color: var(--red); }
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn .arr { transition: transform 0.3s; }
.btn:hover .arr { transform: translateX(6px); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red::before { background: var(--ink); }
.btn-red:hover { color: var(--bg); }

/* ---------- sections ---------- */

.section { padding: clamp(80px, 13vh, 160px) 0; position: relative; }
.section-dark { background: var(--bg-2); }
.section-line { border-top: 1px solid var(--line); }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.sec-head .lede { margin-top: 18px; }
.sec-head .btn { flex: none; }

/* ---------- kinetic marquee ---------- */

.marquee { overflow: hidden; padding: clamp(30px, 5vh, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-row { display: flex; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: baseline; gap: 5vw; padding-right: 5vw; animation: marq 38s linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; }
.marquee-row + .marquee-row { margin-top: 10px; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.28);
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--red); -webkit-text-stroke-color: var(--red); }
.marquee-track i { font-style: normal; color: var(--red); font-size: 0.4em; vertical-align: 0.6em; }

/* ---------- image reveal + parallax ---------- */

.rv {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease);
}
.rv img { transform: scale(1.22); transition: transform 1.4s var(--ease); width: 100%; height: 100%; object-fit: cover; }
.rv.in { clip-path: inset(0 0 0% 0); }
.rv.in img { transform: scale(1); }
.rv.side { clip-path: inset(0 100% 0 0); }
.rv.side.in { clip-path: inset(0 0% 0 0); }

[data-plx] { will-change: transform; }

/* ---------- horizontal case reel (home) ---------- */

.reel-wrap { position: relative; }
.reel {
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  overflow-x: auto;
  padding: 56px var(--pad) 24px;
  scrollbar-width: none;
  cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.dragging { cursor: grabbing; scroll-behavior: auto; }
.reel-card {
  flex: 0 0 auto;
  width: min(78vw, 620px);
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
}
.reel-card .rc-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.reel-card .rc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform 0.9s var(--ease), filter 0.5s; }
.reel-card:hover .rc-img img { transform: scale(1.06); filter: saturate(1.1); }
.rc-index {
  position: absolute; top: -34px; left: 4px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--red);
}
.rc-tag { position: absolute; top: 18px; left: 18px; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; background: rgba(16,16,20,0.85); backdrop-filter: blur(6px); padding: 9px 14px; }
.rc-tag::before { content: "■ "; color: var(--red); font-size: 7px; vertical-align: 2px; }
.rc-body { padding: 26px 28px 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rc-body h3 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.15; }
.rc-body .rc-client { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.rc-stat { text-align: right; flex: none; }
.rc-stat .n { font-size: 38px; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -0.02em; }
.rc-stat .l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; line-height: 1.6; }
.reel-progress { height: 2px; background: var(--line); margin: 26px var(--pad) 0; position: relative; }
.reel-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--red); transition: width 0.15s linear, left 0.15s linear; }

/* ---------- stats band ---------- */

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: clamp(36px, 4.5vw, 64px) clamp(22px, 3vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s;
  position: relative;
}
.stats-grid .stat:nth-child(4n), .stats-grid .stat:last-child { border-right: none; }
.stats-grid .stat:nth-last-child(-n+4) { border-bottom: none; }
@media (max-width: 960px) {
  .stats-grid .stat:nth-child(4n) { border-right: 1px solid var(--line); }
  .stats-grid .stat:nth-child(2n) { border-right: none; }
  .stats-grid .stat:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stats-grid .stat:nth-last-child(-n+2) { border-bottom: none; }
}
.stat:hover { background: var(--bg-2); }
.stat:hover .stat-num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.stat-num {
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242,237,228,0.75);
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.stat-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-top: 18px; line-height: 1.8; }

/* ---------- pillar index (home) ---------- */

.pillar-index { list-style: none; margin-top: 56px; counter-reset: p; }
.pillar-index li { border-top: 1px solid var(--line); }
.pillar-index li:last-child { border-bottom: 1px solid var(--line); }
.pillar-link {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 4vh, 44px) 6px;
  position: relative;
  transition: padding-left 0.4s var(--ease);
}
.pillar-link:hover { padding-left: clamp(14px, 2vw, 28px); }
.pillar-link .pi-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.3em; color: var(--red); }
.pillar-link h3 {
  font-size: clamp(30px, 4.8vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.35s, -webkit-text-stroke 0.35s;
}
.pillar-link:hover h3 { color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.pillar-link .pi-desc { max-width: 320px; text-align: right; font-size: 14px; color: var(--ink-faint); line-height: 1.6; transition: color 0.3s; }
.pillar-link:hover .pi-desc { color: var(--ink-dim); }
@media (max-width: 860px) {
  .pillar-link { grid-template-columns: 60px 1fr; }
  .pillar-link .pi-desc { display: none; }
}

/* ---------- why / manifesto ---------- */

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 64px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { padding: clamp(30px, 4vw, 56px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background 0.35s; }
.why-grid .why-item:nth-child(2n) { border-right: none; }
.why-grid .why-item:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 860px) { .why-grid .why-item { border-right: none; } .why-grid .why-item:nth-last-child(2) { border-bottom: 1px solid var(--line); } .why-grid .why-item:last-child { border-bottom: none; } }
.why-item:hover { background: var(--surface); }
.why-item .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--red); }
.why-item h3 { font-size: clamp(21px, 2.2vw, 30px); margin: 18px 0 14px; text-transform: uppercase; }
.why-item p { color: var(--ink-dim); font-size: 15.5px; max-width: 440px; }
.why-item .wghost { position: absolute; right: -14px; bottom: -46px; font-size: 170px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(242,237,228,0.05); line-height: 1; pointer-events: none; transition: -webkit-text-stroke-color 0.35s; }
.why-item:hover .wghost { -webkit-text-stroke-color: rgba(225,31,63,0.25); }

/* ---------- work page: cinematic case blocks ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.filter-btn { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; padding: 13px 24px; background: none; border: 1px solid var(--line-strong); color: var(--ink-dim); cursor: pointer; transition: 0.25s; }
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--ink); }

.case-block { padding: clamp(64px, 11vh, 130px) 0; border-top: 1px solid var(--line); position: relative; }
.case-block:first-of-type { border-top: none; }
.cb-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 40px); align-items: start; }
.cb-media { grid-column: 1 / 8; position: relative; }
.cb-text { grid-column: 8 / 13; position: sticky; top: 120px; }
.case-block.flip .cb-media { grid-column: 6 / 13; order: 2; }
.case-block.flip .cb-text { grid-column: 1 / 6; order: 1; }
@media (max-width: 960px) {
  .cb-media, .cb-text, .case-block.flip .cb-media, .case-block.flip .cb-text { grid-column: 1 / 13; order: 0; position: static; }
}
.cb-media .stack { display: grid; gap: 16px; }
.cb-media .stack.two { grid-template-columns: 1fr 1fr; }
.cb-media figcaption { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); padding-top: 14px; }
.cb-media figcaption::before { content: "■ "; color: var(--red); font-size: 7px; vertical-align: 2px; }
.cb-index {
  position: absolute; top: -30px; right: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--ink-faint);
}
.cb-client { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.cb-title { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.05; }
.cb-stat { display: flex; align-items: baseline; gap: 16px; margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cb-stat .n { font-size: clamp(50px, 5vw, 76px); font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -0.03em; }
.cb-stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); line-height: 1.7; }
.cb-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); margin-top: 24px; }
.cb-facts dd { color: var(--ink-dim); font-size: 15px; margin-top: 8px; line-height: 1.75; }

/* ---------- capabilities page ---------- */

.cap-block { position: relative; padding: clamp(80px, 14vh, 170px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.cap-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.16;
}
.cap-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6); }
.cap-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(16,16,20,0.55) 70%, rgba(16,16,20,0.85)); }
.cap-inner { position: relative; z-index: 1; }
.cap-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.34em; color: var(--red); }
.cap-title { font-size: clamp(44px, 8vw, 120px); font-weight: 900; text-transform: uppercase; line-height: 0.94; margin: 20px 0 8px; }
.cap-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: 40px; }
@media (max-width: 900px) { .cap-cols { grid-template-columns: 1fr; } }
.cap-cols .lede { margin-top: 0; }

/* ---------- about page ---------- */

.fact-rows { margin-top: 56px; }
.fact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: clamp(20px, 3vh, 30px) 6px;
  border-top: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s;
}
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row:hover { background: var(--bg-2); padding-left: 18px; }
@media (max-width: 700px) { .fact-row { grid-template-columns: 1fr; gap: 6px; } }
.fact-row .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); }
.fact-row .v { font-size: clamp(18px, 2vw, 26px); font-weight: 700; }

.client-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.client-cell {
  background: var(--bg);
  padding: 34px 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); text-align: center;
  min-height: 92px;
  position: relative; overflow: hidden;
  transition: color 0.3s;
}
.client-cell::before { content: ""; position: absolute; inset: 0; background: #ffffff; transform: translateY(101%); transition: transform 0.35s var(--ease); }
.client-cell:hover::before { transform: translateY(0); }
.client-cell:hover { color: #101014; }
.client-cell span { position: relative; z-index: 1; }
.client-cell img.cl-logo {
  position: relative; z-index: 1;
  max-height: 36px; max-width: 68%;
  width: auto; object-fit: contain;
  filter: grayscale(1) invert(1) brightness(1.6);
  mix-blend-mode: screen;
  opacity: 0.72;
  transition: opacity 0.3s, filter 0.3s;
}
.client-cell:hover img.cl-logo {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}
/* light-on-transparent source logos: no invert; hover keeps dark plate */
.client-cell.light-src img.cl-logo { filter: grayscale(1) brightness(1.3); }
.client-cell.light-src::before { background: #26262e; }
.client-cell.light-src:hover img.cl-logo { filter: none; mix-blend-mode: normal; }

.sector-list { margin-top: 56px; }
.sector-row { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 20px 6px; border-top: 1px solid var(--line); }
.sector-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .sector-row { grid-template-columns: 1fr; gap: 6px; } }
.sector-row .s { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); }
.sector-row .c { color: var(--ink-dim); font-size: 15.5px; }

/* ---------- image collage band ---------- */

.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: 72px; align-items: start; }
.collage .c1 { grid-column: 1 / 6; }
.collage .c2 { grid-column: 6 / 10; margin-top: 60px; }
.collage .c3 { grid-column: 10 / 13; margin-top: 120px; }
@media (max-width: 860px) {
  .collage .c1 { grid-column: 1 / 8; }
  .collage .c2 { grid-column: 8 / 13; margin-top: 40px; }
  .collage .c3 { grid-column: 3 / 11; margin-top: 20px; }
}

/* ---------- CTA / footer ---------- */

.cta-band {
  padding: clamp(100px, 18vh, 220px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(225,31,63,0.16), transparent 65%);
}
.cta-band .wrap { text-align: center; }
.cta-title {
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.cta-title a { display: inline-block; transition: color 0.4s, -webkit-text-stroke 0.4s; }
.cta-title a:hover { color: transparent; -webkit-text-stroke: 2px var(--red); }
.cta-band .btn { margin-top: 56px; }
.cta-mail { display: inline-block; margin-top: 34px; font-family: var(--font-mono); font-size: clamp(14px, 1.8vw, 20px); letter-spacing: 0.14em; color: var(--ink-dim); border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: color 0.25s, border-color 0.25s; }
.cta-mail:hover { color: var(--ink); border-color: var(--red); }

footer { border-top: 1px solid var(--line); padding: 70px 0 46px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-logo img { height: 40px; }
.foot-tag { margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.foot-tag b { color: var(--red); font-weight: 400; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; margin-bottom: 22px; }
.foot-col ul { list-style: none; display: grid; gap: 13px; }
.foot-col a, .foot-col li { color: var(--ink-dim); font-size: 14.5px; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-base { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(44px, 6vw, 100px); margin-top: 72px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); margin-top: 38px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 20px; margin-top: 10px; }
.contact-info dd.big a { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.01em; border-bottom: 2px solid var(--line-strong); transition: border-color 0.25s, color 0.25s; }
.contact-info dd.big a:hover { border-color: var(--red); color: var(--red); }
.contact-info dd.small { font-size: 15.5px; color: var(--ink-dim); }

.form-grid { display: grid; gap: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: none; border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  padding: 12px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--surface); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- showreel / video ---------- */

.reel-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.reel-video { background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.reel-video img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 0.7s var(--ease), filter 0.4s; }
.reel-video:hover img { transform: scale(1.04); filter: saturate(1.05); }
.reel-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  background: rgba(225, 31, 63, 0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s;
  z-index: 2;
}
.reel-video:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: var(--red); }
.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 5px;
}
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(20px, 3vw, 36px); }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid .reel-video .play-btn { width: 54px; height: 54px; }
.video-grid .reel-video .play-btn::after { border-width: 8px 0 8px 14px; }

.video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 14px;
  background: linear-gradient(transparent, rgba(10,10,13,0.85));
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink);
  pointer-events: none;
  z-index: 2;
}
.video-caption::before { content: "\25A0  "; color: var(--red); font-size: 8px; vertical-align: 2px; }

/* ---------- photo gallery ---------- */

.g-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }

.g-event { padding: clamp(48px, 8vh, 90px) 0; border-top: 1px solid var(--line); }
.g-event:first-of-type { border-top: none; }
.g-event-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 28px; margin-bottom: 34px; }
.g-event-head h2 { font-size: clamp(24px, 3.2vw, 44px); text-transform: uppercase; font-weight: 900; }
.g-event-head .g-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.g-event-head .g-meta b { color: var(--red); font-weight: 400; }

.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
.g-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 0.6s var(--ease), filter 0.4s; }
.g-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.g-item::after {
  content: "+";
  position: absolute; right: 12px; bottom: 8px;
  font-size: 26px; font-weight: 300; color: var(--ink);
  opacity: 0; transition: opacity 0.3s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.g-item:hover::after { opacity: 1; }
.g-item.g-more::before {
  content: attr(data-more);
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,16,20,0.72);
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.2em;
  color: var(--ink);
}

.g-empty {
  border: 1px dashed var(--line-strong);
  padding: clamp(48px, 8vh, 90px) clamp(24px, 4vw, 56px);
  text-align: center;
  margin-top: 56px;
}
.g-empty p { color: var(--ink-dim); max-width: 560px; margin: 14px auto 0; font-size: 15.5px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 10, 13, 0.96);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; animation: lbIn 0.35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox img { animation: lbImg 0.45s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(0.96); } }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb-btn {
  position: absolute;
  background: none; border: 1px solid var(--line-strong);
  color: var(--ink); cursor: pointer;
  width: 52px; height: 52px;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}
.lb-btn:hover { border-color: var(--red); background: rgba(225,31,63,0.15); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  max-width: min(88vw, 720px); text-align: center;
  padding: 14px 26px; border-radius: 2px;
  background: rgba(16, 16, 20, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.lb-caption .lb-brand {
  font-family: var(--font-display, inherit); font-weight: 900;
  font-size: clamp(15px, 2.2vw, 21px); letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--ink); line-height: 1.1;
}
.lb-caption .lb-desc {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); line-height: 1.4;
}
.lb-caption .lb-count {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.26em;
  color: var(--red); margin-top: 2px;
}
@media (max-width: 640px) {
  .lb-caption { bottom: 14px; padding: 11px 18px; max-width: 92vw; }
}

/* ---------- footer social row ---------- */

.social-row { display: flex; gap: 12px; margin-top: 26px; }
.social-row a {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}
.social-row a:hover { border-color: var(--red); background: rgba(225,31,63,0.14); }
.social-row svg { width: 18px; height: 18px; fill: var(--ink-dim); transition: fill 0.25s; }
.social-row a:hover svg { fill: var(--ink); }

/* ---------- DEX Originals ---------- */

.ip-block {
  position: relative;
  padding: clamp(70px, 12vh, 140px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.ip-block::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}
.ip-es::before { background: radial-gradient(ellipse 70% 60% at 85% 20%, rgba(255, 140, 40, 0.10), transparent 60%); }
.ip-ep::before { background: radial-gradient(ellipse 70% 60% at 15% 30%, rgba(140, 60, 255, 0.10), transparent 60%); }
.ip-az::before { background: radial-gradient(ellipse 70% 60% at 85% 40%, rgba(40, 170, 255, 0.10), transparent 60%); }
.ip-dn::before { background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(225, 31, 63, 0.10), transparent 60%); }
.ip-inner { position: relative; z-index: 1; }
.ip-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  margin-bottom: 30px;
}
.ip-tag::before { content: "■"; color: var(--red); font-size: 8px; }
.ip-tag.live::before { color: #43d17c; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: 0.35; } }
.ip-title {
  font-size: clamp(44px, 7.5vw, 110px);
  font-weight: 900; text-transform: uppercase;
  line-height: 0.94; letter-spacing: -0.02em;
}
.ip-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); margin-top: 18px; }
.ip-sub b { color: var(--red); font-weight: 400; }
.ip-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: 44px; align-items: start; }
@media (max-width: 900px) { .ip-cols { grid-template-columns: 1fr; } }
.ip-cols .lede { margin-top: 0; }
.ip-partners { margin-top: 30px; }
.ip-partners .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.ip-partners .p { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-partners .p span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); padding: 10px 16px;
}

/* per-IP media strip (auto-fills from Cloudinary + config) */
.ip-media { margin-top: 48px; display: none; }
.ip-media.has-content { display: block; }
.ip-media .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.ip-media-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 900px) { .ip-media-grid { grid-template-columns: repeat(3, 1fr); } }
.ip-media-grid .g-item { aspect-ratio: 1 / 1; }
.ip-video { margin-top: 16px; max-width: 760px; }

/* instagram reel embed */
.ig-reel {
  margin-top: 26px;
  max-width: 320px;
  aspect-ratio: 9 / 15;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
}
.ig-reel iframe { width: 100%; height: 100%; border: 0; }
.ig-reel-link { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.ig-reel-link:hover { color: var(--ink); border-color: var(--red); }

/* fitness duo */
.ip-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 52px; }
@media (max-width: 900px) { .ip-duo { grid-template-columns: 1fr; } }
.ip-duo-card { border: 1px solid var(--line); padding: clamp(26px, 3.5vw, 48px); background: rgba(255,255,255,0.015); transition: border-color 0.3s, background 0.3s; }
.ip-duo-card:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.03); }
.ip-duo-card h3 { font-size: clamp(24px, 2.6vw, 38px); text-transform: uppercase; font-weight: 900; margin-bottom: 6px; }
.ip-duo-card .s { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 20px; }
.ip-duo-card p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.75; }

/* ---------- accessibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- reveal utility ---------- */

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  /* Motion-lite: gentle opacity fades stay, vestibular triggers (parallax, zoom, slide) go. */
  .k-line > span { transform: none !important; opacity: 0; transition: opacity 0.8s var(--ease) !important; }
  .in .k-line > span, .k-line.in > span { opacity: 1; }
  .reveal { transform: none !important; transition: opacity 0.9s var(--ease) !important; }
  .rv { clip-path: none !important; opacity: 0; transition: opacity 1s var(--ease) !important; }
  .rv.in { opacity: 1; }
  .rv img { transform: none !important; transition: none !important; }
  [data-plx] { transform: none !important; }
  body::after { animation: none !important; }
  .hero-bg img.on { animation: none !important; transform: scale(1.02); }
  .marquee-track { animation-duration: 76s !important; }
}
