/* Comunidade Rio Flow — site styles (v3: second-round refinement)
   Brand: Brand Guide RioFlow (palette, Lucky Bones + Optima Extra Black).
   Agreed exception: green #1B3A2A replaces brand-guide green #45936C. */

@font-face {
  font-family: "Lucky Bones";
  src: local("Lucky Bones"), local("Luckybones-Bold"), url("../fonts/Luckybones-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
/* Optima is a licensed system font on Apple devices; referenced locally, never redistributed. */
@font-face {
  font-family: "CRF Optima Black";
  src: local("Optima ExtraBlack"), local("Optima-ExtraBlack"), local("Optima Bold"), local("Optima-Bold");
  font-weight: 900;
}
/* Where Optima is not installed (Windows, Android), these free stand-ins keep its character:
   Belleza for text, Alegreya Sans Black for heavy text and numbers (SIL Open Font Licence, files in fonts/).
   Apple devices never download them: Optima comes first in each stack. */
@font-face {
  font-family: "CRF Belleza";
  src: url("../fonts/belleza-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "CRF Alegreya Black";
  src: url("../fonts/alegreya-sans-900.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  size-adjust: 112%; /* Alegreya is smaller on the body than Optima Extra Black */
}

:root {
  --forest: #1B3A2A;
  --forest-deep: #13291E;   /* deeper tone of the same green, for depth */
  --sun: #E3A107;
  --cream: #EBE7B7;
  --orange: #DD4F18;
  --leaf: #45936C;          /* brand-guide green, used as a light accent (portfolio: Santa Teresa card) */
  --paper-1: #ECE8BC; --paper-2: #E4DCA4; --paper-3: #D8C47E;   /* portfolio paper fade */
  --black: #000000;
  --cream-70: rgba(235, 231, 183, .8);
  --rule-dark: rgba(27, 58, 42, .24);
  --rule-light: rgba(235, 231, 183, .22);

  --display: "Lucky Bones", "Cooper Black", Georgia, serif;
  --text: Optima, "Optima nova", "CRF Belleza", Candara, "Segoe UI", "Noto Sans", sans-serif;
  --heavy: "CRF Optima Black", Optima, "CRF Alegreya Black", Candara, "Segoe UI", sans-serif;

  --step--1: clamp(.86rem, .82rem + .15vw, .95rem);
  --step-0: clamp(1rem, .95rem + .25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.08rem + .55vw, 1.55rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.3rem);
  --step-3: clamp(2rem, 1.5rem + 2.3vw, 3.8rem);
  --step-4: clamp(2.6rem, 1.7rem + 4vw, 6rem);
  --step-5: clamp(3.1rem, 1.8rem + 6.4vw, 9rem);
  --step-6: clamp(3.4rem, 1.6rem + 8.5vw, 12rem);

  --gutter: clamp(20px, 4.6vw, 104px);
  --max: 1720px;
  --section: clamp(4.5rem, 2.5rem + 8vw, 11rem);
  --header-h: 76px;

  /* motion system: one easing curve, three speeds */
  --ease: cubic-bezier(.22, .7, .2, 1);
  --fast: 220ms;
  --mid: 700ms;
  --slow: 1300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--forest); color: var(--forest);
  font-family: var(--text); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
main { display: block; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.t-forest :focus-visible, .t-deep :focus-visible, .t-black :focus-visible, .t-photo :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible { outline-color: var(--sun); }
.t-sun :focus-visible, .t-paper :focus-visible, .t-cream :focus-visible { outline-color: var(--forest); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--sun); color: var(--forest); padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { position: relative; padding-block: var(--section); }
.band--tight { padding-block: calc(var(--section) * .55); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c-1-5 { grid-column: 1 / 6; } .c-1-6 { grid-column: 1 / 7; } .c-1-7 { grid-column: 1 / 8; } .c-1-8 { grid-column: 1 / 9; }
  .c-6-13 { grid-column: 6 / 13; } .c-7-13 { grid-column: 7 / 13; } .c-8-13 { grid-column: 8 / 13; } .c-9-13 { grid-column: 9 / 13; }
  .c-2-7 { grid-column: 2 / 8; } .c-2-8 { grid-column: 2 / 9; } .c-1-13 { grid-column: 1 / -1; } .c-5-13 { grid-column: 5 / 13; }
  .row-1 { grid-row: 1; }
  .grid--center { align-items: center; } .grid--end { align-items: end; }
}

/* surfaces: each sets its own text colours */
.t-forest { background: var(--forest); color: var(--cream); }
.t-deep { background: var(--forest-deep); color: var(--cream); }
.t-sun { background: var(--sun); color: var(--forest); }
.t-cream { background: var(--cream); color: var(--forest); }
.t-black { background: var(--forest-deep); color: var(--cream); } /* black retired in v3: deep green instead */
.t-paper { background: radial-gradient(120% 90% at 100% 100%, rgba(69, 147, 108, .16), transparent 55%), linear-gradient(112deg, var(--paper-1) 0%, var(--paper-2) 58%, var(--paper-3) 100%); color: var(--forest); }
.t-forest .hd, .t-deep .hd, .t-black .hd, .t-photo .hd { color: var(--cream); }
.t-sun .hd, .t-cream .hd, .t-paper .hd { color: var(--forest); }
.soft { opacity: .85; }
.t-forest .soft, .t-deep .soft, .t-black .soft, .t-photo .soft { opacity: 1; color: var(--cream-70); }

/* seams: a soft colour transition from the previous surface into this one */
.seam::before {
  content: ""; position: absolute; inset: 0 0 auto; height: clamp(90px, 16vh, 220px);
  background: linear-gradient(var(--prev, transparent), transparent); pointer-events: none;
}
.seam > * { position: relative; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: .94; }
.d-6 { font-size: var(--step-6); } .d-5 { font-size: var(--step-5); } .d-4 { font-size: var(--step-4); } .d-3 { font-size: var(--step-3); line-height: 1.02; }
.h3 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-2); line-height: 1.12; }
.h4 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); line-height: 1.22; }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 44ch; }
.small { font-size: var(--step--1); }
.label { font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); letter-spacing: .01em; margin-bottom: 1rem; }
.t-cream .label, .t-paper .label { color: var(--orange); }
.t-sun .label { color: var(--forest); }
.t-forest .label, .t-deep .label, .t-black .label, .t-photo .label { color: var(--sun); }
.line { display: block; }
.c-sun { color: var(--sun); } .c-cream { color: var(--cream); } .c-orange { color: var(--orange); } .c-forest { color: var(--forest); } .c-black { color: var(--black); }
.max-14 { max-width: 14ch; } .max-18 { max-width: 18ch; } .max-24 { max-width: 24ch; } .max-40 { max-width: 40ch; } .max-60 { max-width: 60ch; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: clamp(3rem, 6vw, 6rem); }

/* ---------- Buttons (kept from v1: lift on hover, press on click) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--heavy); font-weight: 900; font-size: var(--step-0); line-height: 1.1;
  padding: .95em 1.5em; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 90ms; }
.btn--sun { background: var(--sun); color: var(--forest); }
.btn--sun:hover { background: #F0B21C; box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .28); }
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--forest-deep); box-shadow: 0 10px 0 -4px rgba(27, 58, 42, .28); }
.btn--black { background: var(--black); color: var(--sun); }
.btn--black:hover { box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .28); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(235, 231, 183, .14); }
.t-sun .btn--ghost:hover, .t-cream .btn--ghost:hover { background: rgba(27, 58, 42, .08); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

.textlink {
  font-family: var(--heavy); font-weight: 900; text-decoration: underline;
  text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .32em;
  transition: text-decoration-thickness var(--fast) var(--ease), text-underline-offset var(--fast) var(--ease);
}
.t-forest .textlink, .t-deep .textlink, .t-black .textlink, .t-photo .textlink { text-decoration-color: var(--sun); }
.t-sun .textlink { text-decoration-color: var(--forest); }
.textlink:hover { text-decoration-thickness: 5px; text-underline-offset: .22em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; color: var(--cream); background: var(--forest);
  transition: background-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
/* with JS the header floats over the opening image, then settles into solid green on scroll */
.js .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.js .site-header::before { content: ""; position: absolute; inset: 0 0 -50px; background: linear-gradient(rgba(19, 41, 30, .6), transparent); pointer-events: none; transition: opacity var(--mid) var(--ease); }
.js .site-header.is-solid, .js .site-header.menu-open { background: var(--forest); box-shadow: 0 1px 0 rgba(235, 231, 183, .1); }
.js .site-header.is-solid::before, .js .site-header.menu-open::before { opacity: 0; }
.site-header .bar { position: relative; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; transition: transform var(--mid) var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand span { font-family: var(--display); font-size: 1.22rem; line-height: .95; }
.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 2.2rem); }
.nav a:not(.btn) { position: relative; text-decoration: none; font-size: 1rem; padding: .5rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--sun);
  transform: scaleX(0); transform-origin: left; transition: transform var(--fast) var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .7em 1.45em; font-size: 1rem; }
.nav-toggle {
  display: none; align-items: center; gap: .65rem; background: none; border: 1.5px solid rgba(235, 231, 183, .55); color: var(--cream);
  font: inherit; font-family: var(--heavy); font-weight: 900; padding: .55rem 1.05rem; border-radius: 999px; cursor: pointer;
  transition: background-color var(--fast) var(--ease);
}
.nav-toggle:hover { background: rgba(235, 231, 183, .12); }
.nav-toggle i { position: relative; width: 16px; height: 2px; background: currentColor; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform var(--fast) var(--ease); }
.nav-toggle i::before { top: -5px; } .nav-toggle i::after { top: 5px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 auto; background: var(--forest); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: block; }
  @media (prefers-reduced-motion: no-preference) { .nav.is-open { animation: drop var(--fast) var(--ease); } }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 2rem; }
  .nav li a:not(.btn) { display: block; padding: .95rem 0; border-bottom: 1px solid var(--rule-light); font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
  .nav li a:not(.btn)::after { display: none; }
  .nav li a[aria-current="page"] { color: var(--sun); }
  .nav li:last-child { margin-top: 1.4rem; }
  .nav .btn { display: flex; width: 100%; padding: 1em; font-size: 1.1rem; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: var(--cream); background: var(--forest-deep); min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 42%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(19, 41, 30, .97) 0%, rgba(19, 41, 30, .8) 30%, rgba(19, 41, 30, .08) 64%, rgba(19, 41, 30, .38) 100%),
    linear-gradient(90deg, rgba(19, 41, 30, .5) 0%, transparent 55%);
}
.hero .wrap { padding-block: calc(var(--header-h) + 4rem) clamp(2.5rem, 6vh, 5rem); }
.hero__title { color: var(--cream); max-width: 13.5ch; font-size: clamp(3.2rem, 1.2rem + 6.6vw, 10.5rem); }
.hero__row { display: grid; gap: 1.5rem 4rem; align-items: end; margin-top: clamp(1.5rem, 3vh, 2.5rem); }
@media (min-width: 900px) { .hero__row { grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; } .hero__row .actions { margin: 0; } }
.hero__lede { font-size: var(--step-1); line-height: 1.45; margin: 0; }
.hero__place { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 2rem); font-size: var(--step--1); color: var(--cream-70); writing-mode: vertical-rl; letter-spacing: .04em; }
@media (max-width: 899px) { .hero__place { display: none; } .hero__media img { object-position: 62% 40%; } }

/* page hero (interior) — image-led where a photo exists */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); background: var(--forest);
  padding: calc(var(--header-h) + clamp(4rem, 10vh, 9rem)) 0 clamp(3rem, 7vh, 6rem); }
.page-hero--photo { min-height: min(92svh, 980px); display: flex; align-items: flex-end; background: var(--forest-deep); }
.page-hero--photo .page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(19, 41, 30, .97) 0%, rgba(19, 41, 30, .74) 38%, rgba(19, 41, 30, .1) 75%, rgba(19, 41, 30, .42) 100%); }
.page-hero .display { color: var(--cream); max-width: 13ch; }
.page-hero .lede { margin-top: 1.4rem; }

/* one orchestrated load sequence for page openings */
@media (prefers-reduced-motion: no-preference) {
  .js .enter { opacity: 0; transform: translateY(26px); animation: enter var(--mid) var(--ease) forwards; }
  .js .enter-2 { animation-delay: 140ms; } .js .enter-3 { animation-delay: 280ms; } .js .enter-4 { animation-delay: 420ms; }
  .js .hero__media img, .js .page-hero__img { animation: settle 2400ms var(--ease) both; }
}
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }

