/* ==========================================================================
   Bonavis Games
   Tokens → base → nav → hero → sections → footer → motion
   ========================================================================== */

:root {
  /* palette, taken from the studio artwork: evening sky, cream lockup, gold bird */
  --paper: #fbf7f1;
  --paper-card: #fefbf6;
  --sand: #f3e9da;
  --ink: #182740;
  --ink-soft: #4c5f7a;
  --navy: #16243c;
  --navy-soft: #22344f;
  --sky: #5b7ba6;
  --gold: #c0924f;
  --gold-ink: #7a5629;
  --gold-light: #e2c69b;
  --cream: #f6eddf;
  --cream-soft: rgba(246, 237, 223, 0.76);
  --line: rgba(24, 39, 64, 0.14);
  --line-dark: rgba(246, 237, 223, 0.18);

  /* spacing scale */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-900);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p, dl, dd, blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.hero :focus-visible,
.nav :focus-visible,
.menu-panel :focus-visible,
.section--game :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--s-75);
  left: var(--s-75);
  z-index: 100;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--ink);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- type styles ---------- */

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow--cream {
  color: rgba(246, 237, 223, 0.94);
}

.eyebrow--gold {
  color: var(--gold-light);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .h2 {
    font-size: 3rem;
  }
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.25rem;
    line-height: 1.55;
  }
}

.lead--dark {
  color: rgba(246, 237, 223, 0.82);
}

.body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body + .body {
  margin-top: var(--s-300);
}

.body--dark {
  color: rgba(246, 237, 223, 0.68);
}

.caption {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--ink-soft);
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-300);
}

.container--narrow {
  max-width: 760px;
}

.container--tt {
  max-width: 960px;
}

.section {
  padding: var(--s-800) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--s-900) 0;
  }
}

.section__head {
  margin-bottom: var(--s-600);
}

.section__head .eyebrow {
  margin-bottom: var(--s-200);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  flex: none;
}

.btn--lg {
  padding: var(--s-100) var(--s-200);
  font-size: 1.125rem;
}

.btn--cream {
  background: var(--cream);
  color: var(--ink);
}

.btn--cream:hover {
  background: #fffaf1;
}

.btn--ghost {
  color: var(--cream);
  border-color: rgba(246, 237, 223, 0.36);
}

.btn--ghost:hover {
  background: rgba(246, 237, 223, 0.14);
  border-color: rgba(246, 237, 223, 0.62);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

.btn--ink:hover {
  background: var(--navy-soft);
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: var(--s-200);
  left: 50%;
  z-index: 50;
  width: min(100% - var(--s-400), 1120px);
  transform: translateX(-50%);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  border: 1px solid rgba(246, 237, 223, 0.26);
  border-radius: var(--r-full);
  background: rgba(22, 36, 60, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.nav.is-solid .nav__bar {
  background: rgba(251, 247, 241, 0.9);
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(24, 39, 64, 0.1);
}

.nav__brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.nav__mark {
  width: 132px;
  transition: opacity 0.4s var(--ease);
}

.nav__mark--dark {
  display: none;
}

.nav.is-solid .nav__mark--light {
  display: none;
}

.nav.is-solid .nav__mark--dark {
  display: block;
}

.nav__links {
  display: flex;
  gap: var(--s-300);
}

.nav__links a {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 237, 223, 0.94);
  transition: color 0.3s var(--ease);
}

.nav__links a:hover {
  color: #fff;
}

.nav.is-solid .nav__links a {
  color: var(--ink-soft);
}

.nav.is-solid .nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  font-size: 0.875rem;
  padding: var(--s-75) var(--s-200);
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--s-75);
  background: rgba(246, 237, 223, 0.14);
  border: 1px solid rgba(246, 237, 223, 0.28);
}

.nav__burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cream);
}

.nav.is-solid .nav__burger {
  background: rgba(24, 39, 64, 0.05);
  border-color: var(--line);
}

.nav.is-solid .nav__burger span {
  background: var(--ink);
}

