/* Projection Augmented Landscape Models — site styles */
:root {
  --ink: #1f2a24;
  --muted: #5b6660;
  --sand: #f4efe6;
  --sand-2: #ebe3d4;
  --earth: #a4572c;
  --earth-dark: #7d3f1c;
  --night: #16201b;
  --line: #ddd3c2;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--earth); }
a:hover { color: var(--earth-dark); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; padding: 10px 0; }
.brand:hover { color: #fff; }
.brand-title { font-size: 1.15rem; font-weight: 700; }
.brand-tag { font-size: .72rem; letter-spacing: .04em; color: #c9bfae; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; }
.site-nav a { display: block; color: #e9e3d8; text-decoration: none; padding: 10px 14px; border-radius: 6px; font-size: .95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a.active, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .75em; opacity: .7; }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 260px;
  background: var(--night); border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 6px; display: none; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: block; background: none; color: #fff; border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px; padding: 8px 14px; font: inherit; cursor: pointer;
  }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); padding: 8px 16px 18px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; background: none; min-width: 0; }
  .has-sub > a::after { content: ""; }
  .sub a { font-size: .9rem; color: #c9bfae; }
}

/* ---------- home: 2x2 tile banner (layout of the original Wix home page) ---------- */
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 50vh; background: var(--night); }
.home-tiles .tile { position: relative; overflow: hidden; clip-path: inset(0); display: flex; align-items: center; justify-content: center; }
.tile-media { position: absolute; inset: 0; margin: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-content { position: relative; text-align: center; padding: 24px; max-width: 100%; min-width: 0; }
/* top row: images pinned to the viewport, so the page scrolls up over them */
.tile-pinned .tile-media { position: fixed; top: 0; bottom: auto; width: 50vw; height: 50vh; left: 0; }
.tile-pinned:nth-child(2) .tile-media { left: 50vw; }
/* top-left photo: the top row is as tall as the photo's proportions (1019 x 858) need
   at half the page width, so the whole image fills its tile edge to edge */
@media (min-width: 861px) {
  .home-tiles:first-of-type { --r1: calc(50vw / 1.188); grid-template-rows: var(--r1); }
  .home-tiles:first-of-type .tile-pinned .tile-media { height: var(--r1); }
}
/* title tile: washed-out pastel terrain behind big dark lettering */
.tile-title .tile-media img { filter: blur(3px) saturate(.75); transform: scale(1.05); }
.tile-title .tile-media::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.62); }
.tile-title .tile-content { color: #222; }
.tile-title h1 {
  font-family: "Arial Narrow", Arial, sans-serif; font-stretch: condensed;
  text-transform: uppercase; font-size: clamp(2.3rem, 5.29vw, 4.6rem); line-height: 1.02; letter-spacing: .01em;
  max-width: 9.5em; margin: 0 auto .5em; text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.tile-title .tagline { text-transform: none; letter-spacing: .02em; font-size: 1.2rem; color: #222; }
.tile-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 64px; font-size: min(1.4rem, 1.45vw); } /* about 55% larger than the original .9rem; shrinks on narrower screens to stay on one line */
/* menu links: plain text with a fine underline that darkens and thickens on hover */
.tile-nav a {
  color: #1a1a1a; text-decoration: underline; letter-spacing: .02em; padding: .2em .3em;
  text-decoration-color: rgba(26,26,26,.35); text-decoration-thickness: 1px; text-underline-offset: .3em;
  transition: text-decoration-color .2s, text-decoration-thickness .2s, text-underline-offset .2s;
}
.tile-nav a:hover, .tile-nav a:focus-visible { color: #000; text-decoration-color: #1a1a1a; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.tile-sand h2 { color: #111; font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; text-shadow: 0 2px 4px rgba(0,0,0,.35); margin: 0; }
.lead { font-size: 1.15rem; }

/* home: the dark header stays hidden over the tiles and slides in once you scroll past them */
.home .site-header { position: fixed; left: 0; right: 0; transform: translateY(-100%); transition: transform .25s ease; }
.home .site-header.show, .home .site-header:focus-within { transform: none; }

@media (max-width: 860px) {
  .home-tiles { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .home-tiles .tile { min-height: 60vh; }
  .tile-pinned .tile-media, .tile-pinned:nth-child(2) .tile-media { position: absolute; width: auto; height: auto; inset: 0; }
  .tile-photo { order: -1; min-height: 0; height: 60vh; } /* photo stays first on phones */
  .tile-photo .tile-media { position: fixed; inset: 0 0 auto 0; height: 60vh; }
  .tile-title .tile-media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tiles .tile .tile-media { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; }
}

.btn { display: inline-block; margin-top: 8px; background: var(--earth); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--earth-dark); color: #fff; }

/* ---------- page hero ---------- */
.page-hero { background: #fff; padding: 64px 0 40px; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.page-hero.has-img .hero-inner { grid-template-columns: 1.1fr 1fr; }
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.hero-img figure { margin: 0; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(40,30,15,.18); width: 100%; }
@media (max-width: 860px) { .page-hero.has-img .hero-inner { grid-template-columns: 1fr; } }

/* ---------- content blocks ---------- */
.block { padding: 64px 0; }
.block.alt { background: #fff; border-top: 1px solid #eee; }
.prose { max-width: 720px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.text-link { font-weight: 600; text-decoration: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.gallery figure, .steps figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); background: #eee; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40,30,15,.14); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #eee; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.card-body strong { font-size: 1.1rem; }
.card-body span { color: var(--muted); font-size: .92rem; }

.logos { display: flex; flex-wrap: wrap; gap: 28px 36px; align-items: center; }
.logos img { max-height: 80px; max-width: 160px; width: auto; object-fit: contain; }

/* ---------- award ---------- */
.award-inner { display: flex; gap: 28px; align-items: center; }
.award-badge { margin: 0; flex: 0 0 140px; }
.award-badge img { border-radius: 8px; }

/* ---------- steps ---------- */
.steps { padding-left: 1.3em; max-width: 760px; }
.steps > li { margin-bottom: 36px; }
.steps figure { margin-top: 14px; max-width: 560px; }
.steps img { border-radius: 8px; border: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #c9bfae; padding: 44px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .3em; }
.site-footer a { color: #e2c9a8; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { text-decoration: none; }
.footer-logo { max-height: 70px; width: auto; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* single images shouldn't fill the full width */
.gallery:has(> figure:only-child) { grid-template-columns: minmax(0, 760px); }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(5, 1fr); } }

/* ---------- scroll-reveal image strips (matches the Wix "BgReveal" effect) ----------
   The photo is pinned to the viewport and the strip acts as a window onto it,
   so the page scrolls over a still image. clip-path keeps the fixed image
   inside its own strip; this also works on iOS, unlike background-attachment: fixed. */
.reveal {
  position: relative; min-height: 65vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--night); clip-path: inset(0); overflow: hidden;
}
.reveal-media { position: fixed; inset: 0; margin: 0; }
.reveal-media img { width: 100%; height: 100%; object-fit: cover; }
.reveal-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,13,.82) 0%, rgba(10,16,13,.35) 45%, rgba(10,16,13,0) 75%);
}
.reveal-content { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.reveal-content h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.reveal-content p { max-width: 620px; font-size: 1.12rem; color: #f0ebe2; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal-media { position: absolute; }
}
@media print {
  .reveal { min-height: 0; clip-path: none; }
  .reveal-media { position: static; }
}

/* ---------- embedded video ---------- */
.video { margin: 8px 0 32px; max-width: 854px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }

/* Multidimensional and Multisensory strips: larger, centred text */
.reveal-centered { align-items: center; }
.reveal-centered .reveal-media::after { background: rgba(10,16,13,.45); }
.reveal-centered .reveal-content { text-align: center; padding-top: 56px; }
.reveal-centered .reveal-content h2 { font-size: clamp(2.6rem, 7vw, 5rem); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.reveal-centered .reveal-content p { max-width: 900px; margin: 0 auto; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.35; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* Home intro (text + video): centred text and video */
.intro { background: #fff; }
.intro .prose { max-width: 1320px; text-align: center; }
.intro .lead { font-size: clamp(1.32rem, calc(1.9vw + .17rem), 1.57rem); line-height: 1.6; color: var(--ink); }
.intro .video { margin: 24px auto 0; box-shadow: 0 18px 40px rgba(40,30,15,.22); border-radius: var(--radius); }

/* button inside a scrolling strip */
.reveal-btn { margin-top: 28px; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); }

/* home: closing tile pair (local knowledge photo + award) */
.home-tiles-end { grid-auto-rows: minmax(60vh, auto); }
.tile-award { background: #fff; }
.tile-award .tile-content { max-width: 440px; }
.award-badge-img { width: 150px; margin: 0 auto 20px; border-radius: 8px; box-shadow: 0 10px 24px rgba(40,30,15,.18); }
.tile-award h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tile-award p { font-size: 1.15rem; }
@media (max-width: 860px) {
  .home-tiles-end .tile { min-height: 50vh; }
  .home-tiles-end .tile-award { min-height: 0; padding: 40px 0; }
}

/* ---------- section headings: light title over a thick pale rule (as on the original site) ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 40px; margin-bottom: 28px; }
.section-head h1, .section-head h2 {
  font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 3.4rem); letter-spacing: .01em; line-height: 1.1;
  margin: 0; padding-bottom: 12px; border-bottom: 6px solid #ececec; min-width: min(420px, 100%);
}
.section-sub { margin: 0 0 14px; font-style: italic; color: #a5a5a5; letter-spacing: .03em; }

/* ---------- applications: tall image tiles with a frosted label box ---------- */
.apps { padding-top: 48px; }
.app-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.app-tile { position: relative; display: block; aspect-ratio: 185 / 290; overflow: hidden; color: #1a1a1a; text-decoration: none; background: #eee; }
.app-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.app-tile:hover img, .app-tile:focus-visible img { transform: scale(1.05); }
.app-label {
  position: absolute; left: 8%; right: 0; bottom: 0; min-height: 36%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 10px 12px 10px; background: rgba(255,255,255,.72); transition: background .2s;
}
.app-tile:hover .app-label, .app-tile:focus-visible .app-label { background: rgba(255,255,255,.9); }
.app-label strong { font-weight: 400; font-size: clamp(1.05rem, 1.75vw, 1.45rem); line-height: 1.4; }
.app-label small { font-size: .72rem; letter-spacing: .02em; }
@media (max-width: 860px) { .app-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .app-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- client logos: even grid, no background ---------- */
.logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 32px; align-items: center; justify-items: center; }
.logos-grid img { max-height: 110px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- text-left / media-right rows (Tactile 3D page, as on the original site) ---------- */
.page-title { font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.1rem); letter-spacing: .01em; margin-bottom: 24px; }
.t3d { padding-top: 48px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px 36px; align-items: start; margin-bottom: 36px; }
.split-text p, .split-text li { font-size: 1rem; line-height: 1.7; }
.split-text ul { margin: 0 0 1.4em; padding-left: 1.6em; }
.split-text li { margin-bottom: .3em; }
.kicker { font-size: 1.05rem; font-weight: 600; color: #8b1414; margin: 0 0 .4em; letter-spacing: .01em; }
.split-media { margin: 0; }
.split-media img, .split-media video { display: block; width: 100%; height: auto; background: #000; }
.split-media img { max-height: 640px; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* home: links under the video, same underline style as the title tile menu */
.intro-links { margin-top: 32px; font-size: 1.35rem; gap: 12px 40px; }
.lead-strap { font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ---------- application pages: text column + picture column ---------- */
.app-page { padding-top: 48px; }
.app-page .split { margin-bottom: 48px; }
.app-page .lead { font-size: 1.1rem; color: var(--ink); }
.split-h { font-weight: 400; font-size: 1.45rem; margin: 1.5em 0 .5em; }
.split-text > .split-h:first-child { margin-top: 0; }
div.split-media { display: flex; flex-direction: column; gap: 16px; }
.split-media figure { margin: 0; }
.split-media figcaption { margin-top: 6px; }

/* compact variant (Mine closure, STEM learning, Climate change): narrower picture column and shorter photos so they sit level with the text */
.app-compact .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.app-compact .split-media img { max-height: 320px; width: 100%; object-fit: cover; object-position: center 70%; }
.app-compact .split:first-of-type .split-media img { object-position: center 30%; }
@media (max-width: 860px) { .app-compact .split { grid-template-columns: 1fr; } }
.app-stem .split-media img { max-height: 230px; } /* three stacked photos: shorter so the column ends with the text */

/* full-width text row (no picture) and chapter citation */
.app-page .split.split-full, .t3d .split.split-full { grid-template-columns: minmax(0, 1fr); }
.split-full .split-text { max-width: 820px; }
.source-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; font-size: .85rem; color: var(--muted); max-width: 820px; }
.app-lk .split-media img { max-height: 440px; } /* Local knowledge: taller crops for the portrait photos */
.app-lk .split:first-of-type .split-media img { aspect-ratio: 9 / 10; height: auto; object-position: center; }
.app-fire .split:first-of-type .split-media img { aspect-ratio: 1; max-height: none; object-position: center; } /* wide panorama cropped squarer to sit beside the long intro */

/* Tactile 3D: each photo fills exactly the height of the text beside it (row height is set by the text) */
@media (min-width: 861px) {
  .t3d .split { align-items: stretch; }
  .t3d .split + .split .split-media { position: relative; min-height: 280px; }
  .t3d .split + .split .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
}

/* Mine closure: photos in each row share the height of their text */
@media (min-width: 861px) {
  .app-mine .split { align-items: stretch; }
  .app-mine .split .split-media { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
  .app-mine .split .split-media figure { position: relative; min-height: 170px; margin: 0; }
  .app-mine .split .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 55%; }
}

/* STEM: four stacked photos share the height of the text */
@media (min-width: 861px) {
  .app-stem .split { align-items: stretch; }
  .app-stem .split-media { display: grid; grid-auto-rows: 1fr; gap: 16px; }
  .app-stem .split-media figure { position: relative; min-height: 150px; margin: 0; }
  .app-stem .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
}

/* Climate: Rarotonga photo row */
.cc-raro figure { margin: 0; }
.cc-raro img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 85%; }

/* Local knowledge: Philippines row, photo fills the height of its text */
@media (min-width: 861px) {
  .app-lk .lk-ph { align-items: stretch; }
  .app-lk .lk-ph .split-media figure { position: relative; flex: 1; min-height: 320px; margin: 0; }
  .app-lk .lk-ph .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center 45%; }
}

/* Small photo within a text column */
.inline-photo { margin: 4px 0 28px; max-width: 420px; }
.inline-photo img { display: block; width: 100%; height: auto; }
.inline-photo figcaption { font-size: .85rem; color: #666; margin-top: 6px; }

/* Local knowledge row 2: three photos, keep the column level with the text */
.app-lk img[src$="lk-cameroon.jpg"], .app-lk img[src$="lk-mexico.jpg"] { max-height: 200px; object-fit: cover; object-position: center 60%; }

/* Fire page: WA training photo fills the height of its text */
@media (min-width: 861px) {
  .app-fire .fire-wa { align-items: stretch; }
  .app-fire .fire-wa .split-media figure { position: relative; flex: 1; min-height: 280px; margin: 0; }
  .app-fire .fire-wa .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 78% center; }
}

/* Book reference with cover thumbnail */
.book-ref { display: flex; gap: 20px; align-items: flex-start; margin: 8px 0 24px; }
.book-ref > a { flex: 0 0 120px; }
.book-ref img { display: block; width: 120px; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.book-ref p { margin: 0 0 8px; }
.book-ref { display: block; }
.split-media .book-cover { max-width: 180px; }
.split-media .book-cover img { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.book-ref { margin: 0; }
.lk-book { border: 1px solid #d9d9d9; border-radius: 4px; padding: 24px; align-items: center; }
.book-ref p:last-child { margin-bottom: 0; }
.split.lk-book { display: flex; gap: 32px; align-items: center; }
.lk-book .split-text { flex: 1; min-width: 0; }
.lk-book .split-media { flex: 0 0 160px; }
.lk-book .book-cover { max-width: 160px; margin: 0; }
@media (max-width: 600px) { .split.lk-book { flex-direction: column; align-items: flex-start; } .lk-book .split-media { flex-basis: auto; } }

.further-reading { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.app-mine img[src$="mine-5.jpg"] { object-position: center 55%; }

/* Fire page: every photo fills the height of the text beside it */
@media (min-width: 861px) {
  .app-fire .split { align-items: stretch; }
  .app-fire .split .split-media figure { position: relative; flex: 1; min-height: 280px; margin: 0; }
  .app-fire .split .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
}

/* Responsive YouTube embed */
.video-embed { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cc-video { margin: 0; }
.cc-video video { display: block; width: 100%; height: auto; background: #000; }
@media (min-width: 861px) {
  .split.cc-raro { align-items: stretch; }
  .cc-raro .split-media figure { position: relative; flex: 1; min-height: 240px; }
  .cc-raro .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 25% 80%; }
}
.setup-guide { margin: 16px 0 0; max-width: 727px; }
.setup-guide img { display: block; width: auto; max-width: 100%; height: auto; }
.setup-guide + .setup-guide { margin-top: 32px; }
.setup-video { margin: 16px 0 0; max-width: 900px; }
.setup-video video { display: block; width: 100%; height: auto; background: #000; }

/* PALM setup: tighter gap between page intro and first section */
.palm .page-hero { padding-bottom: 8px; }
.palm .page-hero .lead { margin-bottom: 0; }
.palm .page-hero + .block { padding-top: 24px; }
.palm .page-hero h1 { margin-bottom: .25em; }
.palm .page-hero .lead { margin-top: 0; }
.palm .block h2 { font-size: 1.45rem; font-weight: 400; margin-bottom: .5em; }
.block.divided { border-top: 1px solid #ddd; }

/* PALM setup: centre images and video */
.palm .block figure { margin-left: auto; margin-right: auto; text-align: center; }
.palm .block figure img, .palm .block figure video { margin-left: auto; margin-right: auto; }
.palm .steps figure { width: fit-content; max-width: 100%; }
.palm .gallery { display: flex; flex-wrap: wrap; justify-content: center; }
.palm .steps { max-width: none; }

/* Mobile refinements */
@media (max-width: 860px) {
  .tile-nav { font-size: 1.1rem; gap: 10px 28px; margin-top: 28px; }
}
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .reveal-btn { font-size: .95rem; padding: 11px 18px; }
}
