/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #EFF1F2;
  --ink: #0F1113;
  --accent: #2541B2;
  --accent-deep: #0E1D5B;
  --display: 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad-x: 72px;
  --section-pad: 120px;
}
@media (max-width: 900px) { :root { --pad-x: 32px; --section-pad: 80px; } }
@media (max-width: 600px) { :root { --pad-x: 20px; --section-pad: 56px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
@media (max-width: 700px) { .grid-12 { grid-template-columns: repeat(6, 1fr); } }

.label-mono, .section-eyebrow, .meta-line {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar .brand { display: flex; gap: 18px; align-items: center; }
.topbar .swatch { width: 10px; height: 10px; background: var(--accent); border-radius: 1px; }
.topbar .nav { display: flex; gap: 22px; justify-content: flex-end; }
.topbar a { text-decoration: none; }
.topbar .available { color: var(--accent); }
.topbar .back { justify-self: start; }

/* ── Section base ────────────────────────────────────────────────── */
section.zone {
  padding: var(--section-pad) var(--pad-x);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}
.section-h2 .accent { color: var(--accent); }
@media (max-width: 900px) { .section-h2 { font-size: 40px; } }

/* ── Motion: hero word reveal + scroll fades + tile hover ──────── */
@media (prefers-reduced-motion: no-preference) {
  /* Hero word mask reveal — plays once on load */
  .hero-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 0.92;
  }
  .hero-word > span {
    display: inline-block;
    transform: translateY(105%);
    will-change: transform;
    animation: hero-word-up 850ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-h1 .hero-word:nth-child(1) > span { animation-delay: 80ms; }
  .hero-h1 .hero-word:nth-child(2) > span { animation-delay: 220ms; }
  .hero-h1 .hero-word:nth-child(3) > span { animation-delay: 360ms; }
  @keyframes hero-word-up {
    0%   { transform: translateY(105%); }
    100% { transform: translateY(0); }
  }

  /* .reveal — fade + lift on scroll-into-view OR on load if data-reveal-delay set */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Tile media hover — subtle zoom + caption arrow nudge */
  .work-tile .media > video,
  .work-tile .media > img,
  .work-tile .media > iframe {
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
    will-change: transform;
  }
  .work-tile:hover .media > video,
  .work-tile:hover .media > img,
  .work-tile:hover .media > iframe {
    transform: scale(1.04);
  }
  .work-tile .media iframe.tile-yt {
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .work-tile:hover .media iframe.tile-yt {
    transform: translate(-50%, -50%) scale(1.04);
  }
  .work-tile .arrow {
    display: inline-block;
    transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .work-tile:hover .arrow {
    transform: translateX(6px);
  }
}

/* ── Home Hero ───────────────────────────────────────────────────── */
.home-hero {
  padding: 40px var(--pad-x) 48px;
}
.home-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 20px;
}
.home-hero .hero-cols {
  margin-bottom: 40px;
}
.home-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7.6vw, 124px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 18px;
  white-space: nowrap;
}
.home-hero h1 .accent { color: var(--accent); }
.home-hero .positioning {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  margin: 0;
}
@media (max-width: 600px) {
  .home-hero h1 { white-space: normal; font-size: clamp(40px, 11vw, 72px); }
}
.home-hero .positioning .accent { color: var(--accent); font-weight: 700; }

/* ── Brand marquee (above-fold credentialing) ────────────────────── */
.brand-marquee {
  margin: 36px calc(var(--pad-x) * -1) 36px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.brand-marquee-track {
  display: flex;
  width: max-content;
  animation: brand-marquee-scroll 38s linear infinite;
  will-change: transform;
}
.brand-marquee:hover .brand-marquee-track {
  animation-play-state: paused;
}
.brand-marquee-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex-shrink: 0;
}
.bm-item {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  display: inline-flex;
  align-items: center;
  height: 44px;
  transition: color 200ms ease, transform 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bm-item:hover { color: var(--ink); transform: translateY(-1px); }
.bm-item img,
.bm-item svg {
  height: 100%;
  width: auto;
  max-height: 44px;
  display: block;
  filter: brightness(0) saturate(100%);
  opacity: 0.65;
  transition: opacity 200ms ease;
}
.bm-item:hover img,
.bm-item:hover svg { opacity: 1; }

@keyframes brand-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track { animation: none; }
  .brand-marquee-row:nth-child(2) { display: none; }
  .brand-marquee {
    -webkit-mask-image: none;
            mask-image: none;
    overflow-x: auto;
  }
}
@media (max-width: 700px) {
  .brand-marquee { margin: 28px calc(var(--pad-x) * -1) 28px; padding: 16px 0; }
  .brand-marquee-row { gap: 36px; padding-right: 36px; }
  .bm-item { height: 32px; }
  .bm-item img, .bm-item svg { max-height: 32px; }
}
.home-hero .reel {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.home-hero .reel video,
.home-hero .reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.home-hero .reel .reel-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  z-index: 2;
}
.home-hero .reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--ink) 50%, transparent) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Selected Work grid (2-col) ──────────────────────────────────── */
.work-head { grid-column: 1 / span 8; }
@media (max-width: 900px) { .work-head { grid-column: 1 / span 6; } }
.work-head .section-sub {
  font-size: 16px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  max-width: 640px;
  margin-top: 16px;
}

.work-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 24px;
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
}

