/* Caprichio — matches design/caprichio (Claude Design canvas) */

:root {
  --ink: #0f1b1d;
  --cream: #f3f5d6;
  --cream-80: rgba(243, 245, 214, 0.8);
  --ivory: #f5f4ec;
  --card: #fbfbf7;
  --line: #e2e0d5;
  --muted: #6b706b;
  --faint: #b4b6ae;
  --teak: #a8642f;
  --taken: #eeede6;
  --danger: #9b3b2e;
  --serif: 'Gilda Display', 'Times New Roman', Georgia, serif;
  --sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 6.6vw, 96px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teak); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teak); }
.eyebrow-muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 64px; padding: 0 32px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 18px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), opacity 0.25s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.32; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover:not(:disabled) { background: #22393c; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #ffffff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover:not(:disabled) { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[aria-busy='true'] { pointer-events: none; }
.btn[aria-busy='true']::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.round-btn {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}
.round-btn:hover:not(:disabled) { border-color: var(--ink); }
.round-btn:disabled { opacity: 0.3; cursor: default; }
.round-btn-dark { color: var(--cream); border-color: rgba(243, 245, 214, 0.3); }
.round-btn-dark:hover { border-color: var(--cream); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 96px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--cream);
  transition: color 0.35s, background-color 0.35s, height 0.35s var(--ease-out), box-shadow 0.35s;
}
.nav::before {
  content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 16, 18, 0.38), rgba(8, 16, 18, 0));
  transition: opacity 0.35s;
}
.nav.is-light::before, .page-light .nav::before { opacity: 0; }
.nav-mark {
  font-family: var(--serif); font-size: 26px; text-decoration: none;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.nav.show-mark .nav-mark { opacity: 1; transform: none; pointer-events: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); }
.nav-pill {
  height: 44px; padding: 0 24px; border-radius: 999px; background: transparent;
  border: 1px solid rgba(243, 245, 214, 0.55); letter-spacing: 0.04em; font-weight: 500;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.nav-pill:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.nav-menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; margin-right: -10px; }
.nav.is-light { color: var(--ink); background: rgba(245, 244, 236, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 76px; box-shadow: 0 1px 0 var(--line); }
.nav.is-light .nav-pill { border-color: var(--line); }
.nav.is-light .nav-pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- story: full-screen panels that stack as you scroll ---------- */
.story { timeline-scope: --p1, --p2, --p3, --p4, --p5, --p6; }
.panel {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip; background: var(--ink); color: var(--cream);
}
.panel::after { content: ''; position: absolute; inset: 0; background: #050b0c; opacity: 0; pointer-events: none; z-index: 3; }
.panel-media { position: absolute; inset: 0; }
.panel-media picture, .panel-media img, .panel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anchor { display: block; height: 0; }

.story > section:nth-of-type(1) { view-timeline-name: --p1; --self: --p1; --next: --p2; }
.story > section:nth-of-type(2) { view-timeline-name: --p2; --self: --p2; --next: --p3; }
.story > section:nth-of-type(3) { view-timeline-name: --p3; --self: --p3; --next: --p4; }
.story > section:nth-of-type(4) { view-timeline-name: --p4; --self: --p4; --next: --p5; }
.story > section:nth-of-type(5) { view-timeline-name: --p5; --self: --p5; --next: --p6; }
.story > section:nth-of-type(6) { view-timeline-name: --p6; }

/* hero */
.hero-video { opacity: 0; transition: opacity 1.4s ease; transform-origin: 50% 55%; }
.hero-video.is-playing { opacity: 1; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); }
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(8, 16, 18, 0) 55%, rgba(8, 16, 18, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 16, 18, 0.5) 0%, rgba(8, 16, 18, 0.12) 32%, rgba(8, 16, 18, 0.08) 62%, rgba(8, 16, 18, 0.6) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(120px, 18.7vh, 190px) 24px 0;
}
.hero-title, .hero-sub, .chapter-text { text-shadow: 0 1px 24px rgba(8, 16, 18, 0.35); }
.hero-sub { text-shadow: 0 1px 12px rgba(8, 16, 18, 0.55); }
.hero-title { font-size: clamp(64px, min(14.5vw, 23vh), 208px); line-height: 1; letter-spacing: -0.01em; }
.hero-sub { margin-top: clamp(14px, 2.4vh, 24px); font-weight: 300; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.45; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(48px, 10.6vh, 96px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 24px;
}
.btn-hero { height: 72px; width: 300px; font-size: 19px; }
.scroll-cue { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243, 245, 214, 0.75); }
.scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.video-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(243, 245, 214, 0.35);
  background: rgba(8, 16, 18, 0.25); color: var(--cream);
  display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: opacity 0.2s;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { opacity: 1; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }

