:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #5f5f5f;
  --line: #e4e4e4;
  --wash: #f4f4f2;
  --red: #be3935;
  --navy: #0b3c81;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--line); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--red); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
h1, h2 {
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7.4vw, 92px); max-width: 15ch; }
h2 { font-size: clamp(30px, 4.6vw, 54px); max-width: 20ch; }
h3 { font-family: var(--cond); font-weight: 600; font-size: 24px; line-height: 1.2; }
.lede { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; max-width: 46ch; margin-top: 28px; }
.section-intro { color: var(--muted); max-width: 56ch; margin-top: 16px; font-size: 19px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  padding: 13px 22px; border-radius: 6px;
  background: var(--ink); color: #fff; text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--red); color: #fff; border-color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 0; }
.hero .cred { margin-top: 20px; color: var(--muted); max-width: 60ch; }
.hero .cred strong { color: var(--ink); font-weight: 600; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--ink);
}
.stat { padding: 24px 24px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--cond); font-weight: 700; font-size: clamp(36px, 4.6vw, 56px); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 20px 12px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Logos */
.logos { padding: 28px 0 20px; border-top: 1px solid var(--line); }
.logos p { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; padding: 0 22px; }
.marquee-track img { width: 84px; height: 84px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .marquee-track li { padding: 0 14px; }
  .marquee-track img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track li[aria-hidden] { display: none; }
}

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

.pain { border-top: 2px solid var(--ink); padding-top: 20px; }
.pain h3 { margin-bottom: 12px; }
.pain p { color: var(--muted); }

/* Work */
.case {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; margin-top: 48px;
}
.case.flip { grid-template-columns: 7fr 5fr; }
.case.flip .case-media { order: -1; }
.case-media { background: var(--wash); border-radius: 10px; overflow: hidden; }
.case-media img { width: 100%; }
.case .tag, .card .tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.case h3 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; font-weight: 700; line-height: 1.05; }
.case p { margin-top: 14px; color: var(--muted); }
.results { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.results li { font-size: 14px; color: var(--muted); line-height: 1.4; }
.results b { display: block; font-family: var(--cond); font-size: 22px; color: var(--ink); line-height: 1.15; margin-bottom: 2px; }
.case .btn { margin-top: 24px; }
@media (max-width: 900px) {
  .case, .case.flip { grid-template-columns: 1fr; }
  .case .case-media, .case.flip .case-media { order: -1; }
}
.work-divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0 0; }

.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card-media { background: var(--wash); aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-body p { color: var(--muted); margin-top: 10px; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }
.note a { color: var(--ink); }

/* Services */
.service { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; }
.service .num { font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 16px; }
.service h3 { margin-bottom: 16px; }
.service dl { margin: 0; }
.service dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 16px; }
.service dd { margin: 4px 0 0; font-size: 15.5px; }
.terms { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quotes figure { margin: 0; padding: 28px; background: var(--wash); border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quotes blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.quotes figcaption { font-size: 14px; color: var(--muted); }
.quotes figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }

/* Principles */
.principles { background: var(--ink); color: #fff; border-top: 0 !important; }
.principles .eyebrow { color: #ff8a84; }
.principles .section-intro { color: #b9b9b9; }
.c-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #2c2c2c; border: 1px solid #2c2c2c; }
.c-grid li { background: var(--ink); padding: 22px 20px 26px; }
.c-grid .n { font-family: var(--cond); font-size: 40px; font-weight: 300; line-height: 1; color: #ff8a84; }
.c-grid b { display: block; margin-top: 14px; font-family: var(--cond); font-size: 20px; font-weight: 600; }
.c-grid span { display: block; margin-top: 6px; font-size: 14px; color: #b9b9b9; line-height: 1.45; }
@media (max-width: 1000px) { .c-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .c-grid { grid-template-columns: 1fr; } }
.principles + section { border-top: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about img { border-radius: 10px; }
.about p + p { margin-top: 16px; }
.about .body { margin-top: 24px; color: var(--muted); }
.about .body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* CTA + footer */
.cta { background: var(--red); color: #fff; border-top: 0 !important; text-align: left; }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 20px; font-size: 20px; max-width: 48ch; }
.site-footer { background: var(--ink); color: #b9b9b9; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Case study page */
.cs-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.cs-hero h1 { font-size: clamp(36px, 6.2vw, 76px); max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--ink); }
.facts div { padding: 18px 20px 0 0; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 15.5px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.cs-block { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 4vw, 56px); }
@media (max-width: 900px) { .cs-block { grid-template-columns: 1fr; } }
.cs-block .body > p { font-size: 19px; max-width: 60ch; }
.cs-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.cs-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.cs-list b { color: var(--ink); font-weight: 600; }
.shot { margin: 40px 0 0; }
.shot img { width: 100%; border-radius: 10px; background: var(--wash); }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .shots-2 { grid-template-columns: 1fr; } }
.back { display: inline-block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
