:root {
  /* Hannah brand palette - PMS approximations */
  --hannah-yellow: #FDD66C; /* PMS 121 */
  --hannah-orange: #E87722; /* PMS 158 */
  --hannah-burgundy: #862633; /* PMS 202 */
  --hannah-blue: #00A3E0; /* PMS 298 */
  --hannah-green: #43B02A; /* PMS 361 */
  --hannah-navy: #003B5C; /* PMS 541 */

  --ink: #173042;
  --muted: #65747d;
  --paper: #fffdf8;
  --paper-deep: #f6f0e5;
  --surface: #eaf4f8;
  --accent: var(--hannah-blue);
  --accent-dark: var(--hannah-navy);
  --accent-soft: #e5f6fc;
  --gold: var(--hannah-yellow);
  --line: #d8d3c8;
  --shadow: 0 24px 60px rgba(0, 59, 92, .22);
  --font-scale: 1;
  --title-font: "Teen", Arial, sans-serif;
  --body-font: Georgia, "Times New Roman", serif;
  --ui-font: Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, #e9f6fb, #c9e7f3 48%, #e7f2e4);
  font-family: var(--body-font);
}
button, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: #fff; padding: .75rem 1rem; border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }

.app-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,255,255,.96);
  border-bottom: 3px solid var(--hannah-blue);
  font-family: var(--ui-font);
}
.brand-block { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.header-logo { width: 145px; max-height: 58px; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.brand-copy { display: grid; gap: .1rem; padding-left: .9rem; border-left: 1px solid rgba(0,59,92,.18); }
.brand-copy strong { color: var(--hannah-navy); }
.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--hannah-blue);
  font-family: var(--ui-font);
  font-weight: 700;
}
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.tool-button, .nav-button, .icon-button, .primary-button {
  border: 1px solid rgba(0,59,92,.24);
  background: white;
  color: var(--hannah-navy);
  border-radius: 999px;
  padding: .62rem 1rem;
  font-family: var(--ui-font);
  font-size: .9rem;
}
.tool-button:hover, .nav-button:hover, .icon-button:hover { border-color: var(--hannah-blue); color: var(--hannah-blue); }
#narratorButton[aria-pressed="true"] { border-color: var(--hannah-orange); color: var(--hannah-orange); background: rgba(239,118,34,.08); }
#narratorButton:disabled { opacity: .5; cursor: not-allowed; }
.primary-button { background: var(--hannah-blue); color: white; border-color: var(--hannah-blue); }
.primary-button:hover { background: var(--hannah-navy); }
.icon-button { width: 2.5rem; height: 2.5rem; padding: 0; font-size: 1.5rem; }

.reading-progress { height: 5px; background: rgba(255,255,255,.65); }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hannah-blue), var(--hannah-green)); transition: width .3s ease; }

.reader-shell { padding: clamp(1rem, 3vw, 2.5rem); }
.book {
  position: relative;
  width: min(1180px, 96vw);
  height: min(720px, calc(100vh - 200px));
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  perspective: 1800px;
  filter: drop-shadow(var(--shadow));
}
.book::before {
  content: "";
  position: absolute;
  inset: 1.5% 49.4%;
  z-index: 8;
  background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(255,255,255,.7), rgba(0,0,0,.10));
  border-radius: 50%;
  pointer-events: none;
}
.page {
  position: relative;
  overflow: auto;
  padding: clamp(2rem, 4vw, 4.5rem);
  background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), var(--paper);
  font-size: calc(.94rem * var(--font-scale));
  line-height: 1.62;
  scrollbar-width: thin;
}
.page-left { border-radius: 12px 2px 2px 12px; box-shadow: inset -18px 0 24px rgba(50,42,30,.08); }
.page-right { border-radius: 2px 12px 12px 2px; box-shadow: inset 18px 0 24px rgba(50,42,30,.06); }
.page::after {
  content: attr(data-page-number);
  position: absolute;
  bottom: 1.4rem;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: .75rem;
}
.page-left::after { left: 2rem; }
.page-right::after { right: 2rem; }
.page h1, .page h2, .contents-heading h2 {
  font-family: var(--title-font);
  color: var(--hannah-navy);
  letter-spacing: .01em;
}
.page h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.04; margin: .5rem 0 1.2rem; font-weight: 700; }
.page h2 { font-size: clamp(1.55rem, 2.5vw, 2.45rem); line-height: 1.15; margin: .25rem 0 1.2rem; font-weight: 700; }
.page p { margin: 0 0 1rem; }
.lead { font-size: 1.18em; line-height: 1.5; }
.emphasis { font-size: 1.13em; font-style: italic; color: var(--hannah-navy); }
.closing-line { margin-top: 2rem !important; font-size: 1.28em; font-style: italic; }
.cadence { padding-left: 1.2rem; border-left: 4px solid var(--hannah-orange); font-style: italic; }
.cadence.compact { line-height: 1.42; }
.small-note { color: var(--muted); font-family: var(--ui-font); font-size: .8rem; }
.ornament { color: var(--hannah-orange); font-size: 1.5rem; margin: 2rem 0; }

