﻿/* kiri website. Dark "night lagoon" look shared with Kiri Services and Kiri Driver.
   Motion language "Water": things leave fast and settle softly, never block a tap, and calm
   down to short fades for people who ask for reduced motion.
   Tokens use the canonical names from the shared spec (kiri-tokens.css), so this file keeps
   working on its own and stays in step if the shared token file is linked later. */

/* =================== Tokens =================== */
@property --hl { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  color-scheme: dark;
  /* palette */
  --kiri-night: #0A0C12;
  --kiri-night-deep: #07080C;
  --surface-glass: rgba(24, 27, 35, .82);
  --surface-raised: rgba(30, 33, 42, .94);
  --surface-solid: #1C1F26;
  --line: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .14);
  --stroke-strong: rgba(255, 255, 255, .24);
  --text: #F4F4F6;
  --label2: rgba(235, 235, 245, .70);
  --label3: rgba(235, 235, 245, .62);
  --kiri-yellow: #FFD60A;
  --kiri-yellow-deep: #E8B800;
  --kiri-yellow-hover: #FFE04D;
  --yellow-ink: #FFE9A6;
  --on-yellow: #111111;
  --green: #30D158;
  --link: #0A84FF;
  /* website aliases */
  --ink: var(--text);
  --mute: #A3A3AE;
  --body2: #C4C4CC;
  --go: var(--kiri-yellow);
  --on: var(--green);
  --cta: linear-gradient(180deg, var(--kiri-yellow), var(--kiri-yellow-deep));
  --glow-yellow: 0 10px 30px rgba(255, 214, 10, .20);
  --elev-2: 0 10px 30px rgba(0, 0, 0, .45);
  --elev-3: 0 30px 70px rgba(0, 0, 0, .45);
  /* radii */
  --r-xs: 6px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 28px; --r-pill: 999px;
  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* layout: side gutter grows with notches/safe areas, content capped at 1120px */
  --gut: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --pad: max(var(--gut), calc((100% - 1120px) / 2));
  --bar-h: 128px;
  /* motion: durations */
  --dur-0: 100ms; --dur-1: 180ms; --dur-2: 320ms; --dur-3: 480ms; --dur-4: 700ms; --dur-hero: 900ms;
  --dur-ambient-a: 30s; --dur-ambient-b: 38s;
  /* motion: curves */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);
  --spring-soft: cubic-bezier(.22, 1.12, .36, 1);
  --spring-bouncy: cubic-bezier(.34, 1.4, .64, 1);
  --spring-press: cubic-bezier(.3, 1.5, .6, 1);
  --ease: var(--ease-out);          /* legacy alias */
  --spring: var(--spring-bouncy);   /* legacy alias */
  /* motion: distances */
  --stagger: 40ms; --stagger-cap: 240ms;
  --rise: 20px; --rise-sm: 8px; --rise-lg: 40px;
  --blur-in: 6px; --blur-in-lg: 12px;
  --press-scale: .965; --press-scale-card: .98;
}
/* Real springs where the browser can draw them; the cubic-beziers above are the fallback. */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-soft: linear(0, .06 2.5%, .23 6%, .5 11%, .76 17%, .92 23%, 1.01 30%, 1.03 36%, 1.02 45%, 1.005 58%, .999 72%, 1);
    --spring-bouncy: linear(0, .08 2.5%, .3 6%, .64 11%, .95 17%, 1.1 23%, 1.12 27%, 1.08 33%, 1 41%, .97 48%, .985 56%, 1.005 66%, 1.002 78%, 1);
    --spring-press: linear(0, .52 9%, .93 18%, 1.07 28%, 1.03 40%, .99 55%, 1);
  }
}
@media (min-width: 1600px) { :root { --pad: max(var(--gut), calc((100% - 1200px) / 2)); } }
@media (max-width: 360px) { :root { --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
/* Low-end devices (html.lite, set in index.html): no blur in entrances */
.lite { --blur-in: 0px; --blur-in-lg: 0px; }

/* =================== Base =================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--kiri-night); scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; background: var(--kiri-night); color: var(--ink); font: 400 17px/1.55 var(--font);
  position: relative; isolation: isolate; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kiri-yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; overflow-wrap: break-word; }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.eyebrow { display: inline-block; color: var(--go); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* =================== Ambient: lagoon caustics =================== */
/* Two slow light layers drift behind everything (transform only; no blend modes). */
body::before, body::after { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none; will-change: transform; contain: strict; }
body::before {
  background:
    radial-gradient(closest-side at 25% 25%, rgba(92, 70, 255, .40), transparent 70%),
    radial-gradient(closest-side at 75% 65%, rgba(0, 168, 160, .26), transparent 70%),
    radial-gradient(closest-side at 50% 95%, rgba(30, 60, 140, .32), transparent 70%);
  animation: kiriDriftA var(--dur-ambient-a) var(--ease-in-out) infinite alternate;
}
body::after {
  background:
    radial-gradient(closest-side at 80% 15%, rgba(200, 40, 140, .22), transparent 70%),
    radial-gradient(closest-side at 18% 80%, rgba(255, 214, 10, .10), transparent 70%),
    radial-gradient(closest-side at 55% 45%, rgba(10, 132, 255, .16), transparent 70%);
  animation: kiriDriftB var(--dur-ambient-b) var(--ease-in-out) infinite alternate;
}
@keyframes kiriDriftA { 0% { transform: translate3d(-5%, -4%, 0) rotate(0) scale(1); } 50% { transform: translate3d(5%, 6%, 0) rotate(25deg) scale(1.12); } 100% { transform: translate3d(-3%, 8%, 0) rotate(-15deg) scale(1.05); } }
@keyframes kiriDriftB { 0% { transform: translate3d(6%, 4%, 0) rotate(0) scale(1.05); } 50% { transform: translate3d(-7%, -5%, 0) rotate(-30deg) scale(1); } 100% { transform: translate3d(4%, -8%, 0) rotate(20deg) scale(1.15); } }
/* Ambient layers drift smoothly on the GPU without scroll-timeline coupling. */
.lite body::before, .lite body::after { opacity: .5; }
/* Paused while the tab is hidden (landing.js) */
.paused body::before, .paused body::after, .paused .hero::before, .paused .island * { animation-play-state: paused !important; }

/* =================== Buttons: liquid press =================== */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: var(--r-pill); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: translate var(--dur-2) var(--ease-out), scale 420ms var(--spring-press), box-shadow var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), --hl var(--dur-2) var(--ease-out); }
.btn-go { color: var(--on-yellow); border-color: transparent; box-shadow: var(--glow-yellow);
  background-color: var(--kiri-yellow);
  /* pointer-following highlight (--x/--y from landing.js) over the yellow gradient */
  background-image: radial-gradient(120px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, calc(var(--hl, 0) * .35)), transparent 60%), var(--cta); }
