/* ============================================================
   Community of Trees — shared internal-page system (Phase 1)

   Loaded AFTER css/styles.css, which owns the tokens, reset, pills,
   header, nav overlay and footer. This file adds only what internal
   pages need: openings, reading primitives, media, forms and states.

   Rules honoured here (AGENTS.md / DESIGN.md):
   - no eyebrow / kicker / decorative section labels;
   - metadata sits under a title, never above it;
   - continuous editorial layout first, containers only where they group;
   - one restrained motion language, all of it optional.
   ============================================================ */

:root {
  /* fixed-header clearance; measured against .site-header padding + logo height */
  --header-h: clamp(76px, 8vw, 112px);
  --measure: 68ch;
  --flow: clamp(1.1rem, 1.6vw, 1.5rem);      /* rhythm inside a reading column */
  --block: clamp(48px, 7vw, 104px);          /* rhythm between page sections */
}

/* ============================================================
   Frame
   ============================================================ */

/* Internal pages have no full-bleed hero, so the fixed header needs room.
   Field openings opt out with .page--media and clear the header themselves. */
.page > main { padding-top: var(--header-h); }
.page--media > main { padding-top: 0; }

/* Header sitting on top of an opening image: transparent until scrolled. */
.site-header--overlay {
  background: transparent;
  color: var(--on-dark);
  box-shadow: none;
}
.site-header--overlay .brand img { filter: brightness(0) invert(1); }
.site-header--overlay .pill--dark {
  background: var(--paper);
  color: var(--ink);
}
.site-header--overlay .pill--dark:hover { background: #fff; }
.site-header--overlay.is-solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header--overlay.is-solid .brand img { filter: none; }
.site-header--overlay.is-solid .pill--dark {
  background: var(--ink);
  color: var(--paper);
}
.site-header--overlay.is-solid .pill--dark:hover { background: var(--leaf-deep); }

/* Current page in the shared overlay navigation. */
.nav-links a[aria-current="page"] { color: var(--leaf); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 1px; margin-top: .12em;
  background: currentColor; opacity: .6;
}

/* ============================================================
   Openings — DESIGN.md allows exactly three
   ============================================================ */

/* 1. Image field — project and immersive pages. */
.opening--field {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(72svh, 720px);
  /* Full-bleed: the inset card was narrower than the header above it, so the
     brand and the menu sat outside the image at both top corners. */
  margin: 0 0 var(--block);
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 72px));
  overflow: hidden;
  color: var(--on-dark);
}
.opening--field > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Some source images carry burnt-in annotation on the right (see the Koumas
     aerial in ASSET_MANIFEST). Holding the crop left keeps that label out of
     the narrow-viewport frame instead of letting it sit under the summary. */
  object-position: 24% center;
}
.opening--field::after {
  content: ""; position: absolute; inset: 0;
  /* top band is darker so the transparent header stays legible over pale terrain */
  background: linear-gradient(rgba(18, 30, 14, .52), rgba(18, 30, 14, .26) 34%, rgba(18, 30, 14, .74));
}
.opening-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(32px, 5vw, 72px);
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}
.opening--field h1 {
  font-size: var(--heading-lg);
  max-width: 22ch;
  text-wrap: balance;
}
.opening--field .opening-summary {
  font-size: var(--step-1);
  font-weight: 300;
  max-width: 46ch;
  color: rgba(243, 239, 230, .92);
}
.opening-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* 2. Editorial masthead — journal and information pages. */
.opening--record {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) 0;
}
.opening--record .opening-inner {
  padding: 0;
  margin-inline: 0;
  max-width: none;
  gap: clamp(.9rem, 1.6vw, 1.4rem);
}
.opening--record h1 {
  font-size: var(--heading-lg);
  max-width: 30ch;
  text-wrap: balance;
}
.opening--record .opening-summary {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
}
.opening--record::after {
  content: ""; display: block;
  margin-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

/* 3. Action opening — support, contact and status pages. */
.opening--action {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) 0;
}
.opening--action .opening-inner {
  padding: 0; margin-inline: 0;
  max-width: 52ch;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.opening--action h1 { font-size: var(--heading-lg); max-width: 24ch; text-wrap: balance; }
.opening--action .opening-summary {
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 46ch;
}
.opening--action .opening-actions { margin-top: .25rem; }

/* ============================================================
   Back navigation, metadata, dividers, links
   ============================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.back-link svg { transition: transform .25s ease; }
.back-link:hover { color: var(--ink); }
.back-link:hover svg { transform: translateX(-4px); }
.back-bar {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(12px, 2vw, 20px) var(--gutter) 0;
}

/* Metadata row. Plain text, never a pill and never above a heading. */
.meta {
  display: flex; flex-wrap: wrap;
  gap: .3rem .9rem;
  align-items: baseline;
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: .02em;
}
.meta > * + *::before {
  content: "·";
  margin-right: .9rem;
  color: var(--line);
}
/* on-dark-mut over a .74 scrim on pale terrain measures ~3.3:1 — too low for this
   small text, so field openings get a lighter tint. */
.meta--on-dark { color: rgba(243, 239, 230, .82); }
.meta--on-dark > * + *::before { color: rgba(243, 239, 230, .35); }
.meta dt { display: inline; font-weight: 500; color: inherit; }
.meta dd { display: inline; margin: 0; }

.rule { border: 0; border-top: 1px solid var(--line); margin: var(--block) 0; }
.rule--tight { margin: clamp(24px, 4vw, 40px) 0; }
.rule--on-dark { border-top-color: rgba(243, 239, 230, .18); }

/* Inline text link inside prose — underlined, leaf on hover. */
.prose a:not(.pill):not(.arrow-link):not(.back-link),
.text-link {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.prose a:not(.pill):not(.arrow-link):not(.back-link):hover,
.text-link:hover {
  color: var(--leaf-deep);
  text-decoration-color: currentColor;
}

/* External / file destinations are marked, not decorated. */
.link-out::after {
  content: "↗";
  display: inline-block;
  margin-left: .35em;
  font-size: .85em;
  text-decoration: none;
}

/* ============================================================
   Sections and reading layout
   ============================================================ */
.section { padding-block: var(--block); }
.section:first-of-type { padding-top: 0; }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--tint { background: var(--paper-2); }
.section--dark {
  background: var(--forest);
  color: var(--on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .prose p { color: rgba(243, 239, 230, .84); }

/* Section heading + optional supporting column, no label above it. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-head h2 { font-size: var(--heading-md); max-width: 22ch; }
.section-head--single { grid-template-columns: minmax(0, 1fr); }
.section-head--single h2 { max-width: 28ch; }
.section-head p { color: var(--ink-soft); }
/* Dark sections: ink-soft on forest is unreadable (1.3:1). 5.6:1 with on-dark-mut. */
.section--dark .section-head p { color: var(--on-dark-mut); }
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* Reading column: ~60–75 characters. */
.reading { max-width: var(--measure); }
.reading--center { margin-inline: auto; }

.prose > * + * { margin-top: var(--flow); }
.prose p { color: var(--ink-soft); line-height: 1.65; }
.prose p.lead { color: var(--ink); }
.prose h2 {
  font-size: var(--heading-md);
  margin-top: calc(var(--flow) * 1.8);
  max-width: 26ch;
}
.prose h3 {
  font-size: var(--heading-sm);
  margin-top: calc(var(--flow) * 1.4);
  max-width: 30ch;
}
.prose strong { font-weight: 500; color: var(--ink); }
.section--dark .prose strong { color: var(--on-dark); }

/* Lists: readable prose lists, not icon rows. */
.prose ul, .prose ol { padding-left: 1.35em; color: var(--ink-soft); }
.prose li + li { margin-top: .55em; }
.prose li { line-height: 1.6; }
.list--marked {
  list-style: none;
  padding-left: 0;
}
.list--marked li {
  position: relative;
  padding-left: 1.5em;
}
.list--marked li::before {
  content: ""; position: absolute;
  left: 0; top: .72em;
  width: .6em; height: 1px;
  background: var(--leaf);
}
.section--dark .list--marked li::before { background: #9DBE8E; }

/* Quotes. */
.pullquote {
  margin-block: calc(var(--flow) * 1.6);
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 2px solid var(--leaf);
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: .9em;
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .pullquote { color: var(--on-dark); border-left-color: #9DBE8E; }
.section--dark .pullquote cite { color: var(--on-dark-mut); }

/* ============================================================
   Media: figures, wide media, captions, galleries
   ============================================================ */
.figure { margin-block: clamp(28px, 4vw, 48px); }
.figure img,
.figure video { border-radius: var(--radius-lg); width: 100%; }
.figure--column { max-width: var(--measure); }
.figure--wide { max-width: var(--maxw); }
.figure--bleed {
  margin-inline: calc(var(--gutter) * -1);
  max-width: none;
}
.figure--bleed img { border-radius: 0; }
.figure figcaption,
.caption {
  margin-top: .85rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.55;
}
.figure figcaption b,
.caption b { font-weight: 500; color: var(--ink-soft); }
.section--dark .figure figcaption,
.section--dark .caption { color: var(--on-dark-mut); }
.section--dark .figure figcaption b { color: rgba(243, 239, 230, .9); }

/* Two-up media row, unequal by default so it reads editorially. */
.media-pair {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}
.media-pair > * { margin-block: 0; }
@media (max-width: 760px) { .media-pair { grid-template-columns: 1fr; } }

/* Gallery: a real grid, keyboard reachable, no hidden carousel. */
.gallery {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}
.gallery figure { margin: 0; }
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: .6rem; }

/* ============================================================
   Documents
   ============================================================ */
.doclist { list-style: none; padding: 0; max-width: 62rem; }
.doclist li { border-top: 1px solid var(--line); }
.doclist li:last-child { border-bottom: 1px solid var(--line); }
.doclist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 1.5rem;
  align-items: baseline;
  padding: clamp(16px, 2vw, 22px) 0;
  min-height: 44px;
  transition: color .2s ease;
}
.doclist a:hover { color: var(--leaf-deep); }
.doclist .doc-title { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
.doclist .doc-note {
  grid-column: 1;
  color: var(--muted);
  font-size: var(--step--1);
}
.doclist .doc-kind {
  grid-row: 1;
  grid-column: 2;
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section--dark .doclist li { border-color: rgba(243, 239, 230, .18); }
.section--dark .doclist .doc-note,
.section--dark .doclist .doc-kind { color: var(--on-dark-mut); }
.section--dark .doclist a:hover { color: #9DBE8E; }

/* ============================================================
   Video / Vimeo / audio
   ============================================================ */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* visible frame so a blocked or failed third-party player reads as an empty
     media slot rather than a hole in the page; .media-note carries the text route */
  background: rgba(243, 239, 230, .07);
  outline: 1px solid rgba(243, 239, 230, .16);
  outline-offset: -1px;
}
.section:not(.section--dark) .embed {
  background: var(--paper-2);
  outline-color: var(--line);
}
.embed iframe,
.embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
/* Written next to every embed: says where the media lives and what to do
   if it will not load. Never the only route to the content. */
.media-note {
  margin-top: .85rem;
  display: flex; flex-wrap: wrap;
  gap: .4rem 1.2rem;
  align-items: baseline;
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 62ch;
  line-height: 1.55;
}
.section--dark .media-note { color: var(--on-dark-mut); }

/* Audio row usable on paper and on forest. */
.audio-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.audio-list { list-style: none; padding: 0; display: grid; gap: clamp(10px, 1.4vw, 16px); }
.audio-art {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--paper-2);
}
.audio-item h3 { font-size: var(--heading-sm); font-weight: 500; }
.audio-item .audio-meta { color: var(--muted); font-size: var(--step--1); margin-top: .2em; }
.audio-item audio {
  grid-column: 1 / -1;
  width: 100%;
  height: 40px;
}
@media (min-width: 820px) {
  .audio-item { grid-template-columns: 64px minmax(14ch, 26ch) minmax(0, 1fr); }
  .audio-item audio { grid-column: auto; max-width: 420px; justify-self: end; }
}
.section--dark .audio-item {
  background: rgba(243, 239, 230, .06);
  border-color: rgba(243, 239, 230, .14);
}
.section--dark .audio-item .audio-meta { color: var(--on-dark-mut); }

/* Reduced motion: no decorative movement, and no looping background video.
   Media the visitor starts themselves keeps working. */
/* Reduced motion needs nothing here: styles.css already disables every
   transition, animation and smooth scroll site-wide, and no internal-page
   media autoplays, so there is no ambient motion left to swap for a still.
   An internal page that later adds an ambient video must hide it under
   prefers-reduced-motion and show a still frame in its place. */

/* ============================================================
   Related content and the single contextual next step
   ============================================================ */
.related { list-style: none; padding: 0; display: grid; gap: 0; }
.related li { border-top: 1px solid var(--line); }
.related li:last-child { border-bottom: 1px solid var(--line); }
.related a {
  display: grid;
  gap: .45rem;
  padding: clamp(18px, 2.4vw, 26px) 0;
  transition: color .2s ease;
}
.related a:hover { color: var(--leaf-deep); }
.related h3 { font-size: var(--heading-sm); font-weight: 500; line-height: 1.25; max-width: 40ch; }
.related .meta { margin-top: .1rem; }

/* Journal entry list: the .related row plus the post's own summary line. */
.related .entry-note {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
  max-width: var(--measure);
}
.related a[aria-current="page"] { color: var(--leaf-deep); }

/* Image-led content cards reuse the homepage language for selectable records. */
.journal-grid,
.project-card-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}
.journal-card,
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -44px rgba(27, 26, 22, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.journal-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 64px -40px rgba(27, 26, 22, .5);
}
.journal-card-image,
.project-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}
.journal-card-image img,
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.journal-card:hover .journal-card-image img,
.project-card:hover .project-card-image img { transform: scale(1.04); }
.journal-card-copy,
.project-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2.2vw, 28px);
}
.journal-card h3,
.project-card h2,
.project-card h3 {
  font-size: var(--heading-sm);
  font-weight: 500;
  line-height: 1.22;
}
.journal-card h3 a,
.project-card h2 a,
.project-card h3 a { color: inherit; }
.journal-card-excerpt,
.project-card-copy > p:not(.meta) {
  display: -webkit-box;
  margin-top: .75rem;
  overflow: hidden;
  color: var(--ink-soft);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.journal-card-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(.68rem, 1.6vw, .83rem);
  line-height: 1.35;
  white-space: nowrap;
}
.journal-card-meta > * + *::before {
  content: "·";
  margin-right: .4rem;
  color: var(--line);
}
.project-card .meta { order: -1; margin-bottom: .8rem; }
.project-card-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card-grid--related + p { margin-top: clamp(24px, 4vw, 42px); }

@media (max-width: 980px) {
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .journal-grid,
  .project-card-grid,
  .project-card-grid--related { grid-template-columns: minmax(0, 1fr); }
}

/* Article prose sits on the page axis at wide viewports. */
.article-body { margin-inline: auto; }

/* ============================================================
   Koumas — terrain, evidence and a direct image gallery
   ============================================================ */
.page--koumas .opening--field { min-height: min(86svh, 900px); margin-bottom: 0; }
.page--koumas .opening--field h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.5vw, 6.8rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .9;
}
.koumas-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 120px);
}
.koumas-intro::before {
  content: "";
  position: absolute;
  right: clamp(-260px, -12vw, -90px);
  bottom: clamp(-300px, -18vw, -150px);
  width: clamp(430px, 52vw, 780px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .045;
  pointer-events: none;
}
.koumas-intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: start;
}
.koumas-intro-lead {
  max-width: 27ch;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.15vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.24;
}
.koumas-reasons {
  width: 100%;
  max-width: 48rem;
  justify-self: end;
}
.koumas-reasons h2 { max-width: 19ch; margin-top: 0; font-size: clamp(1.7rem, 2.5vw, 2.65rem); }
.koumas-reasons .list--marked { margin-top: clamp(26px, 4vw, 48px); border-top: 1px solid var(--line); }
.koumas-reasons .list--marked li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 0;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.koumas-reasons .list--marked li::before { display: none; }
.koumas-reason-icon,
.koumas-reason-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}
.koumas-reason-icon {
  margin-top: .1em;
  color: var(--leaf);
}
.koumas-reason-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.koumas-terrain { position: relative; overflow: hidden; }
.koumas-terrain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/bg_floral_pattern.svg") repeat;
  background-size: 860px;
  opacity: .035;
  pointer-events: none;
}
.koumas-terrain > .wrap { position: relative; }
.koumas-terrain .figure { margin: 0; }
.koumas-terrain-lead { margin-bottom: clamp(18px, 2.5vw, 32px) !important; }
.koumas-terrain img { min-height: 280px; object-fit: cover; }
.koumas-terrain-lead img { aspect-ratio: 16 / 7; }
.koumas-terrain .media-pair img { aspect-ratio: 4 / 3; }
.koumas-detail { background: var(--paper-2); }
.koumas-detail .reading { max-width: 74ch; }
.page--koumas .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page--koumas .gallery a { border-radius: var(--radius-lg); }
.koumas-documents .doclist { max-width: none; }
.koumas-documents .doclist a {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: clamp(20px, 3vw, 32px);
}
.koumas-documents .doclist a::after { grid-column: 2; font-size: 1.1rem; }
.image-lightbox {
  width: min(94vw, 1440px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.image-lightbox::backdrop { background: rgba(10, 14, 9, .9); backdrop-filter: blur(6px); }
.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(10, 14, 9, .65);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .koumas-intro-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 8vw, 72px); }
  .koumas-intro-lead { max-width: 32ch; }
  .koumas-reasons { max-width: none; justify-self: stretch; }
  .page--koumas .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .page--koumas .opening--field { min-height: 760px; }
  .page--koumas .opening--field h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .page--koumas .gallery { grid-template-columns: minmax(0, 1fr); }
  .koumas-terrain-lead img { aspect-ratio: 4 / 3; }
  .koumas-reasons .list--marked li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .koumas-reason-icon,
  .koumas-reason-icon svg { width: 32px; height: 32px; }
}

