/* ===========================================================
   J's Independent Support — dark-premium design system
   Geelong VIC · NDIS plan & self-managed disability support
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:          #0A0E13;
  --bg-elev:     #10161E;
  --surface:     #151D27;
  --surface-2:   #1B2530;
  --border:      #222E3A;
  --border-soft: #1A2531;

  --accent:       #23D5A8;
  --accent-hover: #34E9BC;
  --accent-deep:  #0E3F33;   /* tinted fill behind icons */
  --on-accent:    #000000;   /* black text on teal — Jake wants max readability */
  --glow-blue:    #3B82F6;

  /* text — tuned lighter than the mockups for AA on dark */
  --text:        #F3F7FA;
  --text-soft:   #B2BECA;   /* body — ~9:1 on --bg */
  --text-muted:  #8A97A4;   /* captions/fine print — ~5:1 on --bg */

  --font-head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 40px -24px rgba(0,0,0,.8);
  --glow-teal: 0 0 0 1px rgba(35,213,168,.35), 0 14px 40px -10px rgba(35,213,168,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* skip link */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 10px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.band { padding: clamp(72px, 9vw, 128px) 0; }
.band-elev { background: var(--bg-elev); }

/* signature soft radial glows */
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(70px); opacity: .5;
}
.glow-t { background: radial-gradient(circle, rgba(35,213,168,.55), transparent 70%); }
.glow-b { background: radial-gradient(circle, rgba(59,130,246,.40), transparent 70%); }
.band > .wrap, .band > .wrap-wide { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--text-soft); line-height: 1.55; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; font-size: .82rem;
  color: var(--accent); margin: 0 0 18px;
}
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.text-teal { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 30px -8px rgba(35,213,168,.55);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(35,213,168,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(35,213,168,.06); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,19,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(10,14,19,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--text); white-space: nowrap; }
.brand-text span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 15px; border-radius: 10px; font-size: .98rem; white-space: nowrap;
  color: var(--text-soft); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-tel { color: var(--text-soft); font-weight: 600; font-size: .95rem; display: none; }
.nav-tel:hover { color: var(--accent); }
.burger {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; color: var(--text);
}
.burger svg { width: 22px; height: 22px; display: block; }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 82vw);
    z-index: 120; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-elev); border-left: 1px solid var(--border);
    padding: 88px 22px 28px; transform: translateX(100%); transition: transform .3s var(--ease), visibility .3s;
    box-shadow: -30px 0 60px -20px rgba(0,0,0,.7);
    visibility: hidden; pointer-events: none; overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .burger { display: inline-flex; position: relative; z-index: 130; }
  .nav-cta .btn-primary { display: none; }
  /* drop the header's backdrop-filter on mobile: it makes the header a containing block
     for the fixed drawer, which Firefox then pins to the header's page-top position
     (menu invisible until you scroll up). No blur ⇒ drawer is truly viewport-fixed. */
  .header { background: rgba(10,14,19,.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.scrolled { background: rgba(10,14,19,.97); }
}

/* mobile-nav scrim overlay — dims the page behind the drawer.
   NO backdrop-filter: on Firefox/mobile a blur on a full-screen opacity:0 overlay
   leaves a "ghost" blur stuck on the page after close. A plain dark dim is reliable. */
.nav-scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(5,8,11,.62);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), visibility .3s;
}
.nav-scrim.open { opacity: 1; visibility: visible; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 30ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4/5; border-radius: var(--radius-lg); }
.hero-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(35,213,168,.25); }
@media (max-width: 860px) { .hero-photo { aspect-ratio: 16/11; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .ph { aspect-ratio: 16/11; }
}

/* hero — photo stage with centred overlay (mockup composition) */
.hero-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: clamp(440px, 56vw, 620px); display: grid;
  box-shadow: 0 40px 90px -45px rgba(0,0,0,.9), 0 0 90px -30px rgba(35,213,168,.16);
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  opacity: 0; transform: scale(1.06); transform-origin: 50% 38%;
  transition: opacity 1.5s ease, transform 8s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(78% 58% at 50% 50%, rgba(8,11,15,.62) 0%, rgba(8,11,15,.18) 54%, rgba(8,11,15,0) 80%),
    linear-gradient(180deg, rgba(8,11,15,.32) 0%, rgba(8,11,15,0) 30%, rgba(8,11,15,.58) 100%);
}
.hero-overlay {
  position: relative; z-index: 2; align-self: center; justify-self: center; text-align: center;
  max-width: 760px; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 56px);
  pointer-events: none;
}
.hero-overlay a, .hero-overlay button { pointer-events: auto; }
.hero-overlay h1 { margin: 0 0 18px; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-overlay .lead { max-width: 46ch; margin: 0 auto 30px; color: var(--text); text-shadow: 0 1px 16px rgba(0,0,0,.5); }
.hero-overlay .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* hero entrance — per-word directional, then lead + CTA rise (visible state is the base) */
.hero-h1 .hero-word { display: inline-block; will-change: transform, opacity; }
@media (prefers-reduced-motion: no-preference) {
  .hero-h1 .hero-word { opacity: 0; }
  .hero-h1 .hw-1 { animation: heroFromLeft   1.5s cubic-bezier(.16,1,.3,1) .25s both; }
  .hero-h1 .hw-2 { animation: heroFromTop    1.5s cubic-bezier(.16,1,.3,1) .5s both; }
  .hero-h1 .hw-3 { animation: heroFromRight  1.5s cubic-bezier(.16,1,.3,1) .75s both; }
  .hero-h1 .hw-4 { animation: heroFromBottom 1.5s cubic-bezier(.16,1,.3,1) 1s both; }
  .hero-overlay .hero-rise { opacity: 0; animation: heroRise 1.1s cubic-bezier(.16,1,.3,1) both; }
  .hero-overlay .lead.hero-rise { animation-delay: 1.55s; }
  .hero-overlay .hero-cta.hero-rise { animation-delay: 1.75s; }
}
@keyframes heroFromLeft   { from { opacity: 0; transform: translateX(-38px); } to { opacity: 1; transform: none; } }
@keyframes heroFromRight  { from { opacity: 0; transform: translateX(38px);  } to { opacity: 1; transform: none; } }
@keyframes heroFromTop    { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes heroFromBottom { from { opacity: 0; transform: translateY(34px);  } to { opacity: 1; transform: none; } }
@keyframes heroRise       { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: none; } }

/* Jake's team band — opens the Meet the Team section */
.team-band { margin: 0 0 clamp(32px, 4vw, 48px); }
.team-band img {
  width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: 0 30px 70px -42px rgba(0,0,0,.85), 0 0 70px -32px rgba(35,213,168,.16);
}
.footer-band { margin: clamp(24px, 3vw, 38px) 0; }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.trust-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; position: relative; overflow: hidden;
}
.trust-item::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.trust-item b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--text); }
.trust-item span { color: var(--text-soft); font-size: .98rem; }
@media (max-width: 620px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Photo placeholders ---------- */
.ph {
  position: relative; width: 100%; border-radius: var(--radius);
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(135deg, rgba(35,213,168,.05) 0 14px, transparent 14px 28px);
  border: 1px solid var(--border);
  display: grid; place-content: center; gap: 8px; padding: 22px; text-align: center;
  color: var(--text-muted); overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(35,213,168,.10), transparent 60%);
}
.ph svg { width: 34px; height: 34px; opacity: .55; margin-inline: auto; position: relative; }
.ph-label { position: relative; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem; letter-spacing: .03em; line-height: 1.5; max-width: 30ch; }
.ph-tag { position: relative; font-family: ui-monospace, monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); opacity: .8; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card.top-accent::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  opacity: .7; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(35,213,168,.4); box-shadow: 0 26px 50px -28px rgba(35,213,168,.4); }
.card.top-accent:hover::before { opacity: 1; }
.icon-tile {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-content: center;
  background: linear-gradient(150deg, rgba(35,213,168,.18), rgba(35,213,168,.04));
  border: 1px solid rgba(35,213,168,.25); color: var(--accent); margin-bottom: 20px;
}
.icon-tile svg { width: 28px; height: 28px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-media .ph { aspect-ratio: 4/5; }
.about-photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 70px -40px rgba(0,0,0,.85), 0 0 70px -34px rgba(35,213,168,.2); }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 16%; display: block; }
.about-photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10,14,19,.5)); }
.about-quote { font-family: var(--font-head); font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--accent); font-weight: 600; margin-top: 26px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1040px) { .cols-4, .cols-5 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; } }

