:root {
  --bg: #0b1033;
  --bg-alt: #0e143d;
  --panel: rgba(11, 16, 51, 0.9);
  --card: #141b4d;
  --line: rgba(150, 195, 230, 0.13);
  --text: #e9f2f9;
  --muted: #8ea7bb;
  --accent: #f5932a;
  --accent-soft: rgba(245, 147, 42, 0.16);
  --sea: #fcc24a;
  --route: #6f8fae;
  --radius: 16px;
  --top: 64px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 28px; }

button, .btn {
  font: 600 14px/1 var(--font);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #1a0700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, background .15s;
}
button:hover, .btn:hover { transform: translateY(-1px); }
button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
button.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1100;
  height: var(--top);
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px;
  background: rgba(11, 16, 51, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px var(--display); letter-spacing: 0.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: url(../images/logo.png) center/cover; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11px/1 var(--font); letter-spacing: .12em;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent);
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.live i { animation: blink 1.6s infinite; }
.status-pill.pre { background: rgba(252,194,74,.12); color: var(--sea); }
.status-pill.finished { background: rgba(255,214,90,.14); color: #ffd65a; }
@keyframes blink { 50% { opacity: .25; } }
.lang { display: flex; background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px; }
.lang button { background: transparent; color: var(--muted); padding: 6px 10px; font-size: 12px; text-transform: uppercase; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang button:hover { transform: none; }

/* ---------- map hero ---------- */
.map-wrap { position: relative; height: calc(100svh - var(--top)); min-height: 600px; }
#leaflet { position: absolute; inset: 0; background: #0e1540; }
.panel {
  position: absolute; z-index: 800; top: 20px; left: 20px;
  width: 380px; max-height: calc(100% - 40px); overflow: auto;
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.kicker { margin: 0 0 10px; font-size: 13px; color: var(--sea); font-weight: 600; }
.panel h1 { font-size: 42px; font-weight: 900; letter-spacing: -.02em; }
.tagline { color: var(--muted); margin: 10px 0 20px; font-size: 15px; }

.progress .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #fcc24a, #f07c28); transition: width 1s ease; }
.progress-labels { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 12px; color: var(--muted); }
.progress-labels strong { color: var(--text); font: 800 20px var(--display); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 16px; }
.stats div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 700 22px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.stats dd small { display: block; font: 500 12px var(--font); color: var(--muted); }

.fix { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.fix strong { color: var(--text); }
.map-actions { display: flex; gap: 8px; margin-top: 18px; }

/* leaflet skin */
.tiles-ocean { filter: brightness(.42) saturate(.9) contrast(1.15) hue-rotate(-8deg); }
.tiles-labels { filter: invert(1) brightness(.9); opacity: .55; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { background: rgba(6,17,28,.7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-tooltip { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.4); font-size: 12px; }
.leaflet-tooltip-top::before { border-top-color: var(--card); }
.boat-icon { position: relative; }
.boat-icon i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,147,42,.65); }
  70% { box-shadow: 0 0 0 24px rgba(245,147,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,147,42,0); }
}
.pin-label {
  font: 700 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.pin-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sea); flex: none; }
.pin-label.finish::before { border-color: #ffd65a; }
.upd-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  cursor: pointer;
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { margin: 0; }

.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.prose p { margin: 0 0 14px; font-size: 18px; color: #c9d8e4; }
.facts { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--bg); padding: 16px 20px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 800 18px var(--display); }

.crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.crew-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.crew-photo { aspect-ratio: 4/3; background: linear-gradient(135deg, #1d2766, #0a1a28); display: grid; place-items: center; position: relative; }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-photo .initials { font: 800 64px var(--display); color: rgba(255,255,255,.2); }
.crew-photo .flag { position: absolute; top: 14px; left: 14px; font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.crew-body { padding: 20px 22px 24px; }
.crew-body h3 { font-size: 24px; }
.crew-role { color: var(--sea); font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.crew-body p { color: #c3d3df; margin: 0 0 14px; }
.crew-ig { font-size: 14px; color: var(--muted); text-decoration: none; }
.crew-ig:hover { color: var(--text); }

/* feed */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.entry { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .4s; }
.entry.flash { box-shadow: 0 0 0 2px var(--accent); }
.entry-media { aspect-ratio: 16/10; background: #0a1a28 center/cover no-repeat; display: block; width: 100%; position: relative; border-radius: 0; padding: 0; }
.entry-media img { width: 100%; height: 100%; object-fit: cover; }
.entry-media.video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(6,17,28,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/28px no-repeat;
  backdrop-filter: blur(4px);
}
.entry-media:hover { transform: none; }
.entry-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.entry-body { padding: 18px 20px 20px; }
.entry-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.entry-meta .day { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.entry h3 { font-size: 20px; margin-bottom: 8px; }
.entry p { margin: 0; color: #c3d3df; font-size: 15px; }
.entry p a { color: var(--sea); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font: 600 12px/1 var(--font); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text); text-decoration: none; }
.chip:hover { background: rgba(255,255,255,.12); }
.empty { color: var(--muted); }

/* links */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.link-card strong { display: block; font: 800 20px/1.2 var(--display); }
.link-card span.sub { font-size: 13px; color: var(--muted); }
.ico { width: 26px; height: 26px; flex: none; background: var(--text); -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.hashtag { color: var(--accent); }
.ig-embed { margin-top: 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.ig-embed iframe { width: 100%; height: 520px; border: 0; display: block; background: #fff; }

/* support */
.support { display: flex; justify-content: space-between; align-items: center; gap: 32px; background: linear-gradient(120deg, rgba(245,147,42,.16), rgba(252,194,74,.08)); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.support h2 { margin-bottom: 8px; }
.support p { margin: 0; max-width: 620px; }
.support .btn { font-size: 16px; padding: 16px 26px; flex: none; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.partner { height: 100px; display: grid; place-items: center; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; text-align: center; }
.partner img { max-height: 56px; width: auto; object-fit: contain; }
.partner span { font: 800 22px var(--display); color: var(--muted); }
.partner small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer a { color: var(--text); }

.demo-banner {
  position: fixed; z-index: 1200; bottom: 16px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: #ffd65a; color: #231a00; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  text-align: center;
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .map-wrap { height: auto; min-height: 0; display: flex; flex-direction: column; }
  #leaflet { position: relative; z-index: 0; height: 58svh; min-height: 360px; }
  .leaflet-control-attribution { font-size: 9px; }
  .demo-banner { font-size: 11px; border-radius: 12px; padding: 8px 12px; bottom: 10px; }
  .panel { position: relative; top: auto; left: auto; width: auto; max-height: none; margin: -32px 12px 0; padding: 20px; }
  .panel h1 { font-size: 32px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .support { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 480px) {
  .topbar { gap: 10px; padding: 0 14px; }
  .brand { font-size: 15px; }
  .status-pill { padding: 6px 8px; letter-spacing: .06em; }
  .lang button { padding: 6px 8px; }
  .wrap { padding: 0 16px; }
  .feed, .crew-grid { grid-template-columns: 1fr; }
  .stats dd { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- partners ---------- */
.eyebrow { margin: 0 0 8px; font: 700 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nav a.nav-cta { color: var(--accent); }
.ghost-btn { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.ghost-btn:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.partners-sec { background: radial-gradient(1200px 500px at 80% 0%, rgba(245,147,42,.10), transparent 60%), var(--bg-alt); border-block: 1px solid var(--line); }
.partner-hero {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tag tag" "logo text"; gap: 12px 40px; align-items: center;
  padding: 36px 40px; margin-bottom: 28px; border-radius: 24px; text-decoration: none;
  background: linear-gradient(135deg, rgba(252,194,74,.12), rgba(245,147,42,.10)); border: 1px solid rgba(255,255,255,.14);
}
.partner-hero small { grid-area: tag; font: 700 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.ph-logo { grid-area: logo; }
.ph-logo img { height: 72px; width: auto; }
.ph-logo .wordmark { font-size: 40px; color: var(--text); }
.partner-hero p { grid-area: text; margin: 0; font-size: 18px; color: #c9d8e4; max-width: 560px; }
.tier { margin-top: 28px; }
.tier h3 { font: 600 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tier-supporter .tier-grid, .tier-media .tier-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tier-official .partner { height: 120px; }
.partner img { max-height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.tier-supporter .partner img, .tier-media .partner img { max-height: 34px; }
.wordmark { font: 800 22px var(--display); color: var(--muted); }
a.partner:hover, a.partner-hero:hover { border-color: var(--muted); }
.partner-cta { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 20px; background: var(--accent); color: #1a0700; }
.partner-cta h3 { font-size: 26px; }
.partner-cta p { margin: 4px 0 0; opacity: .8; }
.partner-cta .btn { background: #1a0700; color: #fff; flex: none; }
.panel-partner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-decoration: none; }
.panel-partner small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.panel-partner img { height: 24px; width: auto; margin-left: auto; }
.panel-partner .wordmark { margin-left: auto; font-size: 15px; color: var(--text); }

/* partner page */
.p-hero { padding: 96px 0 72px; background: radial-gradient(900px 480px at 85% 10%, rgba(245,147,42,.18), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(252,194,74,.12), transparent 60%); }
.p-hero h1 { font-size: clamp(38px, 6vw, 76px); max-width: 1000px; }
.p-intro { font-size: clamp(18px, 2vw, 21px); color: #c9d8e4; max-width: 720px; margin: 20px 0 28px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.p-stats div { background: var(--bg); padding: 24px; }
.p-stats strong { display: block; font: 800 42px/1 var(--display); color: var(--text); }
.p-stats span { color: var(--muted); font-size: 14px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.benefit { padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.benefit-n { font: 800 20px var(--display); color: var(--accent); }
.benefit h3 { font-size: 20px; margin: 10px 0 8px; }
.benefit p { margin: 0; color: #c3d3df; }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.package { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.package.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(245,147,42,.14), var(--card) 60%); }
.package .badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #1a0700; font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; }
.package h3 { font-size: 22px; }
.price { font: 800 20px var(--display); color: var(--sea); margin: 6px 0 18px; }
.package ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.package li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; color: #c9d8e4; }
.package li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.package .btn { justify-content: center; }
@media (max-width: 900px) {
  .partner-hero { grid-template-columns: 1fr; grid-template-areas: "tag" "logo" "text"; padding: 26px; }
  .partner-cta { flex-direction: column; align-items: flex-start; }
  .p-hero { padding: 64px 0 48px; }
}
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .nav a:not(.nav-cta) { display: none; } }
@media (max-width: 900px) { .nav { display: flex; } .nav a.nav-cta { padding: 8px 6px; font-size: 13px; } }
@media (max-width: 480px) { .nav { display: none; } }
[hidden] { display: none !important; }
.donate-btns { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.donate-btns .btn { font-size: 16px; padding: 16px 24px; }

/* launch bar */
.launch-bar { background: linear-gradient(90deg, #fcc24a, #f5932a 55%, #ef7a26); color: #101742; }
.lb-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 12px 20px; flex-wrap: wrap; }
.lb-route { margin: 0; font: 700 16px/1.35 var(--display); max-width: 760px; }
.lb-count { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.lb-label { font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.lb-value { font: 800 26px/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.lb-sub { font-size: 12px; opacity: .8; }
.launch-bar[data-phase="window-open"] .lb-value::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #101742; margin-right: 8px; vertical-align: middle; animation: blink 1.4s infinite; }
@media (max-width: 700px) {
  .lb-inner { padding: 10px 16px; }
  .lb-route { font-size: 14px; }
  .lb-count { align-items: flex-start; text-align: left; }
  .lb-value { font-size: 20px; }
}
.crew-photo img { object-position: center; }
.entry-media img { object-position: center 35%; }

/* ocean conditions */
.conditions { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.conditions .section-head h2 { margin-bottom: 4px; }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.cond { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.cond span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cond strong { font: 700 22px/1.2 var(--display); display: flex; align-items: center; gap: 8px; }
.cond small { font-size: 12px; color: var(--muted); }
.cond.good { border-color: rgba(120,220,150,.45); }
.cond.bad { border-color: rgba(255,110,90,.55); }
.dir { display: inline-block; font-size: 18px; color: var(--sea); line-height: 1; }
.risk { min-width: 240px; max-width: 360px; padding: 14px 18px; border-radius: 14px; display: grid; gap: 2px; border: 1px solid var(--line); background: var(--card); }
.risk span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.risk strong { font: 800 22px var(--display); }
.risk small { font-size: 12px; color: var(--muted); }
.risk-0 strong { color: #7bd88f; }
.risk-1 { border-color: rgba(252,194,74,.5); } .risk-1 strong { color: #fcc24a; }
.risk-2 { border-color: rgba(255,110,90,.6); background: rgba(255,110,90,.08); } .risk-2 strong { color: #ff7a66; }
.cond-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 12px; }
.chart-card h3 { font-size: 15px; margin-bottom: 10px; }
.chart-box { position: relative; height: 240px; }
.src { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 480px) { .cond-charts { grid-template-columns: 1fr; } .cond strong { font-size: 20px; } .risk { min-width: 0; width: 100%; } }

/* windy weather map */
.wx-card { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.wx-head h3 { font-size: 19px; }
.wx-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wx-tabs button { padding: 8px 12px; font-size: 13px; background: rgba(255,255,255,.06); color: var(--text); }
.wx-tabs button[aria-pressed="true"] { background: var(--accent); color: #1a0700; }
.wx-frame { position: relative; height: min(70vh, 560px); background: #0e1540; }
.wx-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .wx-frame { height: 440px; } }

/* support CTA + Shelvus tech partner */
.support-cta { font: 700 14px/1 var(--font); padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #1a0700; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(245,147,42,.35); }
.support-cta::before { content: "♥ "; }
.support-cta:hover { filter: brightness(1.08); }
.lb-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lb-support { font: 700 14px/1 var(--font); padding: 12px 18px; border-radius: 999px; background: #101742; color: #fff; text-decoration: none; white-space: nowrap; }
.lb-support:hover { background: #1b2566; }
.tech-badge { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; background: rgba(232,77,0,.12); border: 1px solid rgba(232,77,0,.45); font-size: 13px; color: var(--muted); }
.tech-badge strong { color: var(--text); font-weight: 700; margin-left: auto; font-size: 15px; }
.tech-badge:hover { background: rgba(232,77,0,.2); }
.src a { color: #ff8a4c; font-family: "JetBrains Mono", monospace; font-size: 11px; }
.tech-banner { display: flex; align-items: center; gap: 20px; padding: 18px 24px; margin-bottom: 28px; border-radius: 20px; text-decoration: none; background: linear-gradient(110deg, rgba(232,77,0,.22), rgba(232,77,0,.06) 60%, transparent); border: 1px solid rgba(232,77,0,.4); }
.tech-banner img { height: 44px; width: auto; flex: none; }
.tech-banner span { display: grid; gap: 2px; }
.tech-banner small { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tech-banner strong { font: 800 28px/1.1 var(--display); color: var(--text); }
.tech-banner em { font: 400 13px/1.5 "JetBrains Mono", monospace; font-style: normal; color: #c9d8e4; }
.tech-banner b { margin-left: auto; color: #ff8a4c; font: 500 13px "JetBrains Mono", monospace; white-space: nowrap; }
.tech-banner:hover { border-color: rgba(232,77,0,.8); }
@media (max-width: 700px) {
  .support-cta { padding: 8px 12px; font-size: 13px; }
  .lb-right { width: 100%; justify-content: space-between; }
  .tech-banner { flex-wrap: wrap; padding: 20px; }
  .tech-banner b { margin-left: 0; }
}
@media (max-width: 420px) { .status-pill { display: none; } }
.partner-tech { display: flex; gap: 14px; justify-content: center; border-color: rgba(232,77,0,.45); }
.partner-tech img { height: 40px; width: auto; }
.partner-tech span { color: var(--text); }
.tech-strip { display: block; text-decoration: none; background: rgba(242,92,35,.07); border-bottom: 1px solid rgba(242,92,35,.25); }
.ts-inner { max-width: 1180px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font: 400 12px/1.4 "JetBrains Mono", ui-monospace, monospace; }
.ts-inner img { height: 22px; width: auto; }
.ts-inner b { margin-left: auto; font-weight: 500; color: #ff8a4c; }
.tech-strip:hover { background: rgba(242,92,35,.13); }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p { color: #c9d8e4; margin: 0 0 12px; }
.legal a { color: var(--sea); }
.footer-link { color: var(--muted); }
.fineprint { font-size: 11px; line-height: 1.5; color: var(--muted); opacity: .8; margin: 0 0 14px; max-width: 900px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.linkish:hover { transform: none; color: var(--text); }

/* gallery + lightbox */
.gallery { columns: 3 260px; column-gap: 12px; }
.g-item { display: block; position: relative; width: 100%; padding: 0; margin: 0 0 12px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #0e1540; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .4s; }
.g-item:hover { transform: none; }
.g-item:hover img { transform: scale(1.03); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left; font: 600 13px/1.35 var(--font); color: #fff; background: linear-gradient(transparent, rgba(6,10,36,.85)); }
.lightbox { position: fixed; z-index: 1400; inset: 0; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(4,7,28,.94); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 110px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { font-size: 14px; color: #c9d8e4; text-align: center; padding: 0 12px; }
.lb-nav, .lb-close { background: rgba(255,255,255,.1); color: #fff; width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 26px; line-height: 1; border-radius: 50%; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.2); transform: none; }
.lb-prev { justify-self: center; } .lb-next { justify-self: center; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 14px; }
  .lb-prev { left: 14px; justify-self: start; } .lb-next { right: 14px; justify-self: end; }
  .lightbox img { max-height: calc(100svh - 150px); }
}
