/* ==========================================================================
   Enara Global Academy
   Visual language: the international student's journey – departure boards,
   boarding passes, passport stamps. One family (Archivo) used across widths.
   Colours are placeholders until Enara supplies a brand guide.
   ========================================================================== */

:root {
  --ink: #0e2a2f;          /* passport ink – dark surfaces, text */
  --ink-2: #163c42;
  --board: #0a2124;        /* departure board panel */
  --paper: #eef2f0;        /* security paper – light surfaces */
  --white: #ffffff;
  --signal: #f2c230;       /* airport signage yellow – primary action, board text */
  --stamp: #c8322b;        /* visa stamp red – sparing accent */
  --slate: #5f7471;        /* muted text */
  --rule: #cfd8d5;
  --rule-dark: rgba(255, 255, 255, .14);
  --tbd-bg: #fff3c4;
  --tbd-line: #d9a800;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125%;
  --narrow: 72%;

  --t-sm: .875rem; --t-base: 1.0625rem; --t-md: 1.25rem; --t-lg: 1.625rem; --t-2xl: 3.25rem; --t-3xl: clamp(2.75rem, 7vw, 5.75rem);

  --container: 1240px;
  --gutter: 20px;
  --r: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--t-base); line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--t-3xl); font-weight: 800; font-stretch: var(--wide); }
h2 { font-size: clamp(1.9rem, 3.6vw, var(--t-2xl)); font-weight: 750; font-stretch: var(--wide); }
h3 { font-size: var(--t-md); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft, .section--warm { background: var(--paper); }
.section--brand, .section--ink { background: var(--ink); color: var(--white); }
.section--brand h2, .section--brand h3, .section--ink h2, .section--ink h3 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center p { margin-left: auto; margin-right: auto; }
.lead { font-size: var(--t-md); color: var(--slate); line-height: 1.5; }
.section--ink .lead, .section--brand .lead { color: rgba(255, 255, 255, .75); }
.muted { color: var(--slate); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- TBD placeholders ---------- */
.tbd { background: var(--tbd-bg); outline: 1px dashed var(--tbd-line); border-radius: 3px; padding: 0 4px; color: #5a4600; font-weight: 500; }
.tbd-note { background: var(--tbd-bg); border-left: 4px solid var(--tbd-line); padding: 12px 16px; font-size: var(--t-sm); color: #5a4600; margin: 0 0 28px; max-width: none; }
.tbd-note strong { color: #3d3000; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--r); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: #ffd54d; color: var(--ink); }
.btn--brand { background: var(--ink); color: var(--white); }
.btn--brand:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.section--ink .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { color: var(--white); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .8); font-size: var(--t-sm); border-bottom: 1px solid var(--rule-dark); }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--signal); }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule-dark), 0 10px 30px rgba(0, 0, 0, .25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { font-weight: 800; font-stretch: var(--wide); font-size: 1.2rem; line-height: 1; letter-spacing: -.01em; }
.logo__text small { display: block; font-weight: 500; font-stretch: 100%; font-size: .75rem; letter-spacing: .02em; opacity: .7; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: block; padding: 10px 12px; color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .95rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--white); }
.nav__link[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }
.nav__link--parent::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); color: var(--ink);
  border-radius: var(--r); box-shadow: 0 18px 40px rgba(14, 42, 47, .22); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav__sub a:hover { background: var(--paper); }
.nav__cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-dark); border-radius: var(--r); padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px; overflow-y: auto; display: none; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--rule-dark); width: 100%; text-align: left; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 4px 0 8px 12px; display: none; }
  .nav__sub a { color: rgba(255, 255, 255, .8); }
  .nav__sub a:hover { background: transparent; color: var(--signal); }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__cta { margin: 20px 0 0; }
  .topbar__hours { display: none; }
}

