/* Centre for Rites of Passage: interim holding site.
   Colours and type follow docs/brand-notes.md. Plain CSS, no build step. */

@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  --sage: #64887a;
  --sage-deep: #4d6b5f; /* darker sage so white body text passes AA */
  --sage-ink: #436054; /* darker again for small sage text on cream (AA) */
  --slate: #243841;
  --cream: #e4ded0;
  --paper: #f5f2ea;
  --white: #fff;
  --ember: #c8693a;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 10vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); color: var(--slate); padding: 0.6rem 1rem; border-radius: 0.25rem; }
.skip:focus { top: 1rem; }

.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: 1rem; }
.on-dark .eyebrow { color: var(--cream); }
.sage .eyebrow { color: var(--white); }
h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; text-wrap: pretty; }
.stack > * + * { margin-top: 1.25rem; }
.on-dark { color: var(--white); }

.btn {
  display: inline-block;
  font: inherit; font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--cream); color: var(--slate);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--white); transform: translateY(-1px); }
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark:hover { background: var(--sage-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--white); transition: background-color 0.3s, box-shadow 0.3s; }
.site-header.is-solid, .site-header.is-static { background: var(--slate); box-shadow: 0 1px 12px rgb(0 0 0 / 0.2); }
.site-header.is-static { position: sticky; top: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 0.9375rem; line-height: 1.15; letter-spacing: -0.005em; text-decoration: none; }
.wordmark .mark { height: 2.1rem; width: auto; flex: none; }
/* On the home page the hero carries the full identity, so the header name waits until the hero has scrolled away. */
.js .site-header:not(.is-static) .wordmark { transition: opacity 0.3s; }
.js .site-header:not(.is-static):not(.is-solid):not(.is-open) .wordmark { opacity: 0; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9375rem; font-weight: 400; }
.nav a { text-decoration: none; padding-block: 0.5rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav .btn { padding: 0.5rem 1.2rem; }
.nav .btn:hover { text-decoration: none; }
.nav-toggle { display: none; }
@media (min-width: 48rem) { .nav-extra { display: none; } }

/* Phones: a menu button opens the links as a panel under the header.
   Without JavaScript the header keeps just the "Get in touch" button. */
@media (max-width: 47.99rem) {
  html:not(.js) .nav a:not(.btn) { display: none; }
  .js .nav-toggle {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
    color: inherit; background: none; border: 0; border-radius: 0.4rem; cursor: pointer;
  }
  .nav-toggle svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: visible; }
  .nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .site-header.is-open { background: var(--slate); }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.25rem var(--gutter) 1.5rem; background: var(--slate);
    box-shadow: 0 12px 20px rgb(0 0 0 / 0.25); font-size: 1.125rem;
  }
  .js .site-header.is-open .nav { display: flex; }
  .js .nav a:not(.btn) { padding-block: 0.9rem; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
  .js .nav .btn { margin-top: 1.25rem; padding: 0.85rem 1.75rem; text-align: center; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 60rem); display: grid; align-items: end; color: var(--white); background: var(--slate); isolation: isolate; }
.hero picture, .band picture { position: absolute; inset: 0; z-index: -2; }
.hero picture img, .band picture img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(20 32 38 / 0.82) 0%, rgb(20 32 38 / 0.3) 45%, rgb(20 32 38 / 0.05) 75%, rgb(20 32 38 / 0.3) 100%); }
.hero .wrap { padding-block: 7rem clamp(3rem, 9vw, 6rem); }
/* Stones sit beside the name, as tall as its two lines. On phones they sit above it. */
.hero-title { font-size: clamp(2.5rem, 8.5vw, 5.75rem); }
.hero-mark { display: block; height: 1.6em; width: auto; margin-bottom: 0.35em; flex: none; }
.hero h1 { font-weight: 800; font-size: 1em; line-height: 1.02; letter-spacing: -0.02em; max-width: 12ch; }
@media (min-width: 40rem) {
  .hero-title { display: flex; align-items: center; gap: 0.4em; font-size: clamp(2.5rem, 7vw, 5.75rem); }
  .hero-mark { height: 1.95em; margin-bottom: 0; }
}
.hero .tagline { margin-top: 1.5rem; font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.hero .lede { margin-top: 0.75rem; max-width: 34rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 2.8vw, 1.8rem); line-height: 1.35; }
.hero .btn { margin-top: 2.25rem; }

