/* Sovaa Events - The Oneness Movement brand standard v2
   Two colors only: cream #f9f1de, brown #2f241c (plus the listed alpha tokens).
   Neue Faktum Extended, per-weight families. Body >= 20px, labels >= 16px. Type only. */

@font-face { font-family: 'Neue Faktum Extended ExtraLight'; src: url('/fonts/NeueFaktumExtended-ExtraLight.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Neue Faktum Extended Light'; src: url('/fonts/NeueFaktumExtended-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Neue Faktum Extended Regular'; src: url('/fonts/NeueFaktumExtended-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neue Faktum Extended Medium'; src: url('/fonts/NeueFaktumExtended-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Neue Faktum Extended SemiBold'; src: url('/fonts/NeueFaktumExtended-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --cream: #f9f1de;
  --brown: #2f241c;
  --brown-soft: rgba(47, 36, 28, 0.68);
  --brown-mute: rgba(47, 36, 28, 0.50);
  --rule: rgba(47, 36, 28, 0.16);
  --rule-soft: rgba(47, 36, 28, 0.10);
  --rule-on-dark: rgba(249, 241, 222, 0.22);
  --cream-on-dark: rgba(249, 241, 222, 0.72);
  --f-xlight: 'Neue Faktum Extended ExtraLight', 'Neue Faktum Extended Light', 'Neue Faktum Extended Regular', 'Helvetica Neue', Arial, sans-serif;
  --f-light: 'Neue Faktum Extended Light', 'Neue Faktum Extended Regular', 'Helvetica Neue', Arial, sans-serif;
  --f-regular: 'Neue Faktum Extended Regular', 'Helvetica Neue', Arial, sans-serif;
  --f-medium: 'Neue Faktum Extended Medium', 'Neue Faktum Extended Regular', 'Helvetica Neue', Arial, sans-serif;
  --f-semibold: 'Neue Faktum Extended SemiBold', 'Neue Faktum Extended Medium', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: 48px;
  --header-h: 84px;
}
/* Japanese, Korean, Chinese, Russian: the brand font has no glyphs; keep the same sizes with system faces. */
html:lang(ja), html:lang(ko), html:lang(zh), html:lang(ru) {
  --f-xlight: 'Neue Faktum Extended Light', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream); color: var(--brown);
  font-family: var(--f-regular); font-size: 20px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p + p { margin-top: 1.1em; }
strong, b { font-family: var(--f-semibold); font-weight: 600; }
em, i { font-style: normal; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--cream); padding: 12px 20px; font-family: var(--f-semibold); font-size: 16px; }

/* ---------- type ---------- */
.pre {
  font-family: var(--f-semibold); font-size: 16px; line-height: 1.5; text-transform: uppercase;
  letter-spacing: 0.45em; margin-bottom: 56px;
}
.display { font-family: var(--f-xlight); font-weight: 200; font-size: 88px; line-height: 1.04; letter-spacing: 0.01em; }
.h1 { font-family: var(--f-light); font-weight: 300; font-size: 64px; line-height: 1.1; }
.h2 { font-family: var(--f-light); font-weight: 300; font-size: 52px; line-height: 1.14; }
.h3 { font-family: var(--f-light); font-weight: 300; font-size: 34px; line-height: 1.25; }
.h4 { font-family: var(--f-light); font-weight: 300; font-size: 26px; line-height: 1.35; }
.label { font-family: var(--f-semibold); font-size: 16px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.28em; }
.standfirst { font-size: 22px; line-height: 1.6; letter-spacing: 0.02em; max-width: 760px; }
.soft { color: var(--brown-soft); }
.dark .soft { color: var(--cream-on-dark); }
.center { text-align: center; }
.center .standfirst, .center .narrow { margin-left: auto; margin-right: auto; }
.narrow { max-width: 760px; }
.rule { width: 56px; height: 1px; background: currentColor; opacity: 0.55; margin: 40px 0; border: 0; }
.center .rule { margin-left: auto; margin-right: auto; }
.rule.thick { width: 64px; height: 2px; }
.quote-mark { font-family: var(--f-light); font-size: 96px; line-height: 0.6; display: block; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.chamber { padding: 128px var(--gutter); }
.chamber > .inner { max-width: 1240px; margin: 0 auto; }
.chamber.tight { padding-top: 88px; padding-bottom: 88px; }
.dark { background: var(--brown); color: var(--cream); }
.dark .rule-line, .dark hr { border-color: var(--rule-on-dark); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split.wide-text { grid-template-columns: 1.15fr 0.85fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stack > * + * { margin-top: 28px; }
.mt-l { margin-top: 72px; } .mt-m { margin-top: 48px; } .mt-s { margin-top: 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 32px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark .wm-name { font-family: var(--f-light); font-size: 26px; letter-spacing: 0.32em; text-transform: uppercase; }
.wordmark .wm-sub { font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brown-soft); margin-top: 6px; }
.site-nav { display: flex; gap: 36px; align-items: center; }
.site-nav a { font-family: var(--f-medium); font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-btn { display: none; background: none; border: 1px solid var(--brown); color: var(--brown); font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.24em; text-transform: uppercase; padding: 10px 18px; cursor: pointer; }

/* ---------- language switcher: left edge, vertical, centred ---------- */
.lang-switch {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 45;
  display: flex; flex-direction: column; background: var(--brown); border: 1px solid var(--rule-on-dark); border-left: 0;
}
.lang-switch a {
  color: var(--cream-on-dark); font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.12em;
  padding: 12px 14px; text-align: center; min-width: 56px; border-bottom: 1px solid var(--rule-on-dark);
}
.lang-switch a:last-child { border-bottom: 0; }
.lang-switch a[aria-current="true"] { background: var(--cream); color: var(--brown); }
.lang-switch a:hover { color: var(--cream); }
.lang-switch a[aria-current="true"]:hover { color: var(--brown); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--f-semibold); font-size: 16px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.28em;
  border: 1px solid currentColor; padding: 18px 34px; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  cursor: pointer; background: transparent; color: inherit; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.dark .btn.primary, .btn.primary.on-dark { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.btn.primary { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.dark .btn.primary:hover { background: transparent; color: var(--cream); }
.btn.primary:hover { background: transparent; color: var(--brown); }
.link { font-family: var(--f-semibold); font-size: 16px; text-transform: uppercase; letter-spacing: 0.24em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.btn-row { display: flex; gap: 20px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--cream); background: var(--brown); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,36,28,0.55) 0%, rgba(47,36,28,0.72) 55%, rgba(47,36,28,0.92) 100%); }
.hero .inner { position: relative; padding: 120px var(--gutter); max-width: 1100px; }
.hero .standfirst { margin: 36px auto 0; color: var(--cream-on-dark); }
.hero .btn-row { margin-top: 56px; justify-content: center; }
.hero.short { min-height: 72vh; }
.hero-plain { padding: 152px var(--gutter) 120px; text-align: center; }

/* ---------- image panels ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo-panel { background: var(--brown); overflow: hidden; }
.dark .photo-panel { background: var(--brown); }
.photo-panel img { width: 100%; height: auto; }
.landscape { position: relative; min-height: 560px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.landscape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,36,28,0) 30%, rgba(47,36,28,0.86) 100%); }
.landscape .inner { position: relative; z-index: 1; color: var(--cream); padding: 72px var(--gutter); width: 100%; max-width: 1240px; margin: 0 auto; }

/* ---------- cards & lists ---------- */
.card { border: 1px solid var(--rule); padding: 48px 40px; background: var(--cream); }
.dark .card { background: transparent; border-color: var(--rule-on-dark); }
.card .label { display: block; margin-bottom: 20px; }
.card .h3 { margin-bottom: 20px; }
.card .btn, .card .link { margin-top: 32px; }
.card.program { display: flex; flex-direction: column; }
.card.program .spacer { flex: 1; }
.ruled-list { list-style: none; border-top: 1px solid var(--rule); }
.ruled-list > li { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.dark .ruled-list, .dark .ruled-list > li { border-color: var(--rule-on-dark); }
.ruled-list .h4 { margin-bottom: 8px; }
.ticks { list-style: none; }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule-soft); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 30px; width: 12px; height: 1px; background: currentColor; }
.dark .ticks li { border-color: var(--rule-on-dark); }
.stat .num { font-family: var(--f-xlight); font-size: 72px; line-height: 1; display: block; }
.stat .label { display: block; margin-top: 16px; }

/* ---------- dimensions (OWL / NOA Siddha) ---------- */
.dimension { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 64px 0; border-top: 1px solid var(--rule); }
.dark .dimension { border-color: var(--rule-on-dark); }
.dimension .meta .label { display: block; }
.dimension .meta .label + .label { margin-top: 12px; color: var(--brown-soft); }
.dark .dimension .meta .label + .label { color: var(--cream-on-dark); }
.dimension .h3 { margin-bottom: 12px; }
.dimension .for { font-family: var(--f-medium); color: var(--brown-soft); margin-bottom: 20px; }
.dark .dimension .for { color: var(--cream-on-dark); }
.dimension .when { margin-top: 24px; }
.progression { text-align: center; }
.progression p { font-family: var(--f-light); font-size: 26px; line-height: 1.6; }
.progression p + p { margin-top: 12px; }

/* ---------- prices ---------- */
.price { font-family: var(--f-xlight); font-size: 64px; line-height: 1.05; }
.price-old { font-family: var(--f-regular); font-size: 20px; text-decoration: line-through; color: var(--brown-mute); }
.included { list-style: none; border-top: 1px solid var(--rule); }
.included li { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.dark .included, .dark .included li { border-color: var(--rule-on-dark); }
.included .what .h4 { margin-bottom: 4px; }
.included .val { text-align: right; }
.included .val .label { display: block; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; font-family: var(--f-light); font-size: 26px; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle { font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; flex-shrink: 0; padding-top: 6px; }
.faq summary .toggle::after { content: attr(data-open); }
.faq details[open] summary .toggle::after { content: attr(data-close); }
.faq details > div { padding: 0 0 32px; max-width: 820px; color: var(--brown-soft); }

/* ---------- video (click to play) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--brown); cursor: pointer; overflow: hidden; border: 1px solid var(--rule); }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.video .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video .play svg { width: 96px; height: 96px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .vlabel { position: absolute; left: 24px; bottom: 20px; color: var(--cream); }

/* ---------- calendar ---------- */
.cal-years { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.center .cal-years { justify-content: center; }
.cal-year { font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.2em; padding: 12px 22px; border: 1px solid var(--rule); background: transparent; color: inherit; cursor: pointer; }
.cal-year.is-on { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.dark .cal-year { border-color: var(--rule-on-dark); }
.dark .cal-year.is-on { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.cal-list { list-style: none; text-align: left; }
.cal-month { font-family: var(--f-semibold); font-size: 16px; text-transform: uppercase; letter-spacing: 0.32em; padding: 40px 0 16px; color: var(--brown-soft); }
.dark .cal-month { color: var(--cream-on-dark); }
.cal-row { display: grid; grid-template-columns: 260px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); }
.dark .cal-row { border-color: var(--rule-on-dark); }
.cal-date { font-family: var(--f-semibold); font-size: 18px; letter-spacing: 0.04em; }
.cal-main { display: flex; flex-direction: column; gap: 4px; }
.cal-label { font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brown-soft); }
.dark .cal-label { color: var(--cream-on-dark); }
.cal-title { font-family: var(--f-light); font-size: 26px; line-height: 1.3; }
.cal-place { color: var(--brown-soft); }
.dark .cal-place { color: var(--cream-on-dark); }
.cal-cta { font-family: var(--f-semibold); font-size: 16px; text-transform: uppercase; letter-spacing: 0.24em; border: 1px solid currentColor; padding: 14px 24px; white-space: nowrap; transition: transform .3s var(--ease); }
.cal-cta:hover { transform: translateY(-2px); }
.cal-row.is-hidden, .cal-month.is-hidden { display: none; }
.cal-note { margin-top: 40px; color: var(--brown-soft); }
.dark .cal-note { color: var(--cream-on-dark); }
.cal-empty { color: var(--brown-soft); }

/* ---------- form embed ---------- */
.form-embed { background: var(--cream); border: 1px solid var(--rule); }
.form-embed iframe { width: 100%; min-height: 1200px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown); color: var(--cream); padding: 96px var(--gutter) 48px; }
.site-footer .cols { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.site-footer .wm-name { font-family: var(--f-light); font-size: 30px; letter-spacing: 0.32em; text-transform: uppercase; }
.site-footer .wm-sub { margin-top: 12px; color: var(--cream-on-dark); }
.site-footer .label { color: var(--cream-on-dark); display: block; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { border-bottom: 1px solid currentColor; }
.site-footer .base { max-width: 1240px; margin: 72px auto 0; padding-top: 32px; border-top: 1px solid var(--rule-on-dark); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 16px; color: var(--cream-on-dark); font-family: var(--f-medium); }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 32px; }

/* ---------- reveal ---------- */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn:hover, .cal-cta:hover { transform: none; }
}
.no-js .fade-up { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --header-h: 72px; }
  .pre { letter-spacing: 0.34em; margin-bottom: 40px; }
  .display { font-size: 48px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 34px; }
  .h3 { font-size: 28px; }
  .h4 { font-size: 24px; }
  .standfirst { font-size: 21px; }
  .chamber { padding: 72px var(--gutter); }
  .chamber.tight { padding: 56px var(--gutter); }
  .split, .split.wide-text, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 40px; }
  .split .photo-panel { order: -1; }
  .card { padding: 36px 24px; }
  .wordmark .wm-name { font-size: 20px; letter-spacing: 0.26em; }
  .wordmark .wm-sub { display: none; }
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--rule); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
  .hero .inner { padding: 88px var(--gutter) 120px; }
  .hero-plain { padding: 96px var(--gutter) 72px; }
  .dimension { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .progression p { font-size: 22px; }
  .stat .num { font-size: 56px; }
  .price { font-size: 48px; }
  .cal-row { grid-template-columns: 1fr; gap: 12px; }
  .cal-cta { justify-self: start; margin-top: 8px; }
  .faq summary { font-size: 22px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 40px; }
  .landscape { min-height: 440px; }
  .form-embed iframe { min-height: 1500px; }
  /* language strip moves to a horizontal bar at bottom-left */
  .lang-switch { top: auto; bottom: 0; left: 0; transform: none; flex-direction: row; border: 1px solid var(--rule-on-dark); border-left: 0; border-bottom: 0; max-width: 100vw; overflow-x: auto; }
  .lang-switch a { border-bottom: 0; border-right: 1px solid var(--rule-on-dark); min-width: 52px; padding: 12px 12px; }
  .lang-switch a:last-child { border-right: 0; }
  body { padding-bottom: 56px; }
}

/* ---------- overflow guards ---------- */
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.btn { max-width: 100%; overflow-wrap: anywhere; }
.btn.email, .link.email { text-transform: none; letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .btn { letter-spacing: 0.18em; padding: 16px 24px; }
  .included li { grid-template-columns: 1fr; gap: 8px; }
  .included .val { text-align: left; }
}

/* ---------- refinements after visual check ---------- */
.narrow { margin-left: auto; margin-right: auto; }
.site-nav a { white-space: nowrap; }
.wordmark .wm-name, .wordmark .wm-sub { white-space: nowrap; }
.stat .num.word { font-size: 44px; line-height: 1.6; }
@media (max-width: 1280px) { .wordmark .wm-sub { display: none; } .site-nav { gap: 22px; } .site-nav a { letter-spacing: 0.1em; } }
@media (max-width: 900px) { .wordmark .wm-name { font-size: 18px; letter-spacing: 0.22em; } .stat .num.word { font-size: 36px; } }
/* CJK text: wide tracking breaks words apart, so keep it tight */
html:lang(ja) .pre, html:lang(ja) .label, html:lang(ja) .cal-label, html:lang(ja) .cal-month, html:lang(ja) .btn, html:lang(ja) .link,
html:lang(zh) .pre, html:lang(zh) .label, html:lang(zh) .btn, html:lang(ko) .pre, html:lang(ko) .label, html:lang(ko) .btn { letter-spacing: 0.12em; }
html:lang(ja) .display, html:lang(zh) .display, html:lang(ko) .display { font-size: 64px; line-height: 1.25; }
@media (max-width: 900px) { html:lang(ja) .display, html:lang(zh) .display, html:lang(ko) .display { font-size: 36px; } }

/* full-width photo with caption underneath (text never sits on faces) */
.wide-photo img { width: 100%; height: auto; display: block; }
.wide-photo figcaption { margin-top: 20px; text-align: center; }

/* six menu links: tighter spacing on mid-size screens */
@media (max-width: 1960px) { .wordmark .wm-sub { display: none; } .site-nav { gap: 24px; } .site-nav a { letter-spacing: 0.08em; } }
/* six menu links: switch to the menu button below 1360px so nothing runs off the edge */
@media (max-width: 1360px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--rule); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); letter-spacing: 0.16em; }
}

/* ---------- application form ---------- */
.apply-wrap { background: var(--cream); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100%; }
.apply-aside { padding: 128px clamp(40px, 6vw, 96px); }
.apply-aside-inner { position: sticky; top: calc(var(--header-h) + 64px); max-width: 480px; margin-left: auto; }
.apply-aside .label { color: var(--cream-on-dark); }
.apply-lede { font-size: 22px; line-height: 1.6; }
.apply-progress { list-style: none; margin: 56px 0 0; border-top: 1px solid var(--rule-on-dark); }
.apply-progress li { position: relative; padding: 20px 0 20px 36px; border-bottom: 1px solid var(--rule-on-dark); font-family: var(--f-regular); font-size: 20px; color: var(--cream-on-dark); }
.apply-progress li::before { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1px solid var(--cream-on-dark); border-radius: 50%; }
.apply-progress li.is-done { color: var(--cream-on-dark); }
.apply-progress li.is-done::before { background: var(--cream-on-dark); border-color: var(--cream-on-dark); }
.apply-progress li[aria-current="step"] { color: var(--cream); font-family: var(--f-semibold); }
.apply-progress li[aria-current="step"]::before { background: var(--cream); border-color: var(--cream); box-shadow: 0 0 0 5px rgba(249, 241, 222, 0.18); }
.apply-help { margin-top: 48px; font-size: 18px; line-height: 1.6; }
.apply-help .link { border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }

.apply-main { padding: 128px clamp(24px, 6vw, 112px); }
.apply-form { max-width: 640px; }
.apply-form .group { border: 0; margin: 0 0 64px; padding: 0; min-width: 0; }
.apply-form .group-title { display: block; width: 100%; font-family: var(--f-semibold); font-size: 16px; line-height: 1.5; letter-spacing: 0.28em; text-transform: uppercase; padding: 0 0 16px; margin: 0 0 40px; border-bottom: 1px solid var(--brown); }
.apply-form .field { display: block; border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.apply-form .field-label { display: block; font-family: var(--f-medium); font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.apply-form .opt { color: var(--brown-soft); font-family: var(--f-regular); }
.apply-form input:not([type=radio]):not([type=checkbox]) {
  display: block; width: 100%; font-family: var(--f-regular); font-size: 20px; line-height: 1.5; color: var(--brown);
  background: transparent; border: 0; border-bottom: 1px solid rgba(47, 36, 28, 0.35); border-radius: 0; padding: 10px 0 12px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.apply-form textarea {
  display: block; width: 100%; font-family: var(--f-regular); font-size: 20px; line-height: 1.6; color: var(--brown);
  background: rgba(47, 36, 28, 0.03); border: 1px solid rgba(47, 36, 28, 0.22); border-radius: 0; padding: 16px 18px; resize: vertical; min-height: 168px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.apply-form input:not([type=radio]):not([type=checkbox]):focus { outline: none; border-bottom-color: var(--brown); box-shadow: 0 1px 0 0 var(--brown); }
.apply-form textarea:focus { outline: none; border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.apply-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.apply-form .field-row > * { min-width: 0; }

/* Yes / No as two buttons: the chosen one is filled */
.apply-form .toggle { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--brown); margin-top: 6px; }
.apply-form .toggle label { position: relative; cursor: pointer; }
.apply-form .toggle label + label { border-left: 1px solid var(--brown); }
.apply-form .toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.apply-form .toggle span { display: block; min-width: 120px; padding: 12px 28px; text-align: center; font-family: var(--f-medium); font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; transition: background .2s var(--ease), color .2s var(--ease); }
.apply-form .toggle input:checked + span { background: var(--brown); color: var(--cream); }
.apply-form .toggle input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 3px; }

.apply-form .check { display: flex; align-items: flex-start; gap: 16px; font-size: 18px; line-height: 1.6; cursor: pointer; margin: 0 0 40px; }
.apply-form .check input { -webkit-appearance: none; appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 3px; border: 1px solid var(--brown); background: transparent; cursor: pointer; display: grid; place-content: center; }
.apply-form .check input:checked { background: var(--brown); }
.apply-form .check input:checked::after { content: ''; width: 6px; height: 12px; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.apply-form .check input:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

/* missing answers: thicker line plus a written note, never colour alone */
.apply-form .is-invalid { border-color: var(--brown) !important; border-width: 2px !important; }
.apply-form input.is-invalid:not([type=radio]):not([type=checkbox]) { border-width: 0 0 2px !important; }
.apply-form .field-err { display: block; margin-top: 8px; font-family: var(--f-semibold); font-size: 16px; line-height: 1.5; }
.apply-form .form-msg { font-family: var(--f-medium); font-size: 18px; line-height: 1.5; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--brown); }
.apply-form .form-msg:empty { display: none; }
.apply-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-form .btn.wide { width: 100%; justify-content: center; text-align: center; padding-top: 20px; padding-bottom: 20px; }
.apply-form .btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

.apply-form .code-lede { font-size: 22px; line-height: 1.6; }
.apply-form .sent-to { font-family: var(--f-semibold); font-size: 20px; margin: 16px 0 40px; overflow-wrap: anywhere; }
.apply-form .code-field input { font-family: var(--f-medium) !important; font-size: 40px !important; letter-spacing: 0.5em; text-align: center; padding: 16px 0 16px 0.5em !important; border: 1px solid var(--brown) !important; }
.apply-form .link-row { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.apply-form .link-btn { background: none; border: 0; padding: 6px 0; font-family: var(--f-medium); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); border-bottom: 1px solid currentColor; cursor: pointer; }
.apply-form .apply-done:focus { outline: none; }
.apply-form [hidden] { display: none !important; }

@media (max-width: 1100px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-aside { padding: 88px var(--gutter) 72px; }
  .apply-aside-inner { position: static; max-width: 640px; margin: 0 auto; }
  .apply-main { padding: 72px var(--gutter) 112px; }
  .apply-form { margin: 0 auto; }
  .apply-progress { margin-top: 40px; }
}
@media (max-width: 600px) {
  .apply-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .apply-form .toggle { display: grid; width: 100%; }
  .apply-form .toggle span { min-width: 0; }
  .apply-form .group { margin-bottom: 48px; }
  .apply-form .code-field input { font-size: 32px !important; letter-spacing: 0.35em; padding-left: 0.35em !important; }
}
.apply-form .check { flex-wrap: wrap; }
.apply-form .check .field-err { flex-basis: 100%; padding-left: 40px; margin-top: 0; }
.apply-form { scroll-margin-top: calc(var(--header-h) + 40px); }
#application { scroll-margin-top: var(--header-h); }

/* ---------- longer translations ----------
   Long words (German, Russian) break with a hyphen instead of running off the screen. */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4, .standfirst, .price, .label, .pre, .btn, p, li, dt, dd, legend, label {
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
}
html:lang(ja) *, html:lang(zh) *, html:lang(ko) * { -webkit-hyphens: manual; hyphens: manual; word-break: normal; line-break: strict; }
html:lang(ja), html:lang(zh) { word-break: normal; overflow-wrap: anywhere; }
.price { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .price { font-size: 40px; }
  .display { font-size: 42px; }
  .h2 { font-size: 30px; }
}
/* Menu: if the links do not fit on one line in this language, the menu button is used instead (site.js decides) */
.site-header.nav-as-menu .menu-btn { display: inline-block; }
.site-header.nav-as-menu .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--rule); }
.site-header.nav-as-menu .site-nav.open { display: flex; }
.site-header.nav-as-menu .site-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); letter-spacing: 0.16em; }
/* form: when translated labels wrap to different heights, keep the two boxes in a row level */
.apply-form .field-row { align-items: end; }
.apply-form .toggle span { white-space: nowrap; }
/* figures inside a two-column block scale with the screen so "1,000+" never spills */
.split .stat .num { font-size: clamp(44px, 4.6vw, 72px); }
.stat .label { overflow-wrap: anywhere; }
/* FAQ: the question takes the free space, so a long translated question wraps instead of pushing "Open" off screen */
.faq summary > span:first-child { flex: 1 1 auto; min-width: 0; }
/* consent box: the text always sits beside the tick box, whatever the language */
.apply-form .check > span:not(.field-err) { flex: 1 1 0; min-width: 0; }
/* Russian: the brand font has no Cyrillic letters, so use one clean typeface for the whole line instead of mixing two */
html:lang(ru) {
  --f-light: 'Helvetica Neue', Arial, sans-serif; --f-regular: 'Helvetica Neue', Arial, sans-serif;
  --f-medium: 'Helvetica Neue', Arial, sans-serif; --f-semibold: 'Helvetica Neue', Arial, sans-serif;
  --f-xlight: 'Helvetica Neue', Arial, sans-serif;
}
html:lang(ru) .display, html:lang(ru) .h1, html:lang(ru) .h2, html:lang(ru) .h3, html:lang(ru) .h4, html:lang(ru) .price, html:lang(ru) .stat .num { font-weight: 300; }
html:lang(ru) .label, html:lang(ru) .pre, html:lang(ru) .btn, html:lang(ru) strong, html:lang(ru) b, html:lang(ru) .group-title { font-weight: 600; }
html:lang(ru) .field-label, html:lang(ru) .site-nav a { font-weight: 500; }

/* ---------- form: drop-down list, choice cards, hints ---------- */
.apply-form select {
  display: block; width: 100%; font-family: var(--f-regular); font-size: 20px; line-height: 1.5; color: var(--brown);
  background: transparent; border: 0; border-bottom: 1px solid rgba(47, 36, 28, 0.35); border-radius: 0; padding: 10px 40px 12px 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brown) 50%), linear-gradient(135deg, var(--brown) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 8px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.apply-form select:focus { outline: none; border-bottom-color: var(--brown); box-shadow: 0 1px 0 0 var(--brown); }
.apply-form select.is-invalid { border-width: 0 0 2px !important; }
.apply-form .field-hint { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--brown-soft); }
.apply-form .choices { display: grid; gap: 12px; margin-top: 6px; }
.apply-form .choices label { position: relative; display: block; cursor: pointer; }
.apply-form .choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.apply-form .choices label > span { display: block; padding: 18px 20px 18px 56px; border: 1px solid rgba(47, 36, 28, 0.35); font-size: 20px; line-height: 1.4; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.apply-form .choices label > span::before { content: ''; position: absolute; left: 20px; top: 22px; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; }
.apply-form .choices b { font-family: var(--f-medium); font-weight: 500; }
.apply-form .choices .choice-note { display: block; font-size: 16px; color: var(--brown-soft); margin-top: 4px; }
.apply-form .choices input:checked + span { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.apply-form .choices input:checked + span .choice-note { color: var(--cream-on-dark); }
.apply-form .choices input:checked + span::before { background: var(--cream); box-shadow: inset 0 0 0 4px var(--brown); border-color: var(--cream); }
.apply-form .choices input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 3px; }
.apply-form .choices.is-invalid > label > span { border-width: 2px; }

/* ---------- member area ---------- */
.portal .site-header .bar { justify-content: space-between; }
.portal .link-btn { background: none; border: 0; padding: 6px 0; font-family: var(--f-medium); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); border-bottom: 1px solid currentColor; cursor: pointer; }
.portal-preview { background: var(--brown); color: var(--cream); text-align: center; padding: 12px var(--gutter); font-size: 16px; }
.portal-hero { padding-top: 96px; padding-bottom: 96px; }
.portal-signin .form-msg { font-family: var(--f-medium); font-size: 18px; padding: 14px 18px; border: 1px solid var(--brown); margin-bottom: 24px; }
.portal-foot { padding: 48px var(--gutter); text-align: center; font-size: 18px; border-top: 1px solid var(--rule); }
.journey { list-style: none; border-top: 1px solid var(--rule); }
.journey li { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0 20px 36px; border-bottom: 1px solid var(--rule); position: relative; }
.journey li::before { content: ''; position: absolute; left: 0; top: 28px; width: 16px; height: 16px; border: 1px solid var(--brown); border-radius: 50%; }
.journey li.is-done::before { background: var(--brown); }
.journey li.is-next::before { box-shadow: 0 0 0 4px rgba(47, 36, 28, 0.16); background: var(--brown); }
.journey .dim-no { font-family: var(--f-semibold); font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; }
.journey .dim-name { font-family: var(--f-light); font-size: 24px; line-height: 1.35; }
.journey .dim-status { font-size: 18px; color: var(--brown-soft); text-align: right; }
.journey li.is-done .dim-status, .journey li.is-next .dim-status { color: var(--brown); font-family: var(--f-medium); }
.portal-split { align-items: start; }
@media (max-width: 900px) {
  .journey li { grid-template-columns: 1fr; gap: 4px; }
  .journey .dim-status { text-align: left; }
}
