:root {
  --ink: #10283a;
  --navy: #0b2133;
  --paper: #f4efe5;
  --cream: #fffaf0;
  --teal: #087c78;
  --teal-deep: #075b5c;
  --teal-light: #d5eee8;
  --coral: #d96f5d;
  --gold: #e1a83b;
  --gold-light: #f7e4ae;
  --line: rgba(16, 40, 58, .16);
  --shadow: 0 24px 65px rgba(10, 36, 50, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 5%, rgba(225,168,59,.22), transparent 25rem),
    radial-gradient(circle at 5% 26%, rgba(8,124,120,.10), transparent 26rem),
    linear-gradient(180deg, #fffaf0 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255,250,240,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--navy); background: var(--gold); border-radius: 50%;
  font-family: Georgia, serif; font-weight: 700; letter-spacing: -.08em;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.12);
}
.brand b, .brand small { display: block; }
.brand b { font-family: Georgia, serif; font-size: 1.08rem; }
.brand small { color: #5d6878; font-size: .76rem; letter-spacing: .04em; }
nav { display: flex; gap: clamp(14px, 3vw, 34px); }
nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
nav a:hover { color: var(--teal); }
.nav-route { padding: 9px 14px; border-radius: 999px; color: white; background: var(--teal-deep); }
.nav-route:hover { color: white; background: var(--teal); }

main { overflow: hidden; }
.opening {
  max-width: 1440px;
  margin: auto;
  min-height: 690px;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 6vw, 86px) 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .72fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
}
.eyebrow, .section-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 800;
  font-size: .77rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 900px; font-size: clamp(3.2rem, 6.7vw, 6.7rem); line-height: .94; }