.work-tile { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.work-tile .media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  overflow: hidden;
  container-type: size;
  transition: transform 0.4s ease;
}
.work-tile .media video,
.work-tile .media img,
.work-tile .media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}
.work-tile .media iframe.tile-yt {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
}
.work-tile .media .corner-meta {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  display: flex;
  gap: 14px;
}
.work-tile .media .corner-meta .year { opacity: 0.6; }
.work-tile .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) 30%, transparent) 0%,
    color-mix(in srgb, var(--ink) 0%, transparent) 30%,
    color-mix(in srgb, var(--ink) 0%, transparent) 100%);
  z-index: 1;
  pointer-events: none;
}
.work-tile:hover .media { transform: translateY(-4px); }
.work-tile .caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 20px;
}
.work-tile .caption .lead {
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  transition: color 0.2s;
}
.work-tile:hover .caption .lead { color: var(--accent); }
.work-tile .caption .arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.work-tile:hover .caption .arrow { opacity: 0.7; }
.work-tile .sub-line {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.85;
}
.work-tile .meta-row {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.5;
  text-transform: uppercase;
}

/* ── Now ─────────────────────────────────────────────────────────── */
.now-head { grid-column: 1 / span 5; }
.now-body { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .now-head { grid-column: 1 / span 6; margin-bottom: 32px; }
  .now-body { grid-column: 1 / span 6; }
}
.now-body p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.now-body p .accent { color: var(--accent); font-weight: 700; }
.now-proofs {
  grid-column: 1 / span 12;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .now-proofs { grid-template-columns: repeat(2, 1fr); } }
.now-proof {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  overflow: hidden;
  color: #fff;
}
.now-proof img,
.now-proof video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.now-proof::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--ink) 75%, transparent) 100%);
  pointer-events: none;
}
.now-proof .cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  line-height: 1.4;
}
.now-proof .cap b { font-weight: 600; }

