:root {
  /* Palette tuned from the deck: F8F4F1 paper, 1C1C32 deep indigo,
     DB9A8F clay pink, 734B67 mauve. */
  --paper: #F8F4F1;
  --paper-2: #EEE6DE;
  --ink: #1C1C32;
  --ink-soft: #3A3A52;
  --ink-muted: #8A8296;
  --rule: #1C1C32;
  --accent: #DB9A8F;         /* clay pink */
  --accent-deep: #734B67;    /* mauve */
  --hi: oklch(88% 0.12 95);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "IBM Plex Mono", ui-monospace, monospace;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---- TOP RAIL ---- */
.rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: normal;
  background: linear-gradient(180deg, var(--paper) 60%, transparent);
  backdrop-filter: blur(2px);
}
.rail .l, .rail .r { display: flex; gap: 28px; align-items: center; }
.rail .r { justify-content: flex-end; }
.rail .r a:hover { color: var(--accent-deep); }
.rail .mono-dot { color: var(--accent-deep); }

/* Theme toggle — lives in the right rail on desktop, stays the same
   editorial mono/serif language as the nav links. Uses border-radius 999
   to read as a control (vs. plain text links). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.theme-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}
.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-label {
  font-variant-numeric: tabular-nums;
}

.mark-svg {
  height: 28px;
  width: auto;
  display: block;
  color: var(--ink);
  transition: transform 0.3s ease;
}
.mark:hover .mark-svg { transform: translateY(-1px); }
.mark-glyphs {
  font-family: var(--serif);
  font-style: italic;
  fill: currentColor;
}
.mark-bullet {
  fill: var(--accent-deep);
}

.mark {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.mark em { font-style: normal; }

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  padding: 110px var(--pad) 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.hero::after {
  content: "";
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: 24px;
  height: 1px;
  background: var(--rule);
  opacity: 0.9;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11.5vw, 196px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-title .it {
  font-style: italic;
  color: var(--accent-deep);
}
.hero-title .amp {
  font-style: italic;
  font-size: 0.82em;
  color: var(--ink-muted);
  vertical-align: 0.04em;
  margin: 0 0.04em;
}

.hero-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 34ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-lede em { color: var(--accent-deep); }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero-meta div { display: flex; gap: 10px; align-items: baseline; }
.hero-meta b { color: var(--ink); font-weight: 500; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translate(3px,-3px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero portrait */
.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(1.02) contrast(1.02);
}

/* ---- SECTION SHELL ---- */
.section {
  padding: 96px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px 32px;
  margin-bottom: 56px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.section-num {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: -8px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title .it { font-style: italic; color: var(--accent-deep); }
.section-aside {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: right;
  padding-bottom: 8px;
}

/* ---- SERVICES ---- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.svc {
  padding: 36px 28px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
  background: var(--paper);
  transition: background .4s ease;
}
.svc:last-child { border-right: none; }
.svc:hover { background: var(--paper-2); }
.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.svc-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0 8px;
}
.svc-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.svc-title .it { font-style: italic; color: var(--accent-deep); }
.svc-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}
.svc-tags {
  margin-top: auto;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 12px;
}
.svc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
}

/* ---- CREDENTIALS ---- */
.creds {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.cred {
  grid-column: span 6;
  padding: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 520px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cred.wide { grid-column: span 8; }
.cred.narrow { grid-column: span 4; }

/* When a cred has a backing image, the overlay sits on top with a gradient
   scrim for legibility. Image and overlay stack inside the cred. */
.cred.has-img { color: #F8F4F1; }
.cred-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Default: favor upper portion so faces aren't cropped. Per-card overrides below. */
  object-position: center 22%;
  z-index: 0;
  transition: transform .6s ease;
}
/* Tuned per-photo: faces sit in the top third for all four, so bias crops upward. */
.cred[data-img="hero"]  .cred-img { object-position: center 18%; }
.cred[data-img="radio"] .cred-img { object-position: center 28%; }
.cred[data-img="panel"] .cred-img { object-position: center 18%; }
.cred[data-img="forum"] .cred-img { object-position: center 30%; }
.cred.has-img:hover .cred-img { transform: scale(1.03); }
.cred.has-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(28,28,50,0.15) 0%,
    rgba(28,28,50,0.55) 55%,
    rgba(28,28,50,0.88) 100%);
  z-index: 1;
  pointer-events: none;
}
.cred-overlay {
  position: relative;
  z-index: 2;
  padding: 32px 28px 36px;
  display: flex; flex-direction: column;
  gap: 14px;
  height: 100%;
}

.cred-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,244,241,0.75);
  display: flex; justify-content: space-between;
}
.cred-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: auto 0 0;
  color: #F8F4F1;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.cred-title .it { font-style: italic; color: var(--accent); }
.cred-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,244,241,0.8);
  margin-top: 10px;
}
/* Color-class tints: accent card gets a warm clay scrim, dark gets a deep
   indigo scrim — both keep text legible without hiding the photo. */
