/* Mawimbi digital menu, A1 "Tide" (navy). Round 2: calmer sea, soft glow, iridescent sheen. */
:root {
  --navy: #111C33;
  --navy-2: #16233F;
  --ivory: #F3EEE4;
  --ivory-soft: #CFC9BE;   /* descriptions: 10:1 on navy */
  --glass: #8FC9C4;        /* sea glass: 9:1 on navy */
  --wave: #2A3C62;         /* the pattern, tone on tone */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --col: 640px;
  --pad: max(24px, env(safe-area-inset-left));
  --bar-h: 50px;
  --fs: 1;                 /* the one text-size dial: 1 small, 1.22 large */
  /* calm motion (scroll reveals and ambient only) */
  --calm-dur: 1200ms;
  --calm-ease: cubic-bezier(.22, 1, .36, 1);
  /* transitions.dev / transitions-polish tokens for taps and UI */
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-text-muted: rgba(207, 201, 190, .72);
  --tabs-text-active: #F3EEE4;
  --tabs-bar-bg: rgba(243, 238, 228, .06);
  --tabs-pill-bg: rgba(143, 201, 196, .22);
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pulse-dur: 3200ms;
  --pulse-count: infinite;
  --pulse-min: 0.55;
  --reveal-dur: 900ms;
  --reveal-ease: ease-in-out;
}
html[data-size="large"] { --fs: 1.32; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs)); background: var(--navy); color: var(--ivory);
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.45; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; border-radius: 4px; }

/* Ink: brand drawings recoloured through their own alpha */
.ink { display: block; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; }

/* ---------- The sea: the wave pattern, and the light that moves on it ---------- */
.sea { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, #17264A 0%, var(--navy) 60%); }
/* one mask for both layers: the lines stay put, only the light inside them travels */
.sea-drift { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 820px);
  -webkit-mask-image: url(wave-tile-s.webp); mask-image: url(wave-tile-s.webp);
  -webkit-mask-size: 360px auto; mask-size: 360px auto;
  -webkit-mask-repeat: repeat; mask-repeat: repeat; will-change: transform; }
.sea-tone { position: absolute; inset: 0; background-color: var(--wave); opacity: .12; }
.sheen { position: absolute; top: 0; bottom: 0; left: -1100px; right: 0; opacity: .09; will-change: transform;
  background: repeating-linear-gradient(105deg, rgba(143, 201, 196, 0) 0, rgba(143, 201, 196, .3) 140px,
    rgba(170, 160, 230, .28) 300px, rgba(235, 170, 200, .26) 440px, rgba(240, 214, 150, .28) 580px,
    rgba(143, 201, 196, 0) 760px, rgba(143, 201, 196, 0) 1000px);
  background: repeating-linear-gradient(105deg, oklch(.84 .08 190 / 0) 0, oklch(.84 .08 190 / .32) 140px,
    oklch(.8 .09 285 / .3) 300px, oklch(.84 .08 345 / .28) 440px, oklch(.9 .08 85 / .3) 580px,
    oklch(.84 .08 190 / 0) 760px, oklch(.84 .08 190 / 0) 1000px);
  transform: translate3d(420px, 0, 0); }
@media (min-width: 900px) {
  .sea-drift { -webkit-mask-size: 460px auto; mask-size: 460px auto; }
}

/* ---------- Cover ---------- */
.cover { min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 22px; padding: 64px var(--pad) 72px; text-align: center; }
@supports (min-height: 100svh) { .cover { min-height: 100svh; } }
.cover h1 { width: min(78vw, 330px); }
.logo-wrap { position: relative; display: block; }
.logo { width: 100%; aspect-ratio: 308.9 / 57; color: var(--ivory);
  -webkit-mask-image: url(../assets/logo-script.svg); mask-image: url(../assets/logo-script.svg); position: relative; }
