/* ==========================================================================
   Cultural and Linguistic Solutions Australia
   Palette: harbour ink, eucalypt, golden wattle, gum-leaf mist, paper
   Type: Young Serif (display) + Atkinson Hyperlegible Next (body, chosen for
   readers with low vision and readers of English as an additional language)
   ========================================================================== */

:root {
  color-scheme: light;

  --ink: #14304A;
  --ink-2: #1F4262;
  --gum: #2F6B5A;
  --gum-deep: #24564A;
  --gum-light: #9CCBB5;
  --wattle: #F2B630;
  --wattle-deep: #D99A12;
  --mist: #E3EEE8;
  --mist-2: #F0F6F2;
  --paper: #FBFCFA;
  --white: #FFFFFF;

  --text: #1A2B3B;
  --muted: #4B5F70;
  --line: rgba(20, 48, 74, 0.14);
  --line-strong: rgba(20, 48, 74, 0.28);

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: system-ui, -apple-system, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", sans-serif;

  --scale: 1;
  --step--1: calc(0.889rem * var(--scale));
  --step-0: calc(1.0625rem * var(--scale));
  --step-1: calc(1.25rem * var(--scale));
  --step-2: calc(clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem) * var(--scale));
  --step-3: calc(clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem) * var(--scale));
  --step-4: calc(clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem) * var(--scale));

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gum-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--wattle);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted { color: var(--muted); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--wattle); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 700 var(--step-0)/1.2 var(--sans);
  padding: 0.8em 1.3em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 0.95em 1.6em; }