.page-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 1.4rem;
}
.page-photo.tall { height: 300px; }
.photo-caption { margin-top: -.9rem !important; color: var(--muted); font: .75rem var(--ui-font); }
.portrait-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: center; margin: 1.2rem 0; }
.portrait-row img { width: 120px; height: 150px; object-fit: cover; border-radius: 8px; border: 4px solid white; box-shadow: 0 8px 22px rgba(0,59,92,.16); }

.page[data-template="cover"] {
  background:
    linear-gradient(150deg, rgba(0,59,92,.86), rgba(0,163,224,.57)),
    url("assets/who-we-are.webp") center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.page[data-template="cover"] h1 { color: white; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.page[data-template="cover"] .cover-logo { width: min(320px, 72%); margin: 0 auto 2rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.22)); }
.cover-system { text-transform: uppercase; letter-spacing: .2em; font-family: var(--ui-font); font-size: .8rem; }
.cover-subtitle { font-size: 1.2rem; font-style: italic; }
.cover-rule { width: 64px; height: 3px; background: var(--hannah-yellow); margin: 2rem auto; }
.cover-part { text-transform: uppercase; letter-spacing: .12em; font-family: var(--ui-font); }
.cover-version { margin-top: 2rem !important; opacity: .82; font-family: var(--ui-font); font-size: .8rem; }

.page[data-template="quote"] { display: flex; flex-direction: column; justify-content: center; }
.truth-block { margin-top: 3rem; padding: 2rem 0; border-top: 2px solid var(--hannah-yellow); border-bottom: 2px solid var(--hannah-yellow); }
.truth-block span { font-family: var(--ui-font); color: var(--hannah-orange); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.truth-block blockquote { margin: 1rem 0 0; font-size: clamp(1.4rem, 2.5vw, 2.5rem); line-height: 1.25; font-style: italic; color: var(--hannah-navy); }

.book-contents { list-style: none; margin: 2rem 0; padding: 0; }
.book-contents li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.book-contents li::before { content: ""; width: 8px; height: 8px; margin-top: .45rem; border-radius: 50%; background: var(--hannah-green); flex: 0 0 auto; }
.book-contents li span:first-of-type { flex: 1; }
.book-contents .future { color: var(--muted); }
.book-contents .future::before { background: var(--hannah-yellow); }
.callout-list { padding: 1rem 1.2rem; background: var(--accent-soft); border-left: 5px solid var(--hannah-blue); }

.reflection-label { display: block; margin: 1.2rem 0 .4rem; font-family: var(--ui-font); font-weight: 700; }
textarea {
  width: 100%; resize: vertical; min-height: 180px; padding: 1rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fffefb;
  line-height: 1.5;
}
textarea:focus { outline: 3px solid rgba(0,163,224,.22); border-color: var(--hannah-blue); }
.reflection-actions { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; font-family: var(--ui-font); }
.completion-mark { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--hannah-green); color: white; font-size: 3rem; margin: 2rem auto; }

.reader-navigation { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; font-family: var(--ui-font); }
.page-status { min-width: 180px; text-align: center; margin: 0; font-size: .88rem; }
.keyboard-hint { text-align: center; color: rgba(0,59,92,.7); font-family: var(--ui-font); font-size: .78rem; }
.nav-button:disabled { opacity: .4; cursor: not-allowed; }