h1 em { color: var(--teal-deep); font-weight: 400; }
.lede { max-width: 730px; margin: 28px 0 0; font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: #435065; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.hero-actions a { min-width: 175px; padding: 14px 17px; border-radius: 14px; text-decoration: none; box-shadow: 0 10px 25px rgba(16,40,58,.09); transition: transform .2s ease, box-shadow .2s ease; }
.hero-actions a:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(16,40,58,.15); }
.hero-actions span, .hero-actions small { display: block; }
.hero-actions span { font-weight: 850; }
.hero-actions small { margin-top: 2px; font-size: .76rem; opacity: .76; }
.primary-action { color: white; background: var(--teal-deep); }
.secondary-action { color: var(--navy); background: var(--gold-light); }
.route-action { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.hero-map { position: relative; padding: 35px 30px 31px; border-radius: 34px 34px 80px 34px; color: white; background: linear-gradient(150deg, #0b3042 0%, #075d5c 100%); box-shadow: 0 30px 75px rgba(7,65,68,.25); overflow: hidden; }
.hero-map::before { content: ""; position: absolute; inset: 0; opacity: .11; background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 19px 19px; }
.map-compass { position: absolute; right: 25px; top: 18px; color: var(--gold); font-size: 3.2rem; line-height: 1; }
.map-kicker { position: relative; margin: 0 0 24px; color: #b9e6df; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.map-stop { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.map-stop span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); font-size: .73rem; font-weight: 900; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.map-stop.see span { background: #8fd9cf; }
.map-stop.next span { background: var(--coral); color: white; }
.map-stop p { margin: 0; color: #cee3e2; font-size: .88rem; }
.map-stop b { display: block; color: white; font-family: Georgia, serif; font-size: 1.12rem; }
.route-line { position: relative; width: 2px; height: 38px; margin-left: 20px; border-left: 2px dashed rgba(255,255,255,.48); }
.route-line.bend { transform: rotate(-8deg); transform-origin: top; }

.student-welcome { max-width: 1320px; margin: 0 auto 76px; padding: clamp(38px, 6vw, 70px); display: grid; grid-template-columns: 1fr .9fr; gap: clamp(35px, 7vw, 90px); align-items: center; border: 1px solid rgba(217,111,93,.22); border-radius: 34px; background: linear-gradient(135deg, #fff8eb, #f9e4dc); box-shadow: 0 18px 50px rgba(101,55,45,.08); }
.student-copy > p:not(.section-label) { max-width: 620px; color: #516072; font-size: 1.05rem; }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--teal-deep); font-weight: 850; text-decoration: none; }
.text-link span { font-size: 1.35em; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.journey-card { position: relative; padding: 28px; border-radius: 25px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.journey-label { margin: 0 0 20px; color: #91d8d0; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.journey-card ol { list-style: none; margin: 0; padding: 0; }
.journey-card li { position: relative; padding: 0 0 24px 34px; border-left: 1px dashed rgba(255,255,255,.32); }
.journey-card li:last-child { padding-bottom: 0; border-left-color: transparent; }
.journey-card li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(225,168,59,.14); }
.journey-card li:nth-child(2)::before { background: #83d5ca; }
.journey-card li:nth-child(3)::before { background: var(--coral); }
.journey-card li span, .journey-card li b { display: block; }
.journey-card li span { color: #a9c5cd; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.journey-card li b { margin-top: 3px; font-family: Georgia, serif; font-size: 1.12rem; }

.question-panel {
  max-width: 1320px;
  margin: 0 auto 78px;
  padding: clamp(24px, 4vw, 46px);
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 30px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(130deg, var(--navy), #173a4b);
  box-shadow: var(--shadow);
}
.question-panel .section-label { color: #8edcd3; }
.question-intro { margin: 18px 0 0; color: #bdccd3; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; }
.question-list { display: flex; flex-wrap: wrap; gap: 12px; align-content: center; }
.question-list button {
  min-height: 48px; padding: 11px 17px; color: white;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(255,255,255,.08); font-weight: 750;
}
.question-list button:hover, .question-list button.active { color: var(--ink); background: #8edcd3; border-color: #8edcd3; }
.question-list .quiet { border-style: dashed; color: #c6cddd; }

.atlas { max-width: 1440px; margin: auto; padding: 10px clamp(20px, 6vw, 86px) 120px; }
.atlas-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 14px; }
.search { display: grid; gap: 7px; color: #516076; font-size: .8rem; font-weight: 800; }
.search input { width: min(340px, 80vw); padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--ink); outline: none; }
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,119,118,.12); }
.result-status { margin: 0 0 24px; color: #697386; font-size: .9rem; }
.plate-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(18px, 2.5vw, 34px); }
.plate-card {
  min-width: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(19,35,59,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}
.plate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plate-image { position: relative; aspect-ratio: 1 / 1.08; margin: 11px; overflow: hidden; background: #e7e3da; border-radius: 18px; }
.plate-preview-button { width: calc(100% - 22px); padding: 0; border: 0; text-align: left; cursor: pointer; }
.plate-image::after { content: "Explore"; position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; color: white; background: rgba(11,33,51,.86); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.plate-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .35s ease; }
.plate-card:hover img { transform: scale(1.018); }
.plate-body { padding: 10px 22px 24px; }
.plate-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.tag { padding: 4px 8px; border-radius: 999px; background: var(--teal-light); color: #075b5a; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tag.secondary { background: #f2e6cb; color: #785410; }
.plate-body h3 { margin: 0; font-family: Georgia, serif; font-size: 1.48rem; line-height: 1.08; }
.plate-body .question { min-height: 50px; margin: 10px 0 16px; color: #596579; }
.plate-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.view-button { padding: 9px 14px; color: white; border: 0; border-radius: 10px; background: var(--ink); font-weight: 800; }
.view-button:hover { background: var(--teal); }
.plate-id { color: #7a8392; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }
.empty { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }

/* Voice Remix: audible companion to Plate 11.1 */
.voice-remix {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 38px);
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 12%, rgba(225,168,59,.2), transparent 12rem),
    linear-gradient(145deg, var(--navy), var(--teal-deep));
  border: 3px solid var(--gold);
  border-radius: 24px;
  box-shadow: 7px 8px 0 rgba(217,111,93,.32);
}
.remix-kicker { margin: 0 0 6px; color: #f6d47e; font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.voice-remix h3 { margin: 0; color: white; font: 800 clamp(2rem, 5vw, 3.3rem)/1 Georgia,serif; letter-spacing: .02em; }
.remix-tagline { margin: 9px 0 0; color: var(--gold-light); font: 700 clamp(1.15rem, 2.5vw, 1.55rem)/1.2 Georgia,serif; }
.remix-instruction { margin: 8px 0 22px; color: #d7e8e8; }
.remix-words { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.remix-word {
  min-height: 52px;
  padding: 10px 13px;
  color: white;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.34);
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: .035em;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.remix-word:hover { border-color: var(--gold); transform: translateY(-2px); }
.remix-word:focus-visible, .remix-replay:focus-visible { outline: 4px solid white; outline-offset: 3px; }
.remix-word.active {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: #fff2bb;
  box-shadow: 0 0 0 5px rgba(217,111,93,.6), 0 8px 22px rgba(0,0,0,.22);
  transform: translateY(-3px) scale(1.035);
}
.remix-divider { color: rgba(255,255,255,.48); font-family: Georgia,serif; font-size: 1.4rem; }
.remix-meaning { min-height: 122px; margin-top: 24px; padding: 18px 20px; color: var(--ink); background: var(--cream); border-left: 7px solid var(--coral); border-radius: 5px 16px 16px 5px; }
.remix-focus-label { margin: 0 0 5px; color: var(--teal-deep); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
#remix-meaning-text { margin: 0; font-weight: 800; }
.remix-context { margin: 7px 0 0; color: #5e5260; }
.remix-replay { margin-top: 14px; padding: 11px 18px; color: var(--navy); background: var(--gold); border: 2px solid #f9e7ae; border-radius: 999px; font-weight: 900; }
.remix-replay:disabled { cursor: not-allowed; opacity: .45; }
.remix-route { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.remix-route li { min-width: 0; display: flex; gap: 9px; align-items: flex-start; padding: 12px; background: rgba(255,255,255,.08); border-top: 2px solid rgba(225,168,59,.72); }
.remix-route li > span { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--navy); background: var(--gold); border-radius: 50%; font-size: .76rem; font-weight: 900; }
.remix-route b, .remix-route small { display: block; }
.remix-route b { color: white; }
.remix-route small { margin-top: 2px; color: #c8dede; font-size: .78rem; line-height: 1.35; }

@media (max-width: 720px) {
  .voice-remix { border-radius: 18px; box-shadow: 4px 5px 0 rgba(217,111,93,.3); }
  .remix-words { justify-content: flex-start; }
  .remix-divider { display: none; }
  .remix-word { flex: 1 1 calc(33.333% - 8px); min-width: 92px; }
  .remix-route { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .remix-word { flex-basis: calc(50% - 8px); }
  .remix-route { grid-template-columns: 1fr; }
}

/* Rhythm Eater: audible companion to Plate 5.6 */
.audio-tag { color: #fff8df; background: var(--coral); }
.rhythm-eater {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  color: #e7f2f1;
  background:
    radial-gradient(circle at 92% 8%, rgba(225,168,59,.24), transparent 14rem),
    radial-gradient(circle at 4% 88%, rgba(217,111,93,.2), transparent 16rem),
    linear-gradient(150deg, #071f48, #075a69 62%, #06434d);
  border: 3px solid var(--gold);
  border-radius: 5px 24px 5px 24px;
  box-shadow: 8px 9px 0 rgba(16,42,86,.18);
}
.rhythm-eater-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.rhythm-kicker { margin: 0 0 6px; color: #f6d47e; font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.rhythm-eater h3 { margin: 0; color: white; font: 800 clamp(2.25rem, 5vw, 3.8rem)/.95 Georgia,serif; letter-spacing: .025em; }
.rhythm-tagline { margin: 10px 0 0; color: var(--gold-light); font: 700 clamp(1.12rem, 2.4vw, 1.5rem)/1.2 Georgia,serif; }
.rhythm-mark { flex: 0 0 86px; width: 86px; height: 86px; display: grid; grid-template-columns: 1fr .7fr; align-items: center; padding: 9px; color: var(--navy); background: var(--gold); border: 3px double white; border-radius: 50%; transform: rotate(5deg); box-shadow: 4px 5px 0 rgba(0,0,0,.18); }
.rhythm-mark span { font: 800 2.7rem/1 Georgia,serif; }
.rhythm-mark small { font-size: .55rem; font-weight: 900; line-height: 1.1; letter-spacing: .06em; }
.rhythm-instruction { max-width: 720px; margin: 10px 0 22px; color: #d2e5e5; }
.eater-game { margin: 0 0 28px; padding: clamp(18px, 3vw, 26px); color: var(--navy); background: #fff8df; border: 3px solid var(--gold); box-shadow: 5px 6px 0 rgba(0,0,0,.22); }
.eater-game-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eater-game-intro h4 { margin: 0; font: 800 clamp(1.55rem, 4vw, 2.5rem)/1.08 Georgia,serif; }
.eater-game-intro p:last-child { max-width: 580px; margin: 10px 0 0; font-size: 1rem; line-height: 1.45; }
.eater-game .rhythm-kicker { color: var(--coral); }
.eater-game-face { position: relative; flex: 0 0 clamp(95px, 18vw, 150px); width: clamp(95px, 18vw, 150px); aspect-ratio: 1; overflow: hidden; border: 4px solid var(--navy); border-radius: 50%; background: var(--gold); box-shadow: 4px 4px 0 var(--coral); transition: transform .25s ease, filter .25s ease; }
.eater-game-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(2.1); }
.eater-game-face span { position: absolute; right: 2px; bottom: 0; display: grid; place-items: center; width: 2rem; height: 2rem; color: white; background: var(--coral); border-radius: 50%; font-weight: 900; }
.eater-game.won .eater-game-face { animation: eater-cheer .55s ease-in-out 2; filter: saturate(1.3); }
.eater-game.won .eater-game-face span { background: var(--teal-deep); }
.eater-game.try-again .eater-game-face { transform: rotate(-10deg) translateY(5px); filter: saturate(.62); }
@keyframes eater-cheer { 50% { transform: translateY(-12px) rotate(8deg); } }
.eater-game-listen, .eater-game-actions button { min-height: 48px; padding: 9px 16px; border: 2px solid var(--navy); border-radius: 10px; font-weight: 850; }
.eater-game-listen { margin-top: 18px; color: white; background: var(--coral); box-shadow: 3px 3px 0 var(--gold); }
.eater-game-caption { margin: 19px 0 12px; font: 700 clamp(1.1rem, 2.2vw, 1.45rem)/1.35 Georgia,serif; }
.eater-game-words { display: flex; flex-wrap: wrap; gap: 9px; }
.eater-game-words button { min-width: 56px; min-height: 56px; padding: 9px 12px; color: var(--navy); background: white; border: 2px solid var(--navy); border-radius: 10px; font-size: 1.13rem; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.eater-game-words button.fed { color: #314a50; background: #d5eee8; border-color: var(--teal); transform: scale(.9); }
.eater-game-words button small { display: block; color: var(--coral); font-size: .78rem; line-height: 1.1; }
.eater-game-words button:disabled { opacity: 1; cursor: default; }
.eater-game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.eater-game-actions #eater-game-check { color: var(--navy); background: var(--gold); }
.eater-game-actions #eater-game-reset, .eater-game-actions #eater-game-answer { color: var(--navy); background: white; }
.eater-game-feedback { min-height: 2.5rem; margin: 15px 0 0; padding: 10px 12px; color: var(--navy); background: #e2f1ed; border-left: 5px solid var(--teal); font-size: 1rem; font-weight: 700; }
.eater-game.won .eater-game-feedback { background: #fff0bd; border-color: var(--gold); }
.eater-game.try-again .eater-game-feedback { background: #fce6de; border-color: var(--coral); }
.eater-game button:focus-visible { outline: 4px solid var(--coral); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .eater-game.won .eater-game-face { animation: none; } .eater-game-face, .eater-game-words button { transition: none; } }
.rhythm-scenes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.rhythm-scenes button {
  min-height: 48px; padding: 9px 8px; color: #e6f0ef; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.3); border-bottom: 3px solid rgba(225,168,59,.66);
  font-size: .78rem; font-weight: 850; line-height: 1.2;
}
.rhythm-scenes button:hover { color: white; border-color: var(--gold); }
.rhythm-scenes button.active { color: var(--navy); background: var(--gold); border-color: #fff0b3; box-shadow: inset 0 -4px 0 var(--coral); }
.rhythm-scenes button:focus-visible, .rhythm-controls button:focus-visible { outline: 4px solid white; outline-offset: 3px; }
.rhythm-stage { margin-top: 15px; padding: clamp(18px,3vw,28px); color: var(--ink); background: #fff8df; border: 2px solid var(--gold); }
.rhythm-scene-status, .rhythm-map-label { margin: 0 0 14px; color: var(--teal-deep); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rhythm-dialogue { display: grid; gap: 12px; }
.rhythm-bubble { max-width: 86%; }
.rhythm-bubble span { display: block; margin: 0 0 5px 4px; color: var(--teal-deep); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rhythm-bubble p { margin: 0; padding: 14px 17px; border: 1px solid rgba(16,42,86,.22); font-size: 1rem; line-height: 1.45; }
.rhythm-bubble.speaker-a p { background: #dff1e7; border-radius: 3px 17px 17px 17px; }
.rhythm-bubble.speaker-b { margin-left: auto; }
.rhythm-bubble.speaker-b span { color: var(--coral); text-align: right; }
.rhythm-bubble.speaker-b p { color: white; background: var(--navy); border-color: var(--navy); border-radius: 17px 3px 17px 17px; }
.rhythm-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.rhythm-controls button { min-height: 44px; padding: 10px 14px; border: 2px solid var(--navy); font-weight: 850; }
.rhythm-play { color: white; background: var(--coral); box-shadow: 3px 3px 0 var(--gold); }
.rhythm-reveal { color: var(--navy); background: var(--gold-light); }
.rhythm-replay { color: var(--navy); background: white; }
.rhythm-audio-status { min-height: 22px; margin: 12px 0 0; color: #5d697a; font-size: .85rem; font-weight: 700; }
.rhythm-map { margin-top: 20px; padding: 18px; background: #e2f1ed; border-left: 7px solid var(--coral); }
.rhythm-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 7px; }
.rhythm-token { display: inline-flex; min-height: 52px; flex-direction: column; justify-content: flex-end; align-items: center; padding: 5px 7px; border-bottom: 2px solid transparent; }
.rhythm-token b { font-size: .9rem; line-height: 1.1; }
.rhythm-token small { min-height: 15px; margin-top: 4px; color: var(--coral); font: 700 .72rem/1 ui-monospace,monospace; }
.rhythm-token.strong { color: var(--navy); background: linear-gradient(transparent 54%, rgba(225,168,59,.65) 54%); border-bottom-color: var(--gold); }
.rhythm-token.strong b { font-size: 1.32rem; }
.rhythm-token.light { color: #4f6170; }
.rhythm-token.weak { color: #6e7980; transform: scale(.88); transform-origin: bottom center; opacity: .86; }
.rhythm-token.weak b { font-size: .78rem; font-weight: 600; }
.rhythm-pulses { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px dashed rgba(16,42,86,.3); }
.rhythm-pulses > span { color: var(--teal-deep); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.rhythm-pulses > div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.rhythm-pulses > div span { display: inline-flex; gap: 6px; align-items: center; color: var(--navy); font-size: .79rem; font-weight: 900; }
.rhythm-pulses i { width: 13px; height: 13px; background: var(--coral); border: 3px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 2px var(--navy); }
.rhythm-principle { margin: 17px 0 0; color: #405268; line-height: 1.5; }
.rhythm-principle b { color: var(--coral); }
.rhythm-route { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.rhythm-route li { display: flex; gap: 9px; padding: 12px; background: rgba(255,255,255,.08); border-top: 2px solid rgba(225,168,59,.72); }
.rhythm-route li > span { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--navy); background: var(--gold); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.rhythm-route b, .rhythm-route small { display: block; }
.rhythm-route b { color: white; }
.rhythm-route small { margin-top: 3px; color: #c9dedd; font-size: .76rem; line-height: 1.35; }
.rhythm-instagram { margin-top: 22px; padding: 17px; display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; color: var(--navy); background: linear-gradient(120deg,#f8df91,#fff8df 60%,#d9f0ea); border: 2px solid var(--coral); box-shadow: 4px 4px 0 rgba(225,168,59,.65); }
.rhythm-phone { width: 58px; aspect-ratio: 9/16; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 5px; color: white; background: var(--navy); border: 2px solid var(--gold); border-radius: 8px; font-size: .58rem; text-align: center; }
.rhythm-phone i { color: var(--coral); font-style: normal; letter-spacing: 1px; }
.rhythm-instagram p { margin: 0 0 3px; color: var(--coral); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rhythm-instagram h4 { margin: 0 0 5px; color: var(--navy); font: 800 1.15rem/1.1 Georgia,serif; }
.rhythm-instagram div > span { display: block; color: #43566c; font-size: .84rem; line-height: 1.4; }
.rhythm-instagram b { display: block; margin-top: 7px; color: var(--teal-deep); font-size: .76rem; }

@media (max-width: 760px) {
  .rhythm-scenes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rhythm-route { grid-template-columns: 1fr 1fr; }
  .rhythm-mark { display: none; }
  .rhythm-bubble { max-width: 94%; }
}
@media (max-width: 460px) {
  .eater-game-intro { align-items: flex-start; }
  .eater-game-face { flex-basis: 84px; width: 84px; }
  .eater-game-words { gap: 7px; }
  .eater-game-words button { min-width: 52px; min-height: 52px; padding: 7px; font-size: 1rem; }
  .eater-game-actions button { flex: 1 1 100%; }
  .rhythm-scenes, .rhythm-route { grid-template-columns: 1fr; }
  .rhythm-controls button { width: 100%; }
  .rhythm-pulses { grid-template-columns: 1fr; }
  .rhythm-instagram { grid-template-columns: 54px 1fr; }
  .rhythm-phone { width: 48px; }
}

.teacher-section {
  padding: clamp(50px, 8vw, 100px) clamp(20px, 6vw, 86px);
  color: white;
  background: linear-gradient(135deg, #075b5c, #0b3042);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 7vw, 100px);
}
.teacher-intro { max-width: 550px; }
.teacher-intro > p:not(.section-label) { color: #cee2e2; font-size: 1.05rem; }
.teacher-section .section-label { color: #f4c55b; }
.text-link.dark { color: #f7d47e; }
.teacher-method { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.teacher-method article { position: relative; min-height: 170px; padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.08); }
.teacher-method span { color: var(--gold); font-family: Georgia, serif; font-size: 1.65rem; }
.teacher-method h3 { margin: 16px 0 4px; font-size: 1.08rem; }
.teacher-method p { margin: 0; color: #c8d9de; font-size: .9rem; }

.companion-invitation {
  max-width: 1320px; margin: 88px auto; padding: clamp(38px,6vw,72px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,7vw,90px); align-items: center;
  color: var(--ink); background: linear-gradient(135deg,#fff8df,#dff1e7);
  border: 3px solid var(--gold); outline: 2px solid var(--navy); outline-offset: 6px;
  box-shadow: 12px 15px 0 rgba(16,42,86,.11);
}
.companion-invitation h2 { color: var(--navy); }
.companion-invitation-copy > p:not(.section-label) { max-width: 640px; color: #455b70; font-size: 1.06rem; }
.companion-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 17px; color: white; background: var(--coral); border: 2px solid #771923; box-shadow: 3px 3px 0 var(--gold); text-decoration: none; font-weight: 850; }
.companion-button span { font-size: 1.3em; transition: transform .2s ease; }
.companion-button:hover span { transform: translateX(5px); }
.companion-route { list-style: none; margin: 0; padding: 0; }
.companion-route li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 0 0 28px; }
.companion-route li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 48px; height: calc(100% - 43px); border-left: 2px dashed rgba(8,124,120,.45); }
.companion-route li > span { width: 50px; height: 50px; display: grid; place-items: center; color: white; background: var(--teal-deep); border: 3px solid var(--gold); border-radius: 50%; font-family: Georgia,serif; }
.companion-route li.current > span { background: var(--coral); }
.companion-route b,.companion-route small { display: block; }
.companion-route b { color: var(--navy); font: 700 1.28rem/1.2 Georgia,serif; }
.companion-route small { margin-top: 5px; color: #596b79; font-size: .88rem; }

/* Teaching Companion */
.companion-page { min-height: 100vh; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 8% 14%,rgba(225,168,59,.2),transparent 24rem),radial-gradient(circle at 92% 82%,rgba(8,124,120,.13),transparent 30rem),linear-gradient(180deg,#fffaf0,#f1eadc); }
.companion-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(20px,5vw,72px); border-bottom: 1px solid var(--line); background: rgba(255,250,240,.92); backdrop-filter: blur(14px); }
.companion-back { padding: 10px 14px; color: white; background: var(--teal-deep); text-decoration: none; font-weight: 800; border: 2px solid var(--gold); }
.companion-workspace { max-width: 1480px; min-height: calc(100vh - 172px); margin: auto; padding: clamp(34px,5vw,72px) clamp(18px,5vw,72px); display: grid; grid-template-columns: minmax(300px,.72fr) minmax(540px,1.28fr); gap: clamp(32px,5vw,72px); align-items: start; }
.companion-guide { position: sticky; top: 34px; padding-top: 18px; }
.companion-guide h1 { color: var(--navy); font-size: clamp(3.3rem,6vw,6.5rem); }
.companion-guide h1 em { color: var(--teal-deep); }
.companion-lede { max-width: 590px; margin: 26px 0; color: #45586b; font-size: 1.08rem; }
.companion-principles { max-width: 590px; margin-top: 30px; padding: 22px; color: #dcebed; background: var(--navy); border: 3px solid var(--gold); box-shadow: 6px 7px 0 rgba(16,42,86,.14); }
.companion-principles p { margin: 0; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.companion-principles p:last-child { border-bottom: 0; }
.companion-principles span { display: block; color: var(--gold); font-weight: 850; }
.conversation-card { min-height: 620px; display: grid; grid-template-rows: auto auto minmax(300px,1fr); overflow: hidden; background: #fff8df; border: 3px solid var(--gold); outline: 2px solid var(--navy); outline-offset: 6px; box-shadow: 13px 16px 0 rgba(16,42,86,.12); }
.conversation-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; color: white; background: var(--navy); border-bottom: 3px solid var(--gold); }
.conversation-topline > div { display: flex; align-items: center; gap: 10px; }
.companion-lantern { color: var(--gold); font-size: 1.4rem; }
.conversation-topline button { color: #fff4c9; background: transparent; border: 1px solid var(--gold); padding: 8px 11px; font-weight: 750; }
.conversation { max-height: 50vh; min-height: 300px; overflow-y: auto; padding: 25px; scroll-behavior: smooth; }
.message { max-width: 82%; margin-bottom: 20px; }
.message span { display: block; margin: 0 0 6px 3px; color: var(--teal-deep); font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.message p { margin: 0; padding: 15px 17px; white-space: pre-wrap; border: 1px solid rgba(16,42,86,.2); line-height: 1.62; }
.message.assistant p { background: #dff1e7; border-radius: 3px 18px 18px 18px; }
.message.user { margin-left: auto; }
.message.user span { color: var(--coral); text-align: right; }
.message.user p { color: white; background: var(--teal-deep); border-color: var(--teal-deep); border-radius: 18px 3px 18px 18px; }
.message.thinking p { color: #586a73; font-style: italic; }
.conversation-starters { display: flex; flex-wrap: wrap; gap: 9px; margin: -5px 0 24px; }
.conversation-starters button { padding: 9px 12px; color: var(--navy); background: #fffdf5; border: 2px solid var(--gold); font-weight: 750; }
.companion-error { padding: 12px 14px; color: #842d2a; background: #fbe8e5; border-left: 4px solid var(--coral); }
.conversation-form { padding: 19px 22px 17px; background: #fffdf5; border-bottom: 2px solid rgba(16,42,86,.18); }
.conversation-form > label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 850; }
.conversation-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.conversation-form textarea { width: 100%; min-height: 82px; resize: vertical; padding: 12px 13px; color: var(--ink); background: white; border: 2px solid var(--navy); border-radius: 0; font: inherit; line-height: 1.45; }
.conversation-form textarea:focus { outline: 4px solid rgba(225,168,59,.35); }
.conversation-form button { min-height: 52px; padding: 12px 18px; color: white; background: var(--coral); border: 2px solid #771923; box-shadow: 3px 3px 0 var(--gold); font-weight: 850; }
.conversation-form button:disabled { cursor: not-allowed; opacity: .5; }
.conversation-form small { display: block; margin-top: 8px; color: #6b7582; }
.companion-footer { padding: 24px clamp(20px,5vw,72px); color: #cedde1; background: var(--navy); border-top: 3px solid var(--gold); }
.companion-footer p { max-width: 1000px; margin: auto; }

footer { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 36px; padding: 30px clamp(20px, 6vw, 86px); background: var(--ink); color: #d5dbe5; font-size: .85rem; line-height: 1.55; }
footer p { margin: 0; }
footer b { color: #fff; }
.footer-project p + p, .footer-notice p + p { margin-top: 8px; }
.footer-notice { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }

dialog { width: min(1120px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); overflow: auto; }
dialog::backdrop { background: rgba(9,18,33,.76); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; float: right; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 1.7rem; line-height: 1; }
.dialog-layout { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(320px,1.1fr); }
.dialog-visual { padding: 28px; background: #e8e4da; }
.dialog-visual img { width: 100%; display: block; border-radius: 8px; box-shadow: 0 12px 30px rgba(19,35,59,.18); }
.plate-zoom-trigger { position: sticky; top: 28px; width: 100%; padding: 0; overflow: hidden; color: white; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; }
.plate-zoom-trigger span { position: absolute; right: 12px; bottom: 12px; padding: 9px 13px; border: 2px solid var(--gold); border-radius: 3px; background: rgba(16,42,86,.94); font-size: .9rem; font-weight: 850; letter-spacing: .02em; box-shadow: 3px 3px 0 rgba(0,0,0,.2); }
.plate-zoom-trigger:hover span, .plate-zoom-trigger:focus-visible span { color: var(--navy); background: var(--gold); }

.plate-zoom-dialog { width: min(1480px, calc(100vw - 16px)); height: calc(100vh - 16px); max-height: calc(100vh - 16px); padding: 0; overflow: hidden; color: white; background: var(--navy); border: 3px solid var(--gold); outline: 0; }
.plate-zoom-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr); }
.plate-zoom-toolbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; color: white; background: #0b2133; border-bottom: 2px solid var(--gold); }
.plate-zoom-toolbar p, .plate-zoom-toolbar h2 { margin: 0; }
.plate-zoom-toolbar p { color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.plate-zoom-toolbar h2 { font-family: Georgia, serif; font-size: clamp(1.1rem,2vw,1.55rem); }
.plate-zoom-controls { display: flex; align-items: center; gap: 7px; }
.plate-zoom-controls button { min-width: 42px; height: 42px; padding: 0 12px; color: white; background: #173f58; border: 1px solid rgba(255,255,255,.38); border-radius: 4px; font-size: 1rem; font-weight: 850; }
.plate-zoom-controls button:hover, .plate-zoom-controls button:focus-visible { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.plate-zoom-controls output { min-width: 54px; text-align: center; color: var(--gold); font-weight: 850; }
.plate-zoom-controls .plate-zoom-close { color: white; background: var(--coral); font-size: 1.55rem; }
.plate-zoom-viewport { min-height: 0; overflow: auto; padding: clamp(10px,2vw,24px); text-align: center; background: #122b3d; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.plate-zoom-image { display: block; width: 100%; max-width: none; height: auto; margin: 0 auto; background: white; box-shadow: 0 18px 55px rgba(0,0,0,.42); }
.dialog-copy { padding: clamp(28px, 5vw, 60px); }
.dialog-copy h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.dialog-copy .big-question { margin: 16px 0 28px; color: var(--teal); font-family: Georgia, serif; font-size: 1.3rem; }
.metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.metadata div { padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.metadata dt { color: #6b7484; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metadata dd { margin: 3px 0 0; font-weight: 700; }
.teacher-box { margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--teal-light); }
.teacher-box h3 { margin: 0 0 8px; }
.teacher-box p { margin: 0 0 12px; }
.prompt { padding: 14px; border-left: 4px solid var(--teal); background: rgba(255,255,255,.65); font-size: .9rem; }
.resource-builder { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(10,119,118,.22); }
.resource-builder .builder-kicker { margin: 0 0 5px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.resource-builder .builder-intro { color: #425269; }
.resource-builder fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.resource-builder legend, .builder-row > label { margin-bottom: 9px; color: #18304b; font-size: .94rem; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.choice-grid label { display: block; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: flex; min-height: 42px; align-items: center; padding: 9px 11px; border: 1px solid rgba(10,119,118,.23); border-radius: 10px; background: rgba(255,255,255,.7); color: #33445b; font-size: .86rem; line-height: 1.25; transition: .15s ease; }
.choice-grid input:checked + span { border-color: var(--teal); background: #fff; box-shadow: inset 0 0 0 2px rgba(10,119,118,.12); color: #075f5e; font-weight: 750; }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(10,119,118,.24); outline-offset: 2px; }
.builder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.builder-row label { display: grid; gap: 8px; }
.builder-row select { width: 100%; min-height: 44px; padding: 8px 34px 8px 10px; border: 1px solid rgba(10,119,118,.3); border-radius: 10px; background: #fff; color: #263950; font: inherit; }
.build-button, .copy-button { margin-top: 18px; min-height: 46px; padding: 11px 17px; border: 0; border-radius: 11px; background: var(--teal); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.build-button:hover, .copy-button:hover { filter: brightness(.92); }
.prepared-request { margin-top: 22px; padding: 17px; border-radius: 13px; background: rgba(255,255,255,.68); }
.prepared-request .prompt { white-space: pre-wrap; color: #263950; line-height: 1.55; }
.copy-button { margin-top: 12px; background: var(--ink); }
.copy-status { min-height: 20px; margin: 8px 0 0!important; color: #42605f; font-size: .84rem; }
.resource-downloads { display: flex; flex-wrap: wrap; gap: .75rem; }
.resource-downloads a { text-decoration: none; }
.agent-status { margin: 0 0 14px!important; padding: 12px 14px; border-radius: 10px; background: #edf7f5; color: #075f5e; font-weight: 800; }
.agent-status.working { background: #fff4d5; color: #70500f; }
.agent-status.error { background: #fbe8e5; color: #8a352c; }
.agent-output { max-height: 520px; margin-bottom: 16px; padding: 20px; overflow: auto; white-space: pre-wrap; color: #20344a; background: #fff; border: 1px solid rgba(10,119,118,.22); border-radius: 12px; line-height: 1.62; }
.prepared-instructions { margin: 12px 0; }
.instructions-toggle { padding: 7px 0; border: 0; color: var(--teal-deep); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.prepared-instructions .prompt { margin-top: 8px; }
.teacher-check { margin: 14px 0 0!important; padding-top: 12px; border-top: 1px solid rgba(10,119,118,.2); color: #4b5d6d; font-size: .84rem; }
.build-button:disabled { cursor: wait; opacity: .72; }
body:has(dialog[open]) { overflow: hidden; }

/* Student placement journey */
.route-page { background: #f6f0e4; }
.route-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35; background: radial-gradient(circle at 12% 10%, rgba(225,168,59,.28), transparent 24rem), radial-gradient(circle at 90% 70%, rgba(8,124,120,.15), transparent 30rem); }
.route-page .site-header { background: rgba(246,240,228,.91); }
.placement-main { min-height: calc(100vh - 76px); overflow: hidden; }
.placement-intro, .journey-results { max-width: 1440px; min-height: 720px; margin: auto; padding: clamp(46px, 6vw, 88px) clamp(20px, 6vw, 86px); }
.placement-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .78fr); gap: clamp(42px, 7vw, 105px); align-items: center; }
.placement-copy { position: relative; z-index: 2; }
.route-overline { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px; color: var(--teal-deep); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.route-overline span { display: flex; align-items: center; }
.route-overline span + span::before { content: "✦"; margin: 0 11px; color: var(--coral); font-size: .72rem; }
.placement-intro h1, .journey-results h1 { margin: 0; font-size: clamp(3.4rem, 6.4vw, 6.8rem); line-height: .9; }
.placement-intro h1 em, .journey-results h1 em { color: var(--teal-deep); font-weight: 400; }
.placement-copy .lede { max-width: 690px; font-size: clamp(1.08rem, 1.5vw, 1.27rem); }
.route-reassurance { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 0; }
.route-reassurance span { padding: 8px 12px; border: 1px solid rgba(8,124,120,.22); border-radius: 999px; color: var(--teal-deep); background: rgba(255,255,255,.58); font-size: .79rem; font-weight: 800; }
.route-reassurance span::before { content: "✓"; margin-right: 6px; color: var(--coral); }
.primary-route-button { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 16px 23px; border: 0; border-radius: 12px 12px 28px 12px; color: #fff; background: linear-gradient(135deg, var(--teal-deep), #063f4a); box-shadow: 0 14px 34px rgba(7,91,92,.24); font-weight: 850; transition: transform .2s ease, box-shadow .2s ease; }
.primary-route-button span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); }
.primary-route-button:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(7,91,92,.3); }
.placement-note { max-width: 650px; margin: 17px 0 0; color: #6b7585; font-size: .8rem; }
.route-scene { position: relative; min-height: 570px; border: 1px solid rgba(255,255,255,.14); border-radius: 34px 34px 100px 34px; color: white; background: linear-gradient(148deg, #0a2639 0%, #075d5c 72%, #0c7770 100%); box-shadow: 0 35px 80px rgba(7,55,66,.27); overflow: hidden; isolation: isolate; }
.route-scene::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 37px 37px; transform: rotate(-8deg) scale(1.2); }
.map-title { position: absolute; z-index: 4; top: 27px; left: 30px; }.map-title span, .map-title b { display: block; }.map-title span { color: #96d9d2; font-size: .73rem; font-weight: 900; letter-spacing: .15em; }.map-title b { margin-top: 4px; font-family: Georgia, serif; font-size: 1.22rem; }
.journey-path { position: absolute; z-index: 1; inset: 62px 10px 12px; width: calc(100% - 20px); height: calc(100% - 74px); overflow: visible; }.path-shadow { fill: none; stroke: rgba(0,0,0,.18); stroke-width: 14; stroke-linecap: round; }.path-line { fill: none; stroke: #f0bd54; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 13; }
.scene-stop { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; }.scene-stop > span { width: 48px; height: 48px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.14); border-radius: 50%; color: var(--navy); background: var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,.2); font-size: .72rem; font-weight: 950; }.scene-stop p { margin: 0; color: #bcd4d8; font-size: .75rem; }.scene-stop b { display: block; color: white; font-family: Georgia, serif; font-size: 1rem; }.stop-one { left: 12%; bottom: 11%; }.stop-two { right: 10%; top: 46%; }.stop-two > span { background: #8fd9cf; }.stop-three { right: 10%; top: 13%; }.stop-three > span { color: white; background: var(--coral); }
.map-coordinate { position: absolute; z-index: 2; color: rgba(255,255,255,.24); font-size: .63rem; font-weight: 900; letter-spacing: .18em; }.map-coordinate.north { top: 10px; left: 48%; }.map-coordinate.east { top: 50%; right: -20px; transform: rotate(90deg); }.map-coordinate.south { bottom: 12px; left: 47%; }.map-coordinate.west { top: 53%; left: -23px; transform: rotate(-90deg); }
.map-compass-large { position: absolute; right: 26px; bottom: 23px; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }.map-compass-large::before, .map-compass-large::after { content: ""; position: absolute; background: rgba(255,255,255,.22); }.map-compass-large::before { width: 1px; height: 82px; }.map-compass-large::after { width: 82px; height: 1px; }.map-compass-large span { position: relative; z-index: 1; color: var(--gold); font-size: 2.1rem; }.map-compass-large i { position: absolute; top: -20px; color: rgba(255,255,255,.55); font-size: .62rem; font-style: normal; font-weight: 900; }
.map-land { position: absolute; z-index: -1; border: 1px solid rgba(143,217,207,.17); border-radius: 48% 52% 38% 62%; background: rgba(143,217,207,.06); transform: rotate(18deg); }.land-one { width: 240px; height: 155px; top: 128px; left: -55px; }.land-two { width: 250px; height: 210px; right: -75px; bottom: -55px; transform: rotate(-21deg); }
.placement-quiz { max-width: 980px; min-height: calc(100vh - 76px); margin: auto; padding: clamp(35px, 6vw, 70px) clamp(20px, 5vw, 60px) 90px; }
.quiz-topline { display: flex; justify-content: space-between; gap: 20px; color: #657285; font-size: .82rem; font-weight: 800; }
.quiz-topline p { margin: 0; }.back-home { color: var(--teal-deep); text-decoration: none; }
.progress-track { height: 7px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: #e5ded1; }
.progress-track span { display: block; width: 8.33%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width .3s ease; }
.question-stage { position: relative; margin-top: clamp(55px, 9vw, 95px); padding: clamp(25px, 5vw, 55px); border: 1px solid var(--line); border-radius: 30px 30px 72px 30px; background: rgba(255,250,240,.9); box-shadow: var(--shadow); }
.question-stage::after { content: "✦"; position: absolute; right: 23px; top: 18px; color: rgba(225,168,59,.42); font-size: 2.6rem; }
.question-context, .question-stage h2 {
  max-width: 790px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.2;
}
.question-context { margin: 0 0 14px; color: var(--teal-deep); font-weight: 400; }
.question-stage h2 { margin: 0; letter-spacing: -.02em; }
.answer-options { display: grid; gap: 12px; margin-top: 32px; }
.answer-options button { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; width: 100%; padding: 14px 17px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 14px 14px 28px 14px; background: #fff; font-weight: 700; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.answer-options button:hover:not(:disabled) { border-color: var(--teal); transform: translateX(3px); box-shadow: 0 8px 20px rgba(16,40,58,.08); }
.answer-options button span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-deep); background: var(--teal-light); font-size: .8rem; font-weight: 900; }
.answer-options button.correct { border-color: var(--teal); background: #e7f5ef; }.answer-options button.chosen-wrong { border-color: var(--coral); background: #fbedE8; }
.answer-feedback { margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--navy); color: #d4e1e4; }
.answer-feedback p { margin: 4px 0; }.answer-feedback .feedback-label { color: var(--gold); font-weight: 850; }
.answer-feedback button { margin-top: 13px; padding: 10px 15px; border: 0; border-radius: 10px; color: var(--navy); background: var(--gold); font-weight: 850; }
.journey-results { padding-top: clamp(55px, 7vw, 90px); }.results-heading { max-width: 970px; }.results-heading .lede { max-width: 850px; }
.result-route-line { display: grid; gap: 24px; margin-top: 55px; }
.result-card { position: relative; display: grid; grid-template-columns: 62px minmax(190px, .58fr) minmax(280px, 1.25fr); gap: clamp(18px, 4vw, 48px); align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 26px 26px 65px 26px; background: var(--cream); box-shadow: 0 13px 38px rgba(16,40,58,.09); }
.result-card + .result-card::before { content: ""; position: absolute; width: 2px; height: 26px; top: -26px; left: 50px; border-left: 2px dashed rgba(8,124,120,.42); }.result-card.first-stop { border: 2px solid var(--teal); background: linear-gradient(110deg, #fffaf0, #e5f3ee); }.result-number { align-self: start; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-family: Georgia, serif; font-size: 1.25rem; }
.result-image { aspect-ratio: 1; overflow: hidden; border-radius: 17px; background: #e6e1d7; }.result-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.result-copy { padding: 12px 22px 12px 0; }.result-label { margin: 0; color: var(--teal); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }.plate-code { margin: 7px 0 3px; color: #7b8390; font-size: .78rem; font-weight: 750; }
.result-copy h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }.result-question { margin: 10px 0; color: var(--teal-deep); font-family: Georgia, serif; font-size: 1.2rem; }.result-copy > p:last-of-type { color: #5a6677; }.result-copy a { display: inline-flex; gap: 9px; margin-top: 4px; color: var(--ink); font-weight: 850; text-decoration: none; }
.results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 25px; }.results-actions .primary-route-button { margin-top: 10px; }
.route-footer { display: flex; justify-content: space-between; }.route-footer a { color: var(--gold); font-weight: 800; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .opening, .student-welcome, .question-panel, .teacher-section, .placement-intro, .companion-invitation, .companion-workspace { grid-template-columns: 1fr; }
  .plate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .opening { align-items: start; }
  .hero-map { max-width: 640px; }
  .companion-guide { position: static; }
}

@media (max-width: 680px) {
  .site-header { min-height: 66px; padding: 10px 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand small, nav a:not(.nav-route) { display: none; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .opening { padding-top: 44px; }
  .placement-intro, .journey-results { min-height: auto; padding-top: 48px; padding-bottom: 70px; }
  .placement-intro h1, .journey-results h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .route-scene { min-height: 510px; }
  .question-stage { padding: 24px 18px; border-radius: 22px; }
  .result-card { grid-template-columns: 42px 1fr; gap: 15px; }
  .result-image { grid-column: 2; }.result-copy { grid-column: 2; padding: 0 5px 10px 0; }
  .route-footer { display: grid; }
  .hero-actions { display: grid; }
  .student-welcome { margin-inline: 12px; border-radius: 24px; }
  .question-panel { margin-inline: 12px; border-radius: 22px; }
  .atlas-heading { display: block; }
  .search { margin-top: 22px; }
  .search input { width: 100%; }
  .plate-grid, .teacher-method { grid-template-columns: 1fr; }
  .companion-invitation { margin: 70px 14px; padding: 30px 22px; }
  .companion-header { min-height: 68px; padding-inline: 12px; }
  .companion-back { font-size: .82rem; }
  .companion-workspace { padding-top: 34px; }
  .conversation-card { min-height: 560px; outline-offset: 3px; box-shadow: 7px 9px 0 rgba(16,42,86,.12); }
  .conversation { min-height: 260px; max-height: 50vh; padding: 18px 14px; }
  .message { max-width: 92%; }
  .conversation-form { padding: 15px 14px; }
  .conversation-form > div { grid-template-columns: 1fr; }
  .conversation-form button { width: 100%; }
  .choice-grid, .builder-row { grid-template-columns: 1fr; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-visual { padding: 18px; }
  .plate-zoom-trigger { position: relative; top: auto; }
  .plate-zoom-dialog { width: calc(100vw - 8px); height: calc(100vh - 8px); max-height: calc(100vh - 8px); }
  .plate-zoom-toolbar { align-items: flex-start; padding: 9px; }
  .plate-zoom-toolbar > div:first-child { display: none; }
  .plate-zoom-controls { width: 100%; justify-content: space-between; gap: 4px; }
  .plate-zoom-controls button { min-width: 40px; height: 40px; padding: 0 9px; }
  .plate-zoom-viewport { padding: 7px; }
  .metadata { grid-template-columns: 1fr; }
  footer { display: block; }
  .footer-notice { margin-top: 18px; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
}

/* Private visitor feedback */
.feedback-trigger {
  margin-top: 14px;
  padding: 9px 14px;
  color: #fff4c9;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 700;
}
.feedback-trigger:hover { color: var(--navy); background: var(--gold); }
.journey-feedback { margin-top: 10px; color: var(--navy); background: var(--gold-light); }
.route-footer > div { display: flex; align-items: center; gap: 18px; }
.route-footer .feedback-trigger { margin: 0; }
.feedback-dialog { width: min(650px, calc(100vw - 28px)); }
.feedback-form { padding: clamp(28px, 6vw, 54px); }
.feedback-form > p:not(.section-label) { color: #425873; }
.feedback-form label { display: grid; gap: 7px; margin-top: 17px; color: var(--navy); font-weight: 700; }
.feedback-form label > span { color: #657387; font-size: .85rem; font-weight: 400; }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf4;
  border: 2px solid rgba(16,42,86,.34);
  border-radius: 3px;
  font: inherit;
}
.feedback-form textarea { min-height: 125px; resize: vertical; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { outline: 3px solid rgba(231,165,45,.45); border-color: var(--navy); }
.feedback-honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.feedback-privacy { margin: 15px 0 0; font-size: .82rem; }
.feedback-submit { margin-top: 15px; padding: 12px 18px; color: white; background: var(--coral); border: 2px solid #791a22; border-radius: 3px; box-shadow: 3px 3px 0 var(--gold); font-weight: 800; }
.feedback-submit:disabled { opacity: .6; cursor: wait; }
.feedback-status { min-height: 24px; margin: 12px 0 0!important; color: var(--teal-deep)!important; font-weight: 700; }

@media (max-width: 680px) {
  .route-footer > div { margin-top: 16px; justify-content: space-between; }
  .feedback-form { padding: 32px 20px 24px; }
}

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

/* Atlas edition — derived from the illustrated print pages */
:root {
  --ink: #102a56;
  --navy: #09285a;
  --paper: #f5e6bd;
  --cream: #fff8df;
  --teal: #087f8f;
  --teal-deep: #075a69;
  --teal-light: #d9f0ea;
  --coral: #b92935;
  --gold: #e7a52d;
  --gold-light: #f8df91;
  --green: #167455;
  --sky: #cceafa;
  --line: rgba(16, 42, 86, .24);
  --shadow: 0 18px 44px rgba(31, 54, 71, .17);
}

body {
  background:
    radial-gradient(circle at 3% 8%, rgba(205, 50, 37, .22) 0 2%, transparent 11%),
    radial-gradient(circle at 95% 15%, rgba(0, 141, 177, .25) 0 3%, transparent 14%),
    radial-gradient(circle at 12% 76%, rgba(231, 165, 45, .19), transparent 18rem),
    linear-gradient(180deg, #fff7dc 0%, #f4e6bd 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .23;
  background-image:
    radial-gradient(circle, rgba(74, 48, 20, .22) .55px, transparent .75px),
    linear-gradient(102deg, transparent 49%, rgba(95, 68, 33, .07) 50%, transparent 51%);
  background-size: 5px 5px, 74px 86px;
}

button, input, select { font-family: Georgia, "Times New Roman", serif; }

.site-header {
  min-height: 84px;
  padding-block: 0;
  background: rgba(255, 246, 214, .96);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 0 var(--navy), 0 11px 28px rgba(16, 42, 86, .12);
  backdrop-filter: blur(10px);
}
.brand { align-self: stretch; gap: 14px; padding: 10px 22px 10px 14px; color: white; background: var(--navy); border-inline: 2px solid var(--gold); }
.brand-mark {
  width: 48px; height: 48px; color: var(--gold-light); background: transparent;
  border: 2px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--gold);
  letter-spacing: -.05em;
}
.brand b { color: #fff9e7; font-size: 1.15rem; letter-spacing: .02em; }
.brand small { color: #f2d889; font-family: Georgia, serif; letter-spacing: .06em; }
nav a { color: var(--navy); font-family: Georgia, serif; font-size: .95rem; }
nav a:hover { color: var(--coral); }
.nav-route {
  position: relative; padding: 10px 20px; color: #fff8dc; background: var(--coral);
  border: 2px solid #7f1720; border-radius: 3px; box-shadow: 3px 3px 0 var(--gold);
}
.nav-route:hover { color: white; background: #98212b; transform: translate(-1px,-1px); }

.opening {
  position: relative;
  max-width: none;
  min-height: 720px;
  padding-top: clamp(72px, 9vw, 128px);
  background:
    radial-gradient(ellipse at 8% 14%, rgba(220, 48, 42, .24), transparent 22%),
    radial-gradient(ellipse at 92% 22%, rgba(0, 159, 189, .24), transparent 26%),
    linear-gradient(180deg, rgba(255, 250, 225, .75), rgba(238, 224, 181, .72));
  border-bottom: 7px double var(--navy);
}
.opening::after {
  content: "ONE ATLAS · MANY MAPS · ENDLESS DISCOVERIES";
  position: absolute; left: 50%; bottom: -24px; z-index: 2; transform: translateX(-50%);
  width: min(780px, calc(100% - 48px)); padding: 10px 20px;
  color: #f6bd45; background: var(--navy); border: 3px double var(--gold); border-radius: 4px;
  text-align: center; font-size: clamp(.72rem, 1.6vw, 1rem); font-weight: 700; letter-spacing: .12em;
  box-shadow: 0 5px 0 rgba(72, 35, 10, .25);
}
.eyebrow, .section-label {
  color: var(--coral); font-family: Georgia, serif; font-size: .82rem; letter-spacing: .13em;
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); letter-spacing: -.025em; text-shadow: 0 1px 0 #fff6d8; }
h1 { text-transform: uppercase; font-size: clamp(3.15rem, 6.4vw, 6.5rem); line-height: .9; }
h1 em { display: inline-block; color: var(--teal-deep); font-style: normal; }
.lede { color: #284568; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.hero-actions a { border: 2px solid var(--navy); border-radius: 4px; box-shadow: 4px 4px 0 rgba(16,42,86,.18); }
.hero-actions a:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(16,42,86,.16); }
.primary-action { background: var(--coral); }
.secondary-action { background: var(--gold-light); }
.route-action { background: #fff8df; }

.hero-map {
  color: var(--ink); background:
    linear-gradient(rgba(255,250,226,.88), rgba(247,225,170,.9)),
    repeating-linear-gradient(7deg, transparent 0 13px, rgba(106,71,28,.08) 14px 15px);
  border: 3px solid var(--gold); border-radius: 5px 24px 5px 24px;
  outline: 2px solid var(--navy); outline-offset: 5px; box-shadow: var(--shadow); transform: rotate(1deg);
}
.hero-map::before { opacity: .32; background-image: radial-gradient(circle, var(--teal) 1px, transparent 1.4px); background-size: 23px 23px; }
.map-compass { color: var(--coral); }
.map-kicker { color: var(--coral); }
.map-stop p { color: #35506f; }
.map-stop b { color: var(--navy); }
.map-stop span { color: white; background: var(--coral); border: 2px solid #811c25; box-shadow: 0 0 0 5px #f7df9b; }
.map-stop.see span { color: white; background: #1374ad; }
.map-stop.next span { background: var(--green); }
.route-line { border-left-color: var(--teal); }

.student-welcome, .question-panel, .question-stage, .result-card {
  border: 3px solid rgba(16,42,86,.78); border-radius: 6px 24px 6px 24px;
  outline: 1px solid var(--gold); outline-offset: -7px;
}
.student-welcome {
  margin-top: 88px;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(54, 168, 196, .26), transparent 42%),
    linear-gradient(135deg, rgba(255,248,221,.97), rgba(219,239,222,.92));
}
.text-link { color: var(--coral); }
.journey-card { color: var(--ink); background: #fff6d8; border: 2px solid var(--gold); border-radius: 4px; outline: 2px solid var(--navy); outline-offset: 5px; }
.journey-label { color: var(--coral); }
.journey-card li { border-left-color: rgba(8,127,143,.5); }
.journey-card li span { color: var(--teal-deep); }
.journey-card li b { color: var(--navy); }
.journey-card li::before { background: var(--coral); box-shadow: 0 0 0 4px #f6d88d; }
.journey-card li:nth-child(2)::before { background: #1374ad; }
.journey-card li:nth-child(3)::before { background: var(--green); }

.question-panel { color: var(--ink); background: linear-gradient(120deg, #fff7d9, #cdeafa); box-shadow: var(--shadow); }
.question-panel .section-label { color: var(--coral); }
.question-intro { color: #405b78; }
.question-list button {
  color: var(--navy); border: 2px solid #b97721; border-radius: 3px;
  background: linear-gradient(#ffeeb9, #efbf58); box-shadow: 3px 3px 0 rgba(16,42,86,.16);
}
.question-list button:hover, .question-list button.active { color: white; background: var(--coral); border-color: #801c25; }
.question-list .quiet { color: var(--navy); border-style: solid; background: #fffaf0; }

.atlas { padding-top: 34px; }
.atlas-heading { padding-bottom: 14px; border-bottom: 3px double var(--navy); }
.search input { border: 2px solid var(--navy); border-radius: 3px; background: #fff9e4; }
.plate-grid { gap: clamp(22px, 2.8vw, 38px); }
.plate-card {
  background: #fff8df; border: 2px solid var(--navy); border-radius: 4px;
  outline: 1px solid var(--gold); outline-offset: -7px; box-shadow: 6px 7px 0 rgba(16,42,86,.13);
}
.plate-card:hover { transform: translateY(-5px) rotate(-.25deg); box-shadow: 10px 13px 0 rgba(16,42,86,.12); }
.plate-image { margin: 13px; border: 1px solid var(--gold); border-radius: 2px; }
.plate-image::after { border: 1px solid var(--gold); border-radius: 2px; background: var(--navy); }
.tag { border-radius: 2px; background: #d9f0ea; color: #075a69; }
.tag.secondary { background: #f7d98a; color: #703d0e; }
.plate-body h3 { color: var(--navy); }
.view-button { border: 2px solid #771923; border-radius: 3px; background: var(--coral); box-shadow: 2px 2px 0 var(--gold); }
.view-button:hover { background: #941f29; }

.teacher-section {
  position: relative; color: white;
  background:
    radial-gradient(ellipse at 10% 95%, rgba(24,130,84,.85), transparent 38%),
    radial-gradient(ellipse at 92% 0%, rgba(63,166,201,.45), transparent 38%),
    linear-gradient(150deg, #0b315f, #087a89 62%, #165f47);
  border-block: 5px double var(--gold);
}
.teacher-section h2 { color: #fff8db; text-shadow: 0 2px 0 #062349; }
.teacher-intro > p:not(.section-label) { color: #e5f5f1; }
.teacher-method article { border: 2px solid #edc35b; border-radius: 4px 18px 4px 18px; background: rgba(6,38,74,.68); box-shadow: inset 0 0 0 5px rgba(255,255,255,.05); }
.teacher-method span { display: inline-grid; place-items: center; width: 45px; height: 45px; color: white; background: var(--coral); border: 2px solid #f6c95c; border-radius: 50%; }
.teacher-method p { color: #d6e9ec; }
footer { background: #071f48; border-top: 3px solid var(--gold); }

dialog { border: 3px solid var(--gold); border-radius: 4px 22px 4px 22px; outline: 2px solid var(--navy); outline-offset: -8px; background: #fff7dc; }
.dialog-close { background: var(--coral); border: 2px solid var(--gold); }
.dialog-visual { background: #d3edf1; }
.metadata div, .choice-grid span, .builder-row select { border-radius: 3px; }
.teacher-box { border: 1px solid var(--teal); border-radius: 4px 16px 4px 16px; background: #dff1e7; }
.build-button, .copy-button { border: 2px solid var(--gold); border-radius: 3px; background: var(--coral); }
.copy-button { background: var(--navy); }

/* The placement journey uses the same illustrated field-guide language. */
.route-page { background: #f5e6bd; }
.route-page::before { opacity: .48; background: radial-gradient(circle at 10% 8%, rgba(203,47,50,.23), transparent 22rem), radial-gradient(circle at 90% 66%, rgba(16,136,165,.22), transparent 29rem); }
.route-page .site-header { background: rgba(255,246,214,.96); }
.route-overline { color: var(--coral); }
.route-reassurance span { color: var(--navy); border: 1px solid var(--gold); border-radius: 3px; background: #fff8df; }
.primary-route-button { border: 2px solid #7c1922; border-radius: 3px; background: var(--coral); box-shadow: 4px 4px 0 var(--gold); }
.primary-route-button span { background: #ffe19a; }
.route-scene {
  color: var(--ink); background:
    radial-gradient(ellipse at 20% 75%, rgba(48,145,86,.25), transparent 32%),
    radial-gradient(ellipse at 80% 20%, rgba(58,163,204,.30), transparent 38%),
    linear-gradient(150deg, #fff4c8, #cdeaf4 58%, #d9eccf);
  border: 3px solid var(--gold); border-radius: 5px 28px 5px 28px;
  outline: 2px solid var(--navy); outline-offset: 5px; box-shadow: var(--shadow);
}
.route-scene::before { opacity: .25; background-image: radial-gradient(circle, var(--teal) 1px, transparent 1.4px); background-size: 29px 29px; }
.map-title span { color: var(--coral); }
.map-title b { color: var(--navy); }
.path-shadow { stroke: rgba(16,42,86,.13); }
.path-line { stroke: var(--coral); }
.scene-stop > span { color: white; background: var(--coral); border-color: #f5d57e; }
.scene-stop p { color: #37536f; }
.scene-stop b { color: var(--navy); }
.stop-two > span { background: #1674ad; }
.stop-three > span { background: var(--green); }
.map-coordinate { color: rgba(9,40,90,.42); }
.map-compass-large { border-color: rgba(9,40,90,.5); }
.map-compass-large::before, .map-compass-large::after { background: rgba(9,40,90,.34); }
.map-compass-large i { color: var(--navy); }
.map-land { border-color: rgba(22,116,85,.28); background: rgba(22,116,85,.09); }
.progress-track { height: 9px; border: 1px solid var(--navy); border-radius: 2px; background: #fff8df; }
.progress-track span { border-radius: 0; background: linear-gradient(90deg, var(--gold), var(--coral)); }
.question-stage { background: rgba(255,248,223,.96); }
.question-stage::after { color: var(--coral); }
.question-context { color: var(--teal-deep); }
.answer-options button { border: 2px solid rgba(16,42,86,.35); border-radius: 3px 18px 3px 18px; background: #fffaf0; }
.answer-options button span { color: white; background: #1674ad; border: 2px solid var(--gold); }
.answer-feedback { border: 2px solid var(--gold); border-radius: 4px; background: var(--navy); }
.result-card { background: #fff8df; }
.result-card.first-stop { border-color: var(--coral); background: linear-gradient(110deg, #fff8df, #dcefe5); }
.result-number { background: var(--coral); border: 2px solid var(--gold); }
.result-image { border: 2px solid var(--gold); border-radius: 3px; }
.result-label { color: var(--coral); }

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding-inline: 12px; }
  .brand { margin-left: -12px; padding-left: 12px; }
  .opening { padding-top: 54px; padding-bottom: 94px; }
  .opening::after { bottom: -28px; line-height: 1.35; }
  .hero-map { margin: 8px; transform: none; }
  .student-welcome { margin-top: 74px; }
  .plate-card:hover { transform: translateY(-4px); }
}

/* A glimpse of the illustrated Atlas itself anchors the digital design. */
.atlas-cover {
  position: relative;
  width: min(100%, 475px);
  margin: 0 auto;
  padding: 13px;
  background: #f7d36d;
  border: 3px solid var(--navy);
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  box-shadow: 14px 18px 0 rgba(16,42,86,.15), 0 32px 70px rgba(20,57,74,.22);
  transform: rotate(1.2deg);
}
.cover-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid #8b4418;
  background: var(--cream);
}
.cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 5px rgba(255,239,177,.28), inset 0 0 45px rgba(4,32,67,.18);
}
.atlas-cover img { width: 100%; height: auto; display: block; }
.atlas-cover figcaption {
  position: absolute;
  left: 50%; bottom: -24px;
  width: calc(100% - 38px);
  transform: translateX(-50%);
  padding: 10px 12px;
  color: #ffd164;
  background: var(--navy);
  border: 2px solid var(--gold);
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 4px 5px 0 rgba(77,37,12,.28);
}
.atlas-cover figcaption span { margin-right: 7px; color: #fff2bd; }

@media (max-width: 980px) {
  .atlas-cover { width: min(78vw, 470px); margin-top: 6px; }
}

@media (max-width: 680px) {
  .atlas-cover { width: calc(100% - 18px); margin-top: 14px; transform: none; }
}