/* ============================================================
   Projects — one landmark feature and two image-led records
   ============================================================ */
.projects-opening {
  position: relative;
  overflow: hidden;
  padding-top: clamp(50px, 8vw, 108px);
  padding-bottom: clamp(38px, 6vw, 78px);
}
.projects-opening::before {
  content: "";
  position: absolute;
  right: clamp(-160px, -8vw, -40px);
  top: 0;
  width: clamp(360px, 44vw, 700px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .04;
  pointer-events: none;
}
.projects-opening .opening-inner { position: relative; }
.projects-opening h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 300;
  letter-spacing: -.065em;
  line-height: .84;
}
.projects-opening::after { margin-top: clamp(36px, 6vw, 72px); }
.projects-stage { padding-top: clamp(44px, 7vw, 92px); background: var(--paper-2); }
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(24rem, .85fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--on-dark);
  box-shadow: 0 32px 80px -54px rgba(12, 18, 9, .8);
}
.project-feature-media { min-height: 520px; overflow: hidden; }
.project-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.project-feature:hover .project-feature-media img { transform: scale(1.025); }
.project-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 5vw, 68px);
}
.project-feature-copy .meta { color: var(--on-dark-mut); }
.project-feature-copy h2 {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(2rem, 3.1vw, 3.45rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .98;
}
.project-feature-copy h2 a { color: inherit; }
.project-feature-copy > p:not(.meta) { margin-top: 1.1rem; color: rgba(243, 239, 230, .78); line-height: 1.55; }
.project-feature-copy .project-feature-lead { color: rgba(243, 239, 230, .94) !important; font-size: var(--step-1); }
.project-feature-copy .arrow-link { margin-top: clamp(24px, 4vw, 44px); color: var(--on-dark); }
.projects-stage > .wrap > .project-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(24px, 4vw, 48px); }
.projects-stage .project-card-image { aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .project-feature { grid-template-columns: minmax(0, 1fr); }
  .project-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .project-feature-copy { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .projects-opening h1 { font-size: clamp(3.2rem, 19vw, 5.2rem); }
  .projects-stage > .wrap > .project-card-grid { grid-template-columns: minmax(0, 1fr); }
  .project-feature-media { aspect-ratio: 4 / 3; }
}

/* Topic browsing. Pills are the compact control here, not decoration. */
.topic-nav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.topic-nav .pill[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.next-step {
  background: var(--paper-2);
  padding-block: clamp(40px, 6vw, 80px);
}
.next-step-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
}
.next-step h2 { font-size: var(--heading-md); max-width: 26ch; }
.next-step p { color: var(--ink-soft); margin-top: .6rem; max-width: 48ch; }
@media (max-width: 820px) {
  .next-step-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Support — place first, one clear donation method
   ============================================================ */
.support-opening {
  min-height: min(82svh, 860px);
  margin-bottom: 0;
}
.support-opening > img {
  object-position: center 57%;
}
.support-opening::after {
  background:
    linear-gradient(90deg, rgba(14, 20, 11, .76) 0%, rgba(14, 20, 11, .44) 48%, rgba(14, 20, 11, .14) 78%),
    linear-gradient(0deg, rgba(14, 20, 11, .7), transparent 58%);
}
.support-opening .opening-inner {
  padding-bottom: clamp(60px, 9vw, 118px);
}
.support-opening h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6.7vw, 6.6rem);
  font-weight: 300;
  letter-spacing: -.06em;
  line-height: .88;
  text-wrap: balance;
}
.support-opening .opening-summary {
  max-width: 38ch;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.65rem);
  line-height: 1.42;
}
.support-opening-credit {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 18px;
  color: rgba(243, 239, 230, .72);
  font-size: .72rem;
  line-height: 1.4;
}
.support-opening-credit a,
.support-panorama figcaption a,
.support-why-figure figcaption a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .16em;
}

