/* ==========================================================================
   Slack Water
   The page runs through one day on the pier. Section colors are driven by
   --bg / --ink / --accent, which main.js blends as you scroll.
   ========================================================================== */

:root {
  --bg: #0a0f15;
  --ink: #e9e3d8;
  --accent: #e8a85c;

  --ink-2: color-mix(in srgb, var(--ink) 74%, var(--bg));
  --ink-3: color-mix(in srgb, var(--ink) 52%, var(--bg));
  --rule: color-mix(in srgb, var(--ink) 16%, var(--bg));

  --paper: #f4efe5;
  --p-ink: #1d1a15;
  --p-ink-2: #4a443b;
  --p-ink-3: #7b7367;
  --p-rule: #dcd3c4;
  --p-accent: #a33f1b;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --stencil: "Big Shoulders Stencil", "Arial Narrow", Impact, sans-serif;

  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1520px;
  --section: clamp(110px, 13vw, 210px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.sr-only {
  position: absolute !important; 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: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main { overflow-x: clip; }

/* Film grain over everything, very light */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Type ---------- */
.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--serif);
  font-weight: 340;
  letter-spacing: -.028em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.h-xl { font-size: clamp(3rem, 1.6rem + 5.6vw, 7.4rem); line-height: .93; }
.h-lg { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 5.2rem); line-height: .96; }
.h-md { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem); line-height: 1; }
.h-sm { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.015em; }

.prose {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + .34vw, 1.36rem);
  line-height: 1.52;
  color: var(--ink-2);
  max-width: 38ch;
  text-wrap: pretty;
  font-variation-settings: "opsz" 16;
}
.prose + .prose { margin-top: 1em; }
.prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }

.note {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 48ch;
  text-wrap: pretty;
}
.caption {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 14px;
}

/* ---------- Buttons & links ---------- */
.btn {
  --b-bg: var(--ink);
  --b-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid var(--b-bg);
  border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { --b-bg: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--light { --b-bg: #ece6db; --b-fg: #10151b; }
.btn--light:hover { --b-bg: #f2b467; }
.btn--dark { --b-bg: var(--p-ink); --b-fg: #f4efe5; }
.btn--dark:hover { --b-bg: var(--p-accent); }
.btn--ghost { background: transparent; color: var(--p-ink); border-color: #c8bdab; }
.btn--ghost:hover { background: transparent; border-color: var(--p-ink); }

.link {
  font-size: 15px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
  transition: color .3s;
}
.link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  color: var(--ink);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease), padding .5s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule);
  padding-block: 11px;
}
.site-header.is-hidden { transform: translateY(-105%); }
.scene-top .site-header:not(.is-scrolled) { color: #ece6db; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name {
  font-family: var(--serif); font-size: 21px; font-weight: 420; letter-spacing: -.012em;
  font-variation-settings: "opsz" 24;
}
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  position: relative; font-size: 15px; text-decoration: none; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__book { margin-left: 18px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: 6px;
  background: none; border: 0; padding: 0; color: inherit;
  place-items: center;
}
.nav-toggle__lines { display: grid; gap: 6px; width: 22px; }
.nav-toggle__lines span {
  display: block; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg); color: var(--ink);
  padding: 110px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer__nav { display: grid; gap: 4px; }
.drawer__nav a {
  font-family: var(--serif); font-weight: 340; font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1.1; letter-spacing: -.025em; text-decoration: none;
}
.drawer__foot { display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-3); }
.drawer__foot a { color: var(--ink); }

/* ---------- Day clock ---------- */
.dayclock {
  position: fixed; left: calc(var(--gutter) - 8px); bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--rule);
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.dayclock.is-on { opacity: 1; transform: none; }
.dayclock__face { width: 40px; height: 40px; flex: none; }
.dayclock__pin { fill: var(--accent); }
.dayclock__text { display: grid; line-height: 1.2; }
.dayclock__time { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.dayclock__note {
  font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Scenes (hero at 4:52 am, footer at 12:40 am) ---------- */
.scene {
  --horizon: 63%;
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  color: #ece6db;
  background:
    radial-gradient(90% 55% at 78% var(--horizon), rgba(104, 82, 74, .22), transparent 62%),
    linear-gradient(180deg, #04070b 0%, #081018 34%, #152130 var(--horizon), #0a0f15 var(--horizon));
}
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.scene__hills {
  position: absolute; left: 0; bottom: calc(100% - var(--horizon));
  width: 100%; height: clamp(40px, 8.5vh, 110px); z-index: 1;
}
.scene__shed {
  position: absolute; right: calc(var(--gutter) * .5); bottom: calc(100% - var(--horizon));
  width: clamp(300px, 38vw, 640px); height: auto; z-index: 1;
}
.scene__title {
  position: absolute; left: var(--gutter); bottom: calc(100% - var(--horizon)); z-index: 2;
  margin: 0;
  font-family: var(--serif); font-weight: 320;
  font-size: clamp(5rem, 13.4vw, 15.5rem);
  line-height: .86; letter-spacing: -.042em;
  font-variation-settings: "opsz" 72;
  color: #efe9de;
  white-space: nowrap;
  pointer-events: none;
}
.scene__title .char { will-change: transform; }
.scene__base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  padding: 0 var(--gutter) clamp(24px, 4.6vh, 52px);
}
.hero__intro {
  font-family: var(--serif); font-size: clamp(1.05rem, .9rem + .5vw, 1.32rem); line-height: 1.45;
  max-width: 31ch; color: rgba(236, 230, 219, .8);
}
.hero__status { display: grid; justify-items: end; gap: 10px; text-align: right; }
.hero__tide { font-family: var(--mono); font-size: 12.5px; color: rgba(236, 230, 219, .58); min-height: 1.5em; }
.hero__status .btn { margin-top: 8px; }

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; }
.status__dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #7c8793;
}
.status__dot.is-open { background: #86c79a; }
.status__dot.is-open::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #86c79a; opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
.status__dot.is-bar { background: var(--accent); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- 5:10 am · Harbor ---------- */
.harbor { padding: clamp(130px, 17vw, 260px) 0 var(--section); }
.statement {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(1.9rem, 1rem + 3.3vw, 4.4rem);
  line-height: 1.1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 60;
  max-width: 23ch;
  text-indent: 2.4em;
  margin-bottom: clamp(90px, 12vw, 190px);
}
.statement .word, .quote .word { will-change: opacity; text-indent: 0; }
.harbor__figure { margin: 0; }
.harbor__photo { position: relative; height: min(84vh, 48vw); overflow: hidden; }
.harbor__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: contrast(1.12) brightness(1.03) saturate(.75);
  transform-origin: 50% 60%;
}
/* First light in the fog: peach above, steel-blue water below */
.harbor__photo::before, .harbor__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.harbor__photo::before {
  background: linear-gradient(180deg, #f2c29c 0%, #e6c0ad 32%, #8fa3b5 62%, #2f475c 100%);
  mix-blend-mode: color;
  opacity: .42;
}
.harbor__photo::after {
  background:
    linear-gradient(180deg, rgba(255, 236, 214, .1), transparent 38%),
    radial-gradient(125% 115% at 50% 40%, transparent 60%, rgba(6, 12, 18, .4));
}
.harbor__cols {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(70px, 9vw, 140px);
}
.harbor__cols p {
  font-family: var(--serif); font-size: clamp(1.08rem, 1rem + .3vw, 1.3rem); line-height: 1.55;
  color: var(--ink-2); text-wrap: pretty;
}
.harbor__cols p:first-child { grid-column: 2 / span 5; }
.harbor__cols p:last-child { grid-column: 8 / span 4; }

/* ---------- 7:05 am · Bread ---------- */
.bread { padding: var(--section) 0; }
.bread__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.bread__photo { grid-column: 1 / span 6; aspect-ratio: 4 / 5; overflow: hidden; }
.bread__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.03); }
.bread__text { grid-column: 8 / span 5; }
.bread__text .h-lg { margin-bottom: 36px; }
.bread__text .note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- 11:40 am · Dock sheet ---------- */
.dock { padding: var(--section) 0; }
.dock__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  margin-bottom: clamp(70px, 8vw, 120px);
}
.dock__head .h-xl { grid-column: 1 / span 7; }
.dock__intro { grid-column: 8 / span 5; }
.dock__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }

.sheet {
  grid-column: 1 / span 7;
  position: relative;
  color: var(--p-ink);
  background-color: #f7f3ea;
  background-image:
    linear-gradient(90deg, transparent 50px, rgba(196, 74, 58, .42) 50px, rgba(196, 74, 58, .42) 51px, transparent 51px),
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .6), transparent 60%),
    linear-gradient(180deg, rgba(120, 100, 60, .04), rgba(120, 100, 60, .1));
  padding: 46px clamp(18px, 3vw, 40px) 30px 68px;
  box-shadow:
    0 1px 1px rgba(40, 30, 15, .08),
    0 22px 40px -22px rgba(40, 30, 15, .45),
    0 60px 90px -50px rgba(40, 30, 15, .35);
  transform: rotate(-.7deg);
  transform-origin: 30% 0;
}
.sheet__clip { position: absolute; top: -24px; left: 50%; width: 118px; transform: translateX(-50%); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.sheet__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 2px solid var(--p-ink);
}
.sheet__title {
  font-family: var(--stencil); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.4rem);
  line-height: 1; letter-spacing: .02em; text-transform: uppercase;
}
.sheet__sub { font-family: var(--mono); font-size: 11px; color: var(--p-ink-3); margin-top: 6px; }
.sheet__date { font-family: var(--mono); font-size: 13px; text-align: right; }
.sheet__notice { font-family: var(--mono); font-size: 12px; color: var(--p-accent); margin: 10px 0 4px; line-height: 1.5; }
.sheet__scroll { overflow-x: auto; }
.sheet__table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
}
.sheet__table th {
  text-align: left; font-weight: 500; font-size: 11px; color: var(--p-ink-3);
  padding: 10px 14px 6px 0; letter-spacing: .04em;
}
.sheet__table td {
  vertical-align: top; padding: 0 14px 0 0;
  line-height: 28px;
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(86, 128, 170, .28) 27px 28px);
}
.sheet__table td small { display: block; font-size: 11px; color: var(--p-ink-3); line-height: 28px; }
.sheet__table .num { text-align: right; padding-right: 0; white-space: nowrap; }
.sheet__table td:first-child { color: var(--p-ink-2); white-space: nowrap; }
.sheet__table tr.is-out td:nth-child(3), .sheet__table tr.is-out td:nth-child(4) { text-decoration: line-through; text-decoration-color: rgba(163, 63, 27, .7); color: var(--p-ink-3); }
.sheet__table tr.is-out .why { display: block; text-decoration: none; color: var(--p-accent); font-size: 11.5px; }
.sheet__table tr.is-due td { color: var(--p-ink-3); }
.sheet__table tr.is-due .num { font-style: italic; }
.sheet__foot {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  font-family: var(--mono); font-size: 12px; color: var(--p-ink-3);
}
.sheet__sig { width: 108px; height: 36px; }
.sheet__stamp {
  margin-left: auto;
  display: inline-grid; justify-items: center; gap: 2px;
  padding: 7px 14px 6px;
  border: 2.5px solid #b43a24; border-radius: 5px;
  color: #b43a24;
  font-family: var(--stencil); font-weight: 800; font-size: 22px; line-height: 1;
  text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  opacity: .88;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.4 1.9'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.4 1.9'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.sheet__stamp b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; }