.btn-line { color: var(--ink); background-color: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .5);
  background-image: radial-gradient(120px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, calc(var(--hl, 0) * .14)), transparent 60%); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn:active { scale: var(--press-scale); transition-duration: var(--dur-2), var(--dur-0); transition-timing-function: var(--ease-out); }

/* Ripple: a drop lands where the finger touched and spreads out (landing.js sets --x/--y/--d and .rippling) */
.liquid { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.liquid::after { content: ""; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--d, 200%); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, var(--ripple, rgba(255, 255, 255, .22)) 0 40%, transparent 70%);
  scale: 0; opacity: 0; pointer-events: none; z-index: -1; }
.liquid.rippling::after { animation: kRipple 550ms var(--ease-out); }
.btn-go { --ripple: rgba(255, 255, 255, .45); }
@keyframes kRipple { 0% { scale: 0; opacity: 1; } 100% { scale: 1; opacity: 0; } }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { translate: 0 -2px; --hl: 1; }
  .btn-go:hover { background-color: var(--kiri-yellow-hover); box-shadow: 0 14px 36px rgba(255, 214, 10, .30); }
  .btn-line:hover { background-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
  .btn:active { translate: 0 0; }
}

/* =================== Top bar + section tabs =================== */
.bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 12px var(--pad) 8px; padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(10, 12, 18, .9); border-bottom: 1px solid rgba(255, 255, 255, .08);
  animation: kBarIn var(--dur-4) var(--ease-out) both; }
