:root {
  --paper: #f7f1e7;
  --paper-deep: #eee3d2;
  --ink: #141312;
  --muted: #696056;
  --raspberry: #8c1631;
  --raspberry-dark: #5f0d20;
  --forest: #1d4b39;
  --forest-dark: #14372b;
  --gold: #b89048;
  --hero-accent: #4b0f1a;
  --rose-mild: #f3e3e0;
  --rose-frame: #d9a19a;
  --line: rgba(20, 19, 18, 0.16);
  --line-light: rgba(247, 241, 231, 0.28);
  --display-serif:
    "New York", "Iowan Old Style", "Bodoni 72", Didot, Georgia, serif;
  --body-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(20, 19, 18, 0.018) 0,
      rgba(20, 19, 18, 0.018) 1px,
      transparent 1px,
      transparent 92px
    ),
    var(--paper);
  color: var(--ink);
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(140, 22, 49, 0.18);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(28px, calc((100vw - var(--max)) / 2));
  padding-right: max(100px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    background 500ms ease,
    border-color 500ms ease,
    color 500ms ease,
    opacity 700ms ease,
    transform 700ms ease;
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header.is-solid {
  background: var(--paper);
  border-bottom: 1px solid rgba(20, 19, 18, 0.1);
}

.site-header.on-dark {
  color: var(--paper);
}

.site-header.on-dark.is-solid {
  background: var(--raspberry-dark);
  border-bottom-color: rgba(247, 241, 231, 0.14);
}

.corner-spark {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: var(--hero-accent);
  color: var(--paper);
  font-size: 1.15rem;
  transition: background 200ms ease;
}

.corner-spark:hover {
  background: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.brand-letter {
  position: relative;
  display: inline-block;
  font-family: var(--display-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.brand-plus {
  position: absolute;
  top: -0.15em;
  right: -0.7em;
  font-size: 0.4em;
  font-weight: 600;
  color: var(--hero-accent);
}

.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;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: currentColor;
  opacity: 0.74;
  transition: opacity 220ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid currentColor;
  opacity: 0.85;
}

.lang-switch button {
  border: none;
  background: none;
  color: currentColor;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 180ms ease;
}

.lang-switch button:hover {
  opacity: 0.85;
}

.lang-switch button.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  position: relative;
  z-index: 1;
}

.scene {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 94svh;
  padding: 116px max(28px, calc((100vw - var(--max)) / 2)) 86px;
  overflow: hidden;
}

.scene-light,
.scene-paper {
  background: transparent;
}

.scene-crimson {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.12), transparent 65%),
    var(--raspberry);
  color: var(--paper);
}

.scene-forest {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.14), transparent 65%),
    var(--forest);
  color: var(--paper);
}

.folio {
  margin: 0 0 20px;
  color: var(--raspberry);
  font-size: 0.86rem;
  font-weight: 650;
}

.experience-photo-bg .folio {
  color: rgba(247, 241, 231, 0.74);
}

.scene-crimson .folio,
.scene-forest .folio {
  color: rgba(247, 241, 231, 0.74);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family:
    "New York",
    "Iowan Old Style",
    "Bodoni 72",
    Didot,
    Georgia,
    serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 860px;
  font-size: 6.8rem;
}

h2 {
  font-size: 5.5rem;
}

h3 {
  margin: 0;
  font-family:
    "New York",
    "Iowan Old Style",
    Georgia,
    serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.12;
}

p {
  font-size: 1.08rem;
}

em {
  font-style: italic;
}

/* ---------- Reserved / editorial placeholder system ---------- */

.reserved-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 56px 24px;
  text-align: center;
  background-color: rgba(20, 19, 18, 0.025);
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position:
    top 0 left 0,
    top 0 left 0,
    top 0 right 0,
    top 0 right 0,
    bottom 0 right 0,
    bottom 0 right 0,
    bottom 0 left 0,
    bottom 0 left 0;
  background-image:
    linear-gradient(to right, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to left, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to right, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to top, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to left, rgba(20, 19, 18, 0.28) 1px, transparent 1px),
    linear-gradient(to top, rgba(20, 19, 18, 0.28) 1px, transparent 1px);
}

