/* VOICE: calm, nocturnal, plain: a harbor at night told in short sentences
   IDEA: the Phaeacian ships needed no helmsman; your agent steers itself, but only down the channel you light
   PICTURE: Scheria's harbor after dark, lamplit terraces, a beacon, self-steering ships leaving glowing wakes
   COLOUR and TYPE: harbor-night blue, lantern amber, sea-glass green, parchment; Cormorant Garamond over Manrope
   LAYOUT: one filmed hero, then the crossing told down the page on the same night water, no boxes */
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root { --ink: #040a14; --deep: #081627; --sea: #0b1c30; --gold: #f4b860; --gold2: #ffdca0; --amber: #f4b860; --glass: #6cc4b8; --glass2: #a6f0e2; --cream: #e8dcc0; --red: #e46f55; --line: rgba(108,196,184,.2); color-scheme: dark; }
* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 16px/1.62 "Manrope", system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Cormorant", Georgia, serif; font-weight: 500; margin: 0; }
h1 { font-size: clamp(52px, 7vw, 112px); line-height: .95; letter-spacing: -.015em; color: var(--gold2); text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; color: var(--gold2); text-wrap: balance; }
h3 { font-size: 26px; line-height: 1.15; color: var(--gold2); }
h1 i, h2 i, h1 .i { font-style: italic; font-weight: 300; color: var(--glass2); }
p { margin: 0 0 14px; }
.lede { max-width: 38em; font-size: 18px; opacity: .86; margin-top: 18px; }
:focus-visible { outline: 2px solid var(--glass2); outline-offset: 3px; border-radius: 6px; }

.top { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 26px; padding: 18px max(4vw, 16px); flex-wrap: wrap; }
.top.fixed { position: fixed; background: rgba(4,10,20,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: italic 500 27px "Cormorant", serif; letter-spacing: .02em; color: var(--gold2); }
.mark img { width: 38px; height: 38px; border-radius: 50%; }
.links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; opacity: .82; transition: opacity .2s, color .2s; }
.links a:hover { opacity: 1; color: var(--gold2); }
.ca { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(108,196,184,.45); border-radius: 999px; padding: 4px 4px 4px 14px; font-size: 13.5px; background: rgba(4,10,20,.5); backdrop-filter: blur(6px); }
.ca b { color: var(--gold2); font-weight: 600; } .ca code { opacity: .8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 26px; min-height: 48px; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--gold); color: var(--ink); transition: transform .2s, box-shadow .3s, background .2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(244,184,96,.12), 0 10px 40px rgba(244,184,96,.38); background: var(--gold2); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s; }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: none; color: var(--cream); border: 1px solid rgba(108,196,184,.55); }
.btn.ghost:hover { border-color: var(--glass2); color: var(--glass2); box-shadow: 0 0 30px rgba(108,196,184,.25); }
.btn.small { min-height: 36px; padding: 8px 15px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .45; pointer-events: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { opacity: .7; } .mono { font-variant-numeric: tabular-nums; }

/* the filmed hero */
.stage { position: relative; height: 100vh; min-height: 720px; overflow: hidden; background: radial-gradient(ellipse at 56% 40%, #1d3d58, #0b1c30 40%, var(--ink) 80%); }
.stage .hero-still { object-position: 58% 50%; }
.stage canvas, .stage .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(4,10,20,.7), rgba(4,10,20,.2) 42%, rgba(4,10,20,0) 62%), linear-gradient(180deg, rgba(4,10,20,.45), rgba(4,10,20,0) 18%, rgba(4,10,20,0) 58%, rgba(4,10,20,.75) 86%, var(--ink)); }
.hero { position: absolute; z-index: 4; left: max(4vw, 18px); bottom: clamp(110px, 16vh, 170px); max-width: min(680px, 92vw); }
.hero p { max-width: 33em; font-size: 18px; opacity: .9; margin: 22px 0 0; }
.hero .row { margin-top: 30px; }
.hero h1 { text-shadow: 0 0 60px rgba(244,184,96,.22); }
.hero .split { display: inline-block; animation: rise 1.6s cubic-bezier(.2,.7,.1,1) both; }
.hero .split.i { animation-delay: .35s; text-shadow: 0 0 40px rgba(108,196,184,.45); }
.hero p, .hero .row { animation: rise 1.6s .7s cubic-bezier(.2,.7,.1,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
.livebar { position: absolute; z-index: 4; left: max(4vw, 18px); right: max(4vw, 18px); bottom: 34px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; opacity: .88; }
.livebar b { color: var(--gold2); font-weight: 600; font-variant-numeric: tabular-nums; }
.preview { font-size: 13px; opacity: .6; }

/* the voyage, told down the page */
.motes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.band, footer { z-index: 1; }
.band { position: relative; padding: clamp(72px, 10vw, 150px) max(5vw, 18px); }
.wrap { max-width: 1240px; margin: 0 auto; }
.divider { display: block; width: 100%; height: 40px; opacity: .55; }
.route { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.route svg.path { position: absolute; left: 0; right: 0; top: 10px; width: 100%; height: 60px; overflow: visible; }
.leg { position: relative; padding-top: 86px; opacity: 0; transform: translateY(24px); transition: opacity 1s, transform 1s; }
.route.seen .leg { opacity: 1; transform: none; }
.route.seen .leg:nth-child(3) { transition-delay: .25s; } .route.seen .leg:nth-child(4) { transition-delay: .5s; } .route.seen .leg:nth-child(5) { transition-delay: .75s; }
.leg .port { position: absolute; top: 26px; left: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--ink); box-shadow: 0 0 22px rgba(244,184,96,.6); animation: flicker 3.4s infinite; }
.leg:nth-child(3) .port { animation-delay: -1.1s; } .leg:nth-child(4) .port { animation-delay: -2.3s; } .leg:nth-child(5) .port { animation-delay: -.6s; }
@keyframes flicker { 0%, 100% { box-shadow: 0 0 22px rgba(244,184,96,.6); } 40% { box-shadow: 0 0 34px rgba(244,184,96,.85); } 46% { box-shadow: 0 0 14px rgba(244,184,96,.4); } 60% { box-shadow: 0 0 28px rgba(244,184,96,.75); } }
.leg .port::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gold2); }
.leg em { display: block; font: italic 500 18px "Cormorant", serif; color: var(--glass); margin-bottom: 6px; }
.leg p { opacity: .82; }

.chartband { background: linear-gradient(180deg, var(--ink), var(--deep) 30%, var(--deep) 70%, var(--ink)); }
.picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.picker button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.picker button:hover { border-color: var(--glass); }
.picker button[aria-pressed=true] { border-color: var(--glass); color: var(--ink); background: var(--glass); box-shadow: 0 0 24px rgba(108,196,184,.4); }
.sentence { margin-top: 26px; font: italic 500 clamp(24px, 2.6vw, 36px)/1.25 "Cormorant", serif; color: var(--gold2); max-width: 30em; min-height: 2.6em; }
.chartbox { position: relative; height: clamp(320px, 46vw, 520px); margin-top: 18px; }
.chartbox canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; font-size: 13px; line-height: 1.45; background: rgba(4,10,20,.85); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; backdrop-filter: blur(6px); width: 176px; }
.tip b { display: block; color: var(--gold2); font-weight: 600; }
.figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.figs b { display: block; font: 500 clamp(34px, 3.4vw, 50px) "Cormorant", serif; color: var(--gold2); font-variant-numeric: tabular-nums; }
.figs span { font-size: 13.5px; opacity: .72; }
.small-print { margin-top: 18px; font-size: 13px; opacity: .6; max-width: 60em; }

