:root {
  --bg: #0c0b0a;
  --bg-1: #131110;
  --bg-2: #1a1714;
  --line: rgba(255, 245, 230, 0.08);
  --line-2: rgba(255, 245, 230, 0.14);
  --text: #f3f0ea;
  --muted: rgba(243, 240, 234, 0.66);
  --faint: rgba(243, 240, 234, 0.44);
  --accent: #f4b052;
  --accent-ink: #1a1206;
  --cream: #efece6;
  --green: #5ccc8f;
  --red: #f05454;

  --serif: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 74rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --hero-pb: clamp(4rem, 9vw, 8rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(244, 176, 82, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: .5rem .875rem; background: var(--cream); color: #111; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Film grain over everything; static so it costs nothing while scrolling. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 50rem; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--faint); }

/* Type */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 7.6vw, 6.75rem);
  line-height: .98;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.display em, .h2 em { font-style: italic; font-weight: 400; }
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: rgba(240, 243, 240, 0.86); max-width: 34rem; text-wrap: pretty; }
.kicker { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.25rem; }
.caption { font-size: .78rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: rgba(240, 243, 240, 0.6); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 2.375rem; padding: 0 1.125rem; font-size: .9375rem; }
.btn-primary { background: var(--cream); color: #141210; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #fff; }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.36); }
}

/* Nav: transparent over the hero, a translucent material once content scrolls under it. */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 250ms ease, box-shadow 250ms ease; }
.nav.is-scrolled {
  background: rgba(12, 11, 10, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { max-width: 90rem; margin: 0 auto; padding: 0 var(--pad); height: 4.25rem; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; font-weight: 600; letter-spacing: -0.02em; font-size: 1.125rem; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 2rem; font-size: .9375rem; color: rgba(240, 243, 240, 0.78); }
.nav-links a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: #fff; } }
.nav-cta { display: flex; gap: .5rem; margin-left: auto; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- Hero: the crew at sea ---------- */
.hero {
  --horizon: 60%;
  --moon-x: 16%;
  --boat-w: min(470px, 62vw, 52vh);
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(640px, 100svh, 1100px);
  padding-top: calc(4.25rem + clamp(1.75rem, 7vh, 5.5rem));
  background: #05070f;
}
.hero .display { font-size: clamp(3rem, min(6.6vw, 9.6vh), 5.75rem); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(1rem, 2.6vh, 1.5rem); color: #f1ede6; }
.hero-copy .lede { margin: 0 auto; color: rgba(241, 237, 230, 0.8); }
.hero .caption { color: rgba(241, 237, 230, 0.5); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .25rem; }

.sea { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.layer { position: absolute; inset: 0; }

.sky {
  inset: -12% -40px 0;
  background:
    radial-gradient(70% 20% at 50% 64.3%, rgba(236, 140, 86, 0.42), transparent 70%),
    radial-gradient(26% 26% at 18% 54%, rgba(255, 228, 190, 0.08), transparent 70%),
    linear-gradient(180deg, #04060d 0%, #080c19 22%, #12172d 42%, #262640 54%, #4f3446 60%, #9a5844 64.3%, #9a5844 100%);
}
.stars { position: absolute; inset: 0 0 46% 0; }
.star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o); }
.star.tw { animation: twinkle var(--t) ease-in-out infinite alternate; animation-delay: var(--dl); }
@keyframes twinkle { to { opacity: calc(var(--o) * 0.2); } }
.shooting-star {
  position: absolute; top: 15%; left: 74%; width: 150px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
  transform-origin: 0 50%; opacity: 0; animation: shoot 17s linear 5s infinite;
}
@keyframes shoot {
  0%, 92% { opacity: 0; transform: rotate(158deg) translateX(0); }
  93% { opacity: .9; }
  97%, 100% { opacity: 0; transform: rotate(158deg) translateX(340px); }
}

.moon {
  position: absolute; left: var(--moon-x); top: 47%; width: clamp(56px, 7.2vw, 116px); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background:
    radial-gradient(18% 18% at 62% 58%, rgba(170, 150, 120, 0.22), transparent 70%),
    radial-gradient(12% 12% at 34% 66%, rgba(170, 150, 120, 0.18), transparent 70%),
    radial-gradient(10% 10% at 58% 30%, rgba(170, 150, 120, 0.16), transparent 70%),
    radial-gradient(circle at 38% 36%, #fffaf0 0%, #f6ead2 45%, #e3d0ab 100%);
  box-shadow: 0 0 40px 8px rgba(255, 236, 200, 0.2), 0 0 160px 60px rgba(255, 214, 170, 0.08);
}

.islands { position: absolute; left: -30px; width: calc(100% + 60px); top: 56%; height: 4.4%; }
.lighthouse { position: absolute; left: 86.8%; top: 58.6%; height: 6.4%; aspect-ratio: 20 / 60; translate: -50% -100%; }
.lighthouse svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.lamp {
  position: absolute; left: 50%; top: 10%; z-index: 2; width: 320%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 175, 0.95) 0, rgba(255, 200, 130, 0.4) 12%, rgba(255, 190, 120, 0) 55%);
  animation: lamp 10s linear infinite;
}
@keyframes lamp {
  0%, 100% { transform: scale(1.5); opacity: 1; }
  12%, 88% { transform: scale(1); opacity: .75; }
  40%, 58% { transform: scale(.8); opacity: .45; }
}
/* A rotating beam: long when it points sideways, gone when it points away. */
.beam {
  position: absolute; left: 50%; top: 10%; width: 30vw; height: 2.2vw; transform-origin: 0 50%; translate: 0 -50%;
  background: linear-gradient(90deg, rgba(255, 230, 180, 0.55), rgba(255, 230, 180, 0) 95%);
  clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 53%);
  filter: blur(1.5px); opacity: 0; animation: beam 10s linear infinite;
}
@keyframes beam {
  0% { transform: scaleX(.03); opacity: .2; }
  22% { transform: scaleX(1); opacity: .55; }
  45% { transform: scaleX(.03); opacity: 0; }
  50% { transform: scaleX(-.03); opacity: 0; }
  72% { transform: scaleX(-1); opacity: .5; }
  97% { transform: scaleX(-.03); opacity: .3; }
  100% { transform: scaleX(.03); opacity: .2; }
}

.sea-base {
  top: var(--horizon); bottom: -20%; left: -40px; right: -40px;
  background:
    linear-gradient(180deg, rgba(255, 196, 150, 0.32), transparent 2px),
    radial-gradient(50% 9% at 50% 0%, rgba(240, 150, 90, 0.45), transparent 70%),
    linear-gradient(180deg, #5a3a48 0%, #2c2540 3%, #1a1a30 18%, #10121f 45%, #0b0c14 100%);
}

/* Waves: a seamless two-tile track drifting left; the layer's body fills below it. */
.wave { position: absolute; left: -60px; right: -60px; top: var(--top); bottom: -30%; }
.wave::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--wh) - 1px); bottom: 0; background: linear-gradient(180deg, var(--fill), var(--fill2)); }
.wave-track { display: block; width: 200%; height: var(--wh); animation: drift var(--dur, 40s) linear infinite; }
.wave-track .body { fill: var(--fill); }
.wave-track .crest { fill: none; stroke: var(--crest); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
@keyframes drift { to { transform: translateX(-50%); } }
.w1 { --top: 61.4%; --wh: 1.1vh; --fill: #231e36; --fill2: #16172b; --crest: rgba(255, 180, 140, 0.16); }
.w2 { --top: 67%; --wh: 1.8vh; --fill: #1b1a2f; --fill2: #111320; --crest: rgba(255, 186, 150, 0.12); }
.w3 { --top: 79%; --wh: 3.2vh; --fill: #13131f; --fill2: #0e0e16; --crest: rgba(255, 200, 165, 0.1); }
.w4 { --top: 90%; --wh: 4.2vh; --fill: var(--bg); --fill2: var(--bg); --crest: rgba(255, 210, 175, 0.06); }

/* Reflections: the moon's column and the lantern's, as flickering glints. */
.glints { position: absolute; }
.moon-glints { left: var(--moon-x); top: calc(var(--horizon) + .4%); height: 29%; width: 0; }
.moon-glints::before { /* the soft column the glints sit in */
  content: ""; position: absolute; left: -4vw; width: 8vw; top: 0; height: 100%;
  background: radial-gradient(50% 70% at 50% 0%, rgba(255, 236, 200, 0.12), transparent 75%);
}
.lantern-glints { left: calc(50% - var(--boat-w) * 0.035); top: 85%; height: 5%; width: 0; }
.glint {
  position: absolute; left: 0; height: var(--h); width: var(--w); border-radius: 50%; translate: calc(-50% + var(--jx)) 0;
  background: var(--c); opacity: var(--o); filter: blur(.5px);
  animation: glint var(--t) ease-in-out infinite alternate; animation-delay: var(--dl);
}
@keyframes glint { to { opacity: calc(var(--o) * 0.15); transform: translateX(var(--sx)) scaleX(.55); } }

/* The boat rocks around its waterline; the crew rides along. */
.boat { position: absolute; left: 50%; top: 83.5%; width: var(--boat-w); aspect-ratio: 4 / 3; translate: -50% -80%; transform-origin: 50% 80%; will-change: transform; }

/* Helm: sail the boat left and right. Hold to sail, tap or use the arrow keys for a short glide. */
.helm {
  position: absolute; left: 50%; bottom: clamp(1rem, 3.2vh, 2rem); translate: -50% 0; z-index: 2;
  display: flex; align-items: center; gap: .25rem; padding: .3rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  animation: helm-in 700ms var(--ease-out) 900ms both;
}
@keyframes helm-in { from { opacity: 0; transform: translateY(8px); } }
.helm-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: var(--cream); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
}
.helm-btn:active, .helm-btn.is-held { transform: scale(.92); background: var(--accent); color: var(--accent-ink); }
.helm-btn.at-edge { opacity: .4; }
@media (hover: hover) and (pointer: fine) { .helm-btn:not(.is-held):hover { background: rgba(255, 255, 255, 0.16); } }
.helm-label { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 237, 230, 0.6); padding: 0 .5rem; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.boat-rock { position: absolute; inset: 0; transform-origin: 50% 80%; animation: rock 6s ease-in-out infinite alternate; }
@keyframes rock {
  from { transform: rotate(-2.4deg) translateY(0); }
  to { transform: rotate(2deg) translateY(-1.6%); }
}
.boat-back, .boat-front { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.boat-front { z-index: 2; }
.boat .actor { z-index: 1; }
.flag { transform-box: fill-box; transform-origin: 0 50%; animation: flag 1.4s ease-in-out infinite alternate; }
@keyframes flag { to { transform: scaleX(.84) skewY(-7deg); } }
.lantern-glow {
  position: absolute; left: 46.5%; top: 51.5%; width: 38%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 130, 0.6) 0, rgba(255, 170, 80, 0.16) 35%, transparent 68%);
  mix-blend-mode: screen; animation: flicker 3.4s linear infinite;
}
@keyframes flicker {
  0%, 100% { opacity: .92; } 18% { opacity: 1; } 31% { opacity: .8; } 52% { opacity: 1; } 71% { opacity: .86; }
}

@media (max-width: 700px) {
  .hero { --boat-w: min(80vw, 46vh); }
  .moon { top: 55.5%; width: 40px; }
  .beam { width: 46vw; height: 3.4vw; }
}

/* ---------- Characters ---------- */
.char { display: inline-block; flex: none; line-height: 0; }
.char svg { width: 100%; height: 100%; overflow: visible; }
.char .eyes { transform-box: fill-box; transform-origin: center; transform: translateX(var(--look, 0%)); }
.char .eye { transform-box: fill-box; transform-origin: center; }
.char[data-animate] svg { animation: char-bob var(--bob, 6s) var(--ease-in-out) infinite alternate; animation-delay: var(--d, 0s); transform-origin: 50% 88%; }
.char[data-animate] .eyes { animation: char-glance 9s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.char[data-animate] .eye { animation: char-blink 3.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes char-bob {
  from { transform: translateY(0) rotate(-2.5deg); }
  to { transform: translateY(-4%) rotate(2.5deg); }
}
@keyframes char-glance {
  0%, 35% { transform: translateX(calc(var(--look, 0%) - 12%)); }
  65%, 100% { transform: translateX(calc(var(--look, 0%) + 12%)); }
}
@keyframes char-blink {
  0%, 95%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.12); }
}

/* An actor is a character standing on a floor, with a contact shadow that shrinks as it lifts. */
.actor { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--s) * 1%); aspect-ratio: 1; translate: -50% -90%; z-index: 1; }
.actor .char { position: relative; z-index: 1; width: 100%; height: 100%; }
.shadow {
  position: absolute; left: 50%; top: calc(var(--foot, 90) * 1%); width: 92%; height: 15%;
  translate: -50% -55%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22) 60%, transparent);
  animation: shadow-bob var(--bob, 6s) var(--ease-in-out) infinite alternate; animation-delay: var(--d, 0s);
}
@keyframes shadow-bob {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.84); opacity: .7; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; }
.center-head { text-align: center; max-width: 50rem; margin: 0 auto clamp(3rem, 6vw, 5rem); }

