/* Shared OCTO header/footer; matching page-scoped WOFF2 font subsets. */
.story-page { --story-blue: #014bd0; --story-ink: #0a1740; --story-muted: #52617a; --story-line: #d6dcea; color: var(--story-ink); font: 16px/1.7 "Story Sans", "Story Sans Fallback", Arial, sans-serif; }
.story-page .site-header, .story-page .skip-link, .story-page .legal-footer { font-family: "Story Sans", "Story Sans Fallback", Arial, sans-serif; }
.story-shell { width: min(1120px, calc(100% - var(--wire-gutter) * 2)); margin: 28px auto 0; }
.story-shell:focus { outline: none; }
.story-shell h1, .story-shell h2, .story-shell h3, .story-shell p { margin: 0; }
.story-shell h1, .story-shell h2, .story-shell h3 { font-family: "Story Sora", "Story Sora Fallback", Arial, sans-serif; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.story-shell a:focus-visible { outline: 3px solid var(--story-blue); outline-offset: 5px; }
.story-shell .story-eyebrow, .story-period { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-intro { display: flex; flex-direction: column; justify-content: center; min-height: 380px; padding: 52px 60px; border-radius: var(--wire-radius); background: var(--story-blue); color: #fff; }
.story-intro { position: relative; isolation: isolate; }
.story-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; background: #315569; pointer-events: none; }
.story-art .story-poster, .story-art .story-video { position: absolute; inset: auto; right: 16px; bottom: 0; width: auto; max-width: none; height: min(100%, 86vw); object-fit: contain; transform: translateX(8%); }
.story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 24 50 / .94), rgb(8 24 50 / .83) 40%, rgb(8 24 50 / .30) 70%, rgb(8 24 50 / .08)), linear-gradient(0deg, rgb(8 24 50 / .55), transparent 38%); }
.story-intro h1 { max-width: 12ch; margin-top: 22px; font-size: clamp(44px, 5.8vw, 72px); line-height: 1.07; }
.story-intro .story-lead { max-width: 49ch; margin-top: 24px; font-size: 17px; }
.story-intro-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.story-intro-bottom > p { font-size: 12px; color: #dbe8ff; }
.story-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; max-width: 100%; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; color: var(--story-blue); font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease; }
.story-button > span:first-child { min-width: 0; }
.story-arrow { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--story-blue); color: #fff; }
.story-button svg { transition: transform .18s ease; }
.story-button:hover { background: #eaf0ff; }
.story-button:active { background: #e3ecfc; box-shadow: inset 0 1px 3px rgb(10 23 64 / .12); }
.story-button:is(:hover, :focus-visible) svg { transform: translate(1px, -1px); }
.story-button[href="#beginning"]:is(:hover, :focus-visible) svg { transform: translateY(2px); }
.story-button[href="#main"]:is(:hover, :focus-visible) svg { transform: translateY(-2px); }
.story-shell .story-button:focus-visible { outline: 2px solid #f9c21d; outline-offset: 2px; border-radius: 999px; }
.story-intro a:focus-visible, .story-close a:focus-visible { outline-color: #f9c21d; }
.story-timeline-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin: 64px 0 24px; }
.story-before { color: var(--story-muted); }
.story-chapters { display: flex; flex-wrap: wrap; gap: 6px; }
.story-chapters a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid #d6dcea; border-radius: 999px; color: var(--story-blue); background: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.story-chapters a:hover { background: #eef4ff; border-color: #94b6f0; }
.story-chapters a[aria-current="location"] { color: #fff; background: var(--story-blue); border-color: var(--story-blue); }
.story-chapters a:focus-visible { outline-offset: 3px; }
.story-milestone:focus, .story-before:focus { outline: none; }
.story-journey { position: relative; isolation: isolate; padding-block: 160px 340px; }
/* Keep the complete artwork at its natural ratio, fitted to the panel width. */
.story-ocean { position: absolute; inset: 0 -20px; z-index: -1; overflow: hidden; border-radius: 32px; pointer-events: none; background: linear-gradient(180deg, #a8ccd2 0%, #87b6c3 14%, #6d9db3 46%, #6d9db3 100%); }
.story-ocean::before { content: ""; position: absolute; inset: 0 0 auto; height: min(50%, 2200px); background: radial-gradient(ellipse 80% 25% at 48% 0%, rgb(229 255 244 / .6), transparent 85%), linear-gradient(105deg, transparent 15%, rgb(234 255 246 / .15) 21%, transparent 29%, transparent 42%, rgb(234 255 246 / .12) 47%, transparent 54%, transparent 67%, rgb(234 255 246 / .1) 72%, transparent 78%); mask-image: linear-gradient(#000, transparent); }
.story-ocean-background { position: absolute; bottom: 0; left: 0; display: block; width: 100%; height: auto; max-width: none; mask-image: linear-gradient(to bottom, transparent, #000 min(120px, 12%)); }
/* Distant silhouettes sit in the open columns, independent of the reef image. */
.story-water-shadow { position: absolute; top: 48%; width: min(34%, 320px); height: auto; transform: translateY(-50%); color: #315f7c; fill: currentColor; opacity: .3; filter: blur(.45px); pointer-events: none; }
.story-shadow-right { right: 4%; }
.story-shadow-left { left: 4%; }
.story-school-pair { top: 52%; width: min(31%, 285px); opacity: .24; filter: blur(.8px); }
.story-school-distant { top: 40%; opacity: .24; filter: blur(1px); }
.story-octo-shadow { top: 45%; right: 11.5%; width: min(21%, 220px); opacity: .21; filter: blur(.65px); transform: translateY(-50%); }
.story-turtle-shadow { top: 46%; left: 10%; width: min(24%, 250px); opacity: .24; filter: blur(.8px); transform: translateY(-50%) rotate(26deg); }
.story-ray-shadow { top: 44%; right: 10%; width: min(27%, 280px); opacity: .23; filter: blur(.9px); transform: translateY(-50%) rotate(-14deg); }
.story-shadow-mobile { display: none; }
.story-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.story-lines path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.story-track { stroke: var(--story-line); }
.story-fill { stroke: var(--story-blue); }
.story-future-line { stroke: #9caecb; stroke-dasharray: 4 9; }
.story-origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.story-origin { position: relative; padding: 32px 32px 36px 64px; border-radius: 26px; background: #eef1f8; }
.story-origin:last-child { padding: 32px 64px 36px 32px; }
.story-origin h2 { color: var(--story-blue); font-size: 30px; line-height: 1.25; }
.story-origin h2 { padding-right: 80px; }
.story-portrait { position: absolute; top: 19px; right: 32px; width: 64px; height: 64px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #fff; }
.story-origin:last-child .story-portrait { right: 64px; }
.story-portrait img { position: absolute; max-width: none; height: auto; }
.story-portrait-robbe img { width: 180%; left: -40%; top: -38%; }
.story-portrait-axel img { width: 150%; left: -25%; top: -22%; }
.story-origin h3 { margin-top: 20px; font-size: 21px; line-height: 1.3; }
.story-origin p { margin-top: 16px; color: var(--story-muted); font-size: 14px; }
.story-dot { position: absolute; z-index: 2; width: 16px; height: 16px; border: 3px solid var(--story-line); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.story-origin .story-dot { left: 28px; top: 51px; border-color: var(--story-blue); }
.story-origin:last-child .story-dot { left: auto; right: 28px; transform: translate(50%, -50%); border-color: var(--story-ink); }
.story-timeline { position: relative; margin: 0; padding: 96px 0 0; list-style: none; }
.story-timeline::before { content: ""; position: absolute; top: 128px; bottom: 0; left: 50%; width: 3px; background: var(--story-line); transform: translateX(-50%); }
.story-ready .story-timeline::before { display: none; }
.story-milestone { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; padding-bottom: 48px; }
.story-milestone:last-child { padding-bottom: 0; }
.story-milestone > .story-dot { left: 50%; top: 38px; }
.story-milestone.is-read > .story-dot { border-color: var(--story-blue); background: var(--story-blue); }
.story-milestone.is-active > .story-dot { box-shadow: 0 0 0 7px #e3edff; }
.story-entry { position: relative; min-width: 0; padding: 28px 32px 32px; border-radius: 26px; background: #eef1f8; }
.story-milestone:nth-child(even) .story-entry { grid-column: 2; }
.story-entry::before { content: ""; position: absolute; top: 37px; right: -28px; width: 20px; height: 2px; background: var(--story-line); }
.story-milestone:nth-child(even) .story-entry::before { right: auto; left: -28px; }
.story-period { color: var(--story-blue); line-height: 1.7; }
.story-entry h2 { margin-top: 14px; font-size: clamp(24px, 2.5vw, 30px); line-height: 1.22; }
.story-entry p:not(.story-period) { margin-top: 18px; color: var(--story-muted); font-size: 14px; line-height: 1.8; }
.story-current .story-entry { background: var(--story-blue); color: #fff; }
.story-current .story-period, .story-current .story-entry p:not(.story-period) { color: #fff; }
.story-status { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--story-blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.story-current > .story-dot { width: 20px; height: 20px; border-color: var(--story-blue); }
.story-future .story-entry { border: 1px dashed #9caecb; background: #fff; }
.story-future > .story-dot { border-style: dashed; border-color: #9caecb; }
.story-close { container: story-closing / inline-size; width: calc(100% + 40px); margin: 64px -20px 0; padding: 48px 56px; border-radius: var(--wire-radius); background: var(--story-ink); color: #fff; }
.story-close h2 { max-width: 19ch; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; }
.story-close > p { max-width: 61ch; margin-top: 20px; color: #e2eaff; font-size: 15px; }
.story-close-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; margin-top: 28px; }
.story-button-secondary { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px #8092b8; }
.story-button-secondary .story-arrow { color: #fff; background: rgb(255 255 255 / .12); }
.story-button-secondary:hover, .story-button-secondary:active { background: rgb(255 255 255 / .1); }
.story-back { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin: 16px 0 0 auto; color: var(--story-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
/* Retain the established closing tile's two action rows at narrow widths. */
@container story-closing (max-width: 422.85px) { .story-close-actions { flex-direction: column; align-items: flex-start; min-height: 112px; } }
.story-page .legal-footer { max-width: 1120px; }
@media (prefers-reduced-motion: reduce) {
  .story-art .story-video { display: none; }
  .story-button, .story-button svg { transition: none; }
  .story-button[href]:is(:hover, :focus-visible) svg { transform: none; }
}
@media (max-width: 960px) {
  .story-water-shadow { top: auto; bottom: 1px; left: auto; right: 20px; width: 82px; height: 28px; transform: none; filter: blur(.35px); opacity: .25; }
  .story-shadow-school { display: none; }
  .story-shadow-mobile { display: initial; }
  .story-octo-shadow { bottom: 1px; width: 28px; height: 28px; right: 26px; transform: none; opacity: .24; }
  .story-turtle-shadow { top: auto; bottom: 1px; left: auto; right: 24px; width: 34px; height: 28px; transform: none; opacity: .24; }
  .story-ray-shadow { top: auto; bottom: 1px; right: 24px; width: 34px; height: 28px; transform: none; opacity: .24; }
  .story-octo-shadow, .story-turtle-shadow, .story-ray-shadow { display: none; }
  .story-origins { grid-template-columns: 1fr; gap: 24px; padding-left: 52px; }
  .story-origin, .story-origin:last-child { padding: 24px; border-radius: 22px; }
  .story-origin .story-dot { left: -40px; top: 43px; }
  .story-origin:last-child .story-dot { left: -20px; right: auto; top: 43px; transform: translate(-50%, -50%); }
  .story-origin h2 { font-size: 28px; padding-right: 72px; }
  .story-portrait, .story-origin:last-child .story-portrait { top: 14px; right: 24px; width: 56px; height: 56px; }
  .story-origin h3 { margin-top: 14px; font-size: 20px; }
  .story-timeline { padding-top: 64px; }
  .story-timeline::before { left: 22px; top: 102px; }
  .story-milestone { display: block; padding-left: 52px; padding-bottom: 32px; }
  .story-milestone > .story-dot { left: 22px; }
  .story-entry { padding: 24px; border-radius: 22px; }
  .story-entry::before, .story-milestone:nth-child(even) .story-entry::before { left: -21px; right: auto; width: 12px; }
  .story-entry h2 { font-size: 24px; }
}
@media (max-width: 760px) {
  .story-journey { padding-block: 100px 200px; }
  .story-ocean { inset-inline: -10px; border-radius: 26px; }
  .story-art::after { background: linear-gradient(180deg, rgb(8 24 50 / .94), rgb(8 24 50 / .77) 52%, rgb(8 24 50 / .62)), linear-gradient(90deg, rgb(8 24 50 / .28), transparent); }
  .story-intro { min-height: 370px; padding: 36px 32px; }
  .story-intro h1 { font-size: clamp(40px, 8vw, 60px); }
  .story-intro .story-lead { font-size: 15px; }
  .story-intro-bottom { align-items: flex-start; flex-direction: column; }
  .story-timeline-intro { margin-top: 44px; }
  .story-close { width: calc(100% + 20px); margin: 44px -10px 0; padding: 36px 32px; }
}
@media (max-width: 600px) {
  .story-timeline-intro { align-items: flex-start; flex-direction: column; }
  .story-chapters { width: 100%; }
  .story-chapters a { flex: 1; padding-inline: 8px; font-size: 12px; white-space: nowrap; }
  .story-art { background: #081832; }
  .story-art .story-poster, .story-art .story-video { top: 8px; right: -18px; bottom: auto; height: clamp(140px, 40vw, 200px); transform: none; mask-image: linear-gradient(#000 60%, transparent); }
  .story-art::after { background: linear-gradient(90deg, rgb(8 24 50 / .95), rgb(8 24 50 / .75) 36%, rgb(8 24 50 / .12) 70%), linear-gradient(180deg, transparent 40px, rgb(8 24 50 / .08) 95px, #081832 200px); }
}
@media (max-width: 380px) {
  .story-intro, .story-close { padding-inline: 24px; }
  .story-origin, .story-origin:last-child, .story-entry { padding-inline: 18px; }
  .story-portrait, .story-origin:last-child .story-portrait { right: 18px; }
  .story-entry h2 { font-size: 22px; }
  .story-origin p, .story-entry p:not(.story-period) { font-size: 14px; }
}
@media print {
  .story-ocean, .story-water-shadow { display: none; }
  .story-journey { padding-block: 0; }
  .story-close { width: auto; margin-inline: 0; }
  .story-art, .story-chapters, .story-back { display: none; }
  .site-header, .story-intro-bottom, .story-close-actions, .legal-footer, .story-lines, .story-dot, .story-entry::before, .story-timeline::before { display: none; }
  .story-shell { width: 100%; margin: 0; }
  .story-intro, .story-close, .story-current .story-entry { background: #fff; color: #0a1740; }
  .story-intro .story-lead, .story-close > p, .story-current .story-period, .story-current .story-entry p:not(.story-period) { color: #0a1740; }
  .story-milestone { display: block; padding: 0 0 24px; break-inside: avoid; }
  .story-origins { padding-left: 0; }
  .story-intro { min-height: 0; padding: 24px 0; }
}
