/* ============================================================================
   Punam Wahan Counselling — the stylesheet.
   Torn-paper editorial collage. Tokens live in :root and nowhere else.

   CSP contract: no inline styles anywhere in the site, so every visual
   decision is in this file. data: URIs are allowed (img-src 'self' data:).
   ========================================================================= */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/PlayfairDisplay-latin-var.woff2') format('woff2-variations');
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/PlayfairDisplay-italic-latin-var.woff2') format('woff2-variations');
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans-latin-var.woff2') format('woff2-variations');
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans-italic-latin-var.woff2') format('woff2-variations');
  font-weight: 400 600; font-style: italic; font-display: swap;
}

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

:root {
  /* Approximated from the locked mockups (2026-08-16). Eyedrop against the
     final artwork before these are treated as canonical. */
  --paper:      #F4F1E8;   /* page ground, warm off-white. Never pure #fff. */
  --paper-warm: #E8E1CE;   /* second paper tone, alternating bands */
  --card:       #FBF9F3;   /* raised paper */
  --sage:       #7D8C6E;   /* mid green — torn bands, motif fills */
  --sage-soft:  #A8B49B;   /* rules, dividers, quiet strokes */
  --forest:     #22331F;   /* buttons, dark bands, logo */
  --forest-ink: #1B2A18;
  --ochre:      #C8792A;   /* the single warm accent. Sparingly. */
  --ink:        #1F2A1C;   /* all body text. Near-black, green cast. */
  --ink-muted:  #5C6656;

  --head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 34rem;        /* readable line length */
  --shell:   72rem;        /* page max width */
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --band:    clamp(3.5rem, 9vw, 7rem);   /* vertical section rhythm */

  --torn-h: 50px;          /* height of a torn edge strip */
}

/* Paper grain, applied to the whole page. Cheap, no extra request. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background-image: var(--grain);
  opacity: .5; pointer-events: none; mix-blend-mode: multiply;
}

img, svg, picture { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------- headings */

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--forest); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ochre); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--paper);
  padding: .6rem 1rem; border-radius: 2px; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: .5rem; color: var(--paper); }

/* Eyebrow label above a heading */
.eyebrow {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 1.25rem;
}

/* Hand-drawn underline beneath a heading */
.underlined { position: relative; display: inline-block; }
.underlined::after {
  content: ''; display: block; height: 6px; margin-top: .35rem;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.4C38 2.2 92 1.4 134 3.2c22 .9 44 2.4 64 3.1' fill='none' stroke='%23A8B49B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.underlined-ochre::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.4C38 2.2 92 1.4 134 3.2c22 .9 44 2.4 64 3.1' fill='none' stroke='%23C8792A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--gutter);
  position: relative; z-index: 1;
}

.section { padding-block: var(--band); position: relative; z-index: 1; }
.section-tight { padding-block: calc(var(--band) * .62); }

.grid-2 {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62em) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.stack > * + * { margin-top: 1.15rem; }

/* --------------------------------------------------- torn paper machinery */

/* A torn edge is a strip sitting on the boundary between two grounds. The
   path is one hand-authored irregular tear, tiled horizontally. Replace with
   real scanned-paper PNGs when the artwork exists — swap the URL only. */
.torn, .torn-top { position: relative; }

.torn::after, .torn-top::before {
  content: ''; position: absolute; left: 0; right: 0;
  height: var(--torn-h); z-index: 2; pointer-events: none;
  /* One copy stretched edge to edge. Tiling showed a hard vertical seam
     where the artwork's left and right edges did not meet. */
  background-repeat: no-repeat;
  background-size: 100% var(--torn-h);
  background-position: 0 0;
}

.torn::after {
  bottom: calc(var(--torn-h) * -1 + 1px);
  background-image: url("/assets/img/tear-cream.png");
}
.torn-top::before {
  top: calc(var(--torn-h) * -1 + 1px);
  transform: scaleY(-1);
  background-image: url("/assets/img/tear-cream.png");
}

