/* Website hero (photo + typing headline + logo flight, site/hero-scrub.js) and the header over it.
   Colours come only from shared/tokens.css: --surface is the light ink over the photo, --ink the
   scrim, --brand the solid header ground. Every rule is scoped under #siteShell so it out-specifies
   styles.css / hero-fix.css / font-fix.css / mobile-fix.css, which load before this file. */

#siteShell .t-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header -- */
/* Fixed, not in flow: a header in flow would push the hero down and stall the scroll track. */
#siteShell .site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--surface); background: transparent; border-bottom: 0;
  transition: background .35s ease, box-shadow .35s ease, padding .3s ease, color .35s ease;
}
/* Header-owned scrim so light nav text holds contrast over any photo; it fades once the header is solid. */
#siteShell .site-header::before {
  content: ''; position: absolute; inset: -1px 0 auto; height: 150%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 66%, transparent), transparent);
  opacity: 1; transition: opacity .35s ease; pointer-events: none; z-index: -1;
}
#siteShell .site-header.is-solid,
#siteShell .site-header.nav-open {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 95%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brand-ink) 14%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
#siteShell .site-header.nav-open { background: var(--brand); }
#siteShell .site-header.is-solid::before,
#siteShell .site-header.nav-open::before { opacity: 0; }
/* <button> children do not inherit colour by default. */
#siteShell .site-header button { color: inherit; }
#siteShell .nav-toggle span { background: currentColor; }
#siteShell .site-nav > a:not(.button) { color: inherit; opacity: .9; transition: opacity .2s ease; }
#siteShell .site-nav > a:not(.button):hover { opacity: 1; }
#siteShell .site-nav.open { color: var(--brand-ink); }

/* ------------------------------------------------------------------ hero -- */
/* styles.css builds .hero as a single clipped screen (max-height, overflow hidden): the max-height
   would clamp the scroll track and overflow:hidden stops the sticky child pinning, so both go. */
#siteShell .t-hero {
  position: relative; height: 100vh; height: 100dvh; min-height: 560px; max-height: none;
  margin: 0; padding: 0; overflow: visible; color: var(--surface); background: var(--ink);
}
#siteShell .t-hero-pin { position: relative; height: 100%; overflow: hidden; background: var(--ink); }
#siteShell .t-hero .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
#siteShell .t-hero .t-hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform-origin: 50% 50%; will-change: transform;
}

/* Scrim: a centre vignette under the headline, an edge vignette, and a top/bottom fade. */
#siteShell .t-hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(76% 48% at 50% 54%, color-mix(in srgb, var(--ink) 56%, transparent) 0%, color-mix(in srgb, var(--ink) 30%, transparent) 55%, transparent 82%),
    radial-gradient(125% 90% at 50% 46%, transparent 42%, color-mix(in srgb, var(--ink) 52%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 30%, transparent) 0%, transparent 24%, transparent 60%, color-mix(in srgb, var(--ink) 70%, transparent) 100%);
}

/* A headline and two buttons, centred. */
#siteShell .t-hero .hero-copy {
  position: absolute; z-index: 3;
  left: 50%; top: 54%; right: auto; bottom: auto; transform: translate(-50%, -50%);
  width: min(1040px, calc(100% - 2 * clamp(20px, 6vw, 80px)));
  max-width: none; text-align: center; opacity: 1;
}
#siteShell .t-hero h1 {
  margin: 0 auto; max-width: none; color: var(--surface);
  font-size: clamp(2.8rem, 7.4vw, 6.6rem);
  line-height: .98; letter-spacing: -.01em; overflow-wrap: normal;
  text-shadow: 0 4px 40px color-mix(in srgb, var(--ink) 65%, transparent), 0 1px 3px color-mix(in srgb, var(--ink) 40%, transparent);
}

#siteShell .t-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: clamp(26px, 4vh, 46px);
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease .06s, transform .75s cubic-bezier(.22, 1, .36, 1) .06s;
}
#siteShell .t-hero-actions.is-in { opacity: 1; transform: none; }
#siteShell .t-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 32px; border-radius: 999px;
  font: 700 .82rem/1 var(--font-body), system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