.cover .reserved-plate,
.invitation .reserved-plate {
  background-color: rgba(247, 241, 231, 0.05);
  background-image:
    linear-gradient(to right, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to left, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to right, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to top, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to left, rgba(247, 241, 231, 0.38) 1px, transparent 1px),
    linear-gradient(to top, rgba(247, 241, 231, 0.38) 1px, transparent 1px);
}

.reserved-mark {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  opacity: 0.35;
}

.cover .reserved-mark,
.invitation .reserved-mark {
  border-color: var(--paper);
}

.reserved-label {
  margin: 6px 0 0;
  font-family:
    "New York",
    "Iowan Old Style",
    "Bodoni 72",
    Didot,
    Georgia,
    serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.65;
}

.cover .reserved-label,
.invitation .reserved-label {
  color: var(--paper);
}

.reserved-status {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
}

.cover .reserved-status,
.invitation .reserved-status {
  color: rgba(230, 196, 140, 0.9);
}

.reserved-inline {
  font-style: italic;
  color: var(--muted);
}

.pending-note {
  font-size: 1.05rem;
  margin-top: 8px;
}

.cover .reserved-inline,
.invitation .reserved-inline {
  color: rgba(247, 241, 231, 0.6);
}

.reserved-plate-portrait {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  padding: 10px;
}

.reserved-plate-portrait .reserved-mark {
  width: 14px;
  height: 14px;
}

.reserved-plate-portrait .reserved-label {
  font-size: 0.66rem;
}

.reserved-plate-portrait .reserved-status {
  font-size: 0.56rem;
}

.reserved-plate-figure {
  max-width: 560px;
  aspect-ratio: 560 / 300;
  margin-top: 28px;
}

.reserved-plate-essay {
  max-width: 100%;
  aspect-ratio: 16 / 8;
}

.reserved-plate-essay.hero-plate-filled {
  background-image: url("images/essay-garden.jpeg");
  background-size: cover;
  background-position: center;
}

/* ---------- Cover ---------- */

.cover {
  min-height: 96svh;
}

.hero {
  position: relative;
  min-height: 100svh;
  align-items: center;
  background-image:
    linear-gradient(
      to right,
      rgba(247, 241, 231, 0.94) 0%,
      rgba(247, 241, 231, 0.75) 30%,
      rgba(247, 241, 231, 0.22) 55%,
      rgba(247, 241, 231, 0.08) 100%
    ),
    url("images/hero-harvard.jpeg");
  background-size: cover, 100% auto;
  background-position: center, top center;
  background-repeat: no-repeat, no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  row-gap: 56px;
  width: 100%;
  max-width: 1180px;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}

