/* ==========================================================================
   THE MOBILITY PROJECT — editorial design system
   Warm paper, deep ocean, real photography, one serif and one sans.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* Surface — warm coastal paper */
  --paper: #f7f2e8;
  --paper-2: #efe4d0;
  --sand: #dfc69d;
  --white: #ffffff;

  /* Ink & ocean */
  --ink: #09222d;
  --deep: #092732;
  --ocean: #14748d;
  --aqua: #65adba;
  --aqua-light: #bfdde0;
  /* Lighter tint for small text on --deep, so labels clear WCAG AA */
  --aqua-text: #8fcbd6;
  --body: #5a6b70; /* 4.99:1 on --paper; the spec's #66777c was 3.87:1 */

  /* The logo's lavender — the one purple left on the page */
  --accent: #7c5cd6;

  /* Lines */
  --rule: rgba(9, 34, 45, 0.14);
  --rule-soft: rgba(9, 34, 45, 0.08);
  --rule-dark: rgba(247, 242, 232, 0.2);
  --rule-dark-soft: rgba(247, 242, 232, 0.11);

  /* Illustration layer paths, declared once */
  --art-ocean: url("../img/illustration/ocean-foreground.png");
  --art-wave: url("../img/illustration/breaking-wave.png");
  --art-weed: url("../img/illustration/seaweed-corner.png");

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --shell: 1520px;
  --gutter: clamp(20px, 4vw, 72px);
  --masthead-h: 96px;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-ui: 240ms;
  --t-edit: 700ms;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }

/* Paper grain. Fixed, non-interactive, and low enough to read as texture
   rather than noise. One 120px tile, so there is nothing to repaint on
   scroll. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

@media (prefers-reduced-motion: reduce) { .grain { opacity: 0.035; } }

/* ----------------------------------------------------------- typography -- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { font-size: clamp(3rem, 6.6vw, 5.75rem); }
h2 { font-size: clamp(2.15rem, 4.3vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.18; }

em, .italic { font-style: italic; }

p { color: var(--body); }
strong { color: var(--ink); font-weight: 600; }

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.62;
  color: var(--body);
  max-width: 54ch;
}

/* Small uppercase editorial label */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ocean);
}

/* Numbered section marker: 01 / MY STORY */
.marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(34px, 4.6vw, 60px);
}

.marker span:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ocean);
  font-variant-numeric: lining-nums;
}

.marker span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--body);
}

a { color: inherit; }

/* Editorial inline link — underline retracts on hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}

.link:hover { color: var(--ocean); background-size: 0% 1px; }
.link svg { width: 15px; height: 15px; flex: none; }

/* ---------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9.5vw, 156px); }
.section--tight { padding-block: clamp(48px, 6vw, 92px); }
.section--flush-top { padding-top: 0; }

.section--sand { background: var(--paper-2); }

.section--dark {
  background: var(--deep);
  color: var(--paper);
}

/* A desaturated surf frame bleeding in behind a dark section — texture and
   ocean character without decoration. */
.section--washed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--washed > .wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.16;
  filter: saturate(0.5) contrast(1.05);
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 60%, transparent);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--paper); }

.section--dark p { color: rgba(247, 242, 232, 0.74); }
.section--dark strong { color: var(--paper); }
.section--dark .label { color: var(--aqua-text); }
.section--dark .marker { border-bottom-color: var(--rule-dark); }
.section--dark .marker span:first-child { color: var(--aqua-text); }
.section--dark .marker span:last-child { color: rgba(247, 242, 232, 0.62); }
.section--dark .link { color: var(--paper); }
.section--dark .link:hover { color: var(--aqua-text); }

/* 12-column grid for art-directed rows */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color var(--t-ui) var(--ease),
    color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--deep); }

.btn--ocean { background: var(--ocean); color: var(--white); }
.btn--ocean:hover { background: var(--deep); }

/* Header CTA: outlined in ocean, fills on hover. */
.btn--outline {
  background: transparent;
  border-color: var(--ocean);
  color: var(--ocean);
}

.btn--outline:hover { background: var(--ocean); color: var(--white); }

.btn--line { border-color: var(--rule); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: rgba(9, 34, 45, 0.04); }

