/* ════════════════════════════════════════════════════════════════
   The Toy Cartel — Design System
   Production stylesheet.
   ──────────────────────────────────────────────────────────────── */


/* ════════════════════════════════════════════════════════════════
   1 · TOKENS
   ──────────────────────────────────────────────────────────────── */
:root {
  /* --- color ----------------------------------------------- */
  --c-navy:        #0B2654;
  --c-navy-dark:   #091D3E;
  --c-navy-line:   rgba(11,38,84,0.18);
  --c-pink:        #C5205E;
  --c-pink-deep:   #A01B4E;        /* darker rose — for tertiary text links on light surfaces (7.6:1 on white) */
  --c-pink-soft:   #DF6AA8;
  --c-pink-pale:   #FBE6EE;
  --c-lime:        #D1DD25;
  --c-lime-light:  #F5FAC8;
  --c-white:       #FFFFFF;
  --c-cream:       #EDE8F5;        /* paper — soft lavender */
  --c-warm-grey:   #E8E3F0;        /* off-paper — slightly deeper lilac for section contrast */
  --c-off-white:   #FAFAF9;
  --c-body:        #212121;
  --c-body-soft:   #545B73;
  --c-border:      #E4E0F0;

  /* --- type ------------------------------------------------ */
  --f-head: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-hand: 'Caveat', 'Bradley Hand', cursive;

  --t-mono-xs:  10px;
  --t-mono-sm:  11px;
  --t-mono:     12px;
  --t-body-sm:  13px;
  --t-body:     15px;
  --t-body-lg:  17px;
  --t-lead:     22px;
  --t-h4:       20px;
  --t-h3:       28px;
  --t-h2:       clamp(36px, 4.6vw, 60px);
  --t-h1:       clamp(56px, 9vw, 144px);
  --t-display:  clamp(72px, 11vw, 168px);

  --lh-tight:   0.9;
  --lh-snug:    1.1;
  --lh-body:    1.65;
  --ls-tight:   -0.04em;
  --ls-mono:    0.14em;

  /* --- space ----------------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;
  --s-12: 120px;

  /* --- radius (kept tight; this is paper, not glass) ------- */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* --- borders & shadows ----------------------------------- */
  --bw-poster: 3px;
  --shadow-poster:        12px 12px 0 var(--c-pink);
  --shadow-poster-left:  -12px 12px 0 var(--c-pink);
  --shadow-card:          4px 6px 0 var(--c-navy);
  --shadow-sticky:        4px 6px 12px rgba(0,0,0,0.16);
  --shadow-lift:          0 20px 40px -12px rgba(11,38,84,0.32);

  /* --- layout ---------------------------------------------- */
  --w-content: 1200px;
  --w-narrow:  760px;
  --gutter:    56px;

  /* --- motion ---------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 320ms;
}


/* ════════════════════════════════════════════════════════════════
   2 · FONT FACES
   ──────────────────────────────────────────────────────────────── */
/* Self-host in production; fallback to Google for staging. Paths
   below assume /fonts/ at site root (same as dist/styles/global.css). */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/AtkinsonHyperlegibleNext[wght].woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/AtkinsonHyperlegibleNext-Italic[wght].woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


/* ════════════════════════════════════════════════════════════════
   3 · RESET + BASE
   ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-navy);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: var(--c-pink-deep); text-decoration: none; }
a:hover { color: var(--c-pink-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
/* Dark-surface link hover override — pink-soft only passes contrast on navy */
.poster--dark a:hover,
.site-footer a:hover { color: var(--c-pink-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Focus on dark/navy backgrounds — switch to lime for contrast */
.poster--dark a:focus-visible,
.poster--dark button:focus-visible,
.poster--dark input:focus-visible,
.poster--dark textarea:focus-visible,
.poster--dark select:focus-visible,
.poster--dark summary:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--c-lime);
}

/* scroll-margin so sticky header doesn't obscure programmatically-focused elements */
#form-success, #form-error, #main { scroll-margin-top: 96px; }
/* main is focused via skip-link; suppress the outline ring on the container itself */
#main:focus { outline: none; }
#main:focus-visible { outline: none; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: var(--s-4);
  top: var(--s-4);
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  overflow: visible;
  z-index: 1000;
  background: var(--c-lime);
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-family: var(--f-head);
  font-weight: 800;
  box-shadow: var(--shadow-sticky);
}

/* paper grain — applied to <body> on marketing pages */
.paper {
  position: relative;
  background: var(--c-cream);
}
.paper::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(circle, var(--c-navy) 1px, transparent 1.4px),
    radial-gradient(circle, var(--c-pink) 1px, transparent 1.4px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 3px 3px;
  z-index: 0;
}
.paper > * { position: relative; z-index: 1; }


