/* ==========================================================================
   Gua — landing page styles (home.css)
   Scroll-driven redesign. Olive + warm paper, straight from the logo.
   System fonts only, no third-party CDNs (privacy/GDPR friendly).
   Legal pages keep using styles.css — this file is index.html only.
   ========================================================================== */

:root {
  --primary: #6b7a3e;
  --primary-dark: #4e5a2c;
  --primary-deep: #39421f;
  --primary-light: #e8edda;
  --bg: #f5f2ec;
  --paper: #efeae0;
  --surface: #fffdf8;
  --ink: #23261a;
  --text-secondary: #626650;
  --text-tertiary: #a3a493;
  --divider: #e3ded2;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 36px rgba(43, 48, 27, 0.10);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
em { font-style: italic; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700;
  color: var(--primary); margin: 0 0 1em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-secondary); max-width: 58ch; }
.center { text-align: center; }

/* Paper grain overlay — barely-there texture over the whole page */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.15 0 0 0 0 0.09 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--primary-dark); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 242, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--divider);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(107, 122, 62, 0.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 26px rgba(78, 90, 44, 0.32); }
.btn-ghost { background: rgba(255, 253, 248, 0.6); color: var(--primary-dark); border-color: var(--divider); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .badge { font-size: 0.68rem; font-weight: 700; background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.05em; }
.btn-ghost .badge { background: var(--primary-light); color: var(--primary-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 90px; overflow: hidden;
}
.hero-inner { position: relative; z-index: 3; }

.hero-title {
  font-size: clamp(2.9rem, 8.2vw, 6.2rem);
  margin: 0 0 0.35em; letter-spacing: -0.02em; line-height: 1.04; max-width: 14ch;
}
.hero-title em { color: var(--primary); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

.hero .lead { margin-bottom: 0; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero .fine {
  margin-top: 20px; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--primary-dark);
}

/* Load-in animation: lines rise into view (gated on .js so no-JS never hides content) */
.js .rise { opacity: 0; transform: translateY(28px); animation: rise 0.9s var(--ease-out) forwards; }
.js .hero-title .rise { display: inline-block; transform: translateY(105%); animation-name: rise-full; animation-duration: 1s; }
.js .r1 { animation-delay: 0.1s; }
.js .r2 { animation-delay: 0.25s; }
.js .r3 { animation-delay: 0.4s; }
.js .r4 { animation-delay: 0.65s; }
.js .r5 { animation-delay: 0.8s; }
.js .r6 { animation-delay: 0.95s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes rise-full { to { opacity: 1; transform: translateY(0); } }

/* Big vessel drawing itself behind the headline */
.hero-vessel {
  position: absolute; z-index: 1; right: -4%; top: 50%;
  width: clamp(340px, 44vw, 620px); height: auto;
  transform: translateY(-52%) rotate(4deg);
  pointer-events: none;
}
.hero-vessel path {
  fill: none; stroke: var(--primary); stroke-width: 2.4;
  stroke-linecap: round; opacity: 0.3;
}
@media (max-width: 720px) {
  .hero-vessel {
    right: -22%; top: 58%; width: 96vw;
    transform: translateY(-50%) rotate(6deg);
  }
  .hero-vessel path { opacity: 0.16; }
}
.js .hero-vessel .draw {
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw-line 2.4s var(--ease-out) forwards;
}
.js .hero-vessel .draw-1 { animation-delay: 0.3s; }
.js .hero-vessel .draw-2 { animation-delay: 1.6s; animation-duration: 0.8s; }
.js .hero-vessel .draw-3 { animation-delay: 1.9s; animation-duration: 1.2s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* Slow drifting color fields */
.hero-blob {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(70px); pointer-events: none; will-change: transform;
}
.hero-blob-a {
  width: 560px; height: 560px; left: -160px; top: -120px;
  background: radial-gradient(circle, rgba(232, 237, 218, 0.95), rgba(232, 237, 218, 0));
  animation: drift-a 16s ease-in-out infinite alternate;
}
.hero-blob-b {
  width: 480px; height: 480px; right: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(107, 122, 62, 0.16), rgba(107, 122, 62, 0));
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(70px, 50px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-60px, -40px) scale(1.12); } }

/* Scroll cue */
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-tertiary); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.scroll-cue:hover { text-decoration: none; color: var(--primary-dark); }
.scroll-cue-text { white-space: nowrap; }
.scroll-cue-line { width: 1.5px; height: 44px; background: var(--text-tertiary); overflow: hidden; position: relative; display: block; }
.scroll-cue-line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--primary-dark); animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop { 60%, 100% { top: 100%; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-band { padding: 64px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: var(--paper); overflow: hidden; }
.marquee-label {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 700;
  color: var(--text-tertiary); margin-bottom: 26px;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee + .marquee { margin-top: 18px; }
/* home.js splits each track into two identical halves so translateX(-50%)
   loops seamlessly. Gaps live on the halves, not the track. */
.marquee-track {
  display: inline-flex;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee-half { display: inline-flex; align-items: baseline; gap: 28px; padding-right: 28px; }
html:not(.js) .marquee-track { align-items: baseline; gap: 28px; padding-right: 28px; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 42s; }
/* Pause on hover only where hover actually exists — on touch screens iOS
   makes :hover sticky after a tap, which froze the marquee. */
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-track span {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: var(--ink);
  transition: color 0.25s ease;
}
.marquee-track span:hover { color: var(--primary); cursor: default; }
.marquee-track i { font-style: normal; color: var(--primary); font-size: 1.4rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding: 120px 0; }
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px; text-align: center;
}
@media (max-width: 780px) { .stat-grid { grid-template-columns: 1fr; gap: 44px; } }
.stat-num {
  display: block; font-family: var(--serif); color: var(--primary-dark);
  font-size: clamp(3.6rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin: 14px auto 0; max-width: 26ch; color: var(--text-secondary); font-size: 1rem; }
.stat-kicker { margin: 72px auto 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); max-width: 30ch; }
.stat-kicker em { color: var(--primary); }

/* ==========================================================================
   Scrollytelling — how it works
   ========================================================================== */
.scrolly { position: relative; height: 340vh; background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.scrolly-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scrolly-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; width: 100%; }
@media (max-width: 880px) { .scrolly-grid { grid-template-columns: 1fr; gap: 30px; } }

.scrolly-steps { list-style: none; margin: 30px 0 0; padding: 0; }
.scrolly-step {
  padding: 20px 24px; margin: 0 -24px 6px; border-radius: var(--radius);
  opacity: 0.34; transition: opacity 0.4s ease, background 0.4s ease, transform 0.4s var(--ease-out);
}
.scrolly-step.is-active { opacity: 1; background: var(--primary-light); transform: translateX(6px); }
.scrolly-step h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.step-index { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--primary); }
.scrolly-step p { margin: 0; font-size: 0.98rem; }
@media (max-width: 880px) {
  .scrolly { height: auto; }
  .scrolly-sticky { position: static; height: auto; padding: 90px 0; }
  .scrolly-step { opacity: 0.55; margin: 0 -16px 6px; padding: 14px 16px; }
  .scrolly-step.is-active { opacity: 1; background: var(--primary-light); transform: none; }
}

/* Phone mockup */
.scrolly-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(290px, 70vw); aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 70px rgba(43, 48, 27, 0.28);
  transform: rotate(-3deg);
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: var(--ink); border-radius: 999px; z-index: 3;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--bg); border-radius: 32px;
}
.pstate {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 30px 22px;
  opacity: 0; transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.pstate.is-active { opacity: 1; transform: none; }
.pstate-title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.pstate-sub { color: var(--text-secondary); font-size: 0.92rem; margin-top: -10px; }
.pstate-foot { font-size: 0.78rem; color: var(--text-tertiary); }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 78%; }
.app-tile { aspect-ratio: 1; border-radius: 14px; background: #dcd7c9; position: relative; }
.app-tile.locked { background: var(--primary-light); }
.app-tile.locked::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 38%; height: 38%;
  border: 2px solid var(--primary-dark); border-radius: 4px;
  border-top-left-radius: 50%; border-top-right-radius: 50%;
  clip-path: inset(0 0 55% 0);
}
.app-tile.locked::before {
  content: ""; position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%);
  width: 44%; height: 34%; background: var(--primary-dark); border-radius: 3px;
}