/* page-load reveal */
.hero-title, .hero-sub, .hero-foot > * { animation: rise-in 1.4s var(--ease-out) both; }
.hero-sub { animation-delay: 0.25s; }
.hero-foot > * { animation-delay: 0.5s; }
.hero-foot > .scroll-cue { animation-delay: 0.8s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }

/* chapters */
.chapter .panel-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 16, 18, 0.62) 0%, rgba(8, 16, 18, 0.15) 45%, rgba(8, 16, 18, 0) 70%); }
.chapter-right .panel-media::after { background: linear-gradient(260deg, rgba(8, 16, 18, 0.62) 0%, rgba(8, 16, 18, 0.15) 45%, rgba(8, 16, 18, 0) 70%); }
.chapter-text {
  position: absolute; bottom: clamp(48px, 10.6vh, 96px); left: var(--gutter); z-index: 2;
  width: min(560px, calc(100% - 2 * var(--gutter)));
  display: flex; flex-direction: column; gap: 20px;
}
.chapter-right .chapter-text { left: auto; right: var(--gutter); text-align: right; align-items: flex-end; }
.chapter-text h2 { font-size: clamp(44px, 5.8vw, 84px); line-height: 1.02; text-wrap: balance; }
.chapter-text p { font-weight: 300; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.55; color: rgba(243, 245, 214, 0.9); text-wrap: pretty; max-width: 460px; }

/* scroll-driven motion (progressive enhancement: without support, panels still stack) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    /* the incoming photo lags behind its panel, so it feels like a background revealed underneath */
    .chapter .panel-media { animation: media-lag linear both; animation-timeline: var(--self); animation-range: entry 0% entry 100%; }
    .chapter-text > * { animation: text-rise linear both; animation-timeline: var(--self); animation-range: entry 55% entry 100%; }
    .chapter-text > p { animation-range: entry 65% entry 100%; }
    /* the panel being covered darkens and its words drift away */
    .panel::after { animation: dim linear both; animation-timeline: var(--next); animation-range: entry 0% entry 100%; }
    .chapter-text, .hero-content, .hero-foot { animation: text-leave linear both; animation-timeline: var(--next); animation-range: entry 0% entry 70%; }
    .hero-foot { animation-range: entry 0% entry 35%; }
  }
}
@keyframes media-lag { from { transform: translateY(-22%) scale(1.08); } }
@keyframes text-rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes dim { to { opacity: 0.6; } }
@keyframes text-leave { to { opacity: 0; transform: translateY(-10vh); } }

/* ---------- booking ---------- */
.book {
  position: relative; z-index: 5;
  background: var(--ivory); color: var(--ink);
  border-radius: 32px 32px 0 0;
  padding: clamp(72px, 12vh, 128px) var(--gutter) clamp(72px, 12vh, 120px);
  scroll-margin-top: 0;
}
.book-inner { max-width: 1248px; margin: 0 auto; }
.book-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.book-head > div { display: flex; flex-direction: column; gap: 18px; }
.book-title { font-size: clamp(48px, 6.7vw, 96px); line-height: 1; }
.book-lede { width: 380px; max-width: 100%; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; margin-bottom: 10px; }
.book-grid { margin-top: clamp(32px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 464fr); gap: 24px; align-items: stretch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 32px; }

