/* =========================================================
   YORK ENGLISH — Core stylesheet
   Mobile-first. Edit tokens in :root to retheme the site.
   ========================================================= */

:root {
  /* Brand */
  --navy: #071B3A;
  --navy-2: #0D2a55;
  --navy-3: #16386b;
  --red: #E50920;
  --red-dark: #B80619;
  --white: #FFFFFF;
  --grey: #E9EEF4;
  --grey-2: #C9D3E0;
  --ink: #0B1730;
  --muted: #55637A;

  /* Illustration / learning accents (used sparingly) */
  --sky: #3D8BFF;
  --teal: #12B5A6;
  --mint: #7FE3C4;
  --sun: #FFC845;
  --coral: #FF6B5A;
  --violet: #7B5CFF;

  /* Type */
  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-sub: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;

  --shadow-sm: 0 2px 6px rgba(7, 27, 58, .06), 0 1px 2px rgba(7, 27, 58, .06);
  --shadow: 0 18px 40px -18px rgba(7, 27, 58, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.section--navy { background: var(--navy); color: var(--white); }
.section--grey { background: var(--grey); }
.section--red { background: var(--red); color: var(--white); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .92;
  font-size: clamp(3.2rem, 10vw, 8rem);
}
.display--xl { font-size: clamp(3.6rem, 13vw, 11rem); }
.display--md { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
.display--sm { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-sub); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 34px; height: 4px; background: var(--red); transform: skewX(-20deg); }
.section--navy .eyebrow, .section--red .eyebrow { color: var(--white); }
.section--red .eyebrow::before { background: var(--white); }
.lead { font-family: var(--f-sub); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.section--navy .lead { color: #B8C4D8; }
.h-sub { font-family: var(--f-sub); font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; }
.text-red { color: var(--red); }
.muted { color: var(--muted); }
.section--navy .muted { color: #9FB0C9; }

/* The brand's slanted red slab */
.slab {
  display: inline-block; position: relative; color: var(--white);
  padding: .06em .32em .0em; margin-left: .12em; isolation: isolate;
}
.slab::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: skewX(-14deg);
}
.dash { display: block; width: 64px; height: 7px; background: var(--red); transform: skewX(-20deg); margin-bottom: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font-family: var(--f-sub); font-weight: 800; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bg);
  border-radius: 6px; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(229, 9, 32, .6); }
.btn:hover svg { transform: translateX(4px); }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { box-shadow: 0 12px 24px -12px rgba(7, 27, 58, .6); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); box-shadow: none; }
.btn--white { --bg: #fff; --fg: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.link-arrow { font-family: var(--f-sub); font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; color: var(--red); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--grey); box-shadow: 0 6px 24px -18px rgba(7,27,58,.4); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
@media (min-width: 1080px) { .brand img { height: 58px; } }
.nav { display: none; }
.nav a {
  position: relative; font-family: var(--f-sub); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); padding: .5rem 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0) skewX(-20deg); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(-20deg); }
.header-cta { display: none; }
.menu-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: var(--navy); border-radius: 10px;
}
.menu-btn span { display: block; width: 22px; height: 2.5px; background: #fff; position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: #fff; transition: transform .3s var(--ease); }
.menu-btn span::before { transform: translateY(-7px); }
.menu-btn span::after { transform: translateY(7px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 2rem var(--gutter) 2.5rem; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
.menu-open { overflow: hidden; }
.mobile-menu a.mm-link {
  font-family: var(--f-display); font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.08; text-decoration: none; text-transform: uppercase;
  display: flex; align-items: baseline; gap: .8rem; padding: .1rem 0; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease), color .2s;
}
.mobile-menu a.mm-link small { font-family: var(--f-sub); font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.mobile-menu a.mm-link[aria-current="page"], .mobile-menu a.mm-link:hover { color: var(--red); }
.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 2rem; font-size: .92rem; color: #B8C4D8; display: grid; gap: .3rem; }
.mobile-menu .mm-foot a { text-decoration: none; }
.mobile-menu .mm-lion { position: absolute; right: -40px; bottom: 30px; width: 260px; opacity: .07; pointer-events: none; }

@media (min-width: 1080px) {
  .menu-btn, .mobile-menu { display: none; }
  .nav { display: flex; gap: clamp(1.1rem, 2vw, 2rem); }
  .header-cta { display: inline-flex; min-height: 44px; padding: .6rem 1.2rem; }
}

/* ---------- Page transition ---------- */
.page-veil { position: fixed; inset: 0; z-index: 1000; background: var(--navy); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.is-leaving .page-veil { transform: scaleY(1); transition: transform .38s var(--ease); }
main { animation: page-in .6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-line { display: block; overflow: hidden; }
.js .reveal-line > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .is-in .reveal-line > span, .js .reveal-line.is-in > span { transform: none; }

/* ---------- Ghost word / watermark ---------- */
.ghost {
  position: absolute; font-family: var(--f-display); line-height: .8; text-transform: uppercase; pointer-events: none; user-select: none;
  font-size: clamp(10rem, 34vw, 30rem); color: rgba(7,27,58,.045); white-space: nowrap; z-index: 0;
}
.section--navy .ghost { color: rgba(255,255,255,.04); }
.lion-mark { position: absolute; pointer-events: none; user-select: none; z-index: 0; }

/* ---------- HERO (home) ---------- */
.hero { position: relative; overflow: hidden; background: #fff; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(7rem, 14vw, 11rem); }
.hero .petals { position: absolute; top: -40px; right: -60px; width: min(620px, 80vw); opacity: .55; z-index: 0; }
.hero .lion-mark { right: -12%; bottom: 8%; width: min(760px, 95vw); opacity: .07; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; }
.hero-tag { font-family: var(--f-sub); font-weight: 700; font-style: italic; color: var(--navy); font-size: clamp(.95rem, 1.6vw, 1.15rem); display: flex; gap: .9rem; align-items: center; margin-bottom: 1.4rem; }
.hero-tag::before { content: ""; width: 4px; height: 2.2em; background: var(--red); }
.hero h1 { color: var(--navy); font-size: clamp(3.4rem, 12.5vw, 8.6rem); }
.hero h1 .slab { margin-top: .12em; }
.hero .lead { margin-top: 1.6rem; color: var(--muted); }
.hero .btn-row { margin-top: 2rem; }
.hero-art { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 1; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero h1 { font-size: clamp(3.6rem, 6.3vw, 7.2rem); }
  .hero { padding-top: 4rem; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}

/* Illustration motion (lightweight CSS only) */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-b { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(8px) rotate(-2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.float { animation: float 6s ease-in-out infinite; transform-box: fill-box; }
.float-b { animation: float-b 7s ease-in-out infinite; transform-box: fill-box; }
.float-d1 { animation-delay: -1.5s; } .float-d2 { animation-delay: -3s; } .float-d3 { animation-delay: -4.5s; }
.spin-slow { animation: spin 80s linear infinite; transform-box: fill-box; transform-origin: center; }
.trail { animation: dash 6s linear infinite; }
.twinkle { animation: twinkle 3s ease-in-out infinite; }

/* ---------- Marquee band ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 1.1rem 0; border-top: 6px solid var(--red); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: .04em; padding-inline: 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.8rem; }
.marquee span::after { content: ""; width: 14px; height: 14px; background: var(--red); transform: skewX(-20deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / editorial split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.2fr .8fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}
.big-quote { font-family: var(--f-display); text-transform: uppercase; color: var(--navy); font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .95; }
.big-quote em { font-style: normal; color: var(--red); }
.section--navy .big-quote { color: #fff; }
.prose p { font-size: 1.06rem; color: #2B3A52; max-width: 62ch; }
.section--navy .prose p { color: #C9D3E0; }
.prose p.lead-p { font-family: var(--f-sub); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--navy); line-height: 1.5; }
.section--navy .prose p.lead-p { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--grey); border: 1px solid var(--grey); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.stat { background: #fff; padding: 1.4rem 1.2rem; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--navy); }
.stat b i { font-style: normal; color: var(--red); }
.stat span { font-family: var(--f-sub); font-weight: 600; font-size: .82rem; color: var(--muted); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Section head ---------- */
.sec-head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.sec-head .lead { margin: 0; }

/* ---------- Programme cards ---------- */
.prog-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }
.prog-card {
  --accent: var(--sky);
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--grey); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.prog-art { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.prog-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s var(--ease); }
.prog-card:hover .prog-art svg { transform: scale(1.06); }
.prog-num { position: absolute; top: 1rem; left: 1.1rem; z-index: 2; font-family: var(--f-display); font-size: 1.4rem; color: #fff; letter-spacing: .05em; }
.level-pill {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; font-family: var(--f-sub); font-weight: 800; font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; background: #fff; color: var(--navy); padding: .35rem .7rem; border-radius: 99px;
}
.prog-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.prog-body h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--navy); text-transform: uppercase; margin-bottom: .6rem; }
.prog-body > p { color: var(--muted); font-size: .96rem; }
.prog-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1.1rem; }
.prog-meta span { font-family: var(--f-sub); font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--grey); padding: .3rem .6rem; border-radius: 6px; }
.objectives { list-style: none; display: grid; gap: .45rem; margin-bottom: 1.4rem; font-size: .92rem; }
.objectives li { position: relative; padding-left: 1.5rem; }
.objectives li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 4px; background: var(--accent); transform: skewX(-20deg); }
.obj-title { font-family: var(--f-sub); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: .6rem; }
.prog-card .btn { margin-top: auto; align-self: flex-start; min-height: 46px; padding: .7rem 1.2rem; font-size: .76rem; }
.prog-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.prog-details > div { overflow: hidden; }
.prog-card.is-open .prog-details { grid-template-rows: 1fr; }
.prog-details dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1.3rem; padding: 1rem; background: var(--grey); border-radius: 10px; font-size: .88rem; }
.prog-details dt { font-family: var(--f-sub); font-weight: 800; color: var(--navy); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .1em; }
.prog-details dd { margin: 0; color: #2B3A52; }
.prog-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.prog-card .btn .chev { transition: transform .3s; }
.prog-card.is-open .btn .chev { transform: rotate(180deg); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  border: 2px solid var(--grey); background: #fff; border-radius: 99px; padding: .55rem 1.1rem; min-height: 44px;
  font-family: var(--f-sub); font-weight: 700; font-size: .8rem; color: var(--navy); transition: all .25s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.prog-card.is-hidden { display: none; }

/* ---------- Why choose (numbered editorial list) ---------- */
.why-list { list-style: none; counter-reset: why; border-top: 1px solid rgba(255,255,255,.15); }
.why-item { counter-increment: why; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.why-item::before { content: "0" counter(why); font-family: var(--f-display); font-size: 2.2rem; color: var(--red); line-height: 1; grid-row: span 2; }
.why-item h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.3rem); text-transform: uppercase; }
.why-item p { margin: 0; color: #B8C4D8; max-width: 52ch; }
.section:not(.section--navy) .why-list { border-color: var(--grey); }
.section:not(.section--navy) .why-item { border-color: var(--grey); }
.section:not(.section--navy) .why-item p { color: var(--muted); }

/* ---------- Diagonal / wave transitions ---------- */
.edge-top { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: clamp(40px, 6vw, 90px); }
.edge-bottom { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); }
.has-edge-top { padding-top: calc(clamp(4.5rem, 10vw, 8.5rem) + 40px); }
.has-edge-bottom { padding-bottom: calc(clamp(4.5rem, 10vw, 8.5rem) + 40px); }

/* ---------- Quiz preview / Quiz arena ---------- */
.arena {
  position: relative; background: var(--navy); color: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); isolation: isolate; border: 1px solid rgba(255,255,255,.1);
}
.arena::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 15% 20%, rgba(61,139,255,.35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(123,92,255,.35), transparent 45%);
}
.arena-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--f-sub); font-weight: 700; font-size: .8rem; letter-spacing: .06em; }
.arena-top .pill { background: rgba(255,255,255,.1); padding: .35rem .75rem; border-radius: 99px; text-transform: uppercase; }
.arena-score { display: flex; gap: .6rem; align-items: center; }
.arena-score b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--sun); line-height: 1; }
.arena-body { padding: clamp(1.2rem, 3vw, 2.2rem); }
.q-progress { height: 6px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.q-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--coral)); transition: width .5s var(--ease); }
.q-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; margin-bottom: 1.4rem; }
.q-count { font-family: var(--f-sub); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9FB0C9; margin-bottom: .4rem; }
.q-text { font-family: var(--f-sub); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.75rem); line-height: 1.3; }
.q-text mark { background: none; color: var(--sun); }
.timer { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 6; }
.timer .t-bg { stroke: rgba(255,255,255,.12); }
.timer .t-fg { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 163.4; transition: stroke-dashoffset 1s linear, stroke .3s; }
.timer.is-low .t-fg { stroke: var(--coral); }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.answers { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .answers { grid-template-columns: 1fr 1fr; } }
.answer {
  --c: var(--sky);
  position: relative; display: flex; align-items: center; gap: .9rem; text-align: left; width: 100%;
  min-height: 68px; padding: .9rem 1rem; border: 0; border-radius: 12px; background: var(--c); color: #fff;
  font-family: var(--f-sub); font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); transition: transform .15s, filter .2s, opacity .3s, box-shadow .15s;
}
.answer:nth-child(1) { --c: #2F6FEB; }
.answer:nth-child(2) { --c: #0FA394; }
.answer:nth-child(3) { --c: #E59A00; }
.answer:nth-child(4) { --c: #7B5CFF; }
.answer:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.answer:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.answer .key {
  flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(255,255,255,.22); font-family: var(--f-display); font-size: 1.3rem; font-weight: 400;
}
.answer:disabled { cursor: default; }
.answers.is-locked .answer:not(.is-correct):not(.is-wrong) { opacity: .35; }
.answer.is-correct { box-shadow: inset 0 0 0 3px #fff, 0 0 0 4px rgba(127,227,196,.6); }
.answer.is-wrong { opacity: .55; text-decoration: line-through; }
.answer .mark { margin-left: auto; font-size: 1.3rem; }
.feedback { min-height: 3.4rem; margin-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.feedback p { margin: 0; font-size: .95rem; color: #C9D3E0; flex: 1 1 260px; }
.feedback p strong { color: #fff; }
.feedback .btn { min-height: 46px; padding: .6rem 1.2rem; font-size: .78rem; }
.toast-points { position: absolute; right: 1.2rem; top: 4rem; font-family: var(--f-display); font-size: 2.2rem; color: var(--sun); pointer-events: none; opacity: 0; }
.toast-points.go { animation: points-up 1.1s var(--ease); }
@keyframes points-up { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-30px); } }
.streak { color: var(--coral); }

.results { text-align: center; padding: 1rem 0 .5rem; }
.results .trophy { width: 120px; margin: 0 auto 1rem; }
.results h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.8rem); text-transform: uppercase; }
.results .score-big { font-family: var(--f-display); font-size: clamp(4rem, 10vw, 6rem); color: var(--sun); line-height: 1; }
.results p { color: #C9D3E0; }
.results .btn-row { justify-content: center; margin-top: 1.5rem; }
.result-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.result-stats span { background: rgba(255,255,255,.1); border-radius: 99px; padding: .4rem .9rem; font-family: var(--f-sub); font-weight: 700; font-size: .82rem; }

/* Mode picker (learning page) */
.modes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .modes { grid-template-columns: repeat(4, 1fr); } }
.mode {
  --c: var(--sky);
  position: relative; text-align: left; border: 0; border-radius: var(--radius-lg); padding: 1.4rem 1.3rem 1.3rem; min-height: 220px;
  background: var(--c); color: #fff; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); transition: transform .3s var(--ease), box-shadow .3s;
}
.mode:hover { transform: translateY(-5px) rotate(-.5deg); }
.mode[aria-pressed="true"] { box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), 0 0 0 4px #fff, 0 0 0 7px var(--c); }
.mode svg { position: absolute; right: -8px; bottom: -8px; width: 42%; max-width: 130px; z-index: -1; opacity: .95; transition: transform .5s var(--ease); }
.mode:hover svg { transform: scale(1.08) rotate(-4deg); }
.mode small { font-family: var(--f-sub); font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.mode strong { font-family: var(--f-display); font-weight: 400; font-size: 2.3rem; line-height: .95; text-transform: uppercase; margin: .4rem 0 .5rem; max-width: 8ch; }
.mode span { font-size: .88rem; max-width: 62%; opacity: .92; }
.mode-vocab { --c: #2F6FEB; } .mode-grammar { --c: #0FA394; } .mode-gk { --c: #E59A00; } .mode-geo { --c: #7B5CFF; }

.level-select { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.6rem 0 0; }
.level-select > span { font-family: var(--f-sub); font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-right: .4rem; }

/* Games */
.game-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--grey); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.game-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); text-transform: uppercase; color: var(--navy); }
.game-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.game-head p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.badge-sm { font-family: var(--f-sub); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--grey); color: var(--navy); padding: .4rem .75rem; border-radius: 99px; }
.scramble-target { min-height: 64px; border: 2px dashed var(--grey-2); border-radius: 12px; padding: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; transition: border-color .3s, background .3s; }
.scramble-target.is-right { border-color: var(--teal); background: rgba(18,181,166,.08); border-style: solid; }
.scramble-target.is-wrong { border-color: var(--coral); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.scramble-pool { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 52px; }
.word-tile {
  border: 0; border-radius: 9px; padding: .6rem .9rem; min-height: 44px; background: var(--navy); color: #fff;
  font-family: var(--f-sub); font-weight: 700; font-size: .95rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); transition: transform .15s, background .2s;
}
.word-tile:hover { transform: translateY(-2px); background: var(--navy-3); }
.scramble-target .word-tile { background: var(--sky); }
.game-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; align-items: center; }
.game-actions .btn { min-height: 46px; padding: .6rem 1.1rem; font-size: .76rem; }
.game-msg { font-family: var(--f-sub); font-weight: 700; font-size: .9rem; color: var(--navy); }

.match-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 560px) { .match-grid { grid-template-columns: repeat(4, 1fr); } }
.match-tile {
  position: relative; min-height: 88px; border: 0; border-radius: 12px; padding: .7rem; background: var(--grey); color: var(--navy);
  font-family: var(--f-sub); font-weight: 700; font-size: .86rem; line-height: 1.25; transition: transform .2s, background .25s, color .25s, opacity .3s;
}
.match-tile:hover:not(:disabled) { transform: translateY(-2px); background: #dde5ef; }
.match-tile.is-word { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; }
.match-tile.is-picked { background: var(--navy); color: #fff; }
.match-tile.is-done { background: var(--teal); color: #fff; cursor: default; }
.match-tile.is-miss { background: var(--coral); color: #fff; }

/* ---------- Accordion (values, guides) ---------- */
.acc { border-top: 1px solid var(--grey); }
.section--navy .acc, .section--navy .acc-item { border-color: rgba(255,255,255,.15); }
.acc-item { border-bottom: 1px solid var(--grey); }
.acc-btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; text-align: left;
  padding: 1.35rem 0; background: none; border: 0; color: inherit;
}
.acc-btn .n { font-family: var(--f-display); font-size: 1.5rem; color: var(--red); min-width: 2ch; }
.acc-btn .t { font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.acc-btn .plus { width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; position: relative; flex-shrink: 0; opacity: .7; transition: transform .35s var(--ease), background .3s, opacity .3s; }
.acc-btn .plus::before, .acc-btn .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.acc-btn .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.acc-btn:hover .plus { opacity: 1; }
.acc-item.is-open .plus { transform: rotate(180deg); background: var(--red); border-color: var(--red); color: #fff; opacity: 1; }
.acc-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel .inner { padding: 0 0 1.6rem calc(2ch + 1rem + 8px); max-width: 70ch; color: var(--muted); }
.section--navy .acc-panel .inner { color: #C9D3E0; }
.acc-panel .inner p:last-child { margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(4rem, 9vw, 7rem) 0 clamp(5.5rem, 11vw, 9rem); }
.page-hero .ghost { top: 50%; left: -2%; transform: translateY(-50%); color: rgba(255,255,255,.035); }
.page-hero .lion-mark { right: -6%; bottom: -10%; width: min(560px, 80vw); opacity: .09; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3.6rem, 12vw, 9rem); }
.page-hero .lead { color: #B8C4D8; margin-top: 1.4rem; max-width: 46ch; }
.page-hero .crumb { font-family: var(--f-sub); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #9FB0C9; margin-bottom: 1.4rem; }
.page-hero .crumb a { text-decoration: none; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.page-hero-art { max-width: 460px; width: 100%; margin-inline: auto; }

/* ---------- About ---------- */
.story-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .story-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; } .story-grid .sticky { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.mv-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { position: relative; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); overflow: hidden; isolation: isolate; }
.mv-card.navy { background: var(--navy); color: #fff; }
.mv-card.light { background: var(--grey); color: var(--navy); }
.mv-card h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 7vw, 5rem); text-transform: uppercase; line-height: .9; margin-bottom: 1.3rem; }
.mv-card .statement { font-family: var(--f-sub); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; margin-bottom: 1.2rem; }
.mv-card p { font-size: .98rem; }
.mv-card.navy p:not(.statement) { color: #B8C4D8; }
.mv-card.light p:not(.statement) { color: #3B4A62; }
.mv-card .mv-art { position: absolute; right: -30px; top: -30px; width: 190px; opacity: .9; z-index: -1; }

.principles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle {
  position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.5rem 1.3rem;
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.principle:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.principle .p-ico { width: 46px; height: 46px; margin-bottom: 1rem; }
.principle h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; text-transform: uppercase; line-height: 1; margin-bottom: .55rem; }
.principle p { margin: 0; font-size: .92rem; color: #B8C4D8; }
.principle.feature { background: var(--red); border-color: var(--red); }
.principle.feature p { color: #fff; }
.principle.feature h3 { font-size: 2.2rem; }

.promise { position: relative; overflow: hidden; }
.promise .big-quote { max-width: 16ch; }
.promise-lines p { font-family: var(--f-sub); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--navy); max-width: 52ch; padding-left: 1.4rem; border-left: 4px solid var(--red); }
.promise-lines p + p { margin-top: 1.4rem; }

/* ---------- Resources ---------- */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 2rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; border: 0; background: transparent; padding: .8rem 1.1rem; min-height: 48px; border-radius: 10px;
  font-family: var(--f-sub); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: all .25s;
}
.tab:hover { color: var(--navy); background: var(--grey); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.res-panel[hidden] { display: none; }
.res-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }
.res-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.res-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.res-thumb svg { width: 100%; height: 100%; }
.res-thumb .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.res-card:hover .play { transform: scale(1.1); }
.res-thumb .dur { position: absolute; right: .7rem; bottom: .7rem; background: rgba(7,27,58,.85); color: #fff; font-family: var(--f-sub); font-weight: 700; font-size: .72rem; padding: .2rem .5rem; border-radius: 5px; }
.res-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.res-type { font-family: var(--f-sub); font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.res-body h3 { font-family: var(--f-sub); font-weight: 800; font-size: 1.12rem; line-height: 1.3; color: var(--navy); margin-bottom: .5rem; }
.res-body p { font-size: .92rem; color: var(--muted); }
.res-body .link-arrow { margin-top: auto; background: none; border: 0; padding: 0; }
.res-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: .5rem; font-size: .8rem; color: var(--muted); }

.guide { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); padding: 0 1.4rem; }
.guide + .guide { margin-top: 1rem; }
.guide .acc-item:last-child { border-bottom: 0; }
.guide .acc-btn .t { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.guide .acc-panel .inner { padding-left: 0; color: #2B3A52; }
.example { background: var(--grey); border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; padding: .9rem 1rem; margin: .8rem 0; font-size: .95rem; }
.example b { color: var(--navy); }
.example .no { color: var(--red); text-decoration: line-through; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
table.simple th, table.simple td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--grey); }
table.simple th { font-family: var(--f-sub); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--grey); }

.vocab-card { display: block; perspective: 1000px; min-height: 220px; border: 0; background: none; padding: 0; text-align: left; width: 100%; font: inherit; color: inherit; }
.vocab-card > span, .vocab-face > span, .vocab-face > b, .vocab-face > i { display: block; }
.vocab-inner { display: block; position: relative; width: 100%; height: 100%; min-height: 220px; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.vocab-card.is-flipped .vocab-inner { transform: rotateY(180deg); }
.vocab-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.vocab-front { background: var(--navy); color: #fff; }
.vocab-front .w { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; margin-top: auto; }
.vocab-front .pos { font-family: var(--f-sub); font-size: .78rem; font-weight: 700; color: var(--sun); letter-spacing: .06em; }
.vocab-front .hint { font-size: .78rem; color: #9FB0C9; margin-top: .6rem; }
.vocab-back { background: #fff; border: 2px solid var(--navy); color: var(--ink); transform: rotateY(180deg); font-size: .95rem; }
.vocab-back b { font-family: var(--f-sub); color: var(--navy); }
.vocab-back i { color: var(--muted); margin-top: auto; }
.vocab-tag { font-family: var(--f-sub); font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(7,27,58,.72); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(720px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem); animation: page-in .4s var(--ease); }
.modal-box h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--navy); text-transform: uppercase; margin-bottom: .4rem; }
.modal-close { position: absolute; top: .9rem; right: .9rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grey); font-size: 1.4rem; line-height: 1; color: var(--navy); }
.modal-box .prose p, .modal-box .prose li { color: #2B3A52; font-size: 1rem; }
.modal-box .prose h3 { font-family: var(--f-sub); font-weight: 800; color: var(--navy); font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.modal-box .prose ul { padding-left: 1.2rem; }

/* ---------- Progress ---------- */
.dash-grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(12, 1fr); } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; } }
.panel { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 1.9rem); }
.panel h2 { font-family: var(--f-sub); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; }
.panel.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel.navy h2 { color: #9FB0C9; }
.level-ring { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.ring { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .r-bg { stroke: rgba(255,255,255,.12); }
.ring .r-fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.2s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; text-align: center; }
.ring b small { display: block; font-family: var(--f-sub); font-size: .62rem; letter-spacing: .14em; font-weight: 700; color: #9FB0C9; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.kpi { background: var(--grey); border-radius: 12px; padding: 1rem; }
.kpi b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.kpi span { font-family: var(--f-sub); font-size: .76rem; font-weight: 700; color: var(--muted); }
.skill { margin-bottom: 1.1rem; }
.skill-top { display: flex; justify-content: space-between; font-family: var(--f-sub); font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: .4rem; }
.skill-top span { color: var(--muted); font-weight: 600; }
.bar { height: 12px; background: var(--grey); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c, var(--navy)); transition: width 1.1s var(--ease); }
.activity { list-style: none; display: grid; gap: .1rem; }
.activity li { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--grey); font-size: .92rem; }
.activity li:last-child { border-bottom: 0; }
.activity .dot { width: 12px; height: 12px; border-radius: 3px; transform: skewX(-15deg); }
.activity time { font-size: .78rem; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .8rem; }
.badge { text-align: center; padding: 1rem .6rem; border-radius: 14px; background: var(--grey); opacity: .45; filter: grayscale(1); transition: all .4s; }
.badge.is-earned { opacity: 1; filter: none; background: #fff; border: 2px solid var(--grey); }
.badge svg { width: 54px; height: 54px; margin: 0 auto .5rem; }
.badge b { display: block; font-family: var(--f-sub); font-weight: 800; font-size: .8rem; color: var(--navy); line-height: 1.2; }
.badge span { font-size: .72rem; color: var(--muted); }
.goal-list { list-style: none; display: grid; gap: .5rem; }
.goal-list label { display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; border-radius: 10px; background: var(--grey); cursor: pointer; font-size: .94rem; min-height: 48px; }
.goal-list input { width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; }
.goal-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.empty-note { background: var(--grey); border-radius: 12px; padding: 1rem 1.1rem; font-size: .92rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; } }
.contact-cards { display: grid; gap: 1rem; }
.c-card { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--grey); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.c-card:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.c-card .ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.c-card .ico svg { width: 24px; height: 24px; }
.c-card small { display: block; font-family: var(--f-sub); font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.c-card b { font-family: var(--f-sub); font-weight: 700; font-size: clamp(1rem, 2vw, 1.15rem); color: var(--navy); word-break: break-word; }
.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); border: 1px solid var(--grey); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-family: var(--f-sub); font-weight: 700; font-size: .8rem; color: var(--navy); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border: 2px solid var(--grey); border-radius: 10px; background: #fff; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(61,139,255,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .err { font-size: .8rem; color: var(--red); min-height: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .4rem 0 1.4rem; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--red); flex-shrink: 0; }
.form-status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 10px; font-size: .94rem; }
.form-status.ok { background: rgba(18,181,166,.12); color: #0B6B62; }
.form-status.bad { background: rgba(229,9,32,.08); color: var(--red-dark); }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.cta .ghost { color: rgba(255,255,255,.07); bottom: -6%; right: -4%; }
.cta .lion-mark { right: 2%; bottom: -12%; width: min(440px, 60vw); opacity: .16; }
.cta-inner { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.3fr .7fr; } }
.cta .display { color: #fff; }
.cta p { font-family: var(--f-sub); font-weight: 600; font-size: 1.1rem; max-width: 40ch; }
.cta-contacts { display: grid; gap: .5rem; font-family: var(--f-sub); font-weight: 700; }
.cta-contacts a { text-decoration: none; display: flex; gap: .7rem; align-items: center; }
.cta-contacts a:hover { text-decoration: underline; }
.cta-contacts small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; min-width: 6.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D3E0; position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.site-footer .lion-mark { right: -80px; bottom: -60px; width: 420px; opacity: .05; }
.foot-grid { position: relative; z-index: 2; display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-brand img { height: 64px; width: auto; margin-bottom: 1.4rem; }
.foot-slogan { font-family: var(--f-display); font-size: 2rem; line-height: .95; color: #fff; }
.foot-slogan span { color: var(--red); }
.site-footer h3 { font-family: var(--f-sub); font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.foot-bottom { position: relative; z-index: 2; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .82rem; color: #8193AE; }

/* ---------- Misc ---------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(229,9,32,.8); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.note { font-size: .85rem; color: var(--muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-line > span { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
