/* =========================================================
   All Winners: Equity within Diversity
   Brand tokens sampled from the All Winners logo
   ========================================================= */
:root {
  /* Brand primitives */
  --navy-950: #00102b;
  --navy-900: #001539;
  --navy: #002155;          /* logo background */
  --navy-700: #0b3275;
  --mint: #11f1a1;          /* crown gradient start */
  --cyan: #36c9f5;
  --sky: #5aa2ff;           /* crown gradient end */
  --mist: #cecfda;          /* wordmark grey */

  /* Semantic tokens */
  --bg: #ffffff;
  --surface: #f4f6fb;
  --surface-2: #eaeef7;
  --ink: #0b1b3a;
  --ink-muted: #46526e;       /* 7.6:1 on white */
  --line: #d9dfeb;
  --accent-ink-1: #0a7a5e;    /* mint, darkened for text on light (5.4:1) */
  --accent-ink-2: #1660c4;    /* sky, darkened for text on light (5.6:1) */
  --on-dark: #ffffff;
  --on-dark-muted: #c6cee0;   /* 10:1 on navy */
  --focus: #1660c4;
  --focus-on-dark: #11f1a1;

  --grad-bright: linear-gradient(100deg, var(--mint) 0%, var(--cyan) 50%, var(--sky) 100%);
  --grad-ink: linear-gradient(100deg, #0a8a66 0%, #1278b8 50%, #1660c4 100%);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (spacious density) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(0, 21, 57, .06), 0 2px 8px rgba(0, 21, 57, .06);
  --shadow: 0 10px 30px -10px rgba(0, 21, 57, .25);
  --shadow-lg: 0 30px 60px -20px rgba(0, 21, 57, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --header-h: 80px;
  --font-scale: 1;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(1.0625rem * var(--font-scale));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
#main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.programs :focus-visible,
.contact :focus-visible,
.lightbox :focus-visible { outline-color: var(--focus-on-dark); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 64px); } }

.section { padding-block: clamp(64px, 9vw, 120px); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Type helpers ---------- */
.display,
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--navy);
}
.section-title { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1; }
.section-title.on-dark { color: #fff; }
.section-intro { color: var(--ink-muted); font-size: 1.125rem; max-width: 60ch; }

.hl {
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em; /* keeps italic overhang from clipping */
}
.hl-bright {
  background: var(--grad-bright);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-4);
  font-weight: 700; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink-1);
}
.kicker::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-ink);
}
.kicker-light { color: var(--mint); }
.kicker-light::before { background: var(--grad-bright); }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 6px 6px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; line-height: 1.2;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
  cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn-icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.25rem;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary .btn-icon { background: var(--mint); color: var(--navy); }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }

.btn-ghost { padding: 6px 24px; border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint .btn-icon { background: var(--navy); color: var(--mint); }
.btn-mint:hover { background: #4ff5b9; color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0, 21, 57, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--surface-2); }
.brand-text { white-space: nowrap; display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: .01em;
}
.brand-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink-2); font-weight: 700; margin-top: 4px; }
.brand:hover { color: var(--navy); }

.primary-nav { display: flex; align-items: center; gap: var(--s-6); }
.primary-nav ul { display: flex; gap: var(--s-1); }
.primary-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; border-radius: 999px;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.primary-nav ul a:hover { background: var(--surface); color: var(--navy); }
.primary-nav ul a[aria-current="true"] { color: var(--navy); background: var(--surface-2); }
.nav-cta { min-height: 48px; font-size: 1rem; }
.nav-cta .btn-icon { width: 36px; height: 36px; }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700;
}
.menu-toggle svg { font-size: 1.35rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1179px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--s-5);
    padding: var(--s-5) 20px var(--s-6);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .primary-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { min-height: 52px; font-size: 1.125rem; padding: 0 16px; }
  .nav-cta { justify-content: space-between; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.4rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 92% 18%, rgba(17, 241, 161, .16), transparent 70%),
    radial-gradient(640px 480px at 70% 100%, rgba(90, 162, 255, .16), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.hero-inner { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 1fr; } }

.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.eyebrow span {
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
}
.eyebrow span:nth-child(2) { border-color: rgba(10, 122, 94, .35); }
.eyebrow span:nth-child(3) { border-color: rgba(22, 96, 196, .35); }

.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: .94; }
.hero h1 .hl { position: relative; display: inline-block; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: -.06em; height: .14em;
  background: var(--grad-bright); border-radius: 99px; opacity: .55; z-index: -1;
  transform: skewX(-12deg) rotate(-1deg);
}
.lead { margin-top: var(--s-5); font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero-media { position: relative; padding: 0 0 28px 28px; }
.hero-photo {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.3;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 33, 85, .35));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-media::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 72%;
  border-radius: var(--radius-lg); background: var(--grad-bright); z-index: -1; opacity: .9;
}