.btn--sm { padding: 11px 20px; font-size: 0.83rem; }

/* On dark surfaces the solid/line pair inverts */
.section--dark .btn--solid,
.section--dark .btn--ocean,
.on-dark .btn--solid,
.on-dark .btn--ocean { background: var(--paper); color: var(--ink); }

.section--dark .btn--solid:hover,
.section--dark .btn--ocean:hover,
.on-dark .btn--solid:hover,
.on-dark .btn--ocean:hover { background: var(--white); }

.section--dark .btn--outline,
.on-dark .btn--outline { border-color: var(--aqua-text); color: var(--aqua-text); }

.section--dark .btn--outline:hover,
.on-dark .btn--outline:hover { background: var(--aqua-text); color: var(--ink); }

.section--dark .btn--line,
.on-dark .btn--line { border-color: var(--rule-dark); color: var(--paper); }

.section--dark .btn--line:hover,
.on-dark .btn--line:hover {
  border-color: var(--paper);
  background: rgba(247, 242, 232, 0.08);
}

/* Pre-launch state — quiet, never the loudest thing on screen */
.btn.is-pending,
.btn.is-pending:hover {
  cursor: default;
  background: transparent;
  color: var(--body);
  border-color: var(--rule);
}

.section--dark .btn.is-pending,
.section--dark .btn.is-pending:hover,
.on-dark .btn.is-pending,
.on-dark .btn.is-pending:hover {
  color: rgba(247, 242, 232, 0.62);
  border-color: var(--rule-dark);
  background: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cta-group { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.closing .cta-group { align-items: center; }

.cta-note { font-size: 0.82rem; color: var(--body); max-width: 46ch; }

.section--dark .cta-note,
.on-dark .cta-note { color: rgba(247, 242, 232, 0.62); }

/* Campaign state switches, driven by assets/js/config.js */
[data-campaign="pending"] .when-live { display: none !important; }
[data-campaign="live"] .when-pending { display: none !important; }

/* -------------------------------------------------------------- masthead -- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease),
    background-color var(--t-ui) var(--ease);
}

.masthead.is-stuck {
  border-bottom-color: var(--rule);
  background: rgba(247, 242, 232, 0.95);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}

.masthead .shell {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--masthead-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: 54px;
  width: auto;
  transition: opacity var(--t-ui) var(--ease);
}

.brand:hover img { opacity: 0.82; }

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-name b {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-name span {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--body);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  margin-left: auto;
}

.nav a {
  position: relative;
  white-space: nowrap;
  font-size: 0.96rem;
  font-weight: 450;
  color: var(--body);
  text-decoration: none;
  padding-block: 6px;
  transition: color var(--t-ui) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-ui) var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); background: var(--ocean); }

.nav .btn { margin-left: clamp(4px, 1vw, 14px); }
.nav .btn::after { display: none; }
.nav a.btn:hover { color: var(--paper); }
.nav .btn--outline { padding: 13px 26px; font-size: 0.9rem; }
.nav a.btn--outline:hover { color: var(--white); }
.nav a.btn.is-pending:hover { color: var(--body); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: transparent;
  position: relative;
  cursor: pointer;
  flex: none;
}

.burger span {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--t-ui) var(--ease), opacity 140ms linear;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 24px; }

.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--masthead-h) + 24px) var(--gutter) 40px;
  background: var(--paper);
  opacity: 0;
  transition: opacity var(--t-ui) var(--ease);
}

.drawer.is-open { opacity: 1; }

.drawer a {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 7vw, 2rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

.drawer a.is-active { color: var(--ocean); font-style: italic; }

/* `.drawer a` is more specific than `.btn`, so restore the button's box. */
.drawer a.btn {
  margin-top: 30px;
  align-self: flex-start;
  padding: 15px 28px;
  border-bottom: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1;
}

.drawer a.btn.is-pending { border-color: var(--rule); }

/* ------------------------------------------------------------ intro film -- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  overflow: hidden;
  transition: opacity 800ms var(--ease), visibility 800ms;
}

.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keeps the mark and the button legible over any frame of the film. */
.intro-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(9, 34, 45, 0.55), transparent 22%),
    linear-gradient(to top, rgba(9, 34, 45, 0.6), transparent 26%);
}