/* Glow 1: a halo painted once (a blurred copy), only its opacity breathes */
.logo-halo { position: absolute; inset: 0; filter: blur(7px); opacity: .42; will-change: opacity; }
.logo-halo .logo { color: #CDE9E4; }
.kicker { font-family: var(--sans); font-weight: 400; font-size: .75rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ivory); padding-left: .32em; }
.kicker span { color: var(--glass); padding: 0 .2em; }
.boat-wrap { display: block; width: 64px; margin-top: 26px; }
.boat { width: 100%; aspect-ratio: 230 / 270; color: var(--ivory); opacity: .9;
  -webkit-mask-image: url(boat-ink.webp); mask-image: url(boat-ink.webp); transform-origin: 50% 85%; }
@media (min-width: 900px) {
  .cover h1 { width: 420px; }
  .boat-wrap { width: 76px; }
}

/* ---------- Glow on names: transparent copy with a static halo, its opacity breathes ---------- */
.glow { position: relative; }
.glow::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; inset: 0;
  padding: inherit; color: transparent; pointer-events: none; opacity: .4;
  text-shadow: 0 0 .32em rgba(170, 225, 218, .5), 0 0 1.1em rgba(143, 201, 196, .28); }

/* ---------- Sticky bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; height: var(--bar-h);
  background: rgba(17, 28, 51, .9); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(143, 201, 196, .16); }
.bar-in { position: relative; height: 100%; max-width: 760px; margin: 0 auto; padding: 0 10px;
  display: flex; align-items: center; gap: 2px; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* transitions.dev 16, tabs sliding: the text-size switch (two equal tabs, so only the pill's transform moves) */
.t-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 48px;
  background: var(--tabs-bar-bg);
  border: 1px solid rgba(243, 238, 228, .1);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 48px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
  font-family: var(--serif); font-weight: 500; font-size: 14px; line-height: 1;
}
.t-tab.big { font-size: 20px; }
.t-tab:not([aria-pressed="true"]):hover,
.t-tab[aria-pressed="true"] {
  color: var(--tabs-text-active);
}
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 30px;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  transform: translateX(3px);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}
.size { margin-left: auto; flex: none; }
html:not(.js) .size { display: none; }
html[data-size="large"] .t-tabs-pill { transform: translateX(35px); }

/* ---------- Parts and courses ---------- */
.menu { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }
.part { position: relative; scroll-margin-top: var(--bar-h); }
#dinner { padding-top: 64px; }
.part-head { text-align: center; position: relative; }
.part-title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.75rem; line-height: 1.05;
  color: var(--ivory); text-wrap: balance; }
.index ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; max-width: 30em; margin: 18px auto 0; }
.index a { display: block; padding: 6px 10px; font-family: var(--sans); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: #C3C8D2; border: 1px solid rgba(243, 238, 228, .12); border-radius: 999px;
  transition: color var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out); }
.index a:hover { color: var(--ivory); border-color: rgba(143, 201, 196, .45); }

.course { position: relative; padding: 72px 0 8px; scroll-margin-top: calc(var(--bar-h) + 4px); }
.course-head { position: relative; text-align: center; margin-bottom: 28px; }
.course-name { font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; letter-spacing: .36em;
  text-transform: uppercase; padding-left: .36em; color: var(--ivory); text-wrap: balance; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--glass); margin-bottom: 6px; position: relative; }
.section-price { font-family: var(--sans); font-size: .875rem; letter-spacing: .14em; color: var(--glass);
  margin-top: 10px; position: relative; font-variant-numeric: lining-nums tabular-nums; }
.served { font-style: italic; font-size: 1rem; color: var(--ivory-soft); margin: 10px auto 0; max-width: 22em; position: relative; text-wrap: balance; }

/* the small hand-drawn wave line under each name */
.tideline { display: block; width: 132px; height: 14px; margin: 12px auto 0; overflow: visible; position: relative; }
.draw path { fill: none; stroke: var(--glass); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; }