.turn-overlay {
  position: absolute; z-index: 20; top: 0; bottom: 0; right: 0; width: 50%;
  pointer-events: none; transform-origin: left center; opacity: 0;
  background: linear-gradient(90deg, var(--paper), #ece5d8);
  border-radius: 0 12px 12px 0;
}
.turn-overlay.turn-next { animation: turnNext .42s ease; }
.turn-overlay.turn-prev { left: 0; right: auto; transform-origin: right center; animation: turnPrev .42s ease; }
@keyframes turnNext { 0%{opacity:1;transform:rotateY(0)} 100%{opacity:.2;transform:rotateY(-95deg)} }
@keyframes turnPrev { 0%{opacity:1;transform:rotateY(0)} 100%{opacity:.2;transform:rotateY(95deg)} }

.contents-panel {
  position: fixed; z-index: 60; top: 0; right: 0; width: min(430px, 92vw); height: 100vh;
  overflow: auto; padding: 2rem; background: #fff; box-shadow: -20px 0 50px rgba(0,59,92,.22);
  font-family: var(--ui-font); border-top: 6px solid var(--hannah-blue);
}
.contents-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.contents-heading h2 { margin: .2rem 0 1rem; font-size: 2rem; }
.contents-list { padding-left: 1.2rem; }
.contents-list button { width: 100%; text-align: left; border: 0; background: transparent; padding: .8rem .4rem; color: var(--ink); }
.contents-list button:hover { color: var(--hannah-blue); }
.contents-list .active button { color: var(--hannah-blue); font-weight: 700; }
.scrim { position: fixed; z-index: 50; inset: 0; background: rgba(0,32,48,.48); }
.print-edition { display: none; }

@media (max-width: 860px) {
  .header-logo { width: 118px; }
  .brand-copy { display: none; }
}
@media (max-width: 760px) {
  .app-header { align-items: center; }
  .toolbar { gap: .3rem; }
  .tool-button { padding: .55rem .7rem; font-size: .78rem; }
  .book { display: block; width: min(620px, 95vw); height: calc(100vh - 220px); min-height: 500px; }
  .book::before, .page-left { display: none; }
  .page-right { width: 100%; height: 100%; border-radius: 12px; box-shadow: none; padding: 2rem 1.6rem 3.2rem; }
  .page-right::after { right: 1.4rem; }
  .turn-overlay { width: 100%; }
  .page-status { min-width: 120px; }
  .keyboard-hint { display: none; }
  .portrait-row { grid-template-columns: 90px 1fr; }
  .portrait-row img { width: 90px; height: 115px; }
}
@media (max-width: 560px) {
  .header-logo { width: 95px; }
  .tool-button { font-size: .72rem; padding: .5rem .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Phase 2 signature visuals */
.page[data-template="visual"] { background: linear-gradient(145deg, #fffdf8, #f4fbfe); }
.page[data-template="visual"] h1 { text-align:center; color:var(--hannah-navy); }
.viz-caption { margin-top:1rem; padding:0.8rem; border-left:4px solid var(--hannah-orange); background:#fff; text-align:center; min-height:3rem; }
.principles-wheel, .decision-map, .team-circle { display:grid; grid-template-columns:repeat(2,1fr); gap:.65rem; align-items:center; margin:1rem 0; }
.principles-wheel button, .decision-map button, .team-circle button, .learning-cycle button { border:1px solid rgba(0,73,119,.25); border-radius:999px; background:#fff; color:var(--hannah-navy); padding:.7rem .8rem; font:inherit; font-weight:700; cursor:pointer; }
.principles-wheel button:hover, .decision-map button:hover, .team-circle button:hover, .learning-cycle button:hover { background:var(--hannah-light-blue); }
.wheel-center, .decision-center, .team-center { grid-column:1 / -1; justify-self:center; border-radius:50%; width:9rem; height:9rem; display:flex; align-items:center; justify-content:center; text-align:center; padding:1rem; background:var(--hannah-navy); color:white; font-family:"Teen",Arial,sans-serif; font-weight:700; }
.learning-cycle { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem; margin:2rem 0 1rem; }
.learning-cycle button { min-width:6.5rem; background:var(--hannah-light-blue); }
.cycle-center { text-align:center; font-family:"Teen",Arial,sans-serif; color:var(--hannah-navy); font-size:1.3rem; font-weight:700; }
.final-question { border-top:2px solid var(--hannah-orange); padding-top:1rem; margin-top:1rem; text-align:center; }
.values-ring { border:2px solid var(--hannah-green); border-radius:1rem; padding:.75rem; text-align:center; line-height:1.8; font-size:.86rem; }
.oath-card { display:grid; gap:1rem; padding:1.2rem; border:2px solid var(--hannah-light-blue); background:#fff; }
.oath-card label { display:grid; gap:.35rem; font-weight:700; }
.oath-card input { width:100%; border:1px solid #bbb; border-radius:.35rem; padding:.6rem; font:inherit; }
.list-line { padding-left:1.2rem; position:relative; }
.list-line::before { content:"•"; position:absolute; left:.25rem; color:var(--hannah-orange); font-weight:700; }
@media (max-width:760px){ .wheel-center,.decision-center,.team-center{width:7rem;height:7rem}.principles-wheel,.decision-map,.team-circle{grid-template-columns:1fr 1fr}.learning-cycle span{display:none}.learning-cycle button{width:46%} }

/* Phase 2 editorial image treatments */
.page em,
.page i,
.page .emphasis,
.page .closing-line,
.page .cadence,
.page .truth-block blockquote,
.page .cover-subtitle {
  color: var(--hannah-orange);
  font-weight: 700;
}

.blended-photo,
.page .page-photo {
  display: block;
  width: min(100%, 560px);
  height: 230px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 1.35rem;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 92% 84% at center, #000 58%, rgba(0,0,0,.88) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 84% at center, #000 58%, rgba(0,0,0,.88) 72%, transparent 100%);
  filter: saturate(.96) contrast(1.02);
}
.blended-photo.blended-hero { height: 285px; }
.page .page-photo.tall { height: 300px; }
.hannah-heart-mark {
  display: block;
  width: 118px;
  height: 82px;
  object-fit: contain;
  margin: 1.4rem auto;
  mix-blend-mode: multiply;
}
.scroll-spread {
  width: calc(100% + clamp(2rem, 4vw, 4.5rem));
  height: 205px;
  overflow: hidden;
  margin: -1rem 0 1.25rem;
}
.scroll-spread img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}
.scroll-left { margin-right: calc(-1 * clamp(2rem, 4vw, 4.5rem)); }
.scroll-right { margin-left: calc(-1 * clamp(2rem, 4vw, 4.5rem)); }
.scroll-left img { transform: translateX(0); }
.scroll-right img { transform: translateX(-50%); }

@media (max-width: 760px) {
  .blended-photo, .page .page-photo { height: 210px; }
  .blended-photo.blended-hero { height: 235px; }
  .scroll-spread { width: 100%; margin-left: 0; margin-right: 0; }
  .scroll-spread img { width: 100%; transform: none; }
}

/* Revision pass: seamless editorial imagery and two-page value scroll */
.chapter-icon.large-heart {
  display:block;
  width:160px;
  height:150px;
  object-fit:contain;
  margin:0 auto 2rem;
}
.blended-photo,
.page .page-photo {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.blended-photo.historic-full,
.blended-photo.illustration-contain {
  object-fit: contain;
  height: 300px;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 94% 90% at center, #000 70%, rgba(0,0,0,.75) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 90% at center, #000 70%, rgba(0,0,0,.75) 84%, transparent 100%);
}
.blended-photo.tall-feature { height: 300px; object-position:center; }
.blended-photo.wide-feature { height: 270px; object-position:center; }
.word-scroll {
  width:calc(100% + clamp(2rem,4vw,4.5rem));
  margin:-.5rem 0 1.4rem;
  overflow:hidden;
  white-space:nowrap;
  border-top:1px solid rgba(0,59,92,.18);
  border-bottom:1px solid rgba(0,59,92,.18);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.92) 10%,rgba(255,255,255,.92) 90%,transparent);
}
.word-scroll-track {
  display:inline-flex;
  align-items:center;
  gap:1.35rem;
  min-width:max-content;
  padding:1.05rem 2rem;
  color:var(--hannah-navy);
  font-family:var(--title-font);
  font-size:clamp(1.35rem,2.5vw,2.25rem);
  font-weight:700;
  letter-spacing:.02em;
}
.word-scroll .scroll-heart { color:var(--hannah-blue); font-size:1.25em; }
.scroll-left-live { margin-right:calc(-1 * clamp(2rem,4vw,4.5rem)); }
.scroll-right-live { margin-left:calc(-1 * clamp(2rem,4vw,4.5rem)); }
.scroll-left-live .word-scroll-track { animation:scrollValues 18s linear infinite alternate; }
.scroll-right-live .word-scroll-track { transform:translateX(-32%); animation:scrollValuesRight 18s linear infinite alternate; }
.word-scroll:hover .word-scroll-track { animation-play-state:paused; }
@keyframes scrollValues { from{transform:translateX(0)} to{transform:translateX(-28%)} }
@keyframes scrollValuesRight { from{transform:translateX(-32%)} to{transform:translateX(-4%)} }
@media (max-width:760px){
  .word-scroll{width:100%;margin-left:0;margin-right:0}
  .word-scroll-track{font-size:1.25rem;padding:.85rem 1rem;gap:.9rem}
  .blended-photo.historic-full,.blended-photo.illustration-contain{height:250px}
}
@media (prefers-reduced-motion:reduce){
  .word-scroll-track{animation:none!important;transform:none!important}
}

/* Final editorial revisions */
.page-text-block { position: relative; z-index: 1; }
.blended-photo.image-lower {
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.blended-photo.image-contain {
  object-fit: contain;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 95% 92% at center, #000 72%, rgba(0,0,0,.72) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 92% at center, #000 72%, rgba(0,0,0,.72) 86%, transparent 100%);
}
.blended-photo.dr-campbell-fit {
  height: 315px;
  object-position: center top;
}
.blended-photo.jenny-fit {
  height: 285px;
  object-position: center;
}
.blended-photo.peace-fit {
  height: 285px;
  object-position: center;
}
@media (max-width:760px) {
  .blended-photo.dr-campbell-fit,
  .blended-photo.jenny-fit,
  .blended-photo.peace-fit { height: 235px; }
}


/* Phase 2.1 interactive learning activities */
.page[data-page-id="part-opener"] .large-heart { margin-top: 2.2rem; transform: translateY(14px); }
.page[data-page-id="chapter-9-opener"] h1 { transform: translateY(14px); }
.page[data-template="activity"] { background: linear-gradient(145deg,#fffdf8,#f4fbfe); }
.page[data-template="activity"] h1 { color: var(--hannah-navy); }
.sequence-activity { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin:2rem 0 1rem; }
.sequence-activity button,.scenario-steps button { border:2px solid var(--hannah-light-blue); background:#fff; color:var(--hannah-navy); border-radius:999px; padding:.8rem 1rem; font-weight:700; cursor:pointer; }
.sequence-activity button.selected,.scenario-steps button.selected { background:var(--hannah-navy); color:#fff; border-color:var(--hannah-navy); }
.sequence-activity.needs-reset { animation:activityShake .4s ease; }
@keyframes activityShake {25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
.activity-status { text-align:center; font-weight:700; color:var(--hannah-orange); }
.activity-reveal { margin:1.5rem 0; padding:1.2rem; border-left:5px solid var(--hannah-yellow); background:#fff; color:var(--hannah-navy); font-size:1.15rem; }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.choice-grid fieldset { border:1px solid var(--line); border-radius:12px; padding:1rem; background:#fff; }
.choice-grid legend { color:var(--hannah-navy); font-weight:700; padding:0 .35rem; }
.choice-grid label { display:block; margin:.48rem 0; }
.scenario-card,.scenario-outcome { padding:1rem 1.1rem; border-radius:12px; background:#fff; border:1px solid var(--line); }
.scenario-steps { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin:1rem 0; }
.flip-card { width:min(100%,500px); min-height:190px; display:grid; place-items:center; margin:2rem auto 1rem; padding:2rem; border:0; border-radius:24px; background:linear-gradient(145deg,var(--hannah-navy),#006a91); color:#fff; box-shadow:0 18px 35px rgba(0,59,92,.22); cursor:pointer; transition:transform .45s ease; }
.flip-card span { font-size:clamp(1.45rem,3vw,2.35rem); font-family:Georgia,serif; font-style:italic; font-weight:700; }
.flip-card.flipped { transform:rotateY(180deg); background:linear-gradient(145deg,var(--hannah-green),#7fa72a); }
.flip-card.flipped span { transform:rotateY(180deg); }
.challenge-list { display:grid; gap:.75rem; margin:1.5rem 0; }
.challenge-list label { display:flex; gap:.7rem; align-items:flex-start; padding:.85rem 1rem; border:1px solid var(--line); border-radius:10px; background:#fff; }
.challenge-list input { width:1.15rem; height:1.15rem; accent-color:var(--hannah-green); }
.challenge-progress { display:grid; gap:.55rem; font-family:var(--ui-font); font-weight:700; }
.challenge-progress progress { width:100%; height:14px; accent-color:var(--hannah-green); }
.team-circle-intro { text-align:center; color:var(--hannah-orange); font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.team-orbit { position:relative; width:min(100%,620px); aspect-ratio:1; margin:.4rem auto 1rem; border-radius:50%; border:1px solid rgba(0,163,224,.22); background:radial-gradient(circle at center,rgba(255,255,255,.98) 0 23%,rgba(225,244,250,.5) 24% 62%,transparent 63%); }
.team-orbit::before,.team-orbit::after { content:""; position:absolute; inset:16%; border:1px dashed rgba(0,112,153,.2); border-radius:50%; }
.team-orbit::after { inset:5%; }
.team-orbit .team-center { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:31%; height:31%; z-index:3; display:flex; flex-direction:column; gap:.25rem; align-items:center; justify-content:center; border-radius:50%; background:var(--hannah-navy); color:#fff; padding:.8rem; box-shadow:0 12px 28px rgba(0,59,92,.25); }
.team-center small { font-size:.57rem; line-height:1.25; font-weight:400; }
.team-pets { font-size:1.3rem; }
.team-orbit button { --count:15; position:absolute; left:50%; top:50%; width:112px; min-height:42px; transform:translate(-50%,-50%) rotate(calc(360deg / var(--count) * var(--i))) translateY(-255px) rotate(calc(-360deg / var(--count) * var(--i))); border:1px solid rgba(0,73,119,.25); border-radius:999px; background:#fff; color:var(--hannah-navy); padding:.5rem .6rem; font-size:.68rem; font-weight:700; cursor:pointer; box-shadow:0 4px 12px rgba(0,59,92,.1); }
.team-orbit button:hover,.team-orbit button:focus { background:var(--hannah-light-blue); z-index:5; }
.values-ring { display:flex; flex-wrap:wrap; justify-content:center; gap:.35rem .75rem; border:0; padding:.65rem; color:var(--hannah-navy); }
.values-ring span { font-size:.7rem; font-weight:700; }
@media (max-width:760px){.choice-grid,.scenario-steps{grid-template-columns:1fr}.team-orbit{aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr;gap:.45rem;padding:1rem;border-radius:18px;background:#f4fbfe}.team-orbit::before,.team-orbit::after{display:none}.team-orbit .team-center{position:static;transform:none;grid-column:1/-1;width:auto;height:auto;border-radius:18px;padding:1rem}.team-orbit button{position:static;transform:none!important;width:auto;min-height:40px;font-size:.72rem}}

/* Final Part I polish */
.page[data-template="video"] { background:linear-gradient(145deg,#fffdf8,#f4fbfe); }
.academy-video { width:min(100%,620px); margin:1.2rem auto; padding:1rem; border:1px solid rgba(0,73,119,.16); border-radius:18px; background:#fff; box-shadow:0 12px 28px rgba(0,59,92,.12); }
.academy-video-label { margin-bottom:.7rem; color:var(--hannah-orange); font-family:var(--ui-font); font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.video-frame { position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:12px; background:#001f31; }
.video-frame iframe, .video-frame video { position:absolute; inset:0; width:100%; height:100%; border:0; background:#001f31; }
.video-fallback { display:inline-block; margin-top:.7rem; color:var(--hannah-navy); font-weight:700; }

/* Compact, balanced Hannah Team Circle */
.page[data-page-id="team-circle"] { padding-top:1.2rem; overflow:hidden; }
.page[data-page-id="team-circle"] h1 { margin:.15rem 0 .1rem; font-size:clamp(2.05rem,4vw,3.4rem); }
.page[data-page-id="team-circle"] .kicker { margin-bottom:.15rem; }
.page[data-page-id="team-circle"] .team-circle-intro { margin:.2rem 0 .3rem; }
.team-orbit { width:min(88%,470px); margin:.2rem auto .55rem; }
.team-orbit .team-center { width:35%; height:35%; padding:.65rem; transition:transform .25s ease,box-shadow .25s ease; }
.team-orbit .team-center strong { font-size:1.05rem; text-align:center; }
.team-center small { font-size:.5rem; line-height:1.18; text-align:center; }
.team-pets { font-size:1.1rem; }
.team-orbit button { --count:14; width:96px; min-height:38px; transform:translate(-50%,-50%) rotate(calc(360deg / var(--count) * var(--i))) translateY(-192px) rotate(calc(-360deg / var(--count) * var(--i))); padding:.42rem .48rem; font-size:.59rem; line-height:1.08; transition:background .2s ease,box-shadow .2s ease,transform .2s ease; }
.team-orbit button.active { background:var(--hannah-orange); color:#fff; border-color:var(--hannah-orange); box-shadow:0 0 0 5px rgba(239,118,34,.14),0 8px 18px rgba(0,59,92,.2); z-index:8; }
.team-orbit.has-active .team-center { transform:translate(-50%,-50%) scale(1.035); box-shadow:0 0 0 8px rgba(0,163,224,.12),0 15px 30px rgba(0,59,92,.26); }
.team-connector { position:absolute; left:50%; top:50%; height:3px; transform-origin:0 50%; background:linear-gradient(90deg,rgba(239,118,34,.25),var(--hannah-orange)); border-radius:999px; z-index:2; pointer-events:none; animation:connectorGlow .45s ease both; }
@keyframes connectorGlow { from{opacity:0;transform:rotate(var(--angle)) scaleX(.1)} to{opacity:1;transform:rotate(var(--angle)) scaleX(1)} }
.team-detail-panel { width:min(88%,650px); min-height:64px; display:grid; place-items:center; margin:.25rem auto .45rem; padding:.7rem 1rem; border-left:5px solid var(--hannah-orange); background:#fff; color:var(--hannah-navy); box-shadow:0 5px 14px rgba(0,59,92,.07); text-align:center; font-family:Georgia,serif; font-size:.88rem; line-height:1.35; }
.page[data-page-id="team-circle"] .values-ring { width:min(92%,700px); margin:0 auto; padding:.25rem .4rem; gap:.2rem .62rem; }
.page[data-page-id="team-circle"] .values-ring span { font-size:.6rem; }
.page[data-page-id="team-circle"] .closing-line { margin:.45rem auto 0; text-align:center; font-size:clamp(1.12rem,2.3vw,1.65rem); line-height:1.2; }

/* Graduation celebration */
.page[data-template="graduation"] { position:relative; overflow:hidden; background:radial-gradient(circle at 50% 22%,#fff 0,#fffdf7 44%,#eef9fc 100%); }
.graduation-card { position:relative; z-index:2; max-width:680px; margin:auto; text-align:center; }
.graduation-heart { width:88px; display:block; margin:.2rem auto .35rem; }
.graduation-card h1 { margin:.1rem 0; }
.graduation-card h2 { margin:.15rem 0 .55rem; font-size:1.2rem; color:var(--hannah-navy); }
.achievement-card { width:min(100%,430px); margin:.8rem auto; padding:.85rem 1rem; border:1px solid rgba(0,73,119,.18); border-radius:16px; background:#fff; box-shadow:0 10px 25px rgba(0,59,92,.12); }
.achievement-card span,.achievement-card small { display:block; font-family:var(--ui-font); }
.achievement-card span { color:var(--hannah-orange); font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.achievement-card strong { display:block; margin:.2rem 0; color:var(--hannah-navy); font-size:1.3rem; }
.graduation-message { margin:.75rem auto; font-size:1rem; }
.graduation-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.55rem; }
.secondary-button,.continue-button { border:1px solid rgba(0,73,119,.28); border-radius:999px; background:#fff; color:var(--hannah-navy); padding:.7rem 1rem; font-weight:700; cursor:pointer; }
.continue-button { display:block; margin:.8rem auto 0; background:var(--hannah-navy); color:#fff; }
.confetti-stage { position:absolute; inset:0; z-index:5; overflow:hidden; pointer-events:none; }
.confetti-piece { position:absolute; top:-12%; animation:confettiFall var(--duration) linear forwards; font-size:var(--size); opacity:.95; }
@keyframes confettiFall { to { transform:translate3d(var(--drift),115vh,0) rotate(var(--spin)); opacity:.15; } }
@media (prefers-reduced-motion:reduce){.confetti-piece{animation:none;display:none}.team-connector{animation:none}}

@media (max-width:760px){
  .team-orbit { width:100%; }
  .team-detail-panel { width:100%; }
  .graduation-card h2 { font-size:1rem; }
}

.back-to-hls{text-decoration:none;display:inline-flex;align-items:center}.back-to-hls:focus{outline:3px solid #ffd45d;outline-offset:2px}@media(max-width:760px){.back-to-hls{order:-1;width:100%;justify-content:center}}