/* ── Systems teaser ───────────────────────────────────────────────── */
.systems-head { grid-column: 1 / span 5; }
.systems-body { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .systems-head { grid-column: 1 / span 6; margin-bottom: 32px; }
  .systems-body { grid-column: 1 / span 6; }
}
.systems-body p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.systems-body p .accent { color: var(--accent); font-weight: 700; }
.systems-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding-bottom: 6px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.systems-cta:hover { color: var(--accent); border-color: var(--accent); }
.systems-cta .arrow { transition: transform 0.2s ease; }
.systems-cta:hover .arrow { transform: translateX(4px); }
.systems-visual {
  grid-column: 1 / span 12;
  margin-top: 64px;
  display: block;
  position: relative;
  background: var(--ink);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.systems-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.systems-visual:hover img { transform: scale(1.02); }

/* ── Selected clients ─────────────────────────────────────────────── */
.clients-head { grid-column: 1 / span 6; }
.clients-list {
  grid-column: 1 / span 12;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.clients-list .client {
  padding: 28px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.clients-list .client:nth-child(4n) { border-right: none; }
.clients-list .client:hover { background: var(--accent); color: #fff; }
.clients-list .client .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.55;
}
@media (max-width: 900px) {
  .clients-list { grid-template-columns: repeat(2, 1fr); }
  .clients-list .client:nth-child(4n) { border-right: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
  .clients-list .client:nth-child(2n) { border-right: none; }
  .clients-list .client { font-size: 18px; padding: 20px 8px; }
}
@media (max-width: 500px) {
  .clients-list { grid-template-columns: 1fr; }
  .clients-list .client { border-right: none !important; }
}

/* ── About ───────────────────────────────────────────────────────── */
.about-head { grid-column: 1 / span 3; }
.about-body { grid-column: 5 / span 8; }
.about-head .meta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 2;
  opacity: 0.7;
}
.about-head .meta .accent { color: var(--accent); }
.about-statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}
.about-statement .accent { color: var(--accent); }
.about-cols {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.82;
}
.about-cols p { margin: 0; text-wrap: pretty; }
@media (max-width: 900px) {
  .about-head { grid-column: 1 / span 6; margin-bottom: 32px; }
  .about-body { grid-column: 1 / span 6; }
  .about-statement { font-size: 26px; }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Contact ─────────────────────────────────────────────────────── */
.contact {
  padding: var(--section-pad) var(--pad-x) calc(var(--section-pad) / 1.5);
  background: var(--ink);
  color: var(--bg);
}
.contact .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.contact h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 180px);
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin: 0;
}
.contact h2 a { color: var(--accent); text-decoration: none; }
.contact .cols {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 80px;
}
.contact .col-direct .label,
.contact .col-elsewhere .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.contact .col-direct a {
  color: var(--bg);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.contact .col-elsewhere .links { display: flex; flex-direction: column; gap: 12px; }
.contact .col-elsewhere a {
  color: var(--bg);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
}
.contact .col-elsewhere a .arrow { color: var(--accent); }
.contact .footer {
  grid-column: 1 / span 12;
  margin-top: 100px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .contact .cols { grid-template-columns: 1fr; gap: 56px; margin-top: 56px; }
  .contact .col-direct a { font-size: 22px; }
  .contact .col-elsewhere a { font-size: 22px; }
}

/* ── Case study layout ───────────────────────────────────────────── */
.cs-hero {
  padding: 80px var(--pad-x) 56px;
}
.cs-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 24px;
}
.cs-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 180px);
  letter-spacing: -0.045em;
  line-height: 0.86;
  margin: 0 0 24px;
}
.cs-hero .sub {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.cs-hero .meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.cs-hero .meta-strip span b { font-weight: 600; opacity: 0.85; margin-right: 8px; }

.cs-hero-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.cs-hero-media video,
.cs-hero-media img,
.cs-hero-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
/* Scale-and-crop trick to push YT title bar + watch-on-yt overlay off-screen.
   YT chrome lives in top ~10% and bottom ~10% of the iframe — scaling 130%
   relative to container, then clipping via overflow:hidden, hides them. */
.cs-hero-media iframe.tile-yt {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(130vw, calc(130vh * 16 / 9));
  height: max(130%, calc(130vw * 9 / 16));
  pointer-events: none;
}
.work-tile .media iframe.tile-yt {
  width: max(130cqw, calc(130cqh * 16 / 9));
  height: max(130cqh, calc(130cqw * 9 / 16));
  pointer-events: none;
}
/* Hard shield: layer over every YT iframe, eats clicks + masks any chrome
   that still leaks (mobile play buttons, age-gates, region blocks). */
.cs-hero-media,
.work-tile .media { position: relative; }
.cs-hero-media::before,
.work-tile .media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.cs-body {
  padding: 96px var(--pad-x);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.cs-side { grid-column: 1 / span 3; position: sticky; top: 80px; align-self: start; }
.cs-prose { grid-column: 5 / span 8; }
@media (max-width: 900px) {
  .cs-side { grid-column: 1 / span 6; position: static; margin-bottom: 48px; }
  .cs-prose { grid-column: 1 / span 6; }
}
.cs-side .block { margin-bottom: 28px; }
.cs-side .block .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}
.cs-side .block .value {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
.cs-side .block .value-list {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  opacity: 0.8;
}

.cs-prose h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.cs-prose h3:not(:first-child) { margin-top: 64px; }
.cs-prose p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.cs-prose p .accent { color: var(--accent); font-weight: 600; }
.cs-prose p b { font-weight: 600; }
.cs-prose p.metric-window {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding-top: 14px;
  margin-top: 18px;
  font-style: normal;
}

.cs-asset-grid {
  margin: 32px 0 48px;
  display: grid;
  gap: 16px;
}
.cs-asset-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs-asset-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-asset-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) {
  .cs-asset-grid.cols-2,
  .cs-asset-grid.cols-3,
  .cs-asset-grid.cols-4 { grid-template-columns: 1fr; }
}
.cs-asset {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  color: #fff;
}
.cs-asset.aspect-4-5 { aspect-ratio: 4/5; }
.cs-asset.aspect-9-16 { aspect-ratio: 9/16; }
.cs-asset.aspect-16-9 { aspect-ratio: 16/9; }
.cs-asset.aspect-4-3 { aspect-ratio: 4/3; }
.cs-asset.aspect-natural-2336-1744 { aspect-ratio: 2336/1744; }
.cs-asset.aspect-1-1 { aspect-ratio: 1/1; }
.cs-asset img,
.cs-asset video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-asset.aspect-9-16 img { object-position: top center; }
.work-grid.cs-video-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 48px;
}
.work-grid.cs-video-row .work-tile .media { aspect-ratio: 4/5; }
.work-grid.cs-video-row .cap-row { padding: 12px 0 0; }
.work-grid.cs-video-row .lead {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 700px) {
  .work-grid.cs-video-row { grid-template-columns: 1fr; }
}
.cs-asset .cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.cs-asset .cap b { font-weight: 600; }
.cs-asset::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--ink) 80%, transparent) 100%);
  pointer-events: none;
}

/* ── Case study Process section ──────────────────────────────────── */
.cs-process {
  padding: 96px var(--pad-x);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.cs-process-head { max-width: 760px; margin-bottom: 48px; }
.cs-process-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 16px;
}
.cs-process-sub {
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.78;
  margin: 0;
  text-wrap: pretty;
}
.cs-process-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.cs-process-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-nav {
  padding: 56px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.cs-nav a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cs-nav .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 12px;
}
.cs-nav .lead {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.2s;
}
.cs-nav a:hover .lead { color: var(--accent); }
.cs-nav .next { text-align: right; }
@media (max-width: 700px) {
  .cs-nav { grid-template-columns: 1fr; }
  .cs-nav .next { text-align: left; }
}
