:root {
  --red: #D52B1E;
  --navy: #0A1F4D;
  --blue: #1846A3;
  --blue-50: #EAF0FB;
  --yellow: #FFC629;
  --orange: #F2741F;
  --paper: #FAF7F1;
  --white: #FFFFFF;
  --ink: #0E1426;
  --muted: #4A5266;
  --line: #E4DED3;
  --muted-dark: #B9C3DA;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 120px; }

/* Type */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.015em; color: var(--white); text-wrap: balance; }
.display em { color: var(--yellow); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.005em; }
.title { font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lead--on-dark { color: var(--muted-dark); }
.body { font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.overline { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--red); margin-bottom: 20px; }
.c-white { color: var(--white); } .c-yellow { color: var(--yellow); } .c-muted-dark { color: var(--muted-dark); }
.c-red { color: var(--red); } .c-blue { color: var(--blue); } .c-orange { color: var(--orange); } .c-navy { color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--sans); border-radius: 999px; padding: 18px 28px; border: 0; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--red { background: var(--red); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.btn--sm { padding: 13px 22px; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
.brand__text span { font-size: 13px; color: var(--muted); font-weight: 500; }
.nav__links { display: flex; gap: 36px; font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__login { font-weight: 600; }
.nav__login:hover, .nav__login[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: 780fr 660fr; background: var(--navy); min-height: 760px; max-width: 1440px; margin: 0 auto; }
.hero__content { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 64px 64px 64px 120px; }
.hero__content { gap: 28px; padding-top: 48px; padding-bottom: 48px; }
.hero__content .overline { margin-bottom: 0; }
.hero .display { font-size: clamp(48px, 5.3vw, 76px); }
.partners { align-self: flex-start; display: inline-flex; align-items: center; gap: 20px; padding: 10px 22px 10px 18px; background: var(--white); border-radius: 14px; }
.partners::after { content: ""; order: 1; width: 1px; height: 32px; background: var(--line); }
.partners img:last-child { order: 2; }
.hero__cta { padding-top: 8px; }
.hero__art { overflow: hidden; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
body { background: var(--navy); }
main, .section--paper { background: var(--paper); }

/* Sections */
.section { padding: 112px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); }
.section--blue { background: var(--blue-50); }

.about { padding-top: 128px; padding-bottom: 120px; }
.about__grid { display: grid; grid-template-columns: 1fr 460px; gap: 96px; align-items: end; }
.photo { border-radius: 20px; object-fit: cover; width: 100%; }
.photo-band { display: grid; grid-template-columns: 1fr 480px; gap: 20px; margin-top: 80px; }
.photo-band .photo { height: 460px; }
.intro-video { margin-top: 80px; }
.intro-video__player { display: block; aspect-ratio: 16 / 9; height: auto; background: #0E1426; }
.intro-video__caption { margin-top: 16px; font-size: 14px; color: var(--muted, #4A5266); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.stat { display: flex; flex-direction: column; gap: 12px; padding: 4px 28px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: 80px; line-height: 1; letter-spacing: -0.02em; }
.stat p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Why */
.why { display: grid; grid-template-columns: 440px 1fr; gap: 80px; }
.why__head { display: flex; flex-direction: column; gap: 20px; }
.why__head .overline { margin-bottom: 0; }
.why__head .photo { height: 300px; border-radius: 16px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.card { background: var(--white); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Split header */
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 64px; }
.split-head > div:first-child { max-width: 640px; }
.split-head > p, .split-head__aside { max-width: 440px; }
.split-head__aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tag { background: var(--blue-50); color: var(--blue); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.step { position: relative; background: rgba(255,255,255,.06); padding: 32px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bar); transform-origin: left center; }
.step__label { font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--muted-dark); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--white); }
.step p { color: var(--muted-dark); font-size: 15px; line-height: 1.55; flex: 1; }
.step__date { color: var(--yellow); font-weight: 600; }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.module { border: 1px solid var(--line); border-radius: 16px; border-top: 6px solid var(--c); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.module:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(10,31,77,.25); }
.module span { font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.module h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.module p { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: auto; }

/* Upcoming events */
.flyers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.flyer { position: relative; overflow: hidden; border-radius: 24px; padding: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.flyer .overline { margin-bottom: 0; }
.flyer::before { content: ""; position: absolute; top: -120px; right: -120px; width: 240px; height: 240px; border-radius: 50%; }
.flyer::after { content: ""; position: absolute; top: 140px; right: 44px; width: 64px; height: 64px; border-radius: 50%; box-sizing: border-box; border: 17.6px solid; }
.flyer--navy { background: var(--navy); }
.flyer--navy::before { background: var(--yellow); }
.flyer--navy::after { border-color: var(--red); }
.flyer--red { background: var(--red); }
.flyer--red::before { background: var(--navy); }
.flyer--red::after { border-color: var(--yellow); }
.flyer__title { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.05; letter-spacing: -0.01em; color: var(--white); max-width: 360px; text-wrap: balance; }
.flyer__body { font-size: 18px; line-height: 1.55; color: var(--muted-dark); max-width: 420px; text-wrap: pretty; }
.flyer__meta { font-weight: 600; font-size: 16px; line-height: 1.3; }
.flyer--red .flyer__body { color: var(--white); }
.flyer .btn { margin-top: auto; }
.flyer > * { position: relative; z-index: 1; }
.who-note { margin-top: 48px; display: flex; align-items: center; gap: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px 36px; }
.who-note .overline { margin-bottom: 0; flex: none; }
.who-note p:last-child { font-size: 18px; line-height: 1.55; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 64px; }
.timeline li { display: flex; flex-direction: column; gap: 12px; }
.timeline li::before { content: ""; display: block; height: 16px; margin-bottom: 8px; background: radial-gradient(circle at 8px 8px, var(--c) 7.5px, transparent 8px), linear-gradient(var(--line), var(--line)) 24px 7px / calc(100% - 24px) 2px no-repeat; }
.timeline__date { font-weight: 600; font-size: 20px; color: var(--c); }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.timeline p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { background: var(--paper); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.audience .photo { height: 220px; border-radius: 12px; }
.audience .h3 { font-size: 28px; }
.audience p { color: var(--muted); line-height: 1.55; }
.countries { margin-top: 56px; background: var(--paper); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-size: 14px; font-weight: 500; }
.chips img { width: 30px; height: 20px; border-radius: 3px; object-fit: cover; }

/* Why join */
.join { display: grid; grid-template-columns: 420px 1fr; gap: 96px; }
.join__head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.join__head .overline { margin-bottom: 0; }
.gains { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; }
.gain { display: flex; flex-direction: column; gap: 14px; }
.gain h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--white); }
.gain p { color: var(--muted-dark); line-height: 1.55; }
.promises { margin-top: 64px; display: flex; justify-content: space-between; gap: 24px; padding: 24px 32px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--white); font-weight: 600; font-size: 17px; }
.promises li { display: flex; align-items: center; gap: 12px; }
.promises li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5 10.5 16 17 9' fill='none' stroke='%230A1F4D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }

/* Register */
.register { display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: start; }
.register__copy { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.register__copy .overline { margin-bottom: 0; }
.register__copy .lead { font-size: 18px; }
.register__copy .photo { height: 300px; border-radius: 16px; }
.flow { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; counter-reset: step; }
.flow li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.flow li::before { content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: var(--white); font-weight: 600; display: grid; place-items: center; }
.flow strong { font-weight: 600; font-size: 20px; }
.flow span { color: var(--muted); }
.form { background: var(--white); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 48px -8px rgba(10,31,77,.08); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select { font: 400 16px var(--sans); color: var(--ink); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); appearance: none; }
.field select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230E1426' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") right 16px center / 16px no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,70,163,.15); }
.field input::placeholder { color: #8A90A0; }
.consent { display: flex; gap: 12px; font-size: 14px; font-weight: 500; color: var(--muted); align-items: flex-start; }
.consent input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin: 0; }
.form__note { font-size: 13px; color: var(--muted); line-height: 1.45; }
.field__error { display: none; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--red); }
.field--error input, .field--error select { border-color: var(--red); }
.field--error input:focus, .field--error select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(213,43,30,.15); }
.field--error .field__error { display: block; }
.field__error a, .field__error button { font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; }
.field__control { position: relative; display: block; }
.field__control input { width: 100%; padding-right: 76px; }
.field__toggle { position: absolute; top: 50%; right: 6px; translate: 0 -50%; font: 600 14px var(--sans); color: var(--blue); background: none; border: 0; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.field__toggle:hover { background: var(--blue-50); }
.consent.field--error span { color: var(--red); }
.link-row { font-size: 15px; font-weight: 500; color: var(--muted); }
.link-row a { color: var(--red); font-weight: 600; }
.link-row a:hover, .link-row button:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-row button { font: inherit; font-weight: 600; color: var(--red); background: none; border: 0; padding: 0; cursor: pointer; }
.event-note { background: var(--blue-50); color: var(--blue); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Auth pages: login, registration success */
.auth { display: grid; grid-template-columns: 780fr 660fr; min-height: calc(100dvh - 79px); background: var(--navy); max-width: 1440px; margin: 0 auto; }
.auth__content { background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 48px 96px 48px 120px; }
.auth__content .overline { margin-bottom: 0; }
.auth__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.5vw, 64px); line-height: 1; letter-spacing: -0.015em; max-width: 560px; text-wrap: balance; }
.auth__title em { color: var(--red); }
.auth__lead { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.auth__lead strong { color: var(--ink); font-weight: 600; }
.auth .form { width: 100%; max-width: 520px; }
.auth .form .h3 { font-size: 32px; }
.auth__art { overflow: hidden; }
.auth__art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.steps-list { counter-reset: s; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.6; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; }
.steps-list li::before { content: counter(s) "."; }
.status { font-size: 14px; font-weight: 500; color: var(--muted); }
.status:empty { display: none; }
.state-group { display: contents; }
[data-state-view][hidden] { display: none !important; }
.partners--outline { border: 1px solid var(--line); }

/* Footer */
.footer { background: var(--navy); color: var(--muted-dark); }
.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }
.footer__inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; }
.footer__brand { max-width: 420px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 1.55; }
.footer__name { font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--white); }
.footer__links { display: flex; gap: 72px; }
.footer__links div { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__links .overline { margin-bottom: 0; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 48px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 40px; font-size: 13px; }
.footer__bottom p:first-child { max-width: 640px; }

/* Responsive */
@media (max-width: 1200px) {
  .container { padding: 0 48px; }
  .hero__content { padding: 64px 48px; }
  .nav__links { gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .flyers { grid-template-columns: 1fr; }
  .auth__content { padding: 48px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .why, .join, .register { grid-template-columns: 1fr; gap: 48px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__actions { gap: 16px; }
  .brand__text span { display: none; }
  .brand__text, .nav__login { white-space: nowrap; }
  .nav .btn--sm { padding: 11px 18px; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__content { padding: 48px 20px 56px; }
  .auth__art { height: 200px; order: -1; }
  .flyer { padding: 32px 24px; }
  .flyer__title { font-size: 40px; }
  .flyer::after { display: none; }
  .who-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
  .partners { gap: 14px; padding: 8px 14px; }
  .partners img:first-child { width: 110px; height: auto; }
  .partners img:last-child { width: 84px; height: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 48px 20px; }
  .hero__art { height: 320px; }
  .photo-band { grid-template-columns: 1fr; margin-top: 48px; }
  .photo-band .photo { height: 260px; }
  .intro-video { margin-top: 48px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat__num { font-size: 56px; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .risk-grid, .gains, .audiences, .steps, .timeline, .modules { grid-template-columns: 1fr; }
  .promises, .footer__top, .footer__bottom { flex-direction: column; }
  .footer__links { gap: 40px; flex-wrap: wrap; }
  .form { padding: 28px 20px; }
}
@media (max-width: 420px) {
  .brand__text { display: none; }
}
/* Motion
 * Hidden states only apply under `.motion` (set in <head> when reduced motion
 * is off) and `.reveal-pending` (set by motion.js), so content never depends
 * on a script to be visible. */
:root { --ease: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); }
::selection { background: var(--yellow); color: var(--navy); }
section[id] { scroll-margin-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section--navy :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.nav { transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.nav--scrolled { border-bottom-color: transparent; box-shadow: 0 8px 24px -16px rgba(10,31,77,.35); }
.nav__links a { position: relative; transition: color .15s ease; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--red); }

.btn { transition: transform .15s ease, filter .15s ease, box-shadow .25s var(--ease); }
.btn span[aria-hidden] { display: inline-block; transition: translate .25s var(--ease); }
.btn:hover span[aria-hidden] { translate: 4px 0; }
.link-row a span[aria-hidden] { display: inline-block; transition: translate .25s var(--ease); }
.link-row a:hover span[aria-hidden] { translate: 3px 0; }

.field input, .field select { transition: border-color .15s ease, box-shadow .2s var(--ease); }
.field--error .field__error { animation: field-error .25s var(--ease); }
@keyframes field-error { from { opacity: 0; translate: 0 -4px; } }

.flyer::before, .flyer::after { transition: transform .6s var(--ease); }
.flyer:hover::before { transform: translate(-14px, 14px) scale(1.06); }
.flyer:hover::after { transform: translate(-6px, 6px); }

.chips li { transition: border-color .15s ease, translate .2s var(--ease); }
.chips li:hover { border-color: var(--muted-dark); translate: 0 -2px; }

/* Focal moment: hero copy arrives as the tiles assemble */
.art-svg { display: block; width: 100%; height: 100%; }
.motion .hero__art img, .motion .auth__art img { opacity: 0; animation: art-fallback 0s 2s forwards; }
.motion .art-ready img { opacity: 1; animation: none; }
@keyframes art-fallback { to { opacity: 1; } }

.motion .hero__content > *, .motion .auth__content > * { animation: rise .9s var(--ease) backwards; }
.motion :is(.hero__content, .auth__content) > :nth-child(1) { animation-delay: .25s; }
.motion :is(.hero__content, .auth__content) > :nth-child(2) { animation-delay: .33s; }
.motion :is(.hero__content, .auth__content) > :nth-child(3) { animation-delay: .41s; }
.motion :is(.hero__content, .auth__content) > :nth-child(4) { animation-delay: .52s; }
.motion :is(.hero__content, .auth__content) > :nth-child(5) { animation-delay: .62s; }
.motion :is(.hero__content, .auth__content) > :nth-child(n+6) { animation-delay: .7s; }
.motion .hero .display { animation: rise-soft 1.1s var(--ease) .41s backwards; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-soft { from { opacity: 0; translate: 0 22px; filter: blur(6px); } }

/* Section reveals */
.ri { transition: opacity .8s var(--ease) var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms), clip-path 1.1s var(--ease) var(--d, 0ms); }
.reveal-pending .ri, .ri.reveal-pending { opacity: 0; translate: 0 24px; transition: none; }
.ri--wipe { clip-path: inset(0 0 0 0); }
.ri--wipe.reveal-pending { opacity: 1; translate: none; clip-path: inset(100% 0 0 0); }
.module.ri { transition: opacity .8s var(--ease) var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms), transform .2s ease, box-shadow .2s ease; }

/* Pathway: each stage's bar draws after the one before it */
.motion .steps .step::before { transition: transform .7s var(--ease) calc(var(--d, 0ms) + 150ms); }
.motion .steps.reveal-pending .step::before { transform: scaleX(0); transition: none; }

/* Register flow: the numbers land in sequence */
.motion .flow li::before { transition: scale .5s var(--ease) calc(var(--d, 0ms) + 100ms); }
.motion .flow.reveal-pending li::before { scale: .4; }

.stat__num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .module, .chips li, .btn span[aria-hidden], .link-row a span[aria-hidden] { transition: none; }
  .btn:hover span[aria-hidden], .link-row a:hover span[aria-hidden], .chips li:hover { translate: none; }
  .flyer::before, .flyer::after { transition: none; }
  .flyer:hover::before, .flyer:hover::after { transform: none; }
  .nav__links a::after { transition: opacity .2s ease; transform: none; opacity: 0; }
  .nav__links a:hover::after, .nav__links a.is-active::after { opacity: 1; }
  .field--error .field__error { animation: field-error-fade .2s ease; }
  @keyframes field-error-fade { from { opacity: 0; } }
}

/* Language switcher (built by i18n.js) */
.i18n-pending body { visibility: hidden; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); color: var(--ink); background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 12px; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: var(--ink); }
.lang__caret { transition: transform .2s var(--ease, ease); }
.lang__btn[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; min-width: 210px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(10,31,77,.35); }
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--paper); outline-offset: -2px; }
.lang__menu a[aria-current="true"] { color: var(--red); font-weight: 600; }
.lang__menu a[aria-current="true"]::after { content: "✓"; }
@media (max-width: 560px) {
  .lang__caret, .brand__text { display: none; }
  .lang__btn { padding: 8px 10px; }
}

/* Per-language type. Brand faces only cover Latin, so other scripts fall back
 * to the Noto faces i18n.js loads, and tall scripts need more line height. */
html:lang(vi) { --serif: "Noto Serif Display", Georgia, serif; }
html:lang(th) { --serif: "Instrument Serif", "Noto Serif Thai", serif; --sans: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, sans-serif; }
html:lang(km) { --serif: "Instrument Serif", "Noto Serif Khmer", serif; --sans: "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, sans-serif; }
html:lang(lo) { --serif: "Instrument Serif", "Noto Serif Lao", serif; --sans: "Plus Jakarta Sans", "Noto Sans Lao", system-ui, sans-serif; }
html:lang(my) { --serif: "Instrument Serif", "Noto Serif Myanmar", serif; --sans: "Plus Jakarta Sans", "Noto Sans Myanmar", system-ui, sans-serif; }
html:is(:lang(th), :lang(km), :lang(lo), :lang(my)) :is(.display, .h2, .h3, .auth__title, .flyer__title, .step h3, .module h3, .gain h3, .footer__name, .stat .title) { line-height: 1.4; letter-spacing: 0; }
html:is(:lang(th), :lang(km), :lang(lo), :lang(my)) .overline { letter-spacing: .03em; }
html:is(:lang(th), :lang(km), :lang(lo), :lang(my)) em { font-style: normal; }
html:is(:lang(km), :lang(my)) :is(.display, .h2, .h3, .auth__title, .flyer__title, .step h3, .module h3, .gain h3, .footer__name) { line-height: 1.6; }
html:is(:lang(km), :lang(my)) :is(main, footer) :is(p, li, span) { line-height: 1.8; }
/* Thai, Lao, Khmer and Burmese glyphs run larger than Latin at the same size. */
html:is(:lang(th), :lang(lo)) .display { font-size: clamp(40px, 4.6vw, 64px); }
html:is(:lang(km), :lang(my)) .display { font-size: clamp(32px, 3.4vw, 48px); }
html:is(:lang(km), :lang(my)) :is(.h2, .auth__title) { font-size: clamp(28px, 2.8vw, 40px); }
html:is(:lang(km), :lang(my)) :is(.h3, .flyer__title) { font-size: clamp(24px, 2.4vw, 32px); }
html:is(:lang(km), :lang(my)) :is(.step h3, .gain h3, .module h3, .footer__name) { font-size: 22px; }
/* Longer translated labels have to fit the phone nav. */
@media (max-width: 480px) {
  .nav__actions { gap: 10px; }
  .nav__login { font-size: 14px; }
  .nav .btn--sm { padding: 10px 14px; font-size: 14px; }
  .lang__btn { padding: 8px; }
  .lang__code { display: none; }
}
/* Selects size to their longest option, which in some languages is wider than a phone. */
.register > * { min-width: 0; }
.field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.stats > * { min-width: 0; }
.stat .title { hyphens: auto; overflow-wrap: anywhere; }
.nav__links a, .nav__login, .nav .btn, .brand__text { white-space: nowrap; }
.nav--compact .nav__links { display: none; }