@keyframes kBarIn { from { opacity: 0; translate: 0 calc(var(--rise-sm) * -1.5); } }
@media (min-width: 900px) and (hover: hover) {
  .bar { background: rgba(10, 12, 18, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  .lite .bar { background: rgba(10, 12, 18, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.bar { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Language picker pill */
.lang-pick { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke); }
.lang-pick button { min-height: 34px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--label2); font: 700 13px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.lang-pick button.on { background: var(--kiri-yellow); color: var(--on-yellow); }
.lang-pick button:not(.on):hover { color: var(--ink); }
@media (max-width: 480px) {
  .bar-actions { gap: 8px; }
  .lang-pick button { padding: 0 9px; font-size: 12px; min-height: 32px; }
}

.brand { display: block; flex: none; }
.brand img { width: 76px; }
.bar-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.bar-phone { font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .bar-phone:hover { text-decoration: underline; } }

.tabs { position: relative; flex: 1 0 100%; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin: 0 -6px; padding: 0 6px 4px; scroll-padding-inline: 24px;
  --ml: 0px; --mr: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--ml), #000 calc(100% - var(--mr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--ml), #000 calc(100% - var(--mr)), transparent 100%); }
.tabs.fade-l { --ml: 16px; }
.tabs.fade-r { --mr: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: 15px; color: #B9B9C2; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.tabs a.on { color: var(--on-yellow); background: var(--go); }            /* without the droplet (no JS) */
.tabs.has-ink a.on { background: transparent; }
.tabs a:active { scale: .96; transition: scale var(--dur-0) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tabs a:not(.on):hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
}
/* The droplet: one yellow pill that slides and stretches between tabs (moved by landing.js) */
.tabs-ink { position: absolute; z-index: 0; left: 0; top: 0; height: 44px; width: 0; border-radius: var(--r-pill);
  background: var(--cta); box-shadow: 0 6px 18px rgba(255, 214, 10, .28); pointer-events: none; opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out); }
.tabs-ink.ready { opacity: 1; }

/* Jumping to a section leaves room for the sticky bar (landing.js measures it into --bar-h) */
main > section, #top { scroll-margin-top: calc(var(--bar-h) + 8px); }

/* =================== Notice banner from the admin page =================== */
/* Flows open like water (grid rows 0fr -> 1fr) so the page glides down instead of jumping */
.notice-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ease-out); }
.notice-wrap.open { grid-template-rows: 1fr; }
.notice-wrap.closing { transition-duration: 420ms; transition-timing-function: var(--ease-in-out); pointer-events: none; }
.notice-in { min-height: 0; overflow: hidden; }
.notice { position: relative; overflow: hidden; margin: 0; padding: 12px var(--pad);
  background: linear-gradient(90deg, rgba(255, 214, 10, .16), rgba(255, 214, 10, .06));
  border-bottom: 1px solid rgba(255, 214, 10, .35); color: var(--yellow-ink); font-weight: 700; font-size: 16px; text-align: center;
  opacity: 0; translate: 0 -8px; transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--spring-soft); }
.notice-wrap.open .notice { opacity: 1; translate: 0 0; }
.notice-wrap.closing .notice { opacity: 0; translate: 0 -8px; transition-duration: var(--dur-1); transition-timing-function: var(--ease-in); }
.notice::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .10) 50%, transparent 65%);
  translate: -100% 0; animation: kSheen 6s linear infinite; }