/* team */
.team-card { text-align: left; }
.team-card .ph { aspect-ratio: 1; border-radius: 16px; margin-bottom: 16px; }
.team-card .team-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 28%;
  border-radius: 16px; margin-bottom: 16px; border: 1px solid var(--border); display: block;
}
.team-note { margin: 22px 0 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .72rem; letter-spacing: .03em; line-height: 1.5; color: var(--text-muted); }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--accent); font-size: .88rem; font-weight: 600; letter-spacing: .02em; }
.team-card p { color: var(--text-soft); font-size: .95rem; margin-top: 8px; }
.pending {
  display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, monospace;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: #F0C674; background: rgba(240,198,116,.1); border: 1px solid rgba(240,198,116,.3);
  padding: 5px 10px; border-radius: 999px;
}
.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F0C674; }

/* why-different value points */
.why-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
.value-list { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 860px) { .value-list { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .3s; }
.value-item:hover { border-color: rgba(35,213,168,.35); }
.value-item .icon-tile { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
.value-item h3 { font-size: 1.12rem; margin-bottom: 4px; }
.value-item p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* (SES card retired — supporter credit now lives in the footer .supporters strip) */

/* ---------- Support in action ---------- */
.beforeafter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .beforeafter { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.ba-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.ba-imgs .ph { border-radius: 0; border: 0; aspect-ratio: 4/3; }
.ba-imgs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.ba-imgs .ba-cell { position: relative; }
.ba-imgs .ba-cell .badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: ui-monospace, monospace; font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; background: rgba(10,14,19,.82); color: var(--text-soft); }
.ba-imgs .ba-cell .badge.aft { color: var(--accent); }
.ba-single img { width: 100%; display: block; }
.ba-imgs .ph .badge { position: absolute; top: 10px; left: 10px; font-family: ui-monospace, monospace; font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; background: rgba(10,14,19,.8); }
.ba-card .ba-body { padding: 20px 22px; }
.ba-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ba-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* outing strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 26vw, 280px); gap: 18px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.strip .ph { aspect-ratio: 1; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); display: block; scroll-snap-align: start; transition: border-color .3s, transform .3s; cursor: pointer; }
.strip img { cursor: default; }
.strip img:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ---------- Carousel (Support in action) ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.carousel-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; display: grid; grid-template-columns: 1.55fr 1fr; background: var(--surface); min-height: clamp(340px, 40vw, 480px); }
.slide-media { position: relative; background: var(--bg-elev); overflow: hidden; }
.slide-media.ba-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.slide-media .ba-cell { position: relative; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-media .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: ui-monospace, monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 10px; border-radius: 8px; background: rgba(8,11,15,.82); border: 1px solid var(--border); color: var(--text-soft);
}
.slide-media .badge.aft { color: var(--accent); border-color: rgba(35,213,168,.4); }
.slide-cap { padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.slide-cap h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 8px 0 12px; }
.slide-cap p { color: var(--text-soft); margin: 0 0 20px; }
.slide-tag { align-self: flex-start; font-family: ui-monospace, monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(35,213,168,.35); border-radius: 99px; padding: 6px 13px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(10,14,19,.78); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .25s, color .25s;
}
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel-arrow svg { width: 24px; height: 24px; }
.carousel-arrow.prev { left: 14px; } .carousel-arrow.next { right: 14px; }
.carousel-dots { display: flex; justify-content: center; gap: 26px; margin-top: 22px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--border); transition: background .25s, width .25s; }
/* the dots stay 9px visually, but carry a 35px touch target */
.carousel-dot { position: relative; }
.carousel-dot::after { content: ""; position: absolute; inset: -13px; }
.carousel-dot.is-active { background: var(--accent); width: 26px; border-radius: 99px; }
.work-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-top: clamp(32px, 4vw, 48px); }
.work-cta p { max-width: 56ch; margin: 0; }
@media (max-width: 760px) {
  .carousel-slide, .carousel-slide.media-wide { grid-template-columns: 1fr; min-height: 0; }
  .slide-media { min-height: 230px; aspect-ratio: 16/10; }
  .slide-media.ba-two { aspect-ratio: 16/9; }
  .slide-media.ba-stage { aspect-ratio: 16/10; }
  /* stacked layout: arrows sit over the photo, not across the caption text.
     115px = half the media block's 230px min-height. */
  .carousel-arrow { width: 42px; height: 42px; top: 115px; transform: none; }
}

