/* ARIORON THINK — public design system
   Daylight winter: limestone, ivory, parchment, sky, forest, slate, restrained burgundy. */

:root {
  --limestone: #f4efe6;
  --ivory: #fbf8f2;
  --parchment: #efe4cf;
  --stone: #d8cfbd;
  --stone-2: #b9ae98;
  --stone-3: #857c6c;
  --sky: #a9cde4;
  --sky-2: #6fa3c7;
  --sea: #4f8db4;
  --forest: #4d6a50;
  --forest-2: #2f4a35;
  --slate: #26333c;
  --ink: #1b2329;
  --ink-2: #3b4650;
  --ink-3: #5d6872;
  --burgundy: #7c2f2b;
  --bronze: #9a7542;
  --snow: #f7fafc;
  --focus: #1f6fb2;
  --ok: #2f6b45;
  --warn: #9a6a12;
  --err: #a2312b;

  --ff-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ff-label: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;
  --ff-body: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 5rem);
  --step-5: clamp(3.1rem, 2rem + 5.6vw, 7.6rem);

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(38, 51, 60, .06), 0 8px 28px rgba(38, 51, 60, .08);
  --shadow-lg: 0 2px 6px rgba(38, 51, 60, .06), 0 24px 60px rgba(38, 51, 60, .14);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--limestone); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--ff-body); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:lang(bn) body, body:lang(bn) { font-family: "Noto Sans Bengali", var(--ff-body); }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--burgundy); }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.eyebrow {
  font: 600 .74rem/1.2 var(--ff-label); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin: 0 0 .9rem;
}
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--bronze); font-family: var(--ff-display); font-size: var(--step-1); color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose th, .prose td { border-bottom: 1px solid var(--stone); padding: .6em .5em; text-align: left; }
.prose img { border-radius: var(--radius); }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 600 .92rem/1 var(--ff-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn:hover { --bg: var(--burgundy); color: var(--fg); transform: translateY(-1px); }
.btn--primary { --bg: var(--burgundy); }
.btn--primary:hover { --bg: #642420; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(27, 35, 41, .35); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--light { --bg: var(--ivory); --fg: var(--ink); }
.btn--light:hover { --bg: #fff; --fg: var(--burgundy); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { --bg: #000; --fg: #fff; }
.btn--glass { background: rgba(251, 248, 242, .72); color: var(--ink); border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); }
.btn--glass:hover { background: var(--ivory); color: var(--burgundy); }
.btn--sm { min-height: 38px; padding: .5em 1.05em; font-size: .85rem; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Banner */
.banner { display: flex; gap: .8em; align-items: center; justify-content: center; flex-wrap: wrap; padding: .55em var(--gutter); background: var(--slate); color: var(--ivory); font-size: .9rem; position: relative; z-index: 60; text-align: center; }
.banner a { color: #f1d9a7; }
.banner--urgent { background: var(--burgundy); }
.banner__dot { width: 7px; height: 7px; border-radius: 50%; background: #f1d9a7; flex: none; }

/* Header — a floating glass bar */
.masthead { position: sticky; top: 0; z-index: 50; height: var(--header-h); padding: 10px var(--gutter) 0; pointer-events: none; }
body.home .masthead { position: fixed; left: 0; right: 0; }
.masthead__bar {
  pointer-events: auto; height: 54px; max-width: 1280px; margin: 0 auto; padding: 0 8px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255, 255, 255, .62); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 1px 2px rgba(20, 25, 29, .04);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), max-width .6s var(--ease);
}
.masthead.is-solid .masthead__bar { background: rgba(255, 255, 255, .84); border-color: rgba(20, 25, 29, .06); box-shadow: 0 8px 30px rgba(20, 25, 29, .08), 0 1px 2px rgba(20, 25, 29, .05); }
.masthead.is-hidden .masthead__bar { transform: translateY(-120%); }
.masthead__bar { transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: auto; height: 34px; flex: none; filter: drop-shadow(0 1px 1.5px rgba(20, 25, 29, .18)); }
.brand__text { display: flex; align-items: baseline; gap: 6px; font-family: var(--ff-body); line-height: 1; }
.brand__org { font-size: .9rem; font-weight: 500; color: var(--ink-3); letter-spacing: -.005em; }
.brand__name { font-size: .98rem; font-weight: 700; letter-spacing: .04em; }
.brand__year { font: 600 .68rem/1 var(--ff-body); padding: 4px 7px; border-radius: 6px; background: rgba(124, 47, 43, .09); color: var(--burgundy); letter-spacing: .02em; }
.brand--light { color: #f2f4f5; }
.brand--light:hover { color: #fff; }
.brand--light .brand__org { color: #8d989f; }

.nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.nav__panel { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: space-between; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.nav__link {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; color: var(--ink-2); text-decoration: none;
  font: 500 .875rem/1 var(--ff-body); letter-spacing: -.005em; border-radius: 10px; background: none; border: 0; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(20, 25, 29, .05); }
.nav__link.is-current { color: var(--ink); background: rgba(20, 25, 29, .06); }
.nav__chev { width: 12px; height: 12px; opacity: .6; transition: transform .25s var(--ease); }
.nav__drop[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__item { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(18px); border: 1px solid rgba(20, 25, 29, .07); border-radius: 14px; box-shadow: 0 16px 40px rgba(20, 25, 29, .12); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: .22s var(--ease); }
.nav__item--has:hover .nav__sub, .nav__item--has.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: .875rem; }
.nav__sub a:hover { background: rgba(20, 25, 29, .05); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 4px; }
.nav__link--quiet { color: var(--ink-2); }
.nav__lang { font: 500 .8rem/1 var(--ff-body); color: var(--ink-3); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.nav__lang:hover { color: var(--ink); background: rgba(20, 25, 29, .05); }
.nav__actions .btn { margin-left: 6px; }
.nav__toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.nav__toggle:hover { background: rgba(20, 25, 29, .05); }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); margin: auto; position: relative; transition: .35s var(--ease); content: ""; }
.nav__toggle-bars::before { position: absolute; top: -5px; }
.nav__toggle-bars::after { position: absolute; top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav__toggle { display: grid; place-items: center; position: relative; z-index: 2; }
  .nav__panel {
    position: fixed; inset: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: rgba(251, 250, 248, .97);
    backdrop-filter: blur(20px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
  }
  body.nav-open .nav__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; margin: 0; }
  .nav__list .nav__link { font: 500 1.6rem/1.2 var(--ff-body); letter-spacing: -.02em; color: var(--ink); padding: 14px 0; display: flex; border-bottom: 1px solid rgba(20, 25, 29, .08); border-radius: 0; background: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; }
  .nav__actions { flex-wrap: wrap; gap: 10px; }
        body.nav-open { overflow: hidden; }
  body.nav-open .masthead__bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  .masthead__bar { position: relative; z-index: 2; }
}

/* Flash messages */
.flashes { padding-top: 16px; }
.flash { padding: .8em 1.1em; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--stone); border-left: 3px solid var(--sky-2); margin: 0 0 8px; }
.flash--success { border-left-color: var(--ok); }
.flash--error { border-left-color: var(--err); }
.flash--info { border-left-color: var(--sky-2); }
body.home .flashes { position: fixed; top: calc(var(--header-h) + 8px); left: 0; right: 0; z-index: 40; }

/* Sections & surfaces */
.section { padding: clamp(64px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.bg-limestone { background: var(--limestone); }
.bg-ivory { background: var(--ivory); }
.bg-parchment { background: var(--parchment); }
.bg-sky { background: #eaf3f8; }
.bg-slate { background: var(--slate); color: var(--ivory); }
.bg-slate h2, .bg-slate h3 { color: var(--ivory); }
.bg-forest { background: #e5ebe1; }
.section__head { display: grid; gap: 8px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 760px; }
.section__head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
@media (max-width: 720px) { .section__head--split { grid-template-columns: 1fr; } }

.page-hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(40px, 6vw, 72px); overflow: hidden; background: #eef4f6; }
.page-hero__art { position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none; opacity: .95; }
.page-hero__art svg { width: 100%; height: 100%; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--step-5); letter-spacing: -.02em; max-width: 14ch; margin-bottom: .2em; }
.page-hero .lede { margin-top: .6em; }
.crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); }
.crumbs span { margin: 0 .4em; opacity: .6; }

/* Cards & grids */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--ivory); border: 1px solid rgba(133, 124, 108, .22); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: var(--step-1); margin-bottom: .35em; }
.card__media { margin: calc(-1 * clamp(20px, 2.4vw, 30px)) calc(-1 * clamp(20px, 2.4vw, 30px)) 20px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--parchment); }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: .8em; flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: .4em; padding: .28em .75em; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: var(--parchment); color: var(--ink-2); border: 1px solid rgba(133, 124, 108, .25); white-space: nowrap; }
.pill--ok { background: #e3eee4; color: var(--ok); border-color: #c4dbc8; }
.pill--warn { background: #f6ecd6; color: var(--warn); border-color: #ead7ad; }
.pill--err { background: #f5e2df; color: var(--err); border-color: #e9c3be; }
.pill--sky { background: #e2eef6; color: #2d5f84; border-color: #c6dcea; }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.notice { padding: 14px 18px; border-radius: var(--radius); background: #f6ecd6; border: 1px solid #ead7ad; color: #6b4d12; font-size: .92rem; }
.notice--info { background: #e6f0f6; border-color: #c6dcea; color: #24506f; }

/* Facts / key-value */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(133, 124, 108, .25); border: 1px solid rgba(133, 124, 108, .25); border-radius: var(--radius-lg); overflow: hidden; }
.facts > div { background: var(--ivory); padding: 20px 22px; }
.facts dt { font: 600 .7rem/1.2 var(--ff-label); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 8px; }
.facts dd { margin: 0; font: 600 var(--step-1)/1.25 var(--ff-display); }

/* Forms */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--burgundy); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field .err { font-size: .84rem; color: var(--err); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: .7em .95em; border-radius: var(--radius); border: 1px solid #c9bfab; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-2); box-shadow: 0 0 0 3px rgba(111, 163, 199, .28); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #d8cfbd; border-radius: var(--radius); background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--burgundy); background: #fbf3f1; }
.choice input { margin-top: .3em; accent-color: var(--burgundy); width: 18px; height: 18px; flex: none; }
.choice small { display: block; color: var(--ink-3); }
.choices--cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: inline; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid rgba(133, 124, 108, .25); border-radius: var(--radius-lg); background: var(--ivory); }
table.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { font: 600 .7rem/1.2 var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--stone); background: var(--limestone); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(133, 124, 108, .16); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* Countdown */
.countdown { display: flex; gap: clamp(10px, 2vw, 22px); }
.countdown__unit { text-align: center; min-width: 64px; }
.countdown__num { font: 600 clamp(2rem, 1.4rem + 2.6vw, 3.4rem)/1 var(--ff-display); font-variant-numeric: tabular-nums; }
.countdown__lab { font: 600 .64rem/1 var(--ff-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* Footer */
.footer { position: relative; background: #12171b; color: #9ba5ac; font-size: .9rem; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: rgba(255, 255, 255, .12); }
.footer a { color: #c9d0d5; text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer .btn--light, .footer .btn--light:hover { color: var(--ink); }
.footer__cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__kicker { font: 500 .8rem/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: #c9a873; margin: 0 0 18px; }
.footer__headline { font: 600 var(--step-3)/1.05 var(--ff-display); letter-spacing: -.015em; color: #f3f1ec; margin: 0; max-width: 22ch; text-wrap: balance; }
.footer__cta-actions { display: flex; align-items: center; gap: 22px; }
.footer__more { font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 2px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand .brand__mark { height: 44px; filter: none; }
.footer__about { max-width: 38ch; line-height: 1.6; margin: 0 0 14px; }
.footer__org { font-size: .84rem; color: #7d878e; margin: 0; }
.footer__label { font: 600 .74rem/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: #6f7a82; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__base { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; padding-top: 24px; padding-bottom: 36px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: #6f7a82; }
.footer__copy { margin: 0; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.footer__legal a, .footer__legal .linklike { color: #8d979e; text-decoration: none; }
.footer__legal a:hover, .footer__legal .linklike:hover { color: #fff; }
.footer__disclaimer { grid-column: 1 / -1; max-width: 100ch; margin: 8px 0 0; color: #5c666d; line-height: 1.55; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { grid-template-columns: 1fr; }
  .footer__legal { justify-content: flex-start; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ======================================================================
   HOMEPAGE — the cinematic journey
   ====================================================================== */
body.home main { padding-top: 0; }
.world { position: relative; background: linear-gradient(180deg, #8fbfdd 0%, #bcd9ea 45%, #e4eff5 100%); }
.world__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.world__canvas, .world__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.world__fallback { display: grid; place-items: center; overflow: hidden; }
.world__fallback svg { width: auto; height: 150%; max-width: none; transform-origin: 50% 50%; transition: transform 1.6s var(--ease); }
.world.has-webgl .world__fallback { display: none; }
.world:not(.is-ready) .world__fallback { visibility: hidden; }
.world__haze { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(196, 223, 238, .55) 0%, rgba(196, 223, 238, 0) 26%, rgba(244, 239, 230, 0) 72%, rgba(244, 239, 230, .9) 100%); }
.world__labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transition: opacity .5s var(--ease); background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.map-label.is-visible { opacity: 1; }
.map-label__name { font: 600 .72rem/1 var(--ff-label); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; background: rgba(251, 248, 242, .88); border: 1px solid rgba(133, 124, 108, .3); border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(38, 51, 60, .12); }
.map-label__pin { width: 9px; height: 9px; border-radius: 50%; background: var(--burgundy); box-shadow: 0 0 0 3px rgba(251, 248, 242, .9), 0 0 0 4px rgba(124, 47, 43, .35); }
.map-label.is-active .map-label__name { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.world__steps { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; pointer-events: none; }
.world__steps > * { pointer-events: auto; }
.arrival { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 96px; text-align: center; justify-items: center; pointer-events: none; }
.arrival > * { pointer-events: auto; }
.arrival > * { transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease); }
.arrival > :nth-child(2) { transition-delay: .25s; } .arrival > :nth-child(3) { transition-delay: .55s; }
.arrival > :nth-child(4) { transition-delay: .75s; } .arrival > :nth-child(5) { transition-delay: .9s; }
.world.is-intro .arrival > * { opacity: 0; transform: translateY(14px); filter: blur(6px); transition-duration: 0s; transition-delay: 0s; }
.arrival__kicker { font: 600 .78rem/1 var(--ff-label); letter-spacing: .4em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.arrival__title { font: 600 var(--step-5)/.92 var(--ff-label); letter-spacing: .06em; margin: 0; color: var(--ink); text-shadow: 0 2px 30px rgba(244, 239, 230, .85), 0 0 2px rgba(244, 239, 230, .7); }
.arrival__title span { display: block; }
.arrival__title .yr { color: var(--burgundy); font-size: .52em; letter-spacing: .3em; margin-top: .25em; }
.arrival__tag { font: 500 italic var(--step-2)/1.2 var(--ff-display); margin: 26px 0 0; color: var(--ink); text-shadow: 0 1px 18px rgba(244, 239, 230, .9); }
.arrival__meta { display: flex; gap: 14px 22px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font: 600 .76rem/1 var(--ff-label); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.arrival__meta span { padding: 9px 14px; background: rgba(251, 248, 242, .72); border-radius: 999px; backdrop-filter: blur(6px); }
.arrival__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.arrival__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.arrival__scroll::after { content: ""; width: 1px; height: 44px; background: var(--ink-2); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.cine-controls { position: fixed; right: var(--gutter); bottom: 22px; z-index: 45; display: flex; gap: 8px; }
.cine-controls .btn { min-height: 38px; font-size: .78rem; }
.cine-controls.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); transition: .4s var(--ease); }

.journey-step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); pointer-events: none; }
.journey-step:nth-child(odd) { justify-content: flex-end; }
.journey-card { pointer-events: auto; width: min(420px, 100%); background: rgba(251, 248, 242, .9); backdrop-filter: blur(14px) saturate(1.1); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-lg); }
.journey-card .eyebrow { margin-bottom: 10px; }
.journey-card h3 { font-size: var(--step-3); margin-bottom: .2em; }
.journey-card__kicker { font: 500 italic var(--step-1)/1.3 var(--ff-display); color: var(--ink-2); margin-bottom: .8em; }
.journey-card p { color: var(--ink-2); margin: 0; }
.journey-card a { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }
.journey-intro { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.journey-intro__inner { pointer-events: auto; max-width: 640px; background: rgba(251, 248, 242, .82); backdrop-filter: blur(12px); padding: 32px 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.journey-intro h2 { font-size: var(--step-4); }
.journey-index { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.journey-index button { background: none; border: 0; padding: 6px 0 6px 18px; position: relative; cursor: pointer; font: 600 .66rem/1 var(--ff-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); text-align: left; opacity: .7; }
.journey-index button::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.journey-index button.is-active { color: var(--burgundy); opacity: 1; }
.journey-index button.is-active::before { width: 14px; }
.journey-index.is-hidden { opacity: 0; pointer-events: none; }
/* Header: dark glass, warm brass accents (all public pages). */
@media (min-width: 1181px) {
  .masthead__bar { background: rgba(22, 17, 12, .55); border-color: rgba(231, 194, 125, .18); box-shadow: 0 1px 0 rgba(255, 230, 180, .06) inset; }
  .masthead.is-solid .masthead__bar { background: rgba(22, 17, 12, .82); border-color: rgba(231, 194, 125, .22); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
  .brand, .brand:hover { color: #f6ead2; }
  .brand__org, .nav__lang { color: #b9a986; }
  .brand__year { background: rgba(231, 194, 125, .14); color: #e7c27d; }
  .nav__link, .nav__link--quiet { color: #dccdb0; }
  .nav__link:hover, .nav__link.is-current, .nav__lang:hover { color: #fff6e4; background: rgba(255, 240, 210, .08); }
  .nav__actions .btn--ink { background: #e7c27d; color: #1d140b; }
}
@media (max-width: 1180px) {
  .masthead__bar { background: rgba(22, 17, 12, .6); border-color: rgba(231, 194, 125, .18); }
  .masthead .brand { color: #f6ead2; }
  .masthead .brand__org { color: #b9a986; }
  .masthead .brand__year { background: rgba(231, 194, 125, .14); color: #e7c27d; }
  body:not(.nav-open) .nav__toggle-bars, body:not(.nav-open) .nav__toggle-bars::before, body:not(.nav-open) .nav__toggle-bars::after { background: #f6ead2; }
  body.nav-open .masthead .brand { color: var(--ink); }
}
/* Journey copy over the clockwork map: title-card lettering lying on the land, no frames or boxes.
   A wide soft shade of darkness sits behind the type so it reads against castles and glow alike. */
.world .journey-card, .world .journey-intro__inner {
  position: relative; isolation: isolate; color: #eadcc0; background: none; border: 0; border-radius: 0; box-shadow: none;
  backdrop-filter: none; padding: clamp(8px, 2vw, 24px) 0;
}
.world .journey-card { width: min(520px, 100%); }
.world .journey-card::before, .world .journey-intro__inner::before {
  content: ""; position: absolute; z-index: -1; inset: -34% -42%; border: 0; border-radius: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(9, 6, 3, .72), rgba(9, 6, 3, .4) 48%, rgba(9, 6, 3, 0) 72%);
}
.world .journey-step:nth-child(odd) .journey-card { text-align: right; }
@media (min-width: 901px) { .world .journey-step:nth-child(even) .journey-card { margin-left: 210px; } }
.world .journey-step:nth-child(odd) .journey-card h3::after { margin-left: auto; }
.world .journey-card .eyebrow, .world .journey-intro .eyebrow, .world .journey-intro__inner > p:first-child {
  color: #e7c27d; font-size: .72rem; letter-spacing: .42em; margin-bottom: 14px; text-shadow: 0 1px 14px rgba(0, 0, 0, .9);
}
.world .journey-card h3, .world .journey-intro h2 {
  color: #f1dfb3; font-family: var(--ff-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(48, 28, 10, .85), 0 8px 34px rgba(0, 0, 0, .85);
}
.world .journey-card h3 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.04; margin-bottom: 0; }
.world .journey-intro h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.08; }
.world .journey-card h3::after, .world .journey-intro h2::after {
  content: ""; display: block; width: 84px; height: 1px; margin: 20px 0 18px; background: #e7c27d;
}
.world .journey-intro h2::after { margin-inline: auto; }
.world .journey-card__kicker { color: #e2cd9c; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); text-shadow: 0 1px 18px rgba(0, 0, 0, .95); margin-bottom: .6em; }
.world .journey-card p, .world .journey-intro p { color: #e4d6ba; text-shadow: 0 1px 16px rgba(0, 0, 0, .95), 0 0 3px rgba(0, 0, 0, .6); }
.world .journey-card a { color: #e7c27d; text-decoration-color: rgba(231, 194, 125, .5); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.world .journey-card a:hover { color: #fff1d0; }
/* Title in solid brass. */
.world .arrival__title span:not(.yr) {
  color: #ecd49c; text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(60, 36, 14, .9)) drop-shadow(0 10px 30px rgba(0, 0, 0, .65));
}
.world .arrival__title .yr { filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .8)); }
@media (min-width: 901px) { .world .arrival { align-content: end; padding-bottom: 15vh; } }
/* Clockwork map (WebGL): a dark, candle-lit study instead of daylight. */
.world { --gold: #e7c27d; --brass: #b88a48; background: #14100c; overflow-x: clip; }
.world .world__haze { background:
  radial-gradient(120% 90% at 50% 42%, rgba(20, 16, 12, 0) 52%, rgba(14, 11, 8, .72) 100%),
  linear-gradient(180deg, rgba(14, 11, 8, .55) 0%, rgba(14, 11, 8, 0) 22%, rgba(14, 11, 8, 0) 70%, #100c09 100%); }
.world .arrival__kicker { color: var(--gold); }
/* A soft title-card shade under the type, so the lettering sits on darkness rather than on castles. */
.world .arrival { position: relative; isolation: isolate; }
.world .arrival::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 6vh; width: min(1200px, 100%); height: 72vh; transform: translateX(-50%); background: radial-gradient(ellipse 50% 48% at 50% 58%, rgba(10, 7, 4, .66), rgba(10, 7, 4, .3) 55%, transparent 75%); pointer-events: none; transition: opacity 2s var(--ease) .3s; }
.world.is-intro .arrival::before { opacity: 0; transition-duration: 0s; transition-delay: 0s; }
/* The opening shot runs clean: the site chrome arrives with the title, not before it. */
.masthead { transition: opacity 1.4s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
body:has(.world.is-intro) .masthead { opacity: 0; transform: translateY(-10px); transition-duration: 0s; transition-delay: 0s; }
body:has(.world.is-intro) .masthead__bar { pointer-events: none; }
@media (max-width: 900px) { .world .arrival::before { bottom: auto; top: 12vh; height: 70vh; background: radial-gradient(ellipse 70% 42% at 50% 40%, rgba(10, 7, 4, .72), rgba(10, 7, 4, .34) 60%, transparent 80%); } }
.world .arrival__title { color: #f6ead2; text-shadow: 0 2px 40px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5); }
.world .arrival__title .yr { color: var(--gold); }
.world .arrival__tag { color: #eadcc0; text-shadow: 0 1px 20px rgba(0, 0, 0, .8); }
.world .arrival__meta { color: #eadcc0; }
.world .arrival__meta span { background: rgba(20, 15, 10, .55); border: 1px solid rgba(231, 194, 125, .28); }
.world .arrival__scroll { color: #d9c7a3; }
.world .arrival__scroll::after { background: #d9c7a3; }
/* On short screens the scroll cue would sit on the buttons; the buttons are cue enough there. */
@media (max-height: 760px) { .arrival__scroll { display: none; } }
.world .btn--glass { color: #f6ead2; background: rgba(20, 15, 10, .45); border-color: rgba(231, 194, 125, .4); }
.world .map-label { color: #f6ead2; }
.world .map-label__name { font-family: var(--ff-label); color: var(--gold); background: #2f2115; border: 1px solid rgba(231, 194, 125, .55); border-radius: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.world .map-label__pin { background: var(--gold); box-shadow: 0 0 0 3px rgba(30, 21, 12, .85), 0 0 12px rgba(255, 199, 119, .8); }
.world .map-label.is-active .map-label__name { background: #d8ad62; color: #1d140b; border-color: #f0d49a; }
.world .journey-index button { color: #e4d4b4; text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
.world .journey-index button.is-active { color: var(--gold); }
@media (max-width: 900px) {
  .journey-index { display: none; }
  .journey-step, .journey-step:nth-child(odd) { justify-content: center; align-items: flex-end; padding-bottom: 12vh; }
  .world .journey-step:nth-child(n) .journey-card { text-align: center; margin-left: 0; }
  .world .journey-step:nth-child(n) .journey-card h3::after { margin-inline: auto; }
  .world .journey-card::before, .world .journey-intro__inner::before { inset: -22% -12%; }
  .journey-card h3 { font-size: var(--step-2); }
}

/* Landmark panoramas */
.landmark { position: relative; min-height: 112vh; overflow: hidden; display: grid; align-items: end; isolation: isolate; background: #a9cde4; }
.landmark__art { position: absolute; inset: 0; z-index: -1; }
.landmark__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.landmark__layer { will-change: transform; }
.landmark__copy { padding: 0 var(--gutter) clamp(56px, 10vh, 120px); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.landmark__copy-inner { max-width: 520px; background: rgba(251, 248, 242, .86); backdrop-filter: blur(10px); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.landmark__copy h2 { font-size: var(--step-3); }
.landmark__copy p { font-size: var(--step-1); color: var(--ink-2); margin: 0; }
.landmark--right .landmark__copy-inner { margin-left: auto; }
.landmark__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Disciplines */
.disc-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1100px) { .disc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .disc-track { grid-template-columns: 1fr; } }
.disc { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--ivory); border: 1px solid rgba(133, 124, 108, .22); box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.disc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.disc__art { aspect-ratio: 4/3.2; overflow: hidden; background: #f2ece0; }
.disc__art svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.disc:hover .disc__art svg { transform: scale(1.045); }
.disc__body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.disc__num { font: 600 .7rem/1 var(--ff-label); letter-spacing: .24em; color: var(--bronze); }
.disc__name { font: 600 var(--step-1)/1.15 var(--ff-display); margin: 0; }
.disc__sum { font-size: .9rem; color: var(--ink-3); margin: 0; }

/* Kinetic statements */
.statements { min-height: 100vh; position: relative; }
.statements__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 0 var(--gutter); }
.statements__list { list-style: none; margin: 0; padding: 0; display: grid; place-items: center; width: 100%; max-width: 1100px; text-align: center; }
.statements__list li { grid-area: 1 / 1; font: 600 var(--step-5)/1 var(--ff-display); letter-spacing: -.02em; color: var(--ink); opacity: 0; }
.statements__list li.is-long { font-size: var(--step-4); line-height: 1.08; max-width: 22ch; }
.statements__list li .w { display: inline-block; }
.statements__kicker { position: absolute; top: calc(var(--header-h) + 32px); left: 50%; transform: translateX(-50%); }
.statements__progress { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 160px; height: 1px; background: rgba(27, 35, 41, .15); }
.statements__progress span { display: block; height: 100%; background: var(--burgundy); width: 0; }
.statements.is-static { min-height: 0; }
.statements.is-static .statements__stage { position: static; height: auto; padding: 96px var(--gutter); }
.statements.is-static .statements__list { gap: 18px; }
.statements.is-static .statements__list li { grid-area: auto; opacity: 1; font-size: var(--step-3); }
.statements.is-static .statements__kicker, .statements.is-static .statements__progress { position: static; transform: none; }

/* Competition route */
.route { position: relative; }
.route__line { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; }
.route__line path { stroke: var(--bronze); stroke-width: 2; fill: none; stroke-dasharray: 4 6; }
.route__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.route__item { position: relative; padding-left: 64px; }
.route__item::before { content: ""; position: absolute; left: 14px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--bronze); }
.route__item.is-major::before { background: var(--burgundy); border-color: var(--burgundy); box-shadow: 0 0 0 5px rgba(124, 47, 43, .14); }
.route__date { font: 600 .74rem/1 var(--ff-label); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-bottom: 6px; }
.route__title { font: 600 var(--step-1)/1.2 var(--ff-display); margin: 0 0 4px; }
.comp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .comp-grid { grid-template-columns: 1fr; } }
.day-card { background: var(--ivory); border: 1px solid rgba(133, 124, 108, .22); border-radius: var(--radius-lg); padding: 22px; }
.day-card h4 { font-size: var(--step-1); margin-bottom: 12px; }
.day-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.day-card li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(133, 124, 108, .16); font-size: .9rem; }
.day-card time { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .84rem; }

/* Invitation */
.invitation { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 120px var(--gutter); }
.invitation__art { position: absolute; inset: 0; z-index: -1; }
.invitation__art svg { width: 100%; height: 100%; }
.invitation h2 { font: 600 var(--step-5)/.95 var(--ff-label); letter-spacing: .05em; text-shadow: 0 2px 30px rgba(244, 239, 230, .9); }
.invitation__tag { font: 500 italic var(--step-2)/1.2 var(--ff-display); text-shadow: 0 1px 16px rgba(244, 239, 230, .95); }
.invitation__date { font: 600 .8rem/1 var(--ff-label); letter-spacing: .3em; display: inline-block; padding: 10px 16px; background: rgba(251, 248, 242, .8); border-radius: 999px; margin: 18px 0 30px; }

/* Schedule */
.sched-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.sched-filter a { padding: .45em .95em; border-radius: 999px; border: 1px solid rgba(133, 124, 108, .35); text-decoration: none; color: var(--ink-2); font-size: .86rem; background: var(--ivory); }
.sched-filter a.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.sched-day { margin-bottom: 56px; }
.sched-day__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--stone); padding-bottom: 14px; margin-bottom: 8px; }
.sched-day__head h2 { font-size: var(--step-3); margin: 0; }
.slot { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(133, 124, 108, .18); }
.slot__time { font: 600 var(--step-1)/1.1 var(--ff-display); font-variant-numeric: tabular-nums; }
.slot__time small { display: block; font: 400 .78rem/1.4 var(--ff-body); color: var(--ink-3); margin-top: 4px; }
.slot__sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sess { background: var(--ivory); border: 1px solid rgba(133, 124, 108, .22); border-left: 3px solid var(--stone-2); border-radius: var(--radius); padding: 16px 18px; }
.sess--competition { border-left-color: var(--burgundy); }
.sess--ceremony { border-left-color: var(--bronze); }
.sess--break { border-left-color: var(--sky-2); background: #f3f7f9; }
.sess--ops { border-left-color: var(--forest); }
.sess h3 { font: 600 var(--step-1)/1.2 var(--ff-display); margin: 0 0 6px; }
.sess__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 720px) { .slot { grid-template-columns: 1fr; gap: 10px; } }

/* Leaderboard */
.lb { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.lb th { font: 600 .68rem/1.2 var(--ff-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 0 16px; }
.lb td { background: var(--ivory); padding: 16px; border-top: 1px solid rgba(133, 124, 108, .18); border-bottom: 1px solid rgba(133, 124, 108, .18); }
.lb td:first-child { border-left: 1px solid rgba(133, 124, 108, .18); border-radius: var(--radius) 0 0 var(--radius); }
.lb td:last-child { border-right: 1px solid rgba(133, 124, 108, .18); border-radius: 0 var(--radius) var(--radius) 0; }
.lb__rank { font: 600 var(--step-2)/1 var(--ff-display); width: 70px; }
.lb__name { font: 600 var(--step-1)/1.2 var(--ff-display); }
.lb__score { font: 600 var(--step-1)/1 var(--ff-display); font-variant-numeric: tabular-nums; text-align: right; }
.mv { font-size: .78rem; font-weight: 600; }
.mv--up { color: var(--ok); }
.mv--down { color: var(--err); }
.lb tr.is-top td { background: #fbf4e6; }

/* Discipline page */
.disc-hero { position: relative; overflow: hidden; background: #eef4f6; }
.disc-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.disc-hero__art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; background: #dde9ef; }
.disc-hero__art svg, .disc-hero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .disc-hero__grid { grid-template-columns: 1fr; } }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.layout-side aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 980px) { .layout-side { grid-template-columns: 1fr; } .layout-side aside { position: static; } }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .9rem; }
.toc a { display: block; padding: 6px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.toc a:hover { background: var(--parchment); }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules > li { counter-increment: r; padding: 18px 20px 18px 64px; position: relative; background: var(--ivory); border: 1px solid rgba(133, 124, 108, .2); border-radius: var(--radius); }
.rules > li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font: 600 .9rem/1 var(--ff-label); color: var(--bronze); }
.rules h4 { margin-bottom: .3em; }
.criteria { display: grid; gap: 10px; }
.crit { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
.crit__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--parchment); overflow: hidden; }
.crit__bar span { display: block; height: 100%; background: var(--burgundy); }
.crit strong { text-align: right; font-family: var(--ff-display); font-size: 1.2rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--stone); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font: 600 var(--step-1)/1.3 var(--ff-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.6rem/1 var(--ff-body); color: var(--bronze); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); }

/* Article */
.article-hero { padding: clamp(56px, 9vw, 120px) 0 32px; background: var(--limestone); }
.article-hero h1 { font-size: var(--step-4); max-width: 22ch; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 40px; box-shadow: var(--shadow-lg); }
.article-body { font-size: 1.1rem; line-height: 1.75; }
.share { display: flex; gap: 10px; flex-wrap: wrap; }

/* Profile */
.person-card { text-align: center; }
.avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; background: var(--parchment); overflow: hidden; display: grid; place-items: center; font: 600 2rem/1 var(--ff-display); color: var(--bronze); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Portal (participant / judge) */
.portal { padding: 40px 0 96px; }
.portal__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.portal__head h1 { font-size: var(--step-3); margin: 0; }
.portal__nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--stone); }
.portal__nav a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.portal__nav a.is-current { color: var(--burgundy); border-color: var(--burgundy); }
.stat { padding: 20px 22px; }
.stat__num { font: 600 var(--step-3)/1 var(--ff-display); }
.stat__lab { font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1px solid rgba(133, 124, 108, .18); }
.list-plain > li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

/* Errors */
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); background: var(--limestone); position: relative; overflow: hidden; }
.error-page__code { font: 600 clamp(5rem, 3rem + 10vw, 11rem)/1 var(--ff-label); color: rgba(124, 47, 43, .18); letter-spacing: .1em; }
.error-page h1 { font-size: var(--step-4); margin-top: -.4em; }

/* Reveal motion (applied only when JS + motion are allowed) */
.motion [data-reveal]:not(.is-in):not(.is-shown) { opacity: 0; transform: translateY(28px); }
.motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.gsap-reveal [data-reveal]:not(.is-shown) { transition: none !important; }
/* Word-by-word heading reveal (site.js wraps each word) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.sw__i { display: inline-block; will-change: transform; }
/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.motion [data-reveal="mask"] { clip-path: inset(0 0 100% 0); transform: none; opacity: 1; }
.motion [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .masthead, .footer, .banner, .world__stage { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Small shared pieces */
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 40px; }
.empty { padding: 36px; text-align: center; border: 1px dashed rgba(133, 124, 108, .4); border-radius: var(--radius-lg); color: var(--ink-3); background: rgba(251, 248, 242, .6); }
.empty p { margin: 0 0 12px; }
.local-time { white-space: nowrap; }
.stack { display: grid; gap: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.side-card { background: var(--ivory); border: 1px solid rgba(133, 124, 108, .22); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.cert { border: 1px solid rgba(133, 124, 108, .3); border-radius: var(--radius-lg); padding: 28px; background: var(--ivory); }
.thread { display: grid; gap: 14px; }
.msg { padding: 16px 18px; border-radius: var(--radius); background: var(--ivory); border: 1px solid rgba(133, 124, 108, .2); }
.msg--staff { background: #eef4f7; }
.msg__meta { font-size: .78rem; color: var(--ink-3); margin-bottom: 6px; }
.tl { display: grid; gap: 4px; }
.tl__lane { display: grid; gap: 8px; }
/* Auth */
.auth { position: relative; min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: calc(var(--header-h) + 32px) var(--gutter) 64px; overflow: hidden; isolation: isolate; }
.auth__art { position: absolute; inset: 0; z-index: -1; }
.auth__art svg { width: 100%; height: 100%; }
.auth__card { width: min(440px, 100%); background: rgba(251, 248, 242, .94); backdrop-filter: blur(12px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.auth__card h1 { font-size: var(--step-3); margin: 0; }
.auth__card .eyebrow { margin: 0; }

/* Feature cards */
.pillars__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.pillar { position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 34px); background: rgba(255, 255, 255, .62); border: 1px solid rgba(20, 25, 29, .08); border-radius: 18px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 25, 29, .08); border-color: rgba(20, 25, 29, .12); }
.pillar__num { font: 600 .74rem/1 var(--ff-body); letter-spacing: .1em; color: var(--bronze); }
.pillar__title { font: 600 var(--step-2)/1.1 var(--ff-display); margin: 0; }
.pillar__body { color: var(--ink-2); margin: 0; line-height: 1.6; }
.bg-slate { background: #182127; }
.bg-slate .lede { color: #c2cbd0; }
.bg-slate .eyebrow { color: #c9a873; }
.bg-slate .pillar { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
.bg-slate .pillar:hover { border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.bg-slate .pillar__title { color: #f3f1ec; }
.bg-slate .pillar__body { color: #aab4ba; }

/* ==========================================================================
   NIGHT — the whole public site lives in the clockwork map's candle-lit study.
   Tokens are re-pointed for screens; hard-coded daylight surfaces are overridden below.
   ========================================================================== */
@media screen {
  :root {
    --limestone: #14100c; --ivory: #1e1711; --parchment: #2a2017; --stone: #3b2f23; --stone-2: #6b5a45; --stone-3: #a8977a;
    --ink: #f1e6cf; --ink-2: #d6c6a6; --ink-3: #a8977a; --forest: #c9a465; --forest-2: #e7c27d; --slate: #0f0c09;
    --burgundy: #9b3a32; --bronze: #c89b52; --gold: #e7c27d; --sky-2: #7f9aa3; --focus: #e7c27d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 70px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
  body { background: #14100c; }
  body::after { /* fine film grain over everything */
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  ::selection { background: rgba(231, 194, 125, .35); color: #fff6e4; }
  h1, h2, h3 { color: #f6ead2; }
  .eyebrow, .kicker { color: var(--gold); }
  .skip { background: var(--gold); color: #1d140b; }

  /* Page heroes: the map itself, in sepia, under a warm glow. */
  .page-hero {
    background: #18140f;
    border-bottom: 1px solid rgba(231, 194, 125, .14);
  }
  .page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(26, 18, 10, .62); mix-blend-mode: multiply; pointer-events: none; }
  .page-hero__art { opacity: .3; filter: sepia(1) saturate(.6) brightness(.45) contrast(1.2); mix-blend-mode: screen; }
  .page-hero h1, .disc-hero h1 { color: #f3e2bd; text-shadow: 0 2px 0 rgba(50, 30, 12, .9), 0 12px 34px rgba(0, 0, 0, .7); }
  .page-hero .lede, .page-hero p { color: #d8c8a8; }

  /* Buttons */
  .btn--ink { --bg: var(--gold); --fg: #1d140b; }
  .btn--ink:hover { --bg: #f3d69b; --fg: #1d140b; }
  .btn--glass { background: rgba(22, 17, 12, .55); color: #f6ead2; border-color: rgba(231, 194, 125, .38); }
  .btn--light { --bg: var(--gold); --fg: #1d140b; }
  .btn--light:hover { --bg: #f3d69b; --fg: #1d140b; }
  .footer .btn--light { color: #1d140b; }

  /* Surfaces */
  .card, .panel, .landmark__copy-inner, .auth__card, .empty, .sess {
    background: #251b12;
    border-color: rgba(231, 194, 125, .2);
  }
  .pillar { background: #231a11; border: 1px solid rgba(231, 194, 125, .16); }
  .pillar:hover { border-color: rgba(231, 194, 125, .4); }
  .bg-forest, .bg-slate, .bg-sky, .bg-parchment { background: #19130e; }
  .bg-slate .pillar { background: rgba(255, 240, 210, .03); border-color: rgba(231, 194, 125, .14); }
  .landmark { background: #14100c; }
  .disc-hero__art { background: #1e1711; }
  .sess--break { background: rgba(127, 154, 163, .08); }
  .lb tr.is-top td { background: rgba(231, 194, 125, .08); }
  .msg--staff { background: rgba(127, 154, 163, .08); }
  .invitation__date, .arrival__meta span { background: rgba(20, 15, 10, .6); color: var(--ink-2); }
  hr { border-color: rgba(231, 194, 125, .15); }
  table th, table td { border-color: rgba(231, 194, 125, .12); }

  /* Forms */
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), select, textarea {
    background: #120e0a !important; color: var(--ink) !important; border-color: rgba(231, 194, 125, .25) !important;
  }
  input:focus, select:focus, textarea:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(231, 194, 125, .18) !important; }
  .choice { background: #120e0a; border-color: rgba(231, 194, 125, .22); }
  .choice:has(input:checked) { border-color: var(--gold); background: rgba(231, 194, 125, .08); }

  /* Status colours, tuned for dark */
  .pill { background: rgba(255, 240, 210, .05); border-color: rgba(231, 194, 125, .22); color: var(--ink-2); }
  .pill--ok { background: rgba(110, 170, 120, .12); color: #a9d4b0; border-color: rgba(110, 170, 120, .3); }
  .pill--warn, .notice { background: rgba(231, 194, 125, .1); color: #f0d49a; border-color: rgba(231, 194, 125, .3); }
  .pill--err { background: rgba(200, 90, 80, .12); color: #f0aaa2; border-color: rgba(200, 90, 80, .3); }
  .pill--sky, .notice--info { background: rgba(127, 154, 163, .12); color: #c4d6dc; border-color: rgba(127, 154, 163, .3); }

  /* Menus */
  .nav__sub { background: rgba(26, 20, 14, .97); border-color: rgba(231, 194, 125, .2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
  .nav__sub a { color: var(--ink-2); }
  .nav__sub a:hover { background: rgba(255, 240, 210, .06); color: #fff6e4; }
  .nav__panel { background: rgba(20, 15, 10, .97) !important; }
  body.nav-open .masthead .brand { color: #f6ead2; }

  /* Footer: warm, continuous with the map above it */
  .footer { background: #100c09; color: #a8977a; }
  .footer::before { background: rgba(231, 194, 125, .3); }
  .footer__cta, .footer__base { border-color: rgba(231, 194, 125, .1); }
  .footer__kicker { color: var(--gold); }
  .footer a:hover, .footer__legal a:hover, .footer__legal .linklike:hover { color: #fff1d0; }
  .footer__base { color: #7d6d57; }
  .brand--light .brand__org { color: #a8977a; }

  /* Daylight illustrations, re-printed as sepia engravings by candlelight. */
  .page-hero__art { display: none; }
  /* Heroes: an engraved metal sea, rippling out from a warm light — the map's own ocean. */
  .page-hero, .disc-hero { background: #18140f; }
  .page-hero::before { display: none; }
  .disc__art img, .disc-hero__art img[src$=".svg"], .card img[src$=".svg"] { filter: sepia(.85) saturate(.85) brightness(.72) contrast(1.15); }
  .disc { background: #251b12; border-color: rgba(231, 194, 125, .2); }
  .disc:hover { border-color: rgba(231, 194, 125, .45); }
  .auth__art { filter: sepia(.9) saturate(.7) brightness(.28) contrast(1.2); }
  .auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 45%, transparent, rgba(14, 11, 8, .85)); }
  .auth__card { background: #231a11; border: 1px solid rgba(231, 194, 125, .3); }
  .faq h2, .wrap--narrow > h2 { font-size: var(--step-2); margin-top: 1.6em; color: var(--gold); font-family: var(--ff-label); letter-spacing: .06em; }
  .disc-hero__art { border: 1px solid rgba(231, 194, 125, .35); box-shadow: 0 0 0 5px rgba(20, 15, 10, .6), 0 0 0 6px rgba(231, 194, 125, .18), var(--shadow-lg); border-radius: 4px; }
  /* Live castles replace the flat illustrations once WebGL is up. */
  .disc-hero__art { position: relative; }
  .disc-hero__art .castle-view { position: absolute; inset: 0; width: 100%; height: 100%; }
  .disc-hero__art.has-castle img { visibility: hidden; }
  .disc__art img.is-castle, .disc-hero__art img.is-castle { filter: none; }
  .btn--ghost { color: #f1e6cf; border-color: rgba(231, 194, 125, .45); }
  .btn--ghost:hover { background: var(--gold); color: #1d140b; border-color: var(--gold); }
  .disc__art { background: #1a140e; }
  .disc__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .disc:hover .disc__art img { transform: scale(1.04); }
  .world__fallback { background: #14100c; }
  .world__fallback svg, .world__fallback img { filter: sepia(.85) saturate(.9) brightness(.45) contrast(1.2); }
  .world .journey-card h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.05rem); line-height: 1.12; overflow-wrap: anywhere; }
  .btn--primary { --bg: #e7c27d; background: #e7c27d; color: #1d140b; border-color: #f0d49a; box-shadow: none; }
  .btn--primary:hover { background: #f0d193; color: #1d140b; }
  .world .arrival__kicker { color: #f0d49a; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
  .world .arrival__tag { text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 24px rgba(0, 0, 0, .85); }

  /* Between pages: the old page dims into the dark, the next rises out of it; the header stays put. */
  .masthead__bar { view-transition-name: masthead; }
  ::view-transition-old(root) { animation: vt-out .45s cubic-bezier(.4, 0, .2, 1) both; }
  ::view-transition-new(root) { animation: vt-in .75s cubic-bezier(.22, .61, .21, 1) .1s both; }
  @keyframes vt-out { to { opacity: 0; filter: brightness(.3) blur(4px); transform: scale(.985); } }
  @keyframes vt-in { from { opacity: 0; filter: brightness(.4) blur(6px); transform: scale(1.015); } }
}
/* Phones: no live blur or big filters (they re-composite every frame while the map renders), lighter transitions. */
@media (max-width: 900px), (pointer: coarse) {
  *, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .masthead__bar, .masthead.is-solid .masthead__bar { background: rgba(18, 14, 10, .94); }
  body.nav-open .masthead__bar { background: transparent; }
  .nav__panel { background: #fbfaf8; }
  .world .arrival__title span:not(.yr) { filter: none; text-shadow: 0 2px 0 rgba(60, 36, 14, .9), 0 6px 24px rgba(0, 0, 0, .7); }
  .world .arrival__title .yr { filter: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
  .world.is-intro .arrival > * { filter: none; }
  .brand__mark { filter: none; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
}
@media (max-width: 520px) {
  .arrival__scroll { letter-spacing: .22em; font-size: .68rem; white-space: nowrap; }
  .arrival__meta { gap: 8px; }
  .arrival__meta span { padding: 8px 12px; font-size: .68rem; letter-spacing: .2em; }
}
a.pill { text-decoration: none; }
/* Sign-in and portals: a lone checkbox is a quiet row, not a second input box. */
.auth .choice, .auth .choice:has(input:checked) { border-color: transparent; background: none; padding: 2px 0; }
.auth .choice input { margin-top: .2em; }
@media (max-width: 900px) { .auth__art { display: none; } .auth { background: #14100c; } }
/* Phone polish: tighter rhythm, comfortable touch targets, no accidental zoom or tap flash. */
@media (max-width: 900px) {
  .auth { min-height: auto; place-items: start center; padding-top: calc(var(--header-h) + 20px); padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .page-hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 36px; }
  .section__head, .section__head--split { margin-bottom: 28px; }
  .grid--2, .grid--3, .grid--4 { gap: 16px; }
  .footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }
}
@media (pointer: coarse) {
  html { -webkit-tap-highlight-color: transparent; }
  a, button, summary, .btn, .choice { touch-action: manipulation; }
  .btn { min-height: 48px; }
  .btn--sm { min-height: 42px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; min-height: 48px; }
  input[type=checkbox], input[type=radio] { min-height: 0; width: 22px; height: 22px; }
  .footer__col a, .footer__legal a { display: inline-block; padding: 6px 0; }
}
/* The cross-page transition opt-in lives inline in base.html's <head>: here it arrived too late when web fonts were slow. */
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