/* ════════════════════════════════════════════════════════════════
   4 · TYPE SCALE
   ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  color: var(--c-navy);
  margin: 0 0 0.4em;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1.display, .h-display {
  font-size: var(--t-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
h1, .h1 { font-size: var(--t-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2, .h2 { font-size: var(--t-h2); font-weight: 800; }
h3, .h3 { font-size: var(--t-h3); font-weight: 700; }
h4, .h4 { font-size: var(--t-h4); font-weight: 700; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--c-navy);
}
.body { font-family: var(--f-body); color: var(--c-body); }

/* eyebrow — pink dot + uppercase mono-ish heading face */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-pink);
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--c-pink);
  border-radius: 50%;
  flex-shrink: 0;
}
.eyebrow--navy { color: var(--c-navy); }
.eyebrow--navy::before { background: var(--c-navy); }
.eyebrow--lime { color: var(--c-navy); }
.eyebrow--lime::before { background: var(--c-lime); }
.eyebrow--light { color: var(--c-pink-soft); }
.eyebrow--light::before { background: var(--c-pink-soft); }

/* ※ marker kicker — used above poster headings */
.marker {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-pink);
}
.marker--light { color: var(--c-pink-soft); }

/* pink-fill emphasis — the SAFE highlight pattern (replaces line-through) */
.pink-fill {
  display: inline-block;
  background: var(--c-pink);
  color: var(--c-white);
  padding: 0 0.4ch;
  transform: skewX(-4deg);
}
.pink-fill > * { display: inline-block; transform: skewX(4deg); }
.pink-fill--lime { background: var(--c-lime); color: var(--c-navy); }


/* ════════════════════════════════════════════════════════════════
   5 · LAYOUT
   ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--w-content);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--w-narrow); }
.container--wide   { max-width: 1320px; }

.section { padding-block: var(--s-12); }
.section--compact { padding-block: var(--s-10); }


/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES
   ──────────────────────────────────────────────────────────────── */
.legal-hero {
  padding-block: 52px 56px;
}
.legal-hero .reveal {
  opacity: 1;
  transform: none;
}
.legal-hero h1 {
  max-width: 980px;
  margin: 14px 0 16px;
  color: var(--c-white);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-family: var(--f-head);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 650;
}
.legal-section {
  padding-block: 56px 96px;
}
.legal-document {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 800px);
  align-items: start;
  gap: 48px;
}
.legal-summary {
  position: sticky;
  top: 104px;
  background: var(--c-white);
  border: 3px solid var(--c-navy);
  box-shadow: 8px 8px 0 var(--c-pink);
  padding: 28px;
}
.legal-summary h2 {
  margin: 12px 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.legal-summary p {
  color: var(--c-body);
  font-size: 15px;
  line-height: 1.65;
}
.legal-facts {
  margin: 24px 0 26px;
  border-top: 2px solid var(--c-navy);
  position: relative;
  z-index: 1;
}
.legal-facts div {
  padding: 13px 0;
  border-bottom: 1px solid var(--c-navy-line);
}
.legal-facts dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 2px;
}
.legal-facts dd {
  margin: 0;
  color: var(--c-navy);
  font-family: var(--f-head);
  font-weight: 750;
  font-size: 15px;
  line-height: 1.35;
}
.legal-content {
  counter-reset: legal-section;
  background: var(--c-white);
  border: 3px solid var(--c-navy);
  padding: 48px 56px 56px;
  box-shadow: 0 1px 0 rgba(11,38,84,0.04);
}
.legal-content h2 {
  counter-increment: legal-section;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  margin: 44px 0 16px;
  padding-top: 28px;
  border-top: 2px solid var(--c-navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-content h2::before {
  content: counter(legal-section, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-pink);
}
.legal-content p,
.legal-content li {
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.78;
}
.legal-content p {
  max-width: 68ch;
}
.legal-content ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
}
.legal-content li {
  position: relative;
  padding-left: 26px;
}
.legal-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-pink);
  font-family: var(--f-head);
  font-weight: 800;
}
.legal-content code {
  padding: 2px 5px;
  border: 1px solid var(--c-border);
  background: var(--c-cream);
  border-radius: var(--r-sm);
  color: var(--c-navy);
  font-size: 0.92em;
}


/* ════════════════════════════════════════════════════════════════
   6 · POSTER PANEL  · the signature primitive
   ──────────────────────────────────────────────────────────────── */
.poster {
  background: var(--c-white);
  border: var(--bw-poster) solid var(--c-navy);
  padding: 52px 56px;
  position: relative;
  box-shadow: var(--shadow-poster);
}
.poster--dark      { background: var(--c-navy); color: var(--c-white); }
.poster--dark h1, .poster--dark h2, .poster--dark h3 { color: var(--c-white); }
.poster--cream     { background: var(--c-cream); }
.poster--left      { box-shadow: var(--shadow-poster-left); }
.poster--tilt-l    { transform: rotate(-0.6deg); }
.poster--tilt-r    { transform: rotate( 0.5deg); }
.poster--tilt-sm   { transform: rotate(-0.3deg); }

/* corner stamp tag — sits in the negative space above the panel */
.poster-tag {
  position: absolute;
  top: -18px;
  right: 48px;
  transform: rotate(4deg);
  background: var(--c-pink);
  color: var(--c-white);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  white-space: nowrap;
}
.poster-tag--left  { left: 48px; right: auto; transform: rotate(-4deg); }
.poster-tag--navy  { background: var(--c-navy); }
.poster-tag--lime  { background: var(--c-lime); color: var(--c-navy); }