/* before → after full-image cross-fade stage */
.slide-media.ba-stage { position: relative; }
.ba-stage .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-stage .ba-after { opacity: 0; transition: opacity 1.1s ease; }
.carousel-slide.show-after .ba-stage .ba-after { opacity: 1; }
/* fit-contain: show the whole photo (zoom out) instead of cropping */
.slide-media.ba-stage.fit-contain { background: var(--bg-elev); }
.fit-contain .ba-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: blur(30px) brightness(.42) saturate(.85); transform: scale(1.18); }
.fit-contain .ba-img { object-fit: contain; padding: clamp(10px, 1.6vw, 22px); z-index: 1; }
/* media-wide: give the photo more room, push the caption aside.
   Scoped above 760px: unscoped, this out-ranked the single-column mobile rule above
   (same specificity, later in the file) and squashed the caption into a narrow column. */
@media (min-width: 761px) {
  .carousel-slide.media-wide { grid-template-columns: 1.85fr 1fr; }
}
.ba-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: ui-monospace, monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 10px; border-radius: 8px; background: rgba(8,11,15,.82); border: 1px solid var(--border); color: var(--text-soft);
  transition: opacity .55s ease;
}
.ba-badge.b-after { color: var(--accent); border-color: rgba(35,213,168,.4); opacity: 0; }
.carousel-slide.show-after .ba-badge.b-before { opacity: 0; }
.carousel-slide.show-after .ba-badge.b-after { opacity: 1; }