@keyframes kSheen { 0% { translate: -100% 0; } 60%, 100% { translate: 100% 0; } }
.notice span, .live span { display: inline-block; transition: opacity var(--dur-1) var(--ease-out), translate var(--dur-2) var(--ease-out); }
.notice span.swap, .live span.swap { opacity: 0; translate: 0 -4px; }

/* =================== Hero =================== */
.hero { position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center;
  padding: 72px var(--pad) 88px; }
/* Caustic shimmer: light dancing on a lagoon floor (compositor-only translate) */
.hero::before { content: ""; position: absolute; z-index: -1; inset: -240px 0 0 -240px; pointer-events: none;
  background: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .035) 0 2px, transparent 3px 46px);
  background-size: 240px 240px; opacity: .6;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 55%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 55%, #000 30%, transparent 75%);
  animation: kCaustic 24s linear infinite; }
@keyframes kCaustic { from { translate: 0 0; } to { translate: 240px 120px; } }
.lite .hero::before { display: none; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 86px); letter-spacing: -0.045em; word-spacing: .06em; line-height: .96; max-width: 11ch; }
.hero h1 .w { display: inline-block; animation: kWord var(--dur-hero) var(--ease-out) both;
  animation-delay: calc(80ms + var(--i, 0) * 55ms); }
@keyframes kWord { from { opacity: 0; translate: 0 .38em; } to { opacity: 1; translate: 0 0; } }
.lede { margin-top: 26px; font-size: 20px; color: #CFCFD6; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .lede { animation: kSurface var(--dur-hero) var(--ease-out) 420ms both; }
.hero-ctas { animation: kSurface var(--dur-hero) var(--spring-soft) 540ms both; }
.hero .live { animation: kSurface var(--dur-hero) var(--ease-out) 660ms both; }
@keyframes kSurface { from { opacity: 0; translate: 0 var(--rise); scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* Live duty line: green dot with a double water ripple when on duty */
.live { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-weight: 700; font-size: 16px; min-width: 0; }
.live i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none;
  transition: background-color var(--dur-3) var(--ease-out); }
.live.on i { background: var(--on); }
.live.busy i { background: var(--go); }
.live i::before, .live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(48, 209, 88, .5);
  opacity: 0; scale: 1; pointer-events: none; }
.live.on i::before, .live.on i::after { animation: kPing 2s var(--ease-out) infinite; }
.live.on i::after { animation-delay: 1s; }
@keyframes kPing { 0% { scale: 1; opacity: .5; } 100% { scale: 2.6; opacity: 0; } }

/* iPhone home-screen tip (shown on iOS outside standalone by landing.js) */
[data-ios-only][hidden] { display: none !important; }
.ios-tip { margin-top: 20px; padding: 14px 16px; max-width: 44ch; border-radius: var(--r-md);
  background: linear-gradient(155deg, rgba(255, 214, 10, .10), rgba(255, 214, 10, .02)), var(--surface-glass);
  border: 1px solid rgba(255, 214, 10, .35); animation: kSurface var(--dur-hero) var(--ease-out) 740ms both; }
.ios-tip-title { font-size: 14px; font-weight: 800; color: var(--go); letter-spacing: .01em; margin-bottom: 4px; }
.ios-tip-text { font-size: 14px; line-height: 1.45; color: var(--body2); }
.ios-tip-text b { color: var(--ink); }
.ios-tip-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ios-tip-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke); }
.ios-tip-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 214, 10, .14); color: var(--go); }
.ios-tip-arrow { color: var(--mute); font-weight: 700; }

/* =================== Island map =================== */
.island { margin: 0; min-width: 0; animation: kIsland 1.1s var(--ease-out) 200ms both; }
@keyframes kIsland { from { opacity: 0; scale: .94; } }
.island svg { width: 100%; height: auto; overflow: visible; display: block; }
.island .reef { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .5;
  animation: kReef 12s linear infinite; }