/* ════════════════════════════════════════════════════════════════
   7 · BUTTONS
   ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-md);
  padding: 15px 24px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 2px solid transparent;
  background: transparent;
  color: var(--c-navy);
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur-fast);
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-pink);
  color: var(--c-white);
  border-color: var(--c-pink);
}
.btn--primary:hover {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}
/* On navy surfaces, hover to navy is invisible — swap to white-fill / navy-text.
   Add this modifier wherever btn--primary sits on a navy background. */
.btn--primary.on-dark:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-navy);
}
.btn--secondary {
  border-color: var(--c-navy);
  color: var(--c-navy);
}
.btn--secondary:hover {
  background: var(--c-navy);
  color: var(--c-white);
}
.btn--ghost-light {
  border-color: var(--c-white);
  color: var(--c-white);
}
.btn--ghost-light:hover {
  background: var(--c-white);
  color: var(--c-navy);
}
.btn--lime {
  background: var(--c-lime);
  color: var(--c-navy);
  border-color: var(--c-lime);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* link-arrow — inline tertiary action */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-pink-deep);
  text-transform: none;
  text-decoration: none;
  letter-spacing: 0;
}
.link-arrow::after { content: '→' / ''; transition: transform var(--dur); }
.link-arrow:hover { color: var(--c-pink-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* sticker — tertiary CTA, lime tab with navy ink and hard-offset shadow.
   Use on list rows for "Learn more"-style actions. Approved lime role (see DESIGN.md). */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-lime);
  color: var(--c-navy);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 18px;
  border: 2px solid var(--c-navy);
  border-radius: var(--r-sm);
  text-decoration: none;
  transform: rotate(1.4deg);
  box-shadow: 4px 4px 0 var(--c-navy);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  min-height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
}
.sticker::after { content: '→'; font-size: 16px; line-height: 1; transition: transform var(--dur); }
.sticker:hover {
  transform: rotate(0deg) translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--c-navy);
  color: var(--c-navy);
}
.sticker:hover::after { transform: translateX(3px); }
.sticker:focus-visible { outline: 3px solid var(--c-pink); outline-offset: 4px; }
.sticker--tilt-l { transform: rotate(-1.2deg); }
.sticker--tilt-l:hover { transform: rotate(0deg) translate(2px, 2px); }
@media (prefers-reduced-motion: reduce) {
  .sticker, .sticker::after { transform: none !important; transition: none !important; }
  .sticker:hover, .sticker:hover::after { transform: none !important; }
}


/* ════════════════════════════════════════════════════════════════
   8 · FORMS
   ──────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 22px; }
.field-label {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field-label .opt {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-body-soft);
  margin-left: 6px;
}
.field-label .req {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-pink-deep);
  margin-left: 6px;
}
.input, .textarea, select.input {
  border-radius: var(--r-sm);
}
.input, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-navy);
  background: var(--c-white);
  border: 2px solid var(--c-navy);
  border-radius: var(--r-sm);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input::placeholder, .textarea::placeholder { color: var(--c-body-soft); }
/* Custom select arrow — SVG data URI is reliable across iOS Safari, Android, and desktop */
.select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B2654' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.input:focus, .textarea:focus, select.input:focus {
  border-color: var(--c-pink);
  box-shadow: 4px 4px 0 var(--c-pink);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field--error .input, .field--error .textarea { border-color: var(--c-pink); }
.field-error {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-pink-deep);
}
.field-error:empty { display: none; }
.field-help {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-body-soft);
}


/* ════════════════════════════════════════════════════════════════
   9 · HEADER + NAV
   ──────────────────────────────────────────────────────────────── */
.site-header {
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-navy);
}
.site-header--dark { background: var(--c-navy); color: var(--c-white); }
.site-logo img { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: inherit;
  transition: color var(--dur);
}
.nav-links a:hover { color: var(--c-pink); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"] {
  background: var(--c-lime);
  padding: 2px 10px;
  color: var(--c-navy);
  transform: skewX(-4deg);
  display: inline-block;
}
.nav-links a[aria-current="page"] > span,
.nav-links a[aria-current="true"] > span { display: inline-block; transform: skewX(4deg); }
.nav-cta {
  background: var(--c-pink);
  color: var(--c-white);
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  transition: background var(--dur);
}
.nav-cta:hover { background: var(--c-navy); color: var(--c-white); }


/* ════════════════════════════════════════════════════════════════
   10 · CARDS
   ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--c-white);
  border: 2px solid var(--c-navy);
  padding: 24px 28px;
  position: relative;
  border-radius: var(--r-sm);
}
.card--shadow { box-shadow: var(--shadow-card); }
.card--soft   { border-color: var(--c-border); border-width: 1px; }

/* ─── Stretched link — accessible "whole card clickable" pattern ───
   Place .stretch-link on the actual title anchor; parent gets
   position: relative. The ::after expands the link's hit area to fill
   the parent without affecting the accessible name or text selection.
   Pair with `data-stretch-link` to enable drag-to-select detection
   (see scripts/stretch-link.js).
   ─────────────────────────────────────────────────────────────── */
/* IMPORTANT: .stretch-link itself is NOT position:relative — that would trap
   the ::after inside the link's own bounding box. The link's ancestor card
   provides the position:relative, so the ::after climbs out to fill the card. */
