/* About page story. Light chapters for history, deep navy for the eagle, near-black for the live chapter. Pure CSS + story.js, no libraries. */
:root { --night: #04122B; --glow: #7FD6FF; --yrw: 300px; --gap: 56px; --head: 72px; }
.story { overflow-x: clip; }
.story h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.story p + p { margin-top: 16px; }
.story .copy { max-width: 62ch; display: grid; gap: 16px; }
.story .copy p { margin: 0; font-size: 1.08rem; }
.story .beat { font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.3 var(--display); color: var(--navy); margin: 8px 0; }
.dark .beat, .night .beat { color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold); color: var(--gold); border-radius: 40px; padding: 6px 14px; font: 700 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; width: fit-content; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s ease-in-out infinite; }
.tag.on-light { color: #8A5E00; border-color: #D9A21B; }
.tag.on-light::before { background: #D9A21B; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* reveal: only hidden when story.js has switched animation on */
.fx .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * .09s), transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * .09s); }
.fx .rv.in { opacity: 1; transform: none; }

/* opening */
.s-open { position: relative; color: #fff; background: var(--deep) url(img/hero.jpg) center 55% / cover; padding-block: 120px 110px; overflow: hidden; }
.s-open::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,28,63,.72), rgba(7,28,63,.94)); }
.s-open .wrap { position: relative; display: grid; gap: 22px; max-width: 920px; }
.s-open h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.s-open h1 em { color: var(--gold); font-style: italic; }
.s-open p { color: var(--on-dark); font-size: 1.15rem; max-width: 60ch; margin: 0; }
.s-open .first { font: italic 1.5rem var(--display); color: #fff; }
.cue { margin-top: 14px; display: flex; align-items: center; gap: 12px; color: var(--gold); font: 600 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.cue i { width: 2px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* four generations */
.s-gens { padding-block: 88px 40px; }
.s-gens .head { display: grid; gap: 10px; margin-bottom: 56px; max-width: 60ch; }
.gens { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 40px; }
.gens::before, .gens::after { content: ""; position: absolute; left: 36px; top: 40px; bottom: 40px; width: 2px; }
.gens::before { background: var(--line); }
.gens::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--p, 1)); }
.gen { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 28px; }
.medal { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font: 600 1.35rem var(--display); color: var(--navy); background: var(--paper); border: 2px solid var(--line); transition: background .6s, color .6s, border-color .6s, box-shadow .6s; }
.gen.in .medal, html:not(.fx) .medal { background: var(--navy); color: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 8px rgba(233,168,37,.16); }
.gen .card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; display: grid; gap: 14px; align-content: start; }
.gen .when { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.gen h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.gen .role { font: italic 1.12rem/1.5 var(--display); color: var(--muted); }
.gen .card p { margin: 0; color: var(--ink); }
.rules { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.rules li { padding-left: 26px; position: relative; font-weight: 600; color: var(--navy); }
.rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--gold); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.skills span { border: 1px solid var(--line); border-radius: 40px; padding: 7px 14px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: all .5s; }
.skills span.lit { background: var(--navy); border-color: var(--navy); color: #fff; }
.sea-word { font: italic 600 2.2rem var(--display); color: var(--sea); }
.next-link { font-weight: 600; color: var(--sea); }
@media (max-width: 640px) { .gen { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; } .medal { width: 52px; height: 52px; font-size: 1rem; } .gens::before, .gens::after { left: 25px; } .gen .card { padding: 22px 20px; } }

/* timeline chapters */
.chapter { padding-block: 84px; }
.chapter .grid { position: relative; display: grid; grid-template-columns: var(--yrw) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.yr { position: sticky; top: calc(var(--head) + 28px); font: 600 clamp(2.2rem, 3.6vw, 3.1rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.yr small { display: block; margin-top: 12px; -webkit-text-stroke: 0; font: 700 .72rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.spine { position: absolute; left: calc(var(--yrw) + var(--gap) / 2); top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold) calc(var(--p, 0) * 100%), var(--line) calc(var(--p, 0) * 100%)); }
.chapter .body { display: grid; gap: 28px; min-width: 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .chapter .grid { grid-template-columns: 1fr; gap: 20px; } .yr { position: static; } .spine { display: none; } .chapter { padding-block: 60px; } }
.strip { width: 100%; height: auto; max-height: 120px; }
.net { width: 100%; height: auto; max-width: 560px; }
.net line { stroke: var(--sea); stroke-width: 1.6; stroke-dasharray: 320; stroke-dashoffset: 0; }
.fx .net:not(.in) line { stroke-dashoffset: 320; }
.net line { transition: stroke-dashoffset 1.3s ease calc(var(--d, 0) * .18s); }
.net .flow { stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; stroke: var(--gold); }
@keyframes dash { to { stroke-dashoffset: -22; } }
.net circle { fill: var(--paper); stroke: var(--navy); stroke-width: 2; }
.net .core { fill: var(--gold); stroke: none; }
.net text { font: 600 12px var(--body); fill: var(--navy); text-anchor: middle; }
.fx .net .nd { opacity: 0; transition: opacity .6s calc(var(--d, 0) * .18s); }
.fx .net.in .nd { opacity: 1; }

/* 1996: AMAL */
.story .big-amal { display: flex; gap: .04em; font: 600 clamp(4rem, 12vw, 8.5rem)/.95 var(--display); color: var(--navy); letter-spacing: .02em; }
.story .big-amal span { display: inline-block; }
.fx .story .big-amal span { opacity: 0; transform: translateY(40px) scale(.9); transition: all .9s cubic-bezier(.2,.7,.2,1) calc(var(--d) * .12s); }
.fx .story .big-amal.in span { opacity: 1; transform: none; }
.route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.route .end { font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.route .track { position: relative; display: flex; justify-content: space-around; padding-block: 34px 0; }
.route .track::before, .route .track::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; }
.route .track::before { background: var(--line); }
.route .track::after { background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 1)); }
.route .track b { position: relative; font: 600 .95rem var(--body); color: var(--navy); }
.route .track b::before { content: ""; position: absolute; left: 50%; top: -30px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
@media (max-width: 640px) { .route { grid-template-columns: 1fr; } .route .track { flex-wrap: wrap; gap: 6px 18px; } }
.chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chain span { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .5s; }
.chain span.lit { background: var(--navy); border-color: var(--navy); color: #fff; }
.chain i { font-style: normal; color: var(--sea); }
.states { display: flex; flex-wrap: wrap; gap: 8px; }
.states span { background: #E6EEF8; border-radius: 40px; padding: 6px 14px; font-size: .85rem; font-weight: 500; color: var(--navy); }
.listy { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.listy li { padding-left: 20px; position: relative; color: var(--muted); }
.listy li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--gold); }

/* eagle stage */
.stage { position: relative; background: radial-gradient(120% 90% at 30% 30%, #123C7A 0%, var(--navy) 45%, var(--deep) 100%); color: #fff; }
.stage .pin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; max-width: var(--wrap); margin-inline: auto; padding: 24px 20px; }
.fx .stage { height: 420vh; }
.fx .stage .pin { position: sticky; top: var(--head); height: calc(100svh - var(--head)); padding-block: 24px; }
.imap { width: 100%; height: 100%; max-height: 100%; min-height: 0; }
.stage .imap { min-height: 420px; }
.fx .stage .imap { min-height: 0; }
.imap .land { fill: rgba(220,230,245,.08); stroke: rgba(220,230,245,.5); stroke-width: 1.4; stroke-linejoin: round; }
.imap .hub { fill: var(--gold); transition: opacity .3s; }
.imap .hubname { font: 500 9.5px var(--body); fill: rgba(220,230,245,.75); }
.imap .ring { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.eagle-copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
.eagle-copy .lines { position: relative; display: grid; gap: 6px; font: 600 clamp(1.7rem, 3.4vw, 2.7rem)/1.15 var(--display); }
.fx .eagle-copy .lines { display: block; height: 2.7em; }
.fx .eagle-copy .lines span { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(14px); transition: all .5s; }
.fx .eagle-copy .lines span.on { opacity: 1; transform: none; }
.eagle-copy .lines b { color: var(--gold); font-weight: 600; }
.eagle-copy p { margin: 0; color: var(--on-dark); font-size: 1rem; }
.eq { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.eq span { border: 1px solid rgba(220,230,245,.35); border-radius: 8px; padding: 8px 12px; font: 600 .85rem var(--body); color: var(--on-dark); transition: all .4s; }
.eq span.lit { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.eq i { font-style: normal; color: var(--gold); }
@media (max-width: 900px) { .stage .pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px; } .eagle-copy { gap: 10px; } .eagle-copy .lines { height: 3.6em; font-size: 1.35rem; } .eagle-copy > p { font-size: .88rem; } .eq span { padding: 5px 8px; font-size: .74rem; } .imap .hubname { display: none; } }
.integrity { padding-block: 80px; background: var(--deep); color: #fff; text-align: center; }
.integrity .wrap { display: grid; gap: 14px; justify-items: center; max-width: 760px; }
.integrity h2 { color: var(--gold); font-size: clamp(2.4rem, 6vw, 4rem); }
.integrity p { margin: 0; color: var(--on-dark); font-size: 1.1rem; }

/* next generation */
.swap { display: grid; gap: 10px; }
.swap .old { position: relative; width: fit-content; font: 600 1.5rem var(--display); color: var(--muted); }
.swap .old::after { content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 3px; background: var(--gold); transform-origin: left; transform: scaleX(var(--p2, 1)); }
.swap .new { font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.25 var(--display); color: var(--navy); }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.steps li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--gold); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offers { display: flex; flex-wrap: wrap; gap: 8px; }
.offers span { background: var(--navy); color: #fff; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: .9rem; }

/* 2026: live */
.night { background: linear-gradient(180deg, var(--ice) 0, var(--night) 220px); color: #fff; }
.night .stage { background: transparent; }
.fx .night .stage { height: 260vh; }
.fx .night .stage.tall { height: 360vh; }
.night .pin { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.glow-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 45%, rgba(127,214,255,.14), transparent 70%), linear-gradient(rgba(127,214,255,.06) 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, rgba(127,214,255,.06) 1px, transparent 1px) 0 0 / 56px 100%; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.live { display: grid; gap: 18px; justify-items: center; position: relative; }
.live .year { font: 600 clamp(1.4rem, 3vw, 2rem) var(--display); color: var(--gold); letter-spacing: .1em; }
.live h2 { color: #fff; font-size: clamp(2rem, 6.4vw, 4.8rem); line-height: 1.08; min-height: 2.2em; max-width: 15ch; margin-inline: auto; }
.live h2 .cur { display: inline-block; width: .08em; height: .9em; margin-left: 6px; background: var(--gold); vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live p { margin: 0; color: var(--on-dark); max-width: 56ch; font-size: 1.08rem; }
.swarm { width: min(100%, 880px); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fx .swarm { position: relative; display: block; height: min(56vh, 460px); }
.fx .swarm .q { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.swarm .q { white-space: nowrap; border: 1px solid rgba(127,214,255,.45); color: var(--glow); border-radius: 40px; padding: 8px 16px; font: 500 .95rem var(--body); background: rgba(4,18,43,.7); will-change: transform; }
.swarm .brain { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 600 1.05rem/1.2 var(--display); color: var(--night); background: radial-gradient(circle, #fff, var(--glow)); box-shadow: 0 0 60px rgba(127,214,255,.6); }
.fx .swarm .brain { position: absolute; left: 50%; top: 50%; margin: -85px 0 0 -85px; transform: scale(calc(.25 + var(--b, 0) * .75)); opacity: calc(.15 + var(--b, 0)); }
.hint { color: var(--glow) !important; font: 600 .78rem var(--body) !important; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 640px) { .swarm .q { font-size: .78rem; padding: 6px 11px; } .swarm .brain { width: 120px; height: 120px; font-size: .85rem; } .fx .swarm .brain { margin: -60px 0 0 -60px; } }
.path4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 1000px; align-items: start; position: relative; }
.path4 .n { position: relative; display: grid; gap: 10px; justify-items: center; padding-inline: 10px; transition: opacity .6s, transform .6s; }
.fx .path4 .n { opacity: .3; }
.fx .path4 .n.lit { opacity: 1; }
.path4 .n .dot { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--glow); color: var(--glow); font: 600 1.4rem var(--display); background: rgba(4,18,43,.8); position: relative; z-index: 1; }
.path4 .n.lit .dot { box-shadow: 0 0 40px rgba(127,214,255,.5); }
.path4 .n.ai .dot { background: radial-gradient(circle, #fff, var(--glow)); color: var(--night); }
.path4 .n.ai.lit .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--glow); animation: radar 2.2s ease-out infinite; }
@keyframes radar { to { transform: scale(1.9); opacity: 0; } }
.path4 .n h3 { color: #fff; font-size: 1.15rem; }
.path4 .n span { color: var(--on-dark); font-size: .88rem; }
.path4 .link { position: absolute; top: 42px; height: 2px; left: calc(12.5% + 42px); right: calc(12.5% + 42px); background: rgba(127,214,255,.25); }
.path4 .link i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--glow); box-shadow: 0 0 12px var(--glow); }
@media (max-width: 700px) { .path4 { grid-template-columns: 1fr; gap: 22px; } .path4 .link { display: none; } .path4 .n { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 16px; } .path4 .n .dot { width: 64px; height: 64px; grid-row: span 2; } }
.vision { padding-block: 40px 90px; }
.vision .wrap { display: grid; gap: 28px; max-width: 820px; justify-items: center; text-align: center; }
.vision h2 { color: #fff; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: min(100%, 460px); position: relative; }
.flow li { position: relative; padding: 14px 18px; border: 1px solid rgba(127,214,255,.25); border-radius: 12px; color: #fff; font-weight: 600; transition: all .5s; margin-bottom: 26px; background: rgba(4,18,43,.6); }
.flow li:last-child { margin-bottom: 0; }
.flow li::after { content: "↓"; position: absolute; left: 50%; bottom: -26px; width: 26px; margin-left: -13px; color: rgba(127,214,255,.4); transition: color .5s; line-height: 26px; }
.flow li:last-child::after { display: none; }
.fx .flow li { color: rgba(220,230,245,.5); }
.flow li.lit, html:not(.fx) .flow li { color: #fff; border-color: var(--glow); box-shadow: 0 0 24px rgba(127,214,255,.22); }
.flow li.lit::after { color: var(--glow); }
.vision .one { font: italic 1.4rem var(--display); color: var(--gold); }
.finale { padding-block: 70px 150px; background: linear-gradient(180deg, var(--night) 0, var(--night) 72%, var(--ice) 100%); color: #fff; }
.finale .wrap { display: grid; gap: 56px; justify-items: center; text-align: center; max-width: 820px; }
.finale h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
.finale h2 em { color: var(--gold); }
.shift { display: grid; gap: 14px; }
.shift div { display: flex; gap: 14px; justify-content: center; align-items: baseline; flex-wrap: wrap; font: 600 clamp(1.1rem, 2.4vw, 1.5rem) var(--display); color: rgba(220,230,245,.55); }
.shift div b { color: #fff; font-weight: 600; }
.shift div i { font-style: normal; color: var(--gold); }
.vows { display: grid; gap: 10px; }
.vows p { margin: 0; font: 600 clamp(1.3rem, 3vw, 2rem)/1.2 var(--display); }
.vows p:nth-child(odd) { color: #fff; }
.vows p:nth-child(even) { color: var(--gold); }
.signoff { display: grid; gap: 12px; justify-items: center; }
.signoff svg { width: 84px; }
.signoff .brandline { font: 400 clamp(1.4rem, 3vw, 2rem) var(--mark); letter-spacing: .1em; color: #fff; }
.signoff .gate { font: italic 1.5rem var(--display); color: var(--gold); }
.signoff .four { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.signoff .four span { border: 1px solid rgba(220,230,245,.35); border-radius: 40px; padding: 6px 16px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }

/* kept sections */
.s-keep { padding-top: 0; }
.s-keep.first { padding-top: 24px; }

/* still: no motion for reduced-motion viewers (story.js leaves html.fx off) */
@media (prefers-reduced-motion: reduce) { .tag::before, .cue i, .net .flow, .steps li::before, .path4 .n.ai.lit .dot::after, .live h2 .cur { animation: none; } }

/* eagle stage without side text */
.stage .pin.solo { grid-template-columns: 1fr; justify-items: center; }
.pin.solo .imap { max-width: 560px; }
.fx .stage.short { height: 280vh; }

/* wing beat on the AMAL eagle (pivots sit where each wing joins the body) */
.fx #eagle .wing { transform-box: fill-box; animation: beat .9s ease-in-out infinite alternate; }
.fx #eagle .wl { transform-origin: 36% 67%; --a: 3deg; }
.fx #eagle .wr { transform-origin: 57% 64%; --a: -3deg; }
@keyframes beat { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) * -1.4)); } }