@keyframes kReef { to { stroke-dashoffset: -90; } }
.island .wave { fill: none; stroke: rgba(100, 210, 255, .55); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0;
  transform-box: view-box; transform-origin: 300px 241px; animation: kWave 6s var(--ease-out) infinite; }
.island .wave2 { animation-delay: 3s; }
@keyframes kWave { 0% { scale: 1.10; opacity: .35; } 100% { scale: 1.22; opacity: 0; } }
.island .land { fill: rgba(255, 255, 255, .06); }
.island .peak { fill: rgba(255, 255, 255, .12); }
.island .road { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 14; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: kRoad 1.6s var(--ease-out) 500ms forwards; }
@keyframes kRoad { to { stroke-dashoffset: 0; } }
.island .road-line { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; stroke-dasharray: 8 10; opacity: 0;
  animation: kFade var(--dur-4) var(--ease-out) 1.8s forwards; }
@keyframes kFade { to { opacity: 1; } }
.island .stop .pop { transform-box: view-box; transform-origin: 0 0; scale: 0; opacity: 0;
  animation: kPop var(--dur-3) var(--spring-bouncy) both; animation-delay: calc(1.25s + var(--i, 0) * 80ms); }
@keyframes kPop { from { scale: 0; opacity: 0; } 40% { opacity: 1; } to { scale: 1; opacity: 1; } }
.island .stop circle { fill: var(--go); stroke: var(--kiri-night); stroke-width: 4; }
.island .stop text { font: 700 18px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--kiri-night); stroke-width: 5px; stroke-linejoin: round; }
#van { opacity: 0; animation: kFade var(--dur-4) var(--ease-out) 1.9s forwards; }
.island figcaption { margin-top: 8px; text-align: center; color: var(--mute); font-size: 14px; }
/* Off screen: the island's loops rest (landing.js) */
.island.off * { animation-play-state: paused !important; }

/* =================== Sections =================== */
main > section:not(.hero) { padding: 88px var(--pad); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head p { color: var(--mute); max-width: 44ch; }

/* Fares around the island: rows ripple when pressed and lean in on hover */
.where, .faq, .about { background: rgba(255, 255, 255, .03); }
.trips { list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255, 255, 255, .5); }
.trips a { display: grid; grid-template-columns: minmax(0, 1fr) auto 9ch; gap: 24px; align-items: baseline; padding: 22px 8px;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); --press-scale: var(--press-scale-card);
  transition: background-color var(--dur-2) var(--ease-out), scale 420ms var(--spring-press); }
.trips a:active { scale: var(--press-scale-card); background-color: rgba(255, 255, 255, .05); transition-duration: var(--dur-0); }
.trip-name { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; min-width: 0;
  transition: translate var(--dur-3) var(--spring-soft); }
.trip-name::after { content: "\2192"; display: inline-block; margin-left: .35em; color: var(--go); opacity: 0; translate: -6px 0;
  transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-3) var(--spring-soft); }
.trip-km { color: var(--mute); white-space: nowrap; }
.trip-fare { font-weight: 700; text-align: right; color: var(--go); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .trips a:hover { background-color: rgba(255, 255, 255, .05); }
  .trips a:hover .trip-name { translate: 8px 0; }
  .trips a:hover .trip-name::after { opacity: 1; translate: 0 0; }
}

.how h2 { margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--kiri-night); font-weight: 800; font-size: 22px; margin-bottom: 20px; }
.steps p { margin-top: 10px; color: var(--body2); }

