/* ==========================================================================
   BASE — reset, typography scale, tone utilities, shared primitives
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

/* Deliberately NOT `scroll-behavior: smooth` here. Lenis animates scroll
   position itself, and native smooth scrolling animates it at the same time —
   the two fight and the page drifts or jumps as you scroll. Native smoothing
   is only switched on when Lenis is not running. */
.no-motion { scroll-behavior: smooth; }
/* Anchor targets clear the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 2rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  /* clip, never hidden — hidden on body kills position:sticky */
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

/* Any explicit `display` — .btn is inline-flex, .opt is block — outranks the
   user-agent rule for [hidden], so elements the JS hides stay visible. This
   puts the attribute back in charge. */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

::selection { background: var(--breeze); color: var(--white); }

/* Visible focus everywhere. The booking funnel must be keyboard-usable. */
:focus-visible {
  outline: 2px solid var(--breeze);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 300;
  background: var(--ink); color: var(--white);
  padding: .85rem 1.5rem;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   TYPE SCALE
   Display weights stay at 300 with negative tracking; labels invert that
   completely — tiny, uppercase, wide. That contrast is the whole system.
   -------------------------------------------------------------------------- */

.display-xl { font-size: clamp(2.75rem, 7vw, 8rem);    line-height: 1.04; letter-spacing: -.02em;  font-weight: 300; }
.display-lg { font-size: clamp(2.25rem, 5.5vw, 6rem);  line-height: 1.06; letter-spacing: -.02em;  font-weight: 300; }
.display-md { font-size: clamp(1.9rem, 4vw, 3.6rem);   line-height: 1.1;  letter-spacing: -.015em; font-weight: 300; }
.display-sm { font-size: clamp(1.5rem, 3vw, 2.4rem);   line-height: 1.15; letter-spacing: -.012em; font-weight: 300; }
.heading    { font-size: clamp(1.25rem, 2.2vw, 1.9rem);line-height: 1.3;  letter-spacing: -.01em;  font-weight: 400; }
.heading-sm { font-size: 1.05rem; line-height: 1.4; font-weight: 400; letter-spacing: -.005em; }

.body-lg { font-size: 1.05rem; line-height: 1.75; }
.body-md { font-size: .92rem;  line-height: 1.75; }
.body-sm { font-size: .8rem;   line-height: 1.7; }

/* Accent word inside a headline: italic, lighter presence */
.display-xl em, .display-lg em, .display-md em, .display-sm em {
  font-style: italic;
  font-weight: 300;
  color: var(--breeze);
}
.tone-dark .display-xl em, .tone-dark .display-lg em,
.tone-dark .display-md em, .tone-dark .display-sm em { color: var(--breeze-w); }

/* The eyebrow. Present above nearly every section heading. */
.label {
  display: block;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--breeze);
}
.tone-dark .label { color: var(--breeze-w); }
.label-muted { color: var(--g500); }

.micro {
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.muted { color: var(--g500); }
.tone-dark .muted { color: var(--g300); }

/* --------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--max-nar); margin: 0 auto; padding: 0 var(--gutter); }

.section    { padding: clamp(4.5rem, 11vh, 9rem) 0; }
.section-sm { padding: clamp(2.75rem, 6vh, 5rem) 0; }

/* Section tones. Alternate these — never two of the same consecutively. */
.tone-ground { background: var(--ground); color: var(--ink); }
.tone-light  { background: var(--light);  color: var(--ink); }
.tone-white  { background: var(--white);  color: var(--ink); }
.tone-dark   { background: var(--ink);    color: var(--white); }
.tone-dark-2 { background: var(--ink-2);  color: var(--white); }

/* Hairline grid: the signature separator. Each cell draws its own 1px rule
   with a box-shadow; neighbours' shadows meet inside the 1px gap and read as
   a single line. Doing it per cell rather than with a coloured container
   background means a half-empty last row leaves white space, not grey blocks. */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: transparent;
}
.hairline-grid > * { box-shadow: 0 0 0 1px var(--g100); }
.tone-dark .hairline-grid > *,
.hairline-grid.on-dark > * { box-shadow: 0 0 0 1px var(--g700); }

.rule { height: 1px; background: var(--g100); border: 0; margin: 0; }
.tone-dark .rule { background: var(--g700); }

/* Section header row: eyebrow + heading left, action right */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.sec-head__text { max-width: 42ch; }
.sec-head .label { margin-bottom: 1rem; }

/* Two-column intro: heading left, body + action right */
.split-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split-intro { grid-template-columns: 1fr; } }

.stack-sm > * + * { margin-top: .75rem; }
.stack   > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

.text-center { text-align: center; }
