:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #181818;
  --border: #232323;
  --border-strong: #333;
  --text: #ededed;
  --muted: #9a9a9a;
  --dim: #6b6b6b;
  --white: #f4f4f2;
  --green: #00966e;
  --green-text: #3fb68b;
  --red: #d62612;
  --red-deep: #b51f0e;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sofia Sans", "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' shape-rendering='crispEdges' fill='%23d62612'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='13' y='0' width='1' height='1'/%3E%3Crect x='14' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='14' y='1' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='8' y='2' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='11' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='12' y='6' width='1' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='1' height='1'/%3E%3Crect x='5' y='7' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3Crect x='9' y='7' width='1' height='1'/%3E%3Crect x='10' y='7' width='1' height='1'/%3E%3Crect x='13' y='7' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='5' y='8' width='1' height='1'/%3E%3Crect x='6' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='8' width='1' height='1'/%3E%3Crect x='12' y='8' width='1' height='1'/%3E%3Crect x='3' y='9' width='1' height='1'/%3E%3Crect x='6' y='9' width='1' height='1'/%3E%3Crect x='7' y='9' width='1' height='1'/%3E%3Crect x='8' y='9' width='1' height='1'/%3E%3Crect x='11' y='9' width='1' height='1'/%3E%3Crect x='4' y='10' width='1' height='1'/%3E%3Crect x='7' y='10' width='1' height='1'/%3E%3Crect x='10' y='10' width='1' height='1'/%3E%3Crect x='5' y='11' width='1' height='1'/%3E%3Crect x='9' y='11' width='1' height='1'/%3E%3Crect x='6' y='12' width='1' height='1'/%3E%3Crect x='8' y='12' width='1' height='1'/%3E%3Crect x='0' y='13' width='1' height='1'/%3E%3Crect x='7' y='13' width='1' height='1'/%3E%3Crect x='14' y='13' width='1' height='1'/%3E%3Crect x='0' y='14' width='1' height='1'/%3E%3Crect x='1' y='14' width='1' height='1'/%3E%3Crect x='13' y='14' width='1' height='1'/%3E%3Crect x='14' y='14' width='1' height='1'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
svg, img { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--display); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }

kbd {
  font-family: var(--font);
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--dim);
}

code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.stitch {
  height: 15px;
  background: var(--red);
  mask: var(--stitch) repeat-x left center / 15px 15px;
  -webkit-mask: var(--stitch) repeat-x left center / 15px 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.875rem; }
.btn-light { background: var(--white); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.15s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

.flag {
  display: inline-flex;
  flex-direction: column;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
}
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #fff; }
.flag i:nth-child(2) { background: var(--green); }
.flag i:nth-child(3) { background: var(--red); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.15s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.hero { position: relative; isolation: isolate; padding: 160px 0 72px; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.1) 70%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.35) 30%, rgba(10, 10, 10, 0.8) 62%, var(--bg) 86%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 72px;
}
.kicker { font-size: 0.95rem; color: var(--muted); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 700;
}
.lead { margin-top: 24px; font-size: 1.125rem; color: var(--muted); max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }

.hero-copy > *, .flashcard, .wordmark { animation: enter 0.7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.flashcard { animation-delay: 220ms; }
.wordmark { animation-delay: 320ms; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

.flashcard {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.flashcard .stitch { height: 12px; margin-top: 14px; mask-size: 12px 12px; -webkit-mask-size: 12px 12px; }
.flashcard-body { padding: 20px 24px 24px; }
.flashcard-top { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--dim); }
.flashcard-letter {
  font-family: var(--display);
  font-size: 7.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  padding: 32px 0 36px;
  transition: opacity 0.2s var(--ease);
}
.flashcard-letter.swap { opacity: 0; }
.flashcard-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.fc-word { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.translit { font-size: 0.9rem; color: var(--green-text); }
.progress { margin-top: 20px; height: 2px; background: var(--border); }
.progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.3s var(--ease); }

.wordmark {
  margin-top: 96px;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-size: calc(min(1120px, 100vw - 48px) / 5.6);
  color: var(--white);
}
.wordmark.fitted {
  color: transparent;
  background: linear-gradient(
    180deg,
    var(--white) 0 calc(var(--t) + var(--h) / 3),
    var(--green) 0 calc(var(--t) + var(--h) * 2 / 3),
    var(--red) 0
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
}
.stat { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--border); }
.stat strong { font-family: var(--display); font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.1; font-weight: 600; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.section { padding-top: 120px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head > div { max-width: 580px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.segmented button.active { background: var(--surface-2); color: var(--text); }

.alphabet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.letter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  min-height: 148px;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background 0.15s var(--ease);
}
.letter:hover { background: var(--surface); }
.letter:hover .letter-glyph, .letter.playing .letter-glyph { color: var(--red); }
.letter.playing { background: var(--surface-2); }
.letter-glyph { font-family: var(--display); font-size: 2.1rem; font-weight: 500; line-height: 1.2; transition: color 0.15s var(--ease); }
.alphabet.cursive .letter-glyph { font-family: "Marck Script", cursive; font-weight: 400; font-size: 2.7rem; line-height: 1.1; }
.letter-lat { position: absolute; top: 16px; right: 16px; font-size: 0.8rem; color: var(--green-text); }
.letter-word { margin-top: auto; font-weight: 500; font-size: 0.95rem; }
.letter-en { font-size: 0.8rem; color: var(--dim); }

.note { margin-top: 24px; max-width: 680px; color: var(--muted); font-size: 0.95rem; }
.note strong { color: var(--text); font-weight: 600; }

.legacy { margin-top: 140px; background: #0e0e0e; border-bottom: 1px solid var(--border); }
.legacy-inner { padding: 96px 0; }
.legacy-head { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
.legacy-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; }
.legacy-copy { display: grid; gap: 16px; color: var(--muted); font-size: 1.02rem; padding-top: 6px; }

.countries {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.countries li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 120px;
  padding: 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.country-native { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.country-en { font-size: 0.82rem; color: var(--dim); }
.countries .origin {
  grid-column: span 2;
  grid-row: span 2;
  padding: 28px;
  background: var(--red);
  border-color: var(--red);
}
.origin .country-native { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.origin .country-en { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.legacy-foot { margin-top: 16px; font-size: 0.85rem; color: var(--dim); }

.roadmap { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.roadmap-intro { position: sticky; top: 112px; align-self: start; }
.roadmap-intro p { margin: 18px 0 28px; font-size: 1.05rem; }

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.step:first-child { padding-top: 0; border-top: 0; }
.step-num { font-family: var(--display); font-size: 0.9rem; font-weight: 500; color: var(--red); line-height: 1.75; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }
.step p + p { margin-top: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.links a {
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s var(--ease);
}
.links a:hover { text-decoration-color: var(--text); }

.phrases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 32px;
}
.phrase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
}
.phrase-bg { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.phrase-meta { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.phrase-meta span { color: var(--green-text); margin-right: 8px; }
.speaker { flex-shrink: 0; color: var(--dim); transition: color 0.15s var(--ease); }
.phrase:hover .speaker, .phrase.playing .speaker { color: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.photo-wide { grid-column: span 3; aspect-ratio: 1280 / 431; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 48px 20px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.photo figcaption span { font-size: 1.15rem; font-weight: 600; color: #fff; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 100%);
  height: 40px;
  padding: 0 10px 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--dim);
  flex-shrink: 0;
  transition: border-color 0.15s var(--ease);
}
.search:focus-within { border-color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.95rem; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }

.featured { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 40px; }
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s var(--ease);
}
.feature:first-child { background: var(--green); border-color: var(--green); }
.feature:first-child p, .feature:first-child .feature-label { color: rgba(255, 255, 255, 0.85); }
.feature:hover { border-color: var(--border-strong); }
.feature:first-child:hover { border-color: #fff; }
.feature-label { font-size: 0.85rem; color: var(--dim); }
.feature h3 { font-size: 1.3rem; margin-top: auto; }
.feature p { color: var(--muted); font-size: 0.92rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.chips button:hover { color: var(--text); border-color: var(--border-strong); }
.chips button.active { background: var(--white); color: var(--bg); border-color: var(--white); }

.resources { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; }
.resource {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.resource h3 { font-size: 1rem; font-weight: 500; transition: color 0.15s var(--ease); }
.resource p { grid-column: 1; font-size: 0.875rem; color: var(--muted); }
.resource-host { grid-row: 1; grid-column: 2; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--dim); align-self: center; }
.resource:hover h3 { color: var(--green-text); }
.empty { padding: 48px 0; }
.empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  min-height: 230px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.card h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.card p { font-size: 0.95rem; }
.card-label { font-size: 0.85rem; color: var(--green-text); }
.card-wide { grid-column: span 2; }
.card-red { background: var(--red); border-color: var(--red); }
.card-red h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: auto; }
.card-red p { max-width: 560px; color: rgba(255, 255, 255, 0.88); }
.card-red .card-label { color: rgba(255, 255, 255, 0.8); }
.morph { display: flex; align-items: baseline; gap: 12px; font-size: 1.7rem; font-weight: 600; margin-top: auto; }
.morph em { font-style: normal; color: var(--red); }
.phrase-xl { font-size: 1.5rem; font-weight: 600; margin-top: auto; }

.cta {
  border-radius: 16px;
  background: var(--red);
  overflow: hidden;
}
.cta .stitch { background: rgba(255, 255, 255, 0.9); margin-top: 20px; }
.cta-body { padding: 56px 48px 64px; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta p { max-width: 540px; margin-top: 16px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.88); }
.cta .btn-light:hover { background: #fff; }
.cta .text-link { text-decoration-color: rgba(255, 255, 255, 0.5); }

.footer { margin-top: 120px; border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; font-size: 0.875rem; }
.footer-inner .logo { margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; max-width: 460px; }
.footer-links a { color: var(--muted); transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--text); }
.credits { max-width: 460px; font-size: 0.78rem; color: var(--dim); line-height: 1.7; }
.credits a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 0.875rem;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 128px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .wordmark { margin-top: 72px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .legacy-head { grid-template-columns: 1fr; gap: 28px; }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .roadmap { grid-template-columns: 1fr; gap: 40px; }
  .roadmap-intro { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .photo-wide { grid-column: span 2; }
  .featured { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, 100% - 32px); }
  .wordmark { font-size: calc((100vw - 32px) / 5.6); }
  .section { padding-top: 88px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .search { width: 100%; }
  .alphabet { grid-template-columns: repeat(3, 1fr); }
  .letter { min-height: 128px; padding: 12px; }
  .letter-lat { top: 12px; right: 12px; }
  .letter-glyph { font-size: 1.75rem; }
  .legacy-inner { padding: 72px 0; }
  .countries { grid-template-columns: 1fr 1fr; }
  .countries .origin { grid-row: auto; }
  .gallery { grid-template-columns: 1fr; }
  .photo-wide { grid-column: auto; aspect-ratio: 16 / 9; }
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .flashcard-letter { font-size: 6rem; }
  .cta-body { padding: 40px 24px 48px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