/* ==========================================================================
   Home hero – globe
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; min-height: min(calc(100svh - 110px), 760px); padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero h1 .line { display: block; }
.hero h1 .line--signal { color: var(--signal); }
.hero__sub { font-size: var(--t-md); color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 32px; }
.hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.globe { position: absolute; inset: -4%; cursor: grab; opacity: 0; transition: opacity 1.4s ease; }
.globe.is-ready { opacity: 1; }
.globe.is-grabbing { cursor: grabbing; }
.globe canvas { width: 100% !important; height: 100% !important; display: block; }
.globe-fallback { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .25);
  background: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.5px) 0 0 / 10px 10px; }
.globe.is-ready + .globe-fallback { display: none; }
.globe-hint { position: absolute; right: 6%; bottom: 4%; font-size: var(--t-sm); color: rgba(255, 255, 255, .55); display: flex; gap: 8px; align-items: center; margin: 0; }
.globe-hint::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* load sequence – the one orchestrated moment on the page */
.hero h1 .line { opacity: 0; transform: translateY(.4em); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) { animation-delay: .12s; }
.hero h1 .line:nth-child(3) { animation-delay: .24s; }
.hero__sub, .hero .btn-row { opacity: 0; animation: rise .9s var(--ease) .45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero__stage { justify-self: center; max-width: 400px; order: -1; margin-bottom: -10px; }
}

/* ==========================================================================
   Departure board – course finder
   ========================================================================== */
.finder { background: var(--ink); color: var(--white); padding: 24px 0 clamp(64px, 9vw, 110px); scroll-margin-top: 72px; }
.finder__q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; font-size: clamp(1.4rem, 3vw, 2.25rem); font-weight: 700; font-stretch: var(--wide); line-height: 1.3; margin: 0 0 28px; }
.finder__q select { font: inherit; font-size: inherit; font-stretch: var(--wide); color: var(--signal); background-color: transparent; border: 0; border-bottom: 3px solid var(--signal);
  padding: 0 34px 2px 2px; cursor: pointer; appearance: none; -webkit-appearance: none; border-radius: 0; max-width: 100%; width: auto;
  background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(-45deg, transparent 50%, var(--signal) 50%);
  background-position: right 12px center, right 4px center; background-size: 8px 8px; background-repeat: no-repeat; }
.finder__q select:focus { box-shadow: none; }
.finder__q select option { color: var(--ink); background: var(--white); font-size: 1rem; }

.board { background: var(--board); border-radius: 10px; padding: 14px 18px 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.board__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 14px; color: rgba(255, 255, 255, .6); font-size: var(--t-sm); flex-wrap: wrap; }
.board__title { font-weight: 800; font-stretch: var(--wide); color: var(--white); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.board__title svg { width: 20px; height: 20px; color: var(--signal); }
.board__head, .board__row { display: grid; grid-template-columns: 70px 1.8fr 1fr 170px; gap: 16px; align-items: center; }
.board__head { padding: 8px 10px; font-size: .8rem; color: rgba(255, 255, 255, .5); border-bottom: 1px solid var(--rule-dark); }
.board__row { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); min-height: 62px; }
.board__row:last-child { border-bottom: 0; }
.board__actions { display: flex; gap: 8px; justify-content: flex-end; }
.board__actions a { font-size: .85rem; font-weight: 700; padding: 7px 12px; border-radius: 4px; text-decoration: none; }
.board__actions .go { background: var(--signal); color: var(--ink); }
.board__actions .info { color: var(--white); box-shadow: inset 0 0 0 1px var(--rule-dark); }
.board__actions .info:hover { box-shadow: inset 0 0 0 1px var(--white); color: var(--white); }
.board__actions .go:hover { background: #ffd54d; color: var(--ink); }
.board__row.is-empty .board__actions { visibility: hidden; }
.board__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 10px 0; color: rgba(255, 255, 255, .6); font-size: var(--t-sm); }
.board__foot a { color: var(--signal); }

/* split-flap characters */
.flap .w { display: inline-flex; gap: 2px; font-style: normal; }
.flap { display: inline-flex; flex-wrap: wrap; gap: 4px 9px; min-height: 1.5em; font-weight: 700; font-stretch: var(--narrow); text-transform: uppercase; line-height: 1; perspective: 300px; }
.flap span { position: relative; display: inline-grid; place-items: center; min-width: .8em; height: 1.5em; padding: 0 .08em; background: #123236; color: var(--white); border-radius: 2px; font-size: 1.05rem; }
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap span.sp { background: transparent; min-width: .4em; }
.flap span.sp::after { display: none; }
.flap span.is-flipping { animation: flip .08s linear; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); filter: brightness(.5); } 100% { transform: rotateX(0); } }
.flap--gate span { background: var(--signal); color: var(--ink); font-size: 1.15rem; min-width: 1.3em; }
.flap--gate span::after { background: rgba(0, 0, 0, .2); }
.flap--area span { color: rgba(255, 255, 255, .7); font-size: .9rem; }