.dish { padding: 16px 0 17px; border-top: 1px solid rgba(243, 238, 228, .08); }
.dish:first-child { border-top: 0; }
.dish-line { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.dish h4 { font-family: var(--sans); font-weight: 500; font-size: .84375rem; letter-spacing: .17em;
  text-transform: uppercase; line-height: 1.45; color: var(--ivory); }
.price { flex: none; font-family: var(--sans); font-size: .84375rem; letter-spacing: .06em; color: var(--glass);
  font-variant-numeric: lining-nums tabular-nums; }
.desc { font-style: italic; font-size: 1.125rem; line-height: 1.38; color: var(--ivory-soft); margin-top: 5px;
  max-width: 34em; text-wrap: pretty; }
.note { font-family: var(--sans); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--glass); margin-top: 7px; }
html[data-size="large"] .dish-line { flex-wrap: wrap; }
html[data-size="large"] .dish h4 { letter-spacing: .12em; }
html[data-size="large"] .desc { line-height: 1.42; }

/* Showpieces: The Queen and The King */
.showpiece { padding-top: 92px; }
.showpiece .course-head { padding-top: 112px; margin-bottom: 34px; }
.engraving { position: absolute; left: 50%; top: 0; width: 230px; color: var(--ivory); opacity: .2;
  transform: translateX(-50%); pointer-events: none; }
.engraving-crab { aspect-ratio: 560 / 408; -webkit-mask-image: url(crab-small.webp); mask-image: url(crab-small.webp); top: 10px; }
.engraving-lobster { aspect-ratio: 440 / 493; width: 170px; -webkit-mask-image: url(lobster-small.webp); mask-image: url(lobster-small.webp); top: -20px; }
.showpiece .course-name { font-size: 1.375rem; letter-spacing: .42em; padding-left: .42em; }

/* ---------- The curl: one line that becomes the divider between parts ---------- */
.curl { display: flex; justify-content: center; padding: 84px 0 0; }
.curl svg { width: 210px; height: auto; overflow: visible; }
.curl path { stroke-width: 1.2; opacity: .85; }

/* ---------- Breakfast ---------- */
#breakfast { padding-top: 40px; }
.media { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #172846; }
.media.hero { margin: 0 0 36px; }
/* transitions.dev 14, skeleton reveal: a sea-glass wash pulses until the photo is in, then a 900ms fade */
.t-skel-skeleton, .t-skel-content { position: absolute; inset: 0; }
.t-skel-content { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-skel-skeleton { z-index: 1; opacity: 1; transition: opacity var(--reveal-dur) var(--reveal-ease); }
.t-skel-skeleton > span { position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(143, 201, 196, .05) 20%, rgba(143, 201, 196, .16) 50%, rgba(143, 201, 196, .05) 80%);
  -webkit-mask-image: url(wave-tile-s.webp); mask-image: url(wave-tile-s.webp);
  -webkit-mask-size: 260px auto; mask-size: 260px auto; }
.t-skel-skeleton::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(143, 201, 196, .1), rgba(17, 28, 51, 0) 70%); }
html.js .t-skel-content { z-index: 2; opacity: 0; transition: opacity var(--reveal-dur) var(--reveal-ease); }
.t-skel.is-revealed .t-skel-skeleton { opacity: 0; }
html.js .t-skel.is-revealed .t-skel-content { opacity: 1; }
.t-skel-skeleton.is-pulsing > * { animation: t-skel-pulse var(--pulse-dur) ease-in-out var(--pulse-count); }
.t-skel.is-failed .t-skel-skeleton > * { animation: none; }
@keyframes t-skel-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: var(--pulse-min); }
}

.wrapped { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9.6em, 100%), 1fr)); gap: 6px 16px;
  max-width: 30em; margin: 0 auto; text-align: center; font-style: italic; font-size: 1.125rem; line-height: 1.35; color: var(--ivory-soft); }
.wrapped li { padding: 0 4px; text-wrap: balance; }

.sides { padding-top: 64px; }
.acc-title { text-align: center; }
.t-acc-head { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 16px;
  background: transparent; border: 1px solid rgba(143, 201, 196, .28); border-radius: 999px; cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-smooth-out); }