.support-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(68px, 10vw, 144px);
}
.support-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-210px, -12vw, -100px);
  bottom: clamp(-260px, -18vw, -120px);
  width: clamp(420px, 52vw, 760px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .045;
  pointer-events: none;
}
.support-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.support-intro h2 {
  max-width: 30ch;
  font-size: clamp(1.6rem, 2.7vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.support-intro-copy {
  max-width: 58ch;
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.support-intro-copy p:first-child {
  color: var(--ink);
  font-size: var(--step-1);
}

.support-panorama {
  position: relative;
  margin-inline: var(--gutter);
  border-radius: var(--radius-lg);
  background: var(--forest);
  overflow: hidden;
}
.support-panorama img {
  width: 100%;
  min-height: 240px;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
.support-panorama figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  padding: .4rem .6rem;
  background: rgba(14, 20, 11, .68);
  color: rgba(243, 239, 230, .84);
  font-size: .72rem;
  line-height: 1.35;
}

.support-donation {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 150px);
}
.support-donation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/img/bg_floral_pattern.svg") repeat;
  background-size: 720px;
  opacity: .16;
  pointer-events: none;
}
.support-donation-grid {
  display: grid;
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.support-donation-head { min-width: 0; }
.support-donation-head h2 {
  max-width: 12ch;
  font-size: clamp(1.95rem, 3.3vw, 3.55rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
  text-wrap: balance;
}
.support-donation-head p {
  max-width: 40ch;
  margin-top: clamp(24px, 4vw, 42px);
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}
.support-bank {
  min-width: 0;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--on-dark);
  box-shadow: 0 28px 70px -48px rgba(27, 26, 22, .55);
}
.support-bank h3 {
  margin-bottom: clamp(40px, 7vw, 76px);
  color: rgba(243, 239, 230, .76);
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: .01em;
}
.support-iban {
  padding-block: clamp(24px, 4vw, 38px);
  border-top: 1px solid rgba(243, 239, 230, .25);
  border-bottom: 1px solid rgba(243, 239, 230, .25);
}
.support-iban span {
  display: block;
  margin-bottom: .75rem;
  color: #AFC7A5;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .12em;
}
.support-iban code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--on-dark);
  font-family: inherit;
  font-size: clamp(1.35rem, 2.75vw, 2.5rem);
  font-weight: 300;
  letter-spacing: .025em;
  line-height: 1.24;
}
.support-iban-reference {
  max-width: none;
  margin-top: clamp(24px, 4vw, 36px);
  color: rgba(243, 239, 230, .76);
  font-size: var(--step--1);
  line-height: 1.5;
}
.support-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.support-help > section {
  min-width: 0;
  min-height: 210px;
  padding: clamp(28px, 4vw, 46px) clamp(28px, 5vw, 58px) clamp(28px, 4vw, 46px) 0;
}
.support-help > section + section {
  padding-left: clamp(28px, 5vw, 58px);
  border-left: 1px solid var(--line);
}
.support-help h3 {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: var(--step-0);
  font-weight: 500;
}
.support-help a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .2em;
}
.support-help a:hover { color: var(--leaf-deep); text-decoration-color: currentColor; }
.support-help > section > a {
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  font-weight: 300;
}
.support-help ul {
  list-style: none;
  padding: 0;
  font-size: var(--step-1);
}
.support-help li + li { margin-top: .45rem; }
.support-help-note {
  max-width: 52ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.support-why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 150px);
}
.support-why::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/img/bg_floral_pattern.svg") repeat;
  background-size: 880px;
  opacity: .045;
  pointer-events: none;
}
.support-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: center;
}
.support-why-figure { margin: 0; }
.support-why-figure img {
  width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
}
.support-why-figure figcaption {
  margin-top: .8rem;
  color: var(--on-dark-mut);
  font-size: .72rem;
}
.support-why-copy h2 {
  max-width: 8ch;
  margin-bottom: clamp(34px, 6vw, 70px);
  font-size: clamp(2.3rem, 4.9vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .94;
}
@media (min-width: 901px) {
  .support-why-copy h2 {
    font-size: clamp(2.3rem, 4.1vw, 4.4rem);
  }
}
.support-facts { border-top: 1px solid rgba(243, 239, 230, .24); }
.support-fact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(243, 239, 230, .24);
}
.support-fact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #9DBE8E;
}
.support-fact-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-fact p {
  color: rgba(243, 239, 230, .86);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .support-intro-grid,
  .support-donation-grid,
  .support-why-grid { grid-template-columns: minmax(0, 1fr); }
  .support-intro h2 { max-width: 27ch; }
  .support-donation-head h2 { max-width: 12ch; }
  .support-donation-head p { max-width: 48ch; }
  .support-why-figure img { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .support-opening { min-height: 760px; }
  .support-opening > img { object-position: 36% center; }
  .support-opening h1 { font-size: clamp(2.75rem, 14vw, 4.3rem); }
  .support-opening-credit {
    right: var(--gutter);
    left: var(--gutter);
    bottom: 14px;
  }
  .support-opening .opening-inner { padding-bottom: 92px; }
  .support-intro-grid { gap: 2.5rem; }
  .support-intro h2 { font-size: clamp(1.55rem, 7.2vw, 2.1rem); }
  .support-panorama { margin-inline: var(--gutter); }
  .support-panorama img { min-height: 280px; object-position: 60% center; }
  .support-panorama figcaption {
    right: var(--gutter);
    left: var(--gutter);
  }
  .support-bank { margin-inline: 0; }
  .support-fact {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }
  .support-fact-icon,
  .support-fact-icon svg { width: 34px; height: 34px; }
  .support-help { grid-template-columns: minmax(0, 1fr); }
  .support-help > section,
  .support-help > section + section {
    min-height: 0;
    padding: 28px 0;
    border-left: 0;
  }
  .support-help > section + section { border-top: 1px solid var(--line); }
  .support-help h3 { margin-bottom: 22px; }
  .support-why-figure img { aspect-ratio: 4 / 5; }
}

/* ============================================================
   About — source record, not a generic organisation profile
   ============================================================ */
.about-opening .opening-summary { max-width: 58ch; }
.about-place { padding-bottom: 0; }
.about-place .figure { margin: 0; }
.about-place img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 47%;
}
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.about-intro > h2 {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  max-width: 15ch;
  font-size: var(--heading-md);
  text-wrap: balance;
}

