/* EcoWave Charters & Water Sports: sample site styles.
   Direction "the place carries it": their own photographs large, few words, the gold and black of their logo. */

:root {
  --bg: #05161a;
  --surface: #0c262c;
  --surface-2: #123239;
  --ink: #eef2ee;
  --muted: #a6bab6;
  --accent: #e3b453;
  --accent-hover: #f0c66b;
  --accent-ink: #05161a;
  --sky: #015da9;
  --water: #93d2c8;
  --water-ink: #03191c;
  --logo-black: #000;

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --text: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 0.2rem + 11.5vw, 8.125rem);

  --margin: clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --radius: 8px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--text);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons: one shape on the whole page */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1.2 var(--text); letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  transition-property: background-color, transform;
  transition-duration: 180ms; transition-timing-function: ease-out;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-block { display: flex; width: 100%; min-height: 56px; }

/* ---------- Hero: their own photograph, the water alive under the boat ---------- */
.hero {
  position: relative; isolation: isolate;
  height: 100svh; min-height: 540px;
  overflow: hidden;
  background: var(--sky);
}
.hero-media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero-photo, .hero-water {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 52% 50%;
}
.hero-water { opacity: 0; transition: opacity 600ms ease; pointer-events: none; }
.hero-water.is-on { opacity: 1; }

.hero-top {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) var(--margin) 0;
  color: var(--ink);
  font-size: var(--step-small); line-height: 1.35;
}
.hero-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0)); /* taste-skill-ignore: a neutral scrim behind the letterhead */
}
.letterhead { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 64px; height: 64px; flex: none; }
.lh-lines { display: flex; flex-direction: column; }
.lh-name { font-weight: 500; letter-spacing: 0.04em; }
.top-nav { display: flex; align-items: center; padding-top: 10px; white-space: nowrap; }
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.top-nav a:hover, .top-nav a.is-current { text-decoration-line: underline; }
.top-nav span { margin-right: 0.4em; }

.water-hint {
  position: absolute; right: var(--margin); top: 60%;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  font-size: var(--step-small); line-height: 1.2;
  pointer-events: none;
}
.water-hint.is-gone { opacity: 0; transition: opacity 500ms ease; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }
.no-water .water-hint { display: none; }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
  padding: 0 var(--margin) max(32px, env(safe-area-inset-bottom));
  color: var(--water-ink);
}
.hero-name {
  grid-column: 1 / 7;
  font: 500 var(--step-head)/1 var(--display);
  letter-spacing: -0.02em;
}
.hn-line { display: block; }
.kw { margin-right: -0.1em; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-act {
  grid-column: 8 / 13;
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
  text-align: right;
}
.hero-line { max-width: 32ch; font-size: var(--step-body); line-height: 1.45; font-weight: 500; }

/* Phones and tall windows: the whole boat stays in view, with their sky above and their water below. */
@media (max-aspect-ratio: 7/10) {
  .hero { --ph-w: 200vw; --ph-h: calc(var(--ph-w) * 941 / 1672); }
  .hero-media { background: var(--water); }
  .hero-media::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    height: calc(47svh - var(--ph-h) * 0.51 + 2px);
    background: var(--sky);
  }
  .hero-photo, .hero-water {
    inset: auto;
    left: calc(50vw - var(--ph-w) * 0.522);
    top: calc(47svh - var(--ph-h) * 0.51);
    width: var(--ph-w); height: var(--ph-h);
    object-fit: fill;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); /* taste-skill-ignore: fades their photo into its own water colour on phones */
    mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); /* taste-skill-ignore: same mask */
  }
  .water-hint { top: calc(47svh + var(--ph-h) * 0.12); }
}