.intro-mark {
  position: absolute;
  top: max(clamp(20px, 4vw, 44px), env(safe-area-inset-top, 0px) + 18px);
  left: max(clamp(18px, 5vw, 60px), env(safe-area-inset-left, 0px) + 18px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-mark img { height: 34px; width: auto; }

.intro-mark b {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #fff;
}

.intro-skip {
  position: absolute;
  bottom: max(clamp(28px, 4vw, 48px), env(safe-area-inset-bottom, 0px) + 26px);
  right: max(clamp(18px, 5vw, 60px), env(safe-area-inset-right, 0px) + 18px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r);
  background: rgba(9, 34, 45, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-ui) var(--ease),
    border-color var(--t-ui) var(--ease);
}

.intro-skip:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.intro-skip svg { width: 14px; height: 14px; flex: none; }

.intro-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--aqua);
  transition: width 200ms linear;
}

@media (orientation: portrait) and (max-width: 900px) {
  .intro.is-playing video { transform: scale(1.36); }
}

@media (max-width: 640px) {
  .intro-mark img { height: 30px; }
  .intro-mark b { font-size: 0.7rem; letter-spacing: 0.16em; }
  .intro-skip {
    left: max(18px, env(safe-area-inset-left, 0px) + 18px);
    right: max(18px, env(safe-area-inset-right, 0px) + 18px);
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ hero -- */
/* A composed illustration: watercolour layers behind, content above.
   Stacking order — horizon 1, waves 2, botanical 3, content 5, seal 7. */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(720px, calc(100vh - var(--masthead-h)));
  padding-block: clamp(36px, 3.6vw, 60px) clamp(130px, 15vw, 250px);
  overflow: hidden;
}

.hero > .shell { position: relative; z-index: 5; width: 100%; }

/* --- illustration layers --------------------------------------------------- */

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.art {
  position: absolute;
  background-repeat: no-repeat;
}

/* Faint hand-drawn horizon tying the two halves of the hero together */
.art--horizon {
  z-index: 1;
  left: 0;
  right: 0;
  top: 44%;
  height: 40px;
  opacity: 0.16;
  color: var(--ocean);
  mask-image: linear-gradient(to right, #000, transparent 26%, transparent 74%, #000);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 26%, transparent 74%, #000);
}

.art--horizon svg { width: 100%; height: 100%; }

/* Breaking wave entering from beyond the left edge, behind the heading */
.art--wave {
  z-index: 2;
  left: clamp(-200px, -10vw, -120px);
  bottom: clamp(180px, 23vw, 380px);
  width: clamp(300px, 32vw, 560px);
  aspect-ratio: 1100 / 1103;
  opacity: 0.5;
  background-image: var(--art-wave);
  background-image: image-set(
    url("../img/illustration/breaking-wave.webp") type("image/webp"),
    url("../img/illustration/breaking-wave.png") type("image/png")
  );
  background-size: contain;
  background-position: left bottom;
}

/* The layered ocean running the full width along the bottom of the hero */
.art--ocean {
  z-index: 2;
  left: -3vw;
  right: -3vw;
  bottom: -2px;
  height: clamp(190px, 24vw, 400px);
  background-image: var(--art-ocean);
  background-image: image-set(
    url("../img/illustration/ocean-foreground.webp") type("image/webp"),
    url("../img/illustration/ocean-foreground.png") type("image/png")
  );
  background-size: 106% auto;
  background-position: center bottom;
}

/* Botanical rising out of the water at the lower left. Kept clear of the
   botanical already painted into the ocean asset. */
.art--weed {
  z-index: 3;
  left: clamp(-40px, -1.6vw, -10px);
  bottom: clamp(150px, 19vw, 320px);
  width: clamp(104px, 13vw, 225px);
  aspect-ratio: 640 / 647;
  opacity: 0.55;
  background-image: var(--art-weed);
  background-image: image-set(
    url("../img/illustration/seaweed-corner.webp") type("image/webp"),
    url("../img/illustration/seaweed-corner.png") type("image/png")
  );
  background-size: contain;
  background-position: left bottom;
}

/* Two distant birds in the empty cream between the headline and the card */
.art--birds {
  z-index: 3;
  top: clamp(90px, 13vw, 190px);
  left: 48%;
  width: clamp(60px, 6vw, 98px);
  color: var(--aqua);
  opacity: 0.62;
}

.art--birds svg { width: 100%; height: auto; display: block; }

/* --- hero composition ------------------------------------------------------ */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 47fr);
  justify-content: space-between;
  align-items: center;
  gap: clamp(36px, 5vw, 90px);
}