/* Statement */
.statement { padding-top: clamp(5rem, 10vw, 8rem); }
.statement .kicker { text-align: center; }
.statement-text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; letter-spacing: -0.012em;
  text-align: center; text-wrap: balance;
}
.statement-text .w { opacity: .18; transition: opacity 180ms linear; }

/* Demo window, tilted back until it scrolls in */
.tilt-stage { position: relative; isolation: isolate; perspective: 1800px; max-width: 66rem; margin: 0 auto; }
.window-glow { position: absolute; inset: 15% 8% -6%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(244, 176, 82, 0.22), transparent 70%); filter: blur(40px); }
.window {
  position: relative; transform-origin: 50% 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 27, 24, 0.96), rgba(19, 17, 15, 0.98));
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.window-bar { height: 2.5rem; display: flex; align-items: center; padding: 0 .875rem; border-bottom: 1px solid var(--line); }
.window-title { flex: 1; text-align: center; font-size: .8125rem; font-weight: 600; color: var(--faint); }
.window-spacer { width: 52px; }
.dots { display: inline-flex; gap: 8px; width: 52px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 238, 214, 0.12); }
.window-body { display: grid; grid-template-columns: 15rem 1fr; height: clamp(30rem, 50vw, 34rem); }

.sidebar { border-right: 1px solid var(--line); padding: 1rem .75rem; background: rgba(0, 0, 0, 0.15); }
.side-label { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 .5rem; margin: .25rem 0 .5rem; }
.crew-list { display: grid; gap: 2px; margin-bottom: 1.25rem; }
.crew-list li { display: flex; align-items: center; gap: .625rem; padding: .45rem .5rem; border-radius: 10px; }
.crew-list li.is-active { background: rgba(255, 238, 214, 0.06); }
.crew-list b { display: block; font-size: .875rem; font-weight: 600; }
.crew-list small { display: block; font-size: .75rem; color: var(--faint); }
.crew-list > li > span:nth-child(2) { flex: 1; min-width: 0; }
.status { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 238, 214, 0.15); transition: background-color 300ms ease; }
.status.busy { background: var(--green); box-shadow: 0 0 0 3px rgba(92, 204, 143, 0.15); }
.group-list li { padding: .4rem .5rem; font-size: .875rem; color: var(--muted); }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: .625rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: .9375rem; }
.chat-head small { display: block; font-size: .75rem; color: var(--green); }
.chat-scroll {
  flex: 1; min-height: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3.5rem);
  mask-image: linear-gradient(to bottom, transparent, #000 3.5rem);
}
.chat-stack { display: flex; flex-direction: column; gap: .875rem; padding: 1.25rem; }
[data-step] { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.window.is-playing [data-step]:not(.is-shown) { opacity: 0; transform: translateY(10px); position: absolute; visibility: hidden; }

.msg { font-size: .9375rem; line-height: 1.5; padding: .625rem .875rem; border-radius: 16px; max-width: 34rem; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; font-weight: 500; }
.msg-agent { display: flex; gap: .625rem; align-items: flex-start; max-width: 36rem; }
.msg-agent > .char { margin-top: .25rem; }
.msg-bot { background: rgba(255, 238, 214, 0.06); border-bottom-left-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; padding: .25rem .625rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-family: var(--mono); }
.tick { width: 12px; height: 12px; border-radius: 50%; background: rgba(92, 204, 143, 0.18); position: relative; }
.tick::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 3px; height: 5.5px; border: solid var(--green); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.card { border: 1px solid var(--line-2); background: rgba(255, 238, 214, 0.035); border-radius: 14px; padding: .75rem .875rem; font-size: .875rem; min-width: 0; }
.card-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .8125rem; }
.card-run { width: min(22rem, 100%); }
.steps { display: grid; gap: .3rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: .5rem; }
.steps li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: rgba(92, 204, 143, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%235ccc8f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.card-foot { margin-top: .625rem; padding-top: .5rem; border-top: 1px solid var(--line); color: var(--accent); font-size: .78rem; }
.card-pr { display: flex; gap: .75rem; align-items: center; }
.card-pr b { display: block; font-weight: 600; }
.card-pr small { color: var(--faint); font-size: .78rem; }
.pr-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(92, 204, 143, 0.15); color: var(--green); flex: none; }
.add { color: var(--green); } .del { color: var(--red); }
.card-ask p { margin-bottom: .625rem; font-weight: 500; }
.ask-options { display: flex; flex-wrap: wrap; gap: .4em; }
.opt {
  display: inline-flex; align-items: center; height: 2.3em; padding: 0 1em; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 238, 214, 0.05);
  font-size: .9em; font-weight: 500; cursor: default;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.opt.is-picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.composer { margin: 0 1.25rem 1.25rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; padding: 0 .375rem 0 1rem; font-size: .875rem; color: var(--faint); }
