/* ==========================================================================
   Shared base for the example sites in /work. Each site's site.css sets the
   tokens below (colours, fonts, radius) and adds its own look on top.
   Every part here works at 320px wide and never pushes the page sideways.
   ========================================================================== */
:root {
  --bg: #fff; --bg-2: #f5f5f4; --card: #fff; --ink: #141414; --ink-2: #5c5c5c; --line: rgba(0, 0, 0, .1);
  --accent: #222; --accent-ink: #fff; --accent-2: #888;
  --f-display: system-ui, sans-serif; --f-body: system-ui, sans-serif;
  --dw: 600; --dt: -.02em; --dl: 1.05;
  --radius: 14px; --radius-sm: 10px; --radius-btn: 999px;
  --max: 1200px; --pad: clamp(18px, 4.4vw, 48px);
  --sec: clamp(64px, 9vw, 124px);
  --hd-h: 72px;
  --svh: 1vh;   /* phones: kit.js swaps in a fixed px value, see freezeVh() */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .28);
}

@supports (height: 1svh) { :root { --svh: 1svh; } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-y: none; scroll-padding-top: calc(var(--hd-h) + 16px); }
body { margin: 0; overflow-x: hidden; overflow-x: clip; overscroll-behavior-y: none; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: var(--dw); line-height: var(--dl); letter-spacing: var(--dt); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec-alt { background: var(--bg-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 60px); max-width: 16ch; }
.sec-head p { max-width: 46ch; color: var(--ink-2); }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 52ch; }
.muted { color: var(--ink-2); }
.tiny { font-size: 13px; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 1.5px solid var(--accent); border-radius: var(--radius-btn);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15.5px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, translate .25s var(--ease), box-shadow .25s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: translate .3s var(--ease); }
.btn.ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn.light { background: #fff; color: #111; border-color: #fff; }
.btn.line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn:active { translate: 0 1px; }
@media (hover: hover) {
  .btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
  .btn:hover svg { translate: 3px 0; }
}
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link svg { width: 16px; height: 16px; transition: translate .3s var(--ease); }
@media (hover: hover) { .link:hover svg { translate: 3px 0; } }

/* ---------- Header + phone menu ---------- */
.hd {
  position: sticky; top: 0; z-index: 50; height: var(--hd-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, color .35s;
}
.hd.is-scrolled { border-bottom-color: var(--line); }
/* Phones: no frosted glass on the sticky header. Re-blurring the page under it on every frame of a scroll is
   what makes scrolling stutter on phones; a near-solid bar looks the same. */
@media (pointer: coarse) { .hd { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 97%, transparent); } }
.hd-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.hd-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; }
.hd-nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; opacity: .82; transition: opacity .2s; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { opacity: 1; }
.hd-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.hd-cta { flex: none; }
.burger { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; -webkit-tap-highlight-color: transparent; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: translate .35s var(--ease), rotate .35s var(--ease), opacity .2s; }
/* lines 8px apart: on phone screens (2.625x, 2.75x, 3x...) both land on the same pixel phase, so they draw equally thick */
.burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 26px; }
.nav-open .burger i:nth-child(1) { translate: 0 4px; rotate: 45deg; }
.nav-open .burger i:nth-child(2) { translate: 0 -4px; rotate: -45deg; }

