@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fredoka:wght@500;600;700&display=swap');

:root {
  --red: #d71920;
  --navy: #13233f;
  --blue: #39a9e8;
  --sky: #dff4ff;
  --cream: #fff8e7;
  --yellow: #ffd84d;
  --green: #1e9c68;
  --white: #ffffff;
  --ink: #13233f;
  --muted: #536179;
  --line: #d5e2ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}
.skip-link:focus { left: 10px; }

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.9) 0 3%, transparent 3.2%),
    linear-gradient(180deg, #56bdf0 0%, #91d8f4 56%, #f8d47c 100%);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: var(--red);
  font-family: "Fredoka", sans-serif;
}

.small-link {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 70px auto 0;
  padding: 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.final-stop h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  line-height: .98;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 600px;
  margin: 28px 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.primary-button {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 30px rgba(96, 18, 20, .22);
}
.primary-button:hover { transform: translateY(-2px); }

.hero-skyline {
  position: absolute;
  right: 0;
  bottom: 92px;
  left: 0;
  height: 210px;
  opacity: .48;
}

.building, .clock-tower {
  position: absolute;
  bottom: 0;
  background: #1d577a;
  border-radius: 4px 4px 0 0;
}
.building::before {
  content: "";
  position: absolute;
  inset: 18px 14px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 18px);
}
.building-one { left: 2%; width: 16%; height: 105px; }
.building-two { left: 20%; width: 18%; height: 155px; }
.building-three { left: 42%; width: 21%; height: 122px; }
.building-four { right: 2%; width: 22%; height: 142px; }

.clock-tower {
  left: 66%;
  width: 7%;
  height: 200px;
}
.clock-tower::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255,255,255,.55);
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-characters img {
  position: absolute;
  z-index: 8;
  object-fit: contain;
  filter: drop-shadow(0 16px 10px rgba(16,42,69,.17));
}

.hero-aria {
  right: 5%;
  bottom: 95px;
  width: min(34vw, 430px);
  animation: float 5.5s ease-in-out infinite;
}
.hero-connor {
  right: 32%;
  bottom: 72px;
  width: min(20vw, 230px);
  animation: float 4.6s ease-in-out infinite .5s;
}
.hero-riley {
  right: -2%;
  bottom: 70px;
  width: min(19vw, 220px);
  animation: float 5.1s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.railway {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 96px;
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.5) 40px 48px, transparent 48px 88px),
    linear-gradient(#24364f 0 8px, transparent 8px 44px, #24364f 44px 52px, transparent 52px);
}

.train {
  position: absolute;
  left: -280px;
  top: 12px;
  display: flex;
  gap: 7px;
  animation: travel 15s linear infinite;
}
.train span {
  display: block;
  height: 44px;
  border: 4px solid var(--navy);
  border-radius: 10px 10px 6px 6px;
  background: var(--red);
}
.train-engine { width: 78px; }
.train-carriage { width: 92px; background: #fff !important; }

@keyframes travel {
  to { transform: translateX(calc(100vw + 600px)); }
}

.station-intro {
  padding: 90px 24px;
  background: var(--cream);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.platform-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 28px;
}

.platform {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 17px;
  border: 2px solid transparent;
  border-radius: 18px;
  color: white;
  background: var(--navy);
  text-align: left;
  transition: .2s ease;
}

.platform:hover,
.platform:focus-visible {
  transform: translateY(-3px);
  outline: none;
  border-color: var(--yellow);
}
.platform.active { background: var(--red); }

.platform-number {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--yellow);
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
}

.platform strong,
.platform small { display: block; }
.platform small { margin-top: 3px; opacity: .8; }

.journey-card {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #eadfc3;
  border-radius: 30px;
  background: white;
  box-shadow: 0 20px 55px rgba(48,42,30,.10);
}

.journey-line {
  position: relative;
  height: 70px;
  background:
    linear-gradient(var(--navy), var(--navy)) center 25px / calc(100% - 80px) 7px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 34px, #d4dae1 34px 40px) center 39px / calc(100% - 80px) 12px no-repeat,
    #eff7fa;
}

.line-fill {
  position: absolute;
  top: 25px;
  left: 40px;
  width: 0%;
  height: 7px;
  border-radius: 99px;
  background: var(--red);
  transition: width .55s ease;
}

.moving-train {
  position: absolute;
  top: 2px;
  left: 30px;
  font-size: 2rem;
  transition: left .55s ease;
}