@media (max-width: 1099px) {
  .hero-foot { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-act { align-items: flex-start; text-align: left; }
}
@media (max-width: 699px) {
  .mark { width: 48px; height: 48px; }
  .letterhead { gap: 10px; }
  .top-nav .tn-wide { display: none; }
  .lh-lines { white-space: nowrap; }
  .top-nav { padding-top: 2px; }
  .top-nav a { padding: 0 4px; }
  .hero-foot { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero-name { font-size: 9.5vw; }
  .hero-act { align-items: flex-start; text-align: left; gap: 16px; }
  .hero-act .btn { align-self: stretch; }
}

/* A small booking action once the hero has gone */
.float-book {
  position: fixed; right: var(--margin); top: max(16px, env(safe-area-inset-top)); z-index: 40;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none;
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition-property: opacity, transform, background-color; transition-duration: 260ms; transition-timing-function: var(--ease-out);
}
.float-book.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-book:hover { background: var(--accent-hover); }
.float-book.is-over-book { opacity: 0; pointer-events: none; }

/* ---------- Intro ---------- */
.intro { padding: clamp(80px, 12vw, 160px) var(--margin) clamp(56px, 8vw, 112px); }
.intro-text {
  max-width: 34ch; margin: 0 auto;
  font: 500 var(--step-lead)/1.45 var(--display);
  letter-spacing: -0.005em;
  text-align: center;
}

/* ---------- Trips: one photograph held still, the list beside it ---------- */
.trips {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: 0 var(--margin) clamp(96px, 12vw, 160px);
  align-items: start;
}
.trips-photo {
  grid-column: 1 / 6;
  position: sticky; top: 12vh;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.trips-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 700ms ease, transform 1400ms var(--ease-out);
}
.trips-photo img.is-on { opacity: 1; transform: none; }
.trips-photo img[data-photo="wake"] { object-position: 50% 60%; }
.trips-list { grid-column: 7 / 13; padding-top: 12vh; padding-bottom: 20vh; }
.trips-title { font: 500 var(--step-head)/1 var(--display); letter-spacing: -0.02em; margin-bottom: 20px; }
.sun-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 48px; padding: 10px 14px;
  border-radius: var(--radius); background: var(--surface);
  font-size: var(--step-small); line-height: 1.35;
}
.sun-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); }
.packs { display: grid; gap: 48px; }
.pack-name { font: 500 var(--step-lead)/1.15 var(--display); letter-spacing: -0.005em; margin-bottom: 8px; }
.pack-ask {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
  color: var(--accent); font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: color 160ms ease;
}
.pack-ask:hover { color: var(--accent-hover); }
.row-head { font: inherit; }
.row-btn {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 44px; padding: 6px 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--muted);
  transition: color 200ms ease, transform 260ms var(--ease-out);
}
.row-btn:hover { transform: translateX(6px); }
.row.is-active .row-btn { color: var(--ink); }
.row-name { font-weight: 500; line-height: 1.3; }
.row.is-active .row-name { color: var(--ink); }
.row-plus { display: none; }
.row-desc {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 420ms var(--ease-out);
}
.row-desc > * { min-height: 0; }
.rows-still .row-desc { transition: none; }
.row-desc p { max-width: 40ch; padding: 0 0 14px; color: var(--muted); }
.row.is-active .row-desc p { color: var(--ink); }
@media (max-width: 899px) {
  .js-rows .row-desc { grid-template-rows: 0fr; }
  .js-rows .row-desc > div { overflow: hidden; }
  .js-rows .row.is-open .row-desc { grid-template-rows: 1fr; }
}
.sun-today b, .sun-line b { font-weight: 500; color: var(--accent); }
.trips-note { margin-top: 32px; color: var(--muted); }

@media (max-width: 899px) {
  .trips { display: block; padding: 0 0 96px; }
  .trips-photo { position: sticky; top: 0; z-index: 2; width: 100%; height: 38svh; aspect-ratio: auto; }
  .trips-list { padding: 32px var(--margin) 0; }
  .trips-title { margin-bottom: 24px; }
  .row-btn { min-height: 56px; }
  .row-btn:hover { transform: none; }
  .packs { gap: 40px; }
  .row-plus { display: block; position: relative; width: 16px; height: 16px; flex: none; margin-right: 4px; }
  .row-plus::before, .row-plus::after {
    content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px;
    background: currentColor; transition: transform 260ms var(--ease-out);
  }
  .row-plus::after { transform: rotate(90deg); }
  .row.is-open .row-plus::after { transform: rotate(0deg); }
}