.taxi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .08); }
.taxi-pic { position: relative; background: #FFFFFF; border-radius: 32px; padding: 24px 16px 40px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: translate var(--dur-4) var(--spring-soft), rotate var(--dur-4) var(--spring-soft), box-shadow var(--dur-4) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .taxi-pic:hover { translate: 0 -4px; rotate: -.4deg; box-shadow: 0 40px 80px rgba(0, 0, 0, .55); }
}
.plate { position: absolute; right: 24px; bottom: 20px; background: #F7F7F2; color: #111; border: 2.5px solid #111; border-radius: 8px;
  padding: 4px 14px; font-weight: 800; font-size: clamp(16px, 4.2vw, 20px); letter-spacing: .08em; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.taxi-facts { min-width: 0; }
.taxi-facts p { margin-top: 16px; font-size: 19px; max-width: 36ch; }
.fares { width: 100%; margin-top: 32px; border-collapse: collapse; }
.fares caption { text-align: left; font-weight: 800; font-size: 21px; padding-bottom: 8px; }
.fares th, .fares td { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.fares th { text-align: left; font-weight: 400; color: var(--body2); }
.fares td { text-align: right; font-weight: 800; font-size: 20px; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }

/* =================== Mission =================== */
.mission { border-top: 1px solid rgba(255, 255, 255, .08); }
.mission-statement { margin-top: 18px; font-size: clamp(24px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
  max-width: 30ch; color: var(--ink); }
.pillars { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.pillars li { padding: 26px 24px 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); min-width: 0; }
.pillar-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); margin-bottom: 18px;
  background: rgba(255, 214, 10, .12); color: var(--go); border: 1px solid rgba(255, 214, 10, .35); }
.pillars p { margin-top: 10px; color: var(--body2); }

/* =================== About =================== */
.about-card { display: flex; align-items: center; gap: 24px; min-width: 0; }
.about-card > div { min-width: 0; }
.about-mono { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--cta); color: var(--on-yellow); font-weight: 800; font-size: 34px; letter-spacing: -0.02em;
  box-shadow: 0 14px 36px rgba(255, 214, 10, .22); }
.about h2 { margin-top: 8px; font-size: clamp(28px, 4.2vw, 48px); }
.about-role { margin-top: 8px; color: var(--mute); font-weight: 600; }
.about-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; margin-top: 40px; align-items: start; }
.about-text p { font-size: 18px; color: #D4D4DA; max-width: 62ch; }
.about-text p + p { margin-top: 18px; }
.about-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.about-facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 2px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.about-facts b { font-size: 19px; letter-spacing: -0.01em; }
.about-facts span { color: var(--mute); font-size: 15px; }

/* =================== FAQ: answers pour open (height morph) =================== */
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid rgba(255, 255, 255, .12); max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 18px 4px; font-weight: 700; font-size: 19px; -webkit-tap-highlight-color: transparent; border-radius: 8px; }
.faq summary > span { min-width: 0; }
.faq summary::-webkit-details-marker { display: none; }
/* Plus that morphs into a minus: the upright bar folds away with a little bounce */
.pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink);
  transition: rotate var(--dur-3) var(--spring-soft), background-color var(--dur-2) var(--ease-out), scale 420ms var(--spring-press); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--kiri-night); }
.pm::after { rotate: 90deg; transition: scale var(--dur-3) var(--spring-bouncy); }
.faq details[open]:not(.closing) .pm { rotate: 180deg; background: var(--go); }
.faq details[open]:not(.closing) .pm::after { scale: 0 1; }
.faq summary:active .pm { scale: .9; transition-duration: var(--dur-3), var(--dur-2), var(--dur-0); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .pm { scale: 1.08; } }
.faq details p { padding: 0 4px 22px; color: var(--body2); max-width: 64ch; }
.faq details:not([open]) p { opacity: 0; transition: opacity var(--dur-1) var(--ease-in); }
.faq details[open]:not(.closing) p { animation: kSurface var(--dur-3) var(--spring-soft) both; }
.faq details.closing p { opacity: 0; translate: 0 -6px;
  transition: opacity var(--dur-1) var(--ease-in), translate var(--dur-1) var(--ease-in); }
/* Newer browsers animate the height in CSS; elsewhere landing.js does it with the Web Animations API */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip;
    transition: height var(--dur-3) var(--spring-soft), content-visibility var(--dur-3) allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* =================== Closing + footer =================== */
.closing { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center;
  background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .08); }