.hero-rail-issue {
  margin: 0 0 4px;
  font-family: var(--display-serif);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-rail-tick {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.hero-rail-item {
  position: relative;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.45;
  transition:
    opacity 200ms ease,
    color 200ms ease;
}

.hero-rail-item:hover {
  opacity: 1;
}

.hero-rail-item.is-active {
  color: var(--hero-accent);
  opacity: 1;
}

.hero-rail-item.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  width: 16px;
  height: 1.5px;
  background: var(--hero-accent);
}

.hero-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-main {
  grid-column: 2;
  align-self: center;
  max-width: 560px;
}

.hero-kicker {
  margin: 0 0 20px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.hero-line {
  margin: 0;
  max-width: 540px;
  font-size: 3.6rem;
  line-height: 1.1;
}

.hero-line em {
  color: var(--hero-accent);
}

.hero-line-rule {
  display: block;
  width: 361px;
  height: 12px;
  margin-top: 20px;
}

.hero-line-rule path {
  fill: var(--hero-accent);
}

.hero-intro {
  max-width: 420px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--body-serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.hero-cta-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--hero-accent);
  border-radius: 999px;
  color: var(--hero-accent);
  transition:
    background 200ms ease,
    color 200ms ease;
}

.hero-cta-mark svg {
  transition: transform 200ms ease;
}

.hero-cta:hover .hero-cta-mark svg {
  transform: translateX(2px);
}

.hero-cta-text {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

.hero-cta-headline {
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.hero-cta-text em {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
}

.hero-cta:hover .hero-cta-mark {
  background: var(--hero-accent);
  color: var(--paper);
}

.hero-collage {
  position: relative;
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.32fr 1fr;
  gap: 16px;
  min-height: 560px;
  margin-right: 34px;
}

.hero-plate {
  position: static;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px;
}



.index-thumb-cover.hero-plate-filled {
  background-image: url("images/issue1-cover.jpeg");
  background-size: cover;
  background-position: center;
}

.index-thumb-issue2.hero-plate-filled {
  background-image: url("images/kazakh-bokty.jpg");
  background-size: cover;
  background-position: center;
}

.hero-plate-filled {
  border: 1.5px solid var(--rose-frame);
  padding: 0;
}

.hero-plate .reserved-mark {
  width: 16px;
  height: 16px;
}

.hero-plate .reserved-label {
  font-size: 0.82rem;
}

.hero-plate .reserved-status {
  font-size: 0.6rem;
}

.hero-plate-sketch {
  grid-column: 1;
  grid-row: 1;
}

.hero-plate-filled {
  background-color: transparent;
}

.hero-plate-sketch.hero-plate-filled {
  background-image: url("images/hero-plate-tulip.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-plate-detail.hero-plate-filled {
  background-image: url("images/hero-plate-microscope-lens.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-plate-notebook.hero-plate-filled {
  background-image: url("images/hero-plate-researchers.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-plate-main.hero-plate-filled {
  background-image: url("images/hero-plate-scientist.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-plate-filled::before {
  content: none;
}

.hero-plate-main {
  grid-column: 2;
  grid-row: 1;
}

.hero-plate-detail {
  grid-column: 1;
  grid-row: 2;
  z-index: 1;
}

.hero-plate-notebook {
  grid-column: 2;
  grid-row: 2;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(20, 19, 18, 0.22));
}

.badge-ring-outer {
  fill: var(--paper);
  stroke: var(--hero-accent);
  stroke-width: 1;
}

.badge-ring-inner {
  fill: none;
  stroke: var(--hero-accent);
  stroke-width: 0.75;
  opacity: 0.7;
}

.badge-text textPath {
  font-family: var(--display-serif);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  fill: var(--hero-accent);
}

.badge-dot {
  fill: var(--hero-accent);
}

.badge-star {
  fill: var(--hero-accent);
}

.hero-collage-caption {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: -8px;
  writing-mode: vertical-rl;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-volume {
  position: absolute;
  right: -4px;
  bottom: 6%;
  text-align: right;
}

.hero-volume p {
  margin: 0 0 2px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-volume p:nth-child(2) {
  font-family: var(--display-serif);
  font-size: 0.9rem;
  color: var(--ink);
}

.hero-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  grid-column: 2 / 4;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-legal a {
  color: var(--muted);
  opacity: 0.8;
  transition: opacity 200ms ease;
}

.hero-legal a:hover {
  opacity: 1;
}

.hero-index-wrap {
  position: relative;
  grid-column: 1 / -1;
  margin-top: 40px;
  padding: 0 28px;
}

.hero-index {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-index::-webkit-scrollbar {
  display: none;
}

.hero-index > * {
  flex: 0 0 calc((100% - 2px) / 3);
  scroll-snap-align: start;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.carousel-nav:hover {
  background: var(--ink);
  color: var(--paper);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.carousel-nav-prev {
  left: 0;
}

.carousel-nav-next {
  right: 0;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 34px 38px;
  background: var(--paper);
  border: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background 220ms ease;
}

.index-card-pending {
  cursor: default;
  opacity: 0.62;
}

.index-card-pending:hover {
  background: var(--paper);
}

.index-link-disabled {
  color: var(--muted);
}

.index-card:hover {
  background: var(--paper-deep);
}

.index-card:hover .index-link span {
  transform: translateX(3px);
}

.index-kicker {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.index-thumb {
  aspect-ratio: 5 / 4;
  padding: 18px;
  gap: 8px;
}

.index-thumb .reserved-mark {
  width: 14px;
  height: 14px;
}

.index-thumb .reserved-status {
  font-size: 0.58rem;
}

.index-title {
  margin: 0;
  max-width: 260px;
  font-family: var(--display-serif);
  font-size: 1.4rem;
  line-height: 1.28;
  color: var(--ink);
}

.index-link {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.index-link span {
  display: inline-block;
  transition: transform 200ms ease;
}

.hero-foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: 2 / 4;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.hero-foot-quote {
  max-width: 460px;
  margin: 0;
  font-family:
    "New York",
    "Iowan Old Style",
    "Bodoni 72",
    Didot,
    Georgia,
    serif;
  font-size: 1.1rem;
  font-style: italic;
}

.hero-foot-label {
  margin: 0;
  font-family: var(--display-serif);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

/* ---------- Contents ---------- */

.contents-inner {
  width: 100%;
  max-width: 900px;
}

.contents-inner h2 {
  margin-bottom: 48px;
  font-size: 3.6rem;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

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

.toc-item a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 28px;
  padding: 26px 4px;
  transition: padding-left 240ms ease;
}

.toc-item a:hover {
  padding-left: 14px;
}

.toc-num {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 1.5rem;
  color: var(--muted);
  transition: color 240ms ease;
}

.toc-item a:hover .toc-num {
  color: var(--raspberry);
}

.toc-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-title {
  font-family:
    "New York",
    "Iowan Old Style",
    "Bodoni 72",
    Didot,
    Georgia,
    serif;
  font-size: 1.55rem;
}

.toc-desc {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Editor's letter ---------- */

.letter,
.scene-marked {
  position: relative;
  overflow: hidden;
}

.scene-marked {
  background: var(--paper);
}

.letter {
  background: var(--rose-mild);
}

.letter-mark,
.section-mark {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: min(46vw, 620px);
  height: min(46vw, 620px);
  z-index: 0;
  pointer-events: none;
}

.letter-mark-c,
.section-mark-c {
  font-family: var(--display-serif);
  font-size: 340px;
  font-weight: 500;
  fill: var(--ink);
  opacity: 0.05;
}

.letter-mark-star,
.section-mark-star {
  fill: var(--hero-accent);
  opacity: 0.08;
}

.section-mark-c-light {
  font-family: var(--display-serif);
  font-size: 340px;
  font-weight: 500;
  fill: var(--paper);
  opacity: 0.06;
}

.section-mark-star-light {
  fill: var(--paper);
  opacity: 0.1;
}

.scene-marked > *:not(.section-mark) {
  position: relative;
  z-index: 1;
}

.letter-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.letter-inner {
  position: relative;
  z-index: 1;
}

.letter-inner h2 {
  margin-bottom: 44px;
  font-size: 3.2rem;
}

.letter-body p {
  max-width: 640px;
  color: var(--ink);
  font-family: var(--body-serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

.letter-body p + p {
  margin-top: 24px;
}

.drop-cap::first-letter {
  float: left;
  padding: 6px 10px 0 0;
  font-family:
    "New York",
    "Iowan Old Style",
    "Bodoni 72",
    Didot,
    Georgia,
    serif;
  font-size: 4.4rem;
  line-height: 0.78;
  color: var(--raspberry);
}

.letter-sign {
  margin-top: 40px !important;
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
}

.letter-sign span {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.letter-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.letter-photo {
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.letter-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.letter-open-issue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--raspberry);
  cursor: pointer;
}

.letter-open-issue span {
  transition: transform 200ms ease;
}

.letter-open-issue:hover span {
  transform: translateX(3px);
}

/* ---------- Our Experience ---------- */

.experience-photo-bg {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(
      to bottom,
      rgba(20, 19, 18, 0.6) 0%,
      rgba(20, 19, 18, 0.5) 45%,
      rgba(20, 19, 18, 0.8) 100%
    ),
    url("images/experience-desert.jpeg");
  background-size: cover, 100% auto;
  background-position: center, top center;
  background-repeat: no-repeat, no-repeat;
  color: var(--paper);
}

.experience-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.experience-inner h2 {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--paper);
}

.experience-intro {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(247, 241, 231, 0.78);
  font-family: var(--body-serif);
  font-size: 1.08rem;
  line-height: 1.6;
}

.experience-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--paper);
  cursor: pointer;
}

.experience-open span {
  transition: transform 200ms ease;
}

.experience-open:hover span {
  transform: translateX(3px);
}

.experience-detail {
  max-width: 720px;
  margin: 0 auto;
}

.experience-detail h2 {
  margin-top: 12px;
  font-size: 2.6rem;
}

.experience-detail-text {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--body-serif);
  line-height: 1.65;
}

.experience-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.experience-photo {
  aspect-ratio: 16 / 9;
}

.experience-photo.hero-plate-filled {
  background-image: url("images/school.jpg");
  background-size: cover;
  background-position: center;
}

.experience-staff-heading {
  margin: 48px 0 20px;
  font-family: var(--display-serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.experience-staff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.experience-staff-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.96rem;
}

/* ---------- Become a member ---------- */

.join-photo {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(
      to bottom,
      rgba(20, 19, 18, 0.68) 0%,
      rgba(20, 19, 18, 0.55) 45%,
      rgba(20, 19, 18, 0.82) 100%
    ),
    url("images/join-manhattan.jpeg");
  background-size: cover, 100% auto;
  background-position: center, top center;
  background-repeat: no-repeat, no-repeat;
  color: var(--paper);
}

.join-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}

.join-inner h2 {
  color: var(--paper);
  font-size: 3rem;
}

.join-intro {
  max-width: 540px;
  margin: 26px auto 0;
  color: rgba(247, 241, 231, 0.78);
  font-family: var(--body-serif);
  line-height: 1.6;
}

.join-email {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--display-serif);
  font-size: 1.6rem;
  color: var(--paper);
  border-bottom: 1px solid currentColor;
}

.join-form {
  max-width: 420px;
  margin: 34px auto 0;
  text-align: left;
}

.join-form-row {
  margin-bottom: 18px;
}

.join-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(247, 241, 231, 0.68);
}

.join-form-row input,
.join-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(247, 241, 231, 0.32);
  border-radius: 2px;
  background: rgba(247, 241, 231, 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 0.98rem;
  resize: vertical;
}

.join-form-row input::placeholder,
.join-form-row textarea::placeholder {
  color: rgba(247, 241, 231, 0.4);
}

.join-form-row input:focus,
.join-form-row textarea:focus {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.join-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--raspberry-dark);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.join-form-submit:hover {
  background: transparent;
  color: var(--paper);
}

.join-form-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.join-form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: rgba(247, 241, 231, 0.78);
}

/* ---------- Issue dialog ---------- */

.issue-dialog {
  width: min(94vw, 1180px);
  height: 88vh;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.issue-dialog::backdrop {
  background: rgba(20, 19, 18, 0.72);
}

.issue-dialog-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.issue-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 18px max(24px, calc((100% - 1100px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.issue-dialog-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.issue-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.issue-dialog-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.issue-dialog-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.issue-dialog-scroll .scene-paper,
.issue-dialog-scroll .scene-forest {
  min-height: 0;
  padding: 72px max(24px, calc((100% - 1100px) / 2));
}

.issue-dialog-scroll .letter-inner {
  max-width: 720px;
}

/* ---------- Contact dialog ---------- */

.contact-dialog {
  width: min(94vw, 560px);
  height: auto;
  max-height: 90vh;
}

.contact-dialog-body {
  padding: 48px max(24px, calc((100% - 460px) / 2));
}

.contact-dialog-intro {
  margin: 0 0 28px;
  font-family: var(--body-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.contact-form {
  max-width: 420px;
  text-align: left;
}

.contact-form-row {
  margin-bottom: 18px;
}

.contact-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(20, 19, 18, 0.6);
}

.contact-form-row input,
.contact-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 19, 18, 0.03);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  resize: vertical;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.contact-form-submit:hover {
  background: transparent;
  color: var(--ink);
}

.contact-form-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: rgba(20, 19, 18, 0.7);
}

/* ---------- Featured research ---------- */

.featured-inner {
  max-width: 900px;
}

.featured-inner h2 {
  margin-bottom: 56px;
  font-size: 3.4rem;
}

.research-piece {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.research-piece:last-of-type {
  border-bottom: 1px solid var(--line);
}

.research-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 4px;
}

.research-head-text {
  flex: 1;
  padding-top: 4px;
}

.byline {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: var(--raspberry);
  font-weight: 650;
}

.research-head-text h3 {
  max-width: 700px;
  font-size: 1.9rem;
  color: var(--raspberry);
  font-weight: 700;
}

.research-status {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--body-serif);
  line-height: 1.65;
}

/* ---------- Articles ---------- */

.articles-inner {
  max-width: 780px;
}

.articles-inner h2 {
  margin-bottom: 40px;
  font-size: 3rem;
}

.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.article-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.article-text {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--raspberry);
  white-space: nowrap;
}

.read-more-link span {
  transition: transform 200ms ease;
}

.read-more-link:hover span {
  transform: translateX(3px);
}

.research-piece .read-more-link {
  margin-top: 20px;
}

.article-byline {
  flex-shrink: 0;
  font-size: 0.86rem;
  color: var(--raspberry);
  font-weight: 650;
}

/* ---------- Visual essay ---------- */

.essay-inner {
  max-width: 900px;
  width: 100%;
}

.essay-inner h2 {
  margin-bottom: 20px;
  font-size: 3.2rem;
}

.essay-intro {
  max-width: 620px;
  margin-bottom: 40px;
  color: var(--muted);
  font-family: var(--body-serif);
  line-height: 1.65;
}

/* ---------- The research notebook ---------- */

.notebook-inner {
  max-width: 980px;
}

.notebook-inner h2 {
  margin-bottom: 18px;
  font-size: 3.2rem;
}

.notebook-intro {
  max-width: 600px;
  margin-bottom: 52px;
  color: var(--muted);
  font-family: var(--body-serif);
  line-height: 1.65;
}

.notebook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 32px;
}

.notebook-card {
  position: relative;
  padding: 26px 24px 22px;
  background: var(--paper-deep);
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(20, 19, 18, 0.08),
    0 10px 22px rgba(20, 19, 18, 0.07);
}

.notebook-card:nth-child(1) {
  transform: rotate(-1.1deg);
}

.notebook-card:nth-child(2) {
  transform: rotate(0.9deg);
}

.notebook-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 36px;
  height: 14px;
  background: rgba(140, 22, 49, 0.16);
  border: 1px solid rgba(140, 22, 49, 0.2);
  transform: rotate(-3deg);
}

.notebook-date {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.notebook-text {
  margin: 0 0 16px;
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.5;
}

.notebook-attr {
  margin: 0;
  font-size: 0.86rem;
}

/* ---------- The laboratory ---------- */

.laboratory-inner {
  max-width: 900px;
}

.laboratory-inner h2 {
  font-size: 3.4rem;
}

.laboratory-intro {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(247, 241, 231, 0.78);
  font-family: var(--body-serif);
  line-height: 1.65;
}

.edit-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.edit-before,
.edit-after {
  padding: 28px;
  border-radius: 4px;
}

.edit-before {
  background: rgba(0, 0, 0, 0.16);
}

.edit-after {
  background: rgba(247, 241, 231, 0.08);
  border: 1px solid rgba(247, 241, 231, 0.22);
}

.edit-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 231, 0.56);
}

.edit-before p,
.edit-after p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(247, 241, 231, 0.68);
}

.edit-note {
  max-width: 700px;
  margin-top: 32px;
  color: rgba(247, 241, 231, 0.72);
  font-family: var(--body-serif);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Contributors ---------- */

.contributors-inner {
  max-width: 720px;
}

.contributors-inner h2 {
  margin-bottom: 40px;
  font-size: 3.2rem;
}

.contributor-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contributor-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.contributor-role {
  font-family:
    "New York",
    "Iowan Old Style",
    "Bodoni 72",
    Didot,
    Georgia,
    serif;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- The closing page ---------- */

.invitation {
  position: relative;
  min-height: 94svh;
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(
      to bottom,
      rgba(95, 13, 32, 0.88) 0%,
      rgba(95, 13, 32, 0.72) 45%,
      rgba(95, 13, 32, 0.94) 100%
    ),
    url("images/invitation-gherkin.jpeg");
  background-size: cover, 100% auto;
  background-position: center, top center;
  background-repeat: no-repeat, no-repeat;
}

.invitation-inner {
  max-width: 780px;
  margin: 0 auto;
}

.invitation-inner h2 {
  font-size: 5.6rem;
}

.invitation-intro {
  max-width: 600px;
  margin: 30px auto 0;
  color: rgba(247, 241, 231, 0.78);
  font-family: var(--body-serif);
  font-size: 1.1rem;
  line-height: 1.6;
}

.invitation-steps {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.invitation-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 40px;
  color: rgba(247, 241, 231, 0.84);
  font-size: 1rem;
}

.invitation-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 0.92rem;
  color: rgba(247, 241, 231, 0.5);
}

.closing-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(247, 241, 231, 0.4);
  border-radius: 2px;
  font-size: 0.94rem;
  transition:
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    gap 240ms ease;
}

.button-primary {
  background: var(--paper);
  color: var(--raspberry-dark);
  border-color: var(--paper);
}

.button-secondary {
  color: var(--paper);
}

.button-primary::after,
.button-secondary::after {
  content: "\2192";
  font-size: 1rem;
}

.button-primary:hover,
.button-secondary:hover {
  gap: 16px;
}

.button-secondary:hover {
  background: rgba(247, 241, 231, 0.1);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity 1100ms ease,
    filter 1100ms ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .scene {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-header {
    padding-left: 24px;
    padding-right: 100px;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 4.1rem;
  }

  .hero-inner {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 36px;
  }

  .hero-collage {
    grid-column: 2;
    grid-row: auto;
    margin-top: 48px;
    min-height: 380px;
  }

  .hero-foot,
  .hero-legal {
    grid-column: 2;
  }

  .hero-line {
    font-size: 2.7rem;
  }

  .hero-line-rule {
    width: 270px;
  }

  .contents-inner h2,
  .featured-inner h2,
  .laboratory-inner h2,
  .notebook-inner h2,
  .essay-inner h2,
  .contributors-inner h2 {
    font-size: 2.9rem;
  }

  .articles-inner h2 {
    font-size: 2.5rem;
  }

  .letter-inner h2 {
    font-size: 2.6rem;
  }

  .letter-wrapper {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }

  .invitation-inner h2 {
    font-size: 4.4rem;
  }

  .edit-compare {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc-item a {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
  }

  .research-head {
    gap: 18px;
  }

  .reserved-plate-portrait {
    width: 76px;
    height: 76px;
  }

  .hero-index > * {
    flex: 0 0 calc((100% - 1px) / 2);
  }
}

@media (max-width: 680px) {
  .hero-index > * {
    flex: 0 0 100%;
  }

  .site-header {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 76px;
  }

  .corner-spark {
    width: 52px;
    height: 52px;
    font-size: 0.95rem;
  }

  .brand-letter {
    font-size: 1.6rem;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.7rem;
  }

  .lang-switch {
    gap: 2px;
    margin-left: 10px;
    padding-left: 10px;
  }

  .lang-switch button {
    font-size: 0.66rem;
    padding: 4px 3px;
  }

  .scene {
    min-height: 90svh;
    padding: 96px 18px 68px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 3.05rem;
  }

  h3 {
    font-size: 1.54rem;
  }

  p {
    font-size: 1rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .hero-rail {
    flex-direction: row;
    padding-top: 0;
  }

  .hero-rail-label {
    display: none;
  }

  .hero-main,
  .hero-collage,
  .hero-foot,
  .hero-legal {
    grid-column: 1;
  }

  .hero-collage {
    grid-row: auto;
    min-height: 320px;
  }

  .hero-line {
    font-size: 2.1rem;
  }

  .hero-line-rule {
    width: 210px;
  }

  .contents-inner h2,
  .featured-inner h2,
  .laboratory-inner h2,
  .notebook-inner h2,
  .essay-inner h2,
  .contributors-inner h2 {
    font-size: 2.3rem;
  }

  .articles-inner h2 {
    font-size: 2.1rem;
  }

  .letter-inner h2 {
    font-size: 2.1rem;
  }

  .drop-cap::first-letter {
    font-size: 3.2rem;
  }

  .letter-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .letter-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .invitation-inner h2 {
    font-size: 3.1rem;
  }

  .toc-item a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 4px;
  }

  .toc-title {
    font-size: 1.28rem;
  }

  .research-head {
    flex-direction: column;
  }

  .research-head-text h3 {
    font-size: 1.5rem;
  }

  .notebook-grid {
    grid-template-columns: 1fr;
  }

  .article-list li,
  .contributor-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .closing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  /* Touch targets: bump controls that read comfortably at desktop
     pointer precision up to a thumb-friendly minimum on mobile. */
  .issue-dialog-close {
    width: 44px;
    height: 44px;
  }

  .carousel-nav {
    width: 44px;
    height: 44px;
  }

  .nav-links a {
    min-height: 44px;
  }

  .lang-switch button {
    min-height: 40px;
    min-width: 36px;
  }

  .footer-link-btn,
  .footer-col a {
    display: inline-block;
    padding: 6px 0;
  }

  /* Headings that only inherit the generic h2 media override lose to
     their own higher-specificity base rule; size them down explicitly. */
  .experience-inner h2 {
    font-size: 2.4rem;
  }

  .experience-detail h2 {
    font-size: 2.1rem;
  }

  .join-inner h2 {
    font-size: 2.3rem;
  }

  .hero-foot-label {
    font-size: 2.3rem;
  }

  .issue-dialog-scroll .scene-paper,
  .issue-dialog-scroll .scene-forest {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .contact-dialog-body {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-links {
    order: 1;
  }

  .lang-switch {
    order: 2;
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 4px;
  }
}

@media (max-width: 360px) {
  .nav-links {
    gap: 6px;
    font-size: 0.58rem;
  }

  .lang-switch {
    gap: 1px;
    margin-left: 6px;
    padding-left: 6px;
  }

  .lang-switch button {
    font-size: 0.56rem;
    padding: 3px 2px;
  }

  .corner-spark {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }
}

/* ---------- Affiliates ---------- */

.affiliates {
  position: relative;
  z-index: 1;
  padding: 56px max(28px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.affiliates-label {
  margin: 0 0 32px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.affiliates-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  overflow-x: auto;
  padding: 4px;
}

.affiliate-logo {
  flex-shrink: 0;
  height: 128px;
  width: auto;
  transition: transform 220ms ease;
}

.affiliate-logo:hover {
  transform: scale(1.04);
}

.affiliate-logo-wide {
  height: 74px;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--raspberry-dark);
  color: rgba(247, 241, 231, 0.82);
  padding: 72px max(28px, calc((100vw - var(--max)) / 2)) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 241, 231, 0.14);
}

.footer-brand .brand-letter {
  color: var(--paper);
}

.footer-brand .brand-plus {
  color: var(--gold);
}

.footer-tagline {
  max-width: 320px;
  margin: 18px 0 0;
  font-family: var(--body-serif);
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(247, 241, 231, 0.62);
}

.footer-heading {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 241, 231, 0.5);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-link-btn {
  font-size: 0.92rem;
  color: rgba(247, 241, 231, 0.8);
  transition: color 200ms ease;
}

.footer-col a:hover,
.footer-link-btn:hover {
  color: var(--paper);
}

.footer-link-btn {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(247, 241, 231, 0.5);
}

.footer-bottom a {
  color: rgba(247, 241, 231, 0.5);
}

.footer-bottom a:hover {
  color: var(--paper);
}

@media (max-width: 680px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .affiliates-track {
    gap: 40px;
  }

  .affiliate-logo {
    height: 88px;
  }

  .affiliate-logo-wide {
    height: 52px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    filter: blur(0);
  }
}

    