.tide { grid-column: 9 / span 4; padding-top: 6px; }
.tide__title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -.015em; }
.tide__date { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.tide__chart { width: 100%; height: auto; margin: 22px 0 18px; overflow: visible; }
.tide__chart .t-grid { stroke: var(--rule); stroke-width: 1; }
.tide__chart .t-axis { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.tide__chart .t-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.tide__chart .t-curve { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.tide__chart .t-ext { fill: var(--bg); stroke: var(--ink); stroke-width: 1.4; }
.tide__chart .t-lbl { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.tide__chart .t-now { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 3; }
.tide__chart .t-nowdot { fill: var(--accent); }
.tide__chart .t-nowlbl { font-family: var(--mono); font-size: 11px; fill: var(--accent); }
.tide__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.tide__list div { padding: 10px 0; border-top: 1px solid var(--rule); }
.tide__list dt { font-size: 13px; color: var(--ink-3); }
.tide__list dd { font-family: var(--mono); font-size: 14px; }
.tide__next { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; margin-top: 22px; }
.tide__next b { font-weight: 500; color: var(--accent); }
.tide__fine { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

.dock__photos {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(90px, 11vw, 170px);
}
.dock__photos figure { margin: 0; overflow: hidden; }
[data-img-reveal] { overflow: hidden; }
.dock__photos figure:nth-child(1) { grid-column: 1 / span 4; }
.dock__photos figure:nth-child(2) { grid-column: 5 / span 4; margin-top: 110px; }
.dock__photos figure:nth-child(3) { grid-column: 9 / span 4; margin-top: 40px; }
.dock__photos img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; filter: saturate(.85) contrast(1.03); }

/* ---------- 2:00 pm · Net shed ---------- */
.shed { padding-top: var(--section); padding-bottom: clamp(60px, 6vw, 100px); }
.sign {
  font-family: var(--stencil); font-weight: 800;
  font-size: clamp(2.4rem, 8.6vw, 9.6rem);
  line-height: .86; text-transform: uppercase; letter-spacing: .01em;
  color: color-mix(in srgb, var(--accent) 78%, var(--bg));
  white-space: nowrap;
  margin-bottom: clamp(40px, 5vw, 80px);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.9 1.75'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.9 1.75'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.shed__introrow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.shed__introrow .h-xl { grid-column: 1 / span 6; }
.shed__introrow .prose { grid-column: 8 / span 5; }

.shed__pin {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 0 56px;
  overflow: hidden;
}
.shed__track {
  display: flex; align-items: flex-start;
  gap: clamp(56px, 6vw, 120px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.era { width: clamp(240px, min(24vw, 38vh), 400px); flex: none; }
.era:nth-child(even) { margin-top: clamp(40px, 7vh, 90px); }
.era--now { width: clamp(320px, min(38vw, 60vh), 660px); }
.era__year {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.8rem, min(8vw, 13vh), 8.8rem);
  line-height: .8; letter-spacing: -.045em;
  font-variation-settings: "opsz" 72;
  margin: 0 0 -.1em -.05em;
  position: relative; z-index: 1;
}
.era__photo { aspect-ratio: 4 / 5; overflow: hidden; margin: 0; }
.era--now .era__photo { aspect-ratio: 4 / 3; }
.era__photo img { width: 100%; height: 100%; object-fit: cover; }
.era__photo--old img { filter: grayscale(1) sepia(.38) contrast(1.1) brightness(.94); }
.era__photo--fade img { filter: grayscale(.55) sepia(.18) contrast(1.02); }
.era__text {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; color: var(--ink-2);
  margin-top: 20px; max-width: 34ch; text-wrap: pretty;
}
.shed__ruler {
  position: relative; order: -1;
  display: flex; justify-content: space-between;
  margin: 0 var(--gutter) clamp(28px, 5vh, 56px);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.shed__progress {
  position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--ink); transform-origin: left; transform: scaleX(0);
}

/* ---------- 3:30 pm · Crew ---------- */
.crew { padding: var(--section) 0; }
.crew__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  margin-bottom: clamp(60px, 7vw, 110px);
}
.crew__head .h-xl { grid-column: 1 / span 7; }
.crew__head .prose { grid-column: 8 / span 5; }
.crew__wide { aspect-ratio: 2 / 1; overflow: hidden; }
.crew__wide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.quote { margin: clamp(100px, 12vw, 190px) auto; text-align: center; }
.quote p {
  font-family: var(--serif); font-weight: 320;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.6rem);
  line-height: 1.08; letter-spacing: -.022em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
  max-width: 19ch; margin-inline: auto;
}
.quote footer { margin-top: 30px; font-size: 14.5px; color: var(--ink-3); }

.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.person:nth-child(even) { margin-top: 72px; }
.person__photo { aspect-ratio: 7 / 9; overflow: hidden; margin-bottom: 20px; }
.person__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.04);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.person:hover .person__photo img { transform: scale(1.04); filter: saturate(1) contrast(1.04); }
.person__name { font-family: var(--serif); font-weight: 420; font-size: 1.55rem; letter-spacing: -.012em; line-height: 1.1; }
.person__role { font-size: 14px; color: var(--ink-3); margin: 5px 0 14px; }
.person__bio { font-family: var(--serif); font-size: 1.04rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.crew__note { margin-top: 80px; }

/* ---------- 5:00 pm · Menu ---------- */
.menu { padding: var(--section) 0; position: relative; }
.menu__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.menu__meta {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45;
  color: var(--ink-2); max-width: 34ch;
}
.tabs {
  position: relative;
  display: flex; gap: clamp(22px, 3vw, 40px);
  box-shadow: inset 0 -1px 0 var(--rule);
  margin-bottom: 60px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; background: none; border: 0;
  padding: 0 0 18px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  color: var(--ink-3); white-space: nowrap;
  transition: color .3s;
}
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tabs__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 10px;
  background: var(--ink);
  transform-origin: left;
  transition: transform .6s var(--ease), width .6s var(--ease);
}
.panel:focus-visible { outline-offset: 12px; }
.menu__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px clamp(48px, 7vw, 130px);
}
.course__title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-weight: 400; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1;
}
.course__title--gap { margin-top: 60px; }
.course__unit { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.course__note { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--ink-3); margin-top: 4px; }
.dishes { list-style: none; margin: 18px 0 0; padding: 0; }
.dish {
  position: relative;
  padding: 15px 0 16px;
  border-top: 1px solid var(--rule);
  transition: padding .5s var(--ease);
}
.dish__row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.dish__name {
  font-family: var(--serif); font-weight: 440; font-size: 1.24rem; line-height: 1.25; letter-spacing: -.005em;
  font-variation-settings: "opsz" 20;
}
.dish__name em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.dish__price { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; max-width: 48ch; }
.dish[data-photo] { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .dish[data-photo] .dish__name { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--ease); }
  .dish[data-photo]:hover .dish__name { background-size: 100% 1px; }
}
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px; line-height: 1;
  padding: 3px 5px 2px; margin-left: 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 3px;
  color: var(--ink-3); vertical-align: 1px;
}
.nw { white-space: nowrap; }
.menu__fine .tag { margin: 0 4px 0 0; }
.menu__fine .tag ~ .tag { margin-left: 10px; }
.menu__aside {
  font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.45; color: var(--ink-2);
  margin-top: 30px; padding-left: 16px; border-left: 2px solid var(--accent);
}
.course--quiet { align-self: end; }
.menu__fine {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px;
  margin-top: 90px; padding-top: 26px; border-top: 1px solid var(--rule);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-3);
}