/* Which colour the tear "reveals" — set to the colour of the NEXT band. */
.torn-into-paper::after      { filter: none; }
.torn-into-warm::after       { --tear: var(--paper-warm); }
.torn-into-sage::after       { --tear: var(--sage); }

/* Grounds. A band with a ground colour + its own torn lower edge. */
.ground-paper { background: var(--paper); }
.ground-warm  { background: var(--paper-warm); }
.ground-sage  { background: var(--sage); color: var(--paper); }
.ground-forest{ background: var(--forest); color: var(--paper); }

.ground-sage h1, .ground-sage h2, .ground-sage h3,
.ground-forest h1, .ground-forest h2, .ground-forest h3 { color: var(--paper); }
.ground-sage a, .ground-forest a { color: var(--paper); }
.ground-sage .eyebrow, .ground-forest .eyebrow { color: rgba(244,241,232,.72); }

/* Tinted paper texture on the coloured grounds so they read as paper. */
.ground-sage, .ground-forest { position: relative; }
.ground-sage::before, .ground-forest::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .35; mix-blend-mode: overlay;
  pointer-events: none;
}

/* ------------------------------------------------------------- paper card */

/* A torn-edged sheet. Uses an irregular border via mask so the whole card
   reads as a piece of paper rather than a rectangle. */
.sheet {
  background: var(--card);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  box-shadow: 0 1px 2px rgba(31,42,28,.05), 0 10px 28px -18px rgba(31,42,28,.35);
  --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M4 6c40-3 78 2 118-1s76-4 116-1 78-2 118 2v286c-40 4-80-1-120 1s-76 4-116 1-76 2-116-2z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--mask); mask-image: var(--mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.sheet-sage { background: var(--sage); color: var(--paper); }
.sheet-sage h2, .sheet-sage h3 { color: var(--paper); }
.sheet-plain { -webkit-mask-image: none; mask-image: none; }

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

.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.5rem;
  background: var(--forest); color: var(--paper);
  font-size: .95rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; border: 1px solid var(--forest);
  border-radius: 1px; cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.btn:hover { background: var(--forest-ink); color: var(--paper); transform: translateY(-1px); }
.btn .arw { transition: transform .16s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: rgba(34,51,31,.06); color: var(--forest); transform: translateY(-1px); }

.ground-sage .btn, .ground-forest .btn { background: var(--forest); border-color: var(--forest); }
.ground-sage .btn:hover { background: var(--forest-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: relative; z-index: 20;
  padding-block: 1.4rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.wordmark {
  font-family: var(--head); font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.wordmark:hover { color: var(--forest); }

.nav-links { display: none; gap: 1.85rem; align-items: center; }
@media (min-width: 56em) { .nav-links { display: flex; } }

.nav-links a {
  font-size: .9rem; color: var(--ink); text-decoration: none;
  padding-bottom: .2rem; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--forest); border-bottom-color: var(--sage-soft); }
.nav-links a[aria-current='page'] { border-bottom-color: var(--forest); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 56em) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem 0 1.5rem;
}
.nav-mobile.open { display: flex; }
@media (min-width: 56em) { .nav-mobile, .nav-mobile.open { display: none; } }
.nav-mobile a {
  font-family: var(--head); font-size: 1.5rem; color: var(--ink);
  text-decoration: none; padding: .5rem 0;
  border-bottom: 1px solid rgba(168,180,155,.4);
}
.nav-mobile a:hover { color: var(--forest); }
.no-js .nav-toggle { display: none; }
.no-js .nav-mobile { display: flex; }

/* -------------------------------------------------------------- collage */

/* The decorative assemblage beside a hero. Purely presentational: every
   element in here is aria-hidden and carries no meaning. */
.collage { position: relative; min-height: 320px; }
.collage-item { position: absolute; }
.collage img, .collage svg { display: block; }

.scrap {
  /* Real torn-paper artwork, drawn at 800x800 with the tear on all four
     sides. No mask and no background colour: the PNG *is* the paper. */
  background: no-repeat center/100% 100%;
  -webkit-mask-image: none; mask-image: none;
  background-image: url("/assets/img/05-paper-scrap-sage-7d8c6e.png");
  filter: drop-shadow(0 10px 16px rgba(31,42,28,.16));
}
.scrap-ochre { background-image: url("/assets/img/04-paper-scrap-ochre-c8792a.png"); }
.scrap-cream { background-image: url("/assets/img/06-paper-scrap-cream-fbf9f3.png"); }
.scrap-paper { background-image: url("/assets/img/06-paper-scrap-cream-fbf9f3.png"); }

/* Postage stamp frame */
.stamp {
  background: var(--card); padding: 7px;
  --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='5.4' fill='%23000'/%3E%3C/svg%3E");
  filter: drop-shadow(0 6px 16px rgba(31,42,28,.18));
}
.stamp::before {
  content: ''; position: absolute; inset: 0;
}

/* Photo placeholders until real artwork lands */
.photo-ph {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper-warm) 0 12px, var(--card) 12px 24px);
  border: 1px dashed var(--sage-soft);
  color: var(--ink-muted); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 1rem; min-height: 220px;
}

