/* Shkirap — base styles */
:root {
  --bg: oklch(0.97 0.005 85);
  --bg-deep: oklch(0.94 0.006 85);
  --ink: oklch(0.18 0.01 60);
  --ink-soft: oklch(0.38 0.01 60);
  --ink-faint: oklch(0.62 0.008 60);
  --rule: oklch(0.85 0.008 60);
  --accent: oklch(0.45 0.18 255);
  --accent-soft: oklch(0.45 0.18 255 / 0.12);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.008 60);
  --bg-deep: oklch(0.13 0.008 60);
  --ink: oklch(0.96 0.005 85);
  --ink-soft: oklch(0.78 0.008 60);
  --ink-faint: oklch(0.52 0.008 60);
  --rule: oklch(0.32 0.008 60);
  --accent-soft: oklch(0.65 0.18 255 / 0.15);
  --accent: oklch(0.72 0.16 255);
}

[data-accent="gold"] {
  --accent: oklch(0.65 0.13 80);
  --accent-soft: oklch(0.65 0.13 80 / 0.14);
}
[data-accent="ember"] {
  --accent: oklch(0.58 0.17 35);
  --accent-soft: oklch(0.58 0.17 35 / 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { scroll-behavior: auto; }
body { font-size: 17px; line-height: 1.55; letter-spacing: -0.005em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Typography */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.italic { font-style: italic; }

/* Layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

/* Top nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  mix-blend-mode: difference;
  color: white;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav .brand {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em;
}
.nav .brand .dot { color: var(--accent); }
.nav .links { display: flex; gap: 28px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.01em; opacity: 0.85; }
.nav .links a { transition: opacity 0.3s ease; }
.nav .links a:hover { opacity: 0.5; }
@media (max-width: 720px) { .nav { padding: 18px 24px; } }

/* Reveal primitive */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Word reveal — opacity + translate stagger, no clipping (safe under screenshot tools) */
.word-mask {
  display: inline-block;
  vertical-align: baseline;
}
.word-mask > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.in .word-mask > span,
.word-mask.in > span { opacity: 1; transform: none; }

/* Hero is above-the-fold — always render at full opacity, no transition gating.
   Reveal animations are reserved for sections below the fold (IntersectionObserver). */
.hero .reveal,
.hero .word-mask > span {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* Stagger words within a heading by source order */
.word-mask:nth-of-type(1) > span { transition-delay: 0ms; }
.word-mask:nth-of-type(2) > span { transition-delay: 90ms; }
.word-mask:nth-of-type(3) > span { transition-delay: 180ms; }
.word-mask:nth-of-type(4) > span { transition-delay: 270ms; }
.word-mask:nth-of-type(5) > span { transition-delay: 360ms; }
.word-mask:nth-of-type(6) > span { transition-delay: 450ms; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 64px;
  overflow: hidden;
}
/* The glyph and wash are clipped by the hero's bottom edge, which left a hard line
   against the dark band below. Fading the whole backdrop out means the hero ends on
   flat cream and the band's fade has something uniform to start from. */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
}
.hero-bg .glyph {
  position: absolute;
  top: 8%; right: -8%;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(360px, 60vw, 980px);
  line-height: 0.8;
  background: linear-gradient(160deg,
    oklch(0.92 0.005 85) 0%,
    oklch(0.86 0.06 82) 45%,
    oklch(0.78 0.10 80) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  will-change: transform;
}
.hero-bg .wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, oklch(0.78 0.18 82 / 0.18), transparent 55%),
    radial-gradient(ellipse at 30% 80%, oklch(0.65 0.15 75 / 0.10), transparent 60%);
  opacity: 0.85;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 48px;
  gap: 48px;
}
.hero-meta .lede {
  max-width: 600px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-meta .meta-right { text-align: right; color: var(--ink-faint); }
.hero-meta .meta-right .row { display: block; }

@media (max-width: 720px) { .hero { padding: 0 24px 56px; } }

/* Section header */
.section { position: relative; padding: 160px 0; }
.section-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); margin-bottom: 28px; }
.section-eyebrow .num { color: var(--accent); }
.section-eyebrow .rule { flex: none; width: 48px; height: 1px; background: var(--ink-faint); opacity: 0.5; }

/* Credibility bar */
.creds {
  padding: 96px 0;
}
.creds-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}
.creds-line .step {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.creds-line.in .step { opacity: 1; transform: none; }
.creds-line .step:nth-child(1) { transition-delay: 0ms; }
.creds-line .step:nth-child(2) { transition-delay: 100ms; }
.creds-line .step:nth-child(3) { transition-delay: 200ms; }
.creds-line .step:nth-child(4) { transition-delay: 300ms; }
.creds-line .step:nth-child(5) { transition-delay: 400ms; }
.creds-line .step:nth-child(6) { transition-delay: 500ms; }
.creds-line .step:nth-child(7) { transition-delay: 600ms; }
.creds-line .step:nth-child(8) { transition-delay: 700ms; }
.creds-line .step:nth-child(9) { transition-delay: 800ms; }
.creds-line .arrow { color: var(--ink-faint); font-style: italic; font-size: 0.7em; }
.creds-line .name { font-style: italic; }
.creds-line .role { color: var(--ink); font-style: normal; }
.creds-caption { margin-top: 24px; color: var(--ink-faint); max-width: 480px; }

/* Marquee logos */
/* Trusted-by band. The portrait was shot on black, so instead of fighting that the
   whole section becomes a dark field the shot dissolves into, with cream fading in at
   both edges so there is no seam against the sections above and below. */
.marquee-wrap {
  position: relative;
  padding: 240px 0 190px;
  overflow: hidden;
  background: #000;
  color: oklch(0.93 0.006 85);
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 240px;
  z-index: 3;
  pointer-events: none;
}
/* Many stops so the cream eases into the black instead of banding across it. */
.marquee-wrap::before {
  top: -1px;
  background: linear-gradient(to bottom,
    oklch(0.97 0.005 85 / 1)    0%,
    oklch(0.97 0.005 85 / 0.93) 14%,
    oklch(0.97 0.005 85 / 0.78) 29%,
    oklch(0.97 0.005 85 / 0.55) 46%,
    oklch(0.97 0.005 85 / 0.32) 62%,
    oklch(0.97 0.005 85 / 0.14) 78%,
    oklch(0.97 0.005 85 / 0.04) 90%,
    oklch(0.97 0.005 85 / 0)    100%);
}
.marquee-wrap::after {
  bottom: -1px;
  background: linear-gradient(to top,
    oklch(0.97 0.005 85 / 1)    0%,
    oklch(0.97 0.005 85 / 0.93) 14%,
    oklch(0.97 0.005 85 / 0.78) 29%,
    oklch(0.97 0.005 85 / 0.55) 46%,
    oklch(0.97 0.005 85 / 0.32) 62%,
    oklch(0.97 0.005 85 / 0.14) 78%,
    oklch(0.97 0.005 85 / 0.04) 90%,
    oklch(0.97 0.005 85 / 0)    100%);
}

.marquee-head {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.marquee-head::after { content: ""; display: block; clear: both; }

/* Pulled up over the portrait's lower half so the rows sit under the heading rather
   than below the whole figure, and the leftward row travels behind him. */
.marquee-rails {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Mask lives on the rail, not the marquee — the marquee is transformed, so a mask on
   it would slide along with the logos instead of holding still in the viewport. */
.marquee-rail {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, transparent 9%,
    rgb(0 0 0 / 0.28) 19%, rgb(0 0 0 / 0.75) 27%,
    #000 34%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0%, transparent 9%,
    rgb(0 0 0 / 0.28) 19%, rgb(0 0 0 / 0.75) 27%,
    #000 34%, #000 91%, transparent 100%);
}
/* Sits low enough that its lines land beside the torso and pointing arm, where the
   shape-outside polygon actually bites and the wrap reads. */
.marquee-head h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  padding-top: 15%;
  color: oklch(0.95 0.008 85);
}

/* mix-blend-mode: screen drops the shot's black to nothing, so the figure floats on the
   band with no rectangle behind it — including where the edge fades run over it. The
   mask feathers what little edge remains; the polygon is what the copy wraps around. */
/* The float box is deliberately shorter than the photo. It only has to reserve the
   height the heading wraps against; the image overflows below it and into the logo
   rails, which is what lets the rows travel behind him. */
.portrait {
  float: left;
  position: relative;
  z-index: 2; /* logos pass behind him */
  width: clamp(240px, 30vw, 420px);
  height: clamp(190px, 23vw, 320px);
  margin: 0 44px 0 -12px;
  line-height: 0;
  shape-outside: polygon(
    44% 10%, 62% 14%, 70% 38%, 88% 66%,
    84% 88%, 78% 100%, 22% 100%, 26% 66%, 34% 34%
  );
  shape-margin: 24px;
}
.portrait img {
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  mix-blend-mode: screen;
  /* The mask must reach FULL transparency inside the photo's own bounds. This shot's
     backdrop is a lifted vignette (luma 19-40), brighter than his suit (10-17), so
     screen no longer drops it to nothing the way the old darker grade did — any alpha
     surviving at an edge draws the photo's rectangle on the band. Hence the long
     multi-stop falloff ending at 97%, not a single hard stop at 100%. */
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 47% 46%,
    #000 0%, rgb(0 0 0 / 0.92) 34%, rgb(0 0 0 / 0.62) 56%,
    rgb(0 0 0 / 0.28) 74%, rgb(0 0 0 / 0.08) 87%, transparent 97%);
  mask-image: radial-gradient(ellipse 58% 62% at 47% 46%,
    #000 0%, rgb(0 0 0 / 0.92) 34%, rgb(0 0 0 / 0.62) 56%,
    rgb(0 0 0 / 0.28) 74%, rgb(0 0 0 / 0.08) 87%, transparent 97%);
}
.marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeL 60s linear infinite;
  padding: 18px 0;
}
.marquee.right { animation: marqueeR 70s linear infinite; }
.marquee:hover { animation-play-state: paused; }
/* No dividers — on the dark band any rule reads as a hard seam. Spacing separates them. */
.logo-cell {
  flex: none;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 64px;
  padding: 0 44px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: oklch(0.72 0.008 85);
  transition: color 250ms ease-out, transform 250ms ease-out;
  white-space: nowrap;
  cursor: default;
}
/* Brand colours would fight each other and the band; forcing every mark to the same
   white is what makes twenty different logos read as one row. */
