/* Kosta Marine · landing pública. Ilustrações e animações artesanais, sem dependências externas. */
@property --beam-o { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ring { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --needle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --navy: #0d1a36; --deep: #081424; --teal: #1f6f73; --foam: #bfe3dc; --cream: #f7efe2; --sand: #e9dcc3;
  --gold: #e2b86b; --red: #c8483a; --green: #2e8b57; --amber: #c98a1b;
  --hz: 64vh; --shade: #0b1630; --shadek: 0%; --lamp: 0; --flagk: 0; --flagp: 0; --hook: 0; --prov: 0;
  --gutter: clamp(16px, 5vw, 88px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.landing { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--deep); color: var(--cream); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 10px; background: var(--cream); color: var(--navy); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
main { position: relative; z-index: 2; outline: none; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#22365f, #7b76a3 55%, #f4b08a 64%, #1a2c45 64.1%, #0b1526); contain: strict; }
.sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-shade { position: absolute; inset: 0; background: radial-gradient(130% 100% at 62% 38%, transparent 55%, rgba(2, 8, 20, .38)); }
.ship, .port, .buoy { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.ship { width: clamp(300px, 40vw, 660px); aspect-ratio: 600 / 152; }
html:not(.js) .ship, html:not(.js) .port, html:not(.js) .buoy, html:not(.js) .route-ship { display: none; }
.ship-bob { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; animation: bob 7s ease-in-out infinite; }
.ship.is-docked .ship-bob { animation-duration: 11s; }
.ship-art, .ship-reflection { position: absolute; left: 0; width: 100%; height: 100%; overflow: visible; }
.ship-art { top: 0; }
.ship-reflection { top: 100%; height: 55%; transform: scaleY(-1); opacity: .26; -webkit-mask-image: linear-gradient(to top, #000, transparent 80%); mask-image: linear-gradient(to top, #000, transparent 80%); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(1.5px) rotate(.45deg); } 70% { transform: translateY(-1px) rotate(-.4deg); } }

/* scene palette: every fill is mixed with the sky shade as light fades */
.stage { --mix: var(--shade) var(--shadek); }
.s-hull { fill: #172b3a; fill: color-mix(in srgb, #172b3a, var(--mix)); }
.s-boot { fill: #a83a2f; fill: color-mix(in srgb, #a83a2f, var(--mix)); }
.s-white { fill: #eef2f3; fill: color-mix(in srgb, #eef2f3, var(--mix)); }
.s-white2 { fill: #c6d2d7; fill: color-mix(in srgb, #c6d2d7, var(--mix)); }
.s-funnel { fill: #1f5f67; fill: color-mix(in srgb, #1f5f67, var(--mix)); }
.s-band { fill: #e2b86b; fill: color-mix(in srgb, #e2b86b, var(--mix)); }
.s-win path { fill: #2a4050; fill: color-mix(in srgb, #2a4050, var(--mix)); }
.s-mast, .s-anchor, .s-rope, .halyard { fill: none; stroke: #2b3b47; stroke: color-mix(in srgb, #2b3b47, var(--mix)); stroke-width: 2; }
.halyard { stroke-width: .8; }
.s-deckline { fill: none; stroke: #3c5668; stroke: color-mix(in srgb, #3c5668, var(--mix)); stroke-width: 2; }
.s-name { font: 700 9px var(--sans); letter-spacing: 2px; fill: #eef2f3; fill: color-mix(in srgb, #eef2f3, var(--mix)); }
.c1 { fill: #2f7d7a; fill: color-mix(in srgb, #2f7d7a, var(--mix)); }
.c2 { fill: #b8573d; fill: color-mix(in srgb, #b8573d, var(--mix)); }
.c3 { fill: #2c4a6e; fill: color-mix(in srgb, #2c4a6e, var(--mix)); }
.c4 { fill: #d9b26f; fill: color-mix(in srgb, #d9b26f, var(--mix)); }
.c5 { fill: #8a979f; fill: color-mix(in srgb, #8a979f, var(--mix)); }
.c6 { fill: #e7ebe4; fill: color-mix(in srgb, #e7ebe4, var(--mix)); }
.s-lit { opacity: var(--lamp); }
.s-lit path { fill: #ffd98a; }
.s-lamp { fill: #fff6dc; filter: drop-shadow(0 0 3px #ffe7a8); }
.s-green { fill: #5dff9c; filter: drop-shadow(0 0 3px #5dff9c); }
.flag { transition: none; }
.flag-k { opacity: var(--flagk); transform: translateY(calc((1 - var(--flagk)) * 46px)); }
.flag-p { opacity: var(--flagp); transform: translateY(calc((1 - var(--flagp)) * 46px)); }
.flag-cloth { transform-box: fill-box; transform-origin: 100% 0; animation: flutter 1.6s ease-in-out infinite; }
.flag-p .flag-cloth { animation-delay: -.5s; }
@keyframes flutter { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.94); } }
.provisions { opacity: var(--prov); }

.port { width: clamp(560px, 58vw, 1060px); aspect-ratio: 800 / 300; }
.port-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.p-hill { fill: #7d97ac; fill: color-mix(in srgb, #8aa2b5, var(--shade) calc(var(--shadek) * .9 + 18%)); opacity: .75; }
.p-hill2 { fill: #6f889b; fill: color-mix(in srgb, #6f889b, var(--shade) calc(var(--shadek) + 10%)); opacity: .9; }
/* acropolis, ~8 km inland: hazier than the quay, silhouetted at dusk, floodlit in gold after dark */
.a-far { fill: #9fb2c2; fill: color-mix(in srgb, #a3b6c6, var(--shade) calc(var(--shadek) * .9 + 24%)); opacity: .45; }
.a-rock { fill: #aca28f; fill: color-mix(in srgb, #bcae94, var(--shade) calc(var(--shadek) * .95 + 24%)); }
.a-cliff { fill: #928f88; fill: color-mix(in srgb, #938d82, var(--shade) calc(var(--shadek) + 26%)); }
.a-trees { fill: #74847a; fill: color-mix(in srgb, #6c7f70, var(--shade) calc(var(--shadek) + 32%)); }
.a-wall { fill: #bdb6a4; fill: color-mix(in srgb, color-mix(in srgb, #c8bfa9, var(--shade) calc(var(--shadek) * .95 + 20%)), #b98f52 calc(var(--lamp) * 40%)); }
.a-marble { fill: #e2dccd; fill: color-mix(in srgb, color-mix(in srgb, #ece5d4, var(--shade) calc(var(--shadek) * .9 + 16%)), #f5c97a calc(var(--lamp) * 82%)); }
.a-face { fill: #eee8da; fill: color-mix(in srgb, color-mix(in srgb, #f7f1e3, var(--shade) calc(var(--shadek) * .9 + 13%)), #ffdc98 calc(var(--lamp) * 88%)); }
.a-void { fill: #7a808a; fill: color-mix(in srgb, #717b87, var(--shade) calc(var(--shadek) + 14%)); }
.a-glow { opacity: calc(var(--lamp) * .34); }
.p-rock { fill: #3a4a55; fill: color-mix(in srgb, #3a4a55, var(--mix)); }
.p-land { fill: #7f8a8f; fill: color-mix(in srgb, #8d979b, var(--mix)); }
.p-quay { fill: #c9cfd1; fill: color-mix(in srgb, #c9cfd1, var(--mix)); }
.p-quayface { fill: #4f5a60; fill: color-mix(in srgb, #4f5a60, var(--mix)); }
.p-white { fill: #eef2f3; fill: color-mix(in srgb, #eef2f3, var(--mix)); }
.p-red { fill: #c8483a; fill: color-mix(in srgb, #c8483a, var(--mix)); }
.p-dark { fill: #26343d; fill: color-mix(in srgb, #26343d, var(--mix)); }
.p-glass { fill: #fff1c2; fill: color-mix(in srgb, #9fb8c2, #fff1c2 calc(var(--lamp) * 100%)); }
.p-crane { fill: #c0533a; fill: color-mix(in srgb, #c0533a, var(--mix)); }
.p-tie, .p-rope, .p-pole { fill: none; stroke: #6d3a2c; stroke: color-mix(in srgb, #6d3a2c, var(--mix)); stroke-width: 1.4; }
.p-pole { stroke: #4a555b; stroke-width: 1.6; }
.p-wall { fill: #d8d2c4; fill: color-mix(in srgb, #d8d2c4, var(--mix)); }
.p-roof { fill: #8f9da4; fill: color-mix(in srgb, #8f9da4, var(--mix)); }
.p-sign { fill: #1f5f67; fill: color-mix(in srgb, #1f5f67, var(--mix)); }
.p-signtext { font: 700 6px var(--sans); letter-spacing: .5px; fill: #f7efe2; text-anchor: middle; }
.y1 { fill: #6f8f94; fill: color-mix(in srgb, #6f8f94, var(--mix)); }
.y2 { fill: #a86a55; fill: color-mix(in srgb, #a86a55, var(--mix)); }
.y3 { fill: #52677f; fill: color-mix(in srgb, #52677f, var(--mix)); }
.y4 { fill: #c4ab80; fill: color-mix(in srgb, #c4ab80, var(--mix)); }
.p-warn { fill: #8a2b22; }
.p-lights { opacity: var(--lamp); }
.p-lights circle, .p-lights path:not(.p-pole) { fill: #ffe2a0; }
.p-lights circle { filter: drop-shadow(0 0 4px #ffcf6b); }
.p-lights .red { fill: #ff4d3d; filter: drop-shadow(0 0 4px #ff4d3d); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
.hook { transform: translateY(calc(var(--hook) * 80px)); opacity: var(--pal, 1); }
.cable { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(calc(1 + var(--hook) * 8)); }
.beam { position: absolute; top: 46.6%; right: 97.5%; width: 110vw; height: 22vh; margin-top: -11vh; transform-origin: 100% 50%; background: linear-gradient(to left, rgba(255, 238, 190, .5), rgba(255, 238, 190, .12) 45%, rgba(255, 238, 190, 0)); clip-path: polygon(0 0, 100% 48%, 100% 52%, 0 100%); opacity: calc(var(--lamp) * .9); animation: sweep 9s linear infinite; }
.flare { position: absolute; left: 2.5%; top: 46.6%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(#fffbe8 0 12%, rgba(255, 226, 150, .55) 28%, rgba(255, 210, 120, 0) 70%); opacity: var(--lamp); animation: flare 9s linear infinite; }
@keyframes sweep { 0% { transform: scaleX(1); } 24.9% { transform: scaleX(.02); } 25% { transform: scaleX(-.02); } 50% { transform: scaleX(-1); } 74.9% { transform: scaleX(-.02); } 75% { transform: scaleX(.02); } 100% { transform: scaleX(1); } }
@keyframes flare { 0%, 16%, 34%, 100% { transform: scale(.55); } 25% { transform: scale(2.4); } }

.buoy { width: clamp(16px, 1.6vw, 26px); aspect-ratio: 1 / 2; }
.buoy svg { width: 100%; height: 100%; overflow: visible; animation: buoy 4.2s ease-in-out infinite; transform-origin: 50% 90%; }
.buoy-green svg { animation-delay: -2s; }
@keyframes buoy { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(2px); } }
.b-red { fill: #c8483a; fill: color-mix(in srgb, #c8483a, var(--mix)); }
.b-green { fill: #2e8b57; fill: color-mix(in srgb, #2e8b57, var(--mix)); }
.b-band { fill: #eef2f3; fill: color-mix(in srgb, #eef2f3, var(--mix)); }
.b-base { fill: #26343d; }
.b-cage { stroke: #26343d; stroke-width: 2; }
.b-light { opacity: var(--lamp); animation: blink 3s steps(1) infinite; }
.b-light.red { fill: #ff5a48; filter: drop-shadow(0 0 4px #ff5a48); }
.b-light.green { fill: #5dff9c; filter: drop-shadow(0 0 4px #5dff9c); animation-delay: -1.3s; }

.gulls { position: absolute; left: 0; top: 14vh; width: 100%; height: 24vh; opacity: var(--gulls, 1); }
.gull { position: absolute; width: 28px; fill: none; stroke: #203440; stroke-width: 1.6; stroke-linecap: round; animation: glide 46s linear infinite, flap .9s ease-in-out infinite alternate; }
.gull.g1 { top: 20%; animation-delay: -8s, 0s; }
.gull.g2 { top: 48%; width: 20px; animation-duration: 58s, .75s; animation-delay: -30s, -.3s; }
.gull.g3 { top: 8%; width: 16px; animation-duration: 70s, .8s; animation-delay: -52s, -.5s; }
@keyframes glide { from { translate: -8vw 0; } to { translate: 108vw -6vh; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

/* ---------- top bar & route ---------- */
.topbar { position: fixed; z-index: 20; inset: 0 0 auto 0; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); color: var(--cream); transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.topbar.is-scrolled { background: rgba(6, 16, 30, .62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--sans); letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.brand b { font-weight: 400; opacity: .8; }
.toplinks { display: flex; gap: 4px; margin-left: auto; }
.toplinks a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .92rem; opacity: .88; }
.toplinks a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.topclock { display: flex; align-items: baseline; gap: 8px; font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.clock { font-size: 1rem; letter-spacing: .04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.topprogress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.topprogress i { display: block; height: 100%; background: linear-gradient(90deg, var(--foam), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

.route { position: fixed; z-index: 15; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); }
.route ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.route ol::before { content: ""; position: absolute; right: 4px; top: 4px; bottom: 4px; border-right: 1px dashed rgba(247, 239, 226, .4); }
.route a { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-direction: row-reverse; text-decoration: none; min-height: 18px; }
.route-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: rgba(8, 20, 36, .7); border: 1.5px solid rgba(247, 239, 226, .75); transition: transform .3s, background .3s; }
.route-label { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; white-space: nowrap; padding: 6px 9px; border-radius: 7px; background: rgba(6, 16, 30, .72); color: var(--cream); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.route-label time { color: var(--gold); margin-right: 4px; }
.route a:hover .route-label, .route a:focus-visible .route-label { opacity: 1; transform: none; }
.route a[aria-current="step"] .route-dot { background: var(--gold); border-color: var(--gold); transform: scale(1.35); }
.route-ship { position: absolute; right: -3px; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--gold); transform: translateY(calc(var(--route-y, 0px) - 3px)); transition: transform .12s linear; pointer-events: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--cream); color: var(--navy); font: 650 1rem/1 var(--sans); text-decoration: none; box-shadow: 0 10px 30px rgba(3, 10, 24, .35); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(3, 10, 24, .45); background: #fff; }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .92rem; box-shadow: none; }
.btn--ghost { background: rgba(8, 20, 36, .35); color: var(--cream); border-color: rgba(247, 239, 226, .55); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(8, 20, 36, .55); }
.btn--link { background: none; color: var(--cream); box-shadow: none; padding: 0 8px; text-decoration: underline; text-decoration-color: rgba(247, 239, 226, .4); text-underline-offset: 6px; }
.btn--link:hover { background: none; box-shadow: none; text-decoration-color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.cta-row--center { justify-content: center; }

/* ---------- hero ---------- */
.chapter { position: relative; display: flex; align-items: center; min-height: 150vh; padding: 22vh var(--gutter); overflow-x: clip; }
.hero { min-height: 100vh; min-height: 100svh; align-items: flex-start; flex-direction: column; justify-content: space-between; padding-top: clamp(96px, 17vh, 180px); padding-bottom: 28px; }
.hero-inner { position: relative; max-width: 48rem; }
.hero-inner::before { content: ""; position: absolute; inset: -18% -30% -14% -24%; z-index: -1; background: radial-gradient(closest-side, rgba(6, 14, 34, .42), transparent); pointer-events: none; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 22px; font: 500 .78rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 239, 226, .82); }
.kicker span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
.hero-title { margin: 0; font: 400 clamp(3.4rem, 8.4vw, 7.6rem)/.95 var(--serif); letter-spacing: -.025em; color: var(--cream); text-shadow: 0 2px 30px rgba(4, 10, 28, .35); }
.hero-title .w { display: inline-block; }
.hero-title .w + .w { font-style: italic; color: #f3d9b1; }
.hero-motto { margin: 18px 0 0; font: italic 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.3 var(--serif); color: #f6e3c6; }
.hero-lede { max-width: 36rem; margin: 18px 0 30px; font-size: clamp(1rem, 1.3vw, 1.14rem); color: rgba(247, 239, 226, .9); }
.js .hero-title .w, .js .hero-motto, .js .hero-lede, .js .hero .cta-row, .js .hero .kicker { animation: rise-in 1.3s cubic-bezier(.2, .7, .1, 1) both; }
.js .hero-title .w + .w { animation-delay: .12s; }
.js .hero-motto { animation-delay: .35s; }
.js .hero-lede { animation-delay: .5s; }
.js .hero .cta-row { animation-delay: .65s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
.scroll-cue { position: absolute; right: calc(var(--gutter) + 40px); bottom: 150px; display: grid; justify-items: center; gap: 8px; text-decoration: none; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 239, 226, .8); }
.scroll-cue svg { width: 44px; height: 44px; animation: needle 5s ease-in-out infinite; }
.scroll-cue circle { fill: rgba(6, 16, 30, .35); stroke: rgba(247, 239, 226, .6); }
.needle-n { fill: var(--gold); } .needle-s { fill: rgba(247, 239, 226, .6); }
@keyframes needle { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } }

/* ---------- entries (log pages) ---------- */
.entry { --ink: #13232d; --muted: #475862; --line: rgba(19, 35, 45, .14); --paper: #fffdf8; --accent: #1b6a6e; --accent2: #b0452f; --chip: #eef4f1;
  position: relative; width: min(100%, 36rem); padding: clamp(24px, 3vw, 40px); border-radius: 22px; color: var(--ink); background: rgba(250, 247, 240, .93); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 30px 80px -30px rgba(3, 12, 28, .55), 0 2px 0 rgba(255, 255, 255, .5) inset; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.entry::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 38%); mask-image: linear-gradient(135deg, #000, transparent 38%); }
[data-tone="night"] .entry, [data-tone="dusk"] .entry { --ink: #eef3f4; --muted: #b7c6cd; --line: rgba(238, 243, 244, .12); --paper: rgba(255, 255, 255, .05); --accent: #e2b86b; --accent2: #ff9b7a; --chip: rgba(255, 255, 255, .07); background: rgba(8, 19, 34, .8); border-color: rgba(255, 255, 255, .09); }
[data-tone="dusk"] .entry { background: rgba(28, 20, 42, .8); }
.entry > * { position: relative; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 18px; font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.entry-meta > * + *::before { content: "/"; margin-right: 12px; opacity: .45; }
.entry-meta time { color: var(--accent); font-weight: 700; }
.entry-no { color: var(--ink); font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.entry h2 { margin: 0 0 14px; font: 400 clamp(1.85rem, 3vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.entry h2 em, .finale h2 em { color: var(--accent); }
.entry > p:not([class]) { margin: 0 0 22px; color: var(--muted); font-size: 1.02rem; text-wrap: pretty; }
.features { display: grid; gap: 8px; margin: 22px 0 18px; padding: 0; list-style: none; font-size: .93rem; }
.features li { position: relative; padding-left: 24px; }
.features li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.status { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 7px 13px; border-radius: 999px; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--chip); border: 1px solid var(--line); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status--live::before { background: var(--green); box-shadow: 0 0 0 3px rgba(46, 139, 87, .22); }
.status--next::before { border: 2px dashed var(--amber); width: 6px; height: 6px; }
.status--mixed::before { background: linear-gradient(90deg, var(--green) 50%, var(--amber) 50%); }
.js .entry { opacity: 0; transform: translateY(48px) scale(.985); transition: opacity 1s cubic-bezier(.2, .7, .1, 1), transform 1s cubic-bezier(.2, .7, .1, 1); }
.js .entry.in { opacity: 1; transform: none; }

/* ---------- vignettes ---------- */
.vignette { margin: 0 0 4px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.js .vignette * { animation-play-state: paused; }
.chapter.is-live .vignette * { animation-play-state: running; }

/* 1 · import */
.v-import { display: grid; grid-template-columns: 1.15fr auto 1fr; align-items: center; gap: 10px; }
.sheet { position: relative; border-radius: 8px; background: #fff; border: 1px solid #d5dde0; box-shadow: 0 8px 18px -10px rgba(19, 35, 45, .4); overflow: hidden; transform: rotate(-2deg); color: #13232d; }
.sheet-head { display: flex; justify-content: space-between; padding: 6px 8px; font: 700 .56rem/1 var(--mono); letter-spacing: .04em; background: #1f6f45; color: #fff; }
.sheet-grid { display: grid; grid-template-columns: auto 1fr auto auto; font: .54rem/1.2 var(--mono); }
.sheet-grid span { padding: 5px 5px; border-right: 1px solid #e2e7e9; border-bottom: 1px solid #e2e7e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-grid span:nth-child(-n+4) { background: #eef3f0; font-weight: 700; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 21px; background: linear-gradient(90deg, rgba(31, 111, 115, 0), rgba(31, 111, 115, .22), rgba(31, 111, 115, 0)); border-top: 1px solid rgba(31, 111, 115, .5); border-bottom: 1px solid rgba(31, 111, 115, .5); opacity: 0; animation: scan 8s ease-in-out infinite; }
@keyframes scan { 0%, 4% { transform: translateY(41px); opacity: 0; } 8% { opacity: 1; } 8%, 20% { transform: translateY(41px); } 28%, 40% { transform: translateY(62px); } 48%, 60% { transform: translateY(83px); } 68%, 80% { transform: translateY(104px); opacity: 1; } 86%, 100% { transform: translateY(104px); opacity: 0; } }
.ai-spark { display: grid; justify-items: center; gap: 2px; color: var(--accent); font: 700 .66rem/1 var(--mono); }
.ai-spark svg { width: 24px; height: 24px; fill: currentColor; animation: spark 2s ease-in-out infinite; }
@keyframes spark { 50% { transform: rotate(45deg) scale(.8); opacity: .7; } }
.items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .74rem; line-height: 1.3; }
.items li { padding: 7px 9px; border-radius: 9px; background: color-mix(in srgb, var(--paper) 80%, var(--accent) 6%); border: 1px solid var(--line); animation: 8s cubic-bezier(.2, .7, .1, 1) infinite both; }
.items b { display: block; font: 700 .62rem/1.2 var(--mono); color: var(--muted); }
.items em { display: inline-block; margin-top: 3px; font: 700 .6rem/1 var(--sans); font-style: normal; letter-spacing: .04em; padding: 3px 6px; border-radius: 5px; }
.items .ok { background: rgba(46, 139, 87, .14); color: #1e6b42; }
.items .warn { background: rgba(201, 138, 27, .18); color: #8a5a06; }
[data-tone="night"] .items .ok { color: #8fe0b0; } [data-tone="night"] .items .warn { color: #f3c46b; }
.items li:nth-child(1) { animation-name: item1; } .items li:nth-child(2) { animation-name: item2; } .items li:nth-child(3) { animation-name: item3; } .items li:nth-child(4) { animation-name: item4; }
@keyframes item1 { 0%, 14% { opacity: 0; transform: translateX(-14px); } 22%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes item2 { 0%, 34% { opacity: 0; transform: translateX(-14px); } 42%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes item3 { 0%, 54% { opacity: 0; transform: translateX(-14px); } 62%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes item4 { 0%, 74% { opacity: 0; transform: translateX(-14px); } 82%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* 2 · rfq */
.v-rfq { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 16px; }
.rose { width: 100%; height: auto; overflow: visible; }
.r-ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.r-ring2 { stroke-dasharray: 2 4; }
.r-ticks { stroke: var(--muted); stroke-width: 1.4; }
.r-star { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 1; }
.r-star2 { fill: var(--accent); opacity: .85; }
.r-route { fill: none; stroke: var(--accent2); stroke-width: 1.2; stroke-dasharray: 3 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.r-labels text { font: 700 10px var(--mono); fill: var(--muted); text-anchor: middle; }
.r-hub { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.env rect { fill: var(--paper); stroke: var(--accent2); stroke-width: 1.4; }
.env path { fill: none; stroke: var(--accent2); stroke-width: 1.2; }
.env { transform: translate(110px, 110px); animation: 5s cubic-bezier(.4, 0, .2, 1) infinite; }
.env.e1 { animation-name: e1; } .env.e2 { animation-name: e2; animation-delay: .25s; } .env.e3 { animation-name: e3; animation-delay: .5s; } .env.e4 { animation-name: e4; animation-delay: .75s; }
@keyframes e1 { 0% { transform: translate(110px, 110px) scale(.4); opacity: 0; } 8% { opacity: 1; } 40%, 55% { transform: translate(110px, 26px) scale(1); opacity: 1; } 90% { transform: translate(110px, 110px) scale(.5); opacity: .2; } 100% { opacity: 0; } }
@keyframes e2 { 0% { transform: translate(110px, 110px) scale(.4); opacity: 0; } 8% { opacity: 1; } 40%, 55% { transform: translate(194px, 110px) scale(1); opacity: 1; } 90% { transform: translate(110px, 110px) scale(.5); opacity: .2; } 100% { opacity: 0; } }
@keyframes e3 { 0% { transform: translate(110px, 110px) scale(.4); opacity: 0; } 8% { opacity: 1; } 40%, 55% { transform: translate(110px, 194px) scale(1); opacity: 1; } 90% { transform: translate(110px, 110px) scale(.5); opacity: .2; } 100% { opacity: 0; } }
@keyframes e4 { 0% { transform: translate(110px, 110px) scale(.4); opacity: 0; } 8% { opacity: 1; } 40%, 100% { transform: translate(26px, 110px) scale(1); opacity: 1; } }
.offers { width: 100%; border-collapse: collapse; font-size: .76rem; }
.offers caption { text-align: left; font: 700 .66rem/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); padding-bottom: 8px; }
.offers th { text-align: left; font: 700 .6rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.offers td { padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.offers td:last-child, .offers th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.offers .best td { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 700; animation: best 5s ease-in-out infinite; }
.offers .best td:first-child { border-radius: 8px 0 0 8px; } .offers .best td:last-child { border-radius: 0 8px 8px 0; }
.offers .best td:last-child::after { content: " ★"; color: var(--accent2); }
.offers tr:last-child td { color: var(--muted); font-style: italic; border-bottom: 0; }
@keyframes best { 0%, 50% { background: transparent; } 62%, 100% { background: color-mix(in srgb, var(--accent) 14%, transparent); } }

/* 3 · proposal */
.v-proposal { padding: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--paper) 90%, var(--accent) 6%), var(--paper)); }
.doc { position: relative; padding: 16px 18px; border-radius: 10px; background: #fff; color: #13232d; box-shadow: 0 16px 30px -16px rgba(19, 35, 45, .45); transform: rotate(.8deg); }
.doc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid #13232d; font-size: .78rem; }
.doc-head span { color: #5a6b74; font-size: .7rem; }
.doc-lines { margin: 8px 0; padding: 0; list-style: none; font-size: .76rem; }
.doc-lines li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #d9dfe2; }
.doc-lines span { margin-left: auto; font-variant-numeric: tabular-nums; }
.doc-lines i { width: 14px; height: 14px; border-radius: 4px; flex: none; display: grid; place-items: center; }
.doc-lines .yes { background: #1e6b42; } .doc-lines .yes::after { content: ""; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.doc-lines .no { border: 2px solid #b0452f; } .doc-lines li:has(.no) { color: #8b9aa2; text-decoration: line-through; }
.doc-calc { display: grid; gap: 3px; font: .62rem/1.4 var(--mono); color: #5a6b74; }
.doc-calc b { color: #1b6a6e; }
.stamp { position: absolute; right: 26%; top: 34%; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 50%; border: 3px double #b0452f; color: #b0452f; text-align: center; transform: rotate(-14deg); mix-blend-mode: multiply; animation: stamp 6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.stamp span { font: 800 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.stamp small { font: 600 .6rem/1 var(--mono); margin-top: -18px; }
@keyframes stamp { 0%, 28% { opacity: 0; transform: rotate(-14deg) scale(1.9); } 36%, 92% { opacity: .92; transform: rotate(-14deg) scale(1); } 100% { opacity: 0; transform: rotate(-14deg) scale(1); } }

/* 4 · stock */
.v-stock { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; }
.phone { padding: 8px; border-radius: 22px; background: #13232d; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); }
.phone-screen { position: relative; aspect-ratio: 9 / 13; border-radius: 15px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3b4f5a, #16242c); display: grid; place-items: center; }
.box { width: 84%; }
.box-top { fill: #d9b98a; } .box-left { fill: #b8925f; } .box-right { fill: #c9a574; } .box-tape { fill: #e8d6b5; }
.barcode path { stroke: #13232d; stroke-width: 1.4; }
.barcode path:nth-child(3n) { stroke-width: .7; }
.laser { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #ff4d3d; box-shadow: 0 0 10px 2px rgba(255, 77, 61, .7); animation: laser 3.6s ease-in-out infinite; }
@keyframes laser { 0%, 100% { transform: translateY(-40px); } 45% { transform: translateY(40px); } 50%, 60% { transform: translateY(26px); opacity: 1; } 61%, 70% { opacity: 0; } }
.beep { position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 5px 6px; border-radius: 7px; background: rgba(46, 139, 87, .92); color: #fff; font: 700 .52rem/1.2 var(--mono); text-align: center; animation: beep 3.6s ease-in-out infinite; }
@keyframes beep { 0%, 48% { opacity: 0; transform: translateY(8px); } 55%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.count { display: grid; gap: 0; font-size: .8rem; }
.count p { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.count span { color: var(--muted); }
.count b { font-variant-numeric: tabular-nums; }
.count-total { font-size: 1rem; }
.count-total b { font: 400 1.9rem/1 var(--serif); color: var(--accent); }
.count-loc b { font-family: var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--chip); border: 1px solid var(--line); }
.count-n { animation: pop 3.6s ease-in-out infinite; }
@keyframes pop { 0%, 55% { color: inherit; } 60% { color: var(--accent2); transform: scale(1.3); } 70%, 100% { color: inherit; } }

/* 5 · route */
.v-route { padding: 0; }
.v-route svg { display: block; width: 100%; height: auto; background: color-mix(in srgb, #e8f1f0 80%, var(--paper)); }
.chart-grid { stroke: rgba(27, 106, 110, .12); stroke-width: 1; }
.chart-land { fill: #ecdcb8; stroke: #b99c63; stroke-width: 1.2; }
.chart-contour { fill: none; stroke: rgba(31, 95, 140, .35); stroke-width: 1; stroke-dasharray: 5 3; }
.chart-depth text { font: italic 9px var(--serif); fill: rgba(31, 70, 100, .65); }
.chart-route { fill: none; stroke: #b0452f; stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; animation: dash 1.6s linear infinite; }
.chart-pt { fill: #fff; stroke: #13232d; stroke-width: 2; }
.chart-lbl { font: 700 9px var(--mono); fill: #13232d; }
.chart-ship { fill: #13232d; }
.chart-place { font: 700 8px var(--serif); letter-spacing: 2.4px; fill: #8a6d3b; }
.chart-sea { font: italic 8px var(--serif); letter-spacing: .6px; fill: rgba(31, 70, 100, .7); }
.truck { fill: #1b6a6e; offset-path: path("M58 44c30 10 44 26 70 38s40 18 62 22"); offset-rotate: auto; animation: truck 6s ease-in-out infinite; }
.truck circle { fill: #13232d; }
@keyframes truck { 0% { offset-distance: 0%; } 70%, 100% { offset-distance: 100%; } }
.chart-rose circle { fill: rgba(255, 255, 255, .6); stroke: #13232d; stroke-width: .8; }
.chart-rose path { fill: #b0452f; } .chart-rose text { font: 700 7px var(--sans); fill: #13232d; text-anchor: middle; }
.window { padding: 14px 18px 16px; color: var(--ink); background: var(--paper); border-top: 1px solid var(--line); font-size: .78rem; }
.window > span { font: 700 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.window-bar { position: relative; height: 10px; margin: 10px 0 6px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); }
.window-slot { position: absolute; left: 25%; width: 50%; top: -1px; bottom: -1px; border-radius: 99px; background: var(--accent); opacity: .85; }
.window-now { position: absolute; top: -5px; width: 2px; height: 18px; background: var(--accent2); left: 52%; animation: now 6s ease-in-out infinite; }
@keyframes now { from { left: 14%; } to { left: 52%; } }
.window p { display: flex; justify-content: space-between; margin: 0; font: .66rem/1 var(--mono); color: var(--muted); }
.window p b { color: var(--ink); }

/* 6 · deliver */
.v-deliver { display: grid; grid-template-columns: 1fr 76px; gap: 16px; align-items: start; }
.check { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.check li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line); }
.check li span { margin-left: auto; font: .72rem var(--mono); color: var(--muted); }
.check i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; }
.check .done i { background: var(--accent); animation: tick 6s ease-out infinite; }
.check .done i::after { content: ""; width: 7px; height: 3.5px; border: 2px solid #13232d; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check .part i { background: conic-gradient(var(--accent) 0 75%, transparent 0); }
.check li:nth-child(2) i { animation-delay: .4s; } .check li:nth-child(4) i { animation-delay: 1.2s; }
@keyframes tick { 0%, 8% { transform: scale(.2); opacity: 0; } 16%, 100% { transform: none; opacity: 1; } }
.signature { font-family: var(--serif) !important; font-style: italic; font-size: .86rem !important; color: var(--ink) !important; }
.flag-big { width: 76px; overflow: visible; }
.flag-big .pole { stroke: var(--muted); stroke-width: 2; }
.flag-big .cloth { transform-box: fill-box; transform-origin: 0 50%; animation: flutter-big 2.2s ease-in-out infinite; }
@keyframes flutter-big { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(4deg) scaleX(.93); } }

/* 7 · ledger */
.v-ledger { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.ring { --ring: 100%; width: 130px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, #e2b86b 0 38%, #7fc6c0 0 72%, #ff9b7a 0 var(--ring), rgba(255, 255, 255, .08) 0); animation: ring 7s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes ring { 0% { --ring: 72%; } 55%, 100% { --ring: 100%; } }
.ring-core { width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #0b1829; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ring-core b { font: 400 1.25rem/1 var(--serif); color: var(--accent); }
.ring-core span { font-size: .72rem; color: var(--muted); }
.ledger { margin: 0; display: grid; gap: 0; }
.ledger div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.ledger dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ledger dt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #e2b86b; }
.ledger div:nth-child(2) dt::before { background: #7fc6c0; } .ledger .margin dt::before { background: #ff9b7a; }
.ledger dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.ledger .margin { border: 0; } .ledger .margin dd { color: var(--accent); }

/* 8 · flags */
.pennants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.pen { display: grid; gap: 8px; font-size: .74rem; color: var(--muted); }
.pen i { display: block; height: 46px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(180deg, var(--a) 0 50%, var(--b) 50%); transform-origin: 0 50%; animation: pennant 2.4s ease-in-out infinite; border-left: 3px solid var(--muted); }
.p1 { --a: #102c3b; --b: #175b65; } .p2 { --a: #213b30; --b: #42644f; } .p3 { --a: #3d3029; --b: #845936; } .p4 { --a: #242d3d; --b: #505c75; }
.p1 i { --b: #2a8a95; } .p2 i { --b: #5f8a6d; } .p3 i { --b: #b07c4c; } .p4 i { --b: #7482a0; }
.p2 i { animation-delay: -.6s; } .p3 i { animation-delay: -1.2s; } .p4 i { animation-delay: -1.8s; }
@keyframes pennant { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(5deg) scaleX(.9); } }
.pen i { background: linear-gradient(180deg, var(--a) 0 50%, var(--b) 50%), var(--a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.roles li { padding: 5px 10px; border-radius: 99px; font-size: .74rem; background: var(--chip); border: 1px solid var(--line); }

/* ---------- memorial ---------- */
.memorial { justify-content: center; text-align: center; min-height: 170vh; }
.memorial-inner { position: relative; max-width: 40rem; display: grid; justify-items: center; }
.memorial-inner::before { content: ""; position: absolute; inset: 10% -18% -12%; z-index: -1; background: radial-gradient(closest-side, rgba(4, 10, 22, .62), rgba(4, 10, 22, .3) 60%, transparent); pointer-events: none; }
.finale-inner { position: relative; }
.finale-inner::before { content: ""; position: absolute; inset: -12% -14%; z-index: -1; background: radial-gradient(closest-side, rgba(6, 14, 34, .45), transparent); pointer-events: none; }
.constellation { width: clamp(180px, 26vw, 300px); height: auto; margin-bottom: 26px; overflow: visible; }
.con-line { fill: none; stroke: rgba(247, 239, 226, .55); stroke-width: .22; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.con-line.wave { stroke: rgba(191, 227, 220, .6); }
.js .con-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.4, 0, .2, 1); }
.js .con-line:nth-child(2) { transition-delay: .5s; } .js .con-line:nth-child(3) { transition-delay: .9s; } .js .con-line:nth-child(4) { transition-delay: 1.4s; }
.js .memorial.seen .con-line { stroke-dashoffset: 0; }
.con-stars circle { fill: #fff8e6; filter: drop-shadow(0 0 1.2px #fff1c9); animation: twinkle 3.4s ease-in-out infinite; }
.con-stars circle:nth-child(2n) { animation-delay: -1.2s; } .con-stars circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes twinkle { 50% { opacity: .45; } }
.memorial .eyebrow { justify-content: center; color: var(--gold); }
.memorial .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.memorial h2 { margin: 0 0 18px; font: 400 clamp(2.1rem, 4.6vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.01em; color: var(--cream); text-wrap: balance; }
.memorial-line { margin: 0 0 18px; font: italic 400 clamp(1.15rem, 2vw, 1.5rem)/1.45 var(--serif); color: #f3dcb6; }
.memorial-text { margin: 0; max-width: 34rem; color: rgba(238, 243, 244, .82); }
.memorial-sign { margin: 22px 0 0; font: 1.8rem/1 var(--serif); color: var(--gold); opacity: .8; }
.js .memorial-inner > :not(.constellation) { opacity: 0; transform: translateY(18px); transition: opacity 1.4s ease, transform 1.4s ease; }
.js .memorial.seen .memorial-inner > * { opacity: 1; transform: none; }
.js .memorial.seen .memorial-inner > :nth-child(3) { transition-delay: .5s; } .js .memorial.seen .memorial-inner > :nth-child(4) { transition-delay: .9s; } .js .memorial.seen .memorial-inner > :nth-child(5) { transition-delay: 1.3s; } .js .memorial.seen .memorial-inner > :nth-child(6) { transition-delay: 1.7s; }

/* ---------- finale ---------- */
.finale { flex-direction: column; justify-content: center; min-height: 140vh; padding-bottom: 0; text-align: center; }
.finale-inner { display: grid; justify-items: center; margin: auto 0; }
.finale .kicker { justify-content: center; }
.finale h2 { margin: 0; font: 400 clamp(2.8rem, 8vw, 6.6rem)/.98 var(--serif); letter-spacing: -.02em; color: var(--cream); --accent: #f3d9b1; }
.finale-lede { margin: 18px 0 32px; font: italic 400 clamp(1.1rem, 2vw, 1.5rem)/1.4 var(--serif); color: rgba(247, 239, 226, .85); }
.back-top { margin-top: 36px; font-size: .9rem; color: rgba(247, 239, 226, .8); text-underline-offset: 5px; }
.footer { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18vh; padding: 22px 0 30px; border-top: 1px solid rgba(247, 239, 226, .14); font-size: .8rem; color: rgba(247, 239, 226, .7); }

/* ---------- scroll-driven enhancement ---------- */
@supports (animation-timeline: view()) {
  .js .entry { opacity: 1; transform: none; transition: none; animation: entry-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes entry-rise { from { opacity: 0; transform: translateY(70px) scale(.97); } }
  .hero-inner { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes hero-drift { to { transform: translateY(-14vh); opacity: .15; } }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .route { display: none; } .toplinks { display: none; } }
@media (max-width: 900px) { .topclock .clock-label { display: none; } }
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .topbar { height: 58px; gap: 12px; }
  .brand span { font-size: .98rem; }
  .brand svg { width: 30px; height: 30px; }
  .topclock { margin-left: auto; }
  .btn--small { min-height: 38px; padding: 0 14px; }
  .chapter { min-height: 0; padding: 72vh 16px 26vh; }
  .hero { min-height: 100svh; padding: 84px 16px 20px; }
  .kicker { margin-bottom: 14px; font-size: .7rem; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-motto { margin-top: 12px; font-size: 1.2rem; }
  .hero-lede { margin: 12px 0 20px; font-size: .95rem; line-height: 1.55; }
  .scroll-cue { display: none; }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-row .btn--link { flex-basis: 100%; justify-content: flex-start; padding: 0; }
  .entry { padding: 22px 18px; border-radius: 18px; }
  .entry h2 { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .vignette { padding: 14px; }
  .v-import { grid-template-columns: 1fr; }
  .ai-spark { grid-auto-flow: column; justify-content: center; align-items: center; gap: 6px; }
  .v-rfq { grid-template-columns: 1fr; justify-items: center; }
  .rose { max-width: 200px; }
  .v-stock { grid-template-columns: 116px 1fr; gap: 14px; }
  .v-ledger { grid-template-columns: 1fr; justify-items: center; }
  .ledger { width: 100%; }
  .pennants { grid-template-columns: repeat(2, 1fr); }
  .memorial { min-height: 0; padding-top: 80vh; padding-bottom: 50vh; }
  .finale { min-height: 0; padding-top: 70vh; }
  .footer { flex-direction: column; margin-top: 20vh; }
  .buoy { width: 14px; }
}
@media (max-width: 380px) { .topclock { display: none; } .brand b { display: none; } }

/* ---------- reduced motion: a still, complete harbour ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .entry, .js .memorial-inner > * { opacity: 1 !important; transform: none !important; }
  .js .con-line { stroke-dashoffset: 0; }
  .beam { transform: scaleX(.8); }
  .items li, .env { opacity: 1; }
  .env.e1 { transform: translate(110px, 26px); } .env.e2 { transform: translate(194px, 110px); } .env.e3 { transform: translate(110px, 194px); } .env.e4 { transform: translate(26px, 110px); }
  .stamp { opacity: .92; }
  .beep { opacity: 1; }
  .truck { offset-distance: 100%; }
}
.low-power .ship-reflection { display: none; }
.low-power .stage-shade { display: none; }
@media print { .stage, .topbar, .route { display: none; } body.landing { background: #fff; color: #13232d; } .js .entry { opacity: 1; transform: none; } }