/* ---------- Scroll reveals (selected moments only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal="clip"] { clip-path: inset(14% 0 14% 0); transition: clip-path var(--slow) var(--ease); }
  .js [data-reveal="clip"] img { transform: scale(1.12); transition: transform var(--slow) var(--ease); }
  .js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
  .js [data-reveal="clip"].is-in img { transform: none; }
  .js [data-reveal="side"] img { clip-path: inset(0 100% 0 0); transition: clip-path var(--slow) var(--ease); }
  .js [data-reveal="side"].is-in img { clip-path: inset(0 0 0 0); }
  .js [data-reveal="lines"] .line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
  .js [data-reveal="lines"] .line > span { transform: translateY(108%); transition: transform var(--mid) var(--ease); }
  .js [data-reveal="lines"].is-in .line > span { transform: none; }
  .js [data-reveal="lines"].is-in .line:nth-child(2) > span { transition-delay: 110ms; }
  .js [data-reveal="lines"].is-in .line:nth-child(3) > span { transition-delay: 220ms; }
  .js [data-reveal="lines"].is-in .line:nth-child(4) > span { transition-delay: 330ms; }
  .js [data-reveal="lines"].is-in .line:nth-child(5) > span { transition-delay: 440ms; }
}
.line > span { display: block; }

/* ---------- Media helpers ---------- */
.media { position: relative; overflow: hidden; margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ar-portrait { aspect-ratio: 4 / 5; } .ar-tall { aspect-ratio: 3 / 4.3; } .ar-land { aspect-ratio: 3 / 2; } .ar-wide { aspect-ratio: 16 / 9; } .ar-square { aspect-ratio: 1; }
@media (min-width: 900px) {
  .bleed-right { margin-right: calc(var(--gutter) * -1); }
  .bleed-left { margin-left: calc(var(--gutter) * -1); }
}
@media (min-width: 1720px) {
  .bleed-right { margin-right: calc((100vw - var(--max)) / -2 - var(--gutter)); }
  .bleed-left { margin-left: calc((100vw - var(--max)) / -2 - var(--gutter)); }
}
.caption { font-size: var(--step--1); margin-top: .7rem; opacity: .85; }

/* ---------- HOME: model (sun) ---------- */
.model { padding-bottom: calc(var(--section) * .7); }
.model__title { color: var(--forest); }
.model__title .line:last-child { color: var(--orange); }
.model__figure { position: relative; z-index: 3; align-self: end; }
@media (min-width: 900px) { .model__figure { margin-bottom: calc(var(--section) * -1.4); } }
.hours { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; margin-top: 2.5rem; }
.hours div { display: grid; gap: .4rem; max-width: 17rem; }
.hours b { font-family: var(--heavy); font-weight: 900; font-size: var(--step-5); line-height: .9; color: var(--forest); }
.hours span { font-size: var(--step--1); }

/* ---------- HOME: pathways chapter (forest) ---------- */
.chapter-intro { padding-top: calc(var(--section) * 1.1); padding-bottom: calc(var(--section) * .6); }
.feature__photo { position: relative; height: min(92svh, 62vw); min-height: 420px; overflow: hidden; }
.feature__photo img { width: 100%; height: 100%; object-fit: cover; }
.feature__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--forest) 0%, rgba(27, 58, 42, 0) 40%); }
.feature__title { position: relative; z-index: 2; margin-top: -.62em; color: var(--cream); }
.feature__title .line:last-child { color: var(--sun); }
.feature__body { padding-bottom: var(--section); }

.split-screen { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split-screen { grid-template-columns: 1fr 1fr; min-height: 100svh; } .split-screen--flip .split-screen__img { order: 2; } }
.split-screen__img { position: relative; min-height: 70svh; overflow: hidden; }
.split-screen__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-screen__text { position: relative; padding: var(--section) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.split-screen__inset { position: absolute; z-index: 2; width: clamp(150px, 14vw, 250px); aspect-ratio: 3/4; bottom: 10%; left: 0; transform: translateX(-55%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); margin: 0; overflow: hidden; }
.split-screen__inset img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .split-screen__inset { display: none; } .split-screen__img { min-height: 62svh; } }

.cols-list { list-style: none; columns: 2 12rem; column-gap: 2rem; margin-top: 1rem; }
.cols-list li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--rule-dark); }
.t-forest .cols-list li, .t-deep .cols-list li, .t-black .cols-list li, .t-photo .cols-list li { border-bottom-color: var(--rule-light); }
.cols-list--one { columns: 1; }

.bignum { font-family: var(--heavy); font-weight: 900; font-size: clamp(5rem, 2.5rem + 12vw, 16rem); line-height: .82; letter-spacing: -.03em; color: var(--orange); margin: 0; white-space: nowrap; }
.bignum small { display: block; font-size: max(.2em, 1.2rem); letter-spacing: 0; line-height: 1.2; margin-top: .5rem; color: var(--forest); }
.t-forest .bignum, .t-deep .bignum { color: var(--sun); }
.t-forest .bignum small, .t-deep .bignum small { color: var(--cream); }

/* ---------- Statement over photograph ---------- */
.t-photo { position: relative; isolation: isolate; color: var(--cream); overflow: hidden; background: var(--forest-deep); }
.t-photo .bg { position: absolute; inset: 0; z-index: -2; }
.t-photo .bg[data-parallax] { inset: -10% 0; }
.t-photo .bg img { width: 100%; height: 100%; object-fit: cover; }
.t-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--shade, linear-gradient(90deg, rgba(19, 41, 30, .95) 0%, rgba(19, 41, 30, .76) 45%, rgba(19, 41, 30, .2) 100%)); }
.statement { min-height: min(100svh, 1000px); display: flex; align-items: center; }
.statement__text { font-family: var(--display); font-size: var(--step-4); line-height: 1.02; color: var(--sun); max-width: 17ch; }
.statement__sub { margin-top: 2rem; max-width: 46ch; color: var(--cream); }
.flow { list-style: none; display: grid; gap: 1.2rem; margin-top: 3rem; max-width: 1000px; }
@media (min-width: 760px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; } }
.flow h3 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); color: var(--cream); }
.flow p { font-size: var(--step--1); color: var(--cream-70); margin: .3rem 0 0; }
.flow .arrow { font-family: var(--heavy); color: var(--sun); font-size: var(--step-2); line-height: 1; }
@media (max-width: 759px) { .flow .arrow { transform: rotate(90deg); width: max-content; } }

/* ---------- Stats ---------- */
.stats-band { position: relative; overflow: hidden; }
.stats-band__photo { position: absolute; top: 0; bottom: 0; right: 0; width: 44%; margin: 0; }
.stats-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%); }
.stats-band .wrap { position: relative; }
@media (min-width: 900px) { .stats-band .wrap > * { max-width: 62%; } }
@media (max-width: 899px) { .stats-band__photo { position: relative; width: auto; height: 52svh; }
  .stats-band__photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%); mask-image: linear-gradient(0deg, transparent 0%, #000 55%); }
  .stats-band.band { padding-top: 0; } }
.stats { list-style: none; display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3.5rem; }
.stats .stat--lead { grid-column: 1 / -1; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { border-top: 1px solid var(--rule-light); padding-top: 1.1rem; }
.stat__num { font-family: var(--heavy); font-weight: 900; font-size: var(--step-4); line-height: .95; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--cream); }
.stat--lead .stat__num { font-size: clamp(5rem, 2.6rem + 11vw, 15rem); color: var(--sun); line-height: .85; }
.stat__label { margin: .7rem 0 0; max-width: 26ch; }
.stat__note { margin: .5rem 0 0; font-size: var(--step--1); color: var(--cream-70); max-width: 36ch; }

/* ---------- Location interlude ---------- */
.place { min-height: min(96svh, 1000px); display: flex; align-items: flex-end; --shade: linear-gradient(0deg, rgba(19, 41, 30, .95) 0%, rgba(19, 41, 30, .5) 35%, rgba(19, 41, 30, 0) 65%); }
.place__word { font-family: var(--display); font-size: clamp(4.6rem, 1rem + 17vw, 22rem); line-height: .8; color: var(--sun); margin: 0 0 .32em -.04em; }
.place .wrap { padding-block: var(--section) clamp(2.5rem, 6vh, 5rem); }
.place__row { display: grid; gap: 1.5rem 4rem; align-items: end; }
@media (min-width: 900px) { .place__row { grid-template-columns: minmax(0, 52ch) auto; justify-content: space-between; } .place__row .actions { margin: 0; } }

/* ---------- Audiences ---------- */
.audiences { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .audiences { grid-template-columns: 1fr 1fr; } }
.audience { position: relative; padding: clamp(3.5rem, 8vw, 8rem) var(--gutter); display: flex; min-height: min(84svh, 860px); overflow: hidden; }
.audience__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; flex: 1; max-width: 40rem; }
.audience ul { list-style: none; display: grid; gap: .55rem; margin-top: .8rem; max-width: 40ch; }
.audience li { padding-left: 1.4rem; position: relative; }
.audience li::before { content: ""; position: absolute; left: 0; top: .66em; width: .75rem; height: 2px; background: currentColor; }
.audience .actions { margin-top: auto; padding-top: 2rem; }
.audience__img { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; margin: 0; }
.audience__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1280px) { .audience__body { max-width: 58%; } }
@media (max-width: 1279px) { .audience__img { display: none; } }

/* ---------- Logos (static, calm) ---------- */
.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(1.8rem, 3.5vw, 4.2rem); margin-top: 2.8rem; }
.logo-row img { height: clamp(58px, 6.4vw, 110px); width: auto; transition: transform var(--fast) var(--ease); }
.logo-row .round img { border-radius: 50%; }
.logo-row li:hover img { transform: translateY(-3px); }

/* ---------- Rows, steps, lists ---------- */
.rows { list-style: none; border-top: 2px solid currentColor; container-type: inline-size; }
.rows > li { display: grid; gap: .35rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule-dark); }
.t-forest .rows > li, .t-deep .rows > li, .t-black .rows > li, .t-photo .rows > li { border-bottom-color: var(--rule-light); }
@container (min-width: 560px) { .rows > li { grid-template-columns: minmax(10rem, 1fr) 2fr; } }
.rows h3 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); line-height: 1.25; }
.t-forest .rows h3, .t-deep .rows h3, .t-black .rows h3, .t-photo .rows h3 { color: var(--sun); }
.rows p { margin: 0; }
.rows--display h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: .95; }

.steps { list-style: none; counter-reset: step; display: grid; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule-dark); }
.t-forest .steps > li, .t-deep .steps > li, .t-black .steps > li, .t-photo .steps > li { border-bottom-color: var(--rule-light); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--heavy); font-weight: 900; font-size: var(--step-2); line-height: 1; color: var(--orange); }
.t-forest .steps > li::before, .t-deep .steps > li::before, .t-black .steps > li::before, .t-photo .steps > li::before { color: var(--sun); }
.t-sun .steps > li::before { color: var(--forest); }
.steps h3 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); }
.steps p { margin: .35rem 0 0; }
@media (min-width: 1000px) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
  .steps--4 { grid-template-columns: repeat(4, 1fr); column-gap: 2.2rem; }
  .steps--3 > li, .steps--4 > li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--rule-dark); padding-top: 1.3rem; }
  .t-forest .steps--3 > li, .t-forest .steps--4 > li, .t-deep .steps--3 > li, .t-deep .steps--4 > li, .t-photo .steps--4 > li, .t-photo .steps--3 > li { border-top-color: var(--rule-light); }
}

.triad { list-style: none; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2.5rem; }
.triad li { border-top: 2px solid currentColor; padding-top: 1rem; }
.triad strong { display: block; font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1; margin-bottom: .5rem; }
.t-forest .triad strong, .t-deep .triad strong { color: var(--sun); }

.timeline { list-style: none; display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.timeline li { border-top: 2px solid var(--sun); padding-top: 1.2rem; }
.timeline li:last-child { border-top-color: var(--orange); }
.timeline time { display: block; font-family: var(--heavy); font-weight: 900; font-size: var(--step-4); line-height: .9; color: var(--sun); margin-bottom: 1rem; }
.timeline li:last-child time { color: var(--orange); }

.team { list-style: none; display: grid; gap: 0 3rem; }
@media (min-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team li { padding: 1.6rem 0 1rem; border-top: 2px solid var(--forest); }
.team h3 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); }
.team .role { color: var(--orange); font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); margin: .25rem 0 .8rem; }
.team p { font-size: var(--step--1); }

.callout { border-left: 6px solid var(--orange); padding: .3rem 0 .3rem 1.4rem; font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); line-height: 1.35; max-width: 40ch; }
.t-forest .callout, .t-deep .callout, .t-black .callout, .t-photo .callout { border-left-color: var(--sun); }
.t-sun .callout { border-left-color: var(--forest); }

.price { font-family: var(--heavy); font-weight: 900; font-size: var(--step-5); line-height: .9; margin: 0; }
.price small { display: block; font-size: var(--step-0); font-family: var(--text); font-weight: 400; margin-top: .8rem; }

.alloc__bar { display: flex; height: 22px; margin-top: 1.2rem; }
.alloc__bar span { height: 100%; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .js .alloc[data-reveal] .alloc__bar span { transform: scaleX(0); transition: transform var(--slow) var(--ease); }
  .js .alloc[data-reveal].is-in .alloc__bar span { transform: none; }
  .js .alloc[data-reveal].is-in .alloc__bar span:nth-child(2) { transition-delay: 150ms; }
  .js .alloc[data-reveal].is-in .alloc__bar span:nth-child(3) { transition-delay: 300ms; }
}
.alloc__legend { list-style: none; display: grid; gap: 1.2rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .alloc__legend { grid-template-columns: repeat(3, 1fr); } }
.alloc__legend li { display: grid; grid-template-columns: 14px 1fr; gap: .8rem; }
.alloc__legend i { width: 14px; height: 14px; margin-top: .4rem; }
.alloc__legend b { display: block; font-family: var(--heavy); font-weight: 900; font-size: var(--step-3); line-height: 1; }

.spectrum__axis { display: flex; justify-content: space-between; font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); margin-top: 3rem; }
.spectrum__line { height: 4px; margin: .7rem 0 2.5rem; background: linear-gradient(90deg, var(--forest), var(--sun), var(--orange)); }
.models { list-style: none; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .models { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.models h3 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); }
.models .sub { font-size: var(--step--1); color: var(--orange); font-family: var(--heavy); font-weight: 900; margin: .3rem 0 .7rem; }
.models .is-new { background: var(--forest); color: var(--cream); padding: 1.4rem; }
.models .is-new h3 { color: var(--sun); }
.models .is-new .sub { color: var(--cream); }
@media (min-width: 900px) { .models .is-new { margin: -1.4rem; } }