.logo-img {
  display: block;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity 250ms ease-out;
}
.logo-img.word { height: 30px; max-width: 190px; object-fit: contain; }
.logo-img.icon { height: 26px; max-width: 26px; object-fit: contain; }
.logo-cell:hover .logo-img { opacity: 1; }

.logo-cell:hover { color: var(--accent); transform: translateY(-2px); }
.logo-cell .dot { color: oklch(0.55 0.008 85); margin-left: 2px; transition: color 250ms ease-out; }
.logo-cell:hover .dot { color: var(--accent); }
.logo-cell .acquired { font-size: 11px; color: oklch(0.55 0.008 85); margin-left: 10px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

@keyframes marqueeL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Pillars */
.pillars { display: flex; flex-direction: column; }
.pillar {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 64px;
  padding: 64px 0;
  align-items: start;
}
.pillar .num {
  font-family: var(--serif);
  font-size: 72px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "lnum";
}
.pillar .num .dot { color: var(--accent); }
.pillar h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 400;
}
.pillar p {
  color: var(--ink-soft);
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
}
.pillar .body ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-faint); font-size: 14px; }
.pillar .body li { padding-left: 18px; position: relative; }
.pillar .body li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
@media (max-width: 980px) {
  .pillar { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .pillar .num { font-size: 56px; }
}

/* Manifesto */
.manifesto { padding: 200px 0; position: relative; }
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 1180px;
}
.manifesto-quote em { font-style: italic; color: var(--accent); }
.manifesto-attr { margin-top: 64px; display: flex; justify-content: space-between; align-items: end; gap: 32px; color: var(--ink-faint); }
.manifesto-attr .signed { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }

/* Engagement */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 1100px;
  margin: 0 auto;
}
.eng-card {
  padding: 64px 56px 72px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  min-height: 420px;
  transition: background 320ms ease-out;
}
.eng-card:last-child { border-right: none; }
.eng-card:hover { background: var(--bg-deep); }
.eng-card .index { color: var(--ink-faint); }
.eng-card h4 { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; line-height: 1.05; font-weight: 400; }
.eng-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.eng-card .meta { margin-top: auto; padding-top: 28px; display: flex; gap: 24px; color: var(--ink-faint); font-size: 12px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.eng-card .meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 980px) {
  .eng-grid { grid-template-columns: 1fr; }
  .eng-card { border-right: none; }
}

/* Contact */
.contact {
  padding: 200px 0 80px;
  text-align: left;
}
.contact .ask {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.contact .ask em { font-style: italic; }
.contact-cta {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  position: relative;
  transition: color 300ms ease-out;
}
.contact-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-cta .arrow { display: inline-block; transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.contact-cta:hover .arrow { transform: translateX(8px); }
.contact-meta { margin-top: 96px; display: flex; justify-content: space-between; gap: 32px; color: var(--ink-faint); font-size: 13px; }
.contact-meta .alt { display: flex; gap: 32px; }

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-faint); font-size: 12px;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 720px) { .footer { padding: 24px; flex-direction: column; gap: 12px; align-items: flex-start; } }