.stretch-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* project card — index/teaser */
.project-card {
  background: var(--c-white);
  border: var(--bw-poster) solid var(--c-navy);
  border-radius: var(--r-sm);
  display: grid;
  grid-template-rows: 280px 1fr;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--c-pink);
  transition: transform var(--dur), box-shadow var(--dur);
}
.project-card:hover,
.project-card:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 14px 14px 0 var(--c-pink);
}
/* When the stretched link is focused, lift the whole card and show a ring on it */
.project-card:focus-within { outline: 3px solid var(--c-pink); outline-offset: 4px; }
.project-card .stretch-link:focus-visible { outline: none; } /* card owns the ring */
.project-card-title-link {
  color: var(--c-navy);
  text-decoration: none;
}
.project-card-title-link:hover { color: var(--c-pink-deep); }
.project-card-img {
  background-size: cover;
  background-position: center;
  background-color: var(--c-navy);
  position: relative;
  overflow: hidden;
}
.project-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--c-pink);
  color: var(--c-white);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transform: rotate(-2deg);
}
.project-card-tag--navy { background: var(--c-navy); }
.project-card-tag--lime { background: var(--c-lime); color: var(--c-navy); }
.project-card-body { padding: 28px 32px 32px; }
.project-card-body h3 { font-size: 26px; margin-bottom: 10px; }
.project-card-body p {
  font-size: 15px; color: var(--c-body); line-height: 1.6;
  margin-bottom: 16px;
}
.product-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.products-index-hero {
  padding: 60px 56px 64px;
}
.products-index-hero h1 {
  color: var(--c-white);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 1040px;
  margin: 22px 0 0;
}
.products-index-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  gap: 28px;
  align-items: end;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(223, 106, 168, 0.42);
}
.products-index-hero-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}
.products-index-list {
  padding: 56px var(--gutter) 40px;
}
.products-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.products-index-heading h2 {
  margin: 10px 0 0;
}
.products-index-heading p {
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.product-index-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 0;
  align-items: stretch;
  border: var(--bw-poster) solid var(--c-navy);
  border-radius: var(--r-sm);
  background: var(--c-white);
  box-shadow: 10px 10px 0 var(--c-pink);
  overflow: hidden;
  margin-bottom: 32px;
}
.product-index-feature--morning {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  box-shadow: -10px 10px 0 var(--c-pink);
}
.product-index-feature--morning .product-index-media {
  order: 2;
}
.product-index-media {
  display: block;
  min-height: 420px;
  background: var(--c-navy);
  overflow: hidden;
}
.product-index-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.product-index-media:hover img {
  transform: scale(1.035);
}
.product-index-body {
  padding: 42px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-index-kicker {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 14px;
}
.product-index-body h3 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.product-index-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
  margin: 0 0 22px;
}
.product-index-points {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.product-index-points li {
  position: relative;
  padding-left: 22px;
  color: var(--c-navy);
  font-size: 14px;
  line-height: 1.55;
}
.product-index-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-pink);
  font-weight: 800;
}
.products-index-close {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 32px 0 0;
  border-top: 2px solid var(--c-navy);
}
.products-index-close h2 {
  margin: 10px 0 10px;
}
.products-index-close p {
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}


/* ════════════════════════════════════════════════════════════════
   11 · INDEX ROW · numbered list of work / insights
   ──────────────────────────────────────────────────────────────── */
.index-row {
  display: grid;
  grid-template-columns: 70px 1fr 220px;
  gap: 32px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--c-navy-line);
}
.index-row:first-child { border-top: 2px solid var(--c-navy); }
.index-row-num {
  font-family: var(--f-head);
  font-weight: 400;
  font-style: italic;
  font-size: 30px;
  color: var(--c-pink);
}
.index-row-title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--c-navy);
  margin: 0 0 4px;
}
.index-row-body {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--c-body);
  margin: 0;
  max-width: 720px;
}
.index-row-meta {
  text-align: right;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11, 38, 84, 0.6);
}


/* ════════════════════════════════════════════════════════════════
   12 · ARTICLES OF FAITH · roman-numeral list
   ──────────────────────────────────────────────────────────────── */
.faith {
  border-top: 2px solid var(--c-navy);
  margin-top: 14px;
}
.faith-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-navy-line);
}
.faith-num {
  font-family: var(--f-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  color: var(--c-pink);
}
.faith-text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.3;
  color: var(--c-navy);
}


/* ════════════════════════════════════════════════════════════════
   13 · STAMP
   ──────────────────────────────────────────────────────────────── */
.stamp {
  display: inline-block;
  border: 3px solid var(--c-pink);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  background: rgba(255,255,255,0.55);
  color: var(--c-pink);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
  transform: rotate(-8deg);
}
.stamp small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-top: 2px;
  opacity: 0.75;
}
.stamp--navy { border-color: var(--c-navy); color: var(--c-navy); transform: rotate(6deg); }
.stamp--lime { border-color: var(--c-navy); color: var(--c-navy); background: var(--c-lime); }


/* ════════════════════════════════════════════════════════════════
   14 · HAND-EDIT MARGIN NOTE
   ──────────────────────────────────────────────────────────────── */
.hand-note {
  font-family: var(--f-hand);
  font-size: 22px;
  line-height: 1.15;
  color: var(--c-pink);
  transform: rotate(-3deg);
  display: block;
  max-width: 240px;
}
.hand-note--navy { color: var(--c-navy); }
.hand-note--rotate-r { transform: rotate(3deg); }
.hand-note-kicker {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 4px;
  display: block;
}