.year-content {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  min-height: 580px;
  padding: clamp(28px, 5vw, 58px);
}

.year-kicker {
  color: var(--red);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.year-content h3 {
  margin: 0 0 18px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

#yearIntro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin: 30px 0;
}

.milestone {
  padding: 18px;
  border-left: 5px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: #eef8fd;
}

.milestone h4 { margin: 0 0 7px; }
.milestone p { margin: 0; color: var(--muted); line-height: 1.5; }

.experiences h4 { margin-bottom: 12px; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.experience-tags span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: .9rem;
  font-weight: 700;
}

.year-character-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

.year-character-wrap img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 20px 12px rgba(24,50,71,.13));
  animation: characterIn .45s ease;
}

@keyframes characterIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.year-character-wrap figcaption {
  margin-top: 10px;
  font-weight: 800;
}

.speech-bubble {
  position: relative;
  margin-bottom: 12px;
  padding: 15px 17px;
  border: 2px solid var(--navy);
  border-radius: 18px;
  background: white;
  font-family: "Fredoka", sans-serif;
  line-height: 1.35;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: white;
  transform: translateX(-50%) rotate(45deg);
}

.values-section {
  padding: 90px 24px;
  color: white;
  background: var(--navy);
}

.section-heading.light > p:last-child { color: #ced7e4; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.value-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--navy);
  background: white;
}

.value-card img {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 88%;
  height: 255px;
  object-fit: contain;
  transform: translateX(-50%);
  transition: transform .25s ease;
}
.value-card:hover img { transform: translateX(-50%) translateY(-7px) rotate(1deg); }

.value-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  background: rgba(255,255,255,.95);
}

.value-card p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
}
.value-card h3 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.55rem;
}