.send { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); position: relative; }
.send::after { content: ""; position: absolute; left: 50%; top: 52%; width: 8px; height: 8px; border: solid var(--accent-ink); border-width: 2px 0 0 2px; transform: translate(-50%, -30%) rotate(45deg); }
@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; height: 32rem; }
  .sidebar { display: none; }
  .chat-stack { padding: 1rem; }
  .composer { margin: 0 1rem 1rem; }
}

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.how li { border-top: 1px solid var(--line-2); padding-top: 1.75rem; }
.how-num { display: block; font-family: var(--serif); font-style: italic; font-size: 3.25rem; line-height: 1; color: var(--accent); }
.how h3 { font-size: 1.1875rem; letter-spacing: -0.012em; margin: 1.25rem 0 .5rem; }
.how p { color: var(--muted); font-size: .9875rem; max-width: 22rem; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* ---------- Chapters on lit stages ---------- */
.chapter { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.chapter + .chapter { margin-top: clamp(5rem, 11vw, 9rem); }
.chapter.is-flipped .chapter-copy { order: 2; }
.chapter-copy .h3 { margin-bottom: 1.25rem; }
.chapter-copy > p:last-child { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; max-width: 28rem; }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter.is-flipped .chapter-copy { order: 0; }
}

/* Scenes: night-sky panels in the hero's palette; the crew floats in the glow. */
.scene {
  --sky: linear-gradient(180deg, #070a16 0%, #121730 55%, #2a2948 100%);
  --glow: rgba(150, 165, 255, 0.24);
  position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; isolation: isolate;
  container-type: inline-size;
}
.scene::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.scene-short { aspect-ratio: 16 / 11; }
.scene-bg { position: absolute; inset: -10% 0; z-index: -1; background: var(--sky); }
.scene-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 42% at 50% 92%, var(--glow), transparent 72%); }
.scene-bg::after { /* a few faint stars */
  content: ""; position: absolute; inset: 0 0 45%; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 44%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 46% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 36%, #fff, transparent),
    radial-gradient(1px 1px at 78% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 52%, #fff, transparent),
    radial-gradient(1px 1px at 7% 66%, #fff, transparent), radial-gradient(1px 1px at 55% 70%, #fff, transparent);
}
.scene-dusk {
  --sky: linear-gradient(180deg, #0d0a10 0%, #2a1b24 52%, #6e3f36 100%);
  --glow: rgba(255, 168, 108, 0.32);
}
.scene-blue {
  --sky: linear-gradient(180deg, #050d15 0%, #0d2230 55%, #1b4955 100%);
  --glow: rgba(110, 220, 230, 0.22);
}
.scene-olive {
  --sky: linear-gradient(180deg, #0c0918 0%, #1e1737 55%, #3d2f63 100%);
  --glow: rgba(190, 160, 255, 0.26);
}
.scene .actor { z-index: 2; }
.scene .char[data-animate] svg { animation-name: char-float; }
.scene .shadow { top: calc(var(--foot, 90) * 1% + 12%); width: 70%; height: 11%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), transparent); animation-name: shadow-float; }
@keyframes char-float {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-9%) rotate(3deg); }
}
@keyframes shadow-float {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(.74); opacity: .55; }
}