.hero-copy { max-width: 36rem; }

.hero-copy .label { letter-spacing: 0.2em; font-size: 0.78rem; }

/* Small hand-drawn swell under the eyebrow */
.squiggle {
  display: block;
  width: 84px;
  height: 12px;
  margin-block: 14px 26px;
  color: var(--aqua);
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.6vw, 5.75rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 em {
  position: relative;
  display: block;
  color: var(--ocean);
  font-style: italic;
  font-size: 0.94em;
}

/* Imperfect editorial pen stroke under "not a privilege." */
.hero h1 em .stroke {
  position: absolute;
  left: 0;
  bottom: -0.16em;
  width: min(100%, 9.6em);
  height: 0.2em;
  color: var(--aqua);
  overflow: visible;
}

.hero .lede {
  max-width: 34rem;
  margin-bottom: 36px;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.55;
}

/* --- Maria's photograph, mounted like a print ------------------------------ */

.hero-card {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  margin-top: clamp(-8px, -3vw, -56px);
  padding: clamp(10px, 0.9vw, 14px);
  border: 1px solid rgba(223, 198, 157, 0.7);
  border-radius: 22px;
  background: #fbf7ee;
  box-shadow: 0 34px 70px -34px rgba(9, 34, 45, 0.35),
    0 4px 14px -8px rgba(9, 34, 45, 0.16);
}

.hero-card-photo {
  overflow: hidden;
  border-radius: 12px;
  background: var(--sand);
}

.hero-card-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.hero-card-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 6px 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--body);
}

.hero-card-caption b { display: block; color: var(--ink); font-weight: 600; }

.wave-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid var(--aqua-light);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ocean);
}

.wave-dot svg { width: 16px; height: 8px; }

/* The campaign seal, printed over the corner of the mount */
.hero-seal {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 7;
  display: block;
  width: clamp(96px, 11vw, 168px);
  transform: translate(32%, -18%) rotate(-3deg);
  filter: drop-shadow(0 12px 22px rgba(9, 34, 45, 0.24));
  transition: transform var(--t-ui) var(--ease);
}

.hero-seal img { display: block; width: 100%; height: auto; }

.hero-card:hover .hero-seal { transform: translate(32%, -18%) rotate(-3deg) translateY(-2px); }

/* Page heads for the inner routes */
.pagehead { padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px); }
.pagehead h1 { margin-block: 22px; max-width: 18ch; }
.pagehead h1 em { color: var(--ocean); }

.pagehead-figure { margin-top: clamp(36px, 5vw, 64px); }

.pagehead-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  /* Source photos are portrait or square; bias the crop toward the subject. */
  object-position: center 20%;
  border-radius: var(--r);
}

@media (max-width: 720px) {
  .pagehead-figure img { aspect-ratio: 3 / 2; }
}

/* ----------------------------------------------------- credibility strip -- */

.trust { padding-block: clamp(48px, 5.5vw, 88px); }