.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mosaic > * { margin: 0; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.mosaic > *:hover img { transform: scale(1.04); }
.mosaic > :first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.mosaic > :not(:first-child) { aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; }
  .mosaic > :first-child { grid-column: 1; grid-row: span 2; aspect-ratio: auto; }
  .mosaic > :not(:first-child) { aspect-ratio: 4 / 5; }
}

.anchors { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.anchors a { display: inline-block; text-decoration: none; padding: .55em 1.1em; border: 1.5px solid rgba(235, 231, 183, .5); border-radius: 999px; font-family: var(--heavy); font-weight: 900; font-size: var(--step--1);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.anchors a:hover { background: var(--sun); color: var(--forest); border-color: var(--sun); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; border-top: 2px solid var(--sun); }
.contact-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--rule-light); display: grid; gap: .35rem; }
.contact-list .k { font-size: var(--step--1); color: var(--sun); font-family: var(--heavy); font-weight: 900; }
.contact-list a.v { justify-self: start; font-family: var(--heavy); font-weight: 900; font-size: var(--step-2); text-decoration: none; overflow-wrap: anywhere; line-height: 1.15;
  background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 2px no-repeat; transition: background-size var(--mid) var(--ease); }
.contact-list a.v:hover { background-size: 100% 2px; }
.contact-list .v-plain { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); }
.copy-btn { justify-self: start; margin-top: .5rem; background: none; border: 1.5px solid rgba(235, 231, 183, .55); color: inherit; border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: var(--step--1); cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.copy-btn:hover { background: rgba(235, 231, 183, .12); transform: translateY(-2px); }
.copy-btn:active { transform: scale(.96); }
.copy-btn.is-done { background: var(--sun); color: var(--forest); border-color: var(--sun); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--cream); padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
.footer-top { display: grid; gap: 2rem; align-items: end; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule-light); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr auto; } .footer-top .actions { margin: 0; } }
.footer-top .display { color: var(--cream); max-width: 14ch; }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-brand { display: flex; gap: 1.2rem; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.footer-brand p { color: var(--cream-70); font-size: var(--step--1); max-width: 36ch; margin: 0; }
.site-footer h2 { font-family: var(--heavy); font-weight: 900; font-size: var(--step-0); margin-bottom: .9rem; color: var(--sun); }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer ul a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--fast) var(--ease); }
.site-footer ul a:hover { background-size: 100% 1px; }
.footer-base { margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--cream-70); }
/* Copyright notice: the last thing on every page, kept quiet and readable */
.footer-legal { max-width: 78ch; }
.footer-legal p { margin: 0; }
.footer-legal p + p { margin-top: .4rem; font-size: .88em; line-height: 1.5; }
.footer-base { align-items: flex-start; }

/* parallax media get a little extra height so movement never shows an edge */
.feature__photo img[data-parallax], .media img[data-parallax] { height: 116%; margin-top: -8%; }
.page-hero .cols-list li { border-bottom-color: var(--rule-light); }
.page-hero .soft { opacity: 1; color: var(--cream-70); }
.rows--display h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem); overflow-wrap: anywhere; }
@container (min-width: 560px) { .rows--display > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: baseline; } }
@media (min-width: 900px) { .c-9-13 .bignum, .c-8-13 .bignum { font-size: clamp(4rem, 1.2rem + 6.4vw, 9.5rem); } }

/* =====================================================================
   v3 — second-round refinement
   ===================================================================== */

/* Header: fades in with scroll instead of switching on. --hdr (0–1) is set by site.js. */
.js .site-header { background: rgba(27, 58, 42, calc(var(--hdr, 0) * .97)); box-shadow: 0 1px 0 rgba(235, 231, 183, calc(var(--hdr, 0) * .1)); transition: none; }
.js .site-header::before { opacity: calc(1 - var(--hdr, 0)); transition: none; }
.js .site-header.is-solid, .js .site-header.menu-open { background: rgba(27, 58, 42, calc(var(--hdr, 0) * .97)); }
.js .site-header.menu-open { background: var(--forest); }
.js .site-header.is-solid::before { opacity: calc(1 - var(--hdr, 0)); }
@supports (backdrop-filter: blur(1px)) { .js .site-header.is-solid { backdrop-filter: blur(calc(var(--hdr, 0) * 10px)); } }

/* Hero: the portfolio cover treatment — green wash, warm yellow fade on the far edge */
.hero::before {
  background:
    linear-gradient(0deg, rgba(19, 41, 30, .94) 0%, rgba(19, 41, 30, .62) 30%, rgba(19, 41, 30, .12) 62%, rgba(19, 41, 30, .4) 100%),
    linear-gradient(90deg, rgba(27, 58, 42, .62) 0%, rgba(27, 58, 42, .2) 50%, rgba(227, 161, 7, .0) 78%, rgba(227, 161, 7, .34) 100%);
}
.hero__media img { object-position: 62% 45%; }
.hero__kicker { font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); color: var(--sun); margin: 0 0 1.2rem; max-width: none; }
@media (max-width: 899px) { .hero__media img { object-position: 64% 40%; } }

/* Photo sections can blend in from the colour above (--from) and out to the colour below (--to) */
.t-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--from, transparent) 0%, transparent 20%, transparent 80%, var(--to, transparent) 100%); }

/* Home: three pathways triptych (portfolio "Three core pathways") */
.pathways { padding-top: calc(var(--section) * 1.25); }
.pathways__intro { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.triptych { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
@media (min-width: 900px) { .triptych { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.triptych__item a { position: relative; display: flex; align-items: flex-end; min-height: min(86svh, 860px); overflow: hidden; color: var(--cream); text-decoration: none; isolation: isolate; }
@media (max-width: 899px) { .triptych__item a { min-height: 72svh; } }
.triptych__item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.triptych__item a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--forest) 0%, rgba(27, 58, 42, .82) 26%, rgba(27, 58, 42, .1) 60%, rgba(27, 58, 42, .18) 100%); transition: opacity var(--mid) var(--ease); }
.triptych__item a:hover img, .triptych__item a:focus-visible img { transform: scale(1.04); }
.triptych__item a:focus-visible { outline-offset: -6px; }
  .triptych__num { position: absolute; left: clamp(1.4rem, 2.6vw, 2.6rem); font-family: var(--heavy); font-weight: 900; font-size: clamp(3rem, 2rem + 3vw, 5.6rem); line-height: 1; color: var(--sun); top: clamp(1.4rem, 3vw, 2.6rem); }
.triptych__text { display: grid; gap: .7rem; padding: clamp(1.4rem, 2.6vw, 2.6rem); }
.triptych__title { font-family: var(--display); font-size: clamp(2rem, 1.1rem + 2.3vw, 3.6rem); line-height: .98; hyphens: manual; }
.triptych__desc { font-size: var(--step--1); color: var(--cream-70); max-width: 34ch; }
.triptych__title::after { content: ""; display: block; width: 2.2rem; height: 3px; margin-top: .9rem; background: var(--sun); transition: width var(--mid) var(--ease); }
.triptych__item a:hover .triptych__title::after { width: 4.4rem; }

/* Home: two-way statement now carries a label instead of a hidden heading */
.statement .label { margin-bottom: 1.4rem; }
.statement__text { color: var(--cream); }

/* At a glance + gallery (replaces the black stats band) */
.glance { padding-bottom: clamp(3rem, 6vw, 5rem); }
.glance .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .glance .stats { grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr)); align-items: end; } .glance .stats .stat--lead { grid-column: 1; grid-row: span 2; } }
@media (max-width: 520px) { .glance .stats { grid-template-columns: 1fr; } }

.gallery { position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 30vw, 520px); gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(235, 231, 183, .4) transparent;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 14px;
}
@media (min-width: 1720px) { .gallery__track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.gallery__track:focus-visible { outline-offset: -3px; }
.gallery__item { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; }
.gallery__item:nth-child(3n + 2) { aspect-ratio: 3 / 4; align-self: end; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { display: flex; gap: .6rem; justify-content: flex-end; max-width: var(--max); margin: 1rem auto 0; padding-inline: var(--gutter); }
.gallery__btn { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1.5px solid rgba(235, 231, 183, .55); background: transparent; color: var(--cream); font-size: 1.2rem; cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.gallery__btn:hover { background: var(--sun); color: var(--forest); border-color: var(--sun); transform: translateY(-2px); }
.gallery__btn:active { transform: scale(.94); }
.gallery__btn[disabled] { opacity: .35; pointer-events: none; }
html:not(.js) .gallery__nav { display: none; }
.t-paper .gallery__btn, .t-cream .gallery__btn, .t-sun .gallery__btn { color: var(--forest); border-color: rgba(27, 58, 42, .5); }

/* Audiences: show the photo on smaller screens too, as a band above the text */




/* Photo section that fades into solid green below (legible lower content, e.g. ambassadors) */
.t-photo.fade-down { background: var(--forest-deep); }
.t-photo.fade-down .bg { inset: 0 0 auto; height: min(84svh, 900px); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 96%); mask-image: linear-gradient(180deg, #000 40%, transparent 96%); }
.t-photo.fade-down::before { background: linear-gradient(90deg, rgba(19, 41, 30, .93) 0%, rgba(19, 41, 30, .78) 42%, rgba(19, 41, 30, .25) 75%, rgba(19, 41, 30, .1) 100%); }
@media (max-width: 899px) { .t-photo.fade-down::before { background: linear-gradient(180deg, rgba(19, 41, 30, .55) 0%, rgba(19, 41, 30, .88) 45%, var(--forest-deep) 75%); } }
.fade-down .panel { background: rgba(19, 41, 30, .72); padding: clamp(1.4rem, 2.4vw, 2.2rem); }

/* Universities: sharing section (portfolio "How your university can engage") */
.share { --shade: linear-gradient(90deg, rgba(27, 58, 42, .96) 0%, rgba(27, 58, 42, .86) 46%, rgba(27, 58, 42, .45) 100%); }
.share .if-list { list-style: none; display: grid; gap: .5rem; }
.share .if-list li { padding-left: 1.3rem; position: relative; }
.share .if-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sun); }
.tiles { list-style: none; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles li { background: rgba(235, 231, 183, .92); color: var(--forest); padding: clamp(1.3rem, 2vw, 1.9rem); border-radius: 14px; }
.tiles li:last-child { background: var(--sun); }
.tiles .tile__h { font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1; margin-bottom: .6rem; }
.tiles p { margin: 0; font-size: var(--step--1); }

/* Contact: text and photograph side by side */
.contact-hero { position: relative; background: var(--forest); color: var(--cream); overflow: hidden; }
.contact-hero__photo { margin: 0; }
.contact-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .contact-hero { min-height: 100svh; }
  .contact-hero__photo { position: absolute; top: 0; right: 0; width: 46%; height: min(100%, max(100svh, 760px)); }
  .contact-hero__photo img { object-position: 58% 50% !important; }
  .contact-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest) 0%, rgba(27, 58, 42, 0) 32%), linear-gradient(0deg, var(--forest) 0%, rgba(27, 58, 42, 0) 26%); }
  .contact-hero .wrap > .contact-hero__body { max-width: 52%; }
}
@media (max-width: 999px) { .contact-hero__photo { height: 62svh; } .contact-hero__photo img { object-position: 60% 50%; } }
.contact-hero .wrap { padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 7rem)); padding-bottom: var(--section); }

/* Programmes: photo bleeding into a section (SE, sports collage) */
.photo-bleed { position: relative; min-height: 100%; margin: 0; }
.photo-bleed img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .photo-bleed { margin-block: calc(var(--section) * -1); } .photo-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--forest-deep) 100%); } }
@media (max-width: 899px) { .photo-bleed { aspect-ratio: 4 / 5; margin-top: calc(var(--section) * -1); margin-inline: calc(var(--gutter) * -1); } .photo-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--forest-deep) 0%, transparent 35%); } }
.collage { position: relative; display: grid; grid-template-columns: 5fr 3fr; gap: 10px; align-items: start; }
.collage > figure { margin: 0; overflow: hidden; }
.collage > figure:first-child { aspect-ratio: 3 / 4; }
.collage > figure:last-child { aspect-ratio: 3 / 4; margin-top: 38%; }
.collage img { width: 100%; height: 100%; object-fit: cover; }

/* Mission (about): portfolio "Mission" page — green on the left, photo on the right */
.mission { --shade: linear-gradient(90deg, rgba(27, 58, 42, .97) 0%, rgba(27, 58, 42, .9) 38%, rgba(27, 58, 42, .25) 70%, rgba(27, 58, 42, .05) 100%); min-height: min(100svh, 1000px); display: flex; align-items: center; }
@media (max-width: 899px) { .mission { --shade: linear-gradient(0deg, rgba(27, 58, 42, .97) 0%, rgba(27, 58, 42, .88) 55%, rgba(27, 58, 42, .35) 100%); } }
.mission__title { font-family: var(--display); font-size: clamp(4rem, 2rem + 9vw, 11rem); line-height: .85; color: var(--sun); margin-bottom: .2em; }
.mission .lede { max-width: 30ch; font-family: var(--heavy); font-weight: 900; }
.mission .chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; max-width: 38rem; }
.mission .chips li { padding: .45em 1em; border-radius: 999px; background: rgba(69, 147, 108, .55); font-size: var(--step--1); }