.mast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.mast svg { width: 100%; height: auto; }
.channel .bank { fill: none; stroke: rgba(232,220,192,.16); stroke-width: 1.2; stroke-dasharray: 1 7; }
.channel .wake { fill: none; stroke: var(--glass); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(108,196,184,.9)); stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.6s ease; }
.mast.seen .channel .wake { stroke-dashoffset: 0; }
.channel .flame { fill: #ffe7b8; }
.channel .lanterns g { opacity: 0; transition: opacity .8s; }
.mast.seen .channel .lanterns g { opacity: 1; animation: lamp 3s infinite; }
.mast.seen .channel .lanterns g:nth-child(odd) { animation-delay: -1.3s; }
.mast.seen .channel .lanterns g:nth-child(n+3) { transition-delay: .5s; } .mast.seen .channel .lanterns g:nth-child(n+5) { transition-delay: 1s; } .mast.seen .channel .lanterns g:nth-child(n+7) { transition-delay: 1.5s; }
@keyframes lamp { 0%, 100% { opacity: 1; } 45% { opacity: .78; } 52% { opacity: .95; } }
.channel .lbl { font: 500 13px "Manrope", sans-serif; fill: var(--gold2); }
.channel .sea-lbl { font: italic 500 17px "Cormorant", serif; fill: var(--glass2); }
.channel .boat { offset-path: path("M300 600 C 250 500, 360 420, 300 330 S 230 160, 300 30"); offset-rotate: auto 90deg; animation: steer 14s linear infinite; filter: drop-shadow(0 0 6px rgba(244,184,96,.8)); }
@keyframes steer { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.cant { list-style: none; padding: 0; margin: 26px 0 0; }
.cant li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.cant li::before { content: "✕"; color: var(--red); font-size: 13px; padding-top: 3px; }
.cant li.can::before { content: "✓"; color: var(--glass2); }

.receipt { position: relative; max-width: 560px; margin: 40px 0 0; padding: 26px 28px; background: linear-gradient(180deg, rgba(232,220,192,.08), rgba(232,220,192,.03)); border-top: 1px solid rgba(232,220,192,.35); border-bottom: 1px dashed rgba(232,220,192,.35); font-size: 14.5px; }
.receipt .ln { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; } .receipt .ln span:first-child { opacity: .65; }
.receipt .why { font: italic 500 21px/1.35 "Cormorant", serif; color: var(--gold2); margin: 4px 0 12px; }
.receipt .hash { margin-top: 12px; font-size: 12px; opacity: .6; word-break: break-all; font-family: ui-monospace, monospace; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }

.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 60px; margin-top: 30px; }
.honest p { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; opacity: .86; }
.honest b { color: var(--gold2); font-weight: 600; }
footer { position: relative; padding: 60px max(5vw, 18px) 80px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); }
footer .mark { font-size: 17px; }
footer .links { font-size: 14px; }

.toasts { position: fixed; z-index: 50; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(420px, 92vw); }
.toast { background: rgba(8,22,39,.96); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.4); animation: up .4s ease; }
.toast.bad { border-left-color: var(--red); } .toast.good { border-left-color: var(--gold2); }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } .route svg.path { display: none; }
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mast, .split, .honest { grid-template-columns: minmax(0, 1fr); }
  .links { display: none; }
}
@media (max-width: 560px) {
  .route, .figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); }
  .hero { bottom: 150px; } .livebar { gap: 6px 14px; font-size: 13px; bottom: 22px; } .hero .row .btn { padding: 12px 20px; }
  .stage::after { background: linear-gradient(180deg, rgba(4,10,20,.35), rgba(4,10,20,0) 20%, rgba(4,10,20,.35) 45%, rgba(4,10,20,.85) 75%, var(--ink)); }
  .ca code { display: none; }
}
@media (prefers-reduced-motion: reduce) { .leg, .channel .wake, .channel .lanterns g { transition: none; opacity: 1; transform: none; stroke-dashoffset: 0; } .hero .split, .hero p, .hero .row, .leg .port, .channel .boat, .channel .lanterns g { animation: none !important; } }