.counter { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 130px); align-items: start; }
.counter__side { display: grid; gap: 16px; justify-items: start; }
.counter__side > p:not(.counter__price):not(.note) { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.counter__price {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -.04em;
}
.counter__price span { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--ink-3); margin-left: 10px; }
.counter__side .btn { margin-top: 10px; }
.counter__list { list-style: none; margin: 0; padding: 0; }
.counter__list li {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--rule);
  font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); line-height: 1.3; letter-spacing: -.01em;
}
.counter__list li:last-child { border-bottom: 1px solid var(--rule); }
.counter__n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

.peek {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(180px, 16vw, 260px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden;
  opacity: 0; visibility: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 60px -25px rgba(30, 20, 10, .55);
  transition: opacity .35s var(--ease), visibility .35s;
  will-change: transform;
}
.peek.is-on { opacity: 1; visibility: visible; }
.peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .8s var(--ease); }
.peek.is-on img { transform: scale(1); }

/* ---------- 7:30 pm · Dining room ---------- */
.room { padding: var(--section) 0; }
.room__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  align-items: start;
}
.room__grid figure { margin: 0; overflow: hidden; }
.room__grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.room__text { grid-column: 1 / span 5; grid-row: 1; padding-top: 8px; }
.room__text .h-xl { margin-bottom: 36px; }
.room__a { grid-column: 7 / span 6; grid-row: 1; aspect-ratio: 7 / 5; }
.room__b { grid-column: 1 / span 3; grid-row: 2; aspect-ratio: 4 / 5; margin-top: 90px !important; }
.room__c { grid-column: 5 / span 4; grid-row: 2; aspect-ratio: 8 / 11; margin-top: 30px !important; }
.room__d { grid-column: 10 / span 3; grid-row: 2; aspect-ratio: 7 / 9; margin-top: 160px !important; }

.facts { display: grid; gap: 0; margin-top: 44px; }
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.facts dd { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; color: var(--ink-2); }

.press {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  margin-top: clamp(110px, 12vw, 190px); padding-top: 44px;
  border-top: 1px solid var(--rule);
}
.press__item blockquote {
  font-family: var(--serif); font-weight: 350; font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem);
  line-height: 1.3; letter-spacing: -.012em; text-wrap: pretty;
  text-indent: -.42em;
}
.press__item figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ---------- 8:15 pm · Reservations ---------- */
.reserve { padding: calc(var(--section) * .7) 0 var(--section); }
.reserve__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.reserve__text { grid-column: 1 / span 4; position: sticky; top: 120px; }
.reserve__text .h-xl { margin-bottom: 36px; }
.policies { list-style: none; padding: 0; margin: 40px 0 32px; display: grid; gap: 14px; }
.policies li {
  position: relative; padding-left: 24px;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: var(--ink-2);
}
.policies li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--accent); }
.reserve__call { font-size: 14.5px; color: var(--ink-3); }
.reserve__call a { color: var(--ink); text-underline-offset: .25em; }
.book-wrap { grid-column: 6 / span 7; position: relative; }