.about-goals {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.about-goals li {
  position: relative;
  min-height: clamp(150px, 18vw, 220px);
  padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.45;
}
.about-goals li:nth-child(odd) { border-right: 1px solid var(--line); }
.about-goals li:nth-child(even) { padding-left: clamp(24px, 4vw, 48px); padding-right: 0; }
/* Icons carry the four aims. The mask keeps the stroke colour on the leaf token
   instead of baking a hex value into each data URI. */
.about-goals li::before {
  content: "";
  display: block;
  width: clamp(30px, 3.6vw, 42px);
  height: clamp(30px, 3.6vw, 42px);
  margin-bottom: clamp(16px, 2.4vw, 26px);
  background: var(--leaf);
  -webkit-mask-image: var(--aim-icon); mask-image: var(--aim-icon);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
  -webkit-mask-size: contain; mask-size: contain;
}
.about-goals li:nth-child(1) { --aim-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 14l2.4 2.4L16.5 11'/%3E%3C/svg%3E"); }
.about-goals li:nth-child(2) { --aim-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7l-4 4v-4H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 12h5'/%3E%3C/svg%3E"); }
.about-goals li:nth-child(3) { --aim-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M10.2 8.4l5.4 3.6-5.4 3.6z'/%3E%3C/svg%3E"); }
.about-goals li:nth-child(4) { --aim-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15.4 8.9a4.4 4.4 0 1 0 0 6.2'/%3E%3Cpath d='M7.6 11h6'/%3E%3Cpath d='M7.6 13.2h6'/%3E%3C/svg%3E"); }
.about-timeline {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgba(243, 239, 230, .18);
}
.about-timeline li {
  display: grid;
  grid-template-columns: clamp(92px, 13vw, 170px) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(243, 239, 230, .18);
}
.about-timeline time {
  color: #9DBE8E;
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -.03em;
}
.about-timeline p {
  max-width: 58ch;
  color: rgba(243, 239, 230, .86);
  font-size: var(--step-1);
  line-height: 1.5;
}
.about-history-media { margin-bottom: 0; }
.about-history-media img { border-radius: var(--radius); }

@media (max-width: 760px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .about-intro > h2 { position: static; max-width: 18ch; }
  .about-goals { grid-template-columns: minmax(0, 1fr); }
  .about-goals li,
  .about-goals li:nth-child(even) { min-height: 0; padding: 28px 0; border-right: 0; }
  .about-timeline li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}

/* ============================================================
   Contact — transparent email-form handoff and verified routes
   ============================================================ */
.contact-opening {
  position: relative;
  isolation: isolate;
  max-width: none;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(72px, 10vw, 144px);
}
.contact-opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(-210px, -12vw, -100px);
  left: clamp(-230px, -14vw, -120px);
  width: clamp(410px, 46vw, 720px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .04;
  pointer-events: none;
}
.contact-opening-grid {
  display: grid;
  grid-template-columns: minmax(18rem, .76fr) minmax(0, 1.24fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.contact-opening .opening-inner {
  width: auto;
  min-width: 0;
  max-width: 36rem;
  margin: 0;
  padding: 0;
}
.contact-opening h1 {
  max-width: 9ch;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .94;
  text-wrap: balance;
}
.contact-opening .opening-summary {
  max-width: 31ch;
  font-size: clamp(1.15rem, 1.05rem + .55vw, 1.48rem);
  line-height: 1.52;
}
.contact-opening-figure,
.contact-details-figure { min-width: 0; margin: 0; }
.contact-opening-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center 52%;
}
.contact-opening-figure figcaption,
.contact-details-figure figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}
.contact-opening-figure figcaption a,
.contact-details-figure figcaption a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .16em;
}

.contact-compose {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 150px);
  scroll-margin-top: var(--header-h);
}
.contact-compose::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/img/bg_floral_pattern.svg") repeat;
  background-size: 860px;
  opacity: .045;
  pointer-events: none;
}
.contact-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8.5rem);
  align-items: start;
}
.contact-compose-intro h2 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .98;
  text-wrap: balance;
}
.contact-compose-intro p {
  max-width: 42ch;
  margin-top: clamp(24px, 4vw, 38px);
  color: rgba(243, 239, 230, .82);
  font-size: var(--step-1);
  line-height: 1.55;
}
.contact-compose-intro p + p {
  margin-top: 1rem;
  color: var(--on-dark-mut);
  font-size: var(--step-0);
}
.contact-compose-intro a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(243, 239, 230, .42);
  text-underline-offset: .18em;
}
.contact-compose-intro a:hover { color: #c7ddb9; }
.contact-form {
  display: grid;
  gap: clamp(20px, 2.7vw, 30px);
  min-width: 0;
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid rgba(243, 239, 230, .24);
}
.contact-field { display: grid; gap: .55rem; }
.contact-field label {
  color: var(--on-dark);
  font-size: var(--step-0);
  font-weight: 500;
}
.contact-field label span { color: #afc7a5; }
.contact-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .55rem .8rem;
  align-items: start;
}
.contact-consent input {
  width: 22px;
  height: 22px;
  margin: .1rem 0 0;
  accent-color: #afc7a5;
}
.contact-consent label {
  color: var(--on-dark);
  font-size: var(--step--1);
  line-height: 1.55;
}
.contact-consent label span { color: #afc7a5; }
.contact-consent .contact-field-error { grid-column: 2; }
.contact-consent input:focus-visible {
  outline: 2px solid #afc7a5;
  outline-offset: 3px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 52px;
  padding: .85em .95em;
  border: 1px solid rgba(243, 239, 230, .3);
  border-radius: var(--radius);
  background: rgba(243, 239, 230, .075);
  color: var(--on-dark);
  font: inherit;
  caret-color: var(--on-dark);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-field textarea {
  min-height: 12rem;
  line-height: 1.55;
  resize: vertical;
}
.contact-field input:hover,
.contact-field textarea:hover {
  border-color: rgba(243, 239, 230, .55);
  background: rgba(243, 239, 230, .1);
}
.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid #afc7a5;
  outline-offset: 2px;
  border-color: #afc7a5;
  background: rgba(243, 239, 230, .12);
}
.contact-field [aria-invalid="true"] { border-color: #e2a08f; }
.contact-field-error {
  position: relative;
  padding-left: 1.3em;
  color: #f0b7a8;
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.45;
}
.contact-field-error::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.25rem;
  align-items: center;
}
.contact-form-actions p,
.contact-form-status {
  color: var(--on-dark-mut);
  font-size: var(--step--1);
  line-height: 1.5;
}
.contact-form-status:empty { display: none; }
.contact-form button[disabled] { cursor: wait; opacity: .62; }

.contact-details {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 148px);
}
.contact-details::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-280px, -17vw, -130px);
  bottom: clamp(-330px, -21vw, -170px);
  width: clamp(470px, 58vw, 850px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .035;
  pointer-events: none;
}
.contact-details-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(58px, 9vw, 108px);
}
.contact-details-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: 58% center;
}
.contact-details-copy {
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
}
.contact-details-copy h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
  text-wrap: balance;
}
.contact-details-copy p {
  max-width: 42ch;
  margin-top: clamp(22px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}
.contact-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-ledger > section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-content: start;
  min-width: 0;
  min-height: clamp(220px, 22vw, 300px);
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
}
.contact-ledger > section:first-child { padding-left: 0; }
.contact-ledger > section:last-child { padding-right: 0; border-right: 0; }
.contact-ledger h3 {
  margin-bottom: clamp(24px, 4vw, 42px);
  font-size: var(--heading-sm);
  font-weight: 500;
}
.contact-detail-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--leaf);
}
.contact-detail-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-ledger address,
.contact-phones {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  font-style: normal;
  line-height: 1.55;
}
.contact-phones { list-style: none; padding: 0; }
.contact-phones li + li { margin-top: .55rem; }
.contact-phones a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .18em;
}
.contact-phones a:hover { color: var(--leaf-deep); text-decoration-color: currentColor; }