/* Leaf (brand-guide green) as a light accent on paper */
.t-paper .rows { border-top-color: var(--forest); }
.t-paper .rows > li { border-bottom-color: rgba(27, 58, 42, .2); }
.t-paper .callout { border-left-color: var(--leaf); }
.c-leaf { color: var(--leaf); }

.amb-places { display: flex; align-items: baseline; gap: .8rem; margin-top: 1.6rem; font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); }
.amb-places b { font-size: var(--step-5); line-height: .85; color: var(--sun); }
.audience__title { font-size: clamp(2.4rem, 1.2rem + 2.6vw, 4.6rem); max-width: 12ch; }
.gallery__track { scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }


/* =====================================================================
   v4 — refinement pass
   ===================================================================== */

/* Pages cross-fade into each other (browsers that support it); header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Home hero: ends in the same green as the education model below, so the two read as one space */
.hero::before {
  background:
    linear-gradient(0deg, var(--forest) 0%, rgba(27, 58, 42, .78) 22%, rgba(19, 41, 30, .12) 60%, rgba(19, 41, 30, .4) 100%),
    linear-gradient(90deg, rgba(27, 58, 42, .62) 0%, rgba(27, 58, 42, .2) 50%, rgba(227, 161, 7, 0) 78%, rgba(227, 161, 7, .34) 100%);
}
.hero__title { max-width: 16ch; font-size: clamp(2.9rem, 1.1rem + 5.4vw, 8.6rem); line-height: .96; }
.hero .wrap { padding-bottom: clamp(3rem, 8vh, 6rem); }

/* Education model on green, continuing from the hero */
.model { padding-top: clamp(2rem, 5vh, 4rem); }
.model .model__title { color: var(--cream); }
.model .model__title .line:last-child { color: var(--sun); }
.hours__intro { margin: 2.6rem 0 0; font-size: var(--step--1); color: var(--cream-70); }
.hours { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); margin-top: 1rem; max-width: 46rem; }
.hours li { display: grid; gap: .55rem; align-content: start; }
.hours b { font-family: var(--heavy); font-weight: 900; font-size: clamp(2.8rem, 1.6rem + 3.6vw, 5.4rem); line-height: .9; color: var(--sun); }
.hours span { font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); line-height: 1.25; color: var(--cream); max-width: 18ch; }
@media (max-width: 420px) { .hours { grid-template-columns: 1fr; } }

/* Pathways intro on paper; the model photo overlaps into it */
.pathways { padding-top: 0; }
.pathways__head { padding: calc(var(--section) * 1.15) 0 clamp(2.5rem, 5vw, 4rem); }
.pathways__head .hd { color: var(--forest); }

/* Our aim: a larger, clearer statement and two-way model */
.aim__title { font-family: var(--display); font-weight: 700; font-size: clamp(3.6rem, 1.6rem + 8vw, 10rem); line-height: .85; color: var(--sun); margin: 0; }
.statement .statement__text { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 5.4rem); max-width: 20ch; margin-top: .3em; }
.statement .statement__sub { font-size: var(--step-2); line-height: 1.3; max-width: 34ch; color: var(--cream); }
.flow--big { max-width: none; gap: 1.6rem; margin-top: 1.2rem; }
@media (min-width: 900px) { .flow--big { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.flow--big > li:not(.arrow) { border-top: 2px solid var(--sun); padding-top: 1.1rem; }
.flow--big h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3.2rem); line-height: 1; color: var(--cream); }
.flow--big p { font-size: var(--step-0); margin-top: .6rem; }
.flow--big .arrow { font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); align-self: center; }
@media (max-width: 899px) { .flow--big .arrow { transform: rotate(90deg); justify-self: start; } }

/* "Around" said in words rather than a ~ glyph */
.stat__approx { margin: 0 0 .3rem; font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); color: var(--cream-70); }

/* Audiences: photographs grow out of each half instead of sitting in a corner */
.audience { flex-direction: column; min-height: 0; padding-bottom: 0; }
.audience .actions { margin-top: 1.2rem; padding-top: 0; }
.audience__body { max-width: 40rem; }
.audience__media { position: relative; margin: clamp(2.5rem, 5vw, 4rem) calc(var(--gutter) * -1) 0; }
.audience__main { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); }
.audience__main img { width: 100%; height: 100%; object-fit: cover; }
.audience__inset { position: absolute; right: var(--gutter); top: -14%; width: clamp(120px, 30%, 240px); aspect-ratio: 3 / 4; margin: 0; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); }
.audience__inset img { width: 100%; height: 100%; object-fit: cover; }

/* Logo strip: drifts on its own (site.js), and can be scrolled by hand */
.partners .wrap + .marquee { margin-top: 2.6rem; }
.marquee { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee::-webkit-scrollbar { display: none; }
.marquee:focus-visible { outline-offset: -3px; }
.marquee__track { display: flex; width: max-content; }
.marquee__list { list-style: none; display: flex; align-items: center; gap: clamp(3rem, 6vw, 6.5rem); padding: .6rem clamp(3rem, 6vw, 6.5rem) .6rem 0; flex: none; }
.marquee__list img { height: clamp(58px, 6vw, 104px); width: auto; transition: transform var(--fast) var(--ease); }
.marquee__list li:hover img { transform: translateY(-3px); }
.marquee__list .round img { border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; cursor: auto; }
  .marquee__track { width: auto; }
  .marquee__track .marquee__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 2rem; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

/* Interior heroes that flow into the next section */
.page-hero--to-forest::before { background: linear-gradient(0deg, var(--forest) 0%, rgba(27, 58, 42, .8) 30%, rgba(19, 41, 30, .1) 72%, rgba(19, 41, 30, .42) 100%); }
/* Accommodation: the house photographs rise into the opening photograph, bridging the two */
@media (min-width: 900px) { .house .house__photos { margin-top: calc(var(--section) * -1 - clamp(9rem, 20vh, 15rem)); position: relative; z-index: 3; } .house .house__photos figure { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5); } .page-hero--to-paper .wrap { padding-bottom: clamp(2rem, 5vh, 4rem); } }
.history { padding-top: clamp(2rem, 5vh, 4rem); }
.history p { color: var(--cream); }
@media (min-width: 900px) { .history__photo { margin-top: calc(clamp(2rem, 5vh, 4rem) * -1 - 6rem); position: relative; z-index: 2; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); } }

/* Programmes: next pathway slides over the previous one (desktop, motion allowed) */
.js-stack .stack { position: sticky; top: var(--stick, 0px); }
.js-stack .stack + .stack { box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .45); }
.js-stack .stack::after { content: ""; position: absolute; inset: 0; background: var(--forest-deep); opacity: calc(var(--cover, 0) * .55); pointer-events: none; z-index: 5; }
.sports__more { margin-top: clamp(3rem, 6vw, 5rem); }
.sports__more + .gallery { margin-top: 1rem; }
.split-screen__img .split-screen__inset--right { left: auto; right: 6%; bottom: 6%; transform: none; }
.se-photo { margin: 0; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; }
.se-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .se-photo { aspect-ratio: 1; } }
#internships .gallery { margin-top: 1rem; }

/* Accommodation: the house in use, and Vidigal in big, scannable facts */
.house__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.house__photos figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.house__photos .house__big { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.house__photos img { width: 100%; height: 100%; object-fit: cover; }
.place--acc .place__word { margin-bottom: .18em; }
.facts { list-style: none; display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0 0 clamp(2rem, 4vw, 3rem); max-width: 70rem; }
.facts li { border-top: 2px solid var(--sun); padding-top: 1rem; display: grid; gap: .45rem; }
.facts b { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 4rem); line-height: .95; color: var(--sun); }
.facts span { color: var(--cream); max-width: 26ch; }
.place--acc .place__row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 900px) { .place--acc .place__row { grid-template-columns: minmax(0, 30ch) minmax(0, 56ch); } }
.place__word { line-height: .9; padding-bottom: .04em; }

/* Volunteer week carousel sits in the cream section */
#week .gallery { margin-top: 0; padding-bottom: var(--section); }

.marquee__pause { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin-top: .8rem; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: .4rem 1rem; color: inherit; font: inherit; font-size: var(--step--1); cursor: pointer; }
.marquee__pause:focus-visible { position: static; width: auto; height: auto; clip-path: none; }
@media (prefers-reduced-motion: reduce) { .marquee__pause { display: none; } }
html:not(.js) .marquee__pause { display: none; }

.place--acc { --shade: linear-gradient(0deg, rgba(19, 41, 30, .97) 0%, rgba(19, 41, 30, .86) 45%, rgba(19, 41, 30, .45) 78%, rgba(19, 41, 30, .25) 100%); }
/* stacking order for the pinned programme sections: every later section paints above earlier ones */
.js-stack main > section, .js-stack .site-footer { position: relative; z-index: 1; }
.js-stack main > .stack { position: sticky; }

/* =====================================================================
   v5 — laptop proportions and targeted edits
   ===================================================================== */

/* Display sizes: same small-screen sizes as before, but they grow more gently,
   so titles stay proportionate on 13–16" laptops (1280–1536px). */
:root {
  --step-3: clamp(1.9rem, 1.45rem + 1.55vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.75rem + 2.9vw, 4.9rem);
  --step-5: clamp(3rem, 1.9rem + 4.1vw, 6.8rem);
  --step-6: clamp(3.3rem, 1.8rem + 5.2vw, 8.4rem);
}
.hero__title { font-size: clamp(2.8rem, 1.35rem + 4.3vw, 7rem); max-width: 15ch; }
.mission__title { font-size: clamp(3.6rem, 1.9rem + 6vw, 8.2rem); }
.aim__title { font-size: clamp(3.2rem, 1.6rem + 5.6vw, 7.6rem); }
.statement .statement__text { font-size: clamp(2.1rem, 1.25rem + 3vw, 4.6rem); }
.place__word { font-size: clamp(4.4rem, 1.2rem + 13vw, 17rem); }
.bignum { font-size: clamp(4.6rem, 2.2rem + 9vw, 12rem); }
.stat--lead .stat__num { font-size: clamp(4.6rem, 2.4rem + 8vw, 11.5rem); }
.hours b { font-size: clamp(2.8rem, 1.7rem + 3vw, 4.8rem); }
.audience__title { font-size: clamp(2.3rem, 1.3rem + 2.2vw, 4rem); }
.triptych__title { font-size: clamp(1.9rem, 1.1rem + 1.9vw, 3.1rem); }
.price { font-size: clamp(2.8rem, 1.7rem + 3.4vw, 5.6rem); }
.page-hero .display { max-width: 15ch; }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.45rem); }
@media (min-width: 900px) and (max-width: 1600px) {
  .page-hero--photo { min-height: min(86svh, 900px); }
  .band { padding-block: clamp(4.5rem, 2rem + 6vw, 8.5rem); }
}

/* Volunteer: the key fact, visible at once */
.hero-badge { display: inline-block; margin: 0 0 1.1rem; padding: .5em 1.1em; border-radius: 999px; background: var(--sun); color: var(--forest);
  font-family: var(--heavy); font-weight: 900; font-size: var(--step-0); line-height: 1.1; }

/* Landing audiences: one large fading photograph (students), one small photograph (universities),
   and both calls to action on the same line */