.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.float-quote {
  left: -6px; top: 28px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px 16px 16px;
  max-width: 220px;
}
.float-quote img { border-radius: 50%; }
.float-quote p {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; color: var(--navy);
}
.float-quote strong { font-weight: 800; color: var(--accent-ink-2); }
.float-chip {
  right: 20px; bottom: 52px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff;
  font-weight: 700; font-size: .95rem;
}
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(17, 241, 161, .25); }
@media (max-width: 520px) {
  .hero-media { padding: 0 0 18px 14px; }
  .float-quote { top: auto; bottom: -6px; left: 0; padding: 12px 16px 12px 12px; }
  .float-quote p { font-size: 1rem; }
  .float-chip { top: 14px; bottom: auto; right: 14px; font-size: .85rem; padding: 10px 14px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media { position: relative; padding-right: 18%; padding-bottom: 12%; }
.about-main { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-inset {
  position: absolute; right: 0; bottom: 0; width: 36%; aspect-ratio: 3 / 4.4; object-fit: cover;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.about-copy p { color: var(--ink-muted); max-width: 60ch; }
.about-copy .section-title { margin-bottom: var(--s-5); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.pill-list li {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: .95rem; color: var(--navy);
}

/* ---------- Programs ---------- */
.programs {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(17, 241, 161, .14), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(90, 162, 255, .18), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding-block: clamp(64px, 9vw, 120px);
}
@media (min-width: 1280px) { .programs { margin-inline: 24px; border-radius: 48px; } }
.programs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.programs-lines path { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.programs .container { position: relative; }
.programs-head { display: grid; gap: var(--s-5); align-items: end; margin-bottom: var(--s-7); }
@media (min-width: 900px) { .programs-head { grid-template-columns: 1fr 1fr; } }
.programs-intro { color: var(--on-dark-muted); font-size: 1.125rem; max-width: 44ch; }

.program-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.program-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-6) var(--s-5);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .5); }
.program-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(17, 241, 161, .22), rgba(90, 162, 255, .22));
  color: var(--navy); font-size: 1.9rem; margin-bottom: var(--s-5);
}
.program-card h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: var(--s-3); line-height: 1.2; }
.program-card p { color: var(--ink-muted); flex: 1; margin-bottom: var(--s-5); }
.card-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem;
  color: var(--navy); text-decoration: none;
}
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--mint); font-size: 1.2rem;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
}
.program-card:hover .card-arrow { transform: translateX(4px); background: var(--navy-700); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus-on-dark); outline-offset: 4px; }