.book {
  position: relative;
  background: var(--paper);
  background-image: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.55), transparent 55%);
  color: var(--p-ink);
  padding: clamp(24px, 3.2vw, 46px);
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25), 0 40px 80px -40px rgba(0,0,0,.8);
}
.book a { color: var(--p-ink); }
.book ::selection { background: var(--p-ink); color: var(--paper); }
.book :focus-visible { outline-color: var(--p-accent); }
.book__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(28px, 3.4vw, 48px); }
.field { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.field__label {
  float: left; width: 100%;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em;
  padding: 0 0 12px; margin: 0;
}
.field__label + * { clear: both; }
.field__hint { font-size: 13px; line-height: 1.5; color: var(--p-ink-3); margin-top: 10px; }

.party { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.party label, .seg label { position: relative; display: block; }
.party input, .seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.party span {
  display: grid; place-items: center; height: 42px;
  border: 1px solid var(--p-rule); border-radius: 2px;
  font-family: var(--mono); font-size: 13.5px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.party label:hover span { border-color: var(--p-ink-3); }
.party input:checked + span { background: var(--p-ink); color: var(--paper); border-color: var(--p-ink); }
.party input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.cal__nav {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: none; border: 1px solid var(--p-rule); border-radius: 50%; color: var(--p-ink);
  transition: border-color .25s, opacity .25s;
}
.cal__nav svg { width: 14px; height: 14px; }
.cal__nav:hover:not(:disabled) { border-color: var(--p-ink); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__dow {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  font-family: var(--mono); font-size: 10.5px; color: var(--p-ink-3); text-align: center;
  margin-bottom: 4px;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal__day {
  position: relative;
  aspect-ratio: 1 / .92;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 2px;
  font-family: var(--mono); font-size: 13px; color: var(--p-ink);
  transition: background-color .2s, color .2s;
}
.cal__day:hover:not(:disabled):not([aria-pressed="true"]) { background: #e7dfd0; }
.cal__day[aria-pressed="true"] { background: var(--p-ink); color: var(--paper); }
.cal__day:disabled { color: #bdb3a4; cursor: default; }
.cal__day.is-closed::before {
  content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 1px; background: #c9bfae;
}
.cal__day.is-closed { color: transparent; }
.cal__day.is-few::after, .cal__key--few {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--p-accent);
}
.cal__day.is-few::after { position: absolute; left: 50%; bottom: 13%; margin-left: -2px; }
.cal__day[aria-pressed="true"].is-few::after { background: #f2b467; }
.cal__day.is-full:not(:disabled) { color: #b0a696; text-decoration: line-through; }
.cal__day.is-today { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cal__pad { aspect-ratio: 1 / .92; }
.cal__legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  font-size: 12px; color: var(--p-ink-3); margin-top: 12px;
}
.cal__key { display: inline-block; }
.cal__key--closed { width: 12px; height: 1px; background: #b0a696; margin-left: 12px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--p-rule); border-radius: 3px; }
.seg span {
  display: grid; place-items: center; height: 38px;
  font-size: 14px; border-radius: 2px;
  transition: background-color .25s, color .25s;
}
.seg label:hover span { background: #ebe4d7; }
.seg input:checked + span { background: var(--p-ink); color: var(--paper); }

.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-height: 90px; align-content: start; }
.slot {
  height: 40px;
  background: transparent; border: 1px solid var(--p-rule); border-radius: 2px;
  font-family: var(--mono); font-size: 13px; color: var(--p-ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.slot:hover:not(:disabled) { border-color: var(--p-ink); }
.slot[aria-pressed="true"] { background: var(--p-ink); color: var(--paper); border-color: var(--p-ink); }
.slot:disabled {
  color: #b9af9f; text-decoration: line-through; cursor: not-allowed;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(60, 40, 20, .04) 5px 6px);
}
.slots__empty { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--p-ink-3); padding: 10px 0; }

.inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.input { display: grid; gap: 2px; }
.input--wide { grid-column: 1 / -1; }
.input > span { font-size: 12.5px; color: var(--p-ink-3); }
.input input, .input select, .input textarea {
  width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid #c8bdab; border-radius: 0;
  padding: 7px 0 8px;
  font-family: var(--sans); font-size: 15.5px; color: var(--p-ink);
  outline: none;
  transition: border-color .25s;
}
.input textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
.input input::placeholder, .input textarea::placeholder { color: #aaa093; }
.input select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237b7367' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center;
}
.input input:focus, .input select:focus, .input textarea:focus { border-bottom-color: var(--p-ink); }
.input.is-invalid input { border-bottom-color: #b3261e; }
.input.is-invalid > span { color: #b3261e; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--p-ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--p-ink); margin: 0; }
.field--details { margin: 6px 0 8px; padding-top: 26px; border-top: 1px dashed #c8bdab; }
.field--details .inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(16px, 3vw, 48px); }

.book__foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px;
  margin-top: 18px; padding-top: 22px;
  border-top: 1px solid var(--p-rule);
}
.book__summary { font-family: var(--serif); font-size: 1.14rem; line-height: 1.35; flex: 1 1 260px; }
.book__error { order: 3; flex-basis: 100%; font-size: 13.5px; color: #b3261e; }
.book__error:empty { display: none; }
[data-book-submit] { min-width: 210px; position: relative; }
[data-book-submit].is-loading span { opacity: 0; }
[data-book-submit].is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: 50%; top: 50%; margin: -9px 0 0 -9px;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation, printed like a receipt */
.ticket { max-width: 460px; margin: 0 auto; outline: none; }
.ticket__slot {
  position: relative; z-index: 2;
  height: 16px; margin: 0 -18px;
  background: #0b0908; border-radius: 10px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06);
}
.ticket__feed { overflow: hidden; margin-top: -8px; padding: 0 0 40px; }
.ticket__paper {
  --z: 9px;
  position: relative;
  background: #f7f3eb;
  background-image: linear-gradient(180deg, rgba(0,0,0,.08), transparent 26px);
  color: var(--p-ink);
  padding: 40px 34px calc(30px + var(--z));
  font-family: var(--mono); font-size: 13.5px; line-height: 1.5;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.35));
}
.ticket__brand { font-family: var(--serif); font-size: 2.1rem; font-weight: 380; letter-spacing: -.02em; text-align: center; line-height: 1; }
.ticket__addr { text-align: center; font-size: 11.5px; color: var(--p-ink-3); margin-top: 8px; }
.ticket hr { border: 0; border-top: 1px dashed #b9ae9c; margin: 22px 0; }
.ticket__big { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 16px; }
.ticket__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.ticket__rows dt { color: var(--p-ink-3); }
.ticket__rows dd { text-align: right; }
.ticket__note { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--p-ink-2); }
.ticket__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ticket__barcode { height: 46px; margin-top: 26px; }

/* ---------- 9:00 pm · Loft ---------- */
.loft { padding: var(--section) 0; }
.loft__media { position: relative; max-width: var(--max); margin: 0 auto clamp(110px, 12vw, 180px); padding-inline: var(--gutter); }
.loft__main { width: 80%; aspect-ratio: 3 / 2; max-height: 84vh; overflow: hidden; margin: 0; }
.loft__main img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.loft__inset {
  position: absolute; right: var(--gutter); bottom: -90px;
  width: clamp(150px, 22vw, 340px); aspect-ratio: 3 / 4; overflow: hidden; margin: 0;
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.7);
}
.loft__inset img { width: 100%; height: 100%; object-fit: cover; }
.loft__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.loft__text { grid-column: 1 / span 6; }
.loft__text .h-xl { margin-bottom: 36px; }
.loft__side { grid-column: 8 / span 5; display: grid; justify-items: start; gap: 30px; align-content: start; padding-top: 12px; }
.loft__side .facts { margin-top: 0; width: 100%; }
.loft-form { width: 100%; }
.loft-form .input > span { color: var(--ink-3); }
.loft-form .input input, .loft-form .input textarea { color: var(--ink); border-bottom-color: var(--rule); }
.loft-form .input input:focus, .loft-form .input textarea:focus { border-bottom-color: var(--ink); }
.loft-form .input input::placeholder, .loft-form .input textarea::placeholder { color: var(--ink-3); opacity: .7; }
.loft-form .input input[type="date"] { color-scheme: dark; }
.loft-form .btn { margin-top: 22px; }
.loft-form .book__error { margin-top: 12px; color: #f08c7a; }
.loft__done { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; max-width: 30ch; outline: none; }

/* ---------- 10:45 pm · Bar ---------- */
.bar { padding: var(--section) 0; }
.bar__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.bar__photo { grid-column: 1 / span 5; aspect-ratio: 6 / 7; overflow: hidden; margin: 0; }
.bar__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.06); }
.bar__text { grid-column: 7 / span 5; }
.bar__text .h-xl { margin-bottom: 36px; }
.pours { list-style: none; padding: 0; margin: 40px 0 30px; }
.pours li {
  display: flex; align-items: baseline; gap: 14px; padding: 11px 0;
  font-family: var(--serif); font-size: 1.28rem;
}
.pours i { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 38%, transparent); transform: translateY(-5px); }
.pours li span:last-child { font-family: var(--mono); font-size: 14px; }

/* ---------- 11:55 pm · Visit ---------- */
.visit { padding: var(--section) 0 calc(var(--section) * .8); }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: start; }
.visit__info { grid-column: 1 / span 5; }
.visit__addr { font-style: normal; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.22; letter-spacing: -.015em; }
.visit__dir { margin-top: 26px; }
.hours { margin-top: 56px; }
.hours__title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -.015em; }
.hours__status { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; font-size: 14.5px; color: var(--ink-2); }
.hours__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours__table th, .hours__table td { padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink-3); text-align: left; font-weight: 400; }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 1px solid var(--rule); }
.hours__table td:last-child:not([colspan]) { text-align: right; font-size: 14px; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--ink); }
.hours__table tr.is-today th::after {
  content: "today"; margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--accent);
}
.hours .note { margin-top: 14px; }
.contacts { list-style: none; padding: 0; margin: 56px 0 0; }
.contacts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.contacts li:last-child { border-bottom: 1px solid var(--rule); }
.contacts span { color: var(--ink-3); }
.contacts a { text-decoration: none; transition: color .3s; overflow-wrap: anywhere; text-align: right; }
.contacts a:hover { color: var(--accent); }

.map { grid-column: 7 / span 6; margin: 0; position: sticky; top: 100px; }
.map__svg { width: 100%; height: auto; box-shadow: inset 0 0 0 1px var(--rule); }
.map__dot { fill: color-mix(in srgb, var(--ink) 16%, transparent); }
.map__land { fill: color-mix(in srgb, var(--ink) 5%, var(--bg)); }
.map__shore { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; }
.map__contour { fill: none; stroke: color-mix(in srgb, var(--ink) 20%, transparent); stroke-dasharray: 2 5; }
.map__streets path { fill: none; stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1; }
.map__road { fill: none; stroke: color-mix(in srgb, var(--ink) 42%, transparent); stroke-width: 3; }
.map__hwy { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 5; }
.map__piers rect { fill: color-mix(in srgb, var(--ink) 55%, transparent); }
.map__breakwater { fill: none; stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-width: 6; stroke-dasharray: 3 3; }
.map__lot { fill: none; stroke: color-mix(in srgb, var(--ink) 40%, transparent); }
.map__lotlabel { font-family: var(--mono); font-size: 13px; fill: var(--ink-2); }
.map__route { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.map__pin rect, .map__pin path { fill: var(--accent); }
.map__pulse { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
.map__label { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); }
.map__label--sm { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; fill: var(--ink-3); }
.map__label--place { font-family: var(--serif); font-style: italic; font-size: 19px; fill: var(--ink); }
.map__street { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; fill: var(--ink-3); }
.map__water { font-family: var(--serif); font-style: italic; font-size: 32px; fill: color-mix(in srgb, var(--ink) 34%, transparent); letter-spacing: -.01em; }
.map__soundings text { font-family: var(--serif); font-style: italic; font-size: 11px; fill: color-mix(in srgb, var(--ink) 32%, transparent); }
.map__shield path { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.2; }
.map__shield text { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.map__north path { fill: var(--ink-2); }
.map__north text { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }

.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(110px, 12vw, 190px);
}
.faq .h-md { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / span 7; }
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); letter-spacing: -.01em;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.3px no-repeat, linear-gradient(currentColor, currentColor) center / 1.3px 100% no-repeat;
  transition: transform .5s var(--ease);
}
.qa[open] summary::after { transform: rotate(135deg); }
.qa summary:hover { color: var(--accent); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 0 24px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }

.extras {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px;
  margin-top: clamp(110px, 12vw, 190px); padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.extra .h-sm { margin-bottom: 14px; }
.extra p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 40ch; }
.extra .link { display: inline-block; margin-top: 16px; }
.giftcard {
  position: relative;
  width: min(100%, 300px); aspect-ratio: 1.586;
  margin-bottom: 34px;
  border-radius: 10px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 168, 92, .16), transparent 55%),
    linear-gradient(140deg, #1f2b35, #0f151c 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 26px 40px -24px #000;
  color: #e9b872;
  transform: rotate(-3deg);
  transition: transform .8s var(--ease);
  overflow: hidden;
}
.giftcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 200, .14) 45%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 1.2s var(--ease);
}
.extra:hover .giftcard { transform: rotate(0) translateY(-6px); }
.extra:hover .giftcard::after { transform: translateX(100%); }
.giftcard svg { position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; }
.giftcard__name { position: absolute; left: 20px; bottom: 40px; font-family: var(--serif); font-size: 1.55rem; color: #f0e7d8; letter-spacing: -.015em; }
.giftcard__no { position: absolute; right: 20px; top: 24px; font-family: var(--mono); font-size: 11px; color: rgba(240, 231, 216, .5); }
.giftcard__for { position: absolute; left: 20px; bottom: 18px; font-size: 11.5px; color: rgba(240, 231, 216, .58); }
.letter { display: flex; gap: 10px; margin-top: 20px; align-items: end; }
.letter input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 9px 0; font-size: 15.5px; color: var(--ink); outline: none;
  transition: border-color .3s;
}
.letter input:focus { border-bottom-color: var(--ink); }
.letter input::placeholder { color: var(--ink-3); }
.letter__msg { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-2); min-height: 1.6em; margin-top: 10px; }