@media (max-width: 899px) {
  .nav {
    top: var(--s-100);
    width: calc(100% - var(--s-300));
  }

  .nav__bar {
    padding: var(--s-50) var(--s-50) var(--s-50) var(--s-200);
  }

  .nav__mark {
    width: 108px;
  }

  .nav__links,
  .nav__cta,
  .nav .nav__lang {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

/* ---------- language switch ---------- */

.lang {
  display: flex;
  align-items: center;
  gap: var(--s-25);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.lang__item {
  padding: var(--s-25) var(--s-50);
  border-radius: var(--r-sm);
  color: rgba(246, 237, 223, 0.66);
  transition: color 0.3s var(--ease);
}

.lang__item:hover {
  color: var(--cream);
}

.lang__item[aria-current="true"] {
  color: var(--cream);
}

.lang__sep {
  color: rgba(246, 237, 223, 0.34);
}

.nav.is-solid .lang__item {
  color: rgba(24, 39, 64, 0.48);
}

.nav.is-solid .lang__item:hover,
.nav.is-solid .lang__item[aria-current="true"] {
  color: var(--ink);
}

.nav.is-solid .lang__sep {
  color: rgba(24, 39, 64, 0.28);
}

.lang--menu {
  gap: var(--s-75);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.lang--menu .lang__item {
  color: var(--ink-soft);
}

.lang--menu .lang__item:hover,
.lang--menu .lang__item[aria-current="true"] {
  color: var(--gold-ink);
}

.lang--menu .lang__sep {
  color: rgba(24, 39, 64, 0.3);
}

.lang--footer {
  letter-spacing: 0.16em;
}

.lang--footer .lang__item {
  color: rgba(246, 237, 223, 0.58);
}

.lang--footer .lang__item:hover,
.lang--footer .lang__item[aria-current="true"] {
  color: var(--cream);
}

.lang--footer .lang__sep {
  color: rgba(246, 237, 223, 0.3);
}

.nav__lang {
  margin-left: var(--s-50);
}

/* ---------- mobile menu ---------- */

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-600);
  padding: var(--s-800) var(--s-300) var(--s-600);
  background: rgba(251, 247, 241, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.menu-panel.is-open {
  visibility: visible;
  opacity: 1;
}

.menu-panel__close {
  position: absolute;
  top: var(--s-200);
  right: var(--s-200);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--ink);
}

.menu-panel__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
}

.menu-panel__links a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 300;
  color: var(--ink);
  opacity: 0;
  transform: translateY(var(--s-300));
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.menu-panel.is-open .menu-panel__links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 60ms + 80ms);
}

.menu-panel__foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  padding-top: var(--s-300);
  border-top: 1px solid var(--line);
}

.menu-panel__mail {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--s-900) 0 var(--s-800);
  overflow: hidden;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  background: var(--navy);
  color: var(--cream);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      64% 50% at 50% 44%,
      rgba(13, 25, 42, 0.52) 0%,
      rgba(13, 25, 42, 0) 78%
    ),
    linear-gradient(
      to bottom,
      rgba(11, 22, 38, 0.58) 0%,
      rgba(11, 22, 38, 0.16) 32%,
      rgba(11, 22, 38, 0) 58%,
      rgba(11, 22, 38, 0.46) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--s-300);
  text-align: center;
}

.hero__bird {
  width: clamp(72px, 9vw, 108px);
  margin: var(--s-300) auto 0;
  filter: drop-shadow(0 12px 28px rgba(11, 22, 38, 0.34));
}

.hero__brand {
  margin: var(--s-200) auto 0;
}

.hero__brand img {
  width: min(560px, 100%);
  margin: 0 auto;
}

.hero__sub {
  max-width: 640px;
  margin: var(--s-400) auto 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(246, 237, 223, 0.97);
  text-shadow: 0 1px 18px rgba(11, 22, 38, 0.35);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .hero__sub {
    font-size: 1.25rem;
    line-height: 1.5;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-100);
  margin-top: var(--s-500);
}