/* ════════════════════════════════════════════════════════════════
   15 · DOC HEADER · mono filing strip
   ──────────────────────────────────────────────────────────────── */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 2px solid var(--c-navy);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-navy);
  flex-wrap: wrap;
}
.doc-header strong { color: var(--c-pink); }


/* ════════════════════════════════════════════════════════════════
   16 · CALLOUTS + BLOCKQUOTE
   ──────────────────────────────────────────────────────────────── */
.callout {
  background: var(--c-lime-light);
  border: 2px solid var(--c-lime);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-navy);
}
.callout--pink { background: var(--c-pink-pale); border-color: var(--c-pink); }
.callout--navy { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: var(--c-white); }

blockquote {
  margin: 0;
  padding: 20px 0 20px 28px;
  border-left: 4px solid var(--c-pink);
  font-family: var(--f-head);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: var(--c-navy);
  letter-spacing: -0.01em;
}
blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink);
}


/* ════════════════════════════════════════════════════════════════
   17 · TIMELINE · numbered process steps
   ──────────────────────────────────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.timeline-step { position: relative; }
.timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 2px solid var(--c-navy);
  border-radius: 50%;
  background: var(--c-cream);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--c-navy);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px; left: 52px; right: -24px;
  height: 2px;
  background: var(--c-navy-line);
  z-index: 1;
}
.timeline-step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-step p { font-size: 13px; line-height: 1.55; color: var(--c-body); }


/* ────────────────────────────────────────────────────────────────
   17b · PROCESS STEPS · scrapbook treatment
   Numbered cards with alternating tilt and alternating sticker colour.
   Used on the homepage "How We Work" section.
   ──────────────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 36px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-step {
  background: var(--c-white);
  border: 2px solid var(--c-navy);
  border-radius: var(--r-sm);
  padding: 22px 22px 24px;
  position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.process-step:nth-child(odd)  { transform: rotate(-0.6deg); }
.process-step:nth-child(even) { transform: rotate(0.5deg); }
.process-step:hover,
.process-step:focus-within {
  transform: rotate(0) translateY(-2px);
  box-shadow: 4px 4px 0 var(--c-pink);
}
.process-step-num {
  position: absolute;
  top: -14px; left: 18px;
  background: var(--c-pink);
  color: var(--c-white);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  border: 2px solid var(--c-navy);
  transform: rotate(-3deg);
}
.process-step:nth-child(even) .process-step-num {
  background: var(--c-lime);
  color: var(--c-navy);
  transform: rotate(2deg);
}
.process-step h3 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--c-navy);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 12px 0 8px;
}
.process-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-body);
  margin: 0;
}
@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .process-step,
  .process-step:nth-child(odd),
  .process-step:nth-child(even),
  .process-step:hover { transform: none !important; transition: none !important; }
  .process-step-num,
  .process-step:nth-child(even) .process-step-num { transform: rotate(0) !important; }
}


/* ════════════════════════════════════════════════════════════════
   18 · TRUST STRIP
   ──────────────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--c-navy);
  color: var(--c-white);
  padding: var(--s-10) var(--gutter);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--w-content);
  margin: 0 auto;
}
.trust-item .trust-num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  color: var(--c-pink-soft);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  white-space: nowrap;
}
.trust-item .trust-label {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-white);
  margin-bottom: 4px;
}
.trust-item .trust-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}


/* ════════════════════════════════════════════════════════════════
   19 · FAQ
   ──────────────────────────────────────────────────────────────── */
.faq { border-top: 2px solid var(--c-navy); }
.faq-item { border-bottom: 1px solid var(--c-navy-line); padding: 22px 0; }
.faq-item > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-navy);
  cursor: pointer;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 36px;
  color: var(--c-pink);
  line-height: 1;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-item > p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-body);
  max-width: 760px;
}


/* ════════════════════════════════════════════════════════════════
   20 · GALLERY CARDS (work index + homepage teaser)
   ──────────────────────────────────────────────────────────────── */

/* Base card */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: var(--c-navy);
  display: block;
  text-decoration: none;
  height: 300px;
}
.gallery-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease-out);
}
.gallery-card:hover .gallery-card-img,
.gallery-card:focus-within .gallery-card-img { transform: scale(1.04); }
.gallery-card:focus-within { outline: 3px solid var(--c-pink); outline-offset: 4px; }
.gallery-card .stretch-link:focus-visible { outline: none; }
.gallery-card-title-link {
  color: inherit;
  text-decoration: none;
}

/* Gradient overlay — bottom-weighted so titles are always legible */
.gallery-card-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 38, 84, 0.94) 0%,
    rgba(11, 38, 84, 0.35) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px 24px;
}

/* Tag — white, not lime (lime fails at small mono sizes) */
.gallery-card-tag {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 6px;
}

/* Title */
.gallery-card-title {
  font-family: var(--f-head);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0;
  font-size: 20px;
}

/* Excerpt — shown on feature cards */
.gallery-card-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 7px 0 0;
  max-width: 520px;
}

/* Arrow link */
.gallery-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-pink-soft);
  margin-top: 12px;
  text-decoration: none;
}
.gallery-card-link::after {
  content: '→';
  transition: transform var(--dur);
}
.gallery-card:hover .gallery-card-link::after { transform: translateX(4px); }