.t-acc-head:hover { border-color: rgba(143, 201, 196, .6); }
.t-acc-head .course-name { font-size: .9375rem; }
.t-acc-chevron .chev { width: 16px; height: 16px; color: var(--glass); }
.side-group { padding-top: 24px; text-align: center; }
.side-group h4 { font-family: var(--sans); font-weight: 500; font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--glass); margin-bottom: 8px; padding-left: .24em; }
/* transitions.dev 21, accordion */
html.app .t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
html.app .t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
html.app .t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  transition:
    opacity var(--acc-collapse) var(--acc-ease);
}
html.app .t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  transition:
    opacity var(--acc-expand) var(--acc-ease);
}
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}
html:not(.app) .t-acc-chevron { display: none; }
.part-note { margin: 44px auto 0; max-width: 24em; text-align: center; font-family: var(--sans); font-size: .6875rem;
  letter-spacing: .2em; text-transform: uppercase; color: #A9B1C0; text-wrap: balance; }

/* ---------- Events ---------- */
#events { padding-top: 56px; }
.events { display: grid; gap: 22px; margin-top: 34px; }
.event { border: 1px solid rgba(243, 238, 228, .1); border-radius: 8px; overflow: hidden; background: rgba(17, 28, 51, .55); }
.event .media { border-radius: 0; }
.event-body { padding: 18px 18px 22px; }
.tag { display: inline-block; font-family: var(--sans); font-size: .625rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--glass); border: 1px solid rgba(143, 201, 196, .45); border-radius: 999px;
  padding: 4px 9px 3px 11px; }
.event h3 { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 1.625rem; line-height: 1.12; color: var(--ivory); text-wrap: balance; }
.when { margin-top: 6px; font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--glass); }
.line { margin-top: 8px; font-style: italic; font-size: 1.125rem; line-height: 1.4; color: var(--ivory-soft); text-wrap: pretty; }
@media (min-width: 800px) {
  .events { grid-template-columns: 1fr 1fr; }
}

/* ---------- The Legend of the Wave ---------- */
.legend { position: relative; text-align: center; padding: 40px 0 24px; scroll-margin-top: var(--bar-h); }
.great-wave { width: min(300px, 80%); aspect-ratio: 249.3 / 100.4; margin: 0 auto 34px; color: var(--glass); opacity: .5;
  -webkit-mask-image: url(../assets/great-wave.svg); mask-image: url(../assets/great-wave.svg); }
.legend h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; display: flex; flex-direction: column; align-items: center; }
.legend .sm { font-style: italic; font-size: 1.375rem; color: var(--glass); }
.legend .lg { font-family: var(--sans); font-weight: 400; font-size: 1.875rem; letter-spacing: .3em; padding-left: .3em;
  text-transform: uppercase; margin: 4px 0 6px; }
.gloss { margin-top: 18px; font-size: 1.125rem; color: var(--ivory-soft); }
.gloss .phon { font-style: normal; color: var(--ivory); margin-right: .5em; }
.gloss .pos { font-style: italic; }
.gloss em { font-family: var(--sans); font-style: normal; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); margin-left: .25em; }
.story { font-style: italic; font-size: 1.25rem; line-height: 1.55; color: var(--ivory); max-width: 30em;
  margin: 26px auto 0; text-wrap: pretty; }

/* ---------- Social ---------- */
.social { padding-top: 0; }
.social-list { display: grid; gap: 12px; margin-top: 30px; }
.social-row { display: grid; grid-template-columns: 46px 1fr 22px; align-items: center; gap: 14px; min-height: 72px;
  padding: 12px 18px 12px 14px; border: 1px solid rgba(143, 201, 196, .24); border-radius: 16px; text-decoration: none;
  background: linear-gradient(100deg, rgba(143, 201, 196, .08), rgba(143, 201, 196, .02));
  transition: border-color var(--duration-fast) var(--ease-smooth-out), background-color var(--duration-fast) var(--ease-smooth-out); }
.social-row:hover { border-color: rgba(143, 201, 196, .55); background-color: rgba(143, 201, 196, .06); }
.s-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(143, 201, 196, .35); }
.s-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ivory); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-icon .dot { fill: var(--ivory); stroke: none; }
.s-text { display: flex; flex-direction: column; min-width: 0; }
.s-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.15; color: var(--ivory); }
.s-handle { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; color: var(--glass); overflow-wrap: anywhere; }
.arrow { width: 20px; height: 20px; fill: none; stroke: var(--glass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--duration-fast) var(--ease-smooth-out); }
.social-row:hover .arrow { transform: translate(2px, -2px); }
.ask { margin-top: 22px; text-align: center; font-style: italic; font-size: 1.25rem; color: var(--ivory-soft); text-wrap: balance; }