/* --------------------------------------------------------------- pillars */

.pillars { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .pillars-4 { grid-template-columns: repeat(4, 1fr); } .pillars-3 { grid-template-columns: repeat(3, 1fr); } }

.pillar { text-align: center; }
.pillar-mark { width: 96px; height: 96px; margin: 0 auto 1.4rem; position: relative; }
.pillar h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.pillar p { font-size: .92rem; color: var(--ink-muted); margin-inline: auto; max-width: 20rem; }

@media (min-width: 62em) {
  .pillars-divided .pillar + .pillar { border-left: 1px solid var(--sage-soft); padding-left: 2rem; }
  .pillars-divided .pillar { padding-right: 2rem; }
}

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

.steps { display: grid; gap: 2.5rem; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num {
  width: 2.4rem; height: 2.4rem; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border: 1px solid var(--sage-soft); border-radius: 50%;
  font-family: var(--head); font-size: 1rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.step p { font-size: .92rem; color: var(--ink-muted); margin-inline: auto; max-width: 18rem; }

/* ------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--sage-soft); max-width: 46rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--sage-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem .5rem 1.1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.35rem; color: var(--sage); line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 .5rem 1.35rem 0; }
.faq p { font-size: .95rem; color: var(--ink-muted); }

/* ------------------------------------------------------------------ form */

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .85rem; margin-bottom: .4rem; }
.field .hint { color: var(--ink-muted); }

.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--sage); border-radius: 1px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--forest); outline-offset: 1px;
}

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice label {
  position: relative;   /* without this the absolute input escapes the label */
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem; border: 1px solid var(--sage); background: var(--card);
  cursor: pointer; font-size: .9rem; margin: 0;
}
/* The input covers its whole label rather than collapsing to 0x0, so the
   hit target is the visible box for pointer, touch and assistive tech. */
.choice input {
  position: absolute; inset: 0; margin: 0;
  width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.choice input:checked + span { font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; margin: 1.5rem 0; }
.check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--forest); flex: none; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: .92rem; }
.form-status[data-state='error'] { color: #8c3a2b; }
.form-status[data-state='ok'] { color: var(--forest); }

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

.site-footer { position: relative; z-index: 1; }
.footer-top { background: var(--paper-warm); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }

.footer-brand .wordmark { font-size: clamp(1.4rem, 3.5vw, 2rem); display: inline-block; margin-bottom: .35rem; }
.footer-brand p { font-size: .9rem; color: var(--ink-muted); }

.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { font-size: .95rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sage-soft); align-self: flex-start; padding-bottom: .1rem; }
.footer-nav a:hover { color: var(--forest); border-bottom-color: var(--forest); }

.footer-contact { font-size: .95rem; }
.footer-contact a { display: block; margin-bottom: .5rem; }