.buddy-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--divider); border-radius: 16px; padding: 14px 16px; width: 84%;
  box-shadow: var(--shadow);
}
.buddy-avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem;
}
.buddy-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.35; }
.buddy-text strong { color: var(--ink); }
.buddy-actions { display: flex; gap: 10px; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  background: var(--paper); color: var(--text-secondary); border: 1px solid var(--divider);
}
.chip-ok { background: var(--primary); color: #fff; border-color: transparent; }
.pstate-vessel { width: 74px; height: auto; }
.pstate-vessel path { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: 120px 0; }
.features-alt { padding-top: 0; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(43, 48, 27, 0.14); }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.97rem; }

/* ==========================================================================
   Philosophy band
   ========================================================================== */
.band {
  position: relative; background: var(--primary-deep); color: #fff;
  padding: 140px 0; overflow: hidden;
}
.band h2, .band p { color: #fff; }
.band .quote {
  font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.15;
  max-width: 20ch; margin: 0 auto; position: relative; z-index: 2;
}
.band .quote .w {
  display: inline-block; opacity: 0; transform: translateY(0.5em);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.band .quote.is-visible .w { opacity: 1; transform: none; }
.band-sub {
  position: relative; z-index: 2; margin: 26px auto 0; max-width: 46ch;
  color: rgba(255, 255, 255, 0.78) !important; font-size: 1.08rem;
}
.band-vessel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, 86vw); height: auto; z-index: 1; opacity: 0.16; pointer-events: none;
}
.band-vessel path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.js .band-vessel .band-draw { stroke-dasharray: 900; stroke-dashoffset: 900; }