/* ---------- The boat: one frame, three distances ---------- */
.boat { position: relative; height: 300vh; }
.boat-stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  --title: min(var(--step-display), 11svh);
  --frame-w: min(34vw, calc((100svh - 2.9 * var(--title) - 40px) * 0.8));
  --frame-h: calc(var(--frame-w) * 1.25);
}
.boat-frame {
  position: absolute; left: 50%; top: 50%;
  width: var(--frame-w); height: var(--frame-h);
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: var(--surface);
}
.bf {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
}
.bf.is-on { opacity: 1; transform: scale(1); }
.bf-2 { object-position: 46% 50%; }
.bf-3 { transform-origin: 58% 10%; }
.bf-3.is-on { transform: scale(1.5); }
.boat-title {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  font: 500 var(--title)/0.95 var(--display);
  letter-spacing: -0.02em;
}
.bt { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; line-height: 1.05; }
.bt-1 { bottom: calc(50% + var(--frame-h) / 2 + 0.32em); }
.bt-2 { top: calc(50% + var(--frame-h) / 2 + 0.3em); color: var(--accent); }
.boat-cap {
  position: absolute; z-index: 2;
  left: calc(50% + var(--frame-w) / 2 + 40px);
  top: calc(50% - var(--frame-h) / 2);
  width: 28ch; max-width: calc(50vw - var(--frame-w) / 2 - 40px - var(--margin));
  font-size: var(--step-body); line-height: 1.55;
}
.js-stage .bt-2, .js-stage .boat-cap { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 700ms var(--ease-out); }
.js-stage[data-stage="1"] .bt-2, .js-stage[data-stage="2"] .bt-2 { opacity: 1; transform: none; }
.js-stage[data-stage="2"] .boat-cap { opacity: 1; transform: none; }
.boat-marks { display: none; }

@media (max-width: 899px) {
  .boat-stage { --title: min(12.5vw, 8svh); --frame-w: min(70vw, calc((100svh - 2 * var(--title) - 290px) * 0.8)); }
  .boat-cap {
    left: var(--margin); right: var(--margin); width: auto; max-width: 34ch; margin: 0 auto;
    top: calc(50% + var(--frame-h) / 2 + 1.7 * var(--title));
    font-size: var(--step-body); line-height: 1.45; text-align: center;
  }
}