.credibility {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.credibility > div {
  padding: clamp(26px, 3.2vw, 40px) clamp(22px, 2.6vw, 44px);
  border-left: 1px solid var(--rule-soft);
}

.credibility > div:first-child { border-left: 0; padding-left: 0; }

.section--dark .credibility {
  border-top-color: var(--rule-dark);
  border-bottom-color: var(--rule-dark);
}

.section--dark .credibility > div { border-left-color: rgba(143, 203, 214, 0.28); }
.section--dark .credibility { border-color: rgba(143, 203, 214, 0.35); }
.section--dark .credibility dt { color: var(--paper); }
.section--dark .credibility dd { color: rgba(247, 242, 232, 0.72); }
.section--dark .credibility a { color: var(--aqua-text); }
.section--dark .credibility a:hover { color: var(--paper); }

.credibility dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.credibility dd { font-size: 0.96rem; line-height: 1.55; color: var(--body); max-width: 34ch; }

.credibility a {
  color: var(--ocean);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.credibility a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .credibility > div {
    border-left: 0;
    padding-inline: 0;
    border-top: 1px solid var(--rule-soft);
  }
  .credibility > div:first-child { border-top: 0; }
  .section--dark .credibility > div { border-top-color: var(--rule-dark-soft); }
  .section--dark .credibility > div:first-child { border-top: 0; }
}

/* ------------------------------------------------------------ photo band -- */

.band {
  position: relative;
  isolation: isolate;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(48px, 8vw, 110px);
  overflow: hidden;
}

.band-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(9, 34, 45, 0.88) 0%,
    rgba(9, 34, 45, 0.55) 46%,
    rgba(9, 34, 45, 0.28) 100%
  );
}

.band blockquote {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--paper);
}

.band cite {
  display: block;
  margin-top: 24px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.7);
}

/* A single drawn stroke — the only non-photographic ocean reference. */
.wave-rule {
  display: block;
  width: 100%;
  height: 22px;
  color: var(--ocean);
  opacity: 0.4;
}

.section--dark .wave-rule { color: var(--aqua); opacity: 0.5; }

/* ---------------------------------------------------------------- figures -- */

.figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r);
}

.figure--tall img { aspect-ratio: 3 / 4; }
.figure--wide img { aspect-ratio: 16 / 9; }

@media (min-width: 861px) {
  .row .figure--tall img { aspect-ratio: 4 / 5; max-height: 620px; }
  .row .figure--wide img { max-height: 520px; }
}

.prose > * + * { margin-top: 20px; }
.prose p { font-size: 1.02rem; line-height: 1.7; max-width: 68ch; }

/* Pull quote — an emotional beat inside a run of body copy */
.pullquote {
  margin-block: clamp(52px, 6.5vw, 96px);
  padding-left: clamp(0px, 4vw, 96px);
  border: 0;
  max-width: 46rem;
}

.pullquote p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: none;
  text-wrap: balance;
}

.pullquote footer {
  margin-top: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--body);
}

/* Editorial two-column rows */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
}

.row + .row { margin-top: clamp(56px, 7vw, 104px); }
.row--reverse > .figure { order: 2; }

.row-body { max-width: 40rem; }

/* Every other row lets the image run wider than its text counterpart. */
@media (min-width: 1100px) {
  .row--wide { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
  .row--wide.row--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
  .row--wide.row--reverse > .figure { order: 2; }
}
.row-body .label { margin-bottom: 16px; }
.row-body h3 { margin-bottom: 16px; }
.row-body .link { margin-top: 10px; }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row--reverse > .figure { order: 0; }
}

/* ------------------------------------------------------------------ facts -- */

.facts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--rule);
}

.facts-row > div {
  padding-top: clamp(22px, 3vw, 32px);
  padding-left: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--rule-soft);
}

.facts-row > div:first-child { border-left: 0; padding-left: 0; }

.facts-row b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

.facts-row span {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--body);
  max-width: 22ch;
}

/* Plain attribute list */
.attr-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}

.attr-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.93rem;
  color: var(--body);
}

/* ----------------------------------------------------------------- impact -- */

.impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--rule);
}

.impact > div {
  padding-top: clamp(28px, 3.4vw, 44px);
  padding-left: clamp(20px, 2.6vw, 40px);
  padding-right: clamp(20px, 2.6vw, 40px);
  border-left: 1px solid var(--rule-soft);
}

.section--dark .impact { border-top-color: var(--rule-dark); }
.section--dark .impact > div { border-left-color: var(--rule-dark-soft); }

.impact > div:first-child { border-left: 0; padding-left: 0; }
.impact h3 { margin-bottom: 12px; }
.impact p { font-size: 0.96rem; }