/* reduced motion: show before & after side-by-side instead of cross-fading */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .slide-media.ba-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
  .ba-stage .ba-img { position: static; opacity: 1; }
  .ba-badge.b-after { opacity: 1; left: auto; right: 12px; }
}

/* ---------- Stories / Testimonials ---------- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.story .ph { aspect-ratio: 4/3; }
.story blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4; color: var(--text); }
.story cite { display: block; margin-top: 16px; font-style: normal; color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.story-solo { grid-template-columns: 1fr; margin-bottom: 24px; }
.story-solo blockquote { max-width: none; }

.tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 920px) { .tcards { grid-template-columns: 1fr; } }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.tcard:hover { transform: translateY(-3px); border-color: rgba(35,213,168,.3); }
.tcard::before { content: "\201C"; position: absolute; top: 14px; right: 24px; font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--accent); opacity: .18; pointer-events: none; }
.tcard .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; }
.tcard blockquote { position: relative; margin: 0 0 22px; color: var(--text-soft); font-size: 1.02rem; line-height: 1.6; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.tcard .who .av-initials { display: grid; place-content: center; background: rgba(35,213,168,.1); border-color: rgba(35,213,168,.3); color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .01em; }
.tcard .who b { display: block; color: var(--text); font-size: .95rem; }
.tcard .who span { color: var(--text-muted); font-size: .85rem; }

/* featured testimonial — the anchor card, full-width above the supporting pair */
.tcard-featured {
  grid-column: 1 / -1;
  padding: clamp(34px, 4.5vw, 54px) clamp(30px, 4.5vw, 56px);
  background: linear-gradient(150deg, rgba(35,213,168,.09), rgba(35,213,168,.015) 60%), var(--surface);
  border-color: rgba(35,213,168,.25);
}
.tcard-featured:hover { border-color: rgba(35,213,168,.45); }
.tcard-featured::before { font-size: clamp(4.4rem, 7vw, 6.2rem); top: 18px; right: 34px; opacity: .14; }
.tcard-featured blockquote {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.45; letter-spacing: -0.01em;
  color: var(--text); max-width: 36em; margin-bottom: 28px;
}
.tcard-featured .who .av { width: 52px; height: 52px; }
.tcard-featured .who .av-initials { font-size: .95rem; }
.tcard-featured .who b { font-size: 1.05rem; }
.tcard-featured .who span { font-size: .9rem; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); }
.map-panel {
  position: relative; min-width: 0; border: 1px solid rgba(35,213,168,.4); border-radius: var(--radius-lg);
  aspect-ratio: 21/8; min-height: 280px; max-width: 100%; overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(35,213,168,.12), transparent 45%),
    linear-gradient(180deg, #0c1820, #0a1016);
  box-shadow: 0 0 60px -20px rgba(35,213,168,.5);
}
.map-grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 52%, #000 60%, transparent 95%);
          mask-image: radial-gradient(circle at 50% 52%, #000 60%, transparent 95%);
}
/* geo layer — mirrors the map image's object-fit:cover box so labels stay glued to geography at every viewport */
.map-geo { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 100%; aspect-ratio: 1680/766; z-index: 2; pointer-events: none; }
@media (max-width: 658px) { .map-geo { width: auto; height: 100%; } }
.map-radius {
  position: absolute; left: 53%; top: 46%; width: 34%; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%; border: 2px solid var(--accent);
  background: radial-gradient(circle, rgba(35,213,168,.28), rgba(35,213,168,.06) 70%);
  box-shadow: 0 0 40px rgba(35,213,168,.4);
}
.map-pulse { position: absolute; left: 53.5%; top: 41%; width: 14px; height: 14px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(35,213,168,.6); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35,213,168,.5); } 70% { box-shadow: 0 0 0 34px rgba(35,213,168,0); } 100% { box-shadow: 0 0 0 0 rgba(35,213,168,0); } }
/* Badge chip. It used to sit mid-map beside the pulse, where ten of the twenty-four
   suburb pills swept straight through it at one viewport or another (and a measured
   sweep of every position in the panel found no mid-map spot that is ever free). It is
   now anchored to the panel corner: same chip, same colours, out of the label field. */