@media (min-width: 900px) {
  .audiences { grid-template-rows: auto auto; }
  .audience { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .audience__body { align-self: stretch; }
}
.audience__body { display: flex; flex-direction: column; }
.audience__body .actions { margin-top: auto; padding-top: 1.6rem; }
.audience__media--small { display: flex; justify-content: flex-end; align-items: flex-end; margin-right: 0; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.audience__small { margin: 0; width: clamp(160px, 42%, 300px); aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .55); }
.audience__small img { width: 100%; height: 100%; object-fit: cover; }

/* Internships: one wide photograph at a time with round arrows over it */
.gallery--slides { position: relative; margin-top: 0; }
.gallery--slides .gallery__track { grid-auto-columns: 100%; gap: 0; padding: 0; scroll-padding: 0; }
.gallery--slides .gallery__item { aspect-ratio: auto; height: min(80svh, 58vw); min-height: 320px; }
.gallery--slides .gallery__item:nth-child(3n + 2) { aspect-ratio: auto; align-self: stretch; }
.gallery--slides .gallery__nav { position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem); margin: 0; max-width: none; padding-inline: clamp(1rem, 3vw, 2.5rem); justify-content: flex-end; align-items: center; gap: .8rem; pointer-events: none; }
.gallery--slides .gallery__btn { pointer-events: auto; width: 3.4rem; height: 3.4rem; background: rgba(235, 231, 183, .92); color: var(--forest); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.gallery--slides .gallery__btn:hover { background: var(--sun); }
.gallery--slides .gallery__btn[disabled] { opacity: .45; }
.gallery__count { margin: 0; pointer-events: auto; padding: .35rem .8rem; border-radius: 999px; background: rgba(19, 41, 30, .7); color: var(--cream); font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
html:not(.js) .gallery__count { display: none; }

/* Sports + English: the two featured photographs belong to the section — the large one
   runs from the section's top edge off the right side, the smaller one overlaps it */
@media (min-width: 900px) {
  #sports .collage { display: block; position: relative; margin-top: calc(var(--section) * -1); align-self: start; }
  #sports .collage > figure:first-child { aspect-ratio: 4 / 5; }
  #sports .collage > figure:last-child { position: absolute; left: -16%; bottom: -12%; width: 44%; margin: 0; aspect-ratio: 3 / 4; border: 10px solid var(--forest); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
  #sports .sports__more { margin-top: clamp(6rem, 10vw, 9rem); }
}

/* Contact: smaller title, fuller column, text and photograph in proportion */
.contact-hero .display { font-size: clamp(2.8rem, 1.6rem + 3.4vw, 5.4rem); }
.contact-hero .lede { max-width: 40ch; }
.contact-list a.v { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.8rem); }
.contact-list li { padding: 1.15rem 0; }
@media (min-width: 1000px) {
  .contact-hero { display: flex; align-items: center; min-height: min(100svh, 940px); }
  .contact-hero .wrap { padding-top: calc(var(--header-h) + clamp(2rem, 5vh, 4rem)); padding-bottom: clamp(3rem, 7vh, 5rem); }
  .contact-hero .wrap > .contact-hero__body { max-width: 50%; display: grid; grid-template-columns: minmax(0, 1fr); }
  .contact-hero__photo { width: 46%; height: 100%; }
}
@media (min-width: 1300px) {
  .contact-hero .wrap > .contact-hero__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .contact-hero__body > h1, .contact-hero__body > .lede, .contact-hero__body > .contact-list { grid-column: 1 / -1; }
  .contact-hero__body > .contact-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .contact-hero__body > .contact-list li:first-child { grid-column: 1 / -1; }
}
.band.model { padding-top: clamp(1.5rem, 4vh, 3rem); }
.audience__media--small { justify-content: flex-start; }
.audience__small { width: clamp(180px, 46%, 320px); aspect-ratio: 5 / 4; }
@media (min-width: 900px) { #sports .collage > figure:last-child { left: -7%; width: 42%; } }
.contact-hero__body > h2, .contact-hero__body > .cols-list { grid-column: 1 / -1; }
.contact-hero .lede { margin-top: 1rem; }
.contact-list .v-plain { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
@media (min-width: 1300px) { .contact-hero__body > .cols-list { columns: 2; } }
/* v6: universities photo gets the same top fade as the students & volunteers photo beside it */
.audience__small { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); }

/* =====================================================================
   v7 — restructuring: video hero, programme architecture, community,
   Alzira House, enquiry routes, language switch
   ===================================================================== */

/* Language switch: always visible, quiet */
.lang-switch { order: 2; margin-left: auto; margin-right: .8rem; padding: .35rem .7rem; border: 1.5px solid rgba(235, 231, 183, .45); border-radius: 999px;
  font-family: var(--heavy); font-weight: 900; font-size: .9rem; letter-spacing: .04em; text-decoration: none; color: var(--cream);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.lang-switch:hover { background: var(--sun); color: var(--forest); border-color: var(--sun); }
.site-header .bar > .brand { order: 1; } .site-header .bar > .nav-toggle { order: 3; } .site-header .bar > .nav { order: 4; }
@media (min-width: 1081px) { .site-header .bar > .nav { order: 2; margin-left: auto; } .lang-switch { order: 3; margin: 0 0 0 1.1rem; } }

/* Hero: descriptor → location → headline → yellow pathways → lede → actions */
.hero__descriptor { margin: 0 0 .35rem; font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); color: var(--cream); max-width: 46ch; }
.hero__location { margin: 0 0 1rem; font-size: var(--step-0); color: var(--cream-70); letter-spacing: .02em; }
.hero .hero__kicker { margin: 1.1rem 0 0; font-size: var(--step-0); max-width: 62ch; }
.hero__title { margin-top: .2rem; }

@media (min-width: 1081px) { .hero .actions { margin-bottom: 2.4rem; } }

/* At a glance on the home page continues the hero's green */
.glance--home { padding-top: clamp(3.5rem, 7vw, 6rem); }
.stat__source { margin: 2rem 0 0; font-size: var(--step--1); color: var(--cream-70); }

/* Programmes: Social Entrepreneurship Programme shown as its own, separate offer */
.sep-card { display: grid; grid-template-columns: minmax(0, 1fr); text-decoration: none; color: var(--cream); margin-top: 3px; }
@media (min-width: 900px) { .sep-card { grid-template-columns: 2fr 3fr; min-height: 340px; } }
.sep-card__img { position: relative; display: block; overflow: hidden; min-height: 240px; }
.sep-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.sep-card:hover .sep-card__img img { transform: scale(1.04); }
.sep-card__body { display: grid; align-content: center; gap: .8rem; padding: clamp(1.8rem, 4vw, 3.5rem) var(--gutter); }
.sep-card__body .label { margin: 0; }
.sep-card__title { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 2vw, 3.4rem); line-height: 1; color: var(--cream); }
.sep-card__desc { max-width: 52ch; color: var(--cream-70); }
.sep-card .textlink { justify-self: start; }
.model--after .model__figure { margin-bottom: 0; }

/* Community statement */
.community__intro { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; color: var(--cream); margin: 0 0 clamp(2rem, 4vw, 3rem); }
.statement h2.label { margin-bottom: .8rem; }

/* Community & lifestyle */
.lifestyle .gallery { margin-top: clamp(2.5rem, 5vw, 4rem); }
.life__text p { max-width: 52ch; }
.life__text p:first-child { margin-top: 0; }

/* Life at Alzira House on the home page */
.house-home__photos { position: relative; }
.house-home__big { margin: 0; aspect-ratio: 16 / 11; overflow: hidden; }
.house-home__big img, .house-home__inset img { width: 100%; height: 100%; object-fit: cover; }
.house-home__inset { position: absolute; left: -8%; bottom: -14%; width: 34%; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border: 8px solid var(--paper-2); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .5); }
@media (max-width: 899px) { .house-home__inset { left: auto; right: 6%; bottom: -10%; width: 38%; } .house-home__photos { margin-bottom: 3rem; } }

/* Stories, impact & partners */
.stories .gallery { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Audience aside */
.audience__aside { margin-top: 1rem; font-size: var(--step--1); }
.rooms .gallery { margin-top: clamp(2.5rem, 5vw, 4rem); }
/* Long Portuguese words in narrow row headings: hyphenate rather than overflow */
.rows h3, .steps h3, .tiles .tile__h, .models h3, .triptych__title, .sep-card__title { overflow-wrap: break-word; hyphens: auto; }
/* Narrow phones: icon-only menu button so the language switch fits beside the logo */
@media (max-width: 440px) {
  .nav-toggle { padding: .6rem .75rem; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-switch { margin-right: .55rem; }
}

/* =====================================================================
   v8 — targeted refinements
   ===================================================================== */

/* Hero: NGO introduction → headline → pathways → actions */
.hero__descriptor { margin-bottom: 1rem; max-width: 52ch; font-size: var(--step-0); line-height: 1.4; }
.hero .actions { margin-top: 1.6rem; }

/* Film: the introductory sentence leads into the video, in its own section below the hero */
.film { padding: clamp(3rem, 7vw, 6rem) 0 0; }
.film__intro { font-size: var(--step-2); line-height: 1.3; max-width: 34ch; margin: 0 0 clamp(1.8rem, 4vw, 3rem); color: var(--cream); }
.film__frame { margin: 0; padding: 0; }
.film__video { display: block; width: 100%; aspect-ratio: 1280 / 556; object-fit: cover; background: var(--forest-deep); }
@media (max-width: 600px) { .film__video { aspect-ratio: 16 / 10; } }

/* Our aim now opens its own section */
.statement h2.aim__title { margin-bottom: 0; }

/* Civic Engagement Workshops */
.civic__name { font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1; color: var(--orange); margin: .5rem 0 0; }
@media (min-width: 700px) { .steps--5 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); column-gap: 2rem; }
  .steps--5 > li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--rule-dark); padding-top: 1.3rem; } }
.civic__more { align-items: start; }
.civic__more .bignum { font-size: clamp(4.4rem, 2rem + 8vw, 9rem); }
.civic__more .bignum small { white-space: normal; max-width: 16ch; font-size: var(--step-1); }

/* =====================================================================
   v9 — phone clarity, film controls, no-fee emphasis
   ===================================================================== */

/* No programme fee: one clear label, plus an inline highlight where it sits in running text */
.fee { display: inline-flex; align-self: flex-start; margin: .2rem 0 0; padding: .5em 1.1em; border-radius: 999px; background: var(--forest); color: var(--sun);
  font-family: var(--heavy); font-weight: 900; font-size: var(--step-1); line-height: 1.1; }
.fee-inline { font-family: var(--heavy); font-weight: 900; box-shadow: inset 0 -.36em 0 rgba(227, 161, 7, .45); }
.t-forest .fee-inline, .t-deep .fee-inline, .t-photo .fee-inline { color: var(--sun); box-shadow: none; }
.hero-badge { font-size: var(--step-1); padding: .6em 1.3em; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }

/* Film: caption and unobtrusive sound / pause controls */
.film__screen { position: relative; }
.film__controls { position: absolute; right: .8rem; bottom: .8rem; display: flex; gap: .5rem; }
.film__controls[hidden] { display: none; }
.film__btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .95rem; border-radius: 999px; cursor: pointer;
  background: rgba(19, 41, 30, .72); color: var(--cream); border: 1.5px solid rgba(235, 231, 183, .4); font: inherit; font-size: var(--step--1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color var(--fast) var(--ease); }
.film__btn:hover { background: var(--forest); }
.film__btn i { flex: none; }
.ico-pause { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
[data-film-play][aria-pressed="true"] .ico-pause { width: 0; height: 0; border-right: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.ico-sound { width: 14px; height: 12px; background: currentColor; clip-path: polygon(0 30%, 30% 30%, 70% 0, 70% 100%, 30% 70%, 0 70%); position: relative; }
.film__caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1.5rem; padding: 1rem var(--gutter) 0; font-size: var(--step--1); color: var(--cream-70); }
.film__quote { font-family: var(--heavy); font-weight: 900; font-size: var(--step-0); color: var(--sun); }

/* Home programmes: shorter intro, the field-learning idea named once */
.pathways__fl { margin: 1rem 0 0; max-width: 46ch; }
.pathways__fl b { font-family: var(--heavy); font-weight: 900; }
.life__text p { margin-top: 0; }

/* Phones: the landing page is composed for a narrow screen, not shrunk from the laptop */
@media (max-width: 600px) {
  .glance .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; }
  .glance .stats .stat--lead, .glance .stats .stat:last-child { grid-column: 1 / -1; }
  .film { padding-top: 2.6rem; }
  .film__intro { font-size: 1.3rem; line-height: 1.38; max-width: 30ch; margin-bottom: 1.4rem; }
  .film__controls { right: .5rem; bottom: .5rem; gap: .4rem; }
  .film__btn { padding: .35rem .8rem; }

  .pathways__intro .lede { font-size: 1.15rem; }
  .triptych__item a { min-height: 60svh; }
  .triptych__text { gap: .5rem; padding: 1.3rem var(--gutter) 1.5rem; }
  .triptych__desc { font-size: .95rem; }
  .sep-card__body { padding-block: 1.6rem 1.8rem; }

  .lifestyle .lede { font-size: 1.15rem; }
  .life__text { margin-top: 1rem; }

  .house-home__big { aspect-ratio: 4 / 3; }
  .house-home__inset { width: 34%; bottom: -12%; border-width: 5px; }

  .statement .statement__sub { font-size: 1.2rem; }
  .fee { font-size: 1.1rem; }
}

/* =====================================================================
   v10 — hero hierarchy, full-bleed film, Sports on phones
   ===================================================================== */

/* Hero: small descriptor → dominant headline → one compact line of programmes, buttons on the right.
   Text sits on the photo with the earlier fade. */
.hero__descriptor { margin: 0 0 1rem; max-width: 60ch; font-family: var(--heavy); font-weight: 900; font-size: .78rem; line-height: 1.5;
  letter-spacing: .09em; color: var(--cream-70); }
@media (min-width: 1100px) { .hero__descriptor { max-width: none; } }
.hero__title { max-width: 21ch; text-wrap: balance; margin-top: 0; }
.hero .hero__row { margin-top: clamp(1.2rem, 2.6vh, 2rem); }
.hero .hero__kicker { margin: 0; max-width: 58ch; font-size: var(--step--1); line-height: 1.55; }
.hero .hero__actions { margin: 0; }
@media (min-width: 900px) {
  .hero .hero__row { grid-template-columns: minmax(0, 58ch) auto; }
  .hero .hero__actions { flex-direction: column; align-items: stretch; }
}
@media (min-width: 1081px) { .hero .hero__actions { margin-bottom: 0; } }
@media (max-width: 899px) {
  .hero__media img { object-position: 74% 40%; }
  .hero::before { background:
    linear-gradient(0deg, rgba(19, 41, 30, .97) 0%, rgba(19, 41, 30, .86) 34%, rgba(19, 41, 30, .3) 62%, rgba(19, 41, 30, .45) 100%); }
}
@media (max-width: 600px) {
  .hero__descriptor { font-size: .68rem; letter-spacing: .06em; margin-bottom: .7rem; max-width: none; }
  .hero__title { max-width: none; font-size: clamp(2.3rem, 1.2rem + 5.2vw, 2.8rem); line-height: 1; }
  .hero .hero__kicker { font-size: .9rem; max-width: 34ch; }
  .hero .hero__row { gap: 1.2rem; }
  .hero .wrap { padding-bottom: 2rem; }
}