/* Transparent header over a photo hero */
.hd.over:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.hd.over:not(.is-scrolled) .hd-nav a[aria-current="page"]::after { background: #fff; }
.has-over-hd .hero-over { margin-top: calc(var(--hd-h) * -1); }

.sheet {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column;
  padding: calc(var(--hd-h) + 18px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--bg); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.nav-open .sheet { opacity: 1; visibility: visible; transition: opacity .3s; }
html.nav-open { overflow: hidden; }
.sheet-links a[aria-current="page"] { color: var(--accent); }
.nav-open .hd, .nav-open .hd.over:not(.is-scrolled) { background: var(--bg); color: var(--ink); border-bottom-color: var(--line); }  /* also over a dark hero */
.sheet-extra { margin-top: 24px; opacity: 0; transition: opacity .4s .15s; }
.nav-open .sheet-extra { opacity: 1; }
.sheet-links { display: flex; flex-direction: column; }
.sheet-links a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--f-display); font-weight: var(--dw); font-size: clamp(26px, 7.4vw, 36px); letter-spacing: var(--dt); line-height: 1.15;
  translate: 0 14px; opacity: 0; transition: translate .5s var(--ease), opacity .4s;
}
.sheet-links a svg { width: 22px; height: 22px; opacity: .4; }
.nav-open .sheet-links a { translate: 0 0; opacity: 1; }
.nav-open .sheet-links a:nth-child(2) { transition-delay: .04s; } .nav-open .sheet-links a:nth-child(3) { transition-delay: .08s; }
.nav-open .sheet-links a:nth-child(4) { transition-delay: .12s; } .nav-open .sheet-links a:nth-child(5) { transition-delay: .16s; }
.nav-open .sheet-links a:nth-child(6) { transition-delay: .2s; }
.sheet-foot { margin-top: auto; padding-top: 26px; display: grid; gap: 14px; }
.sheet-foot .tiny { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) {
  .hd-nav, .hd-cta { display: none; }
  .burger { display: block; }
}
@media (min-width: 901px) { .sheet { display: none; } }

/* ---------- Footer ---------- */
.ft { padding: clamp(56px, 7vw, 90px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ft-bg, var(--ink)); color: var(--ft-ink, var(--bg)); }
.ft a { text-decoration: none; opacity: .8; }
.ft a:hover { opacity: 1; }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.ft-grid h4 { margin-bottom: 14px; font-family: var(--f-body); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.ft-grid li { margin: 6px 0; }
.ft-brand p { margin-top: 14px; max-width: 32ch; opacity: .72; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(40px, 6vw, 70px); padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 13.5px; opacity: .75; }
.ft-credit b { font-weight: 600; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ft-grid { gap: 28px 18px; } }

/* ---------- Media ---------- */
.ph { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1; } .ratio-43 { aspect-ratio: 4 / 3; } .ratio-34 { aspect-ratio: 3 / 4; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-45 { aspect-ratio: 4 / 5; } .ratio-32 { aspect-ratio: 3 / 2; }
.zoom img { transition: scale 1.2s var(--ease); }
@media (hover: hover) { a:hover > .zoom img, .zoom:hover img { scale: 1.05; } }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .split, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Card rows that swipe sideways on phones (next card peeking in) */
@media (max-width: 760px) {
  .swipe { display: flex !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 10px; scroll-padding-inline: var(--pad); }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
  /* cards in a swipe row fade in without moving: a card still sliding up makes the browser
     swallow the next finger swipe that starts on it */
  .kit .swipe > [data-r] { translate: none; transition: opacity .7s var(--ease) var(--rd, 0s); }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font-size: 16px; /* 16px keeps iPhone from zooming into the field */
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input[aria-invalid="true"], .is-missing { border-color: #d33 !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* Pills: radio/checkbox inputs dressed as chips */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span, .chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--card);
  font-size: 14.5px; font-weight: 500; line-height: 1.2; cursor: pointer; user-select: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pill input:checked + span, .chip.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
a.chip { text-decoration: none; }
@media (max-width: 899px) { .chips { padding-right: 36px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); } }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: transparent; }

/* Option cards (services, rooms, cars): a whole card is the radio */
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.opt b { font-weight: 600; }
.opt small { grid-column: 1; color: var(--ink-2); font-size: 13.5px; }
.opt em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-weight: 600; white-space: nowrap; }
.opt input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Stepper (party size, guests) */
.stepper { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--card); }
.stepper button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg-2); font-size: 20px; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input { width: 3ch; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 17px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Day strip + time slots */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 40px 6px 2px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; display: grid; justify-items: center; gap: 2px; width: 64px; padding: 10px 0;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); scroll-snap-align: start;
  font-size: 12px; line-height: 1.2; transition: border-color .2s, background-color .2s, color .2s;
}
.day b { font-size: 20px; font-weight: 600; font-family: var(--f-display); }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.day:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s; }
.slot[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.slots-empty { grid-column: 1 / -1; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--ink-2); font-size: 14.5px; }