/* ---------- Booking: the boat at the dock, the card on it ---------- */
.book {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-bottom: clamp(96px, 12vw, 160px);
}
.book-photo { grid-column: 1 / -1; grid-row: 1; height: min(38vw, 86svh); overflow: hidden; }
.book-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 62%; will-change: transform; }
.book-card {
  grid-column: 8 / 13; grid-row: 2;
  margin: -200px var(--margin) 0 0;
  position: relative; z-index: 2;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
}
.book-title { font: 500 var(--step-lead)/1.1 var(--display); letter-spacing: -0.01em; margin-bottom: 24px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.label { display: block; margin-bottom: 8px; padding: 0; font-size: var(--step-small); color: var(--muted); }
.trip-picks { display: grid; gap: 8px; }
.pick {
  position: relative; display: grid; gap: 2px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms ease;
}
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-name { font-weight: 500; line-height: 1.3; }
.pick-what { font-size: var(--step-small); color: var(--muted); line-height: 1.35; }
.pick:hover { background: var(--surface-2); }
.pick:active { transform: scale(0.98); }
.pick:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.pick:has(input:checked) .pick-what { color: var(--accent-ink); }
.pick:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.when-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.when {
  position: relative; display: grid; place-items: center; min-height: 48px; padding: 8px;
  border-radius: var(--radius); background: var(--bg); cursor: pointer; font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms ease;
}
.when input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.when:hover { background: var(--surface-2); }
.when:active { transform: scale(0.97); }
.when:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.when:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.date-input, .date-btn {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #2c4d54; border-radius: var(--radius); /* taste-skill-ignore: a form field */
  background: var(--bg); color: var(--ink);
}
.date-input { color-scheme: dark; }
.date-btn { text-align: left; cursor: pointer; transition: background-color 160ms ease; }
.date-btn:hover { background: var(--surface-2); }
.date-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.stepper { display: grid; grid-template-columns: 44px 52px 44px; height: 48px; }
.stepper input {
  width: 100%; height: 48px; padding: 0; border: 1px solid #2c4d54; border-left: 0; border-right: 0;
  background: var(--bg); text-align: center; font-weight: 500; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  height: 48px; border: 1px solid #2c4d54; background: var(--bg); cursor: pointer; /* taste-skill-ignore: a form control */
  font-size: var(--step-body); line-height: 1;
  transition: background-color 160ms ease, transform 120ms ease;
}
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step:hover { background: var(--surface-2); }
.step:active { transform: scale(0.94); }
.sun-line { margin: 4px 0 20px; color: var(--ink); }
.book-call { margin-top: 16px; text-align: center; color: var(--muted); }
.book-call a { color: var(--ink); text-underline-offset: 4px; }

.book-facts {
  grid-column: 1 / 7; grid-row: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gap);
  padding: 64px 0 0 var(--margin);
  align-content: start;
}
.fact-h { font-weight: 500; margin-bottom: 4px; }
.fact p + p, .fact p:not(.fact-h) { color: var(--muted); }
.fact a { color: var(--ink); text-underline-offset: 4px; }

