:root {
  --midnight: #0F273F;
  --founders: #055E98;
  --teal: #30A6B0;
  --horizon: #86BCDE;
  --cream: #F7F6F2;
  --paper: #FFFDF8;
  --gold: #C89B3C;
  --ink: #132D40;
  --muted: #5B6F7E;
  --line: #C8D5DC;
  --green: #147A52;
  --yellow: #A76A00;
  --red: #A63D40;
  --shadow: 0 18px 45px rgb(15 39 63 / 18%);
  --radius: 1.15rem;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; background: linear-gradient(180deg, #f7f6f2 0%, #eef6f7 100%); }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: .22rem solid var(--gold); outline-offset: .18rem; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif; color: var(--midnight); line-height: 1.08; }
p { line-height: 1.62; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 9999; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; background: white; color: var(--midnight); border-radius: .5rem; }
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: .8rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem clamp(1rem, 3vw, 2.4rem); color: white; background: rgb(15 39 63 / 96%); box-shadow: 0 5px 22px rgb(15 39 63 / 25%); backdrop-filter: blur(12px); }
.brand-button { display: flex; align-items: center; gap: .7rem; padding: 0; color: white; background: none; border: 0; text-align: left; }
.brand-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgb(255 255 255 / 42%); border-radius: 50%; font-family: Georgia, serif; font-weight: 800; color: var(--cream); }
.brand-button span:last-child { display: grid; }
.brand-button strong { font-family: Georgia, serif; font-size: 1rem; }
.brand-button small { color: #bde7ec; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.site-nav button { padding: .58rem .68rem; color: white; background: transparent; border: 0; border-radius: .55rem; }
.site-nav button:hover { background: rgb(255 255 255 / 11%); }
#app-main { min-height: calc(100vh - 4rem); }
.screen { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.6rem) 0 3rem; }
.screen.narrow { width: min(900px, calc(100% - 2rem)); }
.eyebrow { margin: 0 0 .45rem; color: var(--teal); font-weight: 800; letter-spacing: .035em; text-transform: none; font-size: .76rem; }
.display-title { max-width: 16ch; margin: 0 0 .85rem; font-size: clamp(2.25rem, 5.2vw, 4.65rem); }
.screen-title { margin: 0 0 .8rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.lede { max-width: 64ch; margin: 0; color: #29475b; font-family: Georgia, serif; font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .72rem 1rem; border-radius: .72rem; border: 1px solid transparent; font-weight: 800; text-decoration: none; }
.button-primary { color: white; background: var(--founders); }
.button-primary:hover { background: #044c7a; }
.button-secondary { color: var(--midnight); background: white; border-color: #adc6d2; }
.button-secondary:hover { background: #edf7f8; }
.button-quiet { color: var(--founders); background: transparent; border-color: #a8c0cd; }
.button-danger { color: white; background: var(--red); }
.button[disabled] { opacity: .52; cursor: not-allowed; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 253 248 / 96%); box-shadow: var(--shadow); }

/* Prologue */
.prologue { position: relative; width: 100%; min-height: 100vh; overflow: hidden; display: grid; place-items: center; padding: 2rem 1rem; background: linear-gradient(rgb(9 31 47 / 34%), rgb(9 31 47 / 74%)), url('assets/visuals/ivy-columns.webp') center / cover; isolation: isolate; }
.prologue::before, .prologue::after { content: ""; position: absolute; z-index: -1; top: -4%; bottom: -6%; width: clamp(7rem, 13vw, 12rem); background: linear-gradient(90deg, #d8d0b8, #f0ead8 38%, #b7aa8a 72%, #ece4cf); border: 1rem solid rgb(238 231 211 / 42%); box-shadow: 0 0 40px rgb(0 0 0 / 35%); }
.prologue::before { left: 5%; }
.prologue::after { right: 5%; }
.ivy { position: absolute; z-index: 0; width: 19rem; height: 19rem; opacity: .8; background: radial-gradient(ellipse at 25% 22%, #214d2c 0 11%, transparent 12%), radial-gradient(ellipse at 56% 35%, #2c6538 0 10%, transparent 11%), radial-gradient(ellipse at 72% 65%, #153b24 0 11%, transparent 12%), radial-gradient(ellipse at 35% 78%, #397647 0 10%, transparent 11%); filter: drop-shadow(0 8px 10px rgb(0 0 0 / 28%)); }
.ivy-left { left: 0; top: 4%; transform: rotate(-18deg); }
.ivy-right { right: 0; bottom: 0; transform: rotate(158deg); }
.scroll { position: relative; z-index: 2; width: min(760px, 94vw); padding: clamp(2rem, 6vw, 4.6rem) clamp(1.5rem, 6vw, 4.8rem); color: #173a4f; text-align: center; background: linear-gradient(90deg, #c9af78, #f1dfb3 6%, #f7e9c6 50%, #ead3a2 94%, #b89b63); border-radius: 1rem 1rem .45rem .45rem; box-shadow: 0 28px 70px rgb(0 0 0 / 45%), inset 0 0 28px rgb(112 73 23 / 18%); }
.scroll::before, .scroll::after { content: ""; position: absolute; left: -1.4rem; right: -1.4rem; height: 2rem; border-radius: 999px; background: linear-gradient(#8f6a32, #d5b67c 35%, #7d592b 70%, #bc9558); box-shadow: 0 8px 16px rgb(0 0 0 / 28%); }
.scroll::before { top: -.7rem; }
.scroll::after { bottom: -.7rem; }
.scroll h1 { margin: .3rem 0 1rem; font-size: clamp(2.1rem, 5vw, 4rem); }
.scroll p { max-width: 60ch; margin: .65rem auto; font-family: Georgia, serif; font-size: clamp(1rem, 2.2vw, 1.25rem); }
.scroll .button-row { justify-content: center; }

/* Landing */
.landing-grid { display: grid; grid-template-columns: minmax(0, .76fr) minmax(26rem, 1.24fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.landing-copy { padding: clamp(.5rem, 2vw, 1.4rem); }
.landing-copy .mission-list { display: grid; gap: .68rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.mission-list li { display: flex; gap: .65rem; align-items: flex-start; }
.mission-list span { display: grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border-radius: 50%; color: white; background: var(--teal); font-weight: 900; }
.landing-visual { overflow: hidden; }
.landing-visual { background: var(--midnight); }
.landing-visual img { width: 100%; height: auto; object-fit: contain; object-position: center; }
.prototype-note { margin-top: .8rem; color: var(--muted); font-size: .86rem; }

/* Framework */
.framework-shell { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1.3rem; align-items: start; }
.framework-stage { padding: clamp(1.1rem, 3vw, 2rem); }
.framework-progress { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.framework-progress span { flex: 1; height: .42rem; border-radius: 99px; background: #d5e0e5; }
.framework-progress span.done { background: var(--teal); }
.dimension-hero { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.dimension-icon { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 1rem; color: white; background: linear-gradient(135deg, var(--founders), var(--teal)); font-size: 2rem; }
.example-card { margin-top: 1rem; padding: 1rem; border-left: .4rem solid var(--gold); border-radius: 0 .8rem .8rem 0; background: #fff4d6; }
.framework-nav { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1.25rem; }
.framework-sidebar { padding: 1rem; position: sticky; top: 6rem; }
.framework-sidebar ol { margin: .7rem 0 0; padding-left: 1.35rem; }
.framework-sidebar li { margin: .55rem 0; color: var(--muted); }
.framework-sidebar li.active { color: var(--founders); font-weight: 800; }
.practice-options { display: grid; gap: .65rem; margin-top: 1rem; }
.traffic-choice { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .75rem; align-items: start; width: 100%; padding: 1rem; text-align: left; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.traffic-dot { width: 1.1rem; height: 1.1rem; margin-top: .15rem; border-radius: 50%; }
.green { background: var(--green); } .yellow { background: #d99516; } .red { background: var(--red); }

/* Characters */
.character-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; margin-top: 1.3rem; }
.character-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border-top: .4rem solid var(--character-color); }
.character-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.character-card-body { display: flex; flex: 1; flex-direction: column; padding: .9rem; }
.character-card h2 { margin: 0 0 .2rem; font-size: 1.32rem; }
.character-role { margin: 0 0 .7rem; color: var(--muted); font-size: .88rem; }
.status-pill { align-self: flex-start; margin-bottom: .65rem; padding: .3rem .55rem; border-radius: 999px; color: var(--midnight); background: #e8f3f5; font-size: .72rem; font-weight: 800; text-transform: none; letter-spacing: .02em; }
.character-card .button { margin-top: auto; width: 100%; }

/* Bio */
.bio-grid { display: grid; grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr); gap: 1.4rem; align-items: start; }
.bio-portrait { overflow: hidden; position: sticky; top: 6rem; }
.bio-portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.bio-portrait figcaption { padding: .8rem 1rem; color: white; background: var(--character-color); font-weight: 800; }
.bio-content { padding: clamp(1rem, 3vw, 1.8rem); }
.bio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.bio-fact { padding: .85rem; border-radius: .8rem; background: #edf6f7; }
.bio-fact strong { display: block; color: var(--midnight); }
.bio-section { padding-top: 1rem; border-top: 1px solid var(--line); }
.connection-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.connection-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: .84rem; }
.connection-chip img { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; }

/* Map */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1rem; align-items: start; }
.map-card { position: relative; overflow: hidden; min-height: 42rem; background: var(--midnight); }
.map-card > img { width: 100%; height: 100%; min-height: 42rem; object-fit: cover; object-position: center; opacity: .86; }
.map-overlay { position: absolute; inset: 0; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-line { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .2; }
.route-line.active { stroke-width: 3.3; opacity: .98; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 65%)); }
.hub-button { position: absolute; transform: translate(-50%, -50%); width: 2.7rem; height: 2.7rem; border: .2rem solid white; border-radius: 50%; color: white; background: var(--midnight); box-shadow: 0 7px 15px rgb(0 0 0 / 42%); font-weight: 900; }
.hub-button.current { width: 3.25rem; height: 3.25rem; background: var(--teal); animation: pulse 1.8s infinite; }
.hub-button.complete { background: var(--green); }
.hub-button.future { opacity: .72; }
.map-panel { position: sticky; top: 6rem; padding: 1rem; }
.selected-character { display: grid; grid-template-columns: 3.2rem minmax(0,1fr); gap: .7rem; align-items: center; }
.selected-character img { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: contain; background: var(--cream); padding: .1rem; border: .2rem solid var(--character-color); }
.progress-bar { height: .7rem; overflow: hidden; margin: .8rem 0; border-radius: 999px; background: #dbe6ea; }
.progress-bar span { display: block; height: 100%; background: var(--character-color); }
.progress-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.progress-list li { display: grid; grid-template-columns: 1.5rem minmax(0,1fr); gap: .5rem; align-items: center; padding: .42rem 0; font-size: .84rem; }
.progress-symbol { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #e5edf0; font-size: .7rem; }
.progress-list li.done .progress-symbol { color: white; background: var(--green); }
.progress-list li.now { color: var(--founders); font-weight: 800; }
.trail-key { display: grid; gap: .35rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.trail-key span { display: flex; align-items: center; gap: .55rem; font-size: .78rem; }
.trail-swatch { width: 2.2rem; border-top: .25rem solid var(--swatch); }
@keyframes pulse { 50% { box-shadow: 0 0 0 .65rem rgb(48 166 176 / 18%), 0 7px 15px rgb(0 0 0 / 42%); } }

/* Arrival */
.arrival-hero { position: relative; min-height: 34rem; overflow: hidden; display: flex; align-items: flex-end; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--midnight); }
.arrival-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arrival-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgb(15 39 63 / 35%) 50%, rgb(15 39 63 / 96%) 100%); }
.arrival-copy { position: relative; z-index: 2; max-width: 760px; padding: clamp(1.2rem, 4vw, 2.4rem); color: white; }
.arrival-copy h1 { margin: 0; color: white; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.arrival-copy p { font-size: 1.05rem; }
.arrival-copy .eyebrow { color: #a9e4e8; }
.arrival-copy .button-secondary { color: white; background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 45%); }
.placeholder-tag { display: inline-block; margin-top: .6rem; padding: .3rem .55rem; border: 1px dashed rgb(255 255 255 / 55%); border-radius: .45rem; color: #f4ddab; font-size: .78rem; }

/* Challenge */
.challenge-shell { display: grid; grid-template-columns: minmax(0,1fr) 18rem; gap: 1rem; align-items: start; }
.challenge-main { overflow: hidden; }
.challenge-header { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: 1rem; color: white; background: linear-gradient(135deg, var(--midnight), #174e63); }
.challenge-header img { width: 5.2rem; height: 5.2rem; border-radius: 50%; object-fit: contain; background: var(--cream); padding: .12rem; border: .22rem solid var(--teal); }
.challenge-header h1 { margin: .2rem 0; color: white; }
.challenge-header p { margin: 0; color: #d9eff2; }
.scenario { padding: clamp(1rem, 3vw, 1.6rem); }
.scenario-box { padding: 1rem; border-left: .4rem solid var(--teal); border-radius: 0 .8rem .8rem 0; background: #edf7f8; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; margin-top: 1rem; }
.route-option { min-height: 8.5rem; padding: .85rem; text-align: left; border: 1px solid var(--line); border-top: .42rem solid var(--route-color); border-radius: .85rem; background: white; }
.route-option strong { display: block; margin-bottom: .35rem; color: var(--midnight); }
.lens-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
.lens-card { padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.lens-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.safeguard-list { display: grid; gap: .55rem; margin-top: 1rem; }
.safeguard { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.safeguard input { margin-top: .25rem; transform: scale(1.2); }
.challenge-sidebar { position: sticky; top: 6rem; padding: 1rem; }
.challenge-sidebar img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.dimension-meter { display: grid; gap: .4rem; margin-top: .8rem; }
.dimension-meter span { padding: .38rem .5rem; border-radius: .45rem; background: #edf3f5; font-size: .77rem; }

/* Completion */
.completion-card { padding: clamp(1.2rem, 4vw, 2.8rem); text-align: center; }
.completion-card img { width: 8rem; height: 8rem; margin: 0 auto 1rem; border-radius: 50%; object-fit: cover; border: .35rem solid var(--teal); }
.artifact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 1.2rem 0; text-align: left; }
.artifact { padding: .9rem; border-radius: .8rem; background: #edf7f8; }

/* Resources */
.resources-screen { min-height: calc(100vh - 4rem); padding: clamp(1rem, 3vw, 2.4rem); background: linear-gradient(rgb(15 39 63 / 42%), rgb(15 39 63 / 68%)), url('assets/visuals/resources-map-backdrop.webp') center / cover fixed; }
.resources-panel { width: min(1060px, 100%); margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.7rem); border: 1px solid rgb(255 255 255 / 48%); border-radius: var(--radius); background: rgb(247 246 242 / 94%); box-shadow: 0 28px 70px rgb(0 0 0 / 35%); backdrop-filter: blur(8px); }
.resources-principles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin: 1rem 0; }
.resource-card { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.resource-card h2, .resource-card h3 { margin-top: 0; }
.reference-list { display: grid; gap: .7rem; padding-left: 1.4rem; }
.reference-list li { line-height: 1.55; }

/* Moe */
.moe-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgb(8 23 35 / 72%); backdrop-filter: blur(6px); }
.moe-overlay[hidden] { display: none; }
.moe-dialog { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: 1rem; width: min(680px, 96vw); padding: 1rem; border: .2rem solid var(--horizon); border-radius: 1.2rem; background: var(--paper); box-shadow: 0 30px 80px rgb(0 0 0 / 45%); }
.moe-dialog > img { width: 8rem; height: 8rem; border-radius: 50%; object-fit: contain; background: var(--cream); padding: .12rem; border: .25rem solid var(--founders); }
.moe-dialog h2 { margin: .15rem 0 .4rem; }
.moe-dialog p { margin: .35rem 0; }
.sr-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 980px) {
  .character-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .landing-grid, .framework-shell, .map-layout, .challenge-shell { grid-template-columns: 1fr; }
  .framework-sidebar, .map-panel, .challenge-sidebar, .bio-portrait { position: static; }
  .map-card, .map-card > img { min-height: 34rem; }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
  .site-nav button { white-space: nowrap; }
  .landing-grid, .bio-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .route-grid, .lens-grid, .artifact-grid, .resources-principles { grid-template-columns: 1fr; }
  .bio-facts { grid-template-columns: 1fr; }
  .moe-dialog { grid-template-columns: 1fr; text-align: center; }
  .moe-dialog > img { margin: 0 auto; }
  .moe-dialog .button-row { justify-content: center; }
}
@media (max-width: 460px) {
  .character-grid { grid-template-columns: 1fr; }
  .framework-nav { flex-direction: column-reverse; }
  .button-row .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* Approved Prototype A corrections */
.brand-seal { width: 2.9rem; height: 2.9rem; object-fit: contain; }
.campus-challenge-title { max-width: 24ch; margin: .1rem 0 1rem; color: var(--founders); font-size: clamp(1.55rem, 3.2vw, 2.55rem); }
.mission-lead { margin: 1.3rem 0 .55rem; font-family: Georgia, "Palatino Linotype", serif; font-size: 1.05rem; color: var(--midnight); }
.prototype-note { display:none; }

/* Framework corrections */
.moe-framework-thumb { width: 6rem; height: 6rem; margin: 0 auto .7rem; object-fit: contain; object-position: center; }
.four-lens-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
.four-lens-overview article { padding:.9rem; border:1px solid var(--line); border-radius:.8rem; background:#f7fbfc; }
.four-lens-overview h3 { margin:.35rem 0; font-size:1.02rem; }
.four-lens-overview p { margin:0; font-size:.9rem; }
.lens-icon { display:grid; place-items:center; width:2.4rem; height:2.4rem; border-radius:.7rem; color:white; background:var(--founders); font-weight:800; }
.framework-character { display:flex; align-items:center; gap:.8rem; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--line); }
.framework-character img { flex:0 0 4.5rem; width:4.5rem; height:4.5rem; object-fit:contain; object-position:center; border-radius:.8rem; background:#efe9df; padding:.15rem; }
.framework-character p { margin:.2rem 0 0; color:var(--muted); font-size:.9rem; }
.inline-preview { margin-top:.55rem; padding:0; border:0; color:var(--founders); background:transparent; font-weight:800; text-decoration:underline; text-underline-offset:.16rem; }
.practice-options { display:grid; gap:.55rem; margin-top:1rem; }
.correct-choice { outline:.2rem solid var(--green); }

/* Approved portrait-card hybrid: POR-01 seal/name box + POR-02 layout/background */
.portrait-card { position:relative; overflow:hidden; padding:.72rem; border-top:.34rem solid var(--character-color); background:linear-gradient(180deg,#efe7d7 0%,#fffdf8 38%,#f3eadb 100%); }
.portrait-seal { display:flex; align-items:center; justify-content:space-between; min-height:2.4rem; margin-bottom:.5rem; }
.portrait-seal img { width:2.35rem; height:2.35rem; object-fit:contain; }
.portrait-seal span { display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; color:white; background:var(--character-color); font-weight:900; }
.portrait-frame { display:grid; place-items:center; height:17rem; overflow:hidden; border:1px solid #c9baa1; border-radius:.8rem .8rem 0 0; background:#e7ded0; }
.portrait-frame img { width:100%; height:100%; object-fit:contain; object-position:center; padding:.15rem; }
.portrait-namebox { margin-top:0; padding:.85rem; border-radius:0 0 .8rem .8rem; color:var(--midnight); background:#fffaf0; border:1px solid #c9baa1; border-top:0; }
.portrait-namebox h2 { margin:.35rem 0 .1rem; }
.portrait-namebox blockquote { min-height:4.6rem; margin:.65rem 0; color:#344b5a; font-family:Georgia,"Palatino Linotype",serif; font-size:.93rem; line-height:1.45; }
.portrait-namebox .button { width:100%; }

/* Bio portrait correction */
.bio-seal-row { display:flex; align-items:center; justify-content:center; gap:.55rem; padding:.7rem; color:#f5e4ba; background:var(--midnight); }
.bio-seal-row img { width:2.5rem; height:2.5rem; object-fit:contain; }
.bio-main-portrait { width:100%; max-height:32rem; object-fit:contain; object-position:center; padding:.35rem; background:#e9e0d2; }
.bio-namebox { display:grid; padding:.8rem 1rem; color:white; background:var(--character-color); }
.bio-namebox strong { font-family:Georgia,"Palatino Linotype",serif; font-size:1.2rem; }
.bio-quote { margin:.6rem 0 1rem; padding:.8rem 1rem; border-left:.35rem solid var(--gold); background:#fff6dd; font-family:Georgia,"Palatino Linotype",serif; }
.connection-chip img { object-fit:contain !important; object-position:center; background:#f1e9dd; }

/* Challenge evidence and complete interaction support */
.challenge-interior { height:14rem; overflow:hidden; background:var(--midnight); }
.challenge-interior img { width:100%; height:100%; object-fit:cover; object-position:center; opacity:.92; }
.cross-connection { margin-top:.8rem; padding-top:.8rem; border-top:1px solid #bed8dc; }
.route-rationale { margin:1rem 0; padding:.9rem; border-left:.4rem solid var(--teal); border-radius:0 .7rem .7rem 0; background:#eaf6f7; }
.work-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(15rem,.75fr); gap:1rem; align-items:start; }
.interaction-box,.evidence-card,.reflection-box,.lens-connection { margin-top:1rem; padding:1rem; border:1px solid var(--line); border-radius:.8rem; background:#fffdf8; }
.choice-list { display:grid; gap:.5rem; }
.choice-list label { display:flex; gap:.55rem; align-items:flex-start; padding:.65rem; border:1px solid var(--line); border-radius:.6rem; background:white; }
.choice-list input { margin-top:.28rem; }
.matching-list,.sequence-list { display:grid; gap:.65rem; }
.matching-list label,.sequence-list label { display:grid; grid-template-columns:minmax(0,1fr) minmax(10rem,.7fr); gap:.7rem; align-items:center; padding:.65rem; border:1px solid var(--line); border-radius:.6rem; background:white; }
.matching-list select,.sequence-list select { width:100%; padding:.55rem; border:1px solid #9eb4bf; border-radius:.45rem; background:white; }
.short-answer,.reflection-box textarea,.journal-entry textarea { width:100%; min-height:8rem; padding:.8rem; border:1px solid #9eb4bf; border-radius:.65rem; font:inherit; line-height:1.55; resize:vertical; }
.feedback { margin-top:.8rem; padding:.7rem; border-radius:.6rem; }
.feedback.good { color:#0c5c3d; background:#e7f6ee; border:1px solid #9fd2b8; }
.artifact-thumb-button { display:block; width:100%; padding:0; border:0; border-radius:.65rem; overflow:hidden; background:#eee; }
.artifact-thumb-button img { width:100%; height:auto; object-fit:contain; }
.artifact-note { color:var(--muted); font-size:.82rem; }
.lens-card { text-align:left; cursor:pointer; }
.lens-card.opened { border-color:var(--teal); background:#edf8f8; }
.lens-chips { display:flex; flex-wrap:wrap; gap:.45rem; }
.lens-chips span { padding:.45rem .6rem; border-radius:999px; background:#eaf2f5; font-size:.82rem; }
.challenge-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.2rem; padding-top:1rem; border-top:1px solid var(--line); }
.challenge-sidebar img { object-fit:contain !important; object-position:center; background:#efe7d7; padding:.1rem; }

/* Artifact modal + readable Evidence Locker */
.artifact-overlay { position:fixed; inset:0; z-index:110; display:grid; place-items:center; padding:1rem; background:rgb(8 23 35 / 72%); backdrop-filter:blur(6px); }
.artifact-overlay[hidden] { display:none; }
.artifact-dialog { position:relative; width:min(900px,96vw); max-height:90vh; overflow:auto; padding:clamp(1rem,3vw,1.5rem); border:.18rem solid var(--gold); border-radius:1rem; background:var(--paper); box-shadow:0 30px 80px rgb(0 0 0 / 45%); }
.artifact-close { position:absolute; right:.65rem; top:.55rem; z-index:2; width:2.5rem; height:2.5rem; border:0; border-radius:50%; color:white; background:var(--midnight); font-size:1.6rem; }
.artifact-detail { display:grid; grid-template-columns:minmax(16rem,.8fr) minmax(0,1.2fr); gap:1.4rem; align-items:start; }
.artifact-detail > img { width:100%; max-height:28rem; object-fit:contain; border:1px solid var(--line); border-radius:.8rem; background:#f1e9dc; }
.artifact-detail dl { margin:1rem 0 0; }
.artifact-detail dt { margin-top:.8rem; color:var(--midnight); font-weight:800; }
.artifact-detail dd { margin:.2rem 0 0; line-height:1.55; }
.locker-grid { display:grid; gap:1rem; margin-top:1.2rem; }
.locker-artifact { display:grid; grid-template-columns:13rem minmax(0,1fr); gap:1.25rem; padding:1.25rem; }
.locker-artifact > img { width:100%; height:auto; object-fit:contain; border:1px solid var(--line); border-radius:.7rem; background:#f3eadc; }
.locker-artifact h2 { margin:.2rem 0 .5rem; }
.locker-artifact p { max-width:68ch; margin:.55rem 0; line-height:1.65; }
.locker-empty,.journal-empty { padding:1.2rem; }

/* Journal begins after character choice; no minimum response length */
.journal-list { display:grid; gap:1rem; margin-top:1.2rem; }
.journal-entry { padding:1.2rem; }
.journal-entry h2 { margin-top:0; }
.journal-entry p { max-width:70ch; }
.journal-entry small,.reflection-box small { display:block; margin-top:.45rem; color:var(--muted); }

/* APA 7 presentation and less cramped resource text */
.resources-panel { line-height:1.6; }
.reference-list { display:grid; gap:1rem; padding:0; }
.apa-reference { padding:1rem 1rem 1rem 2.6rem; border:1px solid var(--line); border-radius:.7rem; background:white; }
.apa-citation { margin:0; text-indent:-1.6rem; line-height:1.65; }
.apa-reference > p:not(.apa-citation) { margin:.7rem 0; }
.reference-links { display:flex; flex-wrap:wrap; gap:.65rem; }
.reference-links a { color:var(--founders); font-weight:800; }

@media (max-width: 980px) {
  .work-grid { grid-template-columns:1fr; }
  .four-lens-overview { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
  .portrait-frame { height:20rem; }
  .artifact-detail,.locker-artifact { grid-template-columns:1fr; }
  .artifact-detail > img,.locker-artifact > img { max-width:30rem; margin:0 auto; }
  .matching-list label,.sequence-list label { grid-template-columns:1fr; }
  .four-lens-overview { grid-template-columns:1fr; }
  .framework-character { align-items:flex-start; }
  .campus-challenge-title { max-width:none; }
}

/* Final crop and landing-icon corrections */
.landing-visual { position:relative; }
.nia-landing-icon { position:absolute; left:1.35%; top:34%; z-index:2; display:grid; place-items:center; width:1.55rem; height:1.55rem; border-radius:50%; color:white; background:#055E98; border:2px solid white; box-shadow:0 2px 6px rgb(0 0 0 / 35%); font-size:.78rem; line-height:1; }
.bio-portrait .bio-main-portrait { object-fit:contain; object-position:center; aspect-ratio:auto; }
.completion-card > img { object-fit:contain; object-position:center; background:#efe7d7; padding:.18rem; }
@media (max-width:720px){.nia-landing-icon{width:1.25rem;height:1.25rem;font-size:.67rem;}}

/* Final requested stability, literacy-lens, journal, and mobile-width corrections */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
#app-main, .screen, .screen.narrow, .card, .challenge-shell, .challenge-main, .scenario,
.work-grid, .interaction-box, .evidence-card, .reflection-box, .literacy-review,
.lens-grid, .lens-card, .artifact-dialog, .artifact-detail, .locker-grid, .locker-artifact,
.journal-list, .journal-entry, .map-layout, .map-card, .map-panel, .framework-shell,
.framework-stage, .framework-sidebar, .bio-grid, .bio-content, .resources-panel {
  min-width: 0;
  max-width: 100%;
}
.screen { width: min(1180px, 100%); padding-left: clamp(.85rem, 3vw, 1.5rem); padding-right: clamp(.85rem, 3vw, 1.5rem); }
.screen.narrow { width: min(900px, 100%); }
.scenario-box, .interaction-box, .evidence-card, .reflection-box, .lens-card,
.artifact-detail dd, .locker-artifact p, .journal-entry p, .route-rationale,
.challenge-header h1, .challenge-header p, .arrival-copy, .resource-card, .apa-reference {
  overflow-wrap: anywhere;
  word-break: normal;
}
.literacy-review { margin-top: 1.1rem; padding-top: .25rem; }
.literacy-review > h2 { margin-bottom: .25rem; }
.lens-instruction { margin: 0 0 .7rem; color: var(--muted); }
.journal-check { margin-top: .8rem; padding: .8rem .9rem; border-radius: .65rem; line-height: 1.5; }
.journal-check.pending { color: #4d6070; background: #edf3f5; border: 1px solid #c6d5dc; }
.journal-check.needs-work { color: #714700; background: #fff4d8; border: 1px solid #ddbd70; }
.journal-check.passed { color: #0c5c3d; background: #e7f6ee; border: 1px solid #9fd2b8; }
.reflection-box textarea, .journal-entry textarea, .short-answer,
.matching-list select, .sequence-list select { max-width: 100%; }
.evidence-card { padding: 1.15rem; }
.evidence-card h2 { margin: .8rem 0 .35rem; }
.evidence-card p { margin: .5rem 0; line-height: 1.62; }
.locker-grid { gap: 1.2rem; }
.locker-artifact { gap: 1.45rem; padding: 1.4rem; }
.locker-artifact > div { min-width: 0; padding: .05rem .1rem .15rem; }
.locker-artifact h2 { margin: .15rem 0 .65rem; line-height: 1.18; }
.locker-artifact p { margin: .65rem 0; line-height: 1.72; }
.artifact-detail { gap: 1.55rem; }
.artifact-detail dl { margin: .85rem 0 0; }
.artifact-detail dt { margin-top: 1rem; }
.artifact-detail dd { margin: .3rem 0 0; line-height: 1.68; }
.artifact-dialog { width: min(900px, calc(100% - 1rem)); }
.moe-dialog { width: min(680px, calc(100% - 1rem)); }
.button, button, select, textarea, input { max-width: 100%; }

@media (max-width: 720px) {
  .site-header { width: 100%; padding-left: .75rem; padding-right: .75rem; }
  .brand-button { width: 100%; min-width: 0; }
  .brand-button span:last-child { min-width: 0; }
  .brand-button small { white-space: normal; overflow-wrap: anywhere; }
  .site-nav { width: 100%; max-width: 100%; overflow-x: visible; flex-wrap: wrap; gap: .2rem .3rem; }
  .site-nav button { flex: 0 1 auto; white-space: normal; text-align: left; }
  .screen, .screen.narrow { width: 100%; padding-left: .75rem; padding-right: .75rem; }
  .challenge-shell, .work-grid, .lens-grid, .route-grid, .artifact-grid,
  .resources-principles, .artifact-detail, .locker-artifact, .four-lens-overview,
  .matching-list label, .sequence-list label { grid-template-columns: minmax(0, 1fr); }
  .challenge-main { width: 100%; overflow: hidden; }
  .challenge-header { width: 100%; grid-template-columns: 4.4rem minmax(0, 1fr); padding: .85rem; }
  .challenge-header img { width: 4.4rem; height: 4.4rem; }
  .challenge-interior { width: 100%; height: clamp(10.5rem, 52vw, 14rem); }
  .scenario { width: 100%; padding: .85rem; }
  .scenario-box, .interaction-box, .evidence-card, .reflection-box, .lens-card, .route-rationale { width: 100%; padding: .85rem; }
  .route-option { width: 100%; min-height: auto; }
  .matching-list label, .sequence-list label { width: 100%; }
  .matching-list select, .sequence-list select, .short-answer,
  .reflection-box textarea, .journal-entry textarea { width: 100%; min-width: 0; }
  .artifact-dialog { width: calc(100% - .5rem); max-height: 94vh; padding: 1rem .8rem; }
  .artifact-detail > img, .locker-artifact > img { width: min(100%, 28rem); max-width: 100%; }
  .locker-artifact { padding: 1rem; gap: 1rem; }
  .locker-artifact p, .artifact-detail dd { line-height: 1.66; }
  .map-card, .map-card > img { width: 100%; min-height: 30rem; }
  .map-card { max-width: 100%; }
  .map-overlay { max-width: 100%; overflow: hidden; }
  .arrival-hero { width: 100%; min-height: 28rem; }
  .arrival-copy { width: 100%; max-width: 100%; padding: 1rem; }
  .moe-dialog { width: calc(100% - .5rem); }
}

@media (max-width: 460px) {
  .screen, .screen.narrow { padding-left: .6rem; padding-right: .6rem; }
  .challenge-header { grid-template-columns: 1fr; text-align: center; }
  .challenge-header img { margin: 0 auto; }
  .challenge-header .eyebrow, .challenge-header h1, .challenge-header p { text-align: center; }
  .scenario { padding: .7rem; }
  .scenario-box, .interaction-box, .evidence-card, .reflection-box, .lens-card, .route-rationale { padding: .75rem; }
  .button-row, .challenge-actions { width: 100%; }
  .button-row .button, .challenge-actions .button { width: 100%; }
  .map-card, .map-card > img { min-height: 26rem; }
  .hub-button { width: 2.35rem; height: 2.35rem; }
  .hub-button.current { width: 2.75rem; height: 2.75rem; }
  .arrival-hero { min-height: 24rem; }
}

/* 2026-08-06 audited location, navigation, typography, icon and mobile corrections */
:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", "Gill Sans", sans-serif;
  --font-accent: Georgia, "Times New Roman", serif;
  font-family: var(--font-body);
}
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3, .brand-button strong, .campus-challenge-title, .portrait-namebox blockquote,
.bio-namebox strong, .bio-quote, .mission-lead, .lede { font-family: var(--font-display); }

/* Top ribbon: institutional heritage on its own line above the quest title. */
.brand-copy { display:grid; min-width:0; line-height:1.12; }
.brand-copy strong { margin-bottom:.18rem; font-size:1.03rem; letter-spacing:.01em; }
.brand-copy small { display:block; white-space:normal; }
.brand-heritage { color:#f0d39a !important; font-size:.72rem; font-weight:700; letter-spacing:.02em; }
.brand-quest { margin-top:.1rem; color:#bde7ec !important; font-size:.79rem; font-weight:800; }

/* Framework preview and larger, clearer lens icons. */
.dimension-icon { width:5.25rem; height:5.25rem; font-size:2.65rem; border-radius:1.15rem; }
.preview-dimension-icon { background:linear-gradient(135deg,#4a2d66,var(--founders)); }
.four-lens-overview { gap:1rem; }
.four-lens-overview article { padding:1.15rem; min-height:12rem; }
.lens-icon { width:4.25rem; height:4.25rem; border-radius:1rem; font-size:2.25rem; box-shadow:inset 0 0 0 2px rgb(255 255 255 / 20%); }
.four-lens-overview h3 { margin:.65rem 0 .35rem; font-size:1.15rem; line-height:1.2; }
.four-lens-overview p { font-size:.96rem; line-height:1.55; }
.moe-framework-thumb { width:7rem; height:7rem; }

/* Every challenge exposes all materials with comfortable spacing. */
.scenario { padding:clamp(1.15rem,3vw,1.9rem); }
.scenario-box { padding:1.2rem 1.3rem; }
.scenario-box p { margin:.2rem 0; line-height:1.72; }
.route-section { margin-top:1.45rem; }
.route-section > h2 { margin:0 0 .85rem; }
.route-prompt { margin:.8rem 0 0; padding:.75rem .9rem; border-radius:.65rem; color:#455d6d; background:#f3f7f8; }
.route-grid { gap:.9rem; }
.traffic-choice { min-width:0; padding:1rem 1.05rem; line-height:1.5; }
.traffic-choice.selected-route { border-color:var(--teal); box-shadow:0 0 0 .2rem rgb(48 166 176 / 18%); background:#eef9f9; }
.work-grid { grid-template-columns:minmax(0,1.08fr) minmax(18rem,.92fr); gap:1.25rem; margin-top:.55rem; }
.interaction-box,.evidence-card,.reflection-box { padding:1.25rem; }
.interaction-box h2,.evidence-card h2,.reflection-box h2 { margin:.25rem 0 .75rem; }
.choice-list { gap:.7rem; }
.choice-list label { padding:.85rem .9rem; line-height:1.52; }
.matching-list,.sequence-list { gap:.8rem; }
.matching-list label,.sequence-list label { padding:.85rem; }

/* Artifact thumbnails are always visible and large enough to recognize. */
.evidence-card { display:flex; flex-direction:column; gap:.65rem; }
.artifact-thumb-button { display:grid; place-items:center; min-height:11rem; max-height:16rem; padding:.35rem; border:1px solid #c7b793; background:#f4eddf; }
.artifact-thumb-button img { width:100%; height:100%; max-height:15rem; object-fit:contain; object-position:center; }
.evidence-copy { min-width:0; }
.evidence-copy h2 { margin:.2rem 0 .45rem; }
.evidence-copy p { margin:.45rem 0; line-height:1.68; }
.artifact-type { color:#4f6070; }
.artifact-note { margin:.05rem 0 0; font-size:.88rem; line-height:1.45; }
.artifact-detail { grid-template-columns:minmax(18rem,.9fr) minmax(0,1.1fr); gap:1.8rem; }
.artifact-detail > img { max-height:32rem; }
.artifact-detail dt { margin-top:1.1rem; font-size:1rem; }
.artifact-detail dd { margin:.32rem 0 0; line-height:1.75; }

/* Larger literacy-lens controls at every playable location. */
.literacy-review { margin-top:1.5rem; padding-top:.4rem; }
.literacy-review > h2 { font-size:clamp(1.55rem,2.6vw,2.05rem); }
.lens-grid { gap:1rem; }
.lens-card { display:grid; grid-template-columns:4.4rem minmax(0,1fr); gap:.9rem; align-items:start; min-height:8.7rem; padding:1rem; }
.lens-card-icon { display:grid; place-items:center; width:4.4rem; height:4.4rem; border-radius:1rem; color:white; background:linear-gradient(135deg,var(--founders),var(--teal)); font-size:2.25rem; font-weight:900; }
.lens-card-copy { display:grid; gap:.38rem; min-width:0; }
.lens-card-copy strong { color:var(--midnight); font-family:var(--font-display); font-size:1.12rem; line-height:1.2; }
.lens-card-copy > span { color:#3f5665; line-height:1.58; }

/* Important location/navigation icons are more legible and tappable. */
.hub-button { width:3rem; height:3rem; font-size:1rem; }
.hub-button.current { width:3.65rem; height:3.65rem; font-size:1.1rem; }
.progress-symbol { width:1.7rem; height:1.7rem; font-size:.82rem; }
.portrait-seal span { width:2.35rem; height:2.35rem; font-size:1.03rem; }
.nia-landing-icon { width:1.85rem; height:1.85rem; font-size:.9rem; }

/* Evidence Locker and journal readability. */
.locker-grid,.journal-list { gap:1.35rem; }
.locker-artifact { grid-template-columns:minmax(12rem,15rem) minmax(0,1fr); gap:1.6rem; padding:1.5rem; }
.locker-artifact > div { padding:.2rem .15rem; }
.locker-artifact h2 { margin:.2rem 0 .75rem; }
.locker-artifact p { margin:.7rem 0; line-height:1.78; }
.journal-entry { padding:1.4rem; }
.journal-entry p,.reflection-box p { line-height:1.7; }

/* Global width safety. */
html,body,#app-main { width:100%; max-width:100%; overflow-x:clip; }
img,svg,video,canvas { max-width:100%; }
button,input,select,textarea { min-width:0; }
.button, .site-nav button { white-space:normal; overflow-wrap:anywhere; }
.screen,.screen.narrow { box-sizing:border-box; width:100%; margin-inline:auto; }
.screen { max-width:1180px; }
.screen.narrow { max-width:900px; }

@media (max-width: 900px) {
  .work-grid,.route-grid,.lens-grid { grid-template-columns:minmax(0,1fr); }
  .artifact-detail { grid-template-columns:minmax(0,1fr); }
  .artifact-detail > img { width:min(100%,34rem); margin-inline:auto; }
}

@media (max-width: 720px) {
  body { font-size:16px; }
  .site-header { position:sticky; display:grid; grid-template-columns:minmax(0,1fr); gap:.65rem; padding:.65rem .7rem; }
  .brand-button { width:100%; min-width:0; align-items:center; }
  .brand-seal { flex:0 0 3.15rem; width:3.15rem; height:3.15rem; }
  .brand-copy { width:100%; }
  .brand-copy strong { font-size:1rem; }
  .brand-heritage { font-size:.73rem; }
  .brand-quest { font-size:.86rem; }
  .site-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:.35rem; }
  .site-nav button { width:100%; min-height:2.75rem; padding:.55rem .5rem; text-align:center; border:1px solid rgb(255 255 255 / 13%); }
  #app-main { min-width:0; }
  .screen,.screen.narrow { width:100%; max-width:100%; padding:1rem .65rem 2.2rem; }
  .card,.challenge-main,.challenge-sidebar,.framework-stage,.framework-sidebar,.map-card,.map-panel { width:100%; max-width:100%; min-width:0; }
  .dimension-hero { grid-template-columns:4.6rem minmax(0,1fr); gap:.8rem; }
  .dimension-icon { width:4.6rem; height:4.6rem; font-size:2.3rem; }
  .four-lens-overview { grid-template-columns:minmax(0,1fr); }
  .four-lens-overview article { min-height:0; }
  .lens-icon { width:4rem; height:4rem; font-size:2.1rem; }
  .framework-character { display:grid; grid-template-columns:4.8rem minmax(0,1fr); }
  .framework-character img { width:4.8rem; height:4.8rem; }
  .challenge-header { grid-template-columns:4.75rem minmax(0,1fr); gap:.75rem; padding:.85rem; }
  .challenge-header img { width:4.75rem; height:4.75rem; }
  .challenge-interior { width:100%; height:auto; aspect-ratio:16 / 9; }
  .challenge-interior img { width:100%; height:100%; object-fit:cover; }
  .scenario { padding:.85rem; }
  .scenario-box,.interaction-box,.evidence-card,.reflection-box { padding:.9rem; }
  .route-grid,.work-grid,.lens-grid,.artifact-grid,.resources-principles,.bio-facts { grid-template-columns:minmax(0,1fr); }
  .traffic-choice { min-height:0; }
  .lens-card { grid-template-columns:4rem minmax(0,1fr); min-height:0; padding:.9rem; }
  .lens-card-icon { width:4rem; height:4rem; font-size:2rem; }
  .artifact-thumb-button { min-height:9rem; max-height:14rem; }
  .artifact-thumb-button img { max-height:13rem; }
  .artifact-overlay,.moe-overlay { padding:.3rem; }
  .artifact-dialog,.moe-dialog { width:calc(100vw - .6rem); max-width:calc(100vw - .6rem); }
  .artifact-dialog { max-height:94dvh; padding:1rem .75rem; }
  .moe-dialog { grid-template-columns:5rem minmax(0,1fr); gap:.75rem; padding:.85rem; }
  .moe-dialog > img { width:5rem; height:5rem; }
  .locker-artifact { grid-template-columns:minmax(0,1fr); padding:1rem; gap:1rem; }
  .locker-artifact > img { width:min(100%,24rem); margin-inline:auto; }
  .matching-list label,.sequence-list label { grid-template-columns:minmax(0,1fr); }
  .matching-list select,.sequence-list select,.short-answer,.reflection-box textarea,.journal-entry textarea { width:100%; max-width:100%; }
  .map-layout { grid-template-columns:minmax(0,1fr); }
  .map-card { min-height:0; aspect-ratio:16 / 10; }
  .map-card > img { min-height:0; width:100%; height:100%; object-fit:cover; }
  .hub-button { width:2.85rem; height:2.85rem; }
  .hub-button.current { width:3.35rem; height:3.35rem; }
  .arrival-hero { min-height:0; aspect-ratio:4 / 5; }
  .arrival-copy { width:100%; max-width:100%; padding:1rem; }
  .arrival-copy h1 { font-size:clamp(1.9rem,9vw,3rem); }
  .button-row,.challenge-actions { width:100%; }
  .button-row .button,.challenge-actions .button { flex:1 1 100%; width:100%; }
  .portrait-frame { height:min(26rem,115vw); }
  .connection-chip { max-width:100%; }
  .connection-chip img { flex:0 0 1.8rem; width:1.8rem; height:1.8rem; }
  .nia-landing-icon { width:1.55rem; height:1.55rem; font-size:.75rem; }
}

@media (max-width: 420px) {
  .screen,.screen.narrow { padding-inline:.5rem; }
  .site-header { padding-inline:.5rem; }
  .site-nav { grid-template-columns:minmax(0,1fr); }
  .dimension-hero { grid-template-columns:minmax(0,1fr); text-align:left; }
  .dimension-icon { width:4.4rem; height:4.4rem; }
  .challenge-header { grid-template-columns:minmax(0,1fr); text-align:center; }
  .challenge-header img { margin-inline:auto; }
  .lens-card { grid-template-columns:3.7rem minmax(0,1fr); gap:.75rem; }
  .lens-card-icon { width:3.7rem; height:3.7rem; }
  .moe-dialog { grid-template-columns:minmax(0,1fr); text-align:center; }
  .moe-dialog > img { margin-inline:auto; }
}
@media (max-width: 900px) {
  .bio-grid { grid-template-columns:minmax(0,1fr); }
  .bio-portrait { position:static; }
}
