/* ============================================================
   THE INSTITUTE OF WONDER
   A digital prospectus that becomes an atlas.
   ============================================================ */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --blue: #709BE1;
  --peach: #F4CFA2;
  --yellow: #F5E578;
  --pink: #EC9AC7;
  --green: #99C7AE;
  --paper: #F5F1E7;
  --paper-light: #FBF8F1;
  --ink: #293B5D;
  --ink-soft: rgba(41, 59, 93, 0.76);
  --lavender: #B5A6DC;
  --line: rgba(41, 59, 93, 0.18);
  --line-light: rgba(245, 241, 231, 0.22);

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 11vw, 152px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
h1 em, h2 em { font-style: italic; }

p { margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-family: var(--mono); font-size: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 2. Reusable pieces ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; flex: none;
  background: var(--accent, var(--blue));
  border: 1px solid currentColor;
}
.eyebrow__sep { opacity: 0.45; margin-inline: 2px; }
.eyebrow--light { color: rgba(245, 241, 231, 0.72); }
.eyebrow--hero { color: var(--ink); }

.mini-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn__arrow { font-family: var(--mono); font-size: 16px; transition: transform 0.25s ease; }
.btn:hover:not(:disabled) .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover:not(:disabled) { background: #35507d; }

.btn--text {
  padding-inline: 4px;
  color: var(--ink);
  border-bottom-color: var(--ink);
  border-radius: 0;
}
.btn--text:hover { color: #35507d; border-bottom-color: #35507d; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover:not(:disabled) { background: var(--ink); color: var(--paper); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover:not(:disabled) { background: var(--yellow); }

.btn--ghost-light { background: transparent; color: var(--paper); border-color: var(--line-light); }
.btn--ghost-light:hover:not(:disabled) { background: rgba(245, 241, 231, 0.12); border-color: var(--paper); }
.btn--ghost-light[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.figure img { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Reveal — only active when JS is present */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 3. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 241, 231, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding-block: 16px;
}
.brand img { width: clamp(150px, 14vw, 196px); height: auto; }

.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 30px); }
.primary-nav > a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 10px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.primary-nav > a:hover { border-bottom-color: currentColor; color: #35507d; }
.primary-nav__cta {
  border: 1px solid var(--ink) !important;
  padding: 10px 14px !important;
  background: var(--ink); color: var(--paper) !important;
}
.primary-nav__cta:hover { background: #35507d; color: var(--paper) !important; }

.nav-toggle { display: none; }

/* ---------- 4. Chapter I — Arrival ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(96vh, 980px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(245, 241, 231, 0.42) 0%,
      rgba(245, 241, 231, 0.20) 38%,
      rgba(245, 241, 231, 0) 72%),
    linear-gradient(180deg,
      rgba(245, 241, 231, 0.92) 0%,
      rgba(245, 241, 231, 0.72) 24%,
      rgba(245, 241, 231, 0.26) 52%,
      rgba(245, 241, 231, 0.02) 72%,
      rgba(41, 59, 93, 0.10) 100%);
}
.hero__inner { padding-block: 128px 210px; }
.hero__copy { max-width: 800px; }
.hero h1 {
  font-size: clamp(2.9rem, 5.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero h1 em { color: #35507d; }
.hero__lede {
  max-width: 48ch;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: #2c3f61;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.hero__foot {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(245, 241, 231, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(41, 59, 93, 0.16);
}
.hero__foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 54px;
}
.hero__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero__facts li {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 16px;
}
.hero__facts li:not(:last-child)::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pink);
}
.hero__scroll {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.hero__scroll:hover { border-bottom-color: currentColor; }

/* ---------- 5. Chapter II — Education, liberated ---------- */
.liberation { background: var(--paper); }
.liberation__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: start;
}
.liberation__text h2 {
  font-size: clamp(2.3rem, 4.1vw, 3.9rem);
  margin-bottom: 26px;
  max-width: 16ch;
}
.liberation__text .lede { max-width: 46ch; margin-bottom: 30px; }

.refusal-list { border-top: 1px solid var(--line); margin-bottom: 36px; }
.refusal-list li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.refusal-list li::before {
  content: ""; position: absolute; left: 2px; top: 50%;
  width: 7px; height: 7px; transform: translateY(-50%);
  background: var(--green);
}

.pullquote { display: flex; align-items: center; gap: 20px; }
.pullquote img { width: 54px; height: 54px; opacity: 0.95; }
.pullquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.2;
}

.liberation__images { padding-top: clamp(0px, 4vw, 56px); }
.figure--primary img { aspect-ratio: 1672 / 941; object-fit: cover; }
.figure--secondary {
  width: 72%;
  margin-top: clamp(28px, 5vw, 64px);
  margin-left: auto;
  padding: 10px 10px 0;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(41, 59, 93, 0.08);
}
.figure--secondary img { aspect-ratio: 1536 / 1024; object-fit: cover; }
.figure--secondary figcaption { padding: 0 4px 12px; }

/* ---------- 6. Chapter III — The Atlas of Wonder ---------- */
.atlas {
  background: var(--ink);
  color: var(--paper);
  --accent: var(--yellow);
}
.atlas :focus-visible { outline-color: var(--yellow); }
.atlas__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 68px);
}
.atlas__head h2 { font-size: clamp(2.4rem, 4.6vw, 4.3rem); }
.atlas__head h2 em { color: var(--blue); }
.atlas__intro {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(245, 241, 231, 0.72);
  max-width: 44ch;
  padding-bottom: 6px;
}