/* ---------- 12:40 am · Lights out ---------- */
.scene--end {
  --horizon: 58%; min-height: 660px;
  background:
    radial-gradient(90% 55% at 78% var(--horizon), rgba(104, 82, 74, .16), transparent 62%),
    linear-gradient(180deg, transparent 0%, #070c12 22%, #0c1520 44%, #152130 var(--horizon), #0a0f15 var(--horizon));
}
.scene__title--end { font-size: clamp(4rem, 11vw, 12rem); letter-spacing: -.04em; }
.end__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; gap: 30px;
  padding: 0 var(--gutter) 26px;
}
.end__line { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); color: rgba(236, 230, 219, .86); }
.end__meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  padding-top: 18px; padding-left: clamp(0px, 15vw, 230px); border-top: 1px solid rgba(236, 230, 219, .14);
  font-size: 13px; color: rgba(236, 230, 219, .5);
}
.end__meta a { text-decoration: none; transition: color .3s; }
.end__meta a:hover { color: #ece6db; }
.end__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.end__credit { padding-left: 22px; border-left: 1px solid rgba(236, 230, 219, .18); }

/* ---------- Motion setup (only when JS + GSAP are running) ---------- */
.js.motion [data-reveal] { opacity: 0; }
.js.motion [data-img-reveal] { clip-path: inset(100% 0 0 0); }
.js.motion [data-split] { opacity: 0; }
.js.motion .scene--hero .scene__title,
.js.motion .scene--hero .hero__foot,
.js.motion .site-header { opacity: 0; }
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 26px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .person:nth-child(even) { margin-top: 56px; }
  .reserve__text { grid-column: 1 / -1; position: static; }
  .book-wrap { grid-column: 1 / -1; margin-top: 56px; }
  .reserve__text .prose, .policies { max-width: 62ch; }
}

@media (max-height: 820px) and (min-width: 901px) {
  .scene--hero { --horizon: 58%; }
  .hero__intro { font-size: 1.05rem; }
  .shed__pin { padding: 84px 0 28px; }
  .shed__ruler { margin-bottom: 22px; }
  .era { width: clamp(210px, min(22vw, 30vh), 360px); }
  .era:nth-child(even) { margin-top: 36px; }
  .era--now { width: clamp(300px, min(34vw, 48vh), 560px); }
  .era__year { font-size: clamp(3.4rem, min(7vw, 11vh), 7rem); }
  .era__text { font-size: 1rem; margin-top: 14px; }
}

