/* /v2 base: reset, type, shell (header/footer/booking bar), shared components, reveal engine. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video, iframe, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
em, i { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color var(--d-quick) var(--ease), text-decoration-color var(--d-quick) var(--ease); }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-panel :focus-visible, .panel :focus-visible { outline-color: var(--on-panel); }
::selection { background: var(--ink); color: var(--paper); }
.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: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r-control); text-decoration: none; }
.skip:focus { top: 12px; }

/* Layout primitives */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.section { padding-block: var(--s-section); }

/* Type roles */
.t-display, .t-h1, .t-h2 { font-stretch: var(--stretch-display); letter-spacing: -0.03em; line-height: .98; font-weight: 400; }
.t-display { font-size: var(--t-display); }
.t-h1 { font-size: var(--t-h1); }
.t-h2 { font-size: var(--t-h2); line-height: 1.02; }
.t-h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.012em; line-height: 1.2; }
.t-lead { font-size: var(--t-lead); line-height: 1.42; color: var(--ink-2); }
.t-small { font-size: var(--t-small); }
.readout { font-family: var(--mono); font-size: var(--t-mono); line-height: 1.5; letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.readout .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.readout .dot.signal { background: var(--signal); }
.index { font-family: var(--mono); font-size: var(--t-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-control);
  background: var(--ink); color: var(--paper); font-size: var(--t-body); font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: background-color var(--d-quick) var(--ease), color var(--d-quick) var(--ease), transform var(--d-quick) var(--ease);
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.on-panel, .panel .btn { background: var(--on-panel); color: var(--ink); }
.btn.on-panel:hover, .panel .btn:hover { background: #FFFFFF; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: var(--t-small); }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.btn svg, .link svg { width: 16px; height: 16px; flex: none; }

/* Panels and cards */
.panel { background: var(--panel); color: var(--on-panel); border-radius: var(--r-card); }
.panel .readout, .panel .index { color: var(--on-panel-2); }
.panel.gridded { background: var(--grid-on-panel), var(--panel); }

/* Header */
.v2-header { position: sticky; top: 0; z-index: 50; isolation: isolate; border-bottom: 1px solid var(--hair); }
/* blur lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.v2-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v2-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 24px; height: 24px; color: var(--ink); flex: none; }
.v2-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); font-size: var(--t-small); }
.v2-nav a { text-decoration: none; padding: 10px 0; white-space: nowrap; }
.v2-nav a:not(.btn):hover, .v2-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.v2-nav .tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-nav .tel svg { width: 16px; height: 16px; color: var(--ink-2); }
.v2-nav .btn { min-height: 44px; padding: 0 18px; font-size: var(--t-small); }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair-strong); border-radius: var(--r-control); background: transparent; font-size: var(--t-small); font-weight: 500; }
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .v2-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--margin) calc(32px + env(safe-area-inset-bottom)); background: var(--paper); font-size: var(--t-lead); }
  html.menu-open { overflow: hidden; }
  .v2-nav.open { display: flex; }
  .v2-nav a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .v2-nav .btn { margin-top: 16px; min-height: 52px; border-bottom: 0; }
}

/* Footer */
.v2-footer { border-top: 1px solid var(--hair); padding-block: 56px 40px; margin-top: var(--s-section); font-size: var(--t-small); color: var(--ink-2); }
.v2-footer .grid { align-items: start; row-gap: 32px; }
.v2-footer .f-brand { grid-column: 1 / span 4; }
.v2-footer .f-brand .wordmark { font-size: 1.125rem; color: var(--ink); }
.v2-footer .f-brand p { margin-top: 12px; max-width: 32ch; }
.v2-footer nav { grid-column: 6 / span 4; display: grid; gap: 4px; }
.v2-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); width: fit-content; }
.v2-footer nav a:hover { text-decoration: underline; }
.v2-footer .f-end { grid-column: 10 / span 3; }
@media (max-width: 900px) { .v2-footer .f-brand, .v2-footer nav, .v2-footer .f-end { grid-column: 1 / -1; } .v2-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }

/* Mobile booking bar */
.v2-booking { display: none; }
@media (max-width: 760px) {
  html.js .v2-booking:not(.is-on) { transform: translateY(110%); visibility: hidden; }
  .v2-booking { transition: transform var(--d-settle) var(--ease), visibility 0s linear 0s; }
  .v2-booking { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--hair); }
  .v2-booking a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 16px; border-radius: var(--r-control); font-size: var(--t-small); font-weight: 500; text-decoration: none; border: 1px solid var(--hair-strong); }
  .v2-booking a:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .v2-booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .v2-booking a { padding-inline: 10px; font-size: .875rem; white-space: nowrap; }
}