#siteShell .t-pill--solid { background: var(--surface); color: var(--ink); }
#siteShell .t-pill--solid:hover { background: color-mix(in srgb, var(--surface) 88%, var(--ink) 12%); transform: translateY(-2px); }
#siteShell .t-pill--ghost {
  background: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--surface);
  border: 1px solid color-mix(in srgb, var(--surface) 75%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
#siteShell .t-pill--ghost:hover { background: color-mix(in srgb, var(--surface) 18%, transparent); transform: translateY(-2px); }
#siteShell .t-pill:focus-visible { outline: 3px solid var(--surface); outline-offset: 3px; }

/* The header is fixed, so an in-page anchor would otherwise land under it. */
#siteShell #reserve, #siteShell #story, #siteShell #menu,
#siteShell #events, #siteShell #about, #siteShell #contact { scroll-margin-top: 84px; }

/* ------------------------------------------------ typing headline + gentle zoom --
   .is-intro is set by hero-scrub.js: the hero becomes a 230vh track with the photo pinned. Without it
   (no JS, reduced motion: .is-static, shipped in index.html) the hero is one still screen with the
   headline and buttons shown. */
#siteShell .t-hero.is-intro { height: 230vh; height: 230dvh; min-height: 0; }
#siteShell .t-hero.is-intro .t-hero-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; }
#siteShell .t-hero h1 .tw { display: inline-block; white-space: nowrap; }
#siteShell .t-hero h1 .ch { opacity: 0; transition: opacity .14s ease; }
#siteShell .t-hero h1 .ch.is-on { opacity: 1; }
/* blinking cursor on the last letter, only while typing; absolutely placed so it never shifts the layout */
#siteShell .t-hero h1 .ch.is-last { position: relative; }
#siteShell .t-hero h1.is-typing .ch.is-last::after {
  content: ''; position: absolute; left: 100%; top: .12em; width: .055em; height: .8em; margin-left: .03em;
  background: var(--surface); animation: heroCaret .8s steps(1) infinite;
}
@keyframes heroCaret { 50% { opacity: 0; } }

/* ------------------------------------------------ logo centred above the buttons, then flown to the header --
   hero-scrub.js sets --cta-shift (negative px) so at scroll 0 the logo + buttons read as one group centred
   on screen, and eases it to 0 as the logo flies to the header. The flying logo is a child of the pin and
   only shows while the hero is a scroll track (.is-intro). */
#siteShell .t-hero-cta { position: relative; transform: translateY(var(--cta-shift, 0px)); will-change: transform; }
#siteShell .t-hero-logo { display: none; }
#siteShell .t-hero.is-intro .t-hero-logo {
  display: block; position: absolute; z-index: 4; left: 0; top: 0;
  width: clamp(150px, 24vh, 250px); height: auto;
  transform-origin: 0 0; will-change: transform; pointer-events: none;
  filter: drop-shadow(0 6px 28px color-mix(in srgb, var(--ink) 55%, transparent));
}
/* One logo at a time: the header's own logo waits (hero-scrub.js sets .logo-hold) until the flying one lands. */
#siteShell .site-header.logo-hold .brand img { opacity: 0; }

@media (max-width: 780px) {
  #siteShell .t-hero h1 { font-size: clamp(2.5rem, 12.5vw, 4.2rem); }
  #siteShell .t-hero .hero-copy { width: calc(100% - 40px); }
  #siteShell .t-hero-actions { gap: 11px; }
  #siteShell .t-pill { min-height: 50px; padding: 0 24px; font-size: .74rem; letter-spacing: .11em; }
  #siteShell .t-hero.is-intro .t-hero-logo { width: clamp(130px, 22vh, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  #siteShell .site-header, #siteShell .site-header::before { transition: none; }
  #siteShell .t-hero { height: 100vh; height: 100dvh; }
  #siteShell .t-hero-pin { position: relative; }
  #siteShell .t-hero h1 .ch { opacity: 1; transition: none; }
  #siteShell .t-hero-actions { opacity: 1; transform: none; transition: none; }
  #siteShell .t-hero-logo { display: none !important; }
}