.closing img { width: min(220px, 50vw); }
.foot { padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: rgba(5, 6, 10, .85); color: #8E8E96;
  border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.foot a { color: #C4C4CC; display: inline-block; padding: 10px 0; }
.foot-lite { border: 0; background: none; padding: 10px 0; font: inherit; color: #C4C4CC; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* =================== Scroll reveals (GPU-composited opacity + transform) =================== */
/* html.rv is set before first paint; each item gets .in (and a --i stagger) from landing.js (IntersectionObserver).
   Only the content moves, never the section, so tinted backgrounds stay put.
   Reveals use `transform`, never the individual translate/scale properties: those belong to hover and press
   (.taxi-pic lift, button press), and these high-specificity rules would otherwise switch them off. */
.rv :is(.section-head, .trips li, .how h2, .steps li, .taxi-pic, .taxi-facts > *, .mission > .eyebrow, .mission-statement,
  .pillars li, .about-card, .about-text p, .about-facts li, .faq h2, .faq details, .closing > *) {
  opacity: 0; transform: translate3d(0, var(--rise-lg), 0) scale(.985);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
  transition-delay: min(calc(var(--i, 0) * 55ms), 220ms); }
.rv :is(.section-head, .trips li, .how h2, .steps li, .taxi-pic, .taxi-facts > *, .mission > .eyebrow, .mission-statement,
  .pillars li, .about-card, .about-text p, .about-facts li, .faq h2, .faq details, .closing > *).in {
  opacity: 1; transform: none; }
/* Keep hover and press feel on revealed items once they have arrived */
.rv .taxi-pic.in { transition: translate var(--dur-4) var(--spring-soft), rotate var(--dur-4) var(--spring-soft), box-shadow var(--dur-4) var(--ease-out),
  opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }

/* =================== Responsive =================== */
/* Tablets and phones: one column */
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 56px; }
  .island { width: 100%; max-width: min(100%, 560px); margin-inline: auto; }
  .lede { font-size: 18px; }
  .section-head, .taxi { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .taxi { gap: 36px; }
  .taxi-pic { width: 100%; max-width: 560px; }
  .about-body { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .pillars { gap: 14px; margin-top: 32px; }
  main > section:not(.hero) { padding-top: 64px; padding-bottom: 64px; }
}
/* Phones */
@media (max-width: 599px) {
  .steps { gap: 32px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trips a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 4px; }
  .trip-km { grid-column: 1; grid-row: 2; font-size: 15px; }
  .trip-fare { grid-row: 1 / span 2; align-self: center; }
  .island .stop text { font-size: 22px; }
  .bar-phone { display: none; }
  .tabs a { padding: 0 14px; font-size: 14px; }
  .about-card { gap: 16px; }
  .about-mono { width: 72px; height: 72px; font-size: 26px; }
  .about-text p { font-size: 17px; }
  .taxi-pic { border-radius: var(--r-xl); padding: 16px 10px 32px; }
  .plate { right: 16px; bottom: 14px; padding: 3px 10px; }
  .taxi-facts p { font-size: 18px; }
  .faq summary { font-size: 17px; }
  .closing { gap: 28px; }
}
/* Small phones and folded covers (320 and below) */
@media (max-width: 340px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(36px, 13vw, 44px); }
  h2 { font-size: clamp(28px, 10vw, 32px); }
  .lede { font-size: 17px; }
  .bar { gap: 8px 10px; }
  .brand img { width: 64px; }
  .btn { padding: 0 20px; font-size: 17px; }
  .btn-small { padding: 0 14px; font-size: 15px; }
  .tabs a { padding: 0 12px; }
  .about-card { flex-direction: column; align-items: flex-start; }
  .pillars li { padding: 22px 18px 24px; }
  .trip-name { font-size: 19px; }
  .fares td { font-size: 18px; }
  .ios-tip { padding: 12px 14px; }
  .ios-tip-arrow { display: none; }
}
/* Landscape phones: compact one-row bar, island beside the words and never taller than the screen */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse), (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  .bar { flex-wrap: nowrap; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 6px; }
  .brand img { width: 60px; }
  .tabs { flex: 1 1 auto; order: 1; margin: 0; padding: 0 0 2px; }
  .bar-actions { order: 2; }
  .bar-phone { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(32px, 5vw, 48px); }
  .lede { font-size: 17px; margin-top: 16px; }
  .hero-ctas { margin-top: 20px; }
  .hero-ctas .btn { flex: 0 1 auto; }
  .live { margin-top: 16px; }
  .island svg { max-height: 72svh; }
  .island figcaption { display: none; }
  .section-head, .taxi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  main > section:not(.hero) { padding-top: 48px; padding-bottom: 48px; }
}
/* Short laptop/desktop windows: a little less air */
@media (min-width: 900px) and (max-height: 700px) {
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(44px, 5.4vw, 72px); }
  .island svg { max-height: 70svh; }
}
/* Big screens */
@media (min-width: 1600px) {
  body { font-size: 18px; }
  .hero { gap: 72px; }
}
@media (min-width: 2200px) {
  .hero h1 { font-size: 96px; }
  .island svg { max-height: 640px; }
}