@media (max-width: 760px) {
  .board { padding: 10px 12px 14px; }
  .board__head { display: none; }
  .board__row { grid-template-columns: 44px 1fr; gap: 8px 12px; padding: 14px 2px; }
  .board__row .flap--area { grid-column: 2; }
  .board__actions { grid-column: 2; justify-content: flex-start; }
  .flap span { font-size: .85rem; }
}

/* ==========================================================================
   Level check quiz
   ========================================================================== */
.quiz-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quiz { background: var(--white); border-radius: 10px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 0 0 1px var(--rule), 0 24px 60px -30px rgba(14, 42, 47, .35); min-height: 340px; }
.quiz__progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz__progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); transition: background .3s; }
.quiz__progress span.is-done { background: var(--ink); }
.quiz__count { font-size: var(--t-sm); color: var(--slate); margin-bottom: 8px; }
.quiz__q { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; margin-bottom: 22px; }
.quiz__q em { font-style: normal; display: inline-block; min-width: 4em; border-bottom: 2px solid var(--ink); text-align: center; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__opts button { font: inherit; font-weight: 600; text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.quiz__opts button:hover:not(:disabled) { border-color: var(--ink); }
.quiz__opts button.is-right { background: #e3f1ea; border-color: #2f7a55; }
.quiz__opts button.is-wrong { background: #fbe7e5; border-color: var(--stamp); }
.quiz__opts button:disabled { cursor: default; }
.quiz__feedback { min-height: 1.6em; margin: 14px 0 0; font-size: .95rem; color: var(--slate); }
.quiz__level { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; color: var(--stamp); font-weight: 800; font-stretch: var(--wide); font-size: 2.2rem;
  transform: rotate(-12deg); margin-bottom: 18px; animation: stampIn .5s var(--ease); box-shadow: inset 0 0 0 3px var(--stamp), inset 0 0 0 8px var(--white), inset 0 0 0 10px var(--stamp); }
@keyframes stampIn { from { transform: rotate(-12deg) scale(1.8); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
@media (max-width: 860px) { .quiz-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .quiz__opts { grid-template-columns: 1fr; } }

/* ==========================================================================
   Course areas – type index
   ========================================================================== */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index-list a { display: grid; grid-template-columns: 64px 1fr minmax(0, 340px) 40px; gap: 24px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; transition: color .25s, padding .3s var(--ease); }
.index-list a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); z-index: -1; }
.index-list a:hover, .index-list a:focus-visible { color: var(--white); padding-left: 20px; }
.index-list a:hover::before, .index-list a:focus-visible::before { transform: scaleY(1); }
.index-list .gate { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--paper); font-weight: 800; font-stretch: var(--narrow); font-size: 1.3rem; transition: background .25s, color .25s; }
.index-list a:hover .gate, .index-list a:focus-visible .gate { background: var(--signal); color: var(--ink); }
.index-list .name { font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 750; font-stretch: var(--wide); line-height: 1.05; }
.index-list .name small { display: block; font-size: .9rem; font-stretch: 100%; font-weight: 500; color: var(--slate); margin-top: 6px; transition: color .25s; }
.index-list a:hover .name small, .index-list a:focus-visible .name small { color: rgba(255, 255, 255, .7); }
.index-list .desc { font-size: .95rem; color: var(--slate); transition: color .25s; }
.index-list a:hover .desc, .index-list a:focus-visible .desc { color: rgba(255, 255, 255, .8); }
.index-list .arrow { width: 28px; height: 28px; transition: transform .3s var(--ease); }
.index-list a:hover .arrow { transform: translateX(6px); color: var(--signal); }
@media (max-width: 760px) {
  .index-list a { grid-template-columns: 48px 1fr 24px; gap: 14px; }
  .index-list .desc { display: none; }
}

/* ==========================================================================
   Boarding pass tickets (course cards)
   ========================================================================== */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; perspective: 1200px; }
.ticket { --hole: var(--white); position: relative; display: grid; grid-template-columns: 1fr 108px; background: var(--white); border-radius: 12px; color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 20px 40px -26px rgba(14, 42, 47, .45); transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .3s var(--ease), box-shadow .3s; }
.section--soft .ticket, .section--warm .ticket { --hole: var(--paper); box-shadow: 0 20px 40px -26px rgba(14, 42, 47, .45); }
.ticket:hover { box-shadow: 0 0 0 1px var(--rule), 0 30px 50px -24px rgba(14, 42, 47, .55); }
.ticket__main { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--slate); }
.ticket__top b { font-weight: 800; font-stretch: var(--wide); color: var(--ink); font-size: .95rem; }
.ticket h3 { font-size: 1.3rem; font-stretch: 110%; margin: 4px 0 0; }
.ticket h3 a { text-decoration: none; }
.ticket h3 a:hover { text-decoration: underline; color: var(--ink); }
.ticket p { color: var(--slate); font-size: .95rem; margin: 0; }
.ticket__fields { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 26px; margin: auto 0 0; padding-top: 12px; font-size: .78rem; color: var(--slate); }
.ticket__fields div { display: flex; flex-direction: column; }
.ticket__fields dt { margin: 0; }
.ticket__fields dd { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.ticket__stub { position: relative; border-left: 2px dashed var(--rule); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 10px; gap: 12px; }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--hole); box-shadow: inset 0 0 0 1px var(--rule); }
.section--soft .ticket__stub::before, .section--soft .ticket__stub::after, .section--warm .ticket__stub::before, .section--warm .ticket__stub::after { box-shadow: none; }
.ticket__stub::before { top: -12px; clip-path: inset(50% 0 0 0); } .ticket__stub::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.ticket__gate { font-weight: 800; font-stretch: var(--narrow); font-size: 2.6rem; line-height: 1; text-align: center; }
.ticket__gate small { display: block; font-size: .7rem; font-weight: 600; font-stretch: 100%; color: var(--slate); margin-bottom: 4px; }
.ticket__barcode { width: 64px; height: 30px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .8; }
.ticket__stub .btn { width: 100%; padding: 9px 6px; font-size: .88rem; }
@media (max-width: 400px) { .tickets { grid-template-columns: 1fr; } .ticket { grid-template-columns: 1fr 92px; } }