.map-pin { position: absolute; z-index: 4; left: 14px; bottom: 12px; color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: .84rem; background: rgba(10,14,19,.55); padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(35,213,168,.35); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* mobile: aspect-ratio + min-height fight and blow out the width — use a fixed height instead */
@media (max-width: 720px) {
  .map-panel { aspect-ratio: auto; min-height: 0; height: clamp(230px, 62vw, 300px); }
}
.map-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(72% 92% at 50% 52%, rgba(10,14,19,.04), rgba(10,14,19,.52) 100%); }
.map-radius, .map-pulse { z-index: 2; }
/* suburb bubbles — rise, swell and pop like bubbles off a boil, staggered via --d */
.ms { position: absolute; z-index: 3; left: var(--x); top: var(--y); transform: translate(-50%,-50%); opacity: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(10px, 1.15vw, 13px); color: #D9F6EC; background: rgba(10,14,19,.68); border: 1px solid rgba(35,213,168,.34); border-radius: 999px; padding: 3px 10px; white-space: nowrap; animation: msBubble 20s var(--ease) var(--d) infinite; will-change: opacity, transform; }
/* 2.2s on screen out of a 20s cycle. Combined with the solved --d ordering in the HTML
   this keeps roughly two or three pills up at once and guarantees that no two pills
   whose boxes can intersect are ever visible together. */
@keyframes msBubble {
  0%, 11%, 100% { opacity: 0; transform: translate(-50%,-40%) scale(.86); }
  2.5% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  8% { opacity: 1; transform: translate(-50%,-58%) scale(1.03); }
  10.5% { opacity: 0; transform: translate(-50%,-66%) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .ms { animation: none; opacity: .85; transform: translate(-50%,-50%); } .map-pulse { animation: none; } }
/* Small screens. Two things break here:
   1. the geo layer is cropped to the panel's height, so it is far wider than the panel
      and any pill past ~70% on the x axis is sliced off by .map-panel's overflow:hidden;
   2. the pills keep their minimum 10px type while the map shrinks, so the same 24 labels
      (up to 7 on screen at once) collide with each other and with the "Geelong VIC" pin.
   The map is decorative (aria-hidden) and the full suburb list is in the footer, so we
   drop the outermost pills, shorten each pill's on-screen window so fewer are up at the
   same time, tighten the travel, and move the pin badge out of the central cluster. */
@media (max-width: 480px) {
  .ms-edge { display: none; }
  .ms { padding: 2px 7px; }
  .map-pin { left: 10px; bottom: 10px; font-size: .72rem; padding: 3px 9px; }
}
.area-note { text-align: center; max-width: 56ch; margin-inline: auto; }

/* ---------- Coordinator block ---------- */
.coord { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: linear-gradient(150deg, var(--surface), var(--bg-elev)); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; }
.coord::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.18), transparent 70%); }
.coord-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coord-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.coord-checks svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) { .coord { grid-template-columns: minmax(0, 1fr); } .coord .btn { white-space: normal; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: rgba(35,213,168,.55); box-shadow: 0 0 0 1px rgba(35,213,168,.25); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.25rem); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .ico { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent); border-radius: 2px; }
.faq-q .ico::before { width: 18px; height: 2.5px; }
.faq-q .ico::after { width: 2.5px; height: 18px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 24px; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-info h2 { margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; min-width: 0; }
.contact-list .ci { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; flex-shrink: 0; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list a, .contact-list span { color: var(--text); font-size: 1.05rem; min-width: 0; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.socials { display: flex; gap: 14px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-content: center; color: var(--text-soft); transition: all .25s var(--ease); }
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

.form-card { background: linear-gradient(150deg, var(--surface), var(--bg-elev)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); position: relative; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--accent), var(--glow-blue)); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; color: var(--text-soft); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35,213,168,.22); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A97A4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FF6B6B; box-shadow: 0 0 0 3px rgba(255,107,107,.18); }
.field .err { display: none; color: #FF8585; font-size: .82rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-card .btn-primary { width: 100%; justify-content: center; font-size: 1.08rem; padding: 17px; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-status { display: none; padding: 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.form-status.ok { display: block; background: rgba(35,213,168,.12); border: 1px solid rgba(35,213,168,.4); color: var(--accent); }
.form-status.bad { display: block; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: #FF8585; }

/* fun optional survey */
.survey-toggle { margin-top: 6px; font-size: .9rem; color: var(--accent); background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.survey { display: none; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.survey.show { display: grid; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding: clamp(56px, 6vw, 80px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
/* the footer column headings are h3 (they sit under the page's h2s — an h4 here skipped
   a level); h4 is kept in the selector so the rule survives either tag */
.footer h3, .footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-soft); font-size: .96rem; }
.footer a:hover { color: var(--accent); }
.footer a.btn-primary, .footer a.btn-primary:hover { color: var(--on-accent); }
.footer .brand b { color: var(--text); }
.footer .blurb { color: var(--text-soft); font-size: .95rem; margin: 16px 0; max-width: 32ch; }
/* supporters strip — home for every org Jake backs; add a .sup-pill per new group */
.supporters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; border-top: 1px solid var(--border); padding-top: 28px; margin-bottom: 26px; }
.supporters .sup-logo { width: 46px; height: 46px; object-fit: contain; }
.supporters .ses-card { width: min(340px, 100%); height: auto; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.sup-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.supporters p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.sup-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sup-pill { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: .9rem; background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--radius-pill); }
.sup-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF7A1A; }
.footer-suburbs { color: var(--text-muted); font-size: .85rem; line-height: 1.8; border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--text-muted); font-size: .85rem; border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* legal pages — let long emails/links wrap instead of overflowing on mobile */
.legal-contact li { min-width: 0; }
.legal-contact a { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(8px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* directional / scale variants */
.reveal.r-left  { transform: translateX(-54px); filter: blur(6px); }
.reveal.r-right { transform: translateX(54px); filter: blur(6px); }
.reveal.r-zoom  { transform: scale(.9); }
.reveal.r-rise  { transform: translateY(64px); }
.reveal.r-left.in, .reveal.r-right.in, .reveal.r-zoom.in, .reveal.r-rise.in { transform: none; filter: none; }

/* clip-path wipe (reveals upward, no fade) */
.reveal.r-clip { opacity: 1; filter: none; transform: none; clip-path: inset(0 0 100% 0);
  transition: clip-path .95s cubic-bezier(.16,1,.3,1); }
.reveal.r-clip.in { clip-path: inset(0 0 0 0); }

/* staggered-children container — container itself stays put */
.reveal.r-stagger { opacity: 1; transform: none; filter: none; }
.reveal.r-stagger > * { opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1), filter .6s cubic-bezier(.16,1,.3,1); }
.reveal.r-stagger.in > * { opacity: 1; transform: none; filter: none; }
/* stagger from the left (each child slides in horizontally, one by one, slower) */
.reveal.r-stagger-left > * { transform: translateX(-44px); transition-duration: .95s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.r-left, .reveal.r-right, .reveal.r-zoom, .reveal.r-rise, .reveal.r-stagger > * { opacity: 1; transform: none; filter: none; }
  .reveal.r-clip { clip-path: none; }
}

/* ---------- Gallery page ---------- */
.gallery-hero { padding: clamp(120px, 14vw, 180px) 0 clamp(40px, 5vw, 64px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); border-radius: 99px; padding: 9px 18px; font-size: .92rem; font-family: var(--font-head); font-weight: 500; transition: all .25s var(--ease); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter:hover { color: var(--text); border-color: var(--accent); }

/* segmented category selector */
.gallery-selector { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 5px; margin-bottom: 20px; }
.seg { border: 0; background: transparent; color: var(--text-soft); font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 9px 22px; border-radius: 99px; cursor: pointer; transition: color .25s, background .25s; }
.seg:hover { color: var(--text); }

/* pause/play for auto-moving content (WCAG 2.2.2) */
.media-pause {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 99px;
  color: var(--text-soft); font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: 10px 20px; cursor: pointer; transition: color .25s, border-color .25s;
  vertical-align: top;
}
.media-pause:hover { color: var(--text); border-color: rgba(35,213,168,.35); }
.media-pause .mp-icon { width: 11px; height: 12px; flex-shrink: 0; background: currentColor;
  clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0, 62% 0, 100% 0, 100% 100%, 62% 100%, 62% 0); }
.media-pause[aria-pressed="true"] { color: var(--accent); border-color: rgba(35,213,168,.45); }
.media-pause[aria-pressed="true"] .mp-icon { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.carousel .media-pause { display: flex; width: max-content; margin: 16px auto 0; }
@media (prefers-reduced-motion: reduce) { .media-pause { display: none; } }
.seg[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* secondary selector — specific outing / project */
.sub-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(20px, 3vw, 30px); }
.sub-selector[hidden] { display: none; }
.subseg { background: transparent; border: 1px solid var(--border); color: var(--text-soft); border-radius: 99px; padding: 7px 16px; font-size: .86rem; font-weight: 500; font-family: var(--font-head); cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.subseg:hover { color: var(--text); border-color: var(--accent); }
.subseg[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.gallery-selector + .sub-selector { margin-top: 0; }

/* horizontal scrolling mosaic */
.h-gallery-wrap { position: relative; }
.h-gallery {
  display: grid; grid-auto-flow: column dense;
  grid-template-rows: repeat(2, clamp(150px, 23vw, 300px));
  grid-auto-columns: clamp(150px, 23vw, 300px);
  gap: 16px; overflow-x: auto; overflow-y: hidden;
  padding: 4px var(--gutter) 18px;
  scroll-snap-type: x proximity; overflow-anchor: none;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.h-gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.h-gallery::-webkit-scrollbar { height: 8px; }
.h-gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.h-gallery .tile { margin: 0; width: 100%; height: 100%; scroll-snap-align: start; }
.h-gallery .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.t-tall { grid-row: span 2; }
.tile.t-wide { grid-column: span 2; }
.tile.t-big  { grid-row: span 2; grid-column: span 2; }

/* paired before/after groups (Workbench, Safety step) — equal-size, centred tiles */
.h-gallery.hg-uniform {
  display: flex; justify-content: safe center; align-items: center;
  grid-template-rows: none;
}
.h-gallery.hg-uniform .tile {
  flex: 0 0 auto;
  width: clamp(150px, 40vw, 440px);
  height: clamp(170px, 30vw, 330px);
}

.hg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(10,14,19,.86); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .25s, color .25s, opacity .25s;
}
.hg-arrow:hover { border-color: var(--accent); color: var(--accent); }
.hg-arrow svg { width: 24px; height: 24px; }
.hg-arrow.prev { left: 10px; } .hg-arrow.next { right: 10px; }
.hg-arrow.is-off { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .hg-arrow { display: none; } }

/* ALL view — seamless infinite marquee (two rows) */
.marquee { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee[hidden] { display: none; }
.marquee-row { overflow: hidden; height: clamp(168px, 25vw, 310px); }
/* height:100% + stretch so .m-tile's height:100% has a definite box to resolve against:
   without it the track is auto-height, every tile falls back to its image's intrinsic
   size (ragged heights, clipped by the row) and un-loaded images collapse to ~4px. */
.marquee-track { display: flex; gap: 16px; width: max-content; height: 100%; align-items: stretch; will-change: transform; animation: marq 70s linear infinite; }
.marquee-row.rev .marquee-track { animation-duration: 88s; animation-direction: reverse; }
/* stop the strip while it is hovered OR while a tile inside it has keyboard focus,
   so a keyboard user is never chasing a moving target */
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.m-tile { width: clamp(230px, 30vw, 400px); height: 100%; flex: 0 0 auto; margin: 0; }
.m-tile.w-lg { width: clamp(320px, 40vw, 530px); }
.m-tile.w-sm { width: clamp(190px, 23vw, 290px); }
/* aspect-ratio is inert while height:100% resolves (both axes definite); it only kicks
   in as a space reservation if the height chain ever fails, so tiles never collapse. */
.m-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; height: auto; flex-wrap: wrap; }
  .marquee-row { overflow-x: auto; height: auto; }
  .m-tile img { aspect-ratio: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

.masonry { columns: 3 280px; column-gap: 18px; }
.masonry .tile { break-inside: avoid; margin-bottom: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: border-color .3s, transform .3s; background: var(--surface); }
.tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.tile.feature { border-color: rgba(35,213,168,.5); box-shadow: 0 0 26px -6px rgba(35,213,168,.38); }
.tile.feature:hover { box-shadow: 0 0 34px -4px rgba(35,213,168,.5); }
.tile .ph { border: 0; border-radius: 0; }
.tile img { width: 100%; display: block; border-radius: inherit; }
.tile.is-hidden { display: none; }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; background: linear-gradient(transparent, rgba(8,11,15,.92)); color: var(--text); font-size: .9rem; opacity: 0; transition: opacity .3s; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,8,11,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: min(900px, 100%); width: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox .ph { aspect-ratio: 4/3; width: 100%; }
.lightbox img { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); display: block; margin-inline: auto; }
.lightbox-cap { color: var(--text-soft); text-align: center; margin-top: 16px; }
.lb-btn { position: absolute; background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center; top: 50%; transform: translateY(-50%); }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close { top: 24px; right: 24px; transform: none; }
.lb-btn svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lb-btn { width: 46px; height: 46px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lb-close { top: 14px; right: 14px; bottom: auto; }
  .lightbox img { max-height: 64vh; }
}

/* ---------- Intro splash (poetic fade, once per session) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(80% 70% at 50% 42%, #0e141c 0%, #070a0e 60%, #05070a 100%);
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
html.intro-active .intro { display: flex; }
html.intro-active, html.intro-active body { overflow: hidden; }
.intro::before {
  content: ""; position: absolute; width: 760px; height: 760px; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(35,213,168,.16), rgba(59,130,246,.07) 42%, transparent 66%);
  opacity: 0; transition: opacity 1.1s var(--ease); pointer-events: none;
}
.intro.intro-play::before { opacity: 1; }
.intro.intro-out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner { position: relative; padding: 0 24px; max-width: min(760px, 92vw); }
.intro-p {
  margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.18;
  font-size: clamp(28px, 5.4vw, 56px); letter-spacing: -.01em; color: var(--text);
}
.intro-l { display: block; opacity: 0; transform: translateY(16px); filter: blur(6px); }
.intro-l .hl { color: var(--accent); }
.intro.intro-play .intro-l1 { animation: introSoft 1.25s var(--ease) .25s forwards; }
.intro.intro-play .intro-l2 { animation: introSoft 1.25s var(--ease) 1.25s forwards; }
.intro-motto {
  display: block; margin-top: 34px; font-family: var(--font-head); font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .32em; font-size: 13px; opacity: 0;
}
.intro.intro-play .intro-motto { animation: introFade 1s var(--ease) 2.35s forwards; }
@keyframes introSoft { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes introFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  html.intro-active, html.intro-active body { overflow: visible; }
}