.btn--block { width: 100%; }
.btn--wattle { background: var(--wattle); color: var(--ink); }
.btn--wattle:hover { background: #F6C552; }
.btn--gum { background: var(--gum); color: var(--white); }
.btn--gum:hover { background: var(--gum-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }

.textlink {
  display: inline-block;
  font-weight: 700;
  color: var(--gum-deep);
  text-decoration: underline;
  text-decoration-color: var(--wattle);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}
.textlink:hover { text-decoration-color: var(--gum); }
.textlink--light { color: var(--white); }
.textlink--light:hover { text-decoration-color: var(--white); }

/* ---------- Help bar ---------- */
.helpbar {
  background: var(--ink);
  color: #DCE6EE;
  font-size: var(--step--1);
}
.helpbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap;
  padding-block: 8px;
}
.helpbar__tis { margin: 0; display: flex; align-items: center; gap: 8px; }
.helpbar__tis svg { color: var(--wattle); flex: none; }
.helpbar a { color: var(--white); }
.helpbar__tools { display: flex; align-items: center; gap: 18px; }

.textsize { display: flex; align-items: center; gap: 2px; }
.textsize__label { margin-right: 6px; }
.textsize button {
  font-family: var(--sans); font-weight: 700;
  background: transparent; color: #DCE6EE;
  border: 1px solid transparent; border-radius: 6px;
  width: 30px; height: 30px; cursor: pointer; line-height: 1;
}
.textsize button:nth-of-type(1) { font-size: 13px; }
.textsize button:nth-of-type(2) { font-size: 16px; }
.textsize button:nth-of-type(3) { font-size: 19px; }
.textsize button[aria-pressed="true"] { border-color: rgba(255,255,255,0.45); color: var(--white); }
.textsize button:hover { color: var(--wattle); }

.langpick { display: flex; align-items: center; gap: 6px; }
.langpick select {
  font: inherit; color: var(--white);
  background: var(--ink-2); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; padding: 4px 8px;
  max-width: 13rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 54px; height: 54px; flex: none; }
.brand__name { display: grid; line-height: 1.05; }
.brand__line { font-family: var(--serif); font-size: 1.08rem; }
.brand__country { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; color: var(--gum); margin-top: 3px; }

.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mainnav a:not(.btn) {
  display: block; padding: 10px 12px;
  color: var(--ink); text-decoration: none; font-weight: 700;
  border-radius: 8px;
}
.mainnav a:not(.btn):hover { background: var(--mist); }
.mainnav__cta { margin-left: 10px; }
.mainnav .btn { padding: 0.65em 1.2em; }

.navtoggle {
  display: none;
  align-items: center; gap: 10px;
  font: 700 1rem var(--sans); color: var(--ink);
  background: transparent; border: 2px solid var(--line-strong);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.navtoggle__bars { position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .navtoggle { display: inline-flex; }
  .mainnav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(20,48,74,0.35);
    display: none;
  }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; }
  .mainnav a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .mainnav__cta { margin: 16px 0 0; }
  .mainnav .btn { width: 100%; padding: 0.9em; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(1200px 500px at 110% -10%, var(--mist) 0%, transparent 60%),
    var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.greeting { margin-bottom: clamp(18px, 3vw, 30px); }
.greeting__word {
  font-family: var(--serif), var(--script);
  font-size: clamp(3.4rem, 2rem + 6.4vw, 7.4rem);
  line-height: 1;
  color: var(--gum);
  margin: 0;
  min-height: 1.18em;
  display: flex; align-items: flex-end;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.greeting__word[dir="rtl"] { justify-content: flex-end; }
.greeting__word.is-script { font-family: var(--script); font-weight: 600; letter-spacing: 0; }
.greeting__word.is-long { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem); }
.greeting__word.is-out { animation: greetOut 0.45s ease forwards; }
.greeting__word.is-in { animation: greetIn 0.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes greetOut { to { opacity: 0; transform: translateY(-0.12em); filter: blur(3px); } }
@keyframes greetIn { from { opacity: 0; transform: translateY(0.18em); filter: blur(3px); } }

.greeting__meta {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.greeting__pause {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); cursor: pointer;
}
.greeting__pause svg { fill: currentColor; }
.greeting__pause .ico-play { display: none; }
.greeting__pause[aria-pressed="true"] .ico-pause { display: none; }
.greeting__pause[aria-pressed="true"] .ico-play { display: block; }

.hero h1 {
  font-size: var(--step-3);
  max-width: 19em;
  margin-bottom: 0.6em;
}
.hero__lede { font-size: var(--step-1); line-height: 1.55; max-width: 34em; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__langnote {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--mist);
  border-left: 4px solid var(--gum);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 34em;
}
.hero__langnote strong { color: var(--ink); }

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, minmax(0, 1fr));
  aspect-ratio: 1 / 1.02;
}
.hero__photo { margin: 0; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main {
  grid-column: 1 / 13; grid-row: 1 / 10;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
}
.hero__photo--main img { object-position: 30% center; }
.hero__photo--side {
  grid-column: 8 / 13; grid-row: 6 / 13;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  border: 8px solid var(--paper);
  z-index: 1;
}
.nextclass {
  grid-column: 1 / 8; grid-row: 10 / 13;
  align-self: end;
  margin: 0 18px 0 6%;
  background: var(--ink);
  color: #E4ECF2;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: var(--step--1);
  z-index: 2;
  box-shadow: 0 24px 40px -24px rgba(20,48,74,0.6);
}
.nextclass p { margin: 0; }
.nextclass__when { display: flex; align-items: center; gap: 8px; color: var(--wattle); font-weight: 700; }
.nextclass__when .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--wattle);
  box-shadow: 0 0 0 4px rgba(242,182,48,0.25);
}
.nextclass__what { font-family: var(--serif); font-size: calc(1.45rem * var(--scale)); color: var(--white); margin: 4px 0 !important; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 520px) {
  .greeting__word { font-size: 3.1rem; }
  .greeting__word.is-long { font-size: 2.1rem; }
  .nextclass { grid-column: 1 / 10; margin: 0; }
  .hero__photo--side { grid-column: 7 / 13; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Wayfinding signpost ---------- */
.signs {
  background: var(--mist);
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.signs__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.signs__intro p { max-width: 28em; }
.signs__phone { margin-top: 26px; }
.signs__phone a { font-family: var(--serif); font-size: var(--step-3); color: var(--ink); text-decoration: none; }
.signs__phone span { color: var(--muted); font-size: var(--step--1); }

.signpost { position: relative; padding: 0 0 48px 30px; }
.signpost__pole {
  position: absolute; left: 30px; top: -24px; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, #9AA6AE, #D5DCE0 45%, #8C979F);
  border-radius: 7px 7px 0 0;
}
.signpost__pole::after {
  content: ""; position: absolute; left: -22px; right: -22px; bottom: 0; height: 10px;
  background: rgba(20,48,74,0.12); border-radius: 50%;
}
.signpost__blades { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }

.blade {
  --face: var(--gum);
  --edge: var(--white);
  --tip: 34px;
  position: relative;
  display: block;
  width: var(--w, 100%);
  margin-left: -16px;
  padding: 7px;
  background: var(--face);
  color: var(--white);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
  filter: drop-shadow(0 10px 10px rgba(20,48,74,0.18));
  transition: transform 0.2s cubic-bezier(.2,.7,.2,1);
}
.blade::before {
  content: ""; position: absolute; inset: 6px;
  background: var(--edge);
  clip-path: polygon(0 0, calc(100% - var(--tip) + 3px) 0, 100% 50%, calc(100% - var(--tip) + 3px) 100%, 0 100%);
}
.blade__face {
  position: relative;
  display: grid; gap: 2px;
  padding: 14px calc(var(--tip) + 18px) 15px 22px;
  background: var(--face);
  clip-path: polygon(0 0, calc(100% - var(--tip) + 4px) 0, 100% 50%, calc(100% - var(--tip) + 4px) 100%, 0 100%);
  margin: 2px 4px 2px 2px;
}
.blade__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.blade__sub { font-size: var(--step--1); opacity: 0.92; font-weight: 700; }
.blade:hover, .blade:focus-visible { transform: translateX(10px); }
.blade:focus-visible { outline: none; }
.blade:focus-visible .blade__face { background: var(--gum-deep); }
.blade--ink { --face: var(--ink); }
.blade--wattle { --face: var(--wattle); --edge: var(--ink); color: var(--ink); }

@media (max-width: 900px) {
  .signs__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .signpost { padding-left: 16px; }
  .signpost__pole { left: 16px; }
  .blade { width: 100% !important; --tip: 24px; }
  .blade__face { padding: 12px calc(var(--tip) + 12px) 13px 16px; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-head--split > div { max-width: 40rem; }
.section-head--split p { margin-bottom: 0; }

/* ---------- Services ---------- */
.services { padding-block: clamp(72px, 10vw, 140px); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service--flip .service__img { order: 2; }
.service__img { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service--flip .service__img { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px; }
.service:not(.service--flip) .service__img { border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg); }
.service h3 { font-size: var(--step-3); }
.service__lede { font-size: var(--step-1); line-height: 1.5; }
.service__note { color: var(--gum-deep); font-weight: 700; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%232F6B5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0 0 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); }

@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service--flip .service__img { order: 0; }
}

/* ---------- First weeks ---------- */
.steps { padding-block: clamp(72px, 10vw, 140px); }
.steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.steps__intro { position: sticky; top: 110px; }
.steps__intro > p { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.steps__photo { margin: 28px 0 0; }
.steps__photo img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.steps__photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.progress { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.progress__bar { flex: 1; height: 10px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--gum); border-radius: 99px; transition: width 0.35s ease; }
.progress p { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }

.checklist { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.checklist li { counter-increment: step; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist label {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  position: relative;
}
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist__box {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s;
}
.checklist__box::before { content: counter(step); }
.checklist input:checked + .checklist__box { background: var(--gum); border-color: var(--gum); }
.checklist input:checked + .checklist__box::before {
  content: "";
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checklist input:focus-visible + .checklist__box { outline: 3px solid var(--wattle); outline-offset: 3px; }
.checklist__text { display: grid; gap: 4px; color: var(--muted); }
.checklist__text strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); color: var(--ink); }
.checklist input:checked ~ .checklist__text strong { text-decoration: line-through; text-decoration-color: var(--gum); text-decoration-thickness: 2px; }
.steps__help { margin-top: 22px; font-weight: 700; }

@media (max-width: 900px) {
  .steps__grid { grid-template-columns: 1fr; }
  .steps__intro { position: static; }
}

/* ---------- Languages ---------- */
.languages { background: var(--mist-2); padding-block: clamp(72px, 10vw, 130px); border-block: 1px solid var(--line); }
.langwall {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 10px 30px;
  max-width: 1000px;
}
.langwall li { display: grid; justify-items: center; text-align: center; }
.langwall__native { font-family: var(--script); font-weight: 600; color: var(--ink); line-height: 1.25; }
.langwall__en { font-size: 0.8rem; color: var(--muted); }
.langwall li:nth-child(5n+1) .langwall__native { font-size: 2rem; color: var(--gum); }
.langwall li:nth-child(5n+2) .langwall__native { font-size: 1.35rem; }
.langwall li:nth-child(5n+3) .langwall__native { font-size: 1.7rem; }
.langwall li:nth-child(5n+4) .langwall__native { font-size: 1.2rem; color: var(--gum-deep); }
.langwall li:nth-child(5n) .langwall__native { font-size: 1.55rem; }

/* ---------- Stories ---------- */
.stories { padding-block: clamp(72px, 10vw, 140px); }
.stories__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.story { margin: 0; }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--radius-lg) var(--radius-lg); margin-bottom: 22px; }
.story blockquote { margin: 0 0 14px; }
.story blockquote p { font-family: var(--serif); font-size: var(--step-1); line-height: 1.4; color: var(--ink); }
.story blockquote p::before { content: "“"; }
.story blockquote p::after { content: "”"; }
.story figcaption { color: var(--muted); font-size: var(--step--1); display: grid; }
.story figcaption strong { color: var(--ink); font-size: var(--step-0); }
.story--feature {
  background: var(--gum);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  color: #DCEBE3;
}
.story--feature img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; object-position: center 25%; }
.story--feature blockquote p { color: var(--white); font-size: var(--step-2); }
.story--feature figcaption { color: #CFE3D9; }
.story--feature figcaption strong { color: var(--white); }

.impact {
  display: flex; flex-wrap: wrap; gap: 16px 56px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.impact p { margin: 0; color: var(--muted); display: grid; }
.impact strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); color: var(--ink); line-height: 1.1; }

@media (max-width: 960px) {
  .stories__grid { grid-template-columns: 1fr 1fr; }
  .story--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
  .story--feature img { margin: 0; grid-row: span 2; }
}
@media (max-width: 620px) {
  .stories__grid { grid-template-columns: 1fr; }
  .story--feature { display: block; }
  .story--feature img { margin-bottom: 22px; }
}

/* ---------- Get involved ---------- */
.involved {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--gum-deep);
  color: #DCEBE3;
}
.involved__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.involved__body { padding: clamp(48px, 7vw, 100px) clamp(24px, 6vw, 88px); }
.involved h2 { color: var(--white); }
.involved__body > p { font-size: var(--step-1); max-width: 30em; }
.ways { display: grid; gap: 0; margin-top: 32px; }
.way { padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.2); }
.way h3 { color: var(--white); margin-bottom: 0.3em; }
.way p { margin-bottom: 0.6em; max-width: 36em; }

@media (max-width: 900px) {
  .involved { grid-template-columns: 1fr; }
  .involved__photo img { max-height: 380px; }
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(72px, 10vw, 140px); scroll-margin-top: 60px; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact__info > p { font-size: var(--step-1); color: var(--muted); }
.contact__list { margin: 28px 0; display: grid; gap: 18px; }
.contact__list div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; }
.contact__list dt { color: var(--muted); }
.contact__list dd { margin: 0; font-weight: 700; color: var(--ink); }
.contact__list dd a { color: var(--ink); }
.contact__list .muted { font-weight: 400; }

.urgent { background: var(--mist); border-radius: var(--radius); padding: 18px 22px; }
.urgent h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.urgent p { margin: 0; }
.urgent a { color: var(--ink); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(20,48,74,0.45);
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }
.field label { font-weight: 700; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--wattle); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #B3261E; background: #FFF6F5; }
.field__hint { margin: 0; font-size: var(--step--1); color: var(--muted); }
.field__error { margin: 0; font-size: var(--step--1); color: #B3261E; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: center; margin: 4px 0 24px; font-weight: 700; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gum); }
.form__done {
  margin-top: 20px; padding: 18px 20px;
  background: var(--mist); border-radius: var(--radius);
  border-left: 5px solid var(--gum);
}
.form__done h3 { font-size: var(--step-1); margin-bottom: 0.2em; }
.form__done p { margin: 0; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field--row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Acknowledgement ---------- */
.acknowledge {
  background: var(--ink-2);
  color: #DCE6EE;
  padding-block: clamp(40px, 6vw, 64px);
}
.acknowledge__inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: center; }
.acknowledge__word { font-family: var(--serif); font-size: var(--step-3); color: var(--wattle); margin: 0; }
.acknowledge p:last-child { margin: 0; max-width: 52em; }
@media (max-width: 720px) { .acknowledge__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C8D4; padding-top: clamp(48px, 7vw, 80px); font-size: var(--step--1); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer__brand img { width: 260px; height: auto; margin-bottom: 18px; }
.site-footer h2 { font-family: var(--sans); font-size: var(--step-0); font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #DCE6EE; }
.site-footer a:hover { color: var(--wattle); }
.footer__help li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 8px; }
.footer__help a { font-weight: 700; color: var(--white); text-decoration: none; white-space: nowrap; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 48px; padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer__base p { margin: 0; }
.site-footer .muted { color: #8FA3B3; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 620px) {
  .helpbar__inner { padding-block: 10px; }
  .helpbar__tis { display: block; }
  .helpbar__tis svg { display: inline-block; vertical-align: -4px; margin-right: 4px; }
  .helpbar__tools { width: 100%; justify-content: space-between; }
  .textsize__label { display: none; }
  .story:not(.story--feature) { display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; align-items: start; }
  .story:not(.story--feature) img { grid-row: span 2; margin: 0; border-radius: 50%; }
  .story:not(.story--feature) blockquote p { font-size: var(--step-0); }
  .nextclass__what { font-size: var(--step-1); }
}

/* Anchor targets clear the sticky header */
section[id], article[id] { scroll-margin-top: 96px; }
.field--row { align-items: end; }

/* Keep the longer wordmark and the menu button on one line on small phones */
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__line { font-size: 0.98rem; }
}
@media (max-width: 380px) {
  .navtoggle { padding: 8px 12px; gap: 8px; }
  .brand__line { font-size: 0.92rem; }
}
@media (max-width: 340px) {
  .navtoggle { font-size: 0; gap: 0; padding: 14px 12px; } /* bars only; the button is still named "Menu" */
  .langpick { min-width: 0; flex: 1; }
  .langpick select { min-width: 0; width: 100%; }
}

/* Services runs straight into the checklist: one rule between them instead of two full paddings */
.services { padding-bottom: clamp(56px, 7vw, 96px); }
.services + .steps { padding-top: 0; }
.services + .steps .steps__grid {
  padding-top: clamp(56px, 7vw, 96px);
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