/* Photo bands (stats, quote) */
.band { position: relative; color: var(--white); background: var(--slate); isolation: isolate; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(24 38 45 / 0.74); }
.band.soft::after { background: rgb(24 38 45 / 0.45); }
.band.shade-left::after { background: linear-gradient(to right, rgb(16 22 24 / 0.9) 0%, rgb(16 22 24 / 0.7) 55%, rgb(16 22 24 / 0.35) 100%); }

.stats { display: grid; gap: 2.5rem; margin-top: 3rem; }
/* "One in eight" is the longest figure, so it gets the widest column and "20%" the narrowest. */
@media (min-width: 48rem) {
  .stats { grid-template-columns: 1fr 0.75fr 1.35fr; gap: 3rem; }
  .stats .stat b { font-size: min(clamp(2.75rem, 6vw, 4.25rem), 5.2vw); }
}
.stat b { display: block; color: var(--sage-deep); font-weight: 800; font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; }
.stat p { margin-top: 0.75rem; font-weight: 400; }
.stat cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.8125rem; opacity: 0.85; }
.crisis { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgb(36 56 65 / 0.25); }
.crisis p:first-child { font-size: 0.9375rem; letter-spacing: 0.04em; }
.crisis p:last-child { margin-top: 0.5rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; }

/* Journey: three photos running edge to edge. On phones they scroll sideways,
   with the next one peeking in from off screen. */
.rites { padding-bottom: 0; }
.journey { display: grid; grid-auto-flow: column; grid-auto-columns: 80vw; gap: 0.5rem; padding-bottom: var(--section); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; counter-reset: step; }
.journey::-webkit-scrollbar { display: none; }
.journey li { counter-increment: step; scroll-snap-align: start; }
.journey img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.journey-text { padding: 1.25rem var(--gutter) 0; }
.journey h3::before { content: counter(step) ". "; color: var(--sage-deep); }
.journey p { margin-top: 0.5rem; }
@media (min-width: 48rem) {
  .journey { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .journey-text { padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }
}

/* Photo strip: same idea, no words */
.words-section { padding-bottom: 0.5rem; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 80vw; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; }
.strip img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 48rem) { .strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* Arrow buttons for the sideways strips (added by site.js, phones only).
   --mid is half the photo height, so the arrows sit centred on the photos. */
.scroller { position: relative; }
.scroller-journey { margin-top: 3rem; --mid: 50vw; }
.scroller-strip { margin-top: var(--section); --mid: 40vw; }
.scroller-btn {
  position: absolute; top: var(--mid); z-index: 2; translate: 0 -50%;
  width: 2.75rem; height: 2.75rem; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--paper); color: var(--slate);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.3); cursor: pointer;
}
.scroller-btn.prev { left: 0.75rem; }
.scroller-btn.next { right: 0.75rem; }
.scroller-btn[disabled] { display: none; }
.scroller-btn svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 48rem) { .scroller-btn { display: none; } }

/* Half photo, half words. The photo runs off the edge of the screen. */
.bleed-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bleed-text { padding: var(--section) var(--gutter); }
@media (min-width: 60rem) {
  .bleed { display: grid; grid-template-columns: 45% 55%; }
  .bleed.flip { grid-template-columns: 55% 45%; }
  .bleed.flip .bleed-img { order: 2; }
  .bleed-img { height: 100%; min-height: 40rem; aspect-ratio: auto; position: sticky; top: 0; max-height: 100vh; align-self: start; }
  .bleed-text { padding-inline: clamp(2.5rem, 5vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .bleed.flip .bleed-text { padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) clamp(2.5rem, 5vw, 5rem); }
}

/* What lasts */
.sage { background: var(--sage-deep); }
.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 7fr; gap: 4.5rem; } .split.flip { grid-template-columns: 7fr 5fr; } .split.flip > :first-child { order: 2; } }
.lasts { display: grid; gap: 1.75rem 2.5rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .lasts { grid-template-columns: repeat(2, 1fr); } }
.lasts li { padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.35); }
.lasts p { margin-top: 0.4rem; font-weight: 400; font-size: 1rem; line-height: 1.6; }