/* the calendar (same as The Cake Lady's: past days cannot be picked) */
.cal { margin: -8px 0 20px; padding: 16px; border-radius: var(--radius); background: var(--bg); }
.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-title { text-align: center; font-weight: 500; }
.cal-nav {
  width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--surface); cursor: pointer;
  font-size: var(--step-body); transition: background-color 160ms ease;
}
.cal-nav:hover { background: var(--surface-2); }
.cal-nav[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span { text-align: center; font-size: var(--step-small); color: var(--muted); padding: 4px 0; }
.cal-day {
  min-height: 40px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background-color 140ms ease;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day[aria-current="date"] { outline: 1px solid var(--muted); outline-offset: -1px; }
.cal-day.is-chosen { background: var(--accent); color: var(--accent-ink); }
.cal-day[aria-disabled="true"] { color: #5d7672; text-decoration: line-through; cursor: default; background: transparent; }

@media (max-width: 899px) {
  .book { display: block; padding-bottom: 96px; }
  .book-photo { height: 60svh; }
  .book-photo img { object-position: 44% 60%; }
  .book-card { margin: -80px var(--margin) 0; padding: 24px; }
  .book-facts { grid-template-columns: 1fr 1fr; padding: 56px var(--margin) 0; gap: 32px var(--gap); }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 56px 1fr 56px; }
}

/* ---------- Footer: their logo large on its own black, the menu beside it ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--bg); }
.foot-mark { display: grid; place-items: center; padding: 48px; background: var(--logo-black); }
.foot-mark img { width: min(80%, 560px); }
.foot-side { display: flex; flex-direction: column; padding: 80px var(--margin) 32px; }
.foot-name { font-size: var(--step-small); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 40px; }
.big-menu { display: grid; gap: 28px; }
.big-menu a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 var(--step-head)/1.15 var(--display);
  letter-spacing: -0.01em; text-decoration: none;
  transition: transform 240ms var(--ease-out), color 200ms ease;
}
@media (hover: hover) {
  .big-menu:hover a { color: var(--muted); }
  .big-menu a:hover { color: var(--ink); transform: translateX(12px); }
}
.big-menu a:focus-visible { color: var(--ink); transform: translateX(12px); }
.foot-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gap); margin-top: 64px; font-size: var(--step-small); line-height: 1.55; }
.fb-h { font-weight: 500; margin-bottom: 4px; }
.foot-blocks p:not(.fb-h) { color: var(--muted); }
.foot-blocks a { color: var(--ink); text-underline-offset: 3px; }
.legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--muted); max-width: 60ch; }

@media (max-width: 899px) {
  .foot { display: block; min-height: 0; }
  .foot-mark { height: 50svh; padding: 32px; }
  .foot-mark img { width: auto; height: 100%; max-height: 420px; }
  .foot-side { padding: 48px var(--margin) 32px; }
  .big-menu { gap: 12px; }
  .big-menu a { line-height: 1.2; }
  .foot-blocks { grid-template-columns: 1fr; }
}

/* Until the script has run, nothing is hidden; if it never runs, the page shows everything after 2.5 s. */
.js:not(.anim-ready):not(.anim-off) [data-in] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .bf-3.is-on { transform: none; }
}

/* ---------- inner pages: charters and before you go (added 2026-11-20 with EcoWave's own text) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) var(--margin) 0;
  color: var(--ink); font-size: var(--step-small); line-height: 1.35;
}
.page-head { padding: clamp(150px, 14vw, 200px) var(--margin) clamp(48px, 6vw, 88px); }
.page-title { font: 500 clamp(2.6rem, 1.4rem + 5vw, 6rem)/1.02 var(--display); letter-spacing: -0.01em; max-width: 16ch; }
.page-lead { margin-top: 24px; font-size: var(--step-lead); color: var(--muted); max-width: 46ch; }
.charters { display: grid; gap: clamp(64px, 9vw, 128px); padding: 0 var(--margin) clamp(72px, 9vw, 128px); }
.charter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 72px); }
.charter:nth-child(even) .charter-photo { order: 2; }
.charter-photo { margin: 0; overflow: hidden; border-radius: var(--radius); }
.charter-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.charter-name { font: 500 var(--step-head)/1.05 var(--display); }
.charter-time { margin-top: 10px; font-size: var(--step-lead); color: var(--accent); }
.charter-desc { margin-top: 18px; max-width: 52ch; }
.ticks { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 2px; background: var(--accent); }
.charter-text .btn { margin-top: 26px; }
.charter-text .ticks + .btn { margin-top: 0; }
.included { margin: 0 var(--margin) clamp(72px, 9vw, 128px); padding: clamp(32px, 5vw, 72px); background: var(--surface); border-radius: var(--radius); }
.section-title { font: 500 var(--step-head)/1.05 var(--display); }
.ticks-big li { font-size: var(--step-lead); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.btn-line { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn-line:hover { color: var(--accent-hover); }
.strip { padding: 0 var(--margin) clamp(72px, 9vw, 128px); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.strip-4 ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.faq-wrap { padding: 0 var(--margin) clamp(72px, 9vw, 128px); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 72px); margin: 0; }
.faq div { padding: 0; }
.faq dt { font: 500 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--display); }
.faq dd { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }
.policy { padding: 0 var(--margin) clamp(72px, 9vw, 128px); }
.policy > p { margin-top: 16px; max-width: 56ch; color: var(--muted); }
.policy .section-title + p { margin-top: 24px; }
.policy-table { width: 100%; max-width: 980px; margin-top: 36px; border-collapse: collapse; }
.policy-table th, .policy-table td { padding: 18px 24px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(238, 242, 238, 0.22); }
.policy-table th { font-weight: 500; color: var(--accent); }
.policy-table td:first-child { width: 48%; }
.policy-sub { margin-top: 48px; font: 500 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--display); }
@media (max-width: 899px) {
  .charter { grid-template-columns: minmax(0, 1fr); }
  .charter:nth-child(even) .charter-photo { order: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .strip ul, .strip-4 ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li:nth-child(3):last-child { grid-column: span 2; }
  .strip li:nth-child(3):last-child img { aspect-ratio: 16 / 9; }
  .policy-table th, .policy-table td { padding-right: 14px; }
}