/* Film intro: the NGO introduction leads, the place sentence follows */
.film__text { display: grid; gap: .8rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.film .film__intro { margin: 0; }
.film__sub { margin: 0; max-width: 52ch; font-size: var(--step-0); line-height: 1.5; color: var(--cream-70); }
@media (max-width: 600px) { .film__sub { font-size: 1rem; } .film__text { margin-bottom: 1.4rem; } }

/* Sports on phones: one full-width photo with the second overlapping its corner (as on laptop),
   instead of two mismatched photos side by side */
@media (max-width: 899px) {
  #sports .collage { display: block; position: relative; margin: 2.2rem 0 0; }
  #sports .collage > figure:first-child { aspect-ratio: 4 / 3; }
  #sports .collage > figure:last-child { position: absolute; right: 4%; bottom: -14%; width: 36%; margin: 0; aspect-ratio: 3 / 4;
    border: 6px solid var(--forest); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
  #sports .rows { margin-top: 1.4rem; }
  #sports .sports__more { margin-top: 5rem; }
}

/* =====================================================================
   v11 — small corrections
   ===================================================================== */

/* Intro passage below the hero: two connected short paragraphs, key phrases in bold */
.film .film__intro { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.4; max-width: 40ch; }
.film__sub { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.55; max-width: 54ch; color: var(--cream); }
.film__text b { font-family: var(--heavy); font-weight: 900; }
.film__intro b { color: var(--sun); }
.film__text { gap: .7rem; }

/* Film sound control: a small, see-through icon with a full 44px touch target */
.film__controls { right: .5rem; bottom: .5rem; }
.film__btn { position: relative; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; opacity: .7; transition: opacity var(--fast) var(--ease); }
.film__btn::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(19, 41, 30, .35); }
.film__btn:hover, .film__btn:focus-visible { opacity: 1; background: none; }
.film__btn i { position: relative; }
.film__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film__btn[data-muted="true"]::after { content: ""; position: absolute; width: 2px; height: 18px; background: currentColor; transform: rotate(45deg); }

/* Civic Engagement photo (Programmes) on phones: same 4:3 frame as the Sports photo, filled edge to edge of the column */
@media (max-width: 899px) { .civic__photo { aspect-ratio: 4 / 3; margin-top: 1.6rem; } .civic__photo img { object-position: 50% 60% !important; } }

/* =====================================================================
   v12 — micro edits
   ===================================================================== */
/* No programme fee on light backgrounds: orange highlight (dark surfaces keep yellow text) */
.fee-inline { box-shadow: inset 0 -.38em 0 rgba(221, 79, 24, .38); }
.stat__fee { font-family: var(--heavy); font-weight: 900; color: var(--sun); }
/* Programmes intro: a few phrases in bold */
.page-hero .lede b { font-family: var(--heavy); font-weight: 900; }
/* Civic Engagement workshop photo beneath the section content */
.civic__workshop { margin-top: clamp(2.5rem, 5vw, 4rem); }
.civic__workshop img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
@media (max-width: 899px) { .civic__workshop img { aspect-ratio: auto; } }
/* Home programmes intro sits on cream inside a green section: orange text, sized as large bold text for contrast */
.t-forest .t-paper .fee-inline, .t-paper .fee-inline, .t-cream .fee-inline { color: var(--orange); box-shadow: none; font-size: 1.12em; }

/* =====================================================================
   v13 — final micro-edits
   ===================================================================== */
/* About header on phones: centre the volunteer holding the hoop (laptop crop unchanged) */
@media (max-width: 600px) { [aria-labelledby="about-title"] .page-hero__img { object-position: 6% 28% !important; } }
/* Programmes header: a restrained extra fade behind the title */
[aria-labelledby="prog-title"].page-hero--photo::before { background:
  linear-gradient(0deg, rgba(19, 41, 30, .97) 0%, rgba(19, 41, 30, .8) 42%, rgba(19, 41, 30, .38) 72%, rgba(19, 41, 30, .5) 100%),
  linear-gradient(90deg, rgba(19, 41, 30, .55) 0%, rgba(19, 41, 30, 0) 62%); }
/* Civic workshop photo: a little breathing room before the next section slides over */
@media (max-width: 899px) { #civic .civic__workshop { margin-bottom: 1.5rem; } }
/* Universities: only the two large photo sections slide in, over the section pinned before them */
.js-stack .stack + .t-photo { box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .45); }
/* Volunteer: How to apply and the footer banner share the same deep green, so mark where one ends */
main:has(#apply) + .site-footer { border-top: 2px solid rgba(227, 161, 7, .55); box-shadow: inset 0 28px 40px -28px rgba(0, 0, 0, .55); }

/* =====================================================================
   v14 — refinements, immersive storytelling (English first)
   ===================================================================== */
/* Community & Lifestyle: approved text, laid out around the festa video and photos */
.life__label { margin-bottom: .6rem; }
.life__intro { align-items: center; }
.life__film { margin: 0; }
.life__video, .voices__video { display: block; width: 100%; background: var(--forest-deep); }
.life__video { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.life__cols { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 2px solid var(--forest); }
@media (min-width: 800px) { .life__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .life__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.life__cols h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.05; color: var(--forest); margin: 0 0 .8rem; }
.life__cols p { max-width: 46ch; margin: 0 0 .9rem; }
.life__cols b, .lifestyle .lede b, .house .lede b, .house b { font-family: var(--heavy); font-weight: 900; }
.house .life__cols { border-top-color: var(--forest); }
@media (max-width: 899px) { .life__film { margin-top: 1.6rem; } }

/* Programmes header note and the Civic photo blended into its text column */
.page-hero__note { max-width: 52ch; margin: 1rem 0 1.2rem; font-size: var(--step-0); line-height: 1.5; color: var(--cream); }
.page-hero__note b { font-family: var(--heavy); font-weight: 900; }
@media (min-width: 900px) { .civic__photo--blend { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%); } }
@media (max-width: 899px) { .civic__photo--blend { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); } }

/* Volunteer: three application routes and the testimonial */
.routes-apply { margin-bottom: clamp(3rem, 6vw, 5rem); }
.apply-routes { list-style: none; display: grid; gap: 1.4rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .apply-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.apply-routes li { display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.5rem 1.8rem; border-top: 4px solid var(--sun); background: rgba(235, 231, 183, .06); }
.apply-routes .label { margin: 0; color: var(--sun); }
.apply-routes h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.05; color: var(--cream); margin: 0; }
.apply-routes p { margin: 0; color: var(--cream-70); }
.apply-routes .btn { align-self: flex-start; margin-top: auto; }
.apply-routes .textlink { align-self: flex-start; }
.voices__film { margin: 0; justify-self: center; width: min(100%, 380px); }
.voices__video { aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
@media (max-width: 899px) { .voices__film { margin-top: 1.6rem; } }
/* Hero descriptor: reads as a clear label, still secondary to the headline */
.hero__descriptor { font-size: .9rem; letter-spacing: .06em; color: var(--cream); }
@media (max-width: 600px) { .hero__descriptor { font-size: .74rem; letter-spacing: .05em; } }

/* =====================================================================
   v15 — immersive media, Get Involved, phone-first refinements
   ===================================================================== */

/* Find Your People: lifestyle footage behind the approved introduction */
.lifefilm { min-height: min(92svh, 920px); display: flex; align-items: flex-end;
  --shade: linear-gradient(0deg, rgba(19, 41, 30, .96) 0%, rgba(19, 41, 30, .78) 30%, rgba(19, 41, 30, .2) 66%, rgba(19, 41, 30, .35) 100%), linear-gradient(90deg, rgba(19, 41, 30, .7) 0%, rgba(19, 41, 30, 0) 60%); }
.lifefilm__video, .bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lifefilm__bg { background: var(--forest-deep) url("../video/life-poster.jpg") center / cover no-repeat; }
.lifefilm__body { padding-block: var(--section) clamp(3rem, 7vh, 5.5rem); }
.lifefilm__title { color: var(--cream); max-width: 14ch; }
.lifefilm__lede { max-width: 50ch; margin-top: 1.2rem; color: var(--cream); }
.lifefilm__lede b { font-family: var(--heavy); font-weight: 900; color: var(--sun); }
.bg__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.bg__video.is-on { opacity: 1; }
@media (max-width: 760px) {
  /* phones: the footage is a full-width band at the top, then the words on green below it */
  .lifefilm { display: block; min-height: 0; }
  .lifefilm::before { inset: 0 0 auto; height: 62vw; background: linear-gradient(0deg, var(--forest-deep) 0%, rgba(19, 41, 30, 0) 42%); }
  .lifefilm .lifefilm__bg { position: relative; inset: auto; height: 62vw; z-index: -2; }
  .lifefilm__body { position: relative; padding-block: 0 2.8rem; margin-top: -3.2rem; }
}

/* Life Beyond the Programme / Three Languages on cream: orange headings, generous columns */
.life__cols--feature { margin-top: 0; padding-top: 0; border-top: 0; }
.lifestyle .life__cols h3, .house .life__cols h3 { color: var(--orange); font-size: var(--step-3); }
.lifestyle.band { padding-top: clamp(3rem, 6vw, 5rem); }

/* Civic Engagement: the photo runs full height to the edge, the words sit beside it */
.civic.band { padding-top: 0; }
.civic__hero { position: relative; }
.civic__img { margin: 0; }
.civic__img img { width: 100%; height: 100%; object-fit: cover; }
.civic__intro { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .civic__hero { min-height: min(78svh, 720px); display: flex; align-items: center; }
  .civic__img { position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
  .civic__intro { width: 100%; padding-block: var(--section); }
  .civic__intro > * { max-width: min(48%, 34rem); }
}
@media (max-width: 899px) {
  .civic__img { aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .civic__intro { margin-top: -1.6rem; }
}
.civic__more { margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.civic__aim .h3 { margin-bottom: .6rem; }

/* Galleries on phones: one large photo at a time, with a peek of the next */
@media (max-width: 760px) {
  .gallery__track { grid-auto-columns: 84vw; gap: 8px; }
  .gallery__item, .gallery__item:nth-child(3n + 2) { aspect-ratio: 4 / 5; align-self: stretch; }
  .gallery__btn { width: 3rem; height: 3rem; }
}

/* Get Involved */
.routes-apply__sub { max-width: 54ch; margin: .8rem 0 0; font-size: var(--step-1); line-height: 1.45; color: var(--cream); }
.apply-routes { margin-top: 1.8rem; }
@media (min-width: 900px) { .apply-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apply-route { transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.apply-route:hover, .apply-route:focus-within { background: rgba(235, 231, 183, .12); transform: translateY(-3px); }
.apply-routes p b { font-family: var(--heavy); font-weight: 900; color: var(--cream); }
.amb-banner { display: grid; gap: 1.2rem 2.5rem; align-items: center; margin-top: 1.4rem; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--sun); color: var(--forest); border-radius: 2px;
  background-image: radial-gradient(circle at 100% 0%, rgba(221, 79, 24, .28) 0%, rgba(221, 79, 24, 0) 45%); }
@media (min-width: 900px) { .amb-banner { grid-template-columns: minmax(0, 1fr) auto; } }
.amb-banner .label { color: var(--forest); margin: 0 0 .4rem; }
.amb-banner h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-4); line-height: 1; margin: 0 0 .6rem; color: var(--forest); }
.amb-banner p { margin: 0; max-width: 52ch; }
.amb-banner b { font-family: var(--heavy); font-weight: 900; }
.amb-banner__actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.amb-banner .textlink { color: var(--forest); }
/* the Apply Now destination gets a short highlight when you arrive */
@keyframes arrive { 0% { box-shadow: 0 0 0 0 rgba(227, 161, 7, 0); } 30% { box-shadow: 0 0 0 6px rgba(227, 161, 7, .7); } 100% { box-shadow: 0 0 0 0 rgba(227, 161, 7, 0); } }
.routes-apply.is-arrived .apply-route, .routes-apply.is-arrived .amb-banner { animation: arrive 1.6s var(--ease) both; }
.routes-apply.is-arrived .apply-route:nth-child(2) { animation-delay: .15s; }
.routes-apply.is-arrived .amb-banner { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .routes-apply.is-arrived * { animation: none !important; } .apply-route:hover { transform: none; } }

/* People & Experiences */
.people__links { display: grid; gap: .6rem; margin: 1.4rem 0 .4rem; }
.ig-list { list-style: none; display: grid; gap: .6rem; }
.ig-card, .ig-profile { display: grid; gap: .2rem; padding: .9rem 1.1rem; border: 1.5px solid rgba(235, 231, 183, .35); text-decoration: none; color: var(--cream); transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.ig-card:hover, .ig-profile:hover { border-color: var(--sun); background: rgba(235, 231, 183, .06); }
.ig-card__k { font-size: var(--step--1); color: var(--sun); font-family: var(--heavy); font-weight: 900; }
.voices__film { position: relative; }
.voices__film::before { content: ""; position: absolute; inset: -14% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(227, 161, 7, .22), rgba(227, 161, 7, 0)); pointer-events: none; }
.voices__video { border-radius: 14px; }
@media (max-width: 760px) { .voices__film { width: min(100%, 320px); } }
.place .bg__video { object-position: 50% 72%; }
@media (max-width: 760px) { .lifefilm__body { margin-top: -2.4rem; } .lifefilm__title { font-size: clamp(2.3rem, 1.4rem + 4vw, 2.9rem); } }
@media (max-width: 760px) { [aria-labelledby="prog-title"] .page-hero__img { object-position: 47% 30% !important; } }

/* =====================================================================
   v16 — master refinements (English)
   ===================================================================== */

/* Hero on phones: the photo fills the upper part so the high-five stays visible, the words sit on its fade */
@media (max-width: 760px) {
  .hero__media { bottom: auto; height: 74%; }
  .hero__media img { object-position: 70% 30%; }
  .hero::before { background: linear-gradient(0deg, var(--forest) 0%, var(--forest) 30%, rgba(27, 58, 42, .82) 46%, rgba(19, 41, 30, .15) 70%, rgba(19, 41, 30, .45) 100%); }
  .hero { background: var(--forest); }
  .hero__descriptor { font-size: .7rem; letter-spacing: .05em; }
}

/* Find Your People: soft horizontal wipe in from the right after Our Aim */
.wipe-ready { clip-path: inset(0 0 0 22%); opacity: .4; transition: clip-path 1.1s var(--ease), opacity 1.1s var(--ease); }
.wipe-ready.is-in { clip-path: inset(0 0 0 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wipe-ready { clip-path: none; opacity: 1; } }

/* Find Your People on phones: taller footage that melts into the green on both edges */
@media (max-width: 760px) {
  .lifefilm::before { height: 112vw; background: linear-gradient(180deg, rgba(19, 41, 30, .55) 0%, rgba(19, 41, 30, 0) 18%, rgba(19, 41, 30, 0) 52%, rgba(19, 41, 30, .85) 84%, var(--forest-deep) 100%); }
  .lifefilm .lifefilm__bg { height: 112vw; }
  .lifefilm__video { object-position: 50% 50%; }
  .lifefilm__body { margin-top: -30vw; }
}

/* Vidigal (photo): buildings stay visible on phones */
@media (max-width: 760px) {
  .place .bg img { object-position: 22% 78% !important; }
  .place { --shade: linear-gradient(0deg, rgba(19, 41, 30, .95) 0%, rgba(19, 41, 30, .62) 30%, rgba(19, 41, 30, .05) 58%, rgba(19, 41, 30, 0) 100%); }
}


/* Interview sliders (volunteers on Home, team on About): swipe on phones, peek of the next on wider screens */
.people__head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.people__head .hd { margin: 0; }
.vslider__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.vslider__track::-webkit-scrollbar { display: none; }
@media (min-width: 1720px) { .vslider__track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.vslider__item { scroll-snap-align: start; }
.vslider .voices__video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
@media (max-width: 760px) { .vslider__track { grid-auto-columns: 82vw; } .vslider__item { scroll-snap-align: center; } }

/* Volunteer stories: real Instagram previews, each opening its own reel */
.ig-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.4rem); margin-top: clamp(1.6rem, 3vw, 2.4rem); max-width: 60rem; }
.ig-tile { position: relative; display: block; color: var(--cream); text-decoration: none; border-radius: 12px; overflow: hidden; }
.ig-tile img { display: block; width: 100%; height: auto; aspect-ratio: 361 / 640; object-fit: cover; transition: transform var(--slow) var(--ease); }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.03); }
.ig-tile__meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: 1.4rem .8rem .7rem;
  background: linear-gradient(0deg, rgba(19, 41, 30, .85), rgba(19, 41, 30, 0)); font-family: var(--heavy); font-weight: 900; font-size: var(--step--1); }
