/* Stillwick wave 6: blocks below the lake scene. One style: night blue, amber, Zilla Slab + Public Sans,
   real objects (a paper receipt, a card on a table, a road chart) instead of panels. */

/* ---------- book direct: photo | headline + calendar | receipt, one screen at 1440x900 ---------- */
.book-sec { padding-top: clamp(64px, 7.2vw, 104px); padding-bottom: clamp(64px, 7.2vw, 104px); }
.book-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.25fr) minmax(320px, .8fr); gap: clamp(24px, 2.6vw, 44px); align-items: stretch; }
.book-ph { position: relative; overflow: hidden; margin: 0; min-height: 100%; }
.book-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
.book-ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; font-size: 14px; line-height: 1.4; color: #e6e3da; background: linear-gradient(180deg, rgba(9, 17, 25, 0), rgba(9, 17, 25, .88)); }
.book-intro .h2 { font-size: clamp(38px, 3.9vw, 60px); max-width: 15ch; }
.book-intro .lede { margin-top: 14px; font-size: clamp(16px, 1.2vw, 18px); }
.book-cal { margin-top: 26px; }
.book-cal .cab-tabs button { padding-left: 8px; padding-right: 8px; }
.book-cal .cal h4 { font-size: 20px; margin-bottom: 6px; }
.book-cal .cals { gap: 22px; }
.book-cal .cal-g button { min-height: 34px; }
.book-cal .cal-key { margin-top: 10px; }
/* calendar numbers at AA: open nights ink on panel, booked/past nights #8d9aab on the page (6.2:1), still hatched */
.cal-g button:disabled { color: #8d9aab; }
.cal-g button[disabled] { background-image: repeating-linear-gradient(135deg, rgba(147, 164, 182, .16) 0 1px, transparent 1px 6px); }
.cal-g .dw { color: #a3b1c0; }
.cal-g button.mid small { color: #c6cfd8; }

/* the bill: a plain comparison, same night palette as the site; the Direct column is the lit one */
.bill { position: relative; align-self: start; margin-top: 8px; background: #121d2a; color: var(--ink); border: 1px solid rgba(147, 164, 182, .22); border-radius: 2px; padding: 24px 22px 22px; box-shadow: none; transform: none; }
.bill::before, .bill::after { content: none; }
.bill h3 { font: 600 24px/1.1 var(--serif); color: var(--ink); }
.bill-sub, .bill-fine { color: #a9b3bd !important; }
.bill table { color: var(--ink); font-feature-settings: 'tnum' 1; border-collapse: collapse; }
.bill th { white-space: nowrap; color: #a3b1c0; font-weight: 500; border-bottom: 1px solid rgba(147, 164, 182, .22); }
.bill td { border-bottom: 1px solid rgba(147, 164, 182, .12); }
.bill th:nth-child(2), .bill td:nth-child(2) { background: rgba(226, 166, 94, .09); color: #f1ece1; }
.bill th:nth-child(2) { color: var(--red); }
.bill th:nth-child(3), .bill td:nth-child(3) { color: #b7bec4; }
.bill tr.tot td { border-top: 1px solid rgba(230, 227, 218, .5) !important; border-bottom: 0; font: 600 19px var(--serif); padding-top: 14px; }
.bill tr.tot td:nth-child(3) { color: #c9cfd5; }
/* the fee row is the point of the block: the fee printed in the Direct column and struck out in amber */
.bill tr.fee td { color: var(--ink); font-weight: 600; }
.bill tr.fee td:nth-child(3) { color: var(--red); }
.bill tr.fee td.us { white-space: nowrap; }
.bill tr.fee .was { position: relative; display: inline-block; margin-right: 6px; color: #8f98a2; font-weight: 500; }
.bill tr.fee .was .strike { position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--red); background-image: none; border-radius: 1px; transform-origin: left; transform: scaleX(0); }
.bill .save { margin-top: 16px; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(147, 164, 182, .22); color: #b7bec4; transform: none; display: flex; justify-content: space-between; align-items: baseline; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.bill .save b { font: 600 30px var(--serif); color: var(--red); letter-spacing: -.01em; }
.bill .btn { color: #091119; width: 100%; justify-content: center; margin-top: 14px; }
.bill-done { color: #9fd49a !important; }
/* variant for Nick: the block without the photo (class no-ph on #book) */
.book-sec.no-ph .book-ph { display: none; }
.book-sec.no-ph .book-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: clamp(32px, 4vw, 72px); }
.book-sec.no-ph .book-intro .h2 { max-width: 18ch; }
@media (min-width: 821px) and (max-width: 1180px) {
  .book-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
  .book-ph { grid-column: 1 / -1; aspect-ratio: 21 / 8; min-height: 0; }
}

/* ---------- house rules: one wide night frame, the camera walks to the detail of the rule you read ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.rules-ph { position: sticky; top: max(96px, calc(50vh - 17vw)); aspect-ratio: 16 / 9; overflow: hidden; background: #0b1420; contain: paint; }
.rcam { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.rcam img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* depth of field: two sharp layers, each masked by a depth mask of its rule (moves with the camera, no repaint), crossfaded */
.rs { opacity: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: opacity 1s cubic-bezier(.22, .8, .18, 1); }
.rs.on { opacity: 1; }
.rfull { opacity: 0; transition: opacity .9s cubic-bezier(.22, .8, .18, 1); }
.rules-ph.all .rfull { opacity: 1; }
.rfxw canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.rules-list { list-style: none; margin-top: 32px; }
/* the story takes a few scrolls: every rule gets about half a screen */
.rule { min-height: 52vh; align-content: start; }
.rule:last-child { min-height: 70vh; }
.rule { --rn: clamp(24px, 2.1vw, 32px); display: grid; grid-template-columns: calc(var(--rn) * 3.1) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); opacity: .7; transition: opacity .5s; }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule.on { opacity: 1; }
.rn { font: 600 var(--rn)/1.15 var(--serif); color: var(--red); font-feature-settings: 'tnum' 1; white-space: nowrap; }
.rule b { display: block; font: 600 clamp(21px, 1.8vw, 27px)/1.15 var(--serif); color: var(--ink); }
.rule p { margin-top: 8px; color: #b7bec4; max-width: 40ch; }

/* ---------- the last two miles ---------- */
.drive-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.times { width: 100%; margin: 30px 0 22px; border-collapse: collapse; font-feature-settings: 'tnum' 1; }
.times th, .times td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.times td { text-align: right; font: 600 24px var(--serif); color: var(--ink); }
.drive-note { color: #b7bec4; max-width: 44ch; }
.lnk { color: var(--red); }
.drive-map { position: relative; background: #0b141e; border: 1px solid var(--line); aspect-ratio: 600 / 520; }
.drive-map svg { width: 100%; height: 100%; display: block; }
.drive-map .lake-sh { fill: #0f2236; stroke: #3c5878; stroke-width: 1; }
.drive-map .lk { font: 600 12px var(--sans); letter-spacing: .28em; fill: #5d7b9c; }
.drive-map .hwy { fill: none; stroke: #93a4b6; stroke-width: 3; }
.drive-map .cty { fill: none; stroke: #93a4b6; stroke-width: 1.6; }
.drive-map .grv { fill: none; stroke: #e2a65e; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.drive-map .rd { font: 500 12px var(--sans); letter-spacing: .12em; fill: #93a4b6; }
.drive-map .rd.amber { fill: #e2a65e; }
.drive-map .sig { fill: none; stroke: rgba(147, 164, 182, .45); stroke-dasharray: 3 4; }
.drive-map .sigt { font-size: 11px; }
.drive-map .us rect { fill: #e2a65e; }
.drive-map .us text { font: 600 14px var(--serif); fill: #e6e3da; letter-spacing: .04em; }
.drive-map .car { will-change: transform; }
.drive-map .car .glow { fill: rgba(255, 214, 150, .22); }
.drive-map .car .dot { fill: #ffe2b0; }

/* ---------- gift: a real card on a table, printed by letterpress ---------- */
.gift { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.gift-obj { position: relative; perspective: 1200px; }
.gift-tilt { position: relative; background: #e9e1d1; transition: transform .6s cubic-bezier(.22, .8, .18, 1); }
.gift-tilt > img { width: 100%; height: auto; display: block; }
/* the printing sits on the blank card in the photo (card x 27.5-72.5 %, y 19-81 %) and tilts with it as one object.
   Ink: multiply into the paper so its grain shows through, a hair of bleed, uneven coverage from a noise mask,
   and a dark upper lip where the type bit into the cotton. */
.gift-print { position: absolute; left: 24.2%; top: 20.8%; width: 50.9%; height: 54.5%; display: flex; flex-direction: column; justify-content: space-between; padding: 4.5% 4%; pointer-events: none;
  mix-blend-mode: multiply; color: #2a241d;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.3 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.3 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gift-print > span { text-shadow: 0 -.6px 0 rgba(40, 28, 16, .35), 0 0 .7px rgba(42, 36, 29, .55); }
.gp-top { font: 600 clamp(9px, .8vw, 12px) var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #6e5a40; }
.gp-amt { font: 600 clamp(34px, 4.4vw, 72px)/1 var(--serif); color: #2b241b; letter-spacing: -.01em; }
.gp-amt { text-shadow: 0 -1px 0 rgba(30, 20, 10, .4), 0 0 1px rgba(43, 36, 27, .6); }
.gp-for { font: 500 clamp(12px, 1vw, 16px) var(--serif); color: #3b352c; }
.gp-to { font: 400 italic clamp(12px, 1vw, 15px) var(--serif); color: #574e41; }
.gp-no { font: 500 clamp(8px, .65vw, 10px) var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #625441; }
.card, .card-bg { display: none; }
/* the printed card is decoration (aria-hidden); screen readers get its text here */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- the last two miles, wave 6b: the road itself, not a diagram ---------- */
.drive-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.drive-ph { position: relative; margin: 0; }
.dframe { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1420; contain: paint; }
.dcam { position: absolute; inset: 0; transform-origin: 76% 42%; will-change: transform; }
.dcam img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the headlights round the bend: a soft amber bloom over the two lamps in the photo, it grows as the car comes on */
.hl { position: absolute; left: 28%; top: 49.4%; width: 16%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 226, 170, .55), rgba(255, 196, 120, .22) 45%, rgba(255, 180, 100, 0) 100%); mix-blend-mode: screen; opacity: .55; will-change: transform, opacity; }
.drive-ph figcaption { margin-top: 12px; font-size: 14px; color: #b7bec4; }
/* the route inset: a small printed card in the corner */
.inset { position: absolute; left: 12px; bottom: 12px; width: clamp(120px, 11vw, 160px); aspect-ratio: 220 / 214; background: rgba(9, 17, 25, .84); border: 1px solid rgba(147, 164, 182, .3); }
.inset svg { width: 100%; height: 100%; display: block; }
.inset .lake-sh { fill: #0f2236; stroke: #3c5878; stroke-width: 1; }
.inset .hwy { fill: none; stroke: #93a4b6; stroke-width: 3; }
.inset .cty { fill: none; stroke: #93a4b6; stroke-width: 1.6; }
.inset .grv { fill: none; stroke: #e2a65e; stroke-width: 2.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.inset .rd { font: 600 10px var(--sans); letter-spacing: .1em; fill: #a3b1c0; }
.inset .rd.amber { fill: #e2a65e; }
.inset .sig { fill: none; stroke: rgba(147, 164, 182, .55); stroke-dasharray: 3 4; }
.inset .us rect { fill: #e2a65e; }
.inset .us text { font: 600 11px var(--serif); fill: #e6e3da; letter-spacing: .04em; }
.inset .car { will-change: transform; }
.inset .car .glow { fill: rgba(255, 214, 150, .25); }
.inset .car .dot { fill: #ffe2b0; }

@media (max-width: 820px) {
  .drive-ph { margin: 0 calc(var(--pad) * -1); }
  .dframe { aspect-ratio: auto; display: flex; flex-direction: column; background: none; }
  .dcam { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .inset { position: relative; left: auto; right: auto; bottom: auto; width: 150px; margin: 12px var(--pad) 0; }
  .drive-ph figcaption { margin: 10px var(--pad) 0; font-size: 13px; }
  .book-grid, .rules-grid, .drive-grid, .gift { grid-template-columns: 1fr; }
  .book-ph { aspect-ratio: 16 / 10; min-height: 0; }
  .book-cal { margin-top: 22px; }
  .bill { transform: none; margin-top: 18px; }
  /* phone: the frame stays under the header while the rules pass beneath it */
  .rules-ph { top: 60px; z-index: 2; margin: 0 calc(var(--pad) * -1); box-shadow: 0 18px 24px -18px rgba(5, 10, 16, .9); }
  .rules-list { margin-top: 20px; }
  .rule { --rn: 22px; gap: 14px; padding: 22px 0; min-height: 46vh; }
  .gp-top { font-size: 2.05vw; letter-spacing: .13em; white-space: nowrap; }
  .gp-for, .gp-to { font-size: 2.9vw; }
  .gp-no { font-size: 1.9vw; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rfull, .rs { transition: none; }
  .gift-tilt { transition: none; }
  .bough { display: none; }   /* no sweep under reduced motion; the 136 % wide layer would only widen the page */
}