.ndis-note {
  margin-top: var(--s-6); padding: var(--s-5) var(--s-6);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); color: var(--on-dark-muted); max-width: 820px;
}
.ndis-note strong { color: #fff; }
.ndis-note a { color: var(--mint); font-weight: 700; }
.ndis-note a:hover { color: #fff; }

/* ---------- Physical literacy ---------- */
.literacy-head { max-width: 760px; margin-bottom: var(--s-7); }
.literacy-head .section-title { margin-bottom: var(--s-5); }
.literacy-body { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .literacy-body { grid-template-columns: minmax(280px, 420px) 1fr; } }

.literacy-wheel { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1; }
.literacy-wheel svg { width: 100%; height: 100%; stroke-linecap: butt; }
.seg { fill: none; stroke-width: 30; opacity: .35; transition: opacity var(--dur) ease, stroke-width var(--dur) var(--ease-out); }
.seg.active { opacity: 1; stroke-width: 38; }
.seg-physical { stroke: #1660c4; }
.seg-psychological { stroke: #36c9f5; }
.seg-social { stroke: #11f1a1; }
.seg-cognitive { stroke: #002155; }
.wheel-center {
  position: absolute; inset: 27%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: .95; color: var(--navy);
}

.tab-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: var(--s-5); }
@media (min-width: 600px) { .tab-list { grid-template-columns: repeat(4, 1fr); } }
.tab-list [role="tab"] {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 88px; padding: 14px 16px; text-align: left;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  font-weight: 700; font-size: 1.05rem; color: var(--navy);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.tab-list [role="tab"]:hover { border-color: var(--navy); }
.tab-list [role="tab"][aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.tab-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 1.25rem; background: var(--surface-2); color: var(--navy); }
[role="tab"][aria-selected="true"] .tab-icon { background: var(--mint); }

.tab-panel {
  padding: var(--s-6); border-radius: var(--radius-lg); background: var(--surface);
  border-left: 6px solid var(--panel-color, var(--navy));
}
#panel-physical { --panel-color: #1660c4; }
#panel-psychological { --panel-color: #36c9f5; }
#panel-social { --panel-color: #11f1a1; }
#panel-cognitive { --panel-color: #002155; }
.tab-panel h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 2rem; color: var(--navy); margin-bottom: var(--s-3); }
.panel-lead { font-size: 1.2rem; color: var(--ink); }
.tab-panel p:not(.panel-lead) { color: var(--ink-muted); }
.tab-panel:not([hidden]) { animation: panel-in var(--dur) var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--surface); }
.gallery-head { display: grid; gap: var(--s-4); align-items: end; margin-bottom: var(--s-7); }
@media (min-width: 900px) { .gallery-head { grid-template-columns: 1fr 1fr; } }

.gallery-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } }
.gallery-grid > li { min-width: 0; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 767px) { .g-wide { grid-row: span 1; } }
.g-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.g-item:hover img { transform: scale(1.04); }
.g-zoom {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy);
  font-size: 1.1rem; opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; transform: none; }
@media (hover: none) { .g-zoom { opacity: 1; transform: none; } }

.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(0, 16, 43, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in var(--dur) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; padding: 72px 72px 24px; display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100dvh - 160px); width: auto; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox figcaption { color: var(--on-dark-muted); text-align: center; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.5rem;
  transition: background-color var(--dur-fast) ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox figure { padding: 72px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(17, 241, 161, .12), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(64px, 9vw, 120px);
}
.contact-head { text-align: center; margin-bottom: var(--s-7); }
.contact-head .kicker { justify-content: center; }
.contact-grid { display: grid; gap: var(--s-6); align-items: stretch; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.contact-card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
}
.contact-intro { color: var(--on-dark-muted); margin-bottom: var(--s-5); font-size: 1.1rem; }

.contact-form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; color: #fff; }
.req { color: var(--mint); }
.optional { font-weight: 400; color: var(--on-dark-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px;
  background: rgba(255, 255, 255, .06); color: #fff;
  font: inherit; font-size: 1rem;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311f1a1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field select option { color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(17, 241, 161, .3); }
.field [aria-invalid="true"] { border-color: #ff9b9b; }
.field-hint { font-size: .925rem; color: var(--on-dark-muted); margin: 0; }
.field-error { margin: 0; font-size: .95rem; font-weight: 700; color: #ffb4b4; display: flex; gap: 6px; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #ffb4b4; color: var(--navy-900); font-size: .8rem; margin-top: 2px; }
.req-note { font-size: .9rem; color: var(--on-dark-muted); margin: 0; }
.req-note span { color: var(--mint); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; color: var(--mint); font-weight: 700; }
.form-status:empty { display: none; }

.error-summary {
  padding: var(--s-4) var(--s-5); border-radius: var(--radius-sm);
  border: 2px solid #ffb4b4; background: rgba(255, 120, 120, .1);
}
.error-summary h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.error-summary ul { list-style: disc; padding-left: 20px; }
.error-summary a { color: #ffd2d2; font-weight: 700; }
.error-summary:focus-visible { outline-color: #ffb4b4; }

.contact-side { display: grid; gap: var(--s-4); grid-template-rows: 1fr auto; }
.contact-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-details { display: grid; gap: 10px; }
.contact-details li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.cd-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--navy); font-size: 1.25rem; }
.cd-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-muted); font-weight: 700; }
.contact-details a { color: #fff; font-weight: 700; text-decoration-color: rgba(17, 241, 161, .6); word-break: break-word; }
.contact-details a:hover { color: var(--mint); }

/* ---------- Footer ---------- */
.site-footer { background: #eef0f6; color: var(--ink); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand p { color: var(--ink-muted); margin-top: var(--s-4); max-width: 34ch; }
.footer-col h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink-1); margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: 4px; }
.footer-col li { color: var(--ink-muted); }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-col a:hover { color: var(--accent-ink-2); text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: var(--s-5); }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 1.25rem;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.socials a:hover { background: var(--mint); color: var(--navy); }

.acknowledgement {
  margin: 0; padding: var(--s-6) 0; border-top: 1px solid var(--line);
  text-align: center; color: var(--ink-muted); max-width: 900px; margin-inline: auto; font-size: 1rem;
}
.footer-bottom { background: var(--navy); color: var(--on-dark-muted); font-size: .95rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding-block: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom a:hover { color: var(--mint); }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .hl, .hl-bright { color: CanvasText; background: none; }
  .seg { opacity: 1; }
}

/* ---------- Fixes ---------- */
[hidden] { display: none !important; }
.gallery-grid { grid-auto-flow: dense; }
@media (min-width: 768px) { .g-half { grid-column: span 2; } }
@media (max-width: 899px) { .literacy-wheel { width: min(100%, 280px); } }
.form-status[data-type="error"] { color: #ffb4b4; }
.btn[aria-busy="true"] { cursor: progress; }