/* ==========================================================================
   Passport stamps – arrival to graduation
   ========================================================================== */
.passport { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.passport__intro { position: sticky; top: 110px; }
.passport__pages { display: grid; grid-template-columns: 1fr 1fr; background: #f7f9f6; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px rgba(14, 42, 47, .4);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(95, 116, 113, .08) 27px 28px); position: relative; list-style: none; margin: 0; padding: 0; }
.passport__pages::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule); box-shadow: 0 0 18px 4px rgba(14, 42, 47, .08); }
.visa { padding: 28px 26px; min-height: 200px; border-bottom: 1px dashed var(--rule); position: relative; }
.visa:nth-last-child(-n+2) { border-bottom: 0; }
.visa h3 { font-size: 1.05rem; margin: 16px 0 4px; }
.visa p { font-size: .92rem; color: var(--slate); margin: 0; }
.stampmark { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 2.5px solid var(--c, var(--stamp)); color: var(--c, var(--stamp)); border-radius: 8px;
  font-weight: 800; font-stretch: var(--narrow); text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; transform: rotate(var(--rot, -6deg)); mix-blend-mode: multiply; }
.stampmark svg { width: 22px; height: 22px; }
.stampmark b { font-size: .8rem; font-weight: 700; border-left: 2px solid currentColor; padding-left: 8px; }
.visa:nth-child(3n+2) .stampmark { --c: var(--ink); --rot: 4deg; border-radius: 40px; }
.visa:nth-child(4n+3) .stampmark { --c: #2f6f8f; --rot: -3deg; }
.js .visa .stampmark { opacity: 0; }
.js .visa.is-stamped .stampmark { animation: stamp .45s var(--ease) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(var(--rot, -6deg)) scale(1.8); } 70% { opacity: 1; transform: rotate(var(--rot, -6deg)) scale(.95); } 100% { opacity: .92; transform: rotate(var(--rot, -6deg)) scale(1); } }
@media (max-width: 900px) { .passport { grid-template-columns: 1fr; } .passport__intro { position: static; } }
@media (max-width: 560px) {
  .passport__pages { grid-template-columns: 1fr; }
  .passport__pages::after { display: none; }
  .visa { min-height: 0; }
  .visa:nth-last-child(2) { border-bottom: 1px dashed var(--rule); }
}

/* ---------- Strengths strip ---------- */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.strip > div { padding: 24px 22px 8px 0; }
.strip > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.strip h3 { font-size: 1.05rem; margin-bottom: 6px; }
.strip p { font-size: .93rem; color: var(--slate); margin: 0; }
@media (max-width: 960px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(odd) { padding-left: 0; border-left: 0; } .strip > div { border-bottom: 1px solid var(--rule); padding-bottom: 22px; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } .strip > div { padding-left: 0 !important; border-left: 0 !important; } }