@media (max-width: 900px) {
  .contact-opening-grid,
  .contact-compose-grid,
  .contact-details-intro { grid-template-columns: minmax(0, 1fr); }
  .contact-opening .opening-inner { max-width: 44rem; }
  .contact-opening h1 { font-size: clamp(2.75rem, 8.5vw, 4.4rem); }
  .contact-opening-figure img { aspect-ratio: 16 / 10; }
  .contact-compose-intro { max-width: 48rem; }
  .contact-compose-intro h2 { max-width: 16ch; }
  .contact-details-copy { max-width: 44rem; }
  .contact-ledger { grid-template-columns: minmax(0, 1fr); }
  .contact-ledger > section,
  .contact-ledger > section:first-child,
  .contact-ledger > section:last-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-ledger > section:last-child { border-bottom: 0; }
  .contact-ledger h3 { margin-bottom: 18px; }
}

@media (max-width: 760px) {
  .contact-opening { padding-top: 28px; }
  .contact-opening-grid { gap: 2.75rem; }
  .contact-opening h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .contact-opening-figure img { aspect-ratio: 4 / 5; object-position: 52% center; }
  .contact-compose-grid { gap: 2.7rem; }
  .contact-compose-intro h2 { font-size: clamp(2.05rem, 9.5vw, 2.9rem); }
  .contact-form-actions { align-items: flex-start; flex-direction: column; }
  .contact-details-figure img { aspect-ratio: 4 / 3; object-position: 68% center; }
  .contact-details-copy h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .contact-ledger > section,
  .contact-ledger > section:first-child,
  .contact-ledger > section:last-child {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }
  .contact-detail-icon,
  .contact-detail-icon svg { width: 34px; height: 34px; }
}