/* Cursor dot — offset off the bottom-right of the native pointer (JS sets the transform) */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%,
      oklch(0.96 0.12 92) 0%,
      oklch(0.86 0.18 84) 38%,
      oklch(0.62 0.18 72) 100%);
  box-shadow:
    0 0 14px oklch(0.82 0.18 82 / 0.55),
    0 0 36px oklch(0.78 0.18 80 / 0.30),
    inset 0 0 4px oklch(0.98 0.10 92 / 0.7);
  pointer-events: none;
  z-index: 100;
  transition: width 240ms ease-out, height 240ms ease-out, opacity 240ms ease-out, box-shadow 240ms ease-out;
  opacity: 0;
  animation: cursorPulse 2.4s ease-in-out infinite;
}
.cursor.active { opacity: 1; }
.cursor.hover {
  width: 44px; height: 44px;
  box-shadow:
    0 0 28px oklch(0.82 0.18 82 / 0.65),
    0 0 64px oklch(0.78 0.18 80 / 0.35),
    inset 0 0 8px oklch(0.98 0.10 92 / 0.7);
}
@keyframes cursorPulse {
  0%, 100% { filter: brightness(1)    saturate(1); }
  50%      { filter: brightness(1.18) saturate(1.15); }
}
@media (hover: none) { .cursor { display: none; } }