/* Quotes */
.quote-band .wrap { padding-block: clamp(6rem, 16vw, 12rem); }
.quote-band blockquote { max-width: 40rem; }
.quote-band blockquote p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 4.2vw, 3rem); line-height: 1.22; text-wrap: balance; }
.quote-band footer { margin-top: 1.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.cites { font-size: 0.8125rem; line-height: 1.6; opacity: 0.8; }
.pillars { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pillars li { padding: 0.45rem 1.1rem; border-radius: 999px; background: var(--cream); font-weight: 600; font-size: 0.9375rem; }

.cream { background: var(--cream); }
.words { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 40rem) { .words { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .words { grid-template-columns: repeat(3, 1fr); } }
.words li { display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; background: var(--paper); border-radius: 0.5rem; }
.words blockquote p { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.3; }
.words .theme { margin-top: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }

/* Building */
.exists { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 36rem) { .exists { grid-template-columns: repeat(2, 1fr); } }
.exists li { padding: 1.1rem 1.25rem; background: var(--white); border-radius: 0.5rem; border: 1.5px solid var(--sage); }
.exists b { display: block; font-weight: 600; }
.exists span { font-size: 0.9375rem; }
.pull { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.25; color: var(--sage-deep); }
.building { margin-top: 1.5rem; }
.building li { padding-block: 1rem; border-top: 1px solid rgb(36 56 65 / 0.18); }

/* Creating change: the central message, on deep slate */
.creating { background: var(--slate); }
.creating-pull { max-width: 22ch; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.1; color: var(--cream); text-wrap: balance; }
.creating-strong { display: block; margin-top: 0.15em; font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 0.82em; line-height: 1.08; letter-spacing: -0.02em; color: var(--white); }
.creating-list { display: grid; gap: 2rem; margin-top: 3.5rem; }
@media (min-width: 52rem) { .creating-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.creating-list li { padding-top: 1.25rem; border-top: 1px solid rgb(228 222 208 / 0.35); }
.creating-list p { margin-top: 0.5rem; font-weight: 400; }
.creating-focus { margin-top: 3rem; max-width: 46rem; font-size: 1.125rem; color: var(--cream); }
.exists a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.exists a::after { content: "\00a0\2197"; font-size: 0.8em; }

/* Vision */
.vision { text-align: center; }
.vision .wrap { padding-block: clamp(6rem, 16vw, 11rem); }
.vision h2 { max-width: 20ch; margin-inline: auto; }
.vision h2 + p { margin-top: 1.5rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }

/* Founders */
.founders { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 52rem) { .founders { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.founders img { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; }
.founders h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 800; }
.founders .role { font-weight: 600; font-size: 0.875rem; color: var(--sage-deep); }
.founders p { margin-top: 0.75rem; }

/* Contact */
.contact { background: var(--slate); }
.contact .split { align-items: start; }
.contact a { text-underline-offset: 0.25em; }
.direct { margin-top: 2rem; font-weight: 400; }
.direct li { margin-top: 0.35rem; overflow-wrap: anywhere; }
.form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); color: var(--slate); border-radius: 0.75rem; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.4rem; }
.field label small { font-weight: 300; font-size: 0.8125rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--slate);
  padding: 0.75rem 0.9rem; background: var(--white);
  border: 1.5px solid #8a9a97; border-radius: 0.4rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sage); outline-offset: 1px; border-color: var(--sage-deep); }
.field [aria-invalid="true"] { border-color: #a3341f; }
.field .error { margin-top: 0.35rem; font-size: 0.875rem; font-weight: 600; color: #a3341f; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 0.875rem; line-height: 1.55; }
.form-status { padding: 1rem 1.25rem; border-radius: 0.4rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #dcebe3; color: #23493a; }
.form-status.is-error { background: #f6ded8; color: #7c2415; }

/* Keep in touch sign-up */
.signup { display: grid; gap: 2.5rem; align-items: center; }
.signup-form { display: grid; gap: 1.25rem; }
.signup-form .note { font-size: 0.875rem; line-height: 1.55; }
.signup-form .btn { justify-self: start; }
@media (min-width: 60rem) {
  .signup { grid-template-columns: 5fr 7fr; gap: 4.5rem; }
  .signup-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .signup-form .note, .signup-form .form-status { grid-column: 1 / -1; }
}

/* Footer */
.site-footer { background: #1a2a31; color: var(--cream); font-size: 0.875rem; padding-block: 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }

/* Privacy and plain text pages */
.prose { padding-block: 4rem 6rem; }
.prose h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.prose h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; margin-top: 2.5rem; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }

/* Gentle reveal on scroll (only when JS is running and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
