/* ============================================================================
   Tech4Kids v2: "script stack" grammar.
   Everything here is page-local. scrollcraft.css supplies the mechanism.
   ========================================================================== */

:root {
  /* the six roles + the two faces */
  --sc-canvas:     #0B62C0;
  --sc-surface:    #0A55A8;
  --sc-ink:        #14233B;
  --sc-ink-soft:   #43546E;
  --sc-accent:     #FFC531;
  --sc-accent-ink: #14233B;
  --sc-font-display: "Secular One", "Heebo", system-ui, sans-serif;
  --sc-font-text:    "Heebo", system-ui, sans-serif;

  --blue:  #0B62C0;
  --navy:  #0F1B38;
  --navy-deep: #0A1226;
  --sky:   #E3EFFF;
  --paper: #FFFFFF;
  --ink:   #14233B;
  --ink-soft: #43546E;
  --sun:   #FFC531;
  --on-blue: #E3EFFF;
  --on-navy: #C9D8F2;

  --r-card: 24px;
  --r-sm: 14px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section: clamp(4.5rem, 9vw, 9rem);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-lift: 0 2px 0 rgba(15, 27, 56, .10), 0 22px 40px -20px rgba(15, 27, 56, .45);
  --focus: #0B62C0;
}

html { scroll-padding-top: 5.5rem; }
body { background: var(--navy); color: var(--ink); font-family: var(--sc-font-text); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { font-family: var(--sc-font-display); font-weight: 400; letter-spacing: 0; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.5vw, 3.3rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { text-decoration-thickness: 1px; text-underline-offset: .22em; }
img { height: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.hero, .online, .about, .run, .form, .why, .foot { --focus: #FFC531; }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; right: 8px; z-index: 100; transform: translateY(-220%); background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { transform: none; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1rem/1.2 var(--sc-font-text); text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--out), box-shadow 140ms var(--out), background-color 140ms var(--out);
}
.btn--accent { background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 rgba(15, 27, 56, .30), 0 12px 22px -10px rgba(15, 27, 56, .5); }
.btn--blue   { background: var(--blue); color: #fff; box-shadow: 0 3px 0 rgba(15, 27, 56, .28), 0 12px 22px -10px rgba(11, 98, 192, .6); }
.btn--lg { padding: 1em 2em; font-size: 1.1rem; }
.btn:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 rgba(15, 27, 56, .3); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn--accent:hover { background: #FFD257; }
  .btn--blue:hover { background: #0E70DB; }
}

/* ---------------------------------------------------------- top bar -- */
.bar {
  position: fixed; z-index: 60; top: 14px; inset-inline: clamp(12px, 3vw, 32px);
  max-width: 78rem; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 7px 10px 7px 22px; background: #fff; border-radius: 999px;
  box-shadow: 0 2px 0 rgba(15, 27, 56, .08), 0 14px 30px -14px rgba(15, 27, 56, .5);
}
.bar__logo { display: block; line-height: 0; }
.bar__logo img { height: 38px; width: auto; border-radius: 10px; }
.bar__cta { padding: .62em 1.35em; font-size: .95rem; flex: none; }
.bar__nav { flex: 1; min-width: 0; }
.bar__nav ul { display: flex; justify-content: center; align-items: center; gap: clamp(.1rem, .8vw, .6rem); }
.bar__nav a { display: block; padding: .55em .95em; border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 .98rem/1.2 var(--sc-font-text); white-space: nowrap; transition: background-color 140ms var(--out), color 140ms var(--out); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { background: var(--sky); color: var(--blue); } }
.bar__nav a:focus-visible { outline-color: var(--blue); }
.bar__burger { display: none; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sky); cursor: pointer; padding: 0; position: relative; }
.bar__burger span { position: absolute; inset-inline: 12px; height: 2.6px; border-radius: 2px; background: var(--ink); transition: transform 200ms var(--out), opacity 120ms linear; }
.bar__burger span:nth-child(1) { top: 14px; }
.bar__burger span:nth-child(2) { top: 20.7px; }
.bar__burger span:nth-child(3) { top: 27.4px; }
.bar.is-open .bar__burger span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.bar.is-open .bar__burger span:nth-child(2) { opacity: 0; }
.bar.is-open .bar__burger span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }
@media (max-width: 1000px) {
  .bar { position: fixed; }
  .bar__burger { display: block; }
  .bar__nav { position: absolute; top: calc(100% + 10px); inset-inline: 0; flex: none; display: none; background: #fff; border-radius: 26px; padding: 10px; box-shadow: 0 2px 0 rgba(15,27,56,.08), 0 24px 40px -16px rgba(15,27,56,.5); }
  .bar.is-open .bar__nav { display: block; }
  .bar__nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .bar__nav a { padding: .95em 1.1em; font-size: 1.05rem; border-radius: 16px; }
  .bar__logo { margin-inline-end: auto; }
}

/* --------------------------------------------- the stack (nav + signature) --
   Desktop: a column of blocks on the left edge. Phone: a strip along the
   bottom. Each block appears when its scene is first reached. */
.stack { position: fixed; z-index: 50; left: 12px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 3px; }
.stack a { position: relative; display: block; width: 38px; height: 15px; color: var(--c); opacity: 0; transform: translateX(-70px); pointer-events: none; transition: transform .55s var(--spring), opacity .2s linear; transform-origin: left center; }
.stack a.is-placed { opacity: 1; transform: none; pointer-events: auto; }
.stack a.is-current { transform: translateX(5px) scale(1.2); }
.stack svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 0 rgba(15, 27, 56, .45)); }
.stack .tip {
  position: absolute; left: calc(100% + 14px); top: 50%; translate: 0 -50%; white-space: nowrap;
  background: var(--navy); color: #fff; font: 700 .82rem/1 var(--sc-font-text); padding: .55em .9em; border-radius: 9px;
  opacity: 0; pointer-events: none; transform: translateX(-6px); transition: opacity 140ms var(--out), transform 140ms var(--out);
}
.stack a:focus-visible .tip { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .stack a:hover .tip { opacity: 1; transform: none; } }
.stack a:focus-visible { outline-color: #fff; }

/* ================================================================ HERO == */
.hero { background: var(--blue); color: #fff; }
.hero__stage:not(.sc-stage) { position: relative; }
.hero__stage { height: 100svh; min-height: 40rem; overflow: clip; background: var(--blue); isolation: isolate; }
.hero__far { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: saturate(.7) blur(1.5px); transition: opacity .8s linear; }
.hero__far::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(11, 98, 192, .96) 0%, rgba(11, 98, 192, .78) 46%, rgba(11, 98, 192, .30) 100%); }

.hero__disc { position: absolute; z-index: 1; border-radius: 50%; will-change: transform; }
.hero__disc--sun  { width: clamp(240px, 33vw, 520px); aspect-ratio: 1; left: 5vw; top: 7vh; background: var(--sun); }
.hero__disc--teal { width: clamp(150px, 19vw, 300px); aspect-ratio: 1; left: 31vw; bottom: -7vh; background: #2EC4B6; }

.hero__grid {
  position: relative; z-index: 2; height: 100%; max-width: 84rem; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: 96px var(--gutter) 40px;
}
.hero h1 { font-size: clamp(2.5rem, 1.1rem + 4vw, 4.5rem); line-height: 1.04; color: #fff; }
.hero h1 .hl { color: var(--sun); }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--on-blue); max-width: 34rem; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.8rem; }
.hero__stat { font-size: .98rem; color: var(--on-blue); display: flex; align-items: center; gap: .55em; }
.hero__stat strong { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.5rem; color: #fff; line-height: 1; }
.hero__stat .dot { width: 10px; height: 10px; border-radius: 50%; background: #4CD08B; box-shadow: 0 0 0 4px rgba(76, 208, 139, .28); }

.hero__stagecard { position: relative; display: grid; place-items: center; }
.hero__card { position: relative; z-index: 2; width: 100%; max-width: 40rem; will-change: transform; }
.hero__tilt { transform: rotate(-2.2deg); border: 7px solid #fff; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 3px 0 rgba(15, 27, 56, .14), 0 26px 50px -16px rgba(4, 22, 54, .6), 0 70px 90px -34px rgba(4, 22, 54, .5); }
.hero__tilt img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% 50%; }
.nb { position: absolute; z-index: 3; width: clamp(92px, 10.5vw, 168px); height: auto; filter: drop-shadow(0 12px 14px rgba(4, 22, 54, .38)); will-change: transform; }
.nb--a { top: -7%;  left: -7%; }
.nb--b { bottom: -9%; left: 3%; }
.nb--c { top: 12%; right: -8%; width: clamp(80px, 8.5vw, 136px); }
.nb--d { bottom: -6%; right: 9%; width: clamp(80px, 8vw, 128px); }
.hero__dots { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform; }
.hero__dots i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .78); }
.hero__dots i:nth-child(1) { width: 12px; height: 12px; left: 46%; top: 22%; }
.hero__dots i:nth-child(2) { width: 8px; height: 8px; left: 52%; top: 68%; background: rgba(255, 197, 49, .95); }
.hero__dots i:nth-child(3) { width: 16px; height: 16px; left: 14%; top: 56%; background: rgba(46, 196, 182, .95); }
.hero__dots i:nth-child(4) { width: 9px; height: 9px; left: 92%; top: 30%; }
.hero__dots i:nth-child(5) { width: 11px; height: 11px; left: 70%; top: 88%; background: rgba(239, 75, 107, .95); }

.motion-btn { position: absolute; z-index: 6; bottom: 18px; inset-inline-end: var(--gutter); display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; background: #0A55A8; color: #fff; font: 700 .85rem/1 var(--sc-font-text); cursor: pointer; backdrop-filter: blur(4px); transition: background-color 140ms var(--out), transform 140ms var(--out); }
.motion-btn:active { transform: scale(.97); }
.motion-btn .i-play { display: none; }
.motion-btn[aria-pressed="true"] .i-play { display: block; }
.motion-btn[aria-pressed="true"] .i-pause { display: none; }
@media (hover: hover) and (pointer: fine) { .motion-btn:hover { background: #084A93; } }
.motion-paused .flag.is-armed::after { animation: none; }
@media (max-width: 860px) { .motion-btn { position: relative; inset: auto; margin: 1.4rem var(--gutter) 0; width: fit-content; } }

/* =============================================================== RAIL == */
.subjects { background: var(--sky); }
.subjects__stage:not(.sc-stage) { position: relative; }
.subjects__stage { height: 100svh; overflow: clip; background: var(--sky); }
.rail { position: absolute; top: 0; bottom: 0; right: 0; width: max-content; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); padding-inline: var(--gutter); will-change: transform; }
.rail__lead { flex: none; width: clamp(280px, 30vw, 440px); padding-inline-end: clamp(.5rem, 2vw, 2rem); }
.rail__lead h2 { color: var(--ink); }
.rail__lead p { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); }
.card {
  position: relative; flex: none; width: clamp(250px, 22vw, 320px); min-height: clamp(320px, 44vh, 380px);
  padding: 26px 26px 28px; border-radius: var(--r-card); background: var(--c); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; box-shadow: var(--shadow-lift);
}
.card:nth-child(odd)  { margin-top: -48px; }
.card:nth-child(even) { margin-bottom: -48px; }
.card::before, .card::after { content: ""; position: absolute; inset-inline-start: 34px; width: 46px; height: 12px; border-radius: 0 0 12px 12px; }
.card::before { top: 0; background: var(--sky); }
.card::after { bottom: -12px; background: var(--c); }
.card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 14%, transparent); margin: 12px 0 auto; }
.card__icon svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.6rem; line-height: 1.12; }
.card p { font-size: 1rem; line-height: 1.5; }

