:root {
  --ink: #010039;
  --cyan: #00a7d4;
  --lime: #62d83f;
  --yellow: #ffe229;
  --pink: #e96aba;
  --paper: #f8f8f5;
  --white: #ffffff;
  --muted: #575874;
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  --display: "Fredoka One", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --content: 82rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-space: clamp(5rem, 9vw, 9rem);
}

@font-face {
  font-family: "Fredoka One";
  src: url("assets/fredoka-one.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}
.wordmark { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.site-logo { display: block; width: 3.25rem; height: 3.25rem; object-fit: contain; }
.impact-label {
  padding-left: .8rem;
  border-left: 2px solid var(--ink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.button, .icon-button { border: 0; font-weight: 800; }
.button { padding: .8rem 1rem; }
.button-primary { border-bottom: .3rem solid var(--cyan); background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }
.button:hover, .icon-button:hover { filter: brightness(1.12); }

.panel {
  --section-accent: var(--cyan);
  position: relative;
  display: grid;
  min-height: min(56rem, 100svh);
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.panel::before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: clamp(.4rem, .7vw, .7rem);
  background: var(--section-accent);
  content: "";
}
.panel:first-child { border-top: 0; }
.panel-inner { width: min(100%, var(--content)); margin-inline: auto; padding: var(--section-space) var(--gutter); }
#challenge { --section-accent: var(--cyan); }
#approach { --section-accent: var(--lime); }
#activities { --section-accent: var(--pink); }
#track-record { --section-accent: var(--yellow); }
#stories { --section-accent: var(--pink); }
#gallery { --section-accent: var(--cyan); }
#priorities { --section-accent: var(--lime); }
#partnership { --section-accent: var(--yellow); }
#closing { --section-accent: var(--pink); }
#contact { --section-accent: var(--cyan); }

.panel-dark { background: var(--ink); color: var(--white); }
.panel-accent { background: var(--yellow); }
.panel-gallery { background: var(--white); }
.panel-closing { background: var(--pink); }
.panel-contact { min-height: auto; background: var(--ink); color: var(--white); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, .statement, .story-card h3, .partnership-card h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .94;
}
h1 { max-width: 8ch; margin-bottom: 1.5rem; font-size: clamp(3.5rem, 7.4vw, 8rem); }
h2 { max-width: 12ch; margin-bottom: 2rem; font-size: clamp(3rem, 6.2vw, 6.25rem); }
h3 { margin-bottom: .55rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.2; }
.eyebrow, .section-number {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-number { display: flex; align-items: center; gap: .7rem; margin-bottom: 2rem; }
.section-number::before { width: .8rem; height: .8rem; flex: 0 0 auto; background: var(--section-accent); content: ""; }
.section-intro, .lede { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.4rem); }
.panel-dark .section-intro, .panel-dark .lede, .panel-contact .section-intro { color: rgba(255,255,255,.68); }

/* The hero is the design thesis: a landscape playfield inside a full-page canvas. */
.panel-hero { display: grid; min-height: 100svh; background: var(--white); }
.panel-hero::before { display: none; }
.hero-layout {
  display: grid;
  width: min(100%, var(--content));
  max-width: var(--content);
  min-height: 100svh;
  grid-template-columns: minmax(17rem, .85fr) minmax(20rem, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding: clamp(7rem, 12vh, 9rem) var(--gutter) clamp(4.5rem, 8vh, 6rem);
}
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: min(70svh, 42rem);
  aspect-ratio: 5 / 4;
  justify-self: end;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--cyan);
}
.brand-bars { position: absolute; inset: 0; display: grid; grid-template-columns: 2.4fr repeat(3, .7fr); }
.brand-bars i:nth-child(1) { background: var(--cyan); }
.brand-bars i:nth-child(2) { background: var(--lime); }
.brand-bars i:nth-child(3) { background: var(--yellow); }
.brand-bars i:nth-child(4) { background: var(--pink); }
.media-placeholder {
  position: relative;
  display: grid;
  min-height: 16rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent calc(50% - .5px), rgba(1,0,57,.18) 50%, transparent calc(50% + .5px)),
    linear-gradient(-45deg, transparent calc(50% - .5px), rgba(1,0,57,.18) 50%, transparent calc(50% + .5px)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(1,0,57,.08) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(1,0,57,.08) 31px 32px),
    color-mix(in srgb, var(--paper) 94%, var(--section-accent));
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.media-placeholder span { position: relative; z-index: 1; padding: .5rem .65rem; background: var(--paper); }
.media-hero {
  position: absolute;
  z-index: 2;
  inset: 15% 17% 13% 8%;
  min-height: 0;
  border: 3px solid var(--ink);
  background-color: rgba(248,248,245,.9);
}
.hero-symbols { position: absolute; z-index: 3; inset: 0; color: var(--ink); font-family: var(--display); font-size: clamp(2.5rem, 4.5vw, 4.75rem); line-height: 1; }
.hero-symbols span { position: absolute; text-shadow: 3px 3px 0 var(--white); }
.hero-symbols span:nth-child(1) { top: 5%; left: 4%; transform: rotate(-15deg); }
.hero-symbols span:nth-child(2) { right: 4%; bottom: 4%; transform: rotate(10deg); }
.hero-symbols span:nth-child(3) { right: 5%; top: 4%; transform: rotate(12deg); }
.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.hero-logo { width: min(15rem, 62%); height: 7.5rem; margin-bottom: clamp(1.5rem, 4vh, 3rem); object-fit: contain; object-position: left center; }
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy h1 { max-width: 8.5ch; font-size: clamp(3rem, 6.2vw, 7.2rem); }
.hero-copy .lede { max-width: 34rem; margin-bottom: 0; }
.placeholder-line { width: fit-content; margin-top: 2rem; padding: .65rem .85rem; background: var(--yellow); font-size: .78rem; font-weight: 850; }
.scroll-cue { display: flex; justify-content: space-between; margin-top: clamp(2.5rem, 6vh, 4.5rem); padding-top: 1rem; border-top: 1px solid var(--line); font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

.split-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(20rem, 1.15fr); gap: clamp(3rem, 8vw, 8rem); }
.section-heading { align-self: start; }
.statement-card { align-self: center; padding-top: 1.5rem; border-top: .8rem solid var(--section-accent); }
.statement { max-width: 12ch; margin-bottom: 3rem; font-size: clamp(2.6rem, 5vw, 5.5rem); }
.placeholder-lines { display: grid; gap: .65rem; }
.placeholder-lines i { width: 100%; height: .35rem; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.placeholder-lines i:nth-child(2) { width: 82%; }
.placeholder-lines i:nth-child(3) { width: 58%; }

.card-grid { display: grid; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.28); }
.outline-card { min-height: 11rem; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.outline-card:nth-child(even) { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.28); }
.outline-card > span { display: block; margin-bottom: 2.5rem; color: var(--section-accent); font-family: var(--display); font-size: 1.5rem; }
.outline-card p { margin-bottom: 0; color: rgba(255,255,255,.62); }

.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.heading-row h2 { margin-bottom: 0; }
.heading-row .section-intro { max-width: 28rem; margin-bottom: 0; }
.program-list { border-top: 1px solid var(--line); }
.program-list article {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 9rem;
  align-items: center;
  gap: 2rem;
  min-height: 9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease, background .2s ease;
}
.program-list article:hover { padding-inline: 1rem; background: color-mix(in srgb, var(--section-accent) 10%, transparent); }
.program-list p { margin-bottom: 0; color: var(--muted); }
.program-index { color: var(--section-accent); font-family: var(--display); font-size: 1.35rem; }
.mini-placeholder { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(1,0,57,.09) 10px 11px); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 2px solid var(--ink); }
.metrics-grid article { display: flex; min-height: 15rem; flex-direction: column; justify-content: space-between; padding: 2rem; border-left: 1px solid var(--ink); }
.metrics-grid article:first-child { border-left: 0; }
.metrics-grid strong { font-family: var(--display); font-size: clamp(2.6rem, 4.5vw, 5rem); font-weight: 400; line-height: .9; }
.metrics-grid span, .evidence-note { font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.evidence-note { margin-top: 1rem; opacity: .65; }

.media-portrait { aspect-ratio: 4 / 3; margin-top: 2rem; }
.story-card { align-self: center; padding-block: 3rem; border-block: 1px solid var(--line); }
.story-card .quote-mark { margin-bottom: .5rem; color: var(--section-accent); font-family: var(--display); font-size: 6rem; line-height: .5; }
.story-card h3 { max-width: 12ch; font-size: clamp(2.4rem, 4.5vw, 4.8rem); }
.story-card footer { margin-top: 2rem; color: var(--muted); font-size: .84rem; font-weight: 750; }

.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.gallery-grid .media-placeholder { border: 2px solid var(--ink); }
.gallery-main { grid-row: span 2; min-height: 34rem; }

.priority-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.priority-list li { display: grid; grid-template-columns: 6rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.priority-list > li > span { color: var(--section-accent); font-family: var(--display); font-size: 2rem; }
.priority-list p { margin: 0; color: rgba(255,255,255,.64); }

.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 2px solid var(--ink); }
.partnership-card { display: flex; min-height: 19rem; flex-direction: column; padding: 2rem; border-left: 1px solid var(--ink); }
.partnership-card:first-child { border-left: 0; }
.partnership-card > span { align-self: end; font-size: 1.5rem; transition: transform .2s ease; }
.partnership-card:hover > span { transform: translate(.35rem, -.35rem); }
.partnership-card h3 { max-width: 10ch; margin-top: auto; font-size: clamp(1.9rem, 3vw, 3rem); }
.partnership-card p { margin-bottom: 0; color: var(--muted); }

.closing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .55fr); align-items: end; gap: 4rem; }
.closing-layout .section-number { grid-column: 1 / -1; }
.closing-layout h2 { max-width: 10ch; margin-bottom: 0; font-size: clamp(4rem, 9vw, 9rem); }
.closing-layout .lede { max-width: 30rem; margin-bottom: 0; }
.closing-logo { grid-column: 2; grid-row: 2 / span 2; width: 100%; height: 15rem; object-fit: contain; }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 4rem; padding-block: 4rem; }
.contact-layout h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5rem); }
.contact-layout address { font-style: normal; }
.contact-layout address p { margin-bottom: .4rem; }
.contact-logo { grid-column: 1 / -1; width: 8rem; height: 5rem; object-fit: contain; object-position: left center; }