/* Crisis band — deliberately the loudest thing in the footer. */
.crisis { background: var(--sage); color: var(--paper); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.crisis-head { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 52em) {
  .crisis-head { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
}
.crisis-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }
.crisis-head p { color: rgba(244,241,232,.92); font-size: .95rem; margin: 0; max-width: 32rem; }
@media (min-width: 52em) { .crisis-head p { border-left: 1px solid rgba(244,241,232,.35); padding-left: 2.5rem; } }

.crisis-list { display: grid; gap: 1.75rem; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; text-align: center; }
@media (min-width: 52em) { .crisis-list { grid-template-columns: repeat(4, 1fr); } }
.crisis-list li + li { border-left: 1px solid rgba(244,241,232,.3); }
.crisis-name { display: block; font-size: .85rem; color: rgba(244,241,232,.85); margin-bottom: .25rem; }
.crisis-num {
  font-family: var(--head); font-size: clamp(1.5rem, 4vw, 2.35rem);
  color: var(--paper); text-decoration: none; display: inline-block;
  border-bottom: 2px solid var(--ochre); padding-bottom: .1rem;
}
.crisis-num:hover { color: var(--paper); border-bottom-color: var(--paper); }

.footer-legal {
  background: var(--paper-warm); padding-block: 1.25rem;
  border-top: 1px solid rgba(168,180,155,.5);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--ink-muted);
}
.footer-legal a { color: var(--ink-muted); }

/* --------------------------------------------------------------- utility */

.lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink-muted); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.narrow { max-width: 44rem; margin-inline: auto; }
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
em.accent { font-style: italic; color: var(--forest); }

/* TODO markers for unresolved content. Visible on purpose — they must not
   survive to launch. Search the built HTML for "todo-flag" before deploying. */
.todo-flag {
  background: #FFF3D6; border-bottom: 1px dashed var(--ochre);
  padding: 0 .2em; font-style: normal;
}

/* ============================================================ components
   Page-level composition classes. Positioning for the collage is
   percentage-based inside an aspect-ratio box, so it scales rather than
   breaking at arbitrary widths.
   ========================================================================= */

/* motif colours — the only place currentColor is set for <use> marks */
.motif-forest { color: var(--forest); }
.motif-sage   { color: var(--sage); }
.motif-soft   { color: var(--sage-soft); }
.motif-ink    { color: var(--ink); }
/* Raster motifs ignore currentColor. On a dark ground the dark-green
   artwork is inverted to cream instead of shipping a second file set. */
.motif-cream  { color: rgba(244,241,232,.55); filter: brightness(0) invert(1); opacity: .5; }
.motif-soft   { opacity: .75; }

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

.hero { padding-top: clamp(1rem, 3vw, 2.5rem); }
.hero-grid { align-items: center; }
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lede { max-width: 26rem; }

.hero-collage { aspect-ratio: 5 / 4; min-height: 0; }
@media (max-width: 61.99em) { .hero-collage { aspect-ratio: 6 / 5; margin-top: 1rem; } }

.hero-collage .c-a       { left: 30%;  top: 4%;   width: 40%; height: 58%; }
.hero-collage .c-leaf1   { left: 30%;  top: 6%;   width: 42%; height: 54%; }
.hero-collage .c-stamp   { right: 2%;  top: 2%;   width: 30%; }
.hero-collage .c-postmark{ right: 0;   top: 4%;   width: 22%; height: 16%; opacity: .75; }
.hero-collage .c-b       { left: 18%;  top: 56%;  width: 40%; height: 34%; }
.hero-collage .c-leaf2   { left: 22%;  top: 60%;  width: 30%; height: 26%; }
.hero-collage .c-c       { left: 62%;  top: 52%;  width: 32%; height: 34%; }
.hero-collage .c-scribble{ right: -2%; top: 60%;  width: 26%; height: 22%; }
.hero-collage .c-glyph   { left: 4%;   top: 78%;  width: 9%;  height: 12%; }