/* Floating UI cards inside scenes: a translucent material, sized with the scene. */
.scene-card {
  position: absolute; z-index: 1;
  font-size: clamp(11px, 2.25cqw, 15px);
  background: rgba(16, 15, 13, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1.2em;
  padding: 1.1em 1.2em;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card-group { left: 7%; top: 9%; width: 66%; }
.group-head { font-weight: 600; font-size: .95em; display: flex; gap: .5em; align-items: baseline; }
.group-head small { color: var(--faint); font-weight: 500; font-size: .8em; }
.gmsg { display: flex; gap: .6em; align-items: flex-start; margin-top: .65em; }
.gmsg p { font-size: .93em; background: rgba(255, 255, 255, 0.06); padding: .5em .8em; border-radius: .9em .9em .9em .3em; color: var(--muted); line-height: 1.45; }
.gmsg b { display: block; color: var(--text); font-size: .85em; font-weight: 600; margin-bottom: 1px; }

.term { left: 30%; top: 9%; width: 64%; background: rgba(8, 7, 6, 0.82); font-family: var(--mono); font-size: clamp(10px, 1.95cqw, 13px); line-height: 1.85; }
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dim { color: var(--faint); } .t-ok { color: var(--green); } .t-acc { color: var(--accent); }
.pr-mini { left: 42%; top: 47%; width: 50%; display: flex; flex-direction: column; gap: .6em; }
.pr-mini b { font-weight: 600; line-height: 1.35; }
.checks { display: flex; align-items: center; gap: 4px; font-size: .85em; color: var(--faint); }
.checks i { width: .55em; height: .55em; border-radius: 50%; background: var(--green); }
.checks i:last-of-type { margin-right: 4px; }
.merge { align-self: flex-start; font-size: .88em; font-weight: 600; padding: .45em .85em; border-radius: .6em; background: rgba(92, 204, 143, 0.18); color: var(--green); }

.card-ask-big { left: 7%; top: 12%; width: 64%; display: flex; flex-direction: column; gap: .55em; }
.ask-from { display: flex; align-items: center; gap: .5em; font-size: .85em; color: var(--faint); font-weight: 500; }
.ask-q { font-weight: 600; font-size: 1.08em; line-height: 1.35; margin-bottom: .3em; }
.card-ask-big .opt { cursor: pointer; }
.card-ask-big .opt:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .card-ask-big .opt:not(.is-picked):hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.26); } }
.ask-sent { font-size: .85em; color: var(--green); min-height: 1.3em; opacity: 0; transform: translateY(4px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.ask-sent.is-on { opacity: 1; transform: none; }

.card-routines { left: 30%; top: 10%; width: 63%; display: grid; gap: .55em; }
.routine { display: flex; gap: .75em; align-items: center; padding: .6em .7em; border-radius: .8em; background: rgba(255, 255, 255, 0.05); }
.routine b { display: block; font-size: .95em; font-weight: 600; }
.routine small { display: block; font-size: .8em; color: var(--faint); }

.scene-amber { --sky: linear-gradient(180deg, #0b0a12 0%, #231532 55%, #5c3a3f 100%); --glow: rgba(255, 186, 104, 0.28); }
.card-call { left: 7%; top: 12%; width: 66%; display: flex; flex-direction: column; gap: .55em; }
.call-head { display: flex; align-items: center; justify-content: space-between; gap: .6em; flex-wrap: wrap; }
.call-from { display: flex; align-items: center; gap: .5em; font-size: .85em; color: var(--faint); font-weight: 500; }
.call-live { display: inline-flex; align-items: center; gap: .45em; font-size: .78em; font-weight: 500; color: var(--green); padding: .25em .65em; border-radius: 999px; background: rgba(92, 204, 143, 0.14); }
.call-live::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--green); animation: call-pulse 1.8s ease-in-out infinite; }
@keyframes call-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .call-live::before { animation: none; } }
.call-goal { font-weight: 600; font-size: 1.08em; line-height: 1.35; }
.call-note { font-size: .9em; color: var(--muted); background: rgba(255, 255, 255, 0.06); padding: .5em .8em; border-radius: .9em .9em .9em .3em; line-height: 1.45; }
.call-ok { align-self: flex-start; font-size: .88em; font-weight: 600; padding: .45em .85em; border-radius: .6em; background: rgba(92, 204, 143, 0.18); color: var(--green); }
.call-summary { font-size: .9em; color: var(--muted); line-height: 1.45; }
.r-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; position: relative; }
.r-clock { background: rgba(244, 176, 82, 0.15); }
.r-clock::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--accent); border-radius: 50%; }
.r-clock::after { content: ""; position: absolute; left: 14.25px; top: 11px; width: 1.5px; height: 5px; background: var(--accent); }
.r-ci { background: rgba(240, 84, 84, 0.15); }
.r-ci::before, .r-ci::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--red); border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.r-ci::after { transform: translate(-50%, -50%) rotate(-45deg); }
.r-issue { background: rgba(92, 204, 143, 0.15); }
.r-issue::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--green); border-radius: 50%; }
.r-issue::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; background: var(--green); border-radius: 50%; transform: translate(-50%, -50%); }