/* Size variants */
.gallery-card--feature {
  height: 480px;
  grid-column: 1 / -1;
}
.gallery-card--feature .gallery-card-info { padding: 36px 40px 40px; }
.gallery-card--feature .gallery-card-title { font-size: clamp(26px, 3vw, 40px); }
.gallery-card--lg { height: 380px; }
.gallery-card--md { height: 280px; }
.gallery-card--placeholder {
  border: 2px dashed rgba(11, 38, 84, 0.22);
  background: var(--c-warm-grey);
  cursor: default;
}
.gallery-card--placeholder .gallery-card-title { color: var(--c-navy); font-size: 18px; }
.gallery-card--placeholder .gallery-card-tag { color: var(--c-body-soft); }

/* Work gallery grid — asymmetric 58/42 split */
.work-gallery {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 14px;
}

/* Homepage teaser — 2-col: 1fr tall + 1.4fr 2-stacked */
.work-teaser {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  height: 340px;
}
.work-teaser-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 340px;
}
.work-teaser-stack .gallery-card { flex: 1; height: auto; }

/* Italic ghost number on feature cards */
.gallery-card-num {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--f-head);
  font-style: italic;
  font-weight: 200;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .work-gallery { grid-template-columns: 1fr; }
  .gallery-card--feature { grid-column: 1; height: 320px; }
  .gallery-card--lg { height: 240px; }
  .work-teaser { grid-template-columns: 1fr; height: auto; }
  .work-teaser-stack { height: auto; }
  .work-teaser-stack .gallery-card { height: 200px; }
  .product-teaser-grid { grid-template-columns: 1fr; }
  .products-index-hero { padding: 34px 24px 40px; }
  .products-index-hero-copy,
  .products-index-heading,
  .product-index-feature,
  .product-index-feature--morning {
    grid-template-columns: 1fr;
  }
  .product-index-feature,
  .product-index-feature--morning {
    box-shadow: 6px 6px 0 var(--c-pink);
  }
  .product-index-feature--morning .product-index-media {
    order: 0;
  }
  .product-index-media {
    min-height: 260px;
  }
  .product-index-body {
    padding: 28px 24px 32px;
  }
  .product-index-body .btn-row {
    align-items: stretch;
  }
  .product-index-body .btn {
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════════════
   20b · WORK FEATURE + POLAROID CARDS
   Dominant-feature card composition used on the homepage work teaser.
   ──────────────────────────────────────────────────────────────── */

/* Dominant feature card — large image (top) + navy info panel (bottom).
   The whole card is a stretch-link (data-stretch-link). */
.work-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-navy);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  margin-bottom: 24px;
}
.work-feature:hover,
.work-feature:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 var(--c-pink);
}
.work-feature:focus-within { outline: 3px solid var(--c-pink); outline-offset: 4px; }
.work-feature-img {
  height: 520px;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease-out);
}
.work-feature:hover .work-feature-img,
.work-feature:focus-within .work-feature-img { transform: scale(1.02); }
.work-feature-body {
  background: var(--c-navy);
  color: var(--c-white);
  padding: 40px var(--s-9) 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.work-feature-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink-soft);
  margin-bottom: 12px;
  display: block;
}
.work-feature-title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin: 0 0 12px;
  max-width: 22ch;
}
.work-feature-title a { color: inherit; text-decoration: none; }
.work-feature-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  margin: 0;
}
/* Decorative CTA chip — card owns the affordance, button stays pink throughout */
.work-feature .btn--primary,
.work-feature .btn--primary:hover,
.work-feature:hover .btn--primary,
.work-feature:focus-within .btn--primary {
  background: var(--c-pink);
  border-color: var(--c-pink);
  color: var(--c-white);
  transform: none;
}
.work-feature .btn--primary > span { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.work-feature:hover .btn--primary > span,
.work-feature:focus-within .btn--primary > span { transform: translateX(4px); }

/* Polaroid card — image top, solid navy info strip bottom.
   Use under .work-feature for the two supporting case studies. */
.polaroid {
  position: relative;
  background: var(--c-navy);
  border-radius: var(--r-sm);
  overflow: hidden;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  text-decoration: none;
}
a.polaroid, a.polaroid:hover, a.polaroid:focus { color: var(--c-white); text-decoration: none; }
.polaroid:hover,
.polaroid:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--c-pink);
}
.polaroid:focus-within { outline: 3px solid var(--c-pink); outline-offset: 4px; }
.polaroid-img {
  background-size: cover;
  background-position: center;
  background-color: var(--c-navy);
  flex: 1;
  min-height: 220px;
  transition: transform 0.55s var(--ease-out);
}
.polaroid:hover .polaroid-img,
.polaroid:focus-within .polaroid-img { transform: scale(1.03); }
.polaroid-body { padding: 20px 24px 22px; background: var(--c-navy); }
.polaroid-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink-soft);
  display: block;
  margin-bottom: 8px;
}
.polaroid-title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--c-white);
}
.polaroid-title a,
.polaroid-title a:hover,
.polaroid-title a:focus { color: inherit; text-decoration: none; }
.work-feature-title a:hover,
.work-feature-title a:focus { color: inherit; text-decoration: none; }
.polaroid-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 56ch;
}