.collage .photo-ph { min-height: 0; height: 100%; aspect-ratio: 4 / 5; }

/* ----------------------------------------------------------- pillar mark */

.pillar-mark .mark-bg { position: absolute; inset: 0; display: block; }
.pillar-mark .mark-art { position: absolute; inset: 12%; width: 76%; height: 76%; }
.mark-round { border-radius: 50%; -webkit-mask-image: none; mask-image: none; }
.mark-stamp { background: var(--card); box-shadow: inset 0 0 0 1px var(--sage-soft); }
.scrap-sage { background-image: url("/assets/img/05-paper-scrap-sage-7d8c6e.png"); }

/* ------------------------------------------------------------ split media */

.split-media { align-items: center; }
.media-frame { position: relative; }
.media-tall { aspect-ratio: 4 / 3; min-height: 0; }
.media-portrait { aspect-ratio: 4 / 5; min-height: 0; }
.media-leaf { position: absolute; right: -4%; bottom: -6%; width: 34%; height: auto; aspect-ratio: 4 / 3; }
.media-clip { position: absolute; left: 8%; top: -4%; width: 8%; height: auto; aspect-ratio: 4 / 9; }

/* ------------------------------------------------------------- CTA band */

.cta-band { position: relative; overflow: hidden; }
.cta-band .shell { position: relative; z-index: 2; }
.cta-band p { max-width: 30rem; }
.cta-row { justify-content: center; }
.cta-leaf-l { position: absolute; left: 2%; top: 22%; width: 12%; min-width: 90px; aspect-ratio: 4 / 3; z-index: 1; }
.cta-postmark { position: absolute; right: 4%; top: 26%; width: 11%; min-width: 90px; aspect-ratio: 16 / 11; z-index: 1; }
@media (max-width: 51.99em) { .cta-leaf-l, .cta-postmark { opacity: .5; } }

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

.footer-postmark { margin-top: 1.5rem; color: var(--sage-soft); }
.footer-legal-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; width: 100%; }
.footer-legal { display: block; }

/* ---------------------------------------------------------------- alt bg */

/* Torn edges reveal the ground BELOW, so each tear must be painted the
   colour of the section that follows it. */
.ground-paper.torn::after  { background-image: url("/assets/img/tear-cream.png"); }
.ground-warm.torn::after   { background-image: url("/assets/img/tear-warm.png"); }
.ground-sage.torn::after   { background-image: url("/assets/img/tear-sage.png"); }

.torn-top.ground-paper::before { background-image: url("/assets/img/tear-cream.png"); }
.torn-top.ground-warm::before  { background-image: url("/assets/img/tear-warm.png"); }

/* ------------------------------------------- classes requested by pages */

/* about: qualifications card grid — equal-height sheets */
.quals { margin-top: 2.5rem; align-items: stretch; }
.quals > * { height: 100%; }
.quals-note { margin: 2.5rem auto 0; max-width: 42rem; text-align: center; }

/* services: several stacked rows inside one band need more air than .stack */
.section-rows > * + * { margin-top: clamp(3rem, 6vw, 5rem); }

/* contact: the radio group is a fieldset, which ships with a browser border */
.fieldset-plain { border: 0; padding: 0; margin: 0 0 1.15rem; }
.fieldset-plain legend { padding: 0; font-size: .85rem; margin-bottom: .4rem; }

/* how-i-work: intro line above an FAQ, and the stance list */
.faq-lead { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.stance-list { list-style: none; margin: 0; padding: 0; }
.stance-list li { padding-left: 1.5rem; position: relative; margin-bottom: .8rem; }
.stance-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: .6rem; height: 1px; background: var(--sage);
}

hr {
  border: 0; height: 1px; background: var(--sage-soft);
  margin: 2rem 0; max-width: var(--measure);
}
.ground-sage hr, .ground-forest hr { background: rgba(244,241,232,.35); }