.ig-icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) { .ig-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62vw; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .ig-grid li { scroll-snap-align: start; } }

/* Get Involved: calm route cards, no motion; Ambassador as part of the brand, not a promo card */
.routes-apply.is-arrived .apply-route, .routes-apply.is-arrived .amb-banner { animation: none; }
.apply-route:hover, .apply-route:focus-within { transform: none; }
.apply-route { background: none; border-top: 3px solid var(--sun); padding: 1.3rem 0 0; }
.amb-banner { background: var(--sun); background-image: none; border-radius: 0; grid-template-columns: auto minmax(0, 1fr); gap: .4rem clamp(1.4rem, 4vw, 3rem); padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 3rem); margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.amb-banner__year { grid-row: span 2; margin: 0; font-family: var(--display); font-weight: 700; line-height: .8; font-size: clamp(4rem, 2rem + 8vw, 9rem); color: var(--forest); }
.amb-banner__kicker { margin: 0 0 .3rem; font-family: var(--heavy); font-weight: 900; color: var(--orange); }
.amb-banner__actions { grid-column: 2; }
@media (max-width: 600px) { .amb-banner { grid-template-columns: 1fr; } .amb-banner__year { grid-row: auto; } .amb-banner__actions { grid-column: 1; } }

/* Safety before funding */
.funding { margin-top: clamp(1.8rem, 4vw, 3rem); padding-top: 1.4rem; border-top: 2px solid var(--forest); max-width: 70ch; }
.funding .h3 { margin: 0; }

/* Impact: the faded photo keeps the whole group in view on wide screens */
@media (min-width: 900px) {
  .stats-band__photo { width: 52%; bottom: auto; height: 78%; }
  .stats-band__photo img { object-position: 50% 45% !important; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 30%); mask-composite: intersect; }
}

/* Contact address wraps on its own lines */
.v-address { line-height: 1.5; }

/* Phones: headings stay expressive but proportionate */
@media (max-width: 600px) {
  .display.d-5 { font-size: clamp(2.15rem, 1.3rem + 4.2vw, 2.6rem); }
  .display.d-4 { font-size: clamp(1.95rem, 1.2rem + 3.8vw, 2.35rem); }
  .lede { font-size: 1.06rem; line-height: 1.5; }
  .statement .statement__text { font-size: clamp(1.9rem, 1.1rem + 4vw, 2.4rem); }
  .aim__title { font-size: clamp(2.8rem, 1.6rem + 6vw, 3.6rem); }
  .place__word { font-size: clamp(3.8rem, 1rem + 15vw, 5.2rem); }
}
@media (max-width: 760px) {
  .lifefilm::before { height: calc(112vw + 2px); }
  /* Vidigal: the photo fills the upper part, so the rooftops sit above the words */
  .place { min-height: 0; display: block; padding-top: 0; }
  .place .bg { bottom: auto; height: 82vw; }
  .place::before { height: calc(82vw + 2px); bottom: auto; background: linear-gradient(0deg, var(--forest-deep) 0%, rgba(19, 41, 30, .25) 34%, rgba(19, 41, 30, 0) 60%); }
  .place .wrap { padding-top: calc(82vw - 4.2rem); }
  .place .bg img { object-position: 30% 70% !important; }
}
/* Interviews on wider screens: heading on the left, the swipeable videos on the right */
@media (min-width: 900px) {
  .people { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem clamp(2rem, 5vw, 4rem); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
  .people .people__head { flex-direction: column; align-items: flex-start; padding: 0; margin: 0; max-width: none; }
  .people .vslider { min-width: 0; }
  .people .vslider__track { padding-inline: 0; scroll-padding-inline: 0; grid-auto-columns: min(320px, 44%); }
}

/* =====================================================================
   v17 — latest refinements
   ===================================================================== */
/* Find Your People: rises gently into place instead of sliding in from the side */
.wipe-ready { clip-path: inset(10% 0 0 0); transform: translateY(56px); opacity: .5; transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.wipe-ready.is-in { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wipe-ready { clip-path: none; transform: none; opacity: 1; } }

/* Lifestyle carousel: a soft, warm backdrop taken from the photograph of the volunteer laughing on the steps */
.lifestyle { position: relative; isolation: isolate; }
.lifestyle::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -1; pointer-events: none;
  background: url("../img/w1600/vol-laugh.jpg") 50% 30% / cover no-repeat; filter: blur(22px) saturate(1.1); opacity: .2;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%); }
.lifestyle { overflow: hidden; }

/* Interviews on wider screens: one compact, centred block instead of a wide empty band */
.people__intro { margin: .9rem 0 0; max-width: 40ch; color: var(--cream); font-size: var(--step-0); line-height: 1.5; }
@media (min-width: 900px) {
  .people { grid-template-columns: minmax(0, 28rem) auto; justify-content: center; gap: 2rem clamp(3rem, 6vw, 6rem); }
  .people .people__head { gap: 1.2rem; }
  .people .vslider__track { grid-auto-columns: clamp(300px, 24vw, 360px); max-width: calc(3 * clamp(300px, 24vw, 360px) + 28px); }
  .people.band { padding-block: clamp(4rem, 7vw, 6rem); }
}
@media (min-width: 761px) { .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 72rem; } }

/* v18 — lifestyle carousel on the photograph of the volunteer laughing on the steps (clearly visible, softly faded) */
.lifestyle::before { height: 70%; filter: none; opacity: .55; background-position: 50% 30%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); }
.lifestyle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(235, 231, 183, .55) 40%, rgba(235, 231, 183, .25) 100%); }
.lifestyle .gallery__item { box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .55); }

/* Real Experiences: the four previews share the full width */
@media (min-width: 761px) { .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: clamp(.8rem, 1.6vw, 1.6rem); } }

/* Rooms & Shared Spaces: two photographs of the house, overlapping */
.rooms__pair { position: relative; display: grid; grid-template-columns: 7fr 4fr; align-items: end; gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); }
.rooms__pair figure { margin: 0; overflow: hidden; }
.rooms__pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rooms__a { aspect-ratio: 4 / 3; }
.rooms__b { aspect-ratio: 3 / 4; margin: 0 0 -10% -12%; position: relative; z-index: 1; border: 8px solid var(--forest); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .6); }
.rooms.band { padding-bottom: calc(var(--section) + 3rem); }
@media (max-width: 760px) { .rooms__pair { grid-template-columns: 1fr 1fr; } .rooms__a { grid-column: 1 / -1; } .rooms__b { grid-column: 2; margin: -22% 0 0 0; border-width: 6px; } }

/* v19 — carousel and Alzira House consistency */
/* Life at Alzira House on phones: same hierarchy as desktop (large photo, inset overlapping lower-left) */
@media (max-width: 899px) {
  .house-home__photos { margin-bottom: 3.5rem; }
  .house-home__big { aspect-ratio: 16 / 11; }
  .house-home__inset { left: 4%; right: auto; bottom: -14%; width: 34%; aspect-ratio: 3 / 4; border-width: 8px; }
}
@media (max-width: 600px) { .house-home__big { aspect-ratio: 16 / 11; } .house-home__inset { width: 34%; border-width: 6px; } }

/* v20 — house video, carousel photo, footer address, phone fit */
/* the photograph of the volunteer on the steps is now a carousel item, not a faded backdrop */
.lifestyle::before, .lifestyle::after { content: none; }

/* the house video: a tall, framed panel that shares the photographs' border and shadow */
.house-film { margin: 0; overflow: hidden; background: var(--forest-deep); }
.house-film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.house-home__inset.house-film { aspect-ratio: 9 / 16; width: 32%; bottom: -18%; }
@media (max-width: 899px) { .house-home__inset.house-film { width: 42%; aspect-ratio: 9 / 16; bottom: -34%; } .house-home__photos { margin-bottom: 8rem; } }

/* Accommodation: the video leads, the stairway photograph overlaps it */
.house__photos--film { display: block; position: relative; padding-bottom: 12%; }
.house__photos--film .house__film { width: 52%; aspect-ratio: 9 / 16; margin-left: auto; margin-right: 8%; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5); }
.house__photos--film .house__stairs { position: absolute; z-index: 2; left: 0; bottom: 0; width: 50%; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border: 8px solid var(--paper-2); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .5); }
.house__photos--film .house__stairs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .house__photos--film { margin-top: 2.5rem; } .house__photos--film .house__film { width: 60%; margin-right: 0; } .house__photos--film .house__stairs { width: 46%; border-width: 6px; } }

/* Rooms & Shared Spaces: one modest photograph of a private room under the heading */
.rooms__photo { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; width: min(100%, 24rem); aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .6); }
.rooms__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rooms.band { padding-bottom: var(--section); }
@media (max-width: 899px) { .rooms__photo { width: min(78%, 24rem); } }

/* Instagram tile without a name: keep the icon on the right */
.ig-tile__meta .ig-icon:only-child { margin-left: auto; }

/* phone and tablet fit (v20) */
.btn { text-wrap: balance; text-align: center; }
@media (max-width: 480px) { .btn { line-height: 1.2; } }
.price small { line-height: 1.4; }
@media (max-width: 899px) { .footer-top { gap: 1.5rem; } .footer-top .actions { margin-top: 0; } }
@media (min-width: 760px) and (max-width: 899px) { .flow--big { grid-template-columns: 1fr; } .flow--big .arrow { transform: rotate(90deg); width: max-content; } }
.flow h3, .rows h3, .apply-route h3 { overflow-wrap: break-word; }

/* v21 — slide-over transitions: the section before stays pinned while the next one passes over it */
.js-stack .stack[data-slide]::after { content: none; }
.js-stack .t-photo.stack[data-slide]::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--from, transparent) 0%, transparent 20%, transparent 80%, var(--to, transparent) 100%); }
.slide-dim { display: none; }
.js-stack .slide-dim { display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--forest-deep); opacity: calc(var(--cover, 0) * .5); }
.js-stack [data-slide] + section { box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .45); }

/* v21 — Alzira House media */
/* home preview: the video panel opens the house on the Accommodation page */
.house-film__link { display: block; position: relative; width: 100%; height: 100%; color: var(--cream); text-decoration: none; }
.house-film__link:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.house-film__cue { position: absolute; left: .6rem; bottom: .6rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(19, 41, 30, .72); font-family: var(--heavy); font-weight: 900; font-size: .78rem; line-height: 1.1; transition: background var(--fast) var(--ease); }
.house-film__link:hover .house-film__cue { background: var(--forest); }
.house-film .film__controls { right: .3rem; bottom: .3rem; z-index: 2; }
/* Accommodation: rooftop photograph leads, the house video overlaps its lower-left corner */
.house__photos--film { padding-bottom: 16%; }
.house__photos--film .house__main { width: 64%; aspect-ratio: 4 / 5; margin: 0 0 0 auto; overflow: hidden; }
.house__photos--film .house__main img { width: 100%; height: 100%; object-fit: cover; }
.house__photos--film .house__film { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 9 / 16; margin: 0; z-index: 2; border: 8px solid var(--paper-2); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .5); }
@media (max-width: 899px) { .house__photos--film .house__main { width: 68%; } .house__photos--film .house__film { width: 42%; border-width: 6px; } }
.house-film .film__controls { top: .3rem; bottom: auto; }
.house__photos--film .house__main { width: 66%; }
.house__photos--film .house__film { width: 40%; }