.cred.accent::before {
  background: linear-gradient(180deg,
    rgba(115,75,103,0.25) 0%,
    rgba(115,75,103,0.65) 50%,
    rgba(115,75,103,0.92) 100%);
}
.cred.accent .cred-title .it { color: #F8F4F1; font-weight: 500; }

/* ---- CLIENTS ---- */
.clients { padding-bottom: 40px; }
.client-group-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.client-group-label .count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.client-group-label .rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  opacity: 0.4;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-bottom: 48px;
}
/* Featured row for current clients: fewer, larger, centered cells so the
   handful of named brands carry more weight than the past-clients grid. */
.logo-grid.featured {
  grid-template-columns: repeat(4, 1fr);
  max-width: 78%;
  margin-left: auto;
  margin-right: auto;
}
.logo-grid.featured .logo-img {
  max-width: 88%;
  max-height: 88%;
  /* Featured row is named, current clients — keep them in full color
     rather than greyscale-until-hover. */
  filter: none;
}
/* Cell keeps its ratio via a padding-top pseudo-element — aspect-ratio
   on flex-containers is unreliable in iOS Safari (cells grow to content
   height regardless). padding-top % resolves against the cell's own width,
   so 60% of width => 3:5 landscape, 100% => square. */
.logo-cell {
  position: relative;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  transition: background .3s ease;
}
.logo-cell::before {
  content: '';
  display: block;
  padding-top: 60%;
}
.logo-grid.featured .logo-cell::before {
  padding-top: 100%;
}
.logo-cell-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
}
.logo-cell:hover { background: var(--paper-2); }

/* Placeholder cells for un-named/NDA current clients: muted, no hover lift,
   the dashed wordmark SVG sits centered with a tiny caption. */
.logo-cell.placeholder {
  opacity: 0.7;
}
.logo-cell.placeholder:hover { background: var(--paper); }
.logo-cell .logo-hidden {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
}
/* Logos vary enormously in internal padding and aspect ratio. Baseline sizing
   fills most of the cell; per-logo overrides below tune the few that bake in
   a lot of whitespace (L'Oréal, Momentum Mundi) or read too large at default
   (Burger King, Nivea). */
.logo-cell .logo-img {
  max-width: 92%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9) opacity(0.78);
  transition: filter .3s ease, transform .3s ease;
}
/* Per-logo tuning by alt text (stable, content-driven).
   Scale-downs apply at every viewport — they never push out of the cell.
   Scale-ups are scoped to desktop only, because on phones the cells shrink
   to ~167x100 and a 1.3x scale would overwhelm adjacent logos. */
.logo-cell img[alt="Burger King"]    { transform: scale(0.92); }
.logo-cell img[alt="Nivea"]          { transform: scale(0.88); }
.logo-cell img[alt="Sziget"]         { transform: scale(0.85); }
.logo-cell img[alt="Cappy"]          { transform: scale(0.78); }
.logo-cell img[alt="Forbes"]         { transform: scale(0.92); }

@media (min-width: 961px) {
  .logo-cell img[alt="L'Oréal"]      { transform: scale(1.15); }
  .logo-cell img[alt="Theodora"]     { transform: scale(1.10); }
  .logo-cell img[alt="Armani"]       { transform: scale(1.35); }
  .logo-cell img[alt="Yettel"]       { transform: scale(1.05); }
  .logo-cell img[alt="K&H"]          { transform: scale(1.30); }
}

/* Dark mode: logo grid stays on a light card so every brand's colors stay
   correct. Simpler and more predictable than per-logo inversion. */