.hero__note {
  margin-top: var(--s-500);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 237, 223, 0.84);
  text-shadow: 0 1px 12px rgba(11, 22, 38, 0.45);
}

/* ---------- tagline reveal ---------- */

.section--tagline {
  padding-top: var(--s-900);
  padding-bottom: var(--s-900);
}

.tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-align: center;
  text-wrap: balance;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tagline {
    font-size: 3rem;
    line-height: 1.08;
  }
}

@media (min-width: 1200px) {
  .tagline {
    font-size: 3.75rem;
  }
}

.tagline .word {
  color: rgba(24, 39, 64, 0.26);
  transition: color 0.5s var(--ease);
}

.tagline .word.is-on {
  color: var(--ink);
}

/* ---------- about ---------- */

.split {
  display: grid;
  gap: var(--s-500);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--s-800);
    align-items: start;
  }
}

.split__aside .eyebrow {
  margin-top: var(--s-300);
  margin-bottom: var(--s-200);
}

.about__bird {
  width: 64px;
  opacity: 0.9;
}

.split__main .lead {
  margin-bottom: var(--s-300);
}

.split__main .body + .body {
  margin-top: var(--s-300);
}

.pull {
  margin: var(--s-500) 0 0;
  padding-left: var(--s-300);
  border-left: 1px solid var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 300;
  color: var(--ink);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .pull {
    font-size: 1.875rem;
  }
}

/* ---------- game ---------- */

.section--game {
  margin: 0 var(--s-200);
  padding: var(--s-800) 0;
  border-radius: var(--r-2xl);
  background: var(--navy);
  color: var(--cream);
}

@media (min-width: 900px) {
  .section--game {
    margin: 0 var(--s-300);
    padding: var(--s-900) 0;
  }
}

.game__grid {
  display: grid;
  gap: var(--s-600);
}

@media (min-width: 900px) {
  .game__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--s-700);
    align-items: start;
  }
}

.game__title {
  margin: var(--s-200) 0 var(--s-400);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--cream);
}

@media (min-width: 480px) {
  .game__title {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .game__title {
    font-size: 4.5rem;
  }
}

.game__copy .body {
  margin-top: var(--s-300);
}

.dossier {
  padding: var(--s-400);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
  background: rgba(246, 237, 223, 0.05);
}

.dossier__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-100) 0;
  border-bottom: 1px solid rgba(246, 237, 223, 0.12);
}

.dossier__row:last-of-type {
  border-bottom: 0;
}

.dossier dt {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 237, 223, 0.55);
}

.dossier dd {
  font-size: 1rem;
  color: var(--cream);
  text-align: right;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--s-75);
  border-radius: var(--r-full);
  background: var(--gold-light);
  vertical-align: middle;
}

.dossier__note {
  margin-top: var(--s-300);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(246, 237, 223, 0.6);
}

/* ---------- dev diary ---------- */

.diary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  margin-top: var(--s-600);
  padding-top: var(--s-500);
  border-top: 1px solid var(--line-dark);
}

.diary__label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.diary__text {
  max-width: 520px;
  margin-top: var(--s-75);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(246, 237, 223, 0.72);
  text-wrap: pretty;
}

/* ---------- rules ---------- */

.rules {
  display: grid;
  gap: var(--s-200);
}

@media (min-width: 900px) {
  .rules {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-300);
  }
}

.rule {
  padding: var(--s-400);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper-card);
}

