:root {
  --blue-950: #102e58;
  --blue-800: #24518e;
  --blue-700: #2e63a7;
  --blue-500: #6e9bd2;
  --blue-100: #eaf4ff;
  --orange: #ef7335;
  --orange-dark: #c94f1d;
  --yellow: #ffc74e;
  --ink: #14243b;
  --paper: #fbfdff;
  --line: #bed4ed;
  --shadow: 0 24px 70px rgba(29, 75, 128, .18);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: radial-gradient(circle at 10% 4%, #e5f4ff 0, transparent 28rem), var(--paper); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: white; border-radius: .7rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5rem; padding: .85rem clamp(1rem, 4vw, 4.5rem); border-bottom: 1px solid rgba(46, 99, 167, .14); background: rgba(251,253,255,.9); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; border-radius: 1rem 1rem 1rem .35rem; color: white; background: var(--blue-700); font-weight: 900; letter-spacing: -.08em; }
.brand b, .brand small { display: block; }
.brand b { font-size: 1.02rem; }
.brand small { margin-top: .12rem; color: #61738a; font-size: .75rem; }
.route-status { display: grid; grid-template-columns: auto auto; gap: .05rem .65rem; align-items: center; min-width: 12rem; }
.route-status__label { font-size: .76rem; color: #667991; }
.route-status strong { grid-row: span 2; grid-column: 2; font-size: 1.2rem; color: var(--blue-800); }
.route-status__bar { display: block; width: 8rem; height: .42rem; overflow: hidden; border-radius: 99px; background: #dce8f5; }
.route-status__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .35s ease; }
.quiet-button, .text-button { border: 0; background: transparent; font-weight: 750; cursor: pointer; }
.quiet-button { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: .8rem; color: var(--blue-800); }
.quiet-button:hover { background: var(--blue-100); }

main > section, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .55fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; padding: clamp(3.4rem, 8vw, 7.5rem) 0 3rem; }
.eyebrow { margin: 0 0 .7rem; color: var(--blue-700); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 13ch; margin-bottom: 1.15rem; color: var(--blue-950); font-size: clamp(3.2rem, 7.2vw, 6.6rem); line-height: .9; letter-spacing: -.075em; }
h2 { margin-bottom: 1rem; color: var(--blue-950); font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
h3 { font-size: 1.25rem; line-height: 1.12; }
p { line-height: 1.62; }
.hero-lead { max-width: 52rem; margin-bottom: 1.7rem; font-size: clamp(1.05rem, 2vw, 1.27rem); color: #425874; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.2rem; padding: .78rem 1.2rem; border: 0; border-radius: .9rem; text-decoration: none; font-weight: 850; cursor: pointer; }
.primary-button { color: white; background: var(--blue-700); box-shadow: 0 10px 24px rgba(46,99,167,.22); }
.primary-button:hover { background: var(--blue-800); transform: translateY(-2px); }
.text-button { padding: .8rem; color: var(--blue-700); text-decoration: underline; text-underline-offset: .25rem; }
.welcome-note { position: relative; padding: 1.5rem 1.5rem 1.3rem 5.4rem; border: 1px solid #d6e5f4; border-radius: 1.4rem 1.4rem 1.4rem .35rem; background: white; box-shadow: 0 16px 40px rgba(29,75,128,.1); }
.welcome-note p { margin: 0; font-size: .95rem; }
.fox-peek { position: absolute; left: -1.2rem; bottom: -.28rem; font-size: 5.7rem; transform: rotate(-8deg); filter: drop-shadow(0 8px 8px rgba(50,50,80,.15)); }

.map-section { padding: 3rem 0 6rem; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(16rem, .55fr); gap: 2rem; align-items: end; margin-bottom: 1.7rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: .35rem; color: #60728a; }
.map-frame { position: relative; aspect-ratio: 1.515 / 1; overflow: hidden; border: 1px solid #c8dbef; border-radius: 2rem; background: linear-gradient(145deg, #dceeff, #fbfdff 48%, #dceeff); box-shadow: var(--shadow); isolation: isolate; }
.map-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 80%, rgba(255,199,78,.28), transparent 18%), linear-gradient(180deg, transparent, rgba(37,89,155,.05)); pointer-events: none; }
.map-art { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 2px 0 white); }
.route-line path { fill: none; stroke: rgba(36,81,142,.7); stroke-width: 6; stroke-dasharray: 4 15; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.station { position: absolute; left: var(--x); top: var(--y); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 10rem; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -50%); }
.station__pin { position: relative; display: grid; place-items: center; width: 4.3rem; height: 4.3rem; border: 4px solid white; border-radius: 50% 50% 50% 16%; color: white; background: var(--blue-700); box-shadow: 0 8px 18px rgba(20,46,88,.28); transform: rotate(-45deg); transition: transform .18s ease, background .18s ease; }
.station__pin i { font-size: 1.5rem; font-style: normal; transform: rotate(45deg); }
.station__pin b { position: absolute; left: -.52rem; top: -.55rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; color: var(--blue-950); background: var(--yellow); font-size: .75rem; transform: rotate(45deg); }
.station__label { max-width: 9.5rem; padding: .43rem .62rem; border: 2px solid white; border-radius: .65rem; background: rgba(255,255,255,.94); color: var(--blue-950); box-shadow: 0 5px 14px rgba(20,46,88,.12); font-size: .78rem; font-weight: 900; line-height: 1.12; }
.station:hover .station__pin, .station:focus-visible .station__pin { background: var(--orange); transform: rotate(-45deg) scale(1.12); }
.station.visited .station__pin { background: var(--orange); }
.station.visited .station__pin::after { content: "✓"; position: absolute; right: -.55rem; bottom: -.45rem; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 3px solid white; border-radius: 50%; color: white; background: #299367; font-size: .75rem; transform: rotate(45deg); }
.station--final .station__pin { background: var(--orange-dark); animation: beacon 2.8s infinite; }
@keyframes beacon { 0%,100% { box-shadow: 0 8px 18px rgba(20,46,88,.28), 0 0 0 0 rgba(239,115,53,.34); } 50% { box-shadow: 0 8px 18px rgba(20,46,88,.28), 0 0 0 18px rgba(239,115,53,0); } }
.route-list { margin-top: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.route-list summary { padding: 1rem 1.2rem; color: var(--blue-800); font-weight: 850; cursor: pointer; }
.route-list__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; padding: 0 1rem 1rem; }
.route-list__grid button { padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; text-align: left; background: #f7fbff; cursor: pointer; }
.route-list__grid button:hover { border-color: var(--blue-700); background: var(--blue-100); }

.career-section { display: grid; grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 6vw, 5.5rem); padding: 6rem clamp(1rem, 4vw, 4rem); border-radius: 2.2rem; color: white; background: var(--blue-950); }
.career-section h2, .career-section .eyebrow { color: white; }
.career-statement { margin: 0 0 1rem; color: white; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.22; letter-spacing: -.02em; }
.career-intro p:last-child { margin-bottom: 0; color: #cbdaf0; }
.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 1.4rem; background: rgba(255,255,255,.18); }
.career-grid article { padding: 1.35rem; background: #183c6a; }
.career-grid article span { color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .14em; }
.career-grid h3 { margin: .5rem 0; color: white; }
.career-grid p { margin: 0; color: #cadbf0; font-size: .94rem; }

.novel-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2.2rem; align-items: center; width: min(1320px, calc(100% - 2rem)); padding: 8rem 0; }
.novel-copy { padding-left: clamp(0rem, 5vw, 3rem); }
.novel-copy p:not(.eyebrow) { color: #536b86; }
.primary-button--light { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(201,79,29,.2); }
.primary-button--light:hover { background: #a93b12; }
.novel-browser { overflow: hidden; border: 1px solid #b8cce2; border-radius: 1.4rem; background: #102e58; box-shadow: var(--shadow); }
.novel-browser__bar { display: flex; align-items: center; gap: .38rem; height: 2.6rem; padding: 0 .8rem; color: #d6e4f4; background: #173966; font-size: .75rem; }
.novel-browser__bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #ff8d58; }
.novel-browser__bar i:nth-child(2) { background: #ffd66f; }
.novel-browser__bar i:nth-child(3) { background: #83d3ad; }
.novel-browser__bar span { margin-left: .5rem; }
.novel-browser iframe { display: block; width: 100%; height: min(72vh, 760px); min-height: 520px; border: 0; background: white; }

.finish-section { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; margin-bottom: 5rem; padding: 2rem; border: 1px solid #ffd0b7; border-radius: 1.6rem; background: #fff5ed; }
.finish-section h2 { margin-bottom: .4rem; font-size: clamp(1.8rem, 4vw, 3.1rem); }
.finish-section p:last-child { margin-bottom: 0; color: #5b6471; }
.finish-fox { font-size: 4.3rem; }
.outline-button { border: 2px solid var(--blue-700); color: var(--blue-800); white-space: nowrap; }
.outline-button:hover { color: white; background: var(--blue-700); }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: #6c7d92; font-size: .84rem; }
footer p { margin: 0; }

.station-dialog { width: min(720px, calc(100% - 2rem)); max-height: min(84vh, 760px); padding: 0; overflow: auto; border: 0; border-radius: 1.5rem; color: var(--ink); background: white; box-shadow: 0 30px 100px rgba(16,46,88,.38); }
.station-dialog::backdrop { background: rgba(12,35,65,.65); backdrop-filter: blur(5px); }
.station-dialog > #dialog-content { padding: clamp(1.5rem, 5vw, 3rem); }
.dialog-close { position: sticky; float: right; top: .8rem; z-index: 2; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; margin: .8rem .8rem 0 0; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.55rem; cursor: pointer; box-shadow: 0 4px 12px rgba(20,46,88,.12); }
.dialog-kicker { margin-bottom: .75rem; color: var(--orange-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.station-dialog h2 { margin-right: 2.5rem; font-size: clamp(2rem, 5vw, 3.25rem); }
.tip-box { margin-top: 1.35rem; padding: 1rem 1.1rem; border-left: 5px solid var(--orange); border-radius: .3rem .8rem .8rem .3rem; background: #fff4ec; line-height: 1.5; }
.program-list { display: grid; gap: .65rem; margin-top: 1.2rem; }
.program-list a { display: grid; gap: .28rem; padding: 1rem 2.6rem 1rem 1rem; border: 1px solid var(--line); border-radius: .9rem; text-decoration: none; background: #f8fbff; position: relative; }
.program-list a::after { content: "↗"; position: absolute; right: 1rem; top: 1rem; color: var(--blue-700); font-weight: 900; }
.program-list a:hover { border-color: var(--blue-700); transform: translateY(-1px); }
.program-list span { color: #5f7188; font-size: .9rem; line-height: 1.4; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; list-style: none; }
.skill-tags li { padding: .55rem .75rem; border-radius: 99px; color: var(--blue-950); background: var(--blue-100); font-weight: 750; }
.check-list { padding-left: 1.3rem; }
.check-list li { margin-bottom: .55rem; line-height: 1.45; }
.dialog-media { margin: 1.35rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #f7fbff; }
.dialog-media img { display: block; width: 100%; height: auto; }
.dialog-media figcaption { padding: .75rem 1rem; color: #526983; font-size: .9rem; line-height: 1.45; }
.named-opportunities { margin: 1.35rem 0; padding: 1.15rem 1.2rem; border-radius: 1rem; background: var(--blue-100); }
.named-opportunities h3, .school-program h3 { margin-bottom: .7rem; color: var(--blue-950); }
.named-opportunities ul { margin: 0; padding-left: 1.25rem; }
.named-opportunities li { margin: .45rem 0; line-height: 1.45; }
.school-program { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-top: 1.35rem; padding: 1.2rem; border: 1px solid #ffd0b7; border-radius: 1rem; background: #fff5ed; }
.school-program__icon { font-size: 2.15rem; line-height: 1; }
.school-program p { margin: 0; }
.council-qr { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center; margin: 1.35rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f7fbff; }
.council-qr img { display: block; width: 100%; border-radius: .65rem; background: white; }
.council-qr figcaption { display: grid; gap: .35rem; color: #526983; line-height: 1.45; }
.council-qr figcaption b { color: var(--blue-950); font-size: 1.08rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .quiet-button { display: none; }
  .hero, .career-section, .novel-section { grid-template-columns: 1fr; }
  .hero { padding-top: 3.7rem; }
  .welcome-note { max-width: 32rem; margin-left: 1.4rem; }
  .career-grid { min-height: 0; }
  .novel-copy { padding-left: 0; }
  .route-list__grid { grid-template-columns: 1fr 1fr; }
  .finish-section { grid-template-columns: auto 1fr; }
  .finish-section .outline-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 680px) {
  .site-header { gap: .7rem; padding-inline: .8rem; }
  .brand small { display: none; }
  .brand-mark { width: 2.65rem; height: 2.65rem; border-radius: .8rem .8rem .8rem .25rem; }
  .route-status { min-width: 8.6rem; }
  .route-status__bar { width: 5.5rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .section-heading { grid-template-columns: 1fr; gap: .4rem; }
  .map-frame { display: grid; aspect-ratio: auto; min-height: 0; padding: 1.2rem; gap: .9rem; background: linear-gradient(160deg, #d9edff, #fafdff 60%, #fff1e8); }
  .map-art { opacity: .17; }
  .route-line { display: none; }
  .station { position: relative; left: auto !important; top: auto !important; flex-direction: row; width: 100%; transform: none; }
  .station::after { content: ""; position: absolute; left: 2.1rem; bottom: -.95rem; width: 3px; height: 1rem; background: repeating-linear-gradient(to bottom, var(--blue-500) 0 3px, transparent 3px 6px); }
  .station:last-of-type::after { display: none; }
  .station__pin { flex: 0 0 auto; width: 4rem; height: 4rem; }
  .station__label { max-width: none; flex: 1; padding: .8rem; text-align: left; font-size: .96rem; }
  .route-list { display: none; }
  .career-section { padding: 3rem 1.1rem; border-radius: 1.5rem; }
  .career-grid { grid-template-columns: 1fr; }
  .novel-section { padding: 5rem 0; }
  .novel-browser iframe { min-height: 65vh; }
  .finish-section { grid-template-columns: 1fr; text-align: center; }
  .finish-section .outline-button { grid-column: 1; justify-self: center; }
  .council-qr { grid-template-columns: 7rem 1fr; }
  footer { flex-direction: column; gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