/* v22 — Alzira House media: the video leads, the photograph sits beside it (desktop) or below it (phone); no overlap */
.house-media { display: flex; align-items: flex-end; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.house-media .house-media__video, .house-media .house-media__photo { position: relative; margin: 0; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5); }
.house-media .house-media__video { flex: 0 0 56%; aspect-ratio: 9 / 16; }
.house-media .house-media__photo { flex: 1 1 auto; aspect-ratio: 4 / 5; }
.house-media .house-media__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-media--acc { flex-direction: row-reverse; }
@media (max-width: 899px) {
  .house-media { flex-direction: column; align-items: center; gap: 1rem; margin-top: 2.5rem; }
  .house-media--acc { flex-direction: column; }
  .house-media .house-media__video { flex: none; width: min(74%, 22rem); }
  .house-media .house-media__photo { flex: none; width: 100%; aspect-ratio: 4 / 3; }
}
/* Impact at a glance: photograph beside the heading and lead figure, the other four figures in one row beneath it */
@media (min-width: 900px) {
  .stats-band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 3rem; align-items: start; }
  .stats-band .wrap > * { max-width: none; }
  .stats-band .hd { grid-column: 1 / span 2; grid-row: 1; }
  .stats-band .stats { display: contents; }
  .stats-band .stats .stat--lead { grid-column: 1 / span 2; grid-row: 2; margin-top: 3.5rem; }
  .stats-band .stats .stat:not(.stat--lead) { grid-row: 3; margin-top: 3.5rem; }
  .stats-band__photo { position: relative; inset: auto; grid-column: 3 / -1; grid-row: 1 / span 2; align-self: stretch; width: auto; height: auto;
    margin: calc(-1 * var(--section)) calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)) 0 0; }
  .stats-band__photo img { position: absolute; inset: 0; object-position: 46% 35% !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 22%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect; }
}
@media (max-width: 899px) { .stats-band__photo { margin-inline: calc(-1 * var(--gutter)); } }

/* v23 — small refinements */
/* Programmes header on phones: the photograph is a band across the top, so the girl and her balloon stay fully in view */
@media (max-width: 760px) {
  [aria-labelledby="prog-title"].page-hero--photo { min-height: 0; padding-top: 50svh; }
  [aria-labelledby="prog-title"] .page-hero__img { bottom: auto; height: 58svh; object-position: 62% 30% !important;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  [aria-labelledby="prog-title"].page-hero--photo::before { background: linear-gradient(180deg, rgba(19, 41, 30, .45) 0%, rgba(19, 41, 30, 0) 18%); }
}
/* Phone header: the language switch sits beside the menu button and never runs into the name */
@media (max-width: 1080px) { .site-header .bar { gap: .6rem; } .lang-switch { margin-right: .35rem; } }
@media (max-width: 360px) { .brand { gap: .5rem; } .brand img { width: 42px; height: 42px; } .brand span { font-size: 1.08rem; } .lang-switch { padding: .3rem .55rem; } }
/* Alzira House: the video on its own, with the same rounded corners as the interview videos */
.house-media .house-media__video { border-radius: 14px; }
.house-home .wrap.grid { display: flex; align-items: center; justify-content: space-between; gap: clamp(2.5rem, 6vw, 6rem); }
.house-home .wrap.grid > .c-1-6 { flex: 1 1 0; max-width: 36rem; }
.house-media--home { flex: 0 0 auto; display: block; }
.house-media--home .house-media__video { width: auto; height: min(78svh, 44rem); aspect-ratio: 9 / 16; }
.house .house-media--acc { margin-top: 0; align-self: center; display: flex; justify-content: center; }
.house-media--acc .house-media__video { flex: none; width: min(100%, 30rem); }
@media (max-width: 899px) {
  .house-home .wrap.grid { flex-direction: column; align-items: stretch; gap: 0; }
  .house-home .wrap.grid > .c-1-6 { max-width: none; }
  .house-media--home { margin-top: 2rem; display: flex; justify-content: center; }
  .house-media--home .house-media__video { height: auto; width: min(86%, 24rem); }
  .house .house-media--acc { margin-top: 2rem; }
  .house-media--acc .house-media__video { width: min(86%, 24rem); }
}
/* Apply Now: the Ambassador option uses the same soft panel as the Volunteer and Intern options */
.amb-banner { background: rgba(235, 231, 183, .06); border-top: 4px solid var(--sun); color: var(--cream); }
.amb-banner .amb-banner__year { color: var(--sun); }
.amb-banner h3 { color: var(--cream); }
.amb-banner .amb-banner__kicker { color: var(--sun); }
.amb-banner p { color: var(--cream-70); }
.amb-banner b { color: var(--cream); }
.amb-banner .textlink { color: var(--cream); }
.amb-banner .btn--forest { background: var(--sun); color: var(--forest); }
.amb-banner .btn--forest:hover { background: #F0B21C; box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .28); }
@media (max-width: 760px) { [aria-labelledby="prog-title"] .page-hero__img { object-position: 68% 30% !important; } }

/* v24 — Accommodation and home refinements (laptop unless noted) */
@media (min-width: 761px) {
  /* Rooms & Shared Spaces: all four photographs share one size */
  .rooms .gallery__item:nth-child(3n + 2) { aspect-ratio: 4 / 5; align-self: stretch; }
}
@media (min-width: 900px) {
  /* Rooms & Shared Spaces: heading at the top of its column, not pushed down by the list beside it */
  .rooms .grid--end > .hd { align-self: start; }
  /* home: text and video sit together as one composition */
  .house-home .wrap.grid { justify-content: center; gap: clamp(3rem, 5vw, 5rem); }
}
/* Accommodation: a narrower, contained house video (desktop and phone) */
.house-media--acc .house-media__video { width: min(100%, 24rem); }
@media (max-width: 899px) { .house-media--acc .house-media__video { width: min(78%, 21rem); } }

/* v25 — Accommodation house video fills its own column, like the film on the landing page (cover fit, rounded corners) */
@media (min-width: 900px) {
  .house .house-media--acc { display: block; align-self: stretch; }
  .house-media--acc .house-media__video { width: 100%; height: 100%; min-height: 32rem; aspect-ratio: auto; }
}
@media (max-width: 899px) { .house-media--acc .house-media__video { width: 100%; aspect-ratio: 4 / 5; } }
@media (min-width: 900px) { .house-media--acc .house-film__video { position: absolute; inset: 0; } }

/* v26 — Accommodation house video: seamless and edge-to-edge like the landing-page film (no rounded frame, shadow or border) */
.house .house-media--acc .house-media__video { border-radius: 0; box-shadow: none; border: 0; background: none; }

/* v27 — Accommodation house video meets the edges of its area: section top, the divider below and the screen edge */
@media (min-width: 900px) {
  .house .house-media--acc { margin: calc(-1 * var(--section)) calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)) calc(-1 * clamp(2.5rem, 5vw, 4rem)) 0; }
  .house-media--acc .house-media__video { min-height: 0; }
}
@media (max-width: 899px) {
  .house .house-media--acc { margin: 2rem calc(-1 * var(--gutter)) calc(-1 * clamp(2.5rem, 5vw, 4rem)); }
  .house-media--acc .house-media__video { width: 100%; }
}
@media (min-width: 900px) and (max-width: 1600px) { .house .house-media--acc { margin-top: calc(-1 * clamp(4.5rem, 2rem + 6vw, 8.5rem)); } }

/* v28 — Accommodation house video back to its own upright 9:16 shape, so the whole frame and subtitles show,
   still meeting the section top, the divider below and the screen edge */
.house-media--acc .house-media__video { aspect-ratio: 9 / 16; }
@media (min-width: 900px) {
  .house .house-media--acc { display: flex; flex-direction: row; justify-content: flex-end; }
  .house-media--acc .house-media__video { width: auto; height: 100%; flex: none; }
}
@media (max-width: 899px) { .house-media--acc .house-media__video { width: 100%; aspect-ratio: 9 / 16; } }

/* v29 — Programmes: SEP still slides over the pinned Arts section, but no longer stays pinned behind the sections after it */
.js-stack #arts.stack + #social-entrepreneurship { box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .45); }
/* Accommodation (laptop and wider): the text sits beside the video with a set gap, as on the landing page; the video keeps its edges */
@media (min-width: 900px) {
  .house > .wrap.grid { display: flex; justify-content: flex-end; align-items: stretch; gap: clamp(3rem, 5vw, 5rem); }
  .house > .wrap.grid > .c-1-6 { flex: 0 1 36rem; align-self: center; }
  .house > .wrap.grid > .house-media--acc { flex: 0 0 clamp(22rem, 18vw + 10rem, 30rem); }
  .house-media--acc .house-media__video { width: 100%; height: 100%; }
}

/* v30 — a pinned section is released once the next section has fully covered it (see site.js) */
.js-stack main > .stack.stack--done { position: relative; top: auto; }
/* Accommodation (laptop and wider): text and video centred together as one composition, as on the landing page */
@media (min-width: 900px) {
  .house > .wrap.grid { justify-content: center; }
  .house .house-media--acc { margin-right: 0; }
}

/* v31 — three-language menu (English | Português | Español): the same small pill, opening a short list */
.lang-menu { position: relative; order: 2; margin-left: auto; margin-right: .8rem; }
.lang-menu > .lang-switch { margin: 0; order: 0; list-style: none; cursor: pointer; display: inline-flex; align-items: center; user-select: none; }
.lang-menu > .lang-switch::-webkit-details-marker { display: none; }
.lang-menu[open] > .lang-switch { background: var(--sun); color: var(--forest); border-color: var(--sun); }
.lang-menu__list { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60; min-width: 10.5rem; margin: 0; padding: .4rem; list-style: none;
  background: var(--forest-deep); border: 1px solid rgba(235, 231, 183, .25); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.lang-menu__list a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--cream); text-decoration: none; font-size: 1rem; line-height: 1.2; }
.lang-menu__list a:hover, .lang-menu__list a:focus-visible { background: rgba(235, 231, 183, .12); }
.lang-menu__list a[aria-current] { color: var(--sun); font-family: var(--heavy); font-weight: 900; }
@media (min-width: 1081px) { .site-header .bar > .lang-menu { order: 3; margin: 0 0 0 1.1rem; } }
@media (max-width: 1080px) { .lang-menu { margin-right: .35rem; } }
/* Portuguese and Spanish: keep the header button on one line ("Inscreva-se" must not break at its hyphen) */
html:lang(pt) .nav .btn, html:lang(es) .nav .btn { white-space: nowrap; }

/* v32 — landing descriptor: larger and more legible on laptop and desktop, scaling down on phones */
.hero .hero__descriptor { font-size: clamp(.8rem, .55rem + .85vw, 1.45rem); line-height: 1.3; letter-spacing: .05em; color: var(--sun); max-width: 46ch; text-wrap: balance; margin-bottom: clamp(.7rem, 1.4vh, 1.1rem); }
@media (max-width: 600px) { .hero .hero__descriptor { font-size: clamp(.78rem, .62rem + .9vw, .9rem); letter-spacing: .04em; max-width: none; } }

/* Intercultural exchange days (Universities & Partners): a slim information strip, small photo beside a short title and one sentence */
.exchange.band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.exchange__row { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.75rem); }
.exchange__photo { flex: 0 0 clamp(18rem, 32vw, 30rem); aspect-ratio: 4 / 3; }
.exchange__photo img { width: 100%; height: 100%; object-fit: cover; }
.exchange__title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.02; margin: 0; }
.exchange__text p { margin: .7rem 0 0; max-width: 48ch; }
/* Same soft edge fade as the other photos that sit beside text (e.g. Civic) */
@media (max-width: 760px) { .exchange__row { flex-direction: column; align-items: stretch; } .exchange__photo { flex-basis: auto; width: 100%; } } /* full width above the text on phones, like the other photos */
/* Desktop: the logo strip that follows sits closer, so the two read as one run of content */
@media (min-width: 900px) { .exchange + .partners.band { padding-top: clamp(1rem, 2vw, 2rem); } }
/* Feathered on all four sides so the photo dissolves into the cream, like the site's other blended photos */
.exchange__photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

/* 2027 Student Ambassadors (Universities): same treatment as the landing-page photo sections.
   Laptop: the photo sits to the right and dissolves into the dark green behind the text.
   Phone: a clear photo band on top, the text below it on dark green. */
@media (min-width: 900px) {
  #ambassadors .bg { left: 36%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(180deg, #000 55%, transparent 98%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(180deg, #000 55%, transparent 98%); mask-composite: intersect; }
}
@media (max-width: 899px) {
  #ambassadors.band { padding-top: calc(76vw - 2.5rem); }
  #ambassadors .bg { height: 76vw; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  #ambassadors .bg img { object-position: 55% 45% !important; }
  #ambassadors::before { inset: 0 0 auto; height: 76vw; background: linear-gradient(0deg, var(--forest-deep) 0%, rgba(19, 41, 30, 0) 40%); }
  #ambassadors::after { background: none; } /* the top blend would cover the whole photo band on a tall phone layout */
}