/* ---------- Reviews ---------- */
.reviews { padding-top: 96px; }
.review-line { margin: 12px auto 0; max-width: 22em; font-style: italic; font-size: 1.25rem; color: var(--ivory-soft); text-wrap: balance; }
.review-actions { display: grid; gap: 12px; margin: 28px auto 0; max-width: 460px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 18px; border-radius: 999px;
  text-align: center; text-decoration: none; font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; transition: background-color var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out); }
.btn-primary { background: var(--glass); color: var(--navy); border: 1px solid var(--glass); }
.btn-primary:hover { background: #A6D6D1; }
.btn-quiet { color: var(--ivory-soft); border: 1px solid rgba(243, 238, 228, .16); }
.btn-quiet:hover { border-color: rgba(243, 238, 228, .4); color: var(--ivory); }
@media (min-width: 560px) {
  .review-actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- Foot ---------- */
.foot { max-width: var(--col); margin: 0 auto; padding: 72px var(--pad) calc(64px + env(safe-area-inset-bottom));
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site, .phone { display: inline-block; font-family: var(--sans); font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory); padding: 8px 6px 8px 10px; border-bottom: 1px solid rgba(143, 201, 196, .5); }
.phone { letter-spacing: .16em; border-bottom-color: transparent; color: var(--glass); }
.site:hover { border-bottom-color: var(--glass); }
.price-note { margin-top: 12px; font-family: var(--sans); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: #A9B1C0; }

@media (min-width: 700px) {
  body { font-size: 1.1875rem; }
  .dish h4 { font-size: .875rem; }
  .course { padding-top: 88px; }
  .part-title { font-size: 3.25rem; }
  .bar-in { padding: 0 16px; }
}

/* =====================================================================
   MOTION. Calm: reveals 1200ms, 10px travel, ~100ms stagger; ambient loops 8 to 10s.
   Everything is visible by default; motion only arms with JS (reveals) or scroll timelines.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .logo-halo { animation: breathe 8.5s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
  .glow::after { animation: breathe 8s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
  .boat { animation: bob 10s ease-in-out infinite; }

  /* Reveals (IntersectionObserver adds .is-in once) */
  html.motion .rv { transition: opacity var(--calm-dur) var(--calm-ease), transform var(--calm-dur) var(--calm-ease);
    transition-delay: calc(var(--i, 0) * 100ms); }
  html.motion .rv:not(.is-in) { opacity: 0; transform: translateY(10px); }
  html.motion .great-wave.rv:not(.is-in) { opacity: 0; }
  html.motion .engraving { transition: opacity 1.8s var(--calm-ease), transform 2s var(--calm-ease); }
  html.motion .course-head:not(.is-in) .engraving { opacity: 0; transform: translateX(-50%) translateY(12px); }

  /* Scroll-driven: the sea drifts a third as fast as before, no sway; the light travels on the lines;
     the boat sails off; the lines draw themselves as they come into view */
  @supports (animation-timeline: scroll()) {
    .sea-drift { animation: drift linear both; animation-timeline: scroll(root); }
    .sheen { animation: sheen linear both; animation-timeline: scroll(root); }
    .boat-wrap { animation: sail linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    .draw path { animation: draw linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
  }
  @supports not (animation-timeline: scroll()) {
    html.motion .draw path { transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .25, 1) .2s; }
    html.motion .draw:not(.is-in) path { stroke-dashoffset: 1; }
  }
}
@keyframes breathe { from { opacity: .25; } to { opacity: .6; } }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-.7deg); }
  50% { transform: translateY(-1.5px) rotate(.7deg); }
}
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -780px, 0); } }
@keyframes sheen { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(1035px, 0, 0); } }
@keyframes sail { to { transform: translate3d(18px, -6px, 0) rotate(-2deg); opacity: .08; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .draw path { stroke-dashoffset: 0 !important; }
  .t-dropdown, .t-tabs-pill, .t-tab { transition: none !important; }
  .t-skel-skeleton, .t-skel-content { transition: none !important; }
  .t-skel-skeleton.is-pulsing > * { animation: none !important; }
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron { transition: none !important; }
}

/* Round 3: Dock. Existing navy, serif and very quiet pattern stay intact. */
:root {
  --tide-bg: var(--navy-2); --tide-ink: var(--ivory); --tide-soft: var(--ivory-soft);
  --tide-accent: var(--glass); --tide-line: rgba(243,238,228,.16);
  --tide-display: var(--serif); --tide-sans: var(--sans);
  --modal-open-dur: var(--duration-fast); --modal-close-dur: var(--duration-quick);
  --modal-scale: .96; --modal-scale-close: .96; --modal-ease: var(--ease-smooth-out);
  --text-soft-dur: 200ms; --text-soft-ease: ease-in-out;
}
html { scroll-behavior: auto; }
body { isolation: isolate; timeline-scope: --early, --late, --catch; }
.cover, .menu, .foot { position: relative; z-index: 1; }
.cover-tide { margin-top: 4px; min-height: 48px; padding: 12px 22px; border-color: rgba(143,201,196,.5); background: rgba(143,201,196,.08); }
.cover .boat-wrap { margin-top: 10px; }
.bar { transition: transform var(--duration-fast) var(--ease-smooth-out); height: 52px; }
.bar.is-away { transform: translateY(-105%); }
.bar:focus-within { transform: none; }
.bar-in { justify-content: space-between; gap: 10px; padding: 4px 16px; }
.mini-logo { width: 100px; min-height: 44px; display: grid; align-items: center; padding: 8px 4px; }
.tide-entry { min-height: 44px; border: 0; background: transparent; padding: 8px 12px; cursor: pointer; color: var(--glass); font: 500 .875rem var(--serif); }
.tide-entry span { margin-left: 8px; }
.size { margin-left: 0; height: 44px; padding: 4px; gap: 2px; }
.t-tab { width: 36px; height: 34px; padding: 4px; }
.t-tabs-pill { width: 36px; height: 34px; top: 4px; transform: translateX(4px); transition: transform var(--tabs-dur) var(--tabs-ease); will-change: transform; }
html[data-size="large"] .t-tabs-pill { transform: translateX(42px); }
.section-art { width: 76px; height: 66px; margin: 0 auto 18px; color: var(--glass); opacity: .65; mask-image: var(--art); -webkit-mask-image: var(--art); }
.course-head .section-art { width: 72px; height: 64px; }
/* 21 accordion: this round explicitly requests a <=300ms height reveal. */
.allergy { display: block; }
.allergy > div { overflow: visible; }
.allergy p { padding-top: 8px; font: 400 .625rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--glass); }
.allergy .allergy-note { font-size: .625rem; letter-spacing: .01em; text-transform: none; padding-top: 4px; }
html:not(.app) .dock, html:not(.app) [data-tide-open] { display: none; }
.dock { position: fixed; z-index: 20; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; width: min(328px,calc(100% - 32px)); padding: 5px; border: 1px solid rgba(243,238,228,.23); border-radius: 999px; background: rgba(26,39,58,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.dock button { min-width: 0; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.dock-prev, .dock-next { font: 400 30px/1 var(--serif); color: var(--glass); }
.dock button:disabled { opacity: .25; cursor: default; }
.dock-name { display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 1rem/1.15 var(--serif); }
.dock-caret { font: 12px var(--sans); color: var(--glass); }
.dock button:hover { background: rgba(243,238,228,.05); }
.t-text-soft { display: inline-grid; text-align: center; }
.t-text-soft > span { grid-area: 1/1; transition: opacity var(--text-soft-dur) var(--text-soft-ease); }
.t-text-soft-new, .t-text-soft.is-swapping .t-text-soft-old { opacity: 0; }
.t-text-soft.is-swapping .t-text-soft-new { opacity: 1; }
/* 34: fixed label cell; opacity crossfade, no width or blur animation. */
#sections { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); margin: 0 auto; width: min(540px,calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ivory); background: var(--navy-2); border: 1px solid rgba(243,238,228,.22); border-radius: 24px; padding: 0; }
#sections::backdrop { background: rgba(4,10,22,.64); }
.sheet-body { padding: 12px; }
.sheet-body header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 10px 12px; }
.sheet-body h2 { font: 500 1.5rem var(--serif); }
.sheet-close { width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 26px; }
.section-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.section-list a { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 10px; border: 1px solid rgba(243,238,228,.1); border-radius: 12px; font: 400 .9375rem/1.15 var(--serif); text-decoration: none; text-wrap: balance; }
.section-list .section-art { flex: 0 0 26px; width: 26px; height: 28px; margin: 0; }
.section-list a[aria-current="true"] { border-color: var(--glass); background: rgba(143,201,196,.09); }
.section-list a:last-child { grid-column: 1/-1; }
html.sheet-lock { overflow: hidden; }
html.td-lock .dock, html.sheet-lock .dock { visibility: hidden; }
.foot { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity   var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open { transform: scale(1); opacity: 1; pointer-events: auto; }
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close)); opacity: 0; pointer-events: none;
  transition: transform var(--modal-close-dur) var(--modal-ease), opacity var(--modal-close-dur) var(--modal-ease);
}
/* Shared chooser: native palette and small dessert / wine plates. */
.td-sheet { filter: none; transition-property: transform,opacity; }
.td-reel:nth-child(3) .td-rl::before, .td-reel:nth-child(4) .td-rl::before { content: ''; display: inline-block; width: 28px; height: 23px; vertical-align: middle; margin-right: 8px; background: var(--glass); mask: url(../assets/illus/sections/wine.webp) center/contain no-repeat; }
.td-reel:nth-child(4) .td-rl::before { mask-image: url(../assets/illus/sections/dessert.webp); }
/* Scene layers are BEHIND the reading surfaces, never over the lettering. */
.scene-band { position: fixed; left: 0; right: 0; z-index: 0; pointer-events: none; overflow: hidden; color: var(--glass); }
.sky { top: 52px; height: 90px; }
.seabed { bottom: 0; height: 120px; }
.scene { position: absolute; opacity: 0; background-color: currentColor; }
.gull { width: 44px; height: 40px; left: 8px; top: 12px; mask-image: url(../assets/illus/scene/gull.webp); }
.octopus { width: 90px; height: 75px; left: 0; top: 0; mask-image: url(../assets/illus/scene/octopus.webp); }
.horizon { position: absolute; inset: 0; }
.dhow { width: 64px; height: 76px; top: 8px; left: 12px; mask-image: url(../assets/illus/scene/dhow.webp); }
.dhow::after { content: ''; }
.school { width: 110px; height: 64px; left: 0; top: 2px; mask-image: url(../assets/illus/scene/school.webp); }
.catch { position: absolute; width: 160px; height: 120px; left: 4px; top: 0; opacity: 0; }
.fisherman { position: absolute; width: 120px; height: 78px; left: 0; top: 0; mask-image: url(../assets/illus/scene/fisherman.webp); }
.fishing-line { position: absolute; inset: 0; width: 160px; height: 120px; fill: none; stroke: currentColor; stroke-width: .7; }
.fishing-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hooked { position: absolute; left: 108px; top: 65px; width: 23px; height: 35px; mask-image: url(../assets/illus/scene/fish-hooked.webp); opacity: 0; }
/* Opaque text plates allow the engravings through the surrounding empty space. */
.dish, .course-head, .part-head, .wrapped, .side-group, .story, .gloss, .ask, .review-line, .part-note, .foot { background: var(--navy); }
#beginnings { view-timeline-name: --early; }
#breakfast { view-timeline-name: --late; }
#sea { view-timeline-name: --catch; }
@keyframes glide { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: .45; } 85% { opacity: .45; } 100% { opacity: 0; transform: translateX(calc(100vw - 70px)); } }
@keyframes swim { 0% { opacity: 0; transform: translateX(calc(100vw - 94px)); } 15%,85% { opacity: .45; } 100% { opacity: 0; transform: translateX(4px); } }
@keyframes boat-scene { 0%,100% { opacity: 0; } 12%,88% { opacity: .5; } }
@keyframes cast { 0%,12% { stroke-dashoffset: 1; } 40%,55% { stroke-dashoffset: 0; } 90%,100% { stroke-dashoffset: 1; } }
@keyframes haul { 0%,40% { opacity: 0; transform: translate(0,25px) rotate(15deg); } 55% { opacity: 1; transform: translate(0,0) rotate(0); } 88% { opacity: 1; transform: translate(0,-58px) rotate(-12deg); } 98%,100% { opacity: 0; transform: translate(-40px,-28px) rotate(-60deg); } }
@supports (animation-timeline: view()) {
 @media (prefers-reduced-motion: no-preference) {
  .gull { animation: glide linear both; animation-timeline: --early; }
  .octopus { animation: swim linear both; animation-timeline: --early; }
  .dhow { animation: glide linear both; animation-timeline: --late; }
  .school { animation: swim linear both; animation-timeline: --late; }
  .catch { animation: boat-scene linear both; animation-timeline: --catch; }
  .fishing-line path { animation: cast linear both; animation-timeline: --catch; }
  .hooked { animation: haul linear both; animation-timeline: --catch; }
 }
}
@media (min-width: 900px) {
 .sky { height: 110px; }
 .gull { width: 64px; height: 50px; }
 .section-art { width: 100px; height: 84px; }
 .catch { left: max(18px,calc((100vw - 1040px)/2)); }
}
@media (prefers-reduced-motion: reduce) {
 .t-modal, .t-text-soft > span, .allergy { transition: none !important; }
 .gull { opacity: .35; }
 .octopus { opacity: .35; left: auto; right: 4px; }
 .scene-band .catch, .scene-band .dhow, .scene-band .school { opacity: 0; }
}
/* Keep the sea pieces just above the floating navigation. */
.seabed { bottom: calc(72px + env(safe-area-inset-bottom)); }
.horizon::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 1px; background: currentColor; opacity: .08; }
@media (prefers-reduced-motion: reduce) {
 .scene { transform: none !important; }
 .gull, .octopus { opacity: .35 !important; }
 .catch, .dhow, .school { opacity: 0 !important; }
}
html:not(.js) .t-skel-skeleton, html:not(.app) .acc-title { display: none; }
.kicker, .dish h4, .event h3, .price-note { text-wrap: balance; }
.site { max-width: 100%; font-size: .7rem; letter-spacing: .12em; }
.dish-line { flex-wrap: wrap; }
/* UI paint changes are immediate; only transform/opacity transition. */
.t-tab, .index a, .social-row, .btn, .t-acc-head, .td-opt, .td-ic { transition-property: transform,opacity; }
.td-dots i { transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.t-skel.is-revealed .t-skel-skeleton > * { animation: none; }
body:has(.td:not([hidden])) .dock { visibility: hidden; }
.td-line { filter: none; transition-property: opacity,transform; }
.td-btn, .tide-btn { transition-property: transform,opacity; }
.td-wait { animation-duration: 6s; }
html.motion .engraving { transition-duration: var(--calm-dur); }
/* Dion 16 Oct: no plates behind the text. The page stays one fluid sea; the drawings go faint instead. */
.dish, .course-head, .part-head, .wrapped, .side-group, .story, .gloss, .ask, .review-line, .part-note, .foot { background: none; }
:root { --scene-max: .16; }
@media (min-width: 900px) { :root { --scene-max: .4; } }
@keyframes glide { 0% { opacity: 0; transform: translateX(0); } 15%, 85% { opacity: var(--scene-max); } 100% { opacity: 0; transform: translateX(calc(100vw - 70px)); } }
@keyframes swim { 0% { opacity: 0; transform: translateX(calc(100vw - 94px)); } 15%, 85% { opacity: var(--scene-max); } 100% { opacity: 0; transform: translateX(4px); } }
@keyframes boat-scene { 0%, 100% { opacity: 0; } 12%, 88% { opacity: calc(var(--scene-max) + .08); } }