/* Reveal engine: base markup is the end state; JS adds .rv-pre only when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .rv-pre { opacity: 0; transform: translateY(26px); }
  .rv-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
  .ln > span { display: block; }
  .ln-pre > span { transform: translateY(115%); }
  .ln-in > span { transform: none; transition: transform var(--d-line) var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .skip, .v2-header, .v2-booking, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .panel { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  a[href^="tel:"]::after { content: ''; }
}
@media (forced-colors: active) { .btn, .panel { border: 1px solid CanvasText; } }

/* Section index: one form site-wide. "01" alone, or "01 / Label" when the page has its own label.
   Sits directly above its heading, aligned to the heading's left edge. */
.sec-index { display: block; margin: 0 0 16px; font-family: var(--mono); font-size: var(--t-mono); line-height: 1.5; color: var(--ink-3); letter-spacing: 0; font-variant-numeric: tabular-nums; background: none; padding: 0; border: 0; border-radius: 0; }
.panel .sec-index, .on-panel .sec-index { color: var(--on-panel-2); }
.sec-index .sep { margin: 0 .5em; }
figcaption a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
@media print { .sec-index { break-after: avoid; } }

/* Card interaction standard (site-wide). Add .lift to any clickable card (an <a> or a card containing one primary link).
   Hover/focus: rises 4px, any .gfx illustration inside re-draws its [data-draw] strokes once (rest state is always fully drawn), any .go arrow nudges.
   Fine pointers only; nothing moves under reduced motion; transform/opacity/colour only. */
.lift { position: relative; transition: transform var(--d-settle) var(--ease), box-shadow var(--d-settle) var(--ease), background-color var(--d-quick) var(--ease), border-color var(--d-quick) var(--ease); }
.lift .go { display: inline-block; transition: transform var(--d-settle) var(--ease); }
.lift .gfx { transition: transform var(--d-arrive) var(--ease), opacity var(--d-settle) var(--ease); }
.lift .gfx [data-draw] { stroke-dasharray: var(--len, 400); stroke-dashoffset: 0; }
@keyframes gfx-redraw { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lift:hover, .lift:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(19, 40, 65, .45); }
  .lift:hover .go, .lift:focus-within .go { transform: translateX(4px); }
  .lift:hover .gfx, .lift:focus-within .gfx { transform: scale(1.03); }
  .lift:hover .gfx [data-draw], .lift:focus-within .gfx [data-draw] { animation: gfx-redraw 1s var(--ease) both; }
}
.lift:active { transform: translateY(-1px) scale(.995); }

/* Shared illustration frame */
.gfx { display: block; width: 100%; height: auto; color: var(--ink); }
.panel .gfx, .on-panel .gfx { color: var(--on-panel); }
.gfx .acc { color: var(--signal); }
.panel .gfx .acc { color: var(--signal-on-panel); }

/* Anchors land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Inline text links keep their size but get a 44px tall touch area */
main p a, main li a, main small a, main dd a, main figcaption a { position: relative; }
main p a::before, main li a::before, main small a::before, main dd a::before, main figcaption a::before { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
