/* The Unlikely Ones · unlikelyones.com
   Brand: navy #04173E, gold #F6B92B, the "Sunrise" mark (brand/final/MANIFEST.md).
   The hero is the Shorts' outro as a web scene; its geometry is generated by build.py. */

:root {
  --navy: #04173E;
  --navy-deep: #020A22;
  --navy-2: #0A2355;
  --navy-3: #12306B;
  --gold: #F6B92B;
  --gold-hi: #FFCB4D;
  --ink: #EDF1F8;
  --muted: #A9B6D4;
  --line: rgba(169, 182, 212, .18);
  --radius: 18px;
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --spring: cubic-bezier(.22, 1.3, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 400 18px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: .005em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .82em 1.35em; border-radius: 999px;
  font: 600 17px/1 var(--font); letter-spacing: .02em; text-decoration: none;
  background: var(--bg); color: var(--ink);
  border: 2px solid transparent;
  transition: transform .35s var(--spring), box-shadow .3s, background-color .3s, color .3s, border-color .3s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(1px) scale(.96); transition-duration: .08s; }
.btn--gold { --bg: var(--gold); color: #061536; box-shadow: 0 8px 28px rgba(246, 185, 43, .32), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn--gold:hover { --bg: var(--gold-hi); box-shadow: 0 12px 36px rgba(246, 185, 43, .48), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn--ghost { border-color: rgba(237, 241, 248, .55); background: rgba(4, 23, 62, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { font-size: 15px; padding: .6em 1.05em; }
.btn--lg { font-size: 19px; padding: .95em 1.6em; }
.btn--yt { border-color: rgba(246, 185, 43, .7); color: var(--ink); background: rgba(4, 23, 62, .45); }
.btn--yt:hover { background: var(--gold); color: #061536; border-color: var(--gold); }
.yt { width: 1.35em; height: auto; flex: none; }
.yt__play { fill: var(--navy); }
.btn--gold .yt__play { fill: var(--gold); }
.btn--gold:hover .yt__play { fill: var(--gold-hi); }
.btn--yt:hover .yt__play { fill: var(--gold); }
.btn--gold .yt { color: #061536; }
.arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform .35s var(--spring); }
.ext { display: inline-block; width: .8em; height: .8em; vertical-align: -.05em; margin-left: .15em; opacity: .7; }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 50; transition: background-color .35s, box-shadow .35s, backdrop-filter .35s; background: rgba(4, 23, 62, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr--home { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr--home.is-scrolled { background: rgba(4, 23, 62, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr__in { display: flex; align-items: center; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(246, 185, 43, .5), 0 4px 14px rgba(0, 0, 0, .35); transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.brand__name b { color: var(--gold); }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 12px; font-weight: 500; font-size: 16px; text-decoration: none; color: var(--ink); opacity: .9; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav { display: none; } }
@media (max-width: 420px) { .hide-sm { display: none; } .brand__name { font-size: 15px; letter-spacing: .08em; } .brand img { width: 34px; height: 34px; } }

/* ---------------------------------------------------------------- hero scene */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1400px; overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22%; background: linear-gradient(180deg, rgba(4, 23, 62, 0), var(--navy) 92%); z-index: 2; pointer-events: none; }
.scene { position: absolute; inset: 0; z-index: 0; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--W) * 1px); height: calc(var(--H) * 1px);
  transform: translate(-50%, -50%) scale(var(--s, .7));
  transform-origin: 50% 50%;
  overflow: hidden;
}
.stage--port { display: none; }
@media (max-aspect-ratio: 4/5) { .stage--land { display: none; } .stage--port { display: block; } }
.stage .L { position: absolute; inset: 0; will-change: translate; }
.stage .L > *, .stage .in > *, .stage .in-sun > * { position: absolute; }
.stage .in { position: absolute; inset: 0; }
.stage img { max-width: none; }
.sky, .glow { inset: 0; }
.star { position: absolute; border-radius: 50%; background: var(--gold); animation: twinkle var(--t) ease-in-out var(--d) infinite alternate; }
.star--white { background: #fff; }
.star--big { box-shadow: 0 0 6px var(--gold); }
@keyframes twinkle { from { opacity: .2; transform: scale(.6); } to { opacity: .95; transform: scale(1); } }
.shoot { width: 190px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(246, 185, 43, 0)); transform-origin: 0 50%; opacity: 0; animation: shoot 11s linear 3.2s infinite; }
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(153.5deg) scaleX(.2); }
  1% { opacity: 1; }
  7% { opacity: 0; transform: translate(-460px, 230px) rotate(153.5deg) scaleX(1); }
  100% { opacity: 0; transform: translate(-460px, 230px) rotate(153.5deg) scaleX(1); }
}
.rays {
  width: 1900px; height: 1900px; border-radius: 50%; opacity: .17;
  background: repeating-conic-gradient(var(--gold) 0deg 5deg, transparent 5deg 20deg);
  -webkit-mask: radial-gradient(circle closest-side, #000 18%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 18%, transparent 100%);
  animation: spin 200s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sun { border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFCB4D 0%, var(--gold) 68%, #EDAB20 100%); animation: sunglow 5s ease-in-out infinite alternate; }
@keyframes sunglow { from { box-shadow: 0 0 60px 20px rgba(246, 185, 43, .42); } to { box-shadow: 0 0 110px 40px rgba(246, 185, 43, .55); } }
.sea { left: 0; width: 100%; background: linear-gradient(180deg, #0B2862 0%, #061A47 45%, #031034 100%); }
.mist { left: 0; width: 100%; height: 190px; background: linear-gradient(180deg, rgba(14, 44, 104, 0) 0%, rgba(14, 44, 104, .9) 100%); }
.refl { left: 0; width: 100%; height: 240px; opacity: .55;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 6px, transparent 6px 10px), linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: repeating-linear-gradient(180deg, #000 0 6px, transparent 6px 10px), linear-gradient(180deg, #000 20%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.refl img { position: absolute; top: 0; transform: scaleY(-1); transform-origin: 50% 50%; animation: sway 3.4s ease-in-out infinite alternate; }
.refl .refl__b { animation-direction: alternate-reverse; }
@keyframes sway { from { translate: -5px 0; } to { translate: 5px 0; } }
.ripple { position: absolute; border-radius: 2px; background: rgba(150, 190, 255, .24); animation: ripple var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes ripple { from { transform: translateX(-10px) scaleX(.75); } to { transform: translateX(10px) scaleX(1); } }
.dash { position: absolute; border-radius: 3px; opacity: var(--o); animation: dash var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes dash { 0% { transform: translateX(-12px) scaleX(.7); opacity: calc(var(--o) * .55); } 50% { opacity: var(--o); } 100% { transform: translateX(12px) scaleX(1.05); opacity: calc(var(--o) * .8); } }
.glint { position: absolute; opacity: 0; animation: glint var(--t) ease-in-out var(--d) infinite; }
@keyframes glint { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.boat__drift { position: relative; animation: drift 46s ease-in-out infinite alternate; }
.boat__drift > svg { display: block; }
.boat__refl { position: absolute; left: 0; top: 58px; transform: scaleY(-.7); transform-origin: 50% 0; opacity: .3; }
@keyframes drift { from { translate: 0 0; } to { translate: -150px 0; } }
.forest-fill { background: #0C2150; }
.bird { opacity: 0; animation: fly 26s linear var(--d) infinite; }
.bird__wing { animation: flap var(--f) ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0); }
  2% { opacity: 1; }
  34% { opacity: 1; }
  38% { opacity: 0; transform: translate(1000px, -400px); }
  100% { opacity: 0; transform: translate(1000px, -400px); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.45); } }

/* slide-in, mirroring the outro's springs; held at frame 0 until the layer images are ready (.go) */
.in { animation-duration: 1.4s; animation-timing-function: var(--spring); animation-fill-mode: both; animation-delay: var(--delay, 0s); }
.in-rise { animation-name: rise; }
.in-sun { animation-name: sunrise; animation-duration: 2.2s; animation-timing-function: var(--ease-out); }
.in-left { animation-name: fromleft; animation-duration: 1.35s; }
.in-right { animation-name: fromright; animation-duration: 1.45s; }
.in-fade { animation-name: fade; animation-duration: 1.6s; animation-timing-function: ease-out; }
.in-boat { animation-name: boatin; animation-duration: 2.6s; animation-timing-function: var(--ease-out); }
.in-grow { transform-origin: 50% 100%; animation-name: grow; animation-duration: .9s; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rise { from { transform: translateY(var(--from, 360px)); } to { transform: none; } }
@keyframes sunrise { from { transform: translateY(400px); } to { transform: none; } }
@keyframes fromleft { from { transform: translateX(-1000px); } to { transform: none; } }
@keyframes fromright { from { transform: translateX(1300px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes boatin { from { transform: translateX(280px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scale(.6, 0); } to { transform: none; } }
.stage { animation: iris 1s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes iris { from { clip-path: circle(0 at var(--sx) var(--sy)); } to { clip-path: circle(2300px at var(--sx) var(--sy)); } }
.js .hero:not(.go) .in, .js .hero:not(.go) .stage, .js .hero:not(.go) .hero__content * { animation-play-state: paused; }

/* hero text: the name lands like the outro's title */
.hero__content {
  position: absolute; z-index: 3; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 60px calc(50% + 10px);
  text-shadow: 0 6px 26px rgba(0, 0, 0, .65);
}
.wordmark { display: flex; flex-direction: column; text-transform: uppercase; letter-spacing: .05em; line-height: .96; }
.wordmark__top { font-size: clamp(34px, 4.6vw, 76px); font-weight: 700; color: #fff; animation: titleup .9s var(--spring) 1.25s both; }
.wordmark__ones { font-size: clamp(76px, 10vw, 168px); font-weight: 700; color: var(--gold); margin-top: .02em; text-shadow: 0 0 34px rgba(246, 185, 43, .45), 0 6px 26px rgba(0, 0, 0, .65); animation: ones .9s var(--spring) 1.42s both; }
.rule { display: block; width: clamp(80px, 9vw, 150px); height: 6px; border-radius: 4px; background: var(--gold); margin: 22px 0 18px; transform-origin: left; animation: draw .6s var(--ease-out) 1.75s both; box-shadow: 0 0 18px rgba(246, 185, 43, .5); }
.tagline { font-size: clamp(14px, 1.35vw, 20px); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 14px; animation: titleup .8s var(--ease-out) 1.85s both; }
.lede { font-size: clamp(17px, 1.4vw, 21px); color: #DCE3F2; max-width: 30em; margin: 0 0 26px; animation: titleup .8s var(--ease-out) 1.95s both; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; animation: titleup .8s var(--spring) 2.1s both; }
.cta .btn { text-shadow: none; }
@keyframes titleup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ones { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
.cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 30px; height: 48px; margin-left: -15px; border: 2px solid rgba(237, 241, 248, .6); border-radius: 16px; animation: fade 1s ease 2.6s both; }
.cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-aspect-ratio: 4/5) {
  .hero { min-height: 640px; }
  .hero__content { justify-content: flex-end; align-items: center; text-align: center; padding: 90px var(--gutter) max(9vh, 44px); }
  .wordmark { align-items: center; }
  .rule { transform-origin: center; margin: 16px auto 14px; }
  .tagline { letter-spacing: .18em; }
  .lede { max-width: 24em; margin-bottom: 20px; }
  .cta { justify-content: center; }
  .cue { display: none; }
  .hero__content::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: 0; height: 62%; background: radial-gradient(60% 55% at 50% 58%, rgba(2, 10, 34, .62), rgba(2, 10, 34, 0) 100%); pointer-events: none; }
}
@media (max-aspect-ratio: 4/5) and (max-width: 600px) {
  .wordmark__top { font-size: clamp(30px, 9vw, 44px); }
  .wordmark__ones { font-size: clamp(70px, 21vw, 104px); }
  .lede { font-size: 16px; }
  .btn { font-size: 16px; }
}
@media (min-aspect-ratio: 4/5) and (max-width: 900px) { .hero__content { padding-left: 46%; } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
section[id], [id^="src-"], .panel[id] { scroll-margin-top: 72px; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
.sec-intro { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin-top: 16px; }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .9s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* story cards: archive photo as a poster */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--ink); background: var(--navy-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06);
}
.card[data-reveal].is-in { transition: opacity .8s var(--ease-out), transform .45s var(--spring), box-shadow .35s; transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 0 0 2px var(--gold); }
.card__img { position: absolute; inset: 0; z-index: -1; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: transform 1.2s var(--ease-out), filter .6s; }
.card:hover .card__img img { transform: scale(1.07); filter: none; }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 10, 34, .05) 0%, rgba(2, 10, 34, .1) 32%, rgba(4, 23, 62, .86) 64%, rgba(4, 23, 62, .97) 100%); }
.card__body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #061536; background: var(--gold); padding: 5px 10px 4px; border-radius: 999px; }
.card .tag { position: absolute; top: 16px; left: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.card__name { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card__title { margin-top: 6px; font-size: clamp(22px, 2vw, 26px); font-weight: 700; line-height: 1.15; }
.card__line { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: #D3DBEC; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--gold); }
.card:hover .arrow { transform: translateX(5px); }
@media (max-width: 640px) { .card { aspect-ratio: 4 / 4.6; } }

/* about pillars, icons draw themselves when they appear */
.about { background: radial-gradient(60% 50% at 80% 50%, rgba(246, 185, 43, .06), transparent 70%), linear-gradient(180deg, var(--navy) 0%, #061E50 50%, var(--navy) 100%); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 28px 24px 26px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(18, 48, 107, .55), rgba(10, 35, 85, .35)); box-shadow: inset 0 0 0 1px var(--line); }
.pillar h3 { font-size: 21px; margin: 18px 0 10px; }
.pillar p { font-size: 16.5px; color: var(--muted); margin: 0; }
.pillar__icon { width: 52px; height: 52px; padding: 11px; border-radius: 14px; background: rgba(246, 185, 43, .12); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar__icon * { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + .25s); }
.pillar.is-in .pillar__icon * , html:not(.js) .pillar__icon * { stroke-dashoffset: 0; }

.contact__box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 52px); border-radius: 26px; background: radial-gradient(90% 140% at 100% 100%, rgba(246, 185, 43, .16), transparent 55%), linear-gradient(135deg, #0B2A63, #071D4B); box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .3); }
.contact__box p:last-child { margin: 14px 0 0; color: var(--muted); max-width: 38em; }
.contact__box .mail { color: var(--gold); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 800px) { .contact__box { flex-direction: column; align-items: flex-start; } .contact__box .btn { white-space: normal; } }

/* ---------------------------------------------------------------- footer scene */
.ftr { position: relative; background: var(--navy-deep); overflow: hidden; }
.ftr__scene { position: relative; height: clamp(200px, 26vw, 360px); overflow: hidden; }
.ftr__scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 45%; background: linear-gradient(180deg, rgba(2, 10, 34, 0), var(--navy-deep)); }
.ftr__scene::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 1; background: linear-gradient(180deg, var(--navy), rgba(4, 23, 62, 0)); }
.fstage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 520px; transform: translate(-50%, -50%) scale(var(--s, .5)); }
.fstage > * { position: absolute; }
.fsky { inset: 0; background: linear-gradient(180deg, #04173E 0%, #0A2A66 60%, #143E86 77%); }
.fstars { inset: 0; }
.frise { inset: 0; transform: translateY(260px); transition: transform 2.4s var(--ease-out); }
.frise > * { position: absolute; }
.ftr.is-in .frise { transform: none; }
.fridge { transform: translateY(80px); transition: transform 1.6s var(--spring); }
.fridge--front { transition-delay: .15s; }
.ftr.is-in .fridge { transform: none; }
.fsea { left: 0; right: 0; top: 400px; bottom: 0; background: linear-gradient(180deg, #0B2862, #031034); }
.fpath { inset: 0; opacity: 0; transition: opacity 1.2s ease .8s; }
.ftr.is-in .fpath { opacity: 1; }
.fcliff { inset: 0; transform: translateX(-700px); transition: transform 1.5s var(--spring) .35s; }
.fcliff > * { position: absolute; }
.ftr.is-in .fcliff { transform: none; }
html:not(.js) .frise, html:not(.js) .fridge, html:not(.js) .fcliff { transform: none; }
html:not(.js) .fpath { opacity: 1; }
.ftr__in { position: relative; z-index: 2; max-width: 1200px; margin: -30px auto 0; padding: 0 var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand--lg { margin: 0; }
.brand--lg img { width: 48px; height: 48px; }
.brand--lg .brand__name { font-size: 20px; }
.ftr__tag { margin: 12px 0 18px; color: var(--muted); }
.ftr__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 22px; }
.ftr__nav a { text-decoration: none; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .3s, color .3s; }
.ftr__nav a:hover { color: var(--gold); border-color: var(--gold); }
.ftr__small { font-size: 14px; color: #8695B8; max-width: 44em; margin: 0; padding-bottom: env(safe-area-inset-bottom); }

/* ---------------------------------------------------------------- story page */
.shero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #020A24 0%, #06194A 60%, var(--navy) 100%); }
.shero__sky { position: absolute; inset: 0; pointer-events: none; }
.shero__stars { position: absolute; left: 50%; top: 0; width: 1600px; height: 100%; margin-left: -800px; }
.shero__sun { position: absolute; right: -260px; bottom: -420px; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(255, 203, 77, .28) 0%, rgba(246, 185, 43, .12) 45%, rgba(246, 185, 43, 0) 100%); animation: sunup 2.4s var(--ease-out) both; }
@keyframes sunup { from { transform: translateY(240px); opacity: 0; } to { transform: none; opacity: 1; } }
.shero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 800px) { .shero__in { grid-template-columns: 1fr; } .print { order: -1; justify-self: center; } }
.shero__text { animation: titleup .9s var(--ease-out) .1s both; }
.back { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.back .arrow { transform: rotate(180deg); }
.back:hover { color: var(--gold); }
.back:hover .arrow { transform: rotate(180deg) translateX(4px); }
.shero__name { margin: 18px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.shero h1 { font-size: clamp(36px, 5vw, 64px); }
.shero__dek { margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: #D3DBEC; max-width: 34em; }
.print { width: min(100%, 420px); padding: 12px 12px 44px; background: #F3EEE2; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .2); transform: rotate(2.5deg); animation: print 1.2s var(--spring) .25s both; }
.print img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 2px; filter: contrast(1.04); }
@keyframes print { from { opacity: 0; transform: translateY(60px) rotate(9deg) scale(.92); } to { opacity: 1; transform: rotate(2.5deg); } }
@media (max-width: 800px) { .print { width: min(78vw, 360px); } }

.body { max-width: 860px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 24px; }
.body__story p { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.75; color: #E3E8F3; }
.body__story p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .82; font-weight: 700; color: var(--gold); margin: .08em .1em 0 0; }
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 32px 0 8px; padding: 22px; border-radius: var(--radius); background: rgba(18, 48, 107, .5); box-shadow: inset 0 0 0 1px var(--line); }
.watch > span { color: var(--muted); font-size: 16px; }
.panel { margin-top: clamp(44px, 6vw, 72px); }
.panel h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 22px; }
.panel h3 { font-size: 20px; margin: 34px 0 14px; letter-spacing: .02em; }
.panel__intro { color: var(--muted); }
.facts { list-style: none; counter-reset: f; margin: 0; padding: 0; }
.facts li { counter-increment: f; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before { content: counter(f); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--gold); box-shadow: inset 0 0 0 2px rgba(246, 185, 43, .55); }
.refs { white-space: nowrap; }
.ref { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-left: 4px; border-radius: 6px; background: rgba(246, 185, 43, .15); color: var(--gold); font-size: 13px; font-weight: 700; text-decoration: none; vertical-align: 2px; transition: background-color .25s, color .25s; }
.ref:hover { background: var(--gold); color: #061536; }
.srcs { margin: 0; padding-left: 1.4em; }
.srcs li { margin: 0 0 12px; padding-left: 4px; scroll-margin-top: 90px; }
.srcs li::marker { color: var(--gold); font-weight: 700; }
.srcs a { font-weight: 500; text-decoration-color: rgba(246, 185, 43, .6); text-underline-offset: 3px; }
.srcs a:hover { color: var(--gold); }
.src__site { display: block; font-size: 15px; color: var(--muted); }
.srcs li:target { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: rgba(246, 185, 43, .2); } 100% { background: transparent; } }
.notes { margin-top: 30px; padding: 20px 22px; border-radius: 14px; background: rgba(246, 185, 43, .08); box-shadow: inset 3px 0 0 var(--gold); }
.notes h3 { margin: 0 0 8px; font-size: 17px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.notes p { font-size: 16.5px; margin: 0 0 .6em; color: #D3DBEC; }
.notes p:last-child { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 24px; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 16px 12px; } .photo figcaption { font-size: 13.5px; } .photo__title { -webkit-line-clamp: 4; } }
.photo { margin: 0; }
.photo__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--navy-2); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); cursor: zoom-in; }
.photo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.photo__img:hover img { transform: scale(1.06); }
.photo figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; font-size: 14.5px; line-height: 1.45; }
.photo__title { font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.photo__by { color: var(--muted); }
.photo figcaption a { color: var(--gold); font-weight: 500; text-decoration: none; margin-top: 2px; }
.photo figcaption a:hover { text-decoration: underline; }
.more { padding-top: 40px; }
.more__h { font-size: clamp(26px, 3vw, 36px); margin-bottom: 22px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 18px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--navy-3) transparent; }
.strip .card { scroll-snap-align: start; aspect-ratio: 4 / 5.2; }
.card--sm .card__title { font-size: 20px; }
.card--sm .card__body { padding: 18px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; color: var(--ink); }
.lightbox::backdrop { background: rgba(2, 8, 28, .88); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb .35s var(--spring); }
@keyframes lb { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox p { text-align: center; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.lightbox__close { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 400 30px/1 var(--font); cursor: pointer; }
.lightbox__close:hover { background: var(--gold); color: #061536; }

/* ---------------------------------------------------------------- plain pages */
.plain main { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 80px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 10px; }
.prose a:not(.btn) { color: var(--gold); text-underline-offset: 3px; }
.muted { color: var(--muted); }
.nf h1 { margin-bottom: 18px; }

/* ---------------------------------------------------------------- calm mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .shoot, .bird { display: none; }
}