.rule__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.rule__title {
  margin: var(--s-300) 0 var(--s-100);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.rule__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- faq ---------- */

.faq {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  padding: var(--s-300) 0;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q svg {
  flex: none;
  color: var(--gold-ink);
  transition: transform 0.4s var(--ease);
}

.faq__item[open] .faq__q svg {
  transform: rotate(45deg);
}

.faq__a {
  padding-bottom: var(--s-300);
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.faq__a a {
  color: var(--gold-ink);
  border-bottom: 1px solid var(--gold-light);
}

.faq__a a:hover {
  border-bottom-color: var(--gold-ink);
}

/* ---------- contact ---------- */

.section--contact {
  margin: 0 var(--s-200);
  padding: var(--s-800) 0;
  border-radius: var(--r-2xl);
  background: var(--sand);
  text-align: center;
}

@media (min-width: 900px) {
  .section--contact {
    margin: 0 var(--s-300);
    padding: var(--s-900) 0;
  }
}

.section--contact .eyebrow {
  margin-bottom: var(--s-200);
}

.section--contact .lead {
  max-width: 560px;
  margin: var(--s-300) auto 0;
}

.contact__cta {
  margin-top: var(--s-500);
}

.section--contact .caption {
  margin-top: var(--s-400);
  color: rgba(24, 39, 64, 0.72);
}

/* ---------- footer ---------- */

.footer {
  margin-top: var(--s-800);
  padding: var(--s-700) 0 var(--s-400);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  background: var(--navy);
  color: var(--cream);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-400);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-600);
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand img {
  width: 168px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-300);
}

.footer__nav a {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 237, 223, 0.72);
  transition: color 0.3s var(--ease);
}

.footer__nav a:hover {
  color: var(--cream);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-200) var(--s-400);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-400);
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(246, 237, 223, 0.58);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-300);
}

.footer__legal a {
  text-decoration: underline;
  text-decoration-color: rgba(246, 237, 223, 0.28);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease);
}

.footer__legal a:hover {
  text-decoration-color: var(--gold-light);
}

/* ---------- legal pages ---------- */

.legal {
  padding: var(--s-900) 0 var(--s-800);
}

.legal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  margin-bottom: var(--s-700);
}

.legal__top img {
  width: 148px;
}

.legal__actions {
  display: flex;
  align-items: center;
  gap: var(--s-300);
}

.lang--legal {
  letter-spacing: 0.14em;
}

.lang--legal .lang__item {
  color: rgba(24, 39, 64, 0.45);
}

.lang--legal .lang__item:hover,
.lang--legal .lang__item[aria-current="true"] {
  color: var(--ink);
}

.lang--legal .lang__sep {
  color: rgba(24, 39, 64, 0.25);
}

@media (max-width: 640px) {
  .legal__top {
    flex-wrap: wrap;
    gap: var(--s-200);
  }

  .legal__actions {
    width: 100%;
    justify-content: space-between;
  }
}

.legal__back {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-ink);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.05;
  margin-bottom: var(--s-300);
}

@media (min-width: 768px) {
  .legal h1 {
    font-size: 3rem;
  }
}

.legal h2 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 600;
  margin: var(--s-500) 0 var(--s-100);
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.legal ul {
  list-style: disc;
  padding-left: var(--s-300);
  margin: var(--s-100) 0;
}

.legal li + li {
  margin-top: var(--s-75);
}

.legal__date {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--s-500);
}

.legal a {
  color: var(--gold-ink);
  border-bottom: 1px solid var(--gold-light);
}

/* ---------- 404 ---------- */

.page404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--s-800) var(--s-300);
  text-align: center;
  background: var(--navy);
  color: var(--cream);
}

.page404__bird {
  width: 112px;
  margin: 0 auto var(--s-400);
}

.page404__lang {
  justify-content: center;
  margin-top: var(--s-400);
}

.page404__code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 300;
  color: var(--gold-light);
}

.page404 h1 {
  margin: var(--s-200) 0 var(--s-300);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 300;
}

.page404 p {
  max-width: 460px;
  margin: 0 auto var(--s-500);
  color: rgba(246, 237, 223, 0.72);
  text-wrap: pretty;
}

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .tagline .word {
    transition: opacity 0.3s linear;
    transform: none;
  }

  .js .reveal {
    opacity: 1;
  }

  .menu-panel__links a,
  .menu-panel.is-open .menu-panel__links a {
    transform: none;
    opacity: 1;
    transition-delay: 0ms;
  }
}