/* ============================================================
   Get involved — one verified invitation, with project context
   ============================================================ */
.participation-opening {
  position: relative;
  isolation: isolate;
  max-width: none;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(72px, 10vw, 144px);
}
.participation-opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(-190px, -10vw, -80px);
  left: clamp(-210px, -12vw, -110px);
  width: clamp(390px, 43vw, 690px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .04;
  pointer-events: none;
}
.participation-opening-grid {
  display: grid;
  grid-template-columns: minmax(19rem, .78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.participation-opening .opening-inner {
  width: auto;
  min-width: 0;
  max-width: 39rem;
  margin: 0;
  padding: 0;
}
.participation-opening h1 {
  width: 100%;
  max-width: 8ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .92;
  text-wrap: balance;
}
.participation-opening .opening-summary {
  max-width: 39ch;
  font-size: clamp(1.15rem, 1.05rem + .55vw, 1.48rem);
  line-height: 1.52;
}
.participation-opening-figure,
.participation-work-figure { margin: 0; min-width: 0; }
.participation-opening-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center 56%;
}
.participation-opening-figure figcaption,
.participation-work-figure figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}
.participation-opening-figure figcaption a,
.participation-work-figure figcaption a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .16em;
}

.participation-invitation {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 150px);
}
.participation-invitation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/img/bg_floral_pattern.svg") repeat;
  background-size: 860px;
  opacity: .045;
  pointer-events: none;
}
.participation-invitation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(20rem, .94fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}
.participation-invitation h2 {
  max-width: 12ch;
  font-size: clamp(2.25rem, 4.7vw, 4.55rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .95;
  text-wrap: balance;
}
.participation-invitation-copy {
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid rgba(243, 239, 230, .24);
}
.participation-invitation-copy p {
  max-width: 39ch;
  color: rgba(243, 239, 230, .84);
  font-size: var(--step-1);
  line-height: 1.55;
}
.participation-invitation-copy p + p {
  margin-top: 1rem;
  color: var(--on-dark-mut);
  font-size: var(--step-0);
}
.participation-email {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 52px;
  margin-top: clamp(30px, 5vw, 52px);
  color: var(--on-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  font-weight: 300;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: rgba(243, 239, 230, .38);
  text-underline-offset: .22em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.participation-email span { color: #AFC7A5; transition: transform .25s ease; }
.participation-email:hover { color: #fff; text-decoration-color: currentColor; }
.participation-email:hover span { transform: translateX(6px); }

.participation-work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 148px);
}
.participation-work::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-260px, -15vw, -120px);
  bottom: clamp(-300px, -20vw, -150px);
  width: clamp(460px, 56vw, 820px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .035;
  pointer-events: none;
}
.participation-work-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, .92fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(56px, 9vw, 104px);
}
.participation-work-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
}
.participation-work-copy {
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
}
.participation-work-copy h2 {
  max-width: 13ch;
  font-size: clamp(1.75rem, 3.1vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
  text-wrap: balance;
}
.participation-work-copy p {
  max-width: 40ch;
  margin-top: clamp(22px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}
.participation-context { border-top: 1px solid var(--line); }
.participation-context a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: clamp(1.1rem, 3vw, 2.7rem);
  align-items: center;
  min-height: 44px;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.participation-context-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--leaf);
}
.participation-context-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.participation-context-text {
  display: grid;
  grid-template-columns: minmax(12rem, .72fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
}
.participation-context-title {
  font-size: var(--step-1);
  font-weight: 500;
}
.participation-context-copy {
  max-width: 48ch;
  color: var(--ink-soft);
  line-height: 1.55;
}
.participation-context-arrow {
  color: var(--leaf);
  font-size: var(--step-1);
  transition: transform .25s ease;
}
.participation-context a:hover { color: var(--leaf-deep); }
.participation-context a:hover .participation-context-copy { color: inherit; }
.participation-context a:hover .participation-context-arrow { transform: translateX(7px); }
.page--participation .next-step-inner > .pill { justify-self: start; }

@media (max-width: 900px) {
  .participation-opening-grid,
  .participation-invitation-grid,
  .participation-work-intro { grid-template-columns: minmax(0, 1fr); }
  .participation-opening .opening-inner { max-width: 46rem; }
  .participation-opening h1 { max-width: 10ch; font-size: clamp(2.75rem, 8.5vw, 4.4rem); }
  .participation-opening-figure img { aspect-ratio: 16 / 10; }
  .participation-invitation h2 { max-width: 13ch; }
  .participation-work-intro { align-items: start; }
  .participation-work-copy { max-width: 42rem; }
}

@media (max-width: 680px) {
  .participation-opening { padding-top: 28px; }
  .participation-opening-grid { gap: 2.75rem; }
  .participation-opening h1 { max-width: 8ch; font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .participation-opening-figure img { aspect-ratio: 4 / 5; object-position: 56% center; }
  .participation-invitation-grid { gap: 2.7rem; }
  .participation-invitation h2 { font-size: clamp(2.15rem, 9.8vw, 3rem); }
  .participation-email { overflow-wrap: anywhere; font-size: clamp(1.35rem, 7.2vw, 1.85rem); }
  .participation-work-figure img { aspect-ratio: 4 / 3; object-position: 44% center; }
  .participation-work-copy h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .participation-context a {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
  }
  .participation-context-icon,
  .participation-context-icon svg { width: 34px; height: 34px; }
  .participation-context-text {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
  }
  .participation-context-copy { font-size: var(--step--1); }
}

/* ============================================================
   Soundscapes — one listening surface for both source programmes
   ============================================================ */

/* 1. Opening. One quiet water clip restores the immersive entrance while the
   poster and reduced-motion behaviour keep the opening calm (D-046). */
.page--soundscapes .opening--field {
  position: relative;
  isolation: isolate;
  min-height: min(84svh, 880px);
  margin-bottom: 0;
  background: var(--forest);
}
.page--soundscapes .opening--field > img,
.page--soundscapes .opening--field > video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  filter: saturate(.7) contrast(1.02) brightness(.66);
  pointer-events: none;
}
.page--soundscapes .opening--field::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: clamp(-180px, -7vw, -72px);
  bottom: clamp(-210px, -12vw, -90px);
  width: min(68vw, 880px);
  aspect-ratio: 1068.7 / 1167.11;
  background: url("../assets/img/logo_simple.svg") no-repeat center / contain;
  opacity: .065;
  pointer-events: none;
}
.page--soundscapes .opening--field::after {
  z-index: 1;
  background:
    radial-gradient(ellipse at 76% 48%, rgba(157, 190, 142, .08), transparent 39%),
    linear-gradient(rgba(12, 22, 9, .48), rgba(12, 22, 9, .3) 40%, rgba(12, 22, 9, .82));
}
.page--soundscapes .opening--field h1 {
  font-size: var(--heading-xl);
  max-width: 16ch;
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .92;
}
.page--soundscapes .opening--field .opening-summary { max-width: 40ch; }