.work-secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Reversed feature — body left, image right. Used to break visual rhythm
   when stacking two .work-feature heroes on the /work index page. */
.work-feature--reverse { grid-template-columns: 1fr 1.4fr; }
.work-feature--reverse .work-feature-img { height: auto; min-height: 460px; order: 2; }
.work-feature--reverse .work-feature-body { order: 1; padding: 56px 48px; }

/* Coming-soon tab — dashed placeholder for in-flight case studies.
   Deliberately quiet so it doesn't compete with real work. */
.coming-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  border: 2px dashed var(--c-navy);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-navy);
  margin-top: 24px;
}
.coming-tab-num { font-family: var(--f-head); font-style: italic; font-weight: 400; font-size: 30px; color: var(--c-pink); }
.coming-tab-body { font-family: var(--f-head); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; }
.coming-tab-tag { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-body-soft); display: block; margin-top: 4px; font-weight: 400; }
.coming-tab-stamp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; background: var(--c-lime); color: var(--c-navy); border: 2px solid var(--c-navy); border-radius: var(--r-sm); transform: rotate(-3deg); font-weight: 800; }

@media (max-width: 900px) {
  .work-feature-body { grid-template-columns: 1fr; gap: 24px; }
  .work-feature-img { height: 320px; }
  .work-secondary-grid { grid-template-columns: 1fr; }
  .work-feature--reverse { grid-template-columns: 1fr; }
  .work-feature--reverse .work-feature-img { order: 1; min-height: 280px; height: 280px; }
  .work-feature--reverse .work-feature-body { order: 2; padding: 40px var(--s-9) 44px; }
  .coming-tab { grid-template-columns: auto 1fr; gap: 14px 18px; }
  .coming-tab-stamp { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .work-feature, .work-feature-img, .polaroid, .polaroid-img,
  .work-feature:hover, .work-feature:hover .work-feature-img,
  .polaroid:hover, .polaroid:hover .polaroid-img {
    transform: none !important;
    transition: none !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   21 · FOOTER
   ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy);
  color: var(--c-white);
  padding: var(--s-11) var(--gutter) var(--s-7);
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--c-pink-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  max-width: var(--w-content);
  margin: 0 auto;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
}
.footer-nav-label {
  color: var(--c-pink-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--f-head);
  font-weight: 700;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* Adjacent practice — sister offering delivered off-site (jasperstreit.com).
   Lives under the brand column, deliberately quiet but distinct from nav. */
.footer-adjacent {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 320px;
}
.footer-adjacent-body {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0 0 8px;
}
.footer-adjacent-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-pink-soft);
  text-decoration: none;
}
.footer-adjacent-link:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 4px; }
.footer-aoc {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
  margin-top: 32px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 860px;
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}


/* ════════════════════════════════════════════════════════════════
   21 · UTILITIES
   ──────────────────────────────────────────────────────────────── */
.bg-cream    { background: var(--c-cream); }
.bg-navy     { background: var(--c-navy); color: var(--c-white); }
.bg-pink     { background: var(--c-pink); color: var(--c-white); }
.bg-lime     { background: var(--c-lime); color: var(--c-navy); }
.bg-warm     { background: var(--c-warm-grey); }
.bg-white    { background: var(--c-white); }
.text-navy   { color: var(--c-navy); }
.text-pink   { color: var(--c-pink); }
.text-white  { color: var(--c-white); }
.text-center { text-align: center; }
.skewfix     { display: inline-block; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════════════════
   22 · SCROLL REVEAL
   ──────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }


/* ════════════════════════════════════════════════════════════════
   23 · STICKY HEADER SCROLL STATE
   ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-cream);
  transition: box-shadow var(--dur);
}
.site-header--dark { background: var(--c-navy); }
.site-header.is-scrolled { box-shadow: var(--shadow-sticky); }


/* ════════════════════════════════════════════════════════════════
   25 · LOGO SWAP (dark header variant)
   ──────────────────────────────────────────────────────────────── */
.site-logo .logo-inverse { display: none; }
.site-header--dark .logo-colour  { display: none; }
.site-header--dark .logo-inverse { display: block; }


/* ════════════════════════════════════════════════════════════════
   26 · MOBILE NAV
   ──────────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: inherit;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 300;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur), opacity var(--dur);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-navy);
  color: var(--c-white);
  z-index: 200;
  padding: 100px var(--gutter) var(--gutter);
  flex-direction: column;
  justify-content: center;
}
.mobile-nav-overlay.is-open { display: flex; }

.overlay-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--s-8);
}
.overlay-nav-links a {
  font-family: var(--f-head);
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 800;
  color: var(--c-white);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.overlay-nav-links a:hover { color: var(--c-pink-soft); }
.overlay-nav-links a[aria-current="page"],
.overlay-nav-links a[aria-current="true"] { color: var(--c-pink-soft); }

.overlay-cta { align-self: flex-start; }

body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  .site-nav  { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }
}


/* ════════════════════════════════════════════════════════════════
   27 · READING PROGRESS BAR (article pages only)
   ──────────────────────────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--c-pink);
  z-index: 500;
  transition: width 0.1s linear;
}


/* ════════════════════════════════════════════════════════════════
   29 · RESPONSIVE
   ──────────────────────────────────────────────────────────────── */