.deck-controls { position: fixed; z-index: 30; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; padding: .55rem; background: rgba(1,0,57,.94); backdrop-filter: blur(10px); }
.deck-controls[hidden] { display: none; }
.icon-button { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.38); }
.slide-counter { min-width: 4.4rem; margin: 0; color: var(--white); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }

.hero-visual { animation: hero-field .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-logo, .hero-copy .eyebrow, .hero-copy h1, .hero-copy .lede, .hero-copy .placeholder-line { animation: hero-copy .55s ease-out both; }
.hero-copy .eyebrow { animation-delay: .08s; }
.hero-copy h1 { animation-delay: .14s; }
.hero-copy .lede { animation-delay: .2s; }
.hero-copy .placeholder-line { animation-delay: .26s; }
@keyframes hero-field { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes hero-copy { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.panel.reveal-ready .panel-inner { opacity: 0; transform: translateY(2rem); transition: opacity .55s ease, transform .55s ease; }
.panel.reveal-ready.is-visible .panel-inner { opacity: 1; transform: none; }

body.deck-mode { overflow: hidden; }
body.deck-mode .site-header { display: none; }
body.deck-mode main { height: 100svh; overflow: hidden; }
body.deck-mode .panel { display: none; }
body.deck-mode .panel.is-active { display: grid; width: 100%; height: 100svh; min-height: 0; overflow-x: hidden; overflow-y: auto; border: 0; }
body.deck-mode .panel-hero.is-active { display: grid; }
body.deck-mode .panel-inner { min-height: min-content; }
body.deck-mode .hero-layout { min-height: 100svh; max-height: 100svh; }
body.deck-mode .scroll-cue { visibility: hidden; }

@media (min-width: 761px) and (max-width: 960px) {
  .split-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid article:nth-child(3) { border-left: 0; }
  .metrics-grid article:nth-child(n + 3) { border-top: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  .site-header { position: absolute; padding: .9rem 1rem; }
  .site-logo { width: 2.75rem; height: 2.75rem; }
  .impact-label { font-size: .65rem; }
  .button { padding: .68rem .8rem; font-size: .8rem; }
  .panel { min-height: auto; }
  .panel-inner { padding: 5.5rem 1.25rem; }
  .hero-layout { display: grid; min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: 7rem 1.25rem 4rem; }
  .hero-visual { min-height: 0; max-height: none; aspect-ratio: 5 / 4; }
  .media-hero { inset: 15% 17% 13% 8%; }
  .hero-symbols { font-size: 3.2rem; }
  .hero-copy { min-height: 0; padding: 0; }
  .hero-logo { width: 12rem; height: 6.5rem; margin-bottom: 2rem; }
  h1 { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .scroll-cue { margin-top: 3rem; }
  .split-layout, .contact-layout, .closing-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .heading-row { display: block; }
  .heading-row h2 { margin-bottom: 1.25rem; }
  .card-grid-2, .card-grid-3, .metrics-grid, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .outline-card:nth-child(even) { padding-left: 0; border-left: 0; }
  .program-list article { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; }
  .mini-placeholder { display: none; }
  .metrics-grid article { min-height: 10rem; border-top: 1px solid var(--ink); border-left: 0; }
  .metrics-grid article:first-child { border-top: 0; }
  .gallery-main { grid-row: auto; min-height: 25rem; }
  .gallery-grid > .media-placeholder:not(.gallery-main) { min-height: 18rem; }
  .priority-list li { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .partnership-card { min-height: 14rem; border-top: 1px solid var(--ink); border-left: 0; }
  .partnership-card:first-child { border-top: 0; }
  .closing-layout .section-number, .closing-logo { grid-column: auto; grid-row: auto; }
  .closing-logo { width: min(17rem, 80vw); height: 10rem; object-position: left center; }
  .contact-layout { padding-block: 4rem; }
  .deck-controls { right: .75rem; bottom: .75rem; left: .75rem; justify-content: center; }
  .deck-controls .button-light { margin-left: auto; }
  body.deck-mode .panel-inner { padding-top: 3rem; padding-bottom: 7rem; }
  body.deck-mode .hero-layout { min-height: min-content; max-height: none; }
}

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

@media print {
  @page { margin: 14mm; }
  body, body.deck-mode { overflow: visible; background: #fff; color: #000; font-size: 10pt; }
  .site-header, .deck-controls, .scroll-cue, .skip-link { display: none !important; }
  body.deck-mode main { height: auto; overflow: visible; }
  body.deck-mode .panel, .panel { display: block !important; min-height: auto; height: auto; overflow: visible; break-inside: avoid; page-break-after: always; border: 0; background: #fff !important; color: #000 !important; }
  .panel::before { width: 2mm; }
  .panel-inner, body.deck-mode .panel-inner { width: 100%; min-height: auto; padding: 12mm 6mm; opacity: 1 !important; transform: none !important; }
  .panel-hero .hero-layout { display: grid !important; grid-template-columns: 1fr 1fr; min-height: 170mm; padding: 12mm 6mm; }
  .hero-visual { min-height: 0; max-height: none; aspect-ratio: 5 / 4; }
  .hero-copy { padding: 18mm 10mm; }
  h1 { font-size: 38pt; }
  h2 { font-size: 28pt; }
  .media-placeholder, .metrics-grid, .card-grid-3 { border-color: #777; }
  .section-intro, .lede, .panel-dark .section-intro, .outline-card p, .priority-list p { color: #333; }
  .site-logo, .hero-logo, .closing-logo, .contact-logo { filter: grayscale(1); }
}