/* 2. Recording field. */
.soundscape-field { position: relative; overflow: hidden; }
.soundscape-field::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../assets/img/bg_floral_pattern.svg") repeat;
  background-size: 760px;
  opacity: .045;
}
.soundscape-field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(157, 190, 142, .08), transparent 28rem),
    linear-gradient(90deg, transparent 0, transparent calc(50% - .5px), rgba(243, 239, 230, .025) 50%, transparent calc(50% + .5px));
}
.soundscape-field > .wrap { position: relative; z-index: 1; }
.soundscape-field-head { margin-bottom: clamp(38px, 6vw, 72px); }
.soundscape-field-head h2 { max-width: 20ch; }
.soundscape-list {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}
.soundscape-track {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(3.5rem, 8vw, 8rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  min-height: clamp(390px, 39vw, 520px);
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(243, 239, 230, .16);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.soundscape-card-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #101b0d;
}
.soundscape-card-media > img,
.soundscape-card-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(.98) brightness(.68);
  pointer-events: none;
}
.soundscape-track::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 24, 10, .97) 0, rgba(13, 24, 10, .88) 48%, rgba(13, 24, 10, .46) 100%),
    linear-gradient(to top, rgba(13, 24, 10, .72), transparent 58%);
}
#kampos .soundscape-card-media > img,
#kampos .soundscape-card-media > video { object-position: center 58%; }
#eleonora .soundscape-card-media > img,
#eleonora .soundscape-card-media > video { object-position: center; }
#petra .soundscape-card-media > img,
#petra .soundscape-card-media > video { object-position: center 48%; }
#radiobot .soundscape-card-media > img,
#radiobot .soundscape-card-media > video { object-position: center 54%; }
.soundscape-number {
  position: relative;
  color: rgba(243, 239, 230, .48);
  font-size: clamp(2.2rem, 5.4vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .9;
}
.soundscape-track-body { position: relative; min-width: 0; }
.soundscape-track-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem clamp(1rem, 4vw, 4rem);
  align-items: start;
}
.soundscape-track h3 {
  max-width: 25ch;
  font-size: clamp(1.4rem, 3vw, 2.85rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.soundscape-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .8rem;
  color: rgba(243, 239, 230, .66);
  font-size: var(--step--1);
  line-height: 1.5;
}
.soundscape-meta span + span::before {
  content: "·";
  margin-right: .8rem;
  color: rgba(243, 239, 230, .28);
}
.soundscape-description {
  max-width: 58ch;
  margin-top: clamp(18px, 2.5vw, 28px);
  color: rgba(243, 239, 230, .78);
  font-size: var(--step-0);
  line-height: 1.6;
}

/* 3. Play row. The SoundCloud widget replaces this button on the first click,
   so the dark field carries no third-party frame until a visitor asks. */
/* Held to the same measure as .soundscape-description, so the row reads as a
   control beside the text and not as a stretched band. */
.sc-player {
  max-width: 48rem;
  margin-top: clamp(22px, 3vw, 34px);
}
.sc-play {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  width: 100%;
  min-height: 96px;
  padding: 18px clamp(18px, 3vw, 30px);
  font: inherit;
  text-align: left;
  color: var(--on-dark);
  background: rgba(10, 18, 8, .5);
  border: 1px solid rgba(243, 239, 230, .28);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease;
}
.sc-play:hover {
  background: rgba(51, 71, 45, .72);
  border-color: rgba(157, 190, 142, .55);
}
/* The shared --leaf focus ring is too dark on the forest field. */
.sc-play:focus-visible { outline-color: #C7DDB9; }
/* The tile matches the 64px cover art on the music rows below, so both kinds
   of listening row read as one family. A field recording has no cover art, and
   a photograph here would claim a place the recording does not show, so the
   tile is a ripple pattern drawn in CSS (D-043). */
.sc-play-mark {
  position: relative;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(199, 221, 185, .3);
  border-radius: 14px;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 5px, rgba(199, 221, 185, .15) 5px 6px),
    linear-gradient(150deg, rgba(157, 190, 142, .26), rgba(199, 221, 185, .05));
  transition: border-color .35s ease;
}
/* The disc behind the triangle. It is what fills on hover, so the ripple
   pattern stays visible instead of being covered by a solid block. */
.sc-play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(199, 221, 185, .5);
  border-radius: 50%;
  background: rgba(18, 30, 14, .42);
  transition: background .35s ease, border-color .35s ease;
}
.sc-play-mark::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #C7DDB9;
  transition: border-color .35s ease;
}
.sc-play:hover .sc-play-mark { border-color: rgba(199, 221, 185, .6); }
.sc-play:hover .sc-play-mark::after { background: #C7DDB9; border-color: #C7DDB9; }
.sc-play:hover .sc-play-mark::before { border-left-color: var(--forest); }
.sc-play-label { font-size: var(--step-0); }
.sc-play-time {
  color: rgba(243, 239, 230, .6);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.sc-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: #f5f5f5;
}

.soundscape-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 16px;
  color: rgba(243, 239, 230, .82);
  font-size: var(--step--1);
}
.soundscape-links .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-color: rgba(243, 239, 230, .3);
}
.soundscape-links .text-link:hover { color: #c7ddb9; }
.soundscape-track--unavailable { min-height: clamp(310px, 30vw, 420px); }
.soundscape-unavailable {
  max-width: 48ch;
  margin-top: clamp(20px, 3vw, 32px);
  padding: 18px 0 18px clamp(16px, 2.5vw, 28px);
  border-left: 2px solid rgba(157, 190, 142, .7);
  color: rgba(243, 239, 230, .74);
  line-height: 1.55;
}

/* 3b. Brian Eno selections (D-043). The rows reuse the homepage .track and
   .sound-head rules in styles.css, so the two pages present the same material
   the same way. Only the spacing on this page is set here. */
.soundscape-music {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(243, 239, 230, .15);
  border-radius: var(--radius-lg);
  background: rgba(243, 239, 230, .025);
}
.soundscape-music .sound-head h2 { max-width: 34ch; }
.soundscape-music .track-list {
  padding: 0;
  list-style: none;
}
.soundscape-music .track { background: rgba(243, 239, 230, .05); }

.page--soundscapes .next-step-inner > .pill { justify-self: start; }

@media (max-width: 760px) {
  .soundscape-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    min-height: 440px;
  }
  .soundscape-number { font-size: 2rem; }
  .soundscape-track-head { grid-template-columns: minmax(0, 1fr); }
  .soundscape-meta { justify-content: flex-start; }
  .soundscape-track::after {
    background:
      linear-gradient(to bottom, rgba(13, 24, 10, .58), rgba(13, 24, 10, .94) 58%, rgba(13, 24, 10, .98)),
      linear-gradient(to right, rgba(13, 24, 10, .45), transparent);
  }
}