/* ── Tablet (≤ 1024px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Project card grids: 3-col → 2-col */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Trust strip: 4-col → 2-col */
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  /* Timeline: 6-col → 3-col */
  .timeline { grid-template-columns: repeat(3, 1fr); }
  /* Poster split grids (inline): let content breathe */
  .poster { padding: 40px; }
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Token: gutter collapses to 20px */
  :root { --gutter: 20px; }

  /* Poster: remove tilt on mobile (sub-1° looks fine on desktop, clips on mobile) */
  .poster--tilt-l, .poster--tilt-r, .poster--tilt-sm {
    transform: none;
  }
  .poster { padding: 28px 24px; }
  /* Poster hard shadow: smaller on mobile */
  .poster { box-shadow: 6px 6px 0 var(--c-pink); }
  .poster--left { box-shadow: -6px 6px 0 var(--c-pink); }
  .poster--dark { box-shadow: 6px 6px 0 rgba(0,0,0,0.3); }

  /* All inline split grids → single column.
     Use minmax(0, 1fr) — plain `1fr` lets content (intrinsic-width images)
     push the track wider than the parent, causing 6–20px right overflow. */
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1.05fr 0.95fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.3fr 0.7fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 1.2fr 1fr; gap: 0"],
  [style*="grid-template-columns: 1.05fr 0.95fr; gap: 0"],
  [style*="grid-template-columns: 1.15fr 0.85fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  /* Hero poster image: reasonable height on mobile */
  [style*="min-height: 480px"], [style*="min-height: 440px"] {
    min-height: 240px !important;
  }

  /* Index rows: hide the meta right column, stack number+content */
  .index-row {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .index-row-meta { display: none; }

  /* Faith-item services list: collapse to 2-col so the "Learn more" sticker
     wraps under the title instead of pushing off the right edge. Matches both
     legacy (220px third col) and current (auto third col) inline styles. */
  .faith-item[style*="grid-template-columns: 70px 1fr"] {
    grid-template-columns: 48px 1fr !important;
    gap: 12px !important;
    grid-template-rows: auto auto;
  }
  .faith-item[style*="grid-template-columns: 70px 1fr"] > .sticker {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
  /* Hide the index-row-meta when inside a faith-item */
  .faith-item .index-row-meta { display: none; }

  /* Timeline: 6-col → 2-col → connecting line off */
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-step::after { display: none; }

  /* Project card grids: 2-col → 1-col */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Trust strip: 4-col → 2-col → 2-col stays, text adjusts */
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item .trust-num { font-size: 36px; }

  /* Footer: 3-col → single col */
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-8); }

  /* Doc header: hide middle column */
  .doc-header { grid-template-columns: 1fr 1fr; }
  .doc-header span:nth-child(2) { display: none; }

  /* Insights article rows: 4-col → stack */
  [style*="grid-template-columns: 80px 1fr 180px 100px"] {
    grid-template-columns: 60px 1fr !important;
    gap: 12px !important;
  }
  [style*="grid-template-columns: 80px 1fr 180px 100px"] > span:nth-child(3),
  [style*="grid-template-columns: 80px 1fr 180px 100px"] > a:last-child {
    display: none !important;
  }

  /* Insights index list rows (build.js renderInsightRow): 3-col → stack.
     The "Read" sticker was pushing past the right edge on Pixel-class viewports. */
  [style*="grid-template-columns: 1fr 120px auto"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  [style*="grid-template-columns: 1fr 120px auto"] > span:nth-child(2) {
    /* read-time meta */
    font-size: 11px !important;
  }
  [style*="grid-template-columns: 1fr 120px auto"] > .sticker {
    justify-self: start;
    margin-top: 4px;
  }

  /* Next-case nav: 2-col → single col */
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Breadcrumb: wrap */
  nav[aria-label="Breadcrumb"] ol { flex-wrap: wrap; }

  .legal-hero {
    padding-block: 48px 52px;
  }
  .legal-hero h1 {
    font-size: clamp(42px, 14vw, 68px);
    line-height: 0.98;
  }
  .legal-hero p {
    font-size: 18px;
  }
  .legal-section {
    padding-block: 44px 64px;
  }
  .legal-document {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-summary {
    position: relative;
    top: auto;
    padding: 24px;
    box-shadow: 6px 6px 0 var(--c-pink);
  }
  .legal-content {
    padding: 30px 24px 34px;
  }
  .legal-content h2 {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 34px;
    padding-top: 24px;
    font-size: 29px;
  }
  .legal-content p,
  .legal-content li {
    font-size: 15px;
    line-height: 1.72;
  }

  /* About hero: stack text above photo */
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .about-hero-photo {
    min-height: 260px !important;
  }
}

/* ── Small mobile (≤ 480px) ─────────────────────────────────────── */
@media (max-width: 480px) {
  /* Timeline: 2-col → 1-col */
  .timeline { grid-template-columns: 1fr; }
  /* Trust: 2-col → 1-col */
  .trust-grid { grid-template-columns: 1fr; }
  /* Hero h1 type: already clamp-based, no changes needed */
}


/* ════════════════════════════════════════════════════════════════
   28 · REDUCED MOTION
   ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .project-card:hover { transform: none; }
}