[data-theme="dark"] .logo-cell {
  background: #F8F4F1;
}
[data-theme="dark"] .logo-cell .logo-placeholder {
  color: #1C1C32;
}
.logo-cell:hover .logo-img {
  filter: grayscale(0) contrast(1) opacity(1);
}
.logo-cell .logo-placeholder {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---- ABOUT ---- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}
.about-col p {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: pretty;
}
.about-col p em { color: var(--accent-deep); font-style: italic; }
.about-col .small {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink);
  margin-top: 8px;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(0.2) contrast(1.05);
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.about-caption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Ink so the caption reads on light portraits. var(--ink) flips to cream in
     dark mode, where the bottom gradient darkens the photo enough for contrast. */
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.stat {
  padding: 22px 0 6px;
  border-right: 1px solid var(--rule);
  padding-right: 16px;
}
.stat:last-child { border-right: none; padding-right: 0; padding-left: 16px; }
.stat:nth-child(2) { padding-left: 16px; padding-right: 16px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num .it { font-style: italic; color: var(--accent-deep); }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---- CONTACT ---- */
/* Contact section always uses its own dark palette regardless of global dark mode,
   so the overlay text never ends up white-on-white. Full-bleed so the dark
   background fills the viewport edge-to-edge. */
.contact {
  background: #1C1C32;
  color: #F8F4F1;
  margin-top: 60px;
  --c-paper: #F8F4F1;
  --c-ink: #1C1C32;
  --c-accent: #DB9A8F;
}
.contact .section-head { border-color: rgba(248,244,241,0.22); }
.contact .section-num,
.contact .section-aside { color: rgba(248,244,241,0.55); }
.contact .section-title { color: var(--c-paper); }
.contact .section-title .it { color: var(--c-accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.contact-lede {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  color: var(--c-paper);
  text-wrap: pretty;
}
.contact-lede em { font-style: italic; color: var(--c-accent); }

.contact-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(248,244,241,0.22);
}
.contact-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(248,244,241,0.22);
  transition: padding .3s ease;
  cursor: pointer;
  color: var(--c-paper);
}
.contact-item:hover { padding-left: 10px; }
.contact-item:hover .contact-value { color: var(--c-accent); }
.contact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F8F4F1;
  opacity: 0.85;
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--c-paper);
  transition: color .25s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-arr {
  font-family: var(--mono);
  font-size: 14px;
  color: #F8F4F1;
  opacity: 0.7;
  transition: transform .25s ease, color .25s ease, opacity .25s ease;
}
.contact-item:hover .contact-arr {
  transform: translate(4px,-4px);
  color: var(--c-accent);
}

.contact-card {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.contact-card .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28,28,50,0.55);
}
.contact-card h4 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.contact-card .rows {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-card .row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(28,28,50,0.12);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28,28,50,0.65);
}
.contact-card .row b { color: var(--c-ink); font-weight: 500; }
.contact-card .btn {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}

/* ---- FOOTER ---- */
/* Footer pins its own dark palette so dark mode doesn't flip it to
   light-bg with light-text. */
footer {
  background: #1C1C32;
  color: #F8F4F1;
  padding: 28px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid rgba(248,244,241,0.15);
}
footer .copyright { color: rgba(248,244,241,0.6); }
footer em {
  font-style: italic;
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: #F8F4F1;
}

/* ---- MARQUEE (subtle motif) ---- */
.marquee-wrap {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper);
}
.marquee {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  animation: slide 42s linear infinite;
  font-family: var(--serif);
  font-size: 28px;
  white-space: nowrap;
  color: var(--ink);
}
.marquee span { display: inline-flex; align-items: center; gap: 56px; }
.marquee .it { font-style: italic; color: var(--accent-deep); }
.marquee .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 96px;
    gap: 36px;
  }
  .hero-portrait { max-width: 100%; justify-self: stretch; aspect-ratio: 4/5; }
  .services { grid-template-columns: 1fr; }
  .svc { border-right: none; }
  .creds { grid-template-columns: 1fr; }
  .cred, .cred.wide, .cred.narrow { grid-column: span 1; min-height: 220px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  /* Tablet zone: keep featured at 4 cols so the square cells don't balloon
     to 40% of viewport width. max-width drops to 100% so the row fills. */
  .logo-grid.featured { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: auto 1fr; }
  .section-aside { display: none; }
  .rail .l { display: none; }
  .rail .r a { display: none; }
  .rail { grid-template-columns: 1fr auto auto; justify-content: center; text-align: center; }
  .hero-title { font-size: clamp(56px, 16vw, 120px); }
}

@media (max-width: 520px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  /* Phone: 2 cols for featured so each logo has enough space. Tighten the
     padding + bump the inner max-size so logos read clearly at 167px cells. */
  .logo-grid.featured { grid-template-columns: repeat(2, 1fr); }
  .logo-cell-inner { padding: 10px; }
  .logo-grid.featured .logo-img { max-width: 92%; max-height: 92%; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .stat:nth-child(2), .stat:last-child { padding-left: 0; padding-right: 0; }
  .contact-item { grid-template-columns: 80px 1fr auto; }
  .contact-value { font-size: 16px; }
}

/* Narrow-laptop / short-height viewports (e.g. 1280x650, 1366x660 after
   chrome eats the top). The hero was locked to min-height: 100svh and the
   title cap was 196px, which pushed CTAs well below the fold. Here we drop
   the min-height, cap the headline, and trim vertical rhythm so the hero
   fits comfortably in ~650–760px of screen. */
@media (max-height: 760px) and (min-width: 961px) {
  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 40px;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(56px, 7vw, 96px);
  }
  .hero-kicker { margin-bottom: 14px; }
  .hero-lede {
    font-size: clamp(18px, 1.6vw, 22px);
    margin-bottom: 20px;
  }
  .hero-meta { margin-bottom: 18px; gap: 20px; }
  .hero-portrait { max-width: 440px; }
}

/* Mobile footer — was a three-column flex that crushed the italic tagline
   between copyright and locale. Stack vertically so each line gets room. */
@media (max-width: 520px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