/* ------------------------------------------------- collage depth pass
   The mockup collage reads as layered torn paper because pieces overlap,
   sit at slight angles, and cast short shadows. Flat right-angled scraps
   read as coloured rectangles instead. This is the closest CSS gets until
   real scanned-paper artwork exists.
   ========================================================================= */

.collage-item { filter: drop-shadow(0 10px 18px rgba(31,42,28,.14)); }
.collage-item.c-a       { transform: rotate(-2.2deg); }
.collage-item.c-b       { transform: rotate(1.6deg); }
.collage-item.c-c       { transform: rotate(-1.2deg); }
.collage-item.c-stamp   { transform: rotate(3deg); }
.collage-item.c-leaf1,
.collage-item.c-leaf2,
.collage-item.c-scribble,
.collage-item.c-postmark,
.collage-item.c-glyph   { filter: none; }


/* Marks were sitting small in a wide column and reading as afterthoughts. */
.pillar-mark { width: 120px; height: 120px; }
@media (min-width: 62em) { .pillar-mark { width: 132px; height: 132px; } }

/* A motif used as the illustration for a full row, not a small badge. */
.split-media .pillar-mark,
.split-media .mark-bg { width: 100%; height: auto; }
.split-media .pillar-mark { width: min(280px, 70%); height: auto; aspect-ratio: 1; margin-inline: 0; }

/* Stamp: the real perforated frame, hollow in the middle so whatever sits
   inside the element shows through the window. */
.stamp {
  background: no-repeat center/100% 100% url("/assets/img/11-postage-stamp-frame-cream.png");
  padding: 6% 6% 8%;
  -webkit-mask-image: none; mask-image: none;
  filter: drop-shadow(0 8px 18px rgba(31,42,28,.2));
  box-shadow: none;
}

/* ====================================================== hero proportions
   The mockup is a full-bleed editorial layout: the collage runs off the
   right edge, the headline is roughly twice the size of a conventional
   hero, the pieces overlap heavily, and the buttons stack. Built first to a
   centred 72rem shell, which read as a smaller, tidier, more generic page.
   ========================================================================= */

@media (min-width: 62em) {
  .hero { padding-top: 0; padding-bottom: 0; }

  .hero .shell {
    max-width: none;
    padding-right: 0;             /* the collage bleeds off the right edge */
    padding-left: clamp(2rem, 6vw, 6.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 0;
    align-items: center;
    min-height: 78vh;
  }

  .hero-copy { max-width: 32rem; padding-block: clamp(2rem, 5vw, 4rem); }
  .hero-copy h1 { font-size: clamp(4rem, 7.4vw, 7rem); letter-spacing: -.02em; }
  .hero-copy .lede { max-width: 24rem; font-size: 1.05rem; }

  /* Buttons stack, as in the mockup, and sit flush left */
  .hero-copy .btn-row { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .hero-copy .btn { min-width: 15rem; justify-content: space-between; }

  /* The collage fills its half and overruns the viewport edge */
  .hero-collage { aspect-ratio: auto; height: 78vh; margin-right: -4vw; }

  /* Bigger pieces, heavier overlap. Percentages are of the collage box. */
  .hero-collage .c-a        { left: 6%;   top: 2%;   width: 52%;  height: 62%; }
  .hero-collage .c-leaf1    { left: 2%;   top: -6%;  width: 62%;  height: 76%; }
  .hero-collage .c-stamp    { right: 6%;  top: 4%;   width: 34%; }
  .hero-collage .c-postmark { right: 2%;  top: 6%;   width: 24%;  height: 18%; }
  .hero-collage .c-b        { left: 14%;  top: 52%;  width: 44%;  height: 42%; }
  .hero-collage .c-leaf2    { left: 20%;  top: 56%;  width: 32%;  height: 32%; }
  .hero-collage .c-c        { left: 52%;  top: 44%;  width: 42%;  height: 44%; }
  .hero-collage .c-scribble { right: -6%; top: 52%;  width: 30%;  height: 26%; }
  .hero-collage .c-glyph    { left: 0%;   top: 72%;  width: 8%;   height: 10%; }
}