/* ---------- Postcards (testimonials) ---------- */
.postcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.postcard { background: var(--white); padding: 22px; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -24px rgba(14, 42, 47, .45); transform: rotate(var(--rot, -1.5deg)); transition: transform .3s var(--ease);
  display: grid; grid-template-columns: 1fr auto; gap: 16px; border-radius: 4px; margin: 0; }
.postcard:nth-child(2) { --rot: 1.2deg; } .postcard:nth-child(3) { --rot: -.6deg; }
.postcard:hover { transform: rotate(0) translateY(-4px); }
.postcard blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; border-right: 1px solid var(--rule); padding-right: 16px; }
.postcard figcaption { font-size: .9rem; grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 12px; }
.postcard .postage { width: 54px; height: 64px; border: 2px dotted var(--rule); display: grid; place-items: center; font-size: .7rem; color: var(--slate); text-align: center; }
@media (max-width: 860px) { .postcards { grid-template-columns: 1fr; } }

/* ---------- Article list ---------- */
.article-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.article-list li { border-top: 1px solid var(--rule); }
.article-list a { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; padding: 22px 0; text-decoration: none; align-items: baseline; }
.article-list .cat { font-size: .88rem; color: var(--slate); }
.article-list .title { font-size: var(--t-md); font-weight: 700; }
.article-list .date { font-size: .88rem; color: var(--slate); }
.article-list a:hover .title { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .article-list a { grid-template-columns: 1fr; gap: 4px; } }

.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.logo-row > div { background: var(--white); aspect-ratio: 3/2; display: grid; place-items: center; color: var(--slate); font-size: .85rem; }
@media (max-width: 760px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Inner page hero – flight path breadcrumb
   ========================================================================== */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding: 48px 0 72px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 18ch; margin-bottom: 18px; }