@media (max-width: 640px) {
  .scene { aspect-ratio: 4 / 5; border-radius: 22px; }
  .scene-short { aspect-ratio: 1 / 1; }
  .scene-card { font-size: clamp(11px, 3.6cqw, 14px); }
  .card-group, .card-ask-big, .card-call { left: 6%; width: 88%; top: 6%; }
  .term { left: 6%; width: 88%; top: 6%; font-size: clamp(10px, 3cqw, 12px); }
  .pr-mini { left: 30%; width: 64%; top: 40%; }
  .card-routines { left: 6%; width: 88%; top: 6%; }
}

/* More */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 4vw, 3rem); }
.more-item { padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--line-2); }
.more-item h3 { font-size: 1.0625rem; letter-spacing: -0.01em; margin: 1rem 0 .4rem; }
.more-item p { color: var(--muted); font-size: .9375rem; max-width: 22rem; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.platform { border: 1px solid var(--line); border-radius: 28px; background: var(--bg-1); overflow: hidden; }
.platform .scene { border-radius: 20px; margin: .625rem .625rem 0; }
.platform-copy { padding: 1.5rem 1.75rem 1.75rem; }
.platform-copy h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: -0.015em; margin-bottom: .375rem; }
.platform-copy p { color: var(--muted); font-size: .9375rem; }
.phone {
  position: absolute; left: 50%; bottom: -8%; width: min(15rem, 54%); height: 86%; margin-left: max(-7.5rem, -27%);
  border-radius: 36px 36px 0 0; border: 6px solid #26221e; border-bottom: 0; background: var(--bg); padding: 1rem 1rem 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.phone-notch { width: 34%; height: 1.15rem; border-radius: 999px; background: #000; margin: 0 auto 1.1rem; }
.phone-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: .9rem; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem .25rem; }
.phone-grid > span { display: flex; flex-direction: column; align-items: center; gap: .375rem; }
.phone-grid small { font-size: .6875rem; color: var(--muted); }
.mac {
  position: absolute; left: 9%; right: 9%; top: 14%; bottom: -6%;
  border-radius: 12px 12px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.mac-bar { height: 1.75rem; flex: none; display: flex; align-items: center; padding: 0 .625rem; border-bottom: 1px solid var(--line); }
.mac-bar .dots i { width: 9px; height: 9px; }
.mac-body { flex: 1; display: grid; grid-template-columns: 30% 1fr; }
.mac-side { border-right: 1px solid var(--line); padding: .875rem .75rem; display: grid; gap: .5rem; align-content: start; background: rgba(255, 238, 214, 0.02); }
.mac-side i, .mac-main i { display: block; height: .5rem; border-radius: 4px; background: rgba(255, 238, 214, 0.08); }
.mac-side i:first-child { background: rgba(244, 176, 82, 0.35); }
.mac-main { padding: 1rem; display: grid; gap: .75rem; align-content: start; }
.mac-main i.acc { height: 2.5rem; border-radius: 10px; background: rgba(244, 176, 82, 0.12); border: 1px solid rgba(244, 176, 82, 0.25); }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; } .w90 { width: 90%; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p { color: var(--muted); padding: 0 2rem 1.4rem 0; max-width: 40rem; }
.faq details[open] p { animation: faq-in 300ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* CTA: dusk again, with the boat far out on the horizon */
.cta {
  --sea-h: clamp(180px, 24vw, 300px);
  position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(6rem, 12vw, 10rem); text-align: center;
  background:
    radial-gradient(60% 26% at 50% calc(100% - var(--sea-h)), rgba(236, 140, 86, 0.36), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0b0d1a 40%, #221e37 calc(100% - var(--sea-h) - 10%), #6a3d3e calc(100% - var(--sea-h)));
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta-title { font-size: clamp(2.75rem, 6.4vw, 5.5rem); }
.cta-sea { position: relative; height: var(--sea-h); margin-top: clamp(3rem, 6vw, 5rem); }
.cta-sea .sea-base {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 196, 150, 0.32), transparent 2px),
    radial-gradient(40% 14% at 50% 0%, rgba(240, 150, 90, 0.4), transparent 70%),
    linear-gradient(180deg, #5a3a48 0%, #2c2540 5%, #16182a 35%, var(--bg) 100%);
}
.far-boat { position: absolute; left: 63%; top: 0; width: clamp(34px, 3.6vw, 54px); aspect-ratio: 60 / 50; translate: -50% -88%; transform-origin: 50% 85%; animation: rock 5s ease-in-out infinite alternate; }
.far-boat svg { width: 100%; height: 100%; }
.far-lantern { position: absolute; left: 46%; top: 60%; width: 6px; height: 6px; border-radius: 50%; background: #ffd59a; box-shadow: 0 0 10px 4px rgba(255, 180, 100, 0.45), 0 0 30px 10px rgba(255, 170, 90, 0.18); animation: flicker 3.4s linear infinite; }
.cw1 { --top: 14%; --wh: 10px; --fill: #221e34; --fill2: #14152a; --crest: rgba(255, 180, 140, 0.25); }
.cw2 { --top: 50%; --wh: 22px; --fill: var(--bg); --fill2: var(--bg); --crest: rgba(255, 200, 170, 0.1); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { color: var(--faint); font-size: .875rem; }
.footer .brand { font-size: .9375rem; }
.footer .brand img { border-radius: 5px; }

/* Scroll reveal: only when JS runs, so the page reads fine without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  [data-step] { transition: opacity 200ms ease; transform: none !important; }
  .char svg, .char .eyes, .char .eye, .shadow { animation: none !important; }
  .wave-track, .boat-rock, .far-boat, .flag, .glint, .star, .lantern-glow, .far-lantern, .lamp { animation: none !important; }
  .beam, .shooting-star { display: none; }
  .helm { animation: none; }
  .statement-text .w { opacity: 1; }
  .faq details[open] p { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .scene-card { background: #12100e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255, 238, 214, 0.28); --line-2: rgba(255, 238, 214, 0.4); --muted: rgba(243, 240, 234, 0.85); --faint: rgba(243, 240, 234, 0.7); }
  .grain { display: none; }
}