.atlas__layout {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.atlas__layout > * { min-width: 0; }
.atlas__index-label,
.atlas__index-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 231, 0.5);
}
.atlas__index-label { margin-bottom: 14px; }
.atlas__index-note { margin-top: 16px; line-height: 1.6; text-transform: none; letter-spacing: 0.05em; }

.world-index { border-top: 1px solid var(--line-light); }
.world-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-left: 3px solid transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.world-btn:hover { background: rgba(245, 241, 231, 0.06); }
.world-btn.is-active {
  background: rgba(245, 241, 231, 0.09);
  border-left-color: var(--world-accent);
}
.world-btn__icon { width: 34px; height: 34px; object-fit: contain; }
.world-btn__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.world-btn__num {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: rgba(245, 241, 231, 0.5);
}
.world-btn__name {
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.world-btn.is-active .world-btn__name { color: var(--world-accent); }
.world-btn__arrow { font-family: var(--mono); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; }
.world-btn:hover .world-btn__arrow, .world-btn.is-active .world-btn__arrow { opacity: 1; }
.world-btn.is-active .world-btn__arrow { transform: translateX(2px); }

.world-stage {
  position: relative;
  display: flex;
  min-height: clamp(500px, 46vw, 640px);
  overflow: hidden;
  background: #1b2942;
}
.world-stage::before {
  content: ""; position: absolute; z-index: 3;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--world-accent, var(--yellow));
  transition: background-color 0.4s ease;
}
.world-stage__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.world-stage__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 32, 55, 0.05) 0%,
    rgba(20, 32, 55, 0.10) 32%,
    rgba(20, 32, 55, 0.72) 72%,
    rgba(20, 32, 55, 0.94) 100%);
}
.world-stage__content {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3.4vw, 44px);
  width: 100%;
}
.world-stage__kicker {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245, 241, 231, 0.78);
  margin-bottom: 12px;
}
.world-stage__dot { padding-inline: 4px; color: var(--world-accent, var(--yellow)); }
.world-stage h3 { font-size: clamp(2rem, 3.3vw, 3.2rem); margin-bottom: 8px; }
.world-stage__focus {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--world-accent, var(--yellow));
  margin-bottom: 14px;
}
.world-stage__desc {
  max-width: 52ch;
  font-size: 14px; line-height: 1.6;
  color: rgba(245, 241, 231, 0.86);
  margin-bottom: 20px;
}
.world-stage__example {
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
  margin-bottom: 22px;
  max-width: 52ch;
}
.world-stage__example .mini-label { color: rgba(245, 241, 231, 0.58); }
.world-stage__example p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45;
  margin-top: 6px;
}
.world-stage__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 7. Chapter IV — Ways to learn ---------- */
.how { background: var(--paper-light); }
.how__head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.how__head h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); margin-bottom: 20px; }
.how__head .lede { max-width: 58ch; }

.modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.mode-btn {
  display: block;
  padding: 0 0 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.mode-btn:hover { transform: translateY(-3px); }
.mode-btn.is-active { border-top-color: var(--ink); background: #fffdf8; }
.mode-btn__img { width: 100%; aspect-ratio: 389 / 173; object-fit: cover; }
.mode-btn__text { display: block; padding: 14px 16px 0; }
.mode-btn__num {
  display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 4px;
}
.mode-btn__name {
  display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2;
}
.mode-btn__desc { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-soft); margin-top: 5px; }

.mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border: 1px solid var(--line);
  background: var(--paper);
}
.mode-panel__media { min-height: 380px; overflow: hidden; }
.mode-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.mode-panel__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}
.mode-panel__text h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: 18px; }
.mode-panel__text > p:not(.eyebrow) { color: var(--ink-soft); font-size: 15px; }
.mode-panel__example { border-top: 1px solid var(--line); margin: 24px 0; padding-top: 18px; }
.mode-panel__example p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; margin-top: 6px; }
.mode-panel__text .btn { align-self: flex-start; }

.anywhere {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--peach);
  border: 1px solid rgba(41, 59, 93, 0.14);
}
.anywhere__image {
  padding: 8px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(41, 59, 93, 0.12);
}
.anywhere__image img { width: 100%; height: auto; }
.anywhere__text h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 14px; }
.anywhere__text > p:not(.eyebrow) { max-width: 62ch; font-size: 15px; line-height: 1.7; }

/* ---------- 8. Chapter V — Your first discovery ---------- */
.discovery { background: var(--paper); }
.discovery__head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 52px); }
.discovery__head h2 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); margin-bottom: 20px; }
.discovery__head .lede { max-width: 60ch; }

.interests { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.interest-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.interest-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.interest-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.interest-btn__num { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; opacity: 0.55; }

.discovery-result {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border: 1px solid var(--line);
  background: var(--paper-light);
  --accent: var(--accent, var(--blue));
}
.discovery-result::before { content: none; }
.discovery-result__media {
  position: relative;
  min-height: 340px;
  background: var(--peach);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.discovery-result__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.discovery-result__media.is-placeholder img { object-fit: contain; padding: clamp(20px, 4vw, 48px); }
.discovery-result__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}
.discovery-result__text h3 { font-size: clamp(1.8rem, 2.7vw, 2.6rem); margin-bottom: 16px; }
.discovery-result__text > p:not(.eyebrow):not(.discovery-result__status) { color: var(--ink-soft); font-size: 15px; max-width: 44ch; }
.discovery-result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.discovery-result__status {
  min-height: 1.4em; margin-top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- 9. Closing ---------- */
.closing { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.closing__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245, 241, 231, 0.84) 0%, rgba(245, 241, 231, 0.35) 46%, rgba(245, 241, 231, 0) 78%);
}
.closing__inner { position: relative; padding-block: clamp(60px, 8vw, 110px); }
.closing__card {
  max-width: 620px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(41, 59, 93, 0.16);
}
.closing__card h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); margin-bottom: 18px; }
.closing__signoff {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 26px;
}

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 76px) 28px; }
.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.site-footer__brand img { width: 190px; height: auto; margin-bottom: 20px; }
.site-footer__brand p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer__nav .mini-label { margin-bottom: 14px; }
.site-footer__nav a {
  display: block; width: fit-content;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-decoration: none; padding-block: 5px;
  border-bottom: 1px solid transparent;
}
.site-footer__nav a:hover { border-bottom-color: currentColor; }
.site-footer__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.site-footer__bottom p { max-width: 64ch; font-family: var(--mono); font-size: 10px; line-height: 1.7; color: var(--ink-soft); }
.site-footer__bottom img { width: 34px; height: 34px; opacity: 0.85; }

/* ---------- 11. Preview dialog ---------- */
.preview {
  width: min(880px, calc(100% - 28px));
  max-height: min(92vh, 900px);
  padding: 0; border: 0; border-radius: 2px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 90px rgba(12, 22, 40, 0.45);
  overflow: auto;
}
.preview::backdrop { background: rgba(18, 29, 49, 0.76); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.preview__inner { display: flex; flex-direction: column; }
.preview__media { position: relative; flex: none; height: clamp(200px, 34vh, 340px); background: var(--ink); }
.preview__media img { width: 100%; height: 100%; object-fit: cover; }
.preview__close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 0; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.preview__close:hover { transform: rotate(90deg); background: var(--yellow); }
.preview__body { padding: clamp(24px, 4vw, 44px); }
.preview__body h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: 22px; }
.preview__example { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 18px; margin-bottom: 18px; }
.preview__example p { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; margin-top: 8px; }
.preview__note { font-size: 12px; color: var(--ink-soft); max-width: 60ch; }
.preview__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav { gap: 14px; }
  .primary-nav > a { font-size: 9px; }
  .atlas__layout { grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); }
  .world-stage { min-height: 560px; }
}