/* calendar */
:root { --hair: #eae8df; --weekend: #f7f6f0; --sand: #ede3d3; --sand-ink: #6f4520; --sand-bar: #c9a47e; }
.book-grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 29vw, 412px); gap: clamp(16px, 1.7vw, 24px); }
.cal { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.cal > .cal-grid { flex-grow: 1; grid-auto-rows: 1fr; }
.cal-head { padding: 22px 24px 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.cal-month { font-size: clamp(26px, 2.8vw, 40px); line-height: 1; white-space: nowrap; }
.cal-year { color: var(--faint); margin-left: 4px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.today-btn { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; transition: border-color 0.2s; }
.today-btn:hover { border-color: var(--ink); }
.sq-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, opacity 0.2s; }
.sq-btn:hover:not(:disabled) { border-color: var(--ink); }
.sq-btn:disabled { opacity: 0.3; cursor: default; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-bottom: 1px solid var(--line); }
.cal-week span { background: var(--card); padding: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--hair); transition: opacity 0.25s; }
.cal-grid.is-loading { opacity: 0.45; }
.cal-grid.slide-next { animation: slide-next 0.45s var(--ease-out); }
.cal-grid.slide-prev { animation: slide-prev 0.45s var(--ease-out); }
@keyframes slide-next { from { opacity: 0; transform: translateX(16px); } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-16px); } }
.cell {
  /* rows shrink on shorter laptop screens so a whole month (up to 6 weeks) fits on screen */
  position: relative; min-width: 0; min-height: clamp(66px, calc((100vh - 330px) / 6), 116px); padding: 10px 10px 10px 12px; border: 0; border-radius: 0;
  container-type: inline-size;
  background: var(--card); color: var(--ink); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.cell.is-weekend { background: var(--weekend); }
button.cell:hover { background: #ffffff; box-shadow: inset 0 0 0 1px var(--ink); z-index: 1; }
button.cell:focus-visible { outline: 2px solid var(--teak); outline-offset: -2px; z-index: 2; }
.cell-num { font-size: 15px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.cell.is-today .cell-num { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; margin: -5px 0 0 -6px; border-radius: 8px; background: var(--teak); color: #ffffff; font-weight: 600; }
/* owner chips: each owner's initials in their colour (from the owners' spreadsheet) */
.chip {
  display: block; min-width: 0; height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--bg); color: var(--fg);
  font-size: 12px; font-weight: 500; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip b { font-weight: 700; }
.chip-short { display: none; }
.cell.is-works .chip { font-size: 11px; font-weight: 700; }
.cell.is-past .cell-num { color: #c4c6be; }
.cell.is-past .chip { opacity: 0.5; }
.cell[aria-pressed='true'], button.cell[aria-pressed='true']:hover { background: var(--ink); color: var(--cream); box-shadow: none; }
.cell[aria-pressed='true'] .cell-num { font-weight: 600; color: var(--cream); }
.cell[aria-pressed='true'] .chip { opacity: 1; }
.initials {
  display: inline-block; min-width: 28px; height: 20px; padding: 0 5px; border-radius: 5px;
  background: var(--bg); color: var(--fg); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; flex-shrink: 0;
}
.initials-lg { min-width: 44px; height: 44px; line-height: 44px; border-radius: 12px; font-size: 15px; }
.cal-legend { padding: 16px 28px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 6px; }
/* narrow days (smaller laptops): owners show just their initials, boat works wrap onto two lines */
@media (min-width: 821px) {
  @container (max-width: 112px) {
    .chip { padding: 0 6px; text-align: center; }
    .chip-full { display: none; }
    .chip-short { display: inline; }
    .is-works .chip { height: auto; min-height: 24px; padding: 4px 6px; font-size: 10.5px; line-height: 1.15; white-space: normal; text-align: left; overflow-wrap: anywhere; }
    .is-works .chip-full { display: block; }
    .is-works .chip-short { display: none; }
  }
}

/* selected day */
.day-panel { border-radius: 24px; padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; }
.day-panel > .eyebrow, .dp-title { margin-left: 4px; margin-right: 4px; }
.dp-title { margin-top: 10px; margin-bottom: 20px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; }
.dp-card { padding: 18px; border-radius: 16px; background: #ffffff; border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; animation: step-in 0.35s var(--ease-out); }
.dp-card.is-taken { background: color-mix(in srgb, var(--bg) 55%, #ffffff); border-color: var(--bg); }
.dp-card.is-works { background: #fbecea; border-color: #f2cfcb; }
.dp-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--taken); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.dp-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dp-text strong { font-size: 17px; font-weight: 600; }
.dp-text span { font-size: 14px; color: var(--muted); }
.dp-text em { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dp-hint { margin: 12px 4px 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dp-hint a { color: var(--teak); }
.dp-hint.is-error { color: var(--danger); }
.dp-book { margin-top: 16px; }
.dp-cancel { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-cancel .btn { height: 48px; padding: 0 20px; font-size: 15px; }
.dp-cancel-text { flex-basis: 100%; margin: 0 4px 4px; font-size: 14px; color: var(--muted); }
.dp-cancel-text.is-error { color: var(--danger); }
.upcoming { margin-top: auto; padding-top: clamp(20px, 3vh, 32px); }
@media (max-height: 820px) and (min-width: 961px) { .upcoming-list li:nth-child(n+4) { display: none; } }
.upcoming-title { display: block; margin: 0 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.upcoming-list { margin: 0; padding: 0; list-style: none; }
.upcoming-list li { border-top: 1px solid var(--line); }
.upcoming-list button { width: 100%; padding: 12px 4px; border: 0; background: none; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 8px; }
.upcoming-list button:hover .upcoming-who { text-decoration: underline; text-underline-offset: 3px; }
.upcoming-list .initials { min-width: 36px; height: 22px; line-height: 22px; }
.upcoming-who { flex-grow: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-when { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums; }
.upcoming-empty { padding: 12px 4px; font-size: 14px; color: var(--muted); }
.day-panel .btn { height: 58px; font-size: 17px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 5; background: var(--ink); color: var(--cream); padding: 88px var(--gutter) 64px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-mark { font-family: var(--serif); font-size: clamp(56px, 6.1vw, 88px); line-height: 1; }
.footer-cols { display: flex; gap: 72px; font-size: 16px; line-height: 2; color: var(--cream-80); }
.footer-cols > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-cols a, .footer-cols button { text-decoration: none; background: none; border: 0; padding: 0; color: inherit; line-height: 2; }
.footer-cols a:hover, .footer-cols button:hover { color: var(--cream); }
.footer-dim { color: rgba(243, 245, 214, 0.5); }

/* ---------- sheet (side panel on laptop, bottom sheet on phone) ---------- */
.sheet {
  position: fixed; inset: 16px 16px 16px auto; margin: 0;
  width: min(580px, calc(100vw - 32px)); height: auto; max-width: none; max-height: none;
  border: 0; border-radius: 28px; padding: 36px 48px 44px;
  background: var(--ivory); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(calc(100% + 32px));
  transition-property: transform, display, overlay;
  transition-duration: 0.5s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}
.sheet[open] {
  transform: none;
  @starting-style { transform: translateX(calc(100% + 32px)); }
}
.sheet::backdrop {
  background-color: rgba(8, 16, 18, 0);
  backdrop-filter: blur(0);
  transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete, background-color 0.5s, backdrop-filter 0.5s;
}
.sheet[open]::backdrop {
  background-color: rgba(8, 16, 18, 0.55);
  backdrop-filter: blur(3px);
  @starting-style { background-color: rgba(8, 16, 18, 0); backdrop-filter: blur(0); }
}
.sheet-grab { display: none; }
.sheet h2:focus { outline: none; }
.sheet-body { min-height: 100%; display: flex; flex-direction: column; }
.sheet-step { flex-grow: 1; display: flex; flex-direction: column; animation: step-in 0.45s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.sheet-top .round-btn { width: 44px; height: 44px; }
.sheet h2 { margin-top: 20px; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; text-wrap: balance; }
.sheet-lede { margin: 14px 0 32px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.fields { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .note-label { font-size: 14px; font-weight: 600; }
.note-label span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.input-wrap { position: relative; }
.input, .textarea {
  width: 100%; background: #ffffff; border: 1px solid var(--line); border-radius: 16px;
  font-size: 17px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.input { height: 60px; padding: 0 18px; }
.input-wrap .input { padding-right: 96px; }
.textarea { min-height: 104px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 27, 29, 0.08); }
.show-pw { position: absolute; right: 8px; top: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--taken); font-size: 14px; font-weight: 500; }
.form-error { margin-top: 16px; font-size: 15px; color: var(--danger); min-height: 1.4em; }
.sheet-foot-note { margin-top: auto; padding-top: 24px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sheet-foot-note strong { color: var(--ink); font-weight: 600; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 8px; margin-top: 28px; }
.summary-card img { width: 100%; height: 168px; object-fit: cover; border-radius: 18px; }
.summary-rows { margin: 0; padding: 4px 16px; }
.summary-row { padding: 16px 0; display: flex; align-items: baseline; gap: 16px; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row dt { width: 80px; flex-shrink: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.summary-row dd { margin: 0; font-size: 18px; text-wrap: balance; }
.note { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.sheet-actions { margin-top: auto; padding-top: 24px; display: flex; gap: 12px; }
.sheet-actions .btn-outline { width: 150px; flex-shrink: 0; }
.sheet-actions .btn-ink { flex-grow: 1; }
.done { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; }
.done-check { width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.done-check svg { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.25s var(--ease-out) forwards; }
.done-check { animation: pop 0.6s var(--ease-out); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.done h2 { margin-top: 28px; font-size: clamp(48px, 4.4vw, 64px); }
.done p { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.stack-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- menu (phones) ---------- */
.menu {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; padding: 12px 20px 40px; background: var(--ink); color: var(--cream);
  opacity: 0;
  transition-property: opacity, display, overlay; transition-duration: 0.35s; transition-behavior: allow-discrete;
}
.menu[open] { opacity: 1; @starting-style { opacity: 0; } }
.menu-close { position: absolute; top: 10px; right: 10px; }
.menu-links { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 8px; }
.menu-links a, .menu-links button { font-family: var(--serif); font-size: 44px; line-height: 1.2; text-decoration: none; text-align: left; background: none; border: 0; padding: 4px 0; color: var(--cream); }

/* ---------- my bookings page ---------- */
.page-light { background: var(--ivory); color: var(--ink); }
.page-light .nav { position: sticky; color: var(--ink); background: rgba(245, 244, 236, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.page-light .nav .nav-mark { opacity: 1; transform: none; pointer-events: auto; }
.page-light .nav-pill { border-color: var(--line); }
.page-light .nav-pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.mine { width: min(960px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 72px 0 120px; min-height: calc(100vh - 96px); }
.mine-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mine-head > div { display: flex; flex-direction: column; gap: 14px; }
.mine-head h1 { font-size: clamp(48px, 5.6vw, 80px); line-height: 1; }
.mine-list { margin: 44px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.booking-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 22px 28px 22px 32px; display: flex; align-items: center; gap: 28px;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.booking-row.is-leaving { opacity: 0; transform: translateX(-24px); }
.booking-row img { width: 176px; height: 116px; object-fit: cover; border-radius: 18px; flex-shrink: 0; }
.booking-info { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.booking-date { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.booking-time { font-size: 17px; color: var(--muted); }
.booking-note { font-size: 15px; color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.booking-actions .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.booking-actions .confirm-text { font-size: 15px; color: var(--muted); margin-right: 4px; }
.empty { margin-top: 44px; padding: 56px 32px; text-align: center; border: 1px dashed var(--line); border-radius: 28px; }
.empty h2 { font-size: 36px; }
.empty p { margin: 12px 0 28px; color: var(--muted); font-size: 17px; }

.field-hint { font-size: 13px; color: var(--muted); }
.who-pick { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.who-pick legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.who-options { display: flex; flex-wrap: wrap; gap: 8px; }
.who-option { position: relative; display: block; }
.who-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.who-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.who-option:hover .who-chip { border-color: var(--faint); }
.who-option input:checked + .who-chip { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.who-option input:focus-visible + .who-chip { outline: 2px solid var(--teak); outline-offset: 2px; }
.who { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.who .input { height: 52px; font-size: 16px; }
.who-hint { margin-top: 8px; }
.sheet .note { margin-top: 18px; }
.sheet .textarea { min-height: 80px; }
.summary-card img { height: 110px; }
.mine-for { font-size: 14px; color: var(--muted); }
.mine-for button { border: 0; background: none; padding: 0; font-size: 14px; color: var(--teak); text-decoration: underline; text-underline-offset: 3px; }
.find-card { margin-top: 44px; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.find-card .btn { margin-top: 20px; }

/* ---------- sign-in (first page): both boats on video, form in a centred see-through glass card ---------- */
.page-signin { background: var(--ink); color: var(--cream); }
.signin-media { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
.signin-media picture, .signin-media img, .signin-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signin-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(8, 16, 18, 0.28) 0%, rgba(8, 16, 18, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 16, 18, 0.35) 0%, rgba(8, 16, 18, 0) 25%, rgba(8, 16, 18, 0) 75%, rgba(8, 16, 18, 0.3) 100%);
}
.signin-video { opacity: 0; transition: opacity 1.4s ease; }
.signin-video.is-playing { opacity: 1; }
.signin {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh; padding: 48px 16px;
  display: flex; align-items: center; justify-content: center;
}
.signin-inner {
  width: min(480px, 100%); padding: 52px 44px 40px;
  background: rgba(12, 22, 24, 0.1); border: 1px solid rgba(243, 245, 214, 0.3); border-radius: 28px;
  -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12); text-shadow: 0 1px 12px rgba(8, 16, 18, 0.45);
  animation: rise-in 0.9s var(--ease-out) both;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .signin-inner { background: rgba(12, 22, 24, 0.4); }
}
.page-signin.is-leaving .signin-inner { opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s; }
.signin-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.signin-head h1 { font-size: 60px; line-height: 1; color: var(--cream); }
.signin-head .eyebrow { color: rgba(243, 245, 214, 0.75); }
.signin-form { margin-top: 40px; }
.signin-form .fields { gap: 16px; }
.signin-form label { color: var(--cream); }
.signin-form .input { height: 56px; background: rgba(255, 255, 255, 0.08); border-color: rgba(243, 245, 214, 0.4); color: var(--cream); }
.signin-form .input::placeholder { color: rgba(243, 245, 214, 0.6); }
.signin-form .input:focus { border-color: var(--cream); box-shadow: 0 0 0 3px rgba(243, 245, 214, 0.18); }
.signin-form .input:-webkit-autofill { -webkit-text-fill-color: var(--cream); -webkit-box-shadow: 0 0 0 1000px rgba(38, 50, 50, 0.9) inset; caret-color: var(--cream); }
.signin-form .show-pw { top: 8px; height: 40px; background: rgba(243, 245, 214, 0.16); color: var(--cream); }
.signin-form .form-error { margin: 12px 0 16px; min-height: 1.4em; color: #ffc9bd; }
.signin-form .btn { height: 58px; font-size: 17px; text-shadow: none; }
.signin-help { margin-top: 22px; text-align: center; font-size: 15px; line-height: 1.6; color: rgba(243, 245, 214, 0.8); }
.signin-help a { color: var(--cream); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .signin-media picture, .signin-media img, .signin-media video { object-position: 42% center; }
  .signin-inner { padding: 36px 24px 28px; }
  .signin-head h1 { font-size: 44px; }
  .signin-form { margin-top: 30px; }
}
.loading-line { margin-top: 44px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .nav { height: 64px; padding: 0 12px 0 20px; }
  .nav.is-light { height: 64px; }
  .nav-links { display: none; }
  .nav-menu { display: flex; }
  .nav-mark { font-size: 24px; }
  .chapter-text, .chapter-right .chapter-text { left: 24px; right: 24px; width: auto; text-align: left; align-items: flex-start; bottom: 48px; gap: 12px; }
  .chapter .panel-media::after, .chapter-right .panel-media::after { background: linear-gradient(0deg, rgba(8, 16, 18, 0.72) 0%, rgba(8, 16, 18, 0.12) 50%, rgba(8, 16, 18, 0) 100%); }
  .hero-foot { left: 24px; right: 24px; padding: 0; }
  .btn-hero { width: 100%; height: 60px; font-size: 18px; }
  .scroll-cue { display: none; }
  .video-toggle { right: 16px; bottom: auto; top: 76px; }
  .book { padding: 64px 16px 64px; border-radius: 28px 28px 0 0; }
  .book-head { padding: 0 8px; }
  .book-head > div { gap: 12px; }
  .book-title { font-size: 44px; }
  .book-lede { font-size: 16px; margin-bottom: 0; }
  .book-grid { gap: 12px; margin-top: 28px; }
  .card { border-radius: 28px; }
  .cal { border-radius: 22px; }
  .cal-head { padding: 14px 12px 14px 20px; }
  .cal-month { font-size: 28px; }
  .today-btn { display: none; }
  .sq-btn { width: 44px; height: 44px; }
  .cal-week { background: none; gap: 0; border-bottom: 0; padding: 12px 8px 4px; }
  .cal-week span { background: none; padding: 0; text-align: center; font-size: 0; letter-spacing: 0.1em; }
  .cal-week span::before { content: attr(data-short); font-size: 11px; }
  .cal-grid { background: none; gap: 0; padding: 0 8px 8px; }
  .cell, .cell.is-weekend { min-height: 56px; padding: 9px 0 0; background: none; align-items: center; justify-content: flex-start; gap: 7px; border-radius: 12px; }
  button.cell:hover { background: none; box-shadow: inset 0 0 0 1px var(--line); }
  button.cell.is-past:hover, button.cell.is-past.is-weekend:hover { background: none; box-shadow: none; }
  .chip { width: 38px; height: 16px; padding: 0 2px; border-radius: 4px; font-size: 9px; font-weight: 700; line-height: 16px; text-align: center; text-overflow: clip; }
  .chip-full { display: none; }
  .chip-short { display: inline; }
  .cell.is-today .cell-num { align-self: center; margin: -5px 0 0; min-width: 26px; }
  .cal-legend { padding: 14px 18px; gap: 8px 12px; }
  .cal-grid .cell[aria-pressed='true'], .cal-grid button.cell[aria-pressed='true']:hover { background: var(--ink); box-shadow: none; }
  .day-panel { border-radius: 22px; padding: 22px 14px; }
  .day-panel > .eyebrow, .dp-title, .summary, .dp-hint { margin-left: 6px; margin-right: 6px; }
  .dp-title { font-size: 32px; margin-bottom: 18px; }
  .upcoming { padding-top: 24px; }
  .btn { height: 58px; font-size: 17px; }
  .footer { padding: 56px 24px 40px; }
  .footer-cols { gap: 48px; font-size: 15px; }

  .sheet {
    inset: auto 0 0 0; width: 100%; max-height: calc(100dvh - 48px);
    border-radius: 28px 28px 0 0; padding: 12px 24px calc(32px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .sheet[open] { transform: none; @starting-style { transform: translateY(100%); } }
  .sheet-grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
  .sheet h2 { margin-top: 12px; }
  .sheet-lede { font-size: 16px; margin-bottom: 24px; }
  .summary-card { margin-top: 20px; }
  .summary-card picture { display: none; }
  .who { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
  .summary-row { padding: 12px 0; }
  /* keep Back / Confirm in reach while the form scrolls */
  .sheet-actions { position: sticky; bottom: calc(-32px - env(safe-area-inset-bottom)); margin: 0 -24px calc(-32px - env(safe-area-inset-bottom)); padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--ivory); box-shadow: 0 -1px 0 var(--line); }
  .sheet .textarea { min-height: 64px; }
  .find-card { padding: 24px 20px; margin-top: 28px; }
  .summary-row dt { width: 72px; }
  .summary-row dd { font-size: 16px; }
  .note { margin-top: 20px; }
  .textarea { min-height: 88px; }
  .sheet-actions .btn-outline { width: 112px; }
  .done-check { width: 72px; height: 72px; }
  .done p { font-size: 17px; }

  .mine { width: auto; padding: 40px 16px 80px; }
  .mine-head { padding: 0 8px; }
  .mine-list { margin-top: 28px; gap: 10px; }
  .booking-row { border-radius: 24px; padding: 16px 20px; gap: 14px; align-items: flex-start; }
  .booking-row img { width: 84px; height: 84px; border-radius: 16px; }
  .booking-info { padding-top: 4px; gap: 4px; }
  .booking-date { font-size: 22px; line-height: 1.15; }
  .booking-time { font-size: 14px; }
  .booking-actions { margin-top: 6px; flex-wrap: wrap; }
  .booking-row { flex-wrap: wrap; }
  .booking-info { flex-basis: 100%; }
  .booking-actions { width: 100%; justify-content: flex-end; padding-bottom: 4px; }
  .booking-actions .btn { height: 44px; padding: 0 18px; }
}

@media (max-height: 620px) {
  .hero-content { padding-top: 84px; }
  .hero-foot { bottom: 32px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.1s !important; }
  .sheet, .sheet[open] { transform: none; }
}
