/* ============================================================
   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; }

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: 880px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(16,16,20,0.98);
    flex-direction: column; justify-content: center; gap: 34px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: 101;
  }
  body.menu-open .nav-links { transform: translateY(0); }
  .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-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-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;
}
.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-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: var(--red); transform: translateY(101%); transition: transform 0.35s var(--ease); }
.client-cell:hover::before { transform: translateY(0); }
.client-cell:hover { color: var(--ink); }
.client-cell span { position: relative; z-index: 1; }

.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; }

/* ---------- 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) {
  .reveal, .k-line > span, .rv, .rv img { opacity: 1 !important; transform: none !important; transition: none !important; clip-path: none !important; }
  .marquee-track, body::after, .hero-bg img.on { animation: none !important; }
  [data-plx] { transform: none !important; }
}