@media (max-width: 700px) {
  .impact > div {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--rule-soft);
    padding-top: 26px;
  }
  .impact > div:first-child { border-top: 0; }
  .section--dark .impact > div { border-top-color: var(--rule-dark-soft); }
  .section--dark .impact > div:first-child { border-top: 0; }
}

/* --------------------------------------------------------- campaign steps -- */

/* Status strip — for work announced but not yet shipped */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ocean);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--paper-2);
}

.notice .label { flex: none; }
.notice p { font-size: 0.96rem; margin: 0; max-width: 70ch; }

.section--dark .notice {
  border-color: var(--rule-dark);
  border-left-color: var(--aqua-text);
  background: rgba(247, 242, 232, 0.05);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0;
  padding: 0;
}

.steps > li {
  list-style: none;
  padding-top: clamp(26px, 3vw, 38px);
  padding-right: clamp(20px, 2.4vw, 40px);
  border-top: 1px solid var(--rule);
}

.steps > li b {
  display: block;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ocean);
  margin-bottom: 14px;
}

.section--dark .steps > li { border-top-color: var(--rule-dark); }
.section--dark .steps > li b { color: var(--aqua-text); }

.steps > li h3 { font-size: 1.16rem; margin-bottom: 10px; }
.steps > li p { font-size: 0.95rem; }

/* ------------------------------------------------------------------ cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(26px, 3vw, 44px);
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.card-media {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--sand);
}

.card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.card:hover .card-media img { transform: scale(1.02); }

/* Book covers are portrait artwork — show them whole on a sand ground rather
   than cropping the title away. */
.card-media--art { background: var(--sand); }

.card-media--art img {
  object-fit: contain;
  padding: clamp(18px, 2.2vw, 30px);
}

.card-body { padding-top: 18px; }
.card-body .label { margin-bottom: 10px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.94rem; }
.card-body .link { margin-top: 14px; }

/* Interviews — editorial media objects */
.video-item + .video-item { margin-top: clamp(44px, 6vw, 76px); }

.video-frame {
  background: var(--ink);
  border-radius: var(--r);
  overflow: hidden;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--ink);
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
}

.video-meta h3 { max-width: 34ch; }

@media (min-width: 900px) {
  .video-item {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: clamp(28px, 3.5vw, 56px);
    align-items: start;
  }

  .video-meta {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Books */
.book {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 4.6vw, 64px);
  border-top: 1px solid var(--rule);
}

.book:last-child { border-bottom: 1px solid var(--rule); }
.book-cover img { width: 100%; height: auto; border-radius: var(--r-sm); }
.book-info h3 { margin-block: 12px 6px; }

.book-info .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--body);
  margin-bottom: 16px;
}

.book-info p { margin-bottom: 20px; max-width: 68ch; }

@media (max-width: 620px) {
  .book { grid-template-columns: 1fr; }
  .book-cover { max-width: 200px; }
}

/* Competitions */

.result {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--rule);
}

.result-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--r-sm);
}

.result .label { margin-bottom: 10px; }
.result h3 { margin-bottom: 6px; }
.result p { font-size: 0.94rem; }

.result-place {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1;
  color: var(--ocean);
  white-space: nowrap;
  text-align: right;
}

.result-place small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--body);
}

@media (max-width: 760px) {
  .result { grid-template-columns: 110px minmax(0, 1fr); }
  .result-place { grid-column: 2; text-align: left; }
}

/* Ranking callout */
.ranking {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-block: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.ranking b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--ink);
}

.ranking span { font-size: 0.92rem; color: var(--body); }

/* ---------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}

/* Stagger the strip so it does not read as four identical tiles. */
@media (min-width: 900px) {
  .gallery button:nth-child(even) { margin-top: clamp(20px, 3vw, 52px); }
}

.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--r);
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.gallery button:hover img { transform: scale(1.02); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 5vmin;
  background: rgba(9, 34, 45, 0.95);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-ui) var(--ease), visibility var(--t-ui) var(--ease);
}

.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox.is-visible { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 242, 232, 0.3);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color var(--t-ui) var(--ease);
}

.lightbox-close:hover { background: rgba(247, 242, 232, 0.12); }

/* -------------------------------------------------------------- final CTA -- */