/* No-JS fallbacks */
html:not(.js) .band .quote .w { opacity: 1; transform: none; }
html:not(.js) .band-vessel .band-draw { stroke-dashoffset: 0; }

/* ==========================================================================
   Download
   ========================================================================== */
.download { padding: 120px 0; }
.platforms { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  text-align: center; padding: 36px 28px 30px; background: var(--surface);
  border: 1px solid var(--divider); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.platform:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.platform-live { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.platform-glyph {
  width: 60px; height: 60px; border-radius: 18px; background: var(--primary-light);
  display: grid; place-items: center; margin-bottom: 8px; color: var(--primary-dark);
}
.platform-glyph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platform h3 { margin: 0; }
.platform p { margin: 0; font-size: 0.95rem; }
.platform .status { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.platform .status-soon { color: var(--text-tertiary); }
.platform .btn { margin-top: 14px; }

/* ==========================================================================
   Outro
   ========================================================================== */
.outro { padding: 150px 0 140px; background: var(--paper); border-top: 1px solid var(--divider); }
.outro-title { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 0.3em; letter-spacing: -0.02em; }
.outro-sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-secondary); margin-bottom: 2.2em; }
.outro-ig { margin: 0; }

/* Instagram icon link */
.ig-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; color: var(--primary-dark);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}
.ig-link svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ig-link .ig-dot { fill: currentColor; stroke: none; }
.ig-link:hover { color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
.ig-link-sm { width: 36px; height: 36px; margin-top: 6px; color: var(--text-secondary); }
.ig-link-sm svg { width: 21px; height: 21px; }
/* Beat the `.footer-col a { display: block }` rule so the icon stays flex-centered
   inside its hover highlight. */
.footer-col a.ig-link { display: inline-flex; margin-bottom: 0; }

/* ==========================================================================
   Vessel scroll progress (fixed, fills as you scroll)
   ========================================================================== */
.vessel-progress {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 56px; padding: 4px; cursor: pointer;
  background: rgba(255, 253, 248, 0.75); border: 1px solid var(--divider); border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.vessel-progress.is-visible { opacity: 1; transform: none; }
.vessel-progress svg { width: 100%; height: 100%; display: block; }
.vessel-progress .vp-outline { fill: none; stroke: var(--primary-dark); stroke-width: 8; }
.vessel-progress #vp-fill { fill: var(--primary); transition: y 0.2s linear; }
@media (max-width: 640px) { .vessel-progress { right: 14px; bottom: 14px; width: 38px; height: 47px; } }

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Stagger children inside a reveal-group */
.js .reveal-group .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .reveal-group .reveal:nth-child(3) { transition-delay: 0.24s; }
.js .reveal-group .reveal:nth-child(4) { transition-delay: 0.12s; }
.js .reveal-group .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .reveal-group .reveal:nth-child(6) { transition-delay: 0.36s; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--divider); padding: 60px 0 34px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--ink); }
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-tertiary); font-size: 0.85rem; }
/* Below ~1280px the fixed corner vessel floats over the content column —
   keep the copyright row clear of it. */
@media (max-width: 1280px) { .footer-bottom { padding-right: 80px; } }

/* ==========================================================================
   Cookie banner + modal (same IDs/behavior as site.js expects)
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; max-width: 560px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.92rem; margin: 0 0 14px; color: var(--text-secondary); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.92rem; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(35, 38, 26, 0.55);
  display: grid; place-items: center; padding: 24px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface); border-radius: var(--radius); max-width: 420px; width: 100%;
  padding: 32px 28px; text-align: center; box-shadow: var(--shadow);
}
.modal .emoji { font-size: 40px; }
.modal h3 { margin: 12px 0 8px; font-size: 1.4rem; }
.modal p { margin: 0 0 18px; }
.modal .modal-close { margin-top: 4px; }
.modal-input {
  width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 1rem;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--divider); background: var(--bg); color: var(--ink);
}
.modal-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.modal-status { min-height: 1.2em; margin: 12px 0 0; font-size: 0.9rem; font-weight: 600; }
#soon-form[hidden] { display: none; }

/* ==========================================================================
   Reduced motion — everything settles instantly
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .rise, .js .hero-title .rise { opacity: 1; transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-vessel .draw, .js .band-vessel .band-draw { stroke-dashoffset: 0 !important; animation: none; }
  .band .quote .w { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .scrolly { height: auto; }
  .scrolly-sticky { position: static; height: auto; padding: 90px 0; }
  .scrolly-step { opacity: 1; }
  .pstate { position: static; opacity: 1; transform: none; }
  .pstate:not(.is-active) { display: none; }
}