.value-card.integrity { border-top: 8px solid #ef7622; }
.value-card.respect { border-top: 8px solid #1478be; }
.value-card.endurance { border-top: 8px solid #36a64f; }
.value-card.courage { border-top: 8px solid #7358a8; }
.value-card.kindness { border-top: 8px solid #4b9b9c; }
.value-card.aspiration { border-top: 8px solid #44adbd; }

.final-stop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 620px;
  padding: 80px max(24px, calc((100vw - 1120px) / 2));
  background: linear-gradient(135deg, #dff4ff, #fff4d6);
}

.final-stop h2 { font-size: clamp(3rem, 6vw, 5.7rem); }
.final-stop p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.secondary-button {
  margin-top: 15px;
  color: white;
  background: var(--navy);
}

.final-characters {
  position: relative;
  min-height: 430px;
}

.final-characters img {
  position: absolute;
  max-height: 410px;
  object-fit: contain;
}
.final-characters img:nth-child(1) { left: 0; bottom: 0; width: 55%; }
.final-characters img:nth-child(2) { right: 2%; bottom: 0; width: 48%; }
.final-characters img:nth-child(3) { top: 0; right: 18%; width: 40%; }

footer {
  padding: 28px;
  color: white;
  background: #0c1729;
  text-align: center;
}

@media (max-width: 900px) {
  .hero { min-height: 760px; }
  .hero-content { margin-top: 45px; }
  .hero-characters { opacity: .52; }
  .hero-aria { width: 47vw; right: -4%; }
  .hero-connor { width: 27vw; right: 31%; }
  .hero-riley { display: none; }

  .platform-board { grid-template-columns: repeat(2, 1fr); }
  .year-content { grid-template-columns: 1fr; }
  .year-character-wrap { max-width: 340px; margin: 0 auto; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .final-stop { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { padding: 18px; }
  .small-link { display: none; }
  .hero-content { padding: 0 18px; }
  .hero h1 { font-size: 3.8rem; }
  .hero-copy { font-size: 1rem; }
  .hero-aria { width: 66vw; opacity: .65; }
  .hero-connor { display: none; }

  .station-intro, .values-section { padding: 65px 14px; }
  .platform-board { grid-template-columns: 1fr; }
  .platform { padding: 13px; }
  .journey-card { border-radius: 20px; }
  .journey-line { height: 58px; }
  .year-content { padding: 25px 18px; }
  .milestone-grid { grid-template-columns: 1fr; }

  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 355px; }

  .final-stop { padding: 65px 20px; overflow: hidden; }
  .final-characters { min-height: 330px; }
}

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


/* Interactive value stories */
button.value-card {
  width: 100%;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.value-card div span {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-size: .9rem;
  font-weight: 800;
}

.value-card:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 5px;
}

.character-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 90px rgba(8, 21, 39, .35);
}

.character-dialog::backdrop {
  background: rgba(9, 20, 38, .82);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: sticky;
  z-index: 5;
  top: 16px;
  float: right;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 16px 16px -62px 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  min-height: 610px;
}

.dialog-art {
  display: grid;
  min-height: 610px;
  padding: 44px 24px;
  place-items: center;
  background: linear-gradient(160deg, #dff4ff, #fff2c7);
}

.dialog-art img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 24px 16px rgba(20, 44, 65, .18));
  animation: characterIn .35s ease;
}

.dialog-copy {
  padding: 64px 54px 52px;
}

.dialog-strand {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dialog-copy h2 {
  margin: 0 0 20px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .98;
}

.dialog-lead {
  margin: 0 0 22px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
}

.dialog-details p {
  color: var(--muted);
  line-height: 1.75;
}

.value-in-action {
  margin-top: 28px;
  padding: 20px;
  border-left: 6px solid var(--red);
  border-radius: 0 16px 16px 0;
  background: var(--cream);
}

.value-in-action p {
  margin: 0 0 6px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.value-in-action strong {
  font-family: "Fredoka", sans-serif;
  font-size: 1.18rem;
  line-height: 1.45;
}

body.dialog-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .character-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-art {
    min-height: 330px;
    padding: 32px 20px 10px;
  }

  .dialog-art img {
    max-height: 300px;
  }

  .dialog-copy {
    padding: 34px 24px 38px;
  }
}


/* =========================================================
   JOURNEY JOURNAL — restrained gallery enhancement
   ========================================================= */

.journal-section {
  padding: 88px 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(57, 169, 232, .11), transparent 28%),
    linear-gradient(180deg, #ffffff, #f5fbff);
}

.journal-section .section-heading {
  margin-bottom: 34px;
}

.journal-note {
  max-width: 690px;
  margin: 13px auto 0 !important;
  color: var(--red) !important;
  font-size: .9rem !important;
  font-weight: 700;
}

.journal-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

.journal-page {
  display: flex;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e5ec;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  text-align: left;
  flex-direction: column;
  box-shadow: 0 13px 32px rgba(23, 35, 61, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.journal-page:nth-child(odd) { transform: rotate(-.45deg); }
.journal-page:nth-child(even) { transform: rotate(.45deg); }

.journal-page:hover,
.journal-page:focus-visible {
  transform: translateY(-7px) rotate(0);
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 20px 42px rgba(23, 35, 61, .14);
}

.journal-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #edf5f9;
}

.journal-image-wrap::after {
  content: "Take a closer look";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(19, 35, 63, .88);
  font-size: .7rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.journal-page:hover .journal-image-wrap::after,
.journal-page:focus-visible .journal-image-wrap::after {
  opacity: 1;
  transform: translateY(0);
}

.journal-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .28s ease;
}

.journal-page:hover img,
.journal-page:focus-visible img {
  transform: scale(1.025);
}

.journal-cover-card .journal-image-wrap img {
  object-fit: contain;
  padding: 7px;
  background: white;
}

.journal-card-copy {
  display: block;
  padding: 17px 16px 18px;
}

.journal-card-copy strong,
.journal-card-copy small {
  display: block;
}

.journal-card-copy strong {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.journal-card-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.journal-dialog {
  width: min(920px, calc(100% - 26px));
  max-height: calc(100vh - 26px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #eef6fa;
  box-shadow: 0 30px 95px rgba(8, 21, 39, .42);
}

.journal-dialog::backdrop {
  background: rgba(8, 18, 34, .86);
  backdrop-filter: blur(6px);
}

.journal-dialog-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.journal-dialog-content {
  display: flex;
  max-height: calc(100vh - 26px);
  flex-direction: column;
}

.journal-dialog-image-wrap {
  display: grid;
  min-height: 0;
  padding: 22px 22px 12px;
  overflow: auto;
  place-items: center;
  flex: 1;
}

.journal-dialog-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 145px);
  object-fit: contain;
  box-shadow: 0 14px 38px rgba(23, 35, 61, .16);
}

.journal-dialog-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid #d4e0e7;
  background: white;
  text-align: center;
}

.journal-dialog-footer button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: white;
  font-weight: 800;
}

.journal-dialog-footer button:hover,
.journal-dialog-footer button:focus-visible {
  outline: none;
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.journal-dialog-footer strong,
.journal-dialog-footer small { display: block; }

.journal-dialog-footer strong {
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
}

.journal-dialog-footer small {
  margin-top: 3px;
  color: var(--muted);
}

body.journal-dialog-open { overflow: hidden; }

@media (max-width: 780px) {
  .journal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .journal-page:nth-child(odd),
  .journal-page:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 600px) {
  .journal-section {
    padding: 58px 12px;
  }

  .journal-section .section-heading {
    margin-bottom: 25px;
  }

  .journal-note {
    font-size: .82rem !important;
    line-height: 1.5 !important;
  }

  .journal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .journal-page { border-radius: 15px; }

  .journal-card-copy {
    padding: 12px 10px 13px;
  }

  .journal-card-copy strong { font-size: .95rem; }
  .journal-card-copy small { font-size: .7rem; }
  .journal-image-wrap::after { display: none; }

  .journal-dialog {
    width: calc(100% - 10px);
    max-height: calc(100vh - 10px);
    border-radius: 17px;
  }

  .journal-dialog-content {
    max-height: calc(100vh - 10px);
  }

  .journal-dialog-image-wrap {
    padding: 14px 8px 8px;
  }

  .journal-dialog-image-wrap img {
    max-height: calc(100vh - 132px);
  }

  .journal-dialog-footer {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .journal-dialog-footer > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .journal-dialog-footer button {
    grid-row: 2;
    padding: 9px 10px;
    font-size: .82rem;
  }

  .journal-dialog-close {
    top: 9px;
    right: 9px;
    width: 40px;
    height: 40px;
  }
}


/* =========================================================
   RELEASE 3.1 — INLINE YEAR 3 GROWTH MAP
   ========================================================= */

.year-growth-section {
  margin: 0 28px 30px;
  padding: 30px;
  border: 1px solid #dce8ef;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 5%, rgba(121, 87, 170, .10), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fbfd);
}

.year-growth-section[hidden],
.inline-growth-map[hidden] {
  display: none;
}

.year-growth-heading {
  max-width: 790px;
  margin-bottom: 24px;
}

.year-growth-heading h3,
.inline-growth-hero h3 {
  margin: 4px 0 10px;
  font-family: "Fredoka", sans-serif;
  color: var(--navy);
}

.year-growth-heading h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.year-growth-heading > p:last-child,
.inline-growth-hero > div > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.growth-map-eyebrow {
  margin: 0 0 7px;
  color: #6a55a4;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.year-growth-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.year-growth-value {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  min-width: 0;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid #dce6ec;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.year-growth-value span:nth-child(2) {
  min-width: 0;
}

.growth-value-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eef3f6;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.year-growth-value strong,
.year-growth-value small,
.year-growth-value em {
  display: block;
}

.year-growth-value strong {
  font-family: "Fredoka", sans-serif;
  font-size: 1.03rem;
  line-height: 1.1;
}

.year-growth-value small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.3;
}

.year-growth-value em {
  color: var(--muted);
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.year-growth-value.is-coming {
  cursor: default;
  opacity: .62;
}

.year-growth-value.is-live {
  border-color: #d5c7ea;
  background: #faf7ff;
  cursor: pointer;
}

.year-growth-value.is-live .growth-value-mark {
  background: #6a55a4;
  color: #fff;
}

.year-growth-value.is-live em {
  color: #6a55a4;
}

.year-growth-value.is-live:hover,
.year-growth-value.is-live:focus-visible {
  transform: translateY(-2px);
  border-color: #6a55a4;
  outline: none;
}

.inline-growth-map {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid #dce6ec;
}

.inline-growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid #e3d9f2;
  border-radius: 18px;
  background: #f7f2fd;
}

.inline-growth-hero h3 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.inline-growth-hero img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.behaviour-accordion {
  display: grid;
  gap: 10px;
}

.behaviour-item {
  overflow: hidden;
  border: 1px solid #dfe7ec;
  border-radius: 15px;
  background: #fff;
}

.behaviour-trigger {
  display: grid;
  grid-template-columns: 32px 1fr 28px;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 15px 16px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.behaviour-trigger:hover,
.behaviour-trigger:focus-visible {
  outline: none;
  background: #f8fbfd;
}

.behaviour-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #6a55a4;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.behaviour-trigger strong {
  font-size: .96rem;
  line-height: 1.35;
}

.behaviour-chevron {
  display: grid;
  place-items: center;
  color: #6a55a4;
  font-size: 1.1rem;
  transition: transform .2s ease;
}

.behaviour-item.open .behaviour-chevron {
  transform: rotate(180deg);
}

.behaviour-content {
  display: none;
  padding: 0 16px 18px 58px;
}

.behaviour-item.open .behaviour-content {
  display: block;
}

.demonstration-group + .demonstration-group {
  margin-top: 15px;
}

.demonstration-label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.demonstration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.demonstration-chip {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 8px 10px;
  border: 1px solid #dde6eb;
  border-radius: 10px;
  background: #f9fbfc;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
}

.demonstration-copy {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #6a55a4;
  border-radius: 0 10px 10px 0;
  background: #f8f5fc;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.why-it-matters {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed #d8e1e7;
}

.why-it-matters strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: .84rem;
}

.why-it-matters p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.growth-map-link-wrap {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.growth-map-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.growth-map-link.is-placeholder {
  cursor: default;
  opacity: .68;
}

.growth-map-link-wrap small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .year-growth-section {
    margin: 0 10px 18px;
    padding: 20px 12px;
    border-radius: 17px;
  }

  .year-growth-heading {
    margin-bottom: 18px;
  }

  .year-growth-heading h3 {
    font-size: 2rem;
  }

  .year-growth-heading > p:last-child {
    font-size: .9rem;
    line-height: 1.55;
  }

  .year-growth-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .year-growth-value {
    display: flex;
    min-height: 114px;
    padding: 11px 9px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
  }

  .growth-value-mark {
    width: 33px;
    height: 33px;
    font-size: .94rem;
  }

  .year-growth-value strong {
    font-size: .92rem;
  }

  .year-growth-value small {
    font-size: .63rem;
  }

  .year-growth-value em {
    margin-top: auto;
    font-size: .65rem;
  }

  .inline-growth-hero {
    grid-template-columns: 1fr 100px;
    gap: 8px;
    padding: 15px 12px;
  }

  .inline-growth-hero h3 {
    font-size: 1.45rem;
  }

  .inline-growth-hero > div > p:last-child {
    font-size: .82rem;
    line-height: 1.5;
  }

  .inline-growth-hero img {
    max-height: 120px;
  }

  .behaviour-trigger {
    grid-template-columns: 28px 1fr 22px;
    gap: 8px;
    padding: 13px 10px;
  }

  .behaviour-check {
    width: 27px;
    height: 27px;
  }

  .behaviour-trigger strong {
    font-size: .86rem;
  }

  .behaviour-content {
    padding: 0 10px 15px;
  }

  .demonstration-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .demonstration-chip {
    min-width: 0;
    justify-content: flex-start;
    padding: 8px;
    font-size: .73rem;
  }

  .demonstration-copy,
  .why-it-matters p {
    font-size: .8rem;
  }

  .growth-map-link {
    width: 100%;
  }
}


/* =========================================================
   RELEASE 3.2 — SIGNATURE EXPERIENCES + MOBILE POLISH
   ========================================================= */

/* Signature experiences are deliberately curated rather than exhaustive. */
.experiences h4 {
  letter-spacing: .01em;
}

/* ---------- Mobile hero: purpose-built composition ---------- */
@media (max-width: 600px) {
  .hero {
    min-height: 700px;
    overflow: hidden;
  }

  .hero-content {
    position: relative;
    z-index: 12;
    margin-top: 24px;
    padding: 0 18px 250px;
  }

  .hero h1 {
    max-width: 94%;
    font-size: clamp(3rem, 15vw, 3.7rem);
    line-height: .94;
  }

  .hero-copy {
    max-width: 92%;
    margin: 17px 0 20px;
    font-size: .96rem;
    line-height: 1.52;
  }

  .primary-button {
    min-height: 49px;
    padding: 12px 17px;
  }

  /* On mobile the characters become a small, intentional group
     above the railway rather than oversized desktop artwork. */
  .hero-characters {
    position: absolute;
    z-index: 9;
    right: 0;
    bottom: 0;
    left: 0;
    height: 250px;
    opacity: 1;
    pointer-events: none;
  }

  .hero-characters img {
    filter: drop-shadow(0 10px 8px rgba(16,42,69,.16));
  }

  .hero-aria {
    display: block;
    right: 6%;
    bottom: 84px;
    width: min(35vw, 138px);
    opacity: .98;
  }

  .hero-connor {
    display: block;
    right: 36%;
    bottom: 76px;
    width: min(29vw, 110px);
    opacity: 1;
  }

  .hero-riley {
    display: block;
    right: auto;
    left: 5%;
    bottom: 81px;
    width: min(25vw, 96px);
    opacity: .96;
  }

  .hero-skyline {
    bottom: 84px;
    height: 145px;
    opacity: .32;
  }

  .railway {
    height: 86px;
  }

  /* ---------- Character gallery: two per row ---------- */
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .value-card {
    min-width: 0;
    min-height: 278px;
    border-radius: 17px;
  }

  .value-card img {
    top: 11px;
    width: 94%;
    height: 182px;
  }

  .value-card div {
    padding: 13px 11px 14px;
  }

  .value-card p {
    min-height: 29px;
    margin-bottom: 3px;
    font-size: .6rem;
    line-height: 1.22;
  }

  .value-card h3 {
    font-size: 1rem;
    line-height: 1.08;
  }

  .value-card div span {
    margin-top: 6px;
    font-size: .69rem;
  }

  /* Keep the year selector compact too: no long single-column list. */
  .platform-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .platform {
    min-width: 0;
    min-height: 84px;
    padding: 10px 8px;
  }

  .platform-number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .platform strong {
    font-size: .9rem;
    line-height: 1.12;
  }

  .platform small {
    font-size: .65rem;
    line-height: 1.22;
  }

  /* Signature-experience tags remain compact and wrap naturally. */
  .experience-tags {
    gap: 6px;
  }

  .experience-tags span {
    padding: 7px 9px;
    font-size: .74rem;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-bottom: 238px;
  }

  .hero-aria {
    width: 34vw;
  }

  .hero-connor {
    width: 28vw;
  }

  .hero-riley {
    width: 24vw;
  }

  .value-card {
    min-height: 252px;
  }

  .value-card img {
    height: 161px;
  }

  .value-card h3 {
    font-size: .9rem;
  }

  .value-card p {
    font-size: .55rem;
  }
}


/* =========================================================
   RELEASE 3.2.1 — MOBILE CHARACTER GRID GUARD
   ========================================================= */

@media screen and (max-width: 600px) {
  .values-section .value-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .values-section .value-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
}


/* =========================================================
   RELEASE 3.2.2 — MOBILE-ONLY COURAGE PANEL POLISH
   Desktop layout remains unchanged.
   ========================================================= */

@media screen and (max-width: 600px) {
  .inline-growth-hero {
    position: relative;
    display: block;
    min-height: 0;
    padding: 15px 92px 15px 13px;
    overflow: hidden;
  }

  .inline-growth-hero > div {
    position: relative;
    z-index: 2;
  }

  .inline-growth-hero h3 {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: 1.38rem;
  }

  .inline-growth-hero > div > p:last-child {
    font-size: .8rem;
    line-height: 1.48;
  }

  .inline-growth-hero img {
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 4px;
    width: 86px;
    max-width: 86px;
    height: 112px;
    max-height: 112px;
    object-fit: contain;
    object-position: top right;
    opacity: .94;
    pointer-events: none;
  }
}

@media screen and (max-width: 380px) {
  .inline-growth-hero {
    padding-right: 80px;
  }

  .inline-growth-hero img {
    width: 74px;
    max-width: 74px;
    height: 100px;
    max-height: 100px;
  }

  .inline-growth-hero h3 {
    font-size: 1.28rem;
  }
}


/* =========================================================
   RELEASE 3.2.3 — MOBILE YEAR-DROPDOWN CHARACTER
   Targets #yearCharacter, not the Growth Map illustration.
   Desktop remains unchanged.
   ========================================================= */

@media screen and (max-width: 600px) {
  .year-character-wrap {
    width: 100%;
    max-width: 100% !important;
    margin: 2px auto 0 !important;
  }

  .year-character-wrap .speech-bubble {
    width: min(100%, 320px);
    margin: 0 auto 8px;
    padding: 10px 13px;
    font-size: .82rem;
    line-height: 1.4;
  }

  #yearCharacter {
    width: 108px !important;
    max-width: 108px !important;
    height: auto !important;
    max-height: 145px !important;
    margin: 0 auto;
    object-fit: contain;
  }

  .year-character-wrap figcaption {
    margin-top: 4px;
    font-size: .78rem;
  }
}

@media screen and (max-width: 380px) {
  #yearCharacter {
    width: 92px !important;
    max-width: 92px !important;
    max-height: 126px !important;
  }

  .year-character-wrap .speech-bubble {
    width: min(100%, 285px);
    font-size: .77rem;
  }
}


/* =========================================================
   RELEASE 3.3 — EYFS FOUNDATIONS + MOBILE YEAR CLEANUP
   ========================================================= */

.eyfs-platform-mark {
  font-size: .92rem;
  letter-spacing: -.02em;
}

.eyfs-foundations {
  margin: 0 28px 30px;
  padding: 30px;
  border: 1px solid #dce8ef;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fcfa);
}

.eyfs-foundations[hidden] { display: none; }

.eyfs-foundation-heading { max-width: 800px; margin-bottom: 22px; }
.eyfs-foundation-heading h3 {
  margin: 4px 0 10px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}
.eyfs-foundation-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.eyfs-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.eyfs-value-card {
  padding: 17px;
  border: 1px solid #dfe7ec;
  border-top-width: 5px;
  border-radius: 14px;
  background: white;
}
.eyfs-value-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.08rem;
}
.eyfs-value-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}
.eyfs-value-card.integrity { border-top-color: #ef7622; }
.eyfs-value-card.respect { border-top-color: #1478be; }
.eyfs-value-card.endurance { border-top-color: #36a64f; }
.eyfs-value-card.kindness { border-top-color: #4b9b9c; }
.eyfs-value-card.courage { border-top-color: #7358a8; }
.eyfs-value-card.aspiration { border-top-color: #44adbd; }

.eyfs-curriculum-link {
  display: inline-flex;
  margin-top: 20px;
  padding: 11px 16px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  text-decoration: none;
  font-weight: 800;
}

@media screen and (max-width: 600px) {
  /* Mobile year panels are deliberately content-first. */
  .year-character-wrap {
    display: none !important;
  }

  .year-content {
    display: block !important;
    min-height: 0 !important;
    padding: 22px 15px 20px !important;
  }

  .year-content h3 {
    margin-bottom: 12px;
  }

  #yearIntro {
    font-size: .94rem;
    line-height: 1.55;
  }

  .milestone-grid {
    margin: 20px 0;
  }

  .eyfs-foundations {
    margin: 0 10px 18px;
    padding: 20px 12px;
    border-radius: 17px;
  }

  .eyfs-foundation-heading h3 { font-size: 2rem; }
  .eyfs-foundation-heading > p:last-child { font-size: .9rem; line-height: 1.55; }

  .eyfs-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .eyfs-value-card { padding: 12px 10px; }
  .eyfs-value-card strong { font-size: .94rem; }
  .eyfs-value-card p { font-size: .72rem; line-height: 1.4; }

  .eyfs-curriculum-link {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   RELEASE 3.4 — COMPLETE YEAR 3 GROWTH MAP
   ========================================================= */

.year-growth-value.is-live.is-selected {
  border-color: #6a55a4;
  background: #f3ecfb;
  box-shadow: 0 8px 20px rgba(106, 85, 164, .12);
}

.year-growth-value.is-live.is-selected em {
  color: #4f3d82;
}

@media screen and (max-width: 600px) {
  .year-growth-value.is-live.is-selected {
    transform: none;
  }
}


/* =========================================================
   4.0 STEP 1 — YEAR 1 OBSERVABLE BEHAVIOURS
   ========================================================= */
.behaviour-trigger-static {
  cursor: default;
  grid-template-columns: 32px 1fr;
}

.behaviour-trigger-static:hover,
.behaviour-trigger-static:focus-visible {
  background: #fff;
}

.behaviour-statement-only .behaviour-trigger {
  padding: 15px 16px;
}

@media screen and (max-width: 600px) {
  .behaviour-trigger-static {
    grid-template-columns: 28px 1fr;
  }
}


/* =========================================================
   RELEASE 4.0 STEP 4 — PROVISIONAL CURRICULUM MAPPING
   ========================================================= */

.behaviour-content .demonstration-copy {
  max-width: 72ch;
}


/* =========================================================
   RELEASE 5.0 — YEAR PANEL SPACING POLISH
   Brings the platform/year heading closer to the journey line.
   ========================================================= */
@media screen and (min-width: 601px) {
  .year-content {
    padding-top: 26px;
  }
}