.closing {
  position: relative;
  isolation: isolate;
  padding-block: clamp(80px, 11vw, 170px);
  overflow: hidden;
  text-align: center;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 34, 45, 0.84);
}

.closing h2 { max-width: 15ch; margin-inline: auto; color: var(--paper); font-size: clamp(2.4rem, 5.2vw, 4.2rem); }

.closing p {
  max-width: 46ch;
  margin: 22px auto 0;
  color: rgba(247, 242, 232, 0.78);
}

.closing .actions { justify-content: center; margin-top: 36px; }

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding-block: clamp(48px, 6vw, 80px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.footer-brand img { height: 84px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--body);
  text-decoration: none;
  transition: color var(--t-ui) var(--ease);
}

.footer-col a:hover { color: var(--ocean); }

.socials { display: flex; gap: 20px; margin-top: 24px; }
.socials a { color: var(--body); transition: color var(--t-ui) var(--ease); }
.socials a:hover { color: var(--ocean); }
.socials svg { width: 19px; height: 19px; display: block; }

.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8rem;
  color: var(--body);
}

/* ------------------------------------------------------------- animation -- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-edit) var(--ease), transform var(--t-edit) var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

#view { animation: viewIn 420ms var(--ease) both; }
#view:focus { outline: none; }

@keyframes viewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1040px) {
  .col-5, .col-6, .col-7 { grid-column: span 12; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .drawer { display: flex; }
  .drawer:not(.is-open) { visibility: hidden; pointer-events: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-copy { max-width: none; padding-top: 0; }
}

@media (max-width: 640px) {
  :root { --masthead-h: 74px; }
  .brand img { height: 36px; }
  .brand-name b { font-size: 0.82rem; }
  .brand-name span { font-size: 0.78rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .band blockquote { max-width: none; }

  /* Small caps labels need a touch more size on a phone. */
  .label,
  .marker span:last-child,
  .credibility dt,
  .footer-col h4 { font-size: 0.75rem; }

  /* Standalone links become proper touch targets (inline links in running
     text are exempt and stay as they are). */
  .link {
    min-height: 44px;
    align-items: center;
    padding-block: 8px 11px;
  }

  .footer-col a { padding-block: 11px; }

  .socials { gap: 12px; }

  .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -10px;
  }

  .result-figure img { aspect-ratio: 1 / 1; }
  .result { grid-template-columns: 128px minmax(0, 1fr); }
}

/* ----------------------------------------------------------------- a11y -- */

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.section--dark :where(a, button):focus-visible,
.band :where(a, button):focus-visible,
.closing :where(a, button):focus-visible,
.lightbox :where(a, button):focus-visible { outline-color: var(--aqua); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------- illustrated hero: responsive */

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding-block: clamp(28px, 6vw, 48px) clamp(150px, 34vw, 240px);
  }

  .hero-grid { grid-template-columns: 1fr; gap: clamp(30px, 7vw, 48px); }
  .hero-copy { max-width: none; }

  .hero-card {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }

  /* The framing wave competes with the headline once the columns stack. */
  .art--wave { opacity: 0.24; width: clamp(220px, 42vw, 320px); bottom: auto; top: 30vw; }
  .art--weed { opacity: 0.4; bottom: clamp(120px, 28vw, 200px); }
  .art--birds { display: none; }
  .art--horizon { display: none; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: clamp(140px, 42vw, 210px); }

  .hero h1 { font-size: clamp(3.25rem, 15vw, 4.25rem); line-height: 0.96; }
  .hero-copy .label { font-size: 0.75rem; }
  .squiggle { width: 68px; margin-block: 12px 20px; }

  /* Keep the seal inside the viewport now that the card is full width. */
  .hero-seal {
    width: clamp(88px, 26vw, 110px);
    transform: translate(14%, -16%) rotate(-3deg);
  }

  .hero-card:hover .hero-seal { transform: translate(14%, -16%) rotate(-3deg); }

  /* Show a fuller slice of the painting rather than a thin strip. */
  .art--ocean {
    height: clamp(150px, 44vw, 210px);
    background-size: 210% auto;
    background-position: 66% bottom;
  }

  .art--weed { width: clamp(88px, 24vw, 130px); left: -22px; }
}