@media (max-width: 900px) {
  :root { --section-y: clamp(72px, 10vw, 104px); }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; border: 1px solid var(--ink);
    color: var(--ink); padding: 9px 12px; cursor: pointer;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .nav-toggle__lines { display: grid; gap: 4px; width: 18px; }
  .nav-toggle__lines span { display: block; height: 1px; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(41, 59, 93, 0.12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .primary-nav > a { font-size: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .primary-nav__cta { margin-top: 10px; text-align: center; border-bottom: 1px solid var(--ink) !important; }

  /* Mobile hero: let the photograph keep its shape, put words beside it. */
  .hero { min-height: 0; display: block; padding-top: 72px; }
  .hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 2048 / 1146; }
  .hero__media img { object-position: center center; }
  .hero__scrim { display: none; }
  .hero__inner { padding-block: clamp(30px, 6vw, 52px) clamp(84px, 12vw, 110px); background: var(--paper); }
  .hero__copy { max-width: none; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4.6rem); }
  .hero__foot { position: relative; }

  .liberation__grid, .atlas__head, .mode-panel, .discovery-result { grid-template-columns: 1fr; }
  .liberation__images { padding-top: 8px; }
  .figure--secondary { width: 84%; }
  .atlas__head { gap: 24px; }
  .atlas__intro { max-width: 62ch; }

  .atlas__layout { grid-template-columns: 1fr; gap: 28px; }
  .atlas__index-label { display: none; }
  .atlas__index-note { display: none; }
  .world-index {
    display: flex; gap: 10px;
    border-top: 0;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 241, 231, 0.4) transparent;
    -webkit-overflow-scrolling: touch;
  }
  .world-index::-webkit-scrollbar { height: 4px; }
  .world-index::-webkit-scrollbar-track { background: transparent; }
  .world-index::-webkit-scrollbar-thumb { background: rgba(245, 241, 231, 0.4); }
  .world-btn {
    width: auto; min-width: 190px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--line-light);
    border-left: 3px solid transparent;
    padding: 10px 12px;
  }
  .world-btn__arrow { display: none; }
  .world-btn__icon { width: 28px; height: 28px; }
  .world-btn__name { font-size: 0.98rem; }
  .world-stage { min-height: 520px; }

  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-panel__media { min-height: 320px; }
  .anywhere { grid-template-columns: 1fr; }
  .anywhere__image { max-width: 420px; }

  .discovery-result__media { min-height: 280px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --section-y: 68px; }

  html { scroll-padding-top: 78px; }
  body { font-size: 15px; }
  .brand img { width: 140px; }
  .nav-toggle__label { display: none; }

  .hero h1 { font-size: clamp(2.55rem, 11vw, 3.5rem); }
  .hero__lede { font-size: 1.02rem; }
  .hero__actions { gap: 14px; }
  .hero__facts { gap: 8px 12px; }
  .hero__facts li { font-size: 9px; gap: 10px; }
  .hero__scroll { display: none; }

  .figure--secondary { width: 92%; }
  .refusal-list li { font-size: 11px; }

  .world-stage { min-height: 560px; }
  .world-stage__content { padding: 22px; }
  .world-stage__desc { font-size: 13px; }
  .world-stage__actions .btn { flex: 1 1 100%; }

  .modes { gap: 10px; }
  .mode-btn__text { padding: 11px 12px 0; }
  .mode-btn__name { font-size: 1.2rem; }
  .mode-btn__desc { font-size: 11px; }
  .mode-panel__text { padding: 26px 22px; }
  .anywhere { padding: 22px; }

  .interest-btn { width: 100%; font-size: 0.98rem; }
  .discovery-result__media { min-height: 220px; }
  .discovery-result__text { padding: 26px 22px; }
  .discovery-result__actions .btn { flex: 1 1 150px; }

  .closing { min-height: 0; }
  .closing__scrim { background: linear-gradient(180deg, rgba(245,241,231,0.15) 0%, rgba(245,241,231,0.72) 55%, rgba(245,241,231,0.9) 100%); }
  .closing__card { max-width: none; }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { align-items: center; }
  .preview__media { height: 200px; }
}

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