/* The duration already appears in the row metadata, so the narrow play row
   drops it rather than squeezing the label into two lines. */
@media (max-width: 560px) {
  .sc-play {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 84px;
  }
  .sc-play-mark { width: 46px; height: 46px; }
  .sc-play-time { display: none; }
  .soundscape-track { padding: 24px 20px; }
  .soundscape-music { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .soundscape-field::before { background: none; }
  /* soundscapes.js assigns no source in this case; hiding the element makes
     sure a cached or preloaded frame cannot show through either. */
  .soundscapes-opening > video,
  .soundscape-card-media video { display: none; }
  .sc-play,
  .sc-play-mark,
  .sc-play-mark::before { transition: none; }
}

/* ============================================================
   Forms
   ============================================================ */
.form { display: grid; gap: clamp(18px, 2.4vw, 26px); max-width: 34rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; font-size: var(--step-0); }
.field .req { color: var(--leaf-deep); }
.field .hint { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: #FBF9F4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8em .9em;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 8em; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #97917F; }
.field input:hover:not(:disabled),
.field textarea:hover:not(:disabled) { border-color: #C3BCAA; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
  border-color: var(--leaf);
  background: #fff;
}
.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  background: var(--paper-2);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}
.field :disabled ~ .hint { color: #9B9585; }

/* Error: message tied to the field via aria-describedby, and never colour-only. */
.field [aria-invalid="true"] {
  border-color: #8C3A2A;
  background: #FDF4F1;
}
/* Marker is absolute, not a flex item: the message stays one continuous
   sentence, so inline spans and punctuation do not break onto their own line. */
.field-error,
.field-ok {
  position: relative;
  padding-left: 1.4em;
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.5;
}
.field-error::before,
.field-ok::before { position: absolute; left: 0; top: 0; }
.field-error { color: #8C3A2A; }
.field-error::before { content: "!"; font-weight: 700; }

/* Field-level success confirmation. */
.field-ok { color: var(--leaf-deep); }
.field-ok::before { content: "✓"; }
.field--ok input { border-color: var(--leaf); }

/* Radio / checkbox groups. The generic .field rules stretch every control to the
   full column width, which is wrong for a 20px dial, so choices opt out here. */
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; }
.choices > legend { font-weight: 500; font-size: var(--step-0); padding: 0; margin-bottom: .35rem; }
.choice {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px; /* touch target, not the dial itself */
  font-weight: 400;
  cursor: pointer;
}
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: var(--leaf-deep);
  cursor: pointer;
}
.choice input:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.pill[aria-disabled="true"],
.pill:disabled {
  background: var(--paper-2);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Status blocks: success, error, empty, no results, loading
   ============================================================ */
.status {
  display: grid;
  gap: .5rem;
  max-width: 52ch;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--paper);
}
.status h2, .status h3 { font-size: var(--heading-sm); }
.status p { color: var(--ink-soft); }
.status .status-action { margin-top: .6rem; justify-self: start; }
.status--success { border-left-color: var(--leaf); background: #F1F4EC; }
.status--error { border-left-color: #8C3A2A; background: #FBF3F0; }
.status--empty,
.status--noresults {
  border-left-color: var(--muted);
  background: var(--paper-2);
}
.status--loading { border-left-color: var(--muted); color: var(--muted); }
.status--loading p { color: var(--muted); }

/* ============================================================
   Specimen scaffolding — internal review pages only.
   Not part of the page system; never used on a client-facing page.
   ============================================================ */
.specimen-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
}
.specimen-bar-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .6rem var(--gutter);
  display: flex; flex-wrap: wrap;
  gap: .3rem 1.4rem;
  align-items: center;
}
.specimen-bar a { text-decoration: underline; text-underline-offset: .2em; min-height: 44px; display: inline-flex; align-items: center; }
.specimen-bar a[aria-current="page"] { color: #9DBE8E; text-decoration: none; }
.specimen-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
  max-width: 68ch;
}
.specimen-note b { color: var(--ink-soft); font-weight: 500; }
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.specimen-label {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: .8rem;
}