@media (max-width: 900px) {
  :root { --section: clamp(96px, 16vw, 140px); }
  .nav, .header__book { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .brand__name { font-size: 19px; }

  .dayclock { bottom: 14px; left: 12px; padding: 5px 14px 5px 5px; gap: 9px; }
  .dayclock__face { width: 32px; height: 32px; }
  .dayclock__time { font-size: 12px; }
  .dayclock__note { font-size: 13px; }

  .scene { --horizon: 58%; }
  .scene__shed { width: clamp(260px, 64vw, 460px); right: -4vw; }
  .hero__foot { grid-template-columns: 1fr; gap: 22px; }
  .hero__status { justify-items: start; text-align: left; }

  .harbor__cols, .bread__grid, .dock__head, .dock__grid, .shed__introrow, .crew__head,
  .room__grid, .reserve__grid, .loft__grid, .bar__grid, .visit__grid, .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .harbor__cols p:first-child, .harbor__cols p:last-child,
  .bread__photo, .bread__text, .dock__head .h-xl, .dock__intro, .sheet, .tide,
  .shed__introrow .h-xl, .shed__introrow .prose, .crew__head .h-xl, .crew__head .prose,
  .room__text, .room__a, .reserve__text, .book-wrap, .loft__text, .loft__side,
  .bar__photo, .bar__text, .visit__info, .map, .faq .h-md, .faq__list {
    grid-column: 1 / -1;
  }
  .harbor__cols { gap: 20px; }
  .harbor__photo { height: min(62vh, 120vw); }
  .harbor__photo img { object-position: 58% 40%; }
  .bread__text { margin-top: 40px; }
  .dock__head { gap: 28px; }
  .sheet { padding-left: 58px; transform: rotate(-.5deg); }
  .sheet { background-image:
    linear-gradient(90deg, transparent 42px, rgba(196, 74, 58, .42) 42px, rgba(196, 74, 58, .42) 43px, transparent 43px),
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .6), transparent 60%); }
  .tide { margin-top: 64px; }
  .dock__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dock__photos figure:nth-child(1) { grid-column: 1 / 2; }
  .dock__photos figure:nth-child(2) { grid-column: 2 / 3; margin-top: 60px; }
  .dock__photos figure:nth-child(3) { grid-column: 1 / -1; margin-top: 16px; }
  .dock__photos figure:nth-child(3) img { aspect-ratio: 16 / 10; }

  .shed__introrow { gap: 24px; }
  .shed__pin { min-height: 0; padding: 72px 0 0; }
  .shed__track { flex-direction: column; width: auto; gap: 72px; }
  .era, .era--now { width: 100%; max-width: 520px; }
  .era:nth-child(even) { margin-top: 0; align-self: flex-end; }
  .era__year { font-size: clamp(4rem, 20vw, 7rem); }
  .shed__ruler { display: none; }

  .crew__head { gap: 28px; }
  .crew__wide { aspect-ratio: 4 / 3; }

  .menu__cols, .counter, .menu__fine { grid-template-columns: minmax(0, 1fr); }
  .menu__fine { gap: 14px; }
  .tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

  .room__a { grid-row: auto; margin-top: 48px !important; }
  .room__text { grid-row: auto; }
  .room__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .room__text, .room__a { grid-column: 1 / -1; }
  .room__b { grid-column: 1 / span 6; grid-row: auto; margin-top: 24px !important; }
  .room__c { grid-column: 7 / span 6; grid-row: auto; margin-top: 80px !important; }
  .room__d { display: none; }
  .press { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .book__cols { grid-template-columns: minmax(0, 1fr); }
  .loft__main { width: 100%; }
  .loft__inset { bottom: -60px; }
  .loft__side { margin-top: 40px; }
  .bar__text { margin-top: 44px; }

  .map { position: static; margin-top: 56px; }
  .faq__list { margin-top: 12px; }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 640px) {
  .scene--hero { --horizon: 50%; }
  .scene__title { white-space: normal; font-size: clamp(4.2rem, 24vw, 7.5rem); line-height: .84; }
  .hero__intro { font-size: 1rem; }
  .hero__status { gap: 6px; }
  .sign { white-space: normal; font-size: 15vw; line-height: .9; }
  .sheet__table thead { display: none; }
  .sheet__table tr { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; }
  .sheet__table td:nth-child(1) { grid-row: 1 / span 2; }
  .sheet__table td:nth-child(2) { grid-column: 2 / 4; font-weight: 500; }
  .sheet__table td:nth-child(2) small { display: inline; margin-left: 8px; font-weight: 400; }
  .sheet__table td:nth-child(3) { grid-column: 2; }
  .sheet__table td:nth-child(4) { grid-column: 3; }
  .sheet__table tbody tr + tr td:first-child { border-top: 0; }
  .scene__title .scene__word { display: block; }
  .scene__title--end { font-size: clamp(3.6rem, 19vw, 6rem); }
  .hero__intro { max-width: 30ch; }
  .statement { text-indent: 1.2em; }
  .sheet { padding: 44px 16px 24px 48px; }
  .sheet { background-image:
    linear-gradient(90deg, transparent 34px, rgba(196, 74, 58, .42) 34px, rgba(196, 74, 58, .42) 35px, transparent 35px); }
  .sheet__table { font-size: 12px; }
  .sheet__table td { padding-right: 10px; }
  .party { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inputs, .field--details .inputs { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .person:nth-child(even) { margin-top: 0; }
  .person__photo { aspect-ratio: 4 / 3; }
  .ticket__paper { padding: 34px 22px calc(26px + var(--z)); }
  .end__meta { font-size: 12px; padding-left: 0; }
  .end__credit { flex-basis: 100%; padding-left: 0; border-left: 0; }
  .end__foot { padding-bottom: 76px; }
  .dayclock__note { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