/* ============================================================== SCHOOLS == */
.tag { display: inline-block; width: fit-content; font: 700 .85rem/1 var(--sc-font-text); letter-spacing: .03em; padding: .55em 1.1em; border-radius: 999px; background: var(--sky); color: var(--blue); }
.lead { font-size: 1.12rem; line-height: 1.7; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }

.schools { background: var(--paper); padding-block: var(--section); }
.schools__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.schools__photo { position: relative; margin: 0; }
.schools__photo::before { content: ""; position: absolute; top: 22px; bottom: -22px; left: -22px; right: 22px; border-radius: var(--r-card); background: #2EC4B6; }
.schools__photo img { position: relative; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 52% 50%; border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.schools__text > * + * { margin-top: 1.1rem; }
.schools__text h2 { margin-top: 1.1rem; color: var(--ink); }
.schools__text .lead { color: var(--ink-soft); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; margin-top: 1.8rem !important; }
.lists h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .6rem; }
.ticks li { position: relative; padding-inline-start: 32px; margin-top: .7rem; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .22em; width: 21px; height: 21px; border-radius: 50%; background: #2FB170 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5.5 12.5l4.2 4.2L18.5 8'/></svg>") center / 13px no-repeat; }
.schools .actions { margin-top: 2rem !important; }
.badge { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1.05em; border-radius: 999px; background: #E3F6EB; color: #12633D; font-weight: 700; font-size: .92rem; }

/* =============================================================== ONLINE == */
.online { background: var(--blue); color: #fff; padding-block: var(--section); overflow: clip; }
.online__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.online__text > * + * { margin-top: 1.2rem; }
.online__text .lead { color: var(--on-blue); }
.online__text .actions { margin-top: 2rem; }
.online__media { position: relative; padding: 6% 4%; }
.plate { position: absolute; border-radius: var(--r-card); }
.plate--a { inset: 0 18% 22% 0; background: #EF4B6B; transform: rotate(-6deg); }
.plate--b { inset: 34% 0 0 24%; background: var(--sun); transform: rotate(5deg); }
.online__photo { position: relative; z-index: 2; margin: 0; transform: rotate(1.6deg); border: 6px solid #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 3px 0 rgba(4, 22, 54, .2), 0 30px 50px -22px rgba(4, 22, 54, .6); }
.online__photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 60% 40%; }

/* ================================================================ CLUBS == */
.clubs { position: relative; overflow: clip; background: var(--sky); min-height: clamp(520px, 82vh, 780px); display: flex; align-items: center; padding-block: var(--section); }
.clubs__img { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 58% 40%; -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 100%); mask-image: linear-gradient(to left, #000 52%, transparent 100%); }
.clubs__inner { position: relative; z-index: 2; }
.clubs__text { max-width: 30rem; margin-inline-start: auto; }
.clubs__text > * + * { margin-top: 1.2rem; }
.clubs__text h2 { color: var(--ink); }
.clubs__text .lead { color: var(--ink-soft); }
.clubs__text .actions { margin-top: 2rem; }

/* ================================================================== WHY == */
.why { background: var(--navy); color: #fff; padding-block: var(--section); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__head { position: sticky; top: 17vh; }
.why__stat { margin-top: 2.2rem; display: grid; gap: .5rem; }
.why__num { font-family: var(--sc-font-display); font-size: clamp(4.5rem, 2.6rem + 8vw, 9.5rem); line-height: .95; color: var(--sun); }
.why__cap { font-size: 1.15rem; color: var(--on-navy); max-width: 22rem; }
.why__list { display: grid; }
.reason { display: flex; gap: 1.4rem; align-items: flex-start; padding-block: 1.9rem; border-top: 2px solid rgba(255, 255, 255, .12); }
.reason:last-child { border-bottom: 2px solid rgba(255, 255, 255, .12); }
.reason__icon { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--c); color: var(--ink); }
.reason__icon svg { width: 34px; height: 34px; }
.reason h3 { font-size: 1.55rem; color: #fff; }
.reason p { margin-top: .5rem; color: var(--on-navy); max-width: 34rem; }

/* ============================================================== VOICES == */
.voices { background: var(--paper); padding-block: var(--section); }
.voices h2 { color: var(--ink); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.voices__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.2rem); align-items: start; }
.note { position: relative; margin: 0; padding: 2.6rem 1.8rem 1.8rem; border-radius: var(--r-card); color: var(--ink); box-shadow: var(--shadow-lift); }
.note::before { content: "\201D"; position: absolute; top: .3rem; inset-inline-start: 1.3rem; font: 400 5rem/1 var(--sc-font-display); color: rgba(20, 35, 59, .2); }
.note blockquote { margin: 0; font-size: 1.15rem; line-height: 1.6; font-weight: 500; }
.note figcaption { margin-top: 1.3rem; display: grid; gap: 2px; }
.note strong { font: 400 1.25rem/1.2 var(--sc-font-display); }
.note span { font-size: .92rem; color: #33445E; }
.note--a { grid-column: 1 / span 5; background: #FFE49A; }
.note--b { grid-column: 6 / span 6; background: #C4F0DB; margin-top: 3.4rem; }
.note--c { grid-column: 3 / span 8; background: #CFE3FF; }
@media (min-width: 861px) {
  .note--a { transform: rotate(-1.2deg); }
  .note--b { transform: rotate(1.1deg); }
  .note--c { transform: rotate(-.6deg); }
}

/* ============================================================ PARTNERS == */
.partners { background: var(--sky); padding-block: var(--section); }
.partners__head { text-align: center; }
.partners__head h2 { color: var(--ink); }
.partners__head p { margin-top: .8rem; color: var(--ink-soft); font-size: 1.12rem; }
.partners__grid { margin-top: clamp(2rem, 4vw, 3.2rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.partners__grid li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 16px 20px; background: #fff; border-radius: 18px; box-shadow: 0 1px 0 rgba(15, 27, 56, .08), 0 12px 24px -16px rgba(15, 27, 56, .35); transition-property: opacity, transform, box-shadow; }
.partners__grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  .partners__grid li.sc-in:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(15, 27, 56, .08), 0 20px 28px -16px rgba(15, 27, 56, .45); transition-duration: 160ms; }
}

/* ================================================================ ABOUT == */
.about { position: relative; background: var(--blue); color: #fff; padding-block: var(--section); overflow: clip; }
.about__numeral { position: absolute; z-index: 0; top: -2%; left: 1vw; font: 400 clamp(11rem, 32vw, 30rem)/.9 var(--sc-font-display); color: rgba(255, 255, 255, .09); pointer-events: none; user-select: none; }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__text > * + * { margin-top: 1.2rem; }
.about .tag { background: var(--sun); color: var(--ink); }
.about__text .lead { color: var(--on-blue); }
.about__photo { margin: 0; transform: rotate(-1.4deg); border: 6px solid #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 3px 0 rgba(4, 22, 54, .2), 0 30px 50px -22px rgba(4, 22, 54, .6); }
.about__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* ================================================================== FAQ == */
.faq { background: var(--paper); padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__title { position: sticky; top: 17vh; color: var(--ink); }
.faq__groups { display: grid; gap: 2.6rem; }
.faq-group-title { font-size: 1.15rem; color: var(--blue); padding-bottom: .7rem; border-bottom: 3px solid var(--sky); }
.faq-item { border-bottom: 2px solid var(--sky); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; background: none; border: 0; text-align: start; cursor: pointer; font: 700 1.08rem/1.4 var(--sc-font-text); color: var(--ink); }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); transition: transform 240ms var(--out), background-color 160ms var(--out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2.4px; border-radius: 2px; background: var(--blue); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--sun); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--ink); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 300ms var(--out); }
.faq-answer p { padding-bottom: 1.2rem; color: var(--ink-soft); max-width: 44rem; }
@media (hover: hover) and (pointer: fine) { .faq-question:hover .faq-icon { background: #CFE3FF; } }

/* ====================================================== THE RUN (peak) == */
.run { background: var(--blue); color: #fff; }
.run__stage:not(.sc-stage) { position: relative; }
.run__stage { height: 100svh; min-height: 36rem; overflow: clip; background: var(--blue) radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.8px) 0 0 / 30px 30px; display: grid; align-items: center; }
.run__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.run__copy h2 { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.8rem); line-height: 1.04; }
.run__alt { margin-top: 1.4rem; color: var(--on-blue); }
.run__alt a { color: #fff; font-weight: 700; }

.flag {
  position: relative; margin-top: 2.2rem; display: inline-flex; align-items: center; gap: .85em;
  padding: 1rem 1.8rem 1rem 1.4rem; border: 0; cursor: pointer; border-radius: 40px 40px 16px 16px / 34px 34px 16px 16px;
  background: var(--sun); color: var(--ink); font: 700 1.3rem/1.1 var(--sc-font-text);
  box-shadow: 0 5px 0 rgba(15, 27, 56, .35), 0 22px 30px -14px rgba(4, 22, 54, .6);
  transition: transform 160ms var(--out), box-shadow 160ms var(--out);
}
.flag__glyph { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #2FB170; color: #fff; }
.flag::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid var(--sun); opacity: 0; pointer-events: none; }
.flag.is-armed::after { animation: flag-ping 1.7s var(--out) infinite; }
@keyframes flag-ping { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.14); } }
.flag:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 0 rgba(15, 27, 56, .35); }
@media (hover: hover) and (pointer: fine) { .flag:hover { transform: translateY(-3px); } }
.flag[aria-busy="true"] { pointer-events: none; }

.program { position: relative; justify-self: end; width: 100%; padding-bottom: 14px; }
.step { position: relative; margin: 0; background: var(--c); border-radius: 14px; color: var(--ink); }
.step::before, .step::after { content: ""; position: absolute; inset-inline-start: 30px; width: 44px; height: 10px; border-radius: 0 0 10px 10px; }
.step::before { top: 0; background: var(--blue); }
.step::after { bottom: -10px; background: var(--c); z-index: 2; }
.step:last-child::after { display: none; }
.step a { display: flex; align-items: center; gap: 14px; padding: 19px 22px; color: var(--ink); text-decoration: none; font: 700 1.1rem/1.3 var(--sc-font-text); }
.step a::before { content: ""; flex: none; width: 34px; height: 12px; border-radius: 7px; background: rgba(255, 255, 255, .6); }
.step a:focus-visible { outline-offset: -3px; outline-color: var(--ink); }
.run--js .step { opacity: 0; transform: translateX(-90px); }
.run--js .step.is-in { opacity: 1; transform: none; transition: transform .6s var(--spring), opacity .25s linear; }
.step.is-run { transform: translateX(10px) !important; filter: brightness(1.14); box-shadow: 0 0 0 4px #fff; transition: transform 200ms var(--out), box-shadow 200ms var(--out), filter 200ms var(--out); }

/* ================================================================= FORM == */
.form { position: relative; background: var(--navy); color: #fff; padding-block: var(--section); overflow: clip; }
.form__bg { position: absolute; inset: 0; background: linear-gradient(rgba(15, 27, 56, .9), rgba(15, 27, 56, .95)), url("images/contact-bg.jpg") center / cover; }
.form__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.form__title { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); }
.form__list { margin-top: 2rem; }
.form__list li { display: grid; gap: 2px; padding-block: 1.1rem; border-top: 2px solid rgba(255, 255, 255, .12); }
.form__list li:last-child { border-bottom: 2px solid rgba(255, 255, 255, .12); }
.form__list span { font-size: .92rem; color: #A9BCDD; }
.form__list a, .form__list address { font: 400 1.5rem/1.3 var(--sc-font-display); color: #fff; text-decoration: none; font-style: normal; }
@media (hover: hover) and (pointer: fine) { .form__list a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: .2em; } }
.form__card { background: #fff; border-radius: var(--r-card); padding: 14px; box-shadow: 0 3px 0 rgba(4, 22, 54, .25), 0 40px 60px -28px rgba(0, 0, 0, .7); }
.form__card iframe { display: block; width: 100%; height: 560px; border: 0; background: transparent; }

/* ============================================================== FOOTER == */
.foot { background: var(--navy-deep); color: var(--on-navy); padding-block: clamp(3rem, 6vw, 5rem) 1.6rem; padding-bottom: calc(1.6rem + 12px); }
.foot__top { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.foot__logo { display: inline-block; background: #fff; border-radius: 18px; padding: 12px 14px; line-height: 0; }
.foot__logo img { width: 120px; height: auto; }
.foot__contact { margin-top: 1.4rem; display: grid; gap: .45rem; font-style: normal; }
.foot__contact a, .foot__contact address { color: #fff; text-decoration: none; font-style: normal; }
.foot__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 2rem; }
.foot__col :is(h2, h3) { font-size: 1.1rem; color: #fff; margin-bottom: .9rem; }
.foot__col li + li { margin-top: .55rem; }
.foot__col a { color: var(--on-navy); text-decoration: none; font-size: .96rem; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sun); } }
.foot__bottom { margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .9rem; }
.foot__bottom a { color: var(--on-navy); }

/* ============================================================== COOKIE == */
.cookie { position: fixed; z-index: 80; inset-inline: 16px; bottom: 16px; max-width: 46rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; padding: 1rem 1.3rem; background: #fff; color: var(--ink); border-radius: 20px; font-size: .92rem; line-height: 1.5; box-shadow: 0 3px 0 rgba(15, 27, 56, .1), 0 24px 40px -14px rgba(4, 22, 54, .55); transform: translateY(160%); transition: transform .5s var(--spring); }
.cookie.visible { transform: none; }
.cookie p { flex: 1 1 18rem; }
.cookie__actions { display: flex; align-items: center; gap: 1rem; }
.cookie__actions a { color: var(--blue); font-weight: 700; }
.cookie .btn { padding: .6em 1.3em; }

/* ========================================================= SECONDARY == */
.sc-in-fallback { opacity: 1; }

/* ============================================================== PHONE == */
@media (max-width: 1099px) {
  .stack { left: 14px; right: 14px; top: auto; bottom: 8px; translate: 0 0; flex-direction: row; gap: 4px; }
  .stack a { flex: 1; width: auto; height: 7px; transform: translateY(14px); border-radius: 4px; background: var(--c); transform-origin: center bottom; }
  .stack a.is-current { transform: scaleY(1.7); }
  .stack svg, .stack .tip { display: none; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 4.5rem; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .bar .btn, .flag, .hero .btn { white-space: nowrap; }
  .bar { top: 10px; padding: 6px 8px 6px 16px; }
  .bar__logo img { height: 32px; }
  .bar__cta { padding: .55em 1em; font-size: .86rem; }
  .bar { gap: .5rem; padding-left: 8px; }

  /* hero: no pin on phones, recomposed */
  .hero__stage { height: auto; min-height: 100svh; padding-bottom: 2.2rem; }
  .hero__grid { grid-template-columns: 1fr; height: auto; align-content: start; gap: 2.2rem; padding-top: 92px; padding-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.15rem, 8.4vw, 2.8rem); }
  .hero__sub { margin-top: 1rem; font-size: 1.05rem; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__far::after { background: linear-gradient(to bottom, rgba(11, 98, 192, .94) 0%, rgba(11, 98, 192, .8) 55%, rgba(11, 98, 192, .45) 100%); }
  .hero__disc--sun { left: auto; right: -12vw; top: auto; bottom: 8vh; width: 62vw; }
  .hero__disc--teal { left: -8vw; bottom: auto; top: 54vh; width: 36vw; }
  .hero__stagecard { margin-inline: 4vw; }
  .nb--c, .nb--d { display: none; }
  .nb { width: 86px; }
  .nb--a { top: -9%; left: -5%; }
  .nb--b { bottom: -10%; left: 2%; }
  .hero__tilt { border-width: 5px; border-radius: 22px; }

  .rail__lead { width: 78vw; }
  .card { width: 72vw; min-height: 320px; }
  .card:nth-child(odd) { margin-top: -28px; }
  .card:nth-child(even) { margin-bottom: -28px; }

  .schools__grid, .online__grid, .why__grid, .about__grid, .faq__grid, .run__grid, .form__grid { grid-template-columns: 1fr; }
  .schools__photo { max-width: 28rem; }
  .schools__photo::before { top: 14px; bottom: -14px; left: -10px; right: 10px; }
  .schools__photo img { aspect-ratio: 4 / 4.2; }
  .lists { grid-template-columns: 1fr; }
  .online__media { padding: 8% 5%; max-width: 30rem; }
  .clubs { display: block; padding-top: 58vw; min-height: 0; }
  .clubs__img { top: 0; right: 0; width: 100%; height: 56vw; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
  .clubs__text { max-width: none; }
  .why__head, .faq__title { position: static; }
  .reason { gap: 1rem; padding-block: 1.4rem; }
  .reason__icon { width: 56px; height: 56px; }
  .reason__icon svg { width: 28px; height: 28px; }
  .voices__grid { grid-template-columns: 1fr; }
  .note--a, .note--b, .note--c { grid-column: 1; margin-top: 0; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__numeral { top: 0; font-size: 11rem; }
  .about__photo { max-width: 28rem; }

  .run__stage { min-height: 0; align-items: start; padding-top: 4.8rem; }
  .run__grid { gap: 1.4rem; }
  .run__copy h2 { font-size: clamp(2.1rem, 8vw, 2.7rem); }
  .flag { margin-top: 1.1rem; font-size: 1.12rem; padding: .8rem 1.4rem .8rem 1.1rem; }
  .flag__glyph { width: 40px; height: 40px; }
  .run__alt { margin-top: .8rem; font-size: .95rem; }
  .step a { padding: 12px 18px; font-size: 1rem; }
  .step::after { height: 8px; bottom: -8px; }
  .form__card iframe { height: 600px; }
  .foot__top { grid-template-columns: 1fr; }
  .cookie { bottom: 24px; }
}

@media (max-height: 640px) and (max-width: 860px) {
  .step a { padding: 9px 16px; font-size: .95rem; }
  .run__copy h2 { font-size: 1.9rem; }
}

/* ============================================================== MOTION ==
   Reduced motion keeps the whole page: every plane rests in its composition,
   pinned acts shed their scroll room, the rail becomes a native scroll region,
   and everything that was staged by scroll is simply present. */
@media (prefers-reduced-motion: reduce) {
  .sc-act--pinned { height: auto !important; }
  .sc-stage { position: relative !important; height: auto !important; min-height: 0; }
  .hero__stage { min-height: 100svh; height: auto; }
  [data-layer] { transform: none !important; }
  .hero__video { display: none; }
  .subjects__stage { height: auto !important; min-height: 100svh; overflow-x: auto !important; overflow-y: hidden; display: flex; align-items: center; }
  .rail { position: relative; inset: auto; transform: none !important; }
  .run__stage { height: auto !important; padding-block: var(--section); }
  .run--js .step { opacity: 1 !important; transform: none !important; }
  .flag.is-armed::after { animation: none; }
  .stack a { transition: none; }
  .cookie { transition: none; }
}

/* ============================================== simple pages (privacy, 404) */
.page { background: var(--paper); color: var(--ink); padding-top: 110px; min-height: 70vh; }
.legal-content h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem) !important; color: var(--ink); }
.legal-content h2 { font-size: 1.35rem !important; color: var(--blue); }
.legal-content p, .legal-content li { color: var(--ink-soft) !important; }
.legal-content ul { padding-inline-start: 22px; padding-right: 0 !important; list-style: disc !important; }
.error-code { font-family: var(--sc-font-display) !important; color: var(--blue) !important; }