/* =================== Reduced motion: short opacity fades only =================== */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 1ms; --dur-2: 150ms; --dur-3: 150ms; --dur-4: 150ms; --dur-hero: 150ms;
    --spring-soft: linear; --spring-bouncy: linear; --spring-press: linear;
    --rise: 0px; --rise-sm: 0px; --rise-lg: 0px; --blur-in: 0px; --blur-in-lg: 0px; --stagger: 0ms; }
  html { scroll-behavior: auto; }
  body::before, body::after, .hero::before, .notice::after, .island .reef, .island .wave, .live.on i::before, .live.on i::after {
    animation: none !important; }
  .island .wave { opacity: 0; }
  .hero h1 .w, .hero .lede, .hero-ctas, .hero .live, .ios-tip, .island, .bar, .island .stop .pop, .island .road-line, #van { animation-delay: 0s !important; }
  .island .road { animation: none; stroke-dashoffset: 0; }
  *, *::before, *::after { animation-iteration-count: 1 !important; transition-delay: 0s !important; }
  .btn:hover, .btn:active, .trips a:active, .tabs a:active { translate: none; scale: none; }
  .trips a:hover .trip-name { translate: none; }
  .faq details[open]:not(.closing) .pm { rotate: none; }
  /* no movement: hero words and the island only fade; the notice opens without gliding the page */
  .hero h1 .w, .island { animation-name: kFadeIn; }
  .notice-wrap, .notice-wrap.closing { transition-duration: var(--dur-1); }
  .notice, .notice-wrap.closing .notice { translate: none; }
}
@keyframes kFadeIn { from { opacity: 0; } }

/* =================== Calm motion (owner: keep animations minimal, they stuttered) ===================
   html.calm is set in index.html. Quick fades instead of rising/sliding entrances, no staggers, and the
   always-running background glow, caustics and waves stay still. The island map still draws once. */
html.calm { --dur-2: 160ms; --dur-3: 200ms; --dur-4: 240ms; --dur-hero: 260ms;
  --spring-soft: var(--ease-out); --spring-bouncy: var(--ease-out);
  --rise: 0px; --rise-sm: 0px; --rise-lg: 0px; --blur-in: 0px; --blur-in-lg: 0px; --stagger: 0ms; }
html.calm body::before, html.calm body::after, html.calm .hero::before, html.calm .notice::after,
html.calm .island .reef, html.calm .island .wave { animation: none !important; }
html.calm .island .wave { opacity: 0; }
html.calm .hero h1 .w, html.calm .hero .lede, html.calm .hero-ctas, html.calm .hero .live, html.calm .ios-tip, html.calm .bar { animation-delay: 0s !important; }
html.calm .hero h1 .w, html.calm .island { animation-name: kFadeIn; }