/* Parallax holders */
.parallax { will-change: transform; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* Shimmering gold treatment — animated gradient sweep across gold tones */
.gold-shimmer {
  display: inline-block;
  background: linear-gradient(
    100deg,
    oklch(0.50 0.17 68) 0%,
    oklch(0.72 0.20 80) 18%,
    oklch(0.92 0.18 88) 36%,
    oklch(0.78 0.20 82) 50%,
    oklch(0.55 0.18 70) 68%,
    oklch(0.86 0.19 86) 84%,
    oklch(0.62 0.18 74) 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 4.2s cubic-bezier(.5, 0, .5, 1) infinite;
  text-shadow: 0 0 30px oklch(0.78 0.18 82 / 0.18);
  padding-right: 0.04em;
}
@keyframes goldShimmer {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-shimmer { animation: none; background-position: 30% 50%; }
}

/* ================================================================
   Mobile / portrait optimizations
   ================================================================ */

/* Tablet & narrow desktop (≤980px) */
@media (max-width: 980px) {
  .section { padding: 112px 0; }
  .creds { padding: 72px 0; }
  .marquee-wrap { padding: 220px 0 200px; }
  .marquee-wrap::before, .marquee-wrap::after { height: 180px; }
  .marquee-head { padding: 0 32px; margin-bottom: 72px; }
  .manifesto { padding: 140px 0; }
  .contact { padding: 140px 0 64px; }
  .hero-meta { gap: 32px; }
}

/* Phone landscape and small tablets (≤720px) */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .section { padding: 80px 0; }
  .creds { padding: 56px 0; }
  .marquee-wrap { padding: 160px 0 150px; }
  .marquee-wrap::before, .marquee-wrap::after { height: 130px; }
  .marquee-head { padding: 0 24px; margin-bottom: 56px; }
  /* Too narrow to wrap copy around a float — stack it instead. The float box height and
     absolute image only make sense next to text, so both revert to normal flow here. */
  .portrait {
    float: none;
    width: min(70%, 300px);
    height: auto;
    margin: 0 0 28px;
    shape-outside: none;
  }
  .portrait img { position: static; }
  .marquee-head h3 { padding-top: 0; }
  .marquee-rails { margin-top: 36px; }
  /* Nothing on the left to dissolve into once stacked — just soften both ends. */
  .marquee-rail {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  }
  .manifesto { padding: 100px 0; }
  .contact { padding: 100px 0 56px; }

  /* Hero */
  .hero { padding: 0 24px 80px; min-height: 100svh; }
  .hero-bg .glyph {
    top: 4%;
    right: -18%;
    font-size: clamp(280px, 95vw, 560px);
  }
  .hero .display {
    font-size: clamp(48px, 14vw, 96px);
    line-height: 0.94;
  }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 36px;
  }
  .hero-meta .lede { max-width: 100%; font-size: 16px; }
  .hero-meta .meta-right { text-align: left; }

  /* Credibility */
  .creds-line {
    font-size: clamp(26px, 7.2vw, 40px);
    gap: 10px 16px;
  }

  /* Marquee */
  .logo-cell { padding: 0 36px; height: 56px; font-size: 18px; }

  /* Pillars */
  .pillar { padding: 40px 0; gap: 16px; }
  .pillar .num { font-size: 48px; }
  .pillar h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .pillar p { font-size: 16px; }

  /* Manifesto */
  .manifesto-quote { font-size: clamp(30px, 8vw, 48px); }
  .manifesto-attr {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
  }
  .manifesto-attr .signed { font-size: 18px; }

  /* Engagement */
  .eng-grid { border-top: none; }
  .eng-card {
    padding: 40px 28px 48px;
    min-height: 0;
    gap: 18px;
    border-right: none;
  }
  .eng-card:first-child { border-top: 1px solid var(--rule); }
  .eng-card h4 { font-size: 26px; }
  .eng-card .meta { gap: 16px 20px; flex-wrap: wrap; padding-top: 20px; }

  /* Contact */
  .contact .ask { font-size: clamp(40px, 10.5vw, 64px); line-height: 1.0; }
  .contact-cta {
    margin-top: 32px;
    font-size: clamp(20px, 5.2vw, 28px);
    gap: 10px;
    word-break: break-all;
  }
  .contact-meta {
    margin-top: 56px;
    flex-direction: column;
    gap: 12px;
  }
  .contact-meta .alt { gap: 20px; }

  /* Section eyebrow tighter */
  .section-eyebrow { margin-bottom: 20px; }
  .section-eyebrow .rule { width: 32px; }

  /* Bigger tap targets on interactive items */
  .nav .brand,
  .nav .links a,
  .contact-cta,
  .contact-meta a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Compact portrait (≤480px) */
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 0 20px 72px; }
  .nav { padding: 16px 20px; }
  .footer { padding: 20px; }
  .marquee-head { padding: 0 20px; }

  .hero .display { font-size: clamp(44px, 13vw, 72px); }
  .hero-bg .glyph { font-size: clamp(260px, 105vw, 480px); right: -22%; }

  .creds-line { font-size: clamp(22px, 6.8vw, 30px); }

  .pillar .num { font-size: 40px; }

  .manifesto-quote { font-size: clamp(26px, 7.4vw, 38px); }

  .eng-card { padding: 32px 22px 40px; }
  .eng-card h4 { font-size: 24px; }

  .contact .ask { font-size: clamp(36px, 9.5vw, 52px); }
  .contact-cta { font-size: clamp(18px, 5vw, 24px); }
}

/* Disable mix-blend-difference nav on small screens (renders unreliably over the
   warm hero gradient on iOS Safari and can read white-on-light) */
@media (max-width: 720px) {
  .nav { mix-blend-mode: normal; color: var(--ink); }
  .nav .brand .dot { color: var(--accent); }
}