.page-hero p { color: rgba(255, 255, 255, .78); font-size: var(--t-md); max-width: 40em; margin: 0; }
.route { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; font-size: var(--t-sm); color: rgba(255, 255, 255, .7); flex-wrap: wrap; }
.route a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.route a:hover { color: var(--signal); }
.route__path { display: flex; align-items: center; width: 120px; }
.route__path::before { content: ""; flex: 1; border-top: 2px dashed var(--signal); transform-origin: left; animation: drawPath .9s var(--ease) both; }
.route__path svg { width: 18px; height: 18px; color: var(--signal); margin-left: 4px; animation: land .9s var(--ease) both; }
@keyframes drawPath { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes land { from { transform: translateX(-100px); opacity: 0; } to { transform: none; opacity: 1; } }
.route b { color: var(--white); font-weight: 700; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.6px) 0 0 / 12px 12px; -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%); mask-image: radial-gradient(circle, #000 40%, transparent 70%); }

/* ==========================================================================
   Generic building blocks (inner pages)
   ========================================================================== */
.grid { display: grid; gap: 28px 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { border-top: 2px solid var(--ink); padding: 20px 4px 8px 0; display: flex; flex-direction: column; }
.card--shadow { background: var(--white); border-top: 0; border-radius: 10px; padding: 26px; box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -30px rgba(14, 42, 47, .4); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); }
.card__foot { margin-top: auto; padding-top: 12px; }
.card__icon { color: var(--stamp); margin-bottom: 14px; display: block; }
.card__icon svg { width: 28px; height: 28px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 3px; background: var(--paper); color: var(--ink); }
.section--soft .tag { background: var(--white); }
.tag--accent { background: var(--signal) !important; }
.meta { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.media-ph { aspect-ratio: 16 / 10; border-radius: 8px; display: grid; place-items: center; text-align: center; color: var(--slate); font-size: .9rem; padding: 16px;
  background: radial-gradient(circle, rgba(14, 42, 47, .14) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--paper); border: 1px solid var(--rule); }
.section--soft .media-ph, .section--warm .media-ph { background-color: var(--white); }
.media-ph--square { aspect-ratio: 1; }
.media-ph--wide { aspect-ratio: 16 / 9; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--stamp); border-bottom: 2.5px solid var(--stamp); transform: rotate(-45deg); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 72px 1fr; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-weight: 800; font-stretch: var(--narrow); font-size: 2.2rem; line-height: 1; color: var(--stamp); }
.steps h3 { font-size: 1.1rem; margin: 0; }
.steps p { margin: 0; color: var(--slate); }

.cta-band { background: var(--ink); color: var(--white); border-radius: 12px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 250px; height: 250px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(242, 194, 48, .35), inset 0 0 0 12px var(--ink), inset 0 0 0 14px rgba(242, 194, 48, .35); transform: rotate(-12deg); }
.cta-band h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); }
.cta-band .btn--light { background: var(--signal); }
.cta-band .btn--light:hover { background: #ffd54d; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 13px 14px 13px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; font-size: .88rem; color: var(--slate); }
tr:last-child td { border-bottom: 0; }

/* ---------- Filters (gates) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn { font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 14px 8px 8px; border-radius: 4px; border: 1.5px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-btn .g { font-weight: 800; font-stretch: var(--narrow); background: var(--paper); color: var(--ink); border-radius: 2px; padding: 1px 7px; }
.filter-btn[aria-pressed="true"] .g { background: var(--signal); }
.section--soft .filter-btn { background: var(--white); }
[hidden] { display: none !important; }

.course-group { margin-bottom: 80px; scroll-margin-top: 100px; }
.course-group__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin-bottom: 28px; }
.course-group__head .gate { grid-row: span 2; display: grid; place-items: center; width: 68px; height: 68px; background: var(--ink); color: var(--signal); border-radius: 6px; font-weight: 800; font-stretch: var(--narrow); font-size: 2.1rem; }
.course-group__head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.course-group__head p { margin: 0; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 5px; border-right: 2.5px solid var(--stamp); border-bottom: 2.5px solid var(--stamp); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--slate); }
.faq h2 { margin: 56px 0 4px; font-size: 1.6rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.faq h2:first-child { margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form > h2 { font-size: 1.35rem; font-stretch: 110%; margin: 22px 0 0; padding-top: 22px; border-top: 2px solid var(--ink); }
.form > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .req { color: var(--stamp); }
.field .hint { font-size: .82rem; color: var(--slate); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 194, 48, .55); }
input[type="file"] { font: inherit; font-size: .9rem; }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 18px; }
.radio-row label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; margin: 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); width: 18px; height: 18px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--stamp); }
.field .error { color: var(--stamp); font-size: .82rem; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; }
.form-status { padding: 18px 20px; border-radius: var(--r); background: #e3f1ea; color: #1d5a3c; border-left: 4px solid #2f7a55; }
.form-panel { background: var(--white); border-radius: 12px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -36px rgba(14, 42, 47, .45); }

/* Wizard */
.wizard__progress { list-style: none; padding: 0; margin: 0 0 32px; display: flex; counter-reset: wz; border-bottom: 2px solid var(--rule); }
.wizard__progress li { flex: 1; counter-increment: wz; font-size: .82rem; font-weight: 600; color: var(--slate); padding: 0 4px 12px; position: relative; }
.wizard__progress li::before { content: counter(wz, decimal-leading-zero); display: block; font-weight: 800; font-stretch: var(--narrow); font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.wizard__progress li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: transparent; transition: background .3s; }
.wizard__progress li.is-active { color: var(--ink); }
.wizard__progress li.is-active::after { background: var(--stamp); }
.wizard__progress li.is-done { color: var(--ink); }
.wizard__progress li.is-done::after { background: var(--ink); }
@media (max-width: 640px) { .wizard__progress li span { display: none; } }
.wizard__step { display: none; }
.wizard__step.is-active { display: grid; gap: 18px; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wizard__step h2 { font-size: 1.5rem; margin: 0; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.repeat-block { border: 1.5px dashed var(--rule); border-radius: var(--r); padding: 18px; display: grid; gap: 16px; margin-bottom: 12px; }
.repeat-block h3 { margin: 0; }
.conditional { display: grid; gap: 16px; padding-left: 16px; border-left: 3px solid var(--signal); }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; font-stretch: 100%; }

/* ---------- Footer ---------- */
.newsletter { background: var(--signal); color: var(--ink); padding: 44px 0; }
.newsletter .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { margin: 0 0 4px; font-size: 1.7rem; }
.newsletter p { margin: 0; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 480px; min-width: 260px; }
.newsletter input { border-color: var(--ink); }
.newsletter .field { flex: 1; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 24px; font-size: .95rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid var(--rule-dark); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rule-dark); font-size: .78rem; font-weight: 700; }
.socials a:hover { background: var(--signal); color: var(--ink); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .visa .stampmark { opacity: .92; }
}