/* Wizard */
.wiz-bar { display: flex; gap: 6px; margin-bottom: 26px; }
.wiz-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.wiz-bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); scale: 0 1; transform-origin: 0 50%; transition: scale .5s var(--ease); }
.wiz-bar i.done::after { scale: 1 1; }
.wiz-step { display: none; }
.wiz-step.on { display: grid; gap: 18px; animation: wiz-in .45s var(--ease); }
@keyframes wiz-in { from { opacity: 0; translate: 16px 0; } }
.wiz-step h3 { font-size: clamp(22px, 2.4vw, 30px); }
.wiz-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 8px; }
.wiz-nav .btn { flex: 1 1 140px; }
.wiz-count { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* Summary + success */
.panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.sum { display: grid; gap: 10px; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.sum > div span { color: var(--ink-2); }
.sum > div b { text-align: right; font-weight: 600; }
.sum .total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; }
.success { display: none; text-align: center; padding: clamp(32px, 5vw, 56px) clamp(18px, 3vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.success.on { display: block; animation: wiz-in .5s var(--ease); }
.success-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.success-mark svg { width: 30px; height: 30px; }
.success-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .6s .2s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.success h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.success p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }
.success .sum { max-width: 420px; margin: 22px auto 0; text-align: left; }
.success .btn { margin-top: 24px; }
.is-sent { display: none !important; }

/* Range calendar (hotel nights, rental days) */
.cal { display: grid; grid-template-columns: repeat(var(--months, 2), minmax(0, 1fr)); gap: 26px; }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-top button { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.cal-top button:disabled { opacity: .3; cursor: default; }
.cal-top button svg { width: 16px; height: 16px; }
.cal-month b { display: block; margin-bottom: 10px; text-align: center; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px 0; }
.cal-grid i { padding: 4px 0; text-align: center; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.cal-grid button { aspect-ratio: 1; min-height: 38px; border: 0; background: transparent; font-size: 14.5px; font-variant-numeric: tabular-nums; position: relative; border-radius: 0; }
.cal-grid button:disabled { opacity: .28; cursor: default; }
.cal-shut { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-2); }
.cal-grid button.taken { text-decoration: line-through; opacity: .35; cursor: not-allowed; }
.cal-grid button.in { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cal-grid button.start, .cal-grid button.end { opacity: 1; text-decoration: none; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cal-grid button.start { border-radius: 50% 0 0 50%; } .cal-grid button.end { border-radius: 0 50% 50% 0; }
.cal-grid button.start.end { border-radius: 50%; }
.cal-grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
@media (max-width: 720px) { .cal { --months: 1 !important; } .cal-month + .cal-month { display: none; } }

/* Tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: transparent; font-weight: 600; font-size: 14.5px; transition: background-color .2s, color .2s, border-color .2s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-panel][hidden], [data-list] > [hidden] { display: none !important; }

/* FAQ: native details/summary */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease), translate .3s; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; translate: -50% 20px; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); }
.toast.on { opacity: 1; translate: -50% 0; }

/* Drawer (order bag) */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .4s; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .35s; }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); translate: 100% 0; transition: translate .45s var(--ease); }
.drawer.on { visibility: visible; transition: none; }
.drawer.on::before { opacity: 1; }
.drawer.on .drawer-in { translate: 0 0; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-hd h3 { font-size: 22px; }
.drawer-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-2); font-size: 22px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; display: grid; align-content: start; gap: 16px; }
.drawer-ft { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bag-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bag-item small { color: var(--ink-2); }
.bag-q { display: inline-flex; align-items: center; gap: 2px; grid-row: 1 / span 2; grid-column: 2; }
.bag-q button { width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); font-size: 17px; line-height: 1; }
.bag-q span { min-width: 2ch; text-align: center; font-weight: 600; }
.bag-empty { padding: 30px 0; text-align: center; color: var(--ink-2); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(8, 8, 10, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; touch-action: pan-y; }
.lb.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb img { max-width: min(92vw, 1400px); max-height: 84svh; max-height: 84vh; width: auto; height: auto; border-radius: 6px; object-fit: contain; }
.lb button { position: absolute; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb button svg { width: 22px; height: 22px; }
.lb-x { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; } .lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-n { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; color: rgba(255, 255, 255, .75); font-size: 14px; font-variant-numeric: tabular-nums; }
[data-gallery] img { cursor: zoom-in; }

/* Compare slider (plan / built) */
.compare { position: relative; overflow: hidden; border-radius: var(--radius); touch-action: pan-y; user-select: none; --pos: 50%; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare .cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.compare .cmp-knob { position: absolute; top: 50%; left: var(--pos); width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); pointer-events: none; }
.compare .cmp-knob svg { width: 24px; height: 24px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.cmp-tag.l { left: 14px; } .cmp-tag.r { right: 14px; }

/* "Open now" dot */
.open-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
.open-now.is-open::before { background: #22b35e; box-shadow: 0 0 0 4px rgba(34, 179, 94, .18); }

/* Map card: an illustrated map, "Get directions" opens the real one */
.map { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--map-bg, #e9ecef); min-height: 280px; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 50%; top: 46%; translate: -50% -100%; display: grid; justify-items: center; gap: 6px; }
.map-pin b { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }
.map-pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent); animation: pin 2.4s ease-in-out infinite; }
@keyframes pin { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 6%, transparent); } }
.map .btn { position: absolute; left: 16px; bottom: 16px; }

/* Info list (hours, contact rows) */
.info { display: grid; gap: 0; }
.info > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.info > div > span:first-child { color: var(--ink-2); }
.info > div.today { font-weight: 600; }
.ic-row { display: flex; align-items: flex-start; gap: 14px; }
.ic-row svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.ic-row a { text-decoration: none; }

/* ---------- Scroll reveals (only once JS has started, so nothing hides without it) ---------- */
.kit [data-r] { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease) var(--rd, 0s), translate 1.1s var(--ease) var(--rd, 0s); }
.kit [data-r].in { opacity: 1; translate: 0 0; }
.kit .hero-in > * { opacity: 0; translate: 0 22px; animation: hero-in 1s var(--ease) forwards; }
.kit .hero-in > *:nth-child(2) { animation-delay: .08s; } .kit .hero-in > *:nth-child(3) { animation-delay: .16s; }
.kit .hero-in > *:nth-child(4) { animation-delay: .24s; } .kit .hero-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes hero-in { to { opacity: 1; translate: 0 0; } }
.kenburns img { animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { scale: 1.12; } to { scale: 1; } }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee > div { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee var(--md, 36s) linear infinite; }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- Credit bar on the stand-alone page (not inside the portfolio previews) ---------- */
.kit-bar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 4px; padding: 5px; max-width: calc(100vw - 24px);
  border-radius: 999px; background: rgba(12, 12, 14, .9); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; translate: -50% 0;
  transition: translate .45s var(--ease), opacity .3s;
}
@media (pointer: coarse) { .kit-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 12, 14, .96); } }
.kit-bar.away { translate: -50% 140%; opacity: 0; }
.kit-bar a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; }
.kit-bar a:first-child { background: rgba(255, 255, 255, .1); }
.kit-bar svg { width: 16px; height: 16px; flex: none; }
.kit-bar em { font-style: normal; opacity: .65; }
@media (max-width: 380px) { .kit-bar em { display: none; } }
.drawer.on ~ .kit-bar, .nav-open .kit-bar { opacity: 0; pointer-events: none; }

/* Inside the portfolio previews: no scrollbars, no bar */
html.is-embed { scrollbar-width: none; }
html.is-embed::-webkit-scrollbar { display: none; }
html.is-auto * { cursor: default !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Dialogs (centred on computers, a bottom sheet on phones) */
dialog.modal { width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); overflow: auto; overscroll-behavior: contain; }
dialog.modal::backdrop { background: rgba(12, 12, 12, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: sheet-in .4s var(--ease); }
@keyframes sheet-in { from { opacity: 0; translate: 0 24px; } }
.modal-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 26px 0; }
.modal-hd h3 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 6px; }
.modal-x { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.modal-x svg { width: 18px; height: 18px; }
.modal-body { padding: 20px 26px 26px; }
.modal-body .success { border: 0; padding: 12px 0 4px; }
@media (max-width: 560px) {
  dialog.modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; max-height: 92svh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-hd { padding: 22px 18px 0; } .modal-body { padding: 16px 18px 22px; }
}
