/* Covelant: one stylesheet in four parts.
   1 Tokens · 2 Base · 3 Components · 4 Sections (+ hero entrance and reveals) */

/* =========================================================================
   1 · TOKENS: every colour, size and timing on the site comes from here.
   ========================================================================= */
:root {
  /* Peat: the dark canvas */
  --peat-950: #15110e;
  --peat-900: #1e1813;
  --peat-800: #2a221b;
  --peat-700: #3a3028;

  /* Parchment: light chapters, and the text colour on dark */
  --parchment-50: #f3ecdf;
  --parchment-100: #e9e0cd;
  --bone: #f3ecdf;
  --bone-muted: #b3a999;

  /* Ink: text on parchment */
  --ink: #1e1813;
  --ink-muted: #5b524a;

  /* Rust: the one accent. Hairlines, eyebrows, one italic word, button borders. */
  --rust-500: #b5552d;
  --rust-400: #d27a4e; /* hover, and any small rust text on dark */
  --rust-300: #de8c60; /* the accent word when it sits over a photo */
  --rust-700: #8b3f20; /* rust as text on parchment */

  /* Moss: quiet secondary green */
  --moss-500: #5e6b4f;
  --moss-300: #9baa86;

  /* Hairlines */
  --line-dark: rgba(243, 236, 223, 0.14);
  --line-dark-strong: rgba(243, 236, 223, 0.26);
  --line-light: rgba(30, 24, 19, 0.14);
  --line-light-strong: rgba(30, 24, 19, 0.3);

  /* Type */
  --font-serif: 'Newsreader', 'Serif Fallback', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', 'Sans Fallback', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(3.375rem, 1.6rem + 6vw, 6.5rem);
  --fs-h2: clamp(2rem, 1rem + 3.2vw, 3.75rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-band: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  --fs-numeral: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;
  --fs-button: 0.9375rem;

  --lh-tight: 0.98;
  --lh-heading: 1.04;
  --lh-body: 1.6;
  --track-display: -0.015em;
  --track-eyebrow: 0.16em;
  --track-wordmark: 0.18em;

  /* Space */
  --gutter-x: clamp(1rem, 4vw, 4rem);
  --gap: clamp(1rem, 1.6vw, 1.5rem);
  --wrap: 1360px;
  --chapter-y: clamp(5rem, 3.5rem + 6vw, 8rem);
  --nav-h: 72px;
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 0.3s;
  --dur-hover: 0.4s;
  --dur-reveal: 0.9s;

  /* Layers */
  --z-nav: 50;
  --z-menu: 40;
  --z-skip: 100;
}
@media (max-width: 899px) { :root { --nav-h: 64px; } }

/* =========================================================================
   2 · BASE
   ========================================================================= */
/* Self-hosted variable fonts (SIL Open Font License, see assets/fonts/LICENSE.txt). */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-var.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-italic-var.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-grotesk-var.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
/* Metric-matched local fallbacks (widths measured in Chrome against the web fonts) so the swap barely moves the layout. */
@font-face { font-family: 'Serif Fallback'; src: local('Georgia'); size-adjust: 100.4%; ascent-override: 73%; descent-override: 26.4%; line-gap-override: 0%; }
@font-face { font-family: 'Sans Fallback'; src: local('Arial'); size-adjust: 101.7%; ascent-override: 98.3%; descent-override: 29.8%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--peat-950);
  color-scheme: dark;
}
body {
  min-height: 100vh;
  background: var(--peat-950);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: var(--lh-heading); letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; }
p { text-wrap: pretty; }
::selection { background: var(--rust-500); color: var(--bone); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter-x); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }

/* Chapters */
.chapter { position: relative; padding-block: var(--chapter-y); }
.chapter--light { background: var(--parchment-50); color: var(--ink); color-scheme: light; }
.chapter--dark { background: var(--peat-900); color: var(--bone); }

/* Film grain over dark surfaces */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Focus: always visible, rust on dark, ink on parchment */
:focus-visible { outline: 2px solid var(--rust-400); outline-offset: 3px; border-radius: var(--radius); }
.chapter--light :focus-visible { outline-color: var(--ink); }
/* Sections and <main> receive focus programmatically after anchor jumps; they need no frame. */
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
  padding: 0.75rem 1.125rem;
  background: var(--bone); color: var(--peat-950);
  font-size: var(--fs-small); font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-micro) var(--ease-out);
}
.skip-link:focus-visible { transform: none; outline-color: var(--rust-500); }

/* =========================================================================
   3 · COMPONENTS
   ========================================================================= */
/* Mark + wordmark */
.mark { width: 28px; height: 28px; flex: none; --mark-a: var(--bone); --mark-b: var(--rust-500); }
.mark--lg { width: 36px; height: 36px; }
.wordmark {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  letter-spacing: var(--track-wordmark); text-transform: uppercase;
  margin-right: calc(var(--track-wordmark) * -1);
}

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.4;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--rust-400);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; flex: none; background: var(--rust-500); }
.chapter--light .eyebrow { color: var(--rust-700); }
.chapter--light .eyebrow::before { background: var(--rust-700); }

/* Underline-draw link */
.u-link { position: relative; }
.u-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-in-out);
}
.u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding-block: 0.5rem 5px; font-size: var(--fs-button); font-weight: 500;
  border-bottom: 1px solid var(--line-dark-strong);
  transition: border-color var(--dur-hover) var(--ease-out);
}
.link-arrow > span { transition: transform var(--dur-hover) var(--ease-out); }
.link-arrow:hover { border-color: var(--rust-400); }
.link-arrow:hover > span { transform: translateY(3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.85rem;
  min-height: 56px; padding: 0 1.75rem;
  font-size: var(--fs-button); font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius); white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out);
}
.btn--outline { border: 1px solid var(--rust-500); color: var(--bone); }
.btn--outline:hover { border-color: var(--rust-400); background-color: rgba(181, 85, 45, 0.14); }
.btn--solid { background: var(--peat-900); color: var(--bone); border: 1px solid var(--peat-900); }
.btn--solid:hover { background: var(--rust-700); border-color: var(--rust-700); }
.btn__arrow { display: inline-block; transition: transform var(--dur-hover) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 0 1.125rem; font-size: 0.8125rem; }
.btn--block { width: 100%; justify-content: space-between; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h); color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.45s var(--ease-in-out);
}
.nav.is-scrolled, .nav.is-menu-open {
  background-color: rgba(21, 17, 14, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: var(--line-dark);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.nav__links { display: none; margin-left: auto; }
.nav__links ul { display: flex; gap: clamp(1.5rem, 2.4vw, 2.5rem); }
.nav__links a { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; padding-block: 0.75rem; display: inline-block; }
.nav__links a::after { background: var(--rust-500); bottom: 8px; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__cta { display: none; }
.nav__toggle {
  min-height: 44px; min-width: 64px; padding: 0 0.25rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  display: grid; place-items: center end;
}
.nav__toggle-label { grid-area: 1 / 1; transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.nav__toggle-label--close { opacity: 0; transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-label--open { opacity: 0; transform: translateY(-6px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-label--close { opacity: 1; transform: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
@media (min-width: 900px) {
  .nav__links { display: block; }
  .nav__toggle { display: none; }
  .nav__actions { margin-left: clamp(1.5rem, 2.4vw, 2.5rem); }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--peat-950);
  padding-top: calc(var(--nav-h) + 2.5rem);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-expo);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 2.5rem; }
.menu__links li { border-top: 1px solid var(--line-dark); }
.menu__links li:last-child { border-bottom: 1px solid var(--line-dark); }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: 1rem;
  font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.06s); }
.menu__num { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--rust-400); }
.menu__meta { display: grid; gap: 0.4rem; color: var(--bone-muted); font-size: 0.9375rem; }
.menu__meta a { padding-block: 0.35rem; color: var(--bone); justify-self: start; }
@media (min-width: 900px) { .menu { display: none !important; } }

/* Hairline rows: the line draws, then the content rises */
[data-row] { position: relative; }
[data-row]::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line-dark); transform-origin: 0 50%;
  transition: background-color var(--dur-hover) var(--ease-out), transform 1s var(--ease-expo);
}
.chapter--light [data-row]::before { background: var(--line-light); }

/* Form */
.form { display: grid; }
.field { position: relative; margin-bottom: 1.5rem; }
.field input, .field select {
  display: block; width: 100%; padding: 1.65rem 0 0.6rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light-strong); border-radius: 0;
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
  transition: border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231e1813' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.25rem bottom 1.1rem;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field label {
  position: absolute; left: 0; top: 1.6rem; pointer-events: none;
  color: var(--ink-muted); font-size: 1.0625rem; transform-origin: 0 0;
  transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out), letter-spacing 0.35s var(--ease-out);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field--select label {
  transform: translateY(-1.35rem) scale(0.72); color: var(--rust-700); letter-spacing: 0.08em; text-transform: uppercase;
}
.field [aria-invalid="true"] { border-bottom-color: var(--rust-700); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin-bottom: 1rem; color: var(--rust-700); font-size: var(--fs-small); font-weight: 500; }
.form .btn { margin-top: 0.5rem; }
.form__privacy { margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-muted); }
.form__success { padding-block: 2rem; }
.form__success:focus { outline: none; }
.form__success-title { font-family: var(--font-serif); font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 0.5rem; }
.form__success p:not(.form__success-title) { color: var(--ink-muted); }

/* =========================================================================
   4 · SECTIONS
   ========================================================================= */

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--peat-950); overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__media {
  position: absolute; z-index: -2; left: 0; right: 0; top: -6%; height: 112%;
  will-change: transform;
}
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 47% 45%; }
@media (max-aspect-ratio: 4/5) {
  .hero__media img { object-position: 50% 40%; }
  /* On tall screens the text block climbs higher up the photo, so the shade does too. */
  html .hero::after { background: linear-gradient(to top, rgba(21, 17, 14, 0.96) 0%, rgba(21, 17, 14, 0.82) 40%, rgba(21, 17, 14, 0.62) 62%, rgba(21, 17, 14, 0.25) 82%, rgba(21, 17, 14, 0.45) 100%); }
}
.hero::after {
  /* Readability: darkest bottom-left where the text sits, lighter top-right where the rider is. */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(21, 17, 14, 0.96) 0%, rgba(21, 17, 14, 0.8) 34%, rgba(21, 17, 14, 0.5) 58%, rgba(21, 17, 14, 0.2) 78%, rgba(21, 17, 14, 0.42) 100%),
    linear-gradient(to right, rgba(21, 17, 14, 0.7) 0%, rgba(21, 17, 14, 0.25) 55%, rgba(21, 17, 14, 0) 100%);
}
.hero__inner { position: relative; z-index: 2; align-self: end; padding-block: 3rem 2.5rem; }
/* A soft scrim that travels with the text block, so it stays readable however short the screen. */
.hero__inner::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: -7rem; bottom: -4rem; left: calc(var(--gutter-x) * -1); width: max(160vw, 900px); max-width: 1100px;
  background: linear-gradient(to right, rgba(21, 17, 14, 0.72) 0%, rgba(21, 17, 14, 0.6) 45%, rgba(21, 17, 14, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9rem, #000 calc(100% - 4rem), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9rem, #000 calc(100% - 4rem), transparent 100%);
}
.hero__eyebrow { margin-bottom: 1.5rem; color: var(--bone); }
.hero__eyebrow::before { background: var(--rust-400); }
.hero__eyebrow-more { display: none; }
@media (min-width: 640px) { .hero__eyebrow-more { display: inline; } }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); }
.hero__title em { color: var(--rust-300); }
.hero__line { display: block; overflow: hidden; padding: 0 0.12em 0.12em 0; margin-bottom: -0.12em; }
.hero__line > span { display: inline-block; }
.hero__lead { margin-top: 1.5rem; max-width: 36ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--parchment-100); }
.hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem 1.4rem; font-size: 0.8125rem; color: var(--bone-muted); }
.hero__foot::before { content: ''; position: absolute; top: 0; left: var(--gutter-x); right: var(--gutter-x); height: 1px; background: var(--line-dark); }
.hero__email { color: var(--bone); padding-block: 0.6rem; letter-spacing: 0.02em; }
.hero__scroll { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.6875rem; letter-spacing: var(--track-eyebrow); text-transform: uppercase; }
.hero__scroll i { display: block; width: 1px; height: 32px; background: var(--bone-muted); transform-origin: top; animation: scrollcue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) {
  .hero__inner { padding-block: 4rem 3.5rem; }
  .hero__media img { object-position: 12% 42%; }
}

/* ---------- The range ---------- */
.range { border-top: 1px solid var(--line-dark); }
.range__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.range__title { font-size: var(--fs-h2); max-width: 18ch; }
.tiles { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; overflow: hidden; background: var(--peat-800); aspect-ratio: 4 / 5; }
.tile picture { position: absolute; inset: 0; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.tile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(21, 17, 14, 0.94) 0%, rgba(21, 17, 14, 0.78) 36%, rgba(21, 17, 14, 0.42) 56%, rgba(21, 17, 14, 0) 74%);
}
.tile__text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.4vw, 2rem); }
.tile__num { display: block; font-family: var(--font-serif); font-size: var(--fs-numeral); color: var(--bone); margin-bottom: 0.35rem; }
.tile__title { position: relative; display: inline-block; font-size: var(--fs-h3); }
.tile__title::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--rust-500);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease-expo);
}
.tile__desc { margin-top: 0.75rem; max-width: 30ch; color: var(--parchment-100); font-size: 0.9375rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .tile__desc { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
  .tile:hover .tile__img { transform: scale(1.04); }
  .tile:hover .tile__title::after { transform: scaleX(1); }
  .tile:hover .tile__desc { opacity: 1; transform: none; }
}
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile:last-child { grid-column: auto; aspect-ratio: 4 / 5; } }

/* ---------- From opening day ---------- */
.opening__head { grid-column: 1 / -1; display: grid; gap: 1.25rem; align-content: start; margin-bottom: 2.5rem; }
.opening__title { font-size: var(--fs-h2); }
.opening__lead { color: var(--ink-muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 30ch; }
.opening__list { grid-column: 1 / -1; }
.ledger { border-bottom: 1px solid var(--line-light); }
.ledger__row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; padding-block: clamp(1.5rem, 2.6vw, 2.25rem); }
.ledger__num { font-family: var(--font-serif); font-size: var(--fs-numeral); color: var(--rust-700); line-height: 1.5; transition: transform var(--dur-hover) var(--ease-out); }
.ledger__title { font-size: var(--fs-h3); }
.ledger__body p { margin-top: 0.5rem; color: var(--ink-muted); max-width: 46ch; }
.ledger__row:hover::before { background: var(--rust-700); }
.ledger__row:hover .ledger__num { transform: translateX(4px); }
@media (min-width: 900px) {
  .opening__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 2rem); margin-bottom: 0; }
  .opening__list { grid-column: 7 / -1; }
  .ledger__row { grid-template-columns: 4rem minmax(0, 1fr); }
}

/* ---------- The band ---------- */
.band {
  display: grid; align-items: center;
  min-height: 60vh; min-height: 60svh;
  padding-block: var(--chapter-y);
  background: var(--peat-950); overflow: hidden;
}
.band__media { position: absolute; z-index: -2; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
.band__media picture, .band__media img { width: 100%; height: 100%; }
.band__media img { object-fit: cover; object-position: 50% 60%; }
.band::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 17, 14, 0.78) 0%, rgba(21, 17, 14, 0.7) 50%, rgba(21, 17, 14, 0.86) 100%);
}
.band__contours { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; color: var(--parchment-50); opacity: 0.09; pointer-events: none; }
.band__inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.band__line { font-size: var(--fs-band); font-style: italic; line-height: 1.12; max-width: 22ch; }
.band__sub { max-width: 46ch; color: var(--parchment-100); }

/* ---------- Register ---------- */
.register__text { grid-column: 1 / -1; display: grid; gap: 1.25rem; align-content: start; margin-bottom: 3rem; }
.register__title { font-size: var(--fs-h2); }
.register__title em { color: var(--rust-700); }
.register__lead { color: var(--ink-muted); max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; }
.register__facts { margin-top: 1.25rem; border-bottom: 1px solid var(--line-light); }
.register__fact { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; align-items: baseline; }
.register__fact dt { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-muted); }
.register__fact dd { color: var(--ink); }
.register__fact a { display: inline-block; padding-block: 0.25rem; }
.register__formwrap { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .register__text { grid-column: 1 / span 5; margin-bottom: 0; }
  .register__formwrap { grid-column: 7 / -1; padding-top: 0.5rem; }
}

/* ---------- Footer ---------- */
.footer { background: var(--peat-950); color: var(--bone); padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.5rem; border-top: 1px solid var(--rust-500); }
.footer .wrap { position: relative; z-index: 2; }
.footer__top { display: grid; gap: 2.5rem; }
.footer__logo { display: inline-flex; align-items: center; gap: 0.85rem; min-height: 44px; }
.footer__logo .wordmark { font-size: 1.0625rem; }
.footer__strap { margin-top: 0.75rem; font-size: var(--fs-eyebrow); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--bone-muted); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.footer__nav a, .footer__contact a { display: inline-block; padding-block: 0.6rem; color: var(--bone-muted); transition: color var(--dur-hover) var(--ease-out); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--bone); }
.footer__contact a { color: var(--bone); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 2rem;
  font-size: 0.8125rem; color: var(--bone-muted);
}
.footer__bottom p, .footer__bottom a { padding-block: 0.6rem; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 3rem; }
}

/* =========================================================================
   MOTION: hidden states exist only under html.motion-ok (set in <head>).
   ========================================================================= */
/* Hero entrance: pure CSS from first paint, so it never waits for main.js. */
.motion-ok .hero__media img { animation: settle 2.4s var(--ease-out) both; }
.motion-ok .hero__line > span { animation: line-up 1s var(--ease-expo) 0.2s both; }
.motion-ok .hero__line + .hero__line > span { animation-delay: 0.29s; }
.motion-ok [data-hero] { animation: rise 0.9s var(--ease-out) both; }
.motion-ok .hero__eyebrow { animation-delay: 0.1s; }
.motion-ok .hero__lead { animation-delay: 0.6s; }
.motion-ok .hero__ctas { animation-delay: 0.72s; }
.motion-ok .hero__ctas .btn--draw { animation: wipe 0.8s var(--ease-in-out) 0.85s both; }
.motion-ok .hero__foot { animation-duration: 1s; animation-delay: 1.1s; }
.motion-ok .nav { animation: fade 0.8s var(--ease-out) 0.2s both; }
.motion-ok .nav .mark__line { stroke-dasharray: 1; animation: draw 1s var(--ease-expo) 0.2s both; }
.motion-ok .nav .mark__line:nth-child(2) { animation-delay: 0.3s; }
.motion-ok .nav .mark__line:nth-child(3) { animation-delay: 0.4s; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes line-up { from { transform: translateY(38%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes wipe { from { clip-path: inset(-8px 100% -8px -8px); } to { clip-path: inset(-8px); } } /* -8px keeps the focus ring visible */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Scroll reveals: main.js adds .is-in once, with a --d stagger. */
.motion-ok [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--dur-reveal) var(--ease-out) var(--d, 0s), transform var(--dur-reveal) var(--ease-out) var(--d, 0s);
}
.motion-ok [data-reveal].is-in { opacity: 1; transform: none; }
.motion-ok [data-row]::before { transform: scaleX(0); transition-delay: 0s, var(--d, 0s); }
.motion-ok [data-row] > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out) calc(var(--d, 0s) + 0.25s), transform 0.8s var(--ease-out) calc(var(--d, 0s) + 0.25s);
}
.motion-ok [data-row].is-in::before { transform: none; }
.motion-ok [data-row].is-in > * { opacity: 1; transform: none; }
.motion-ok .ledger__row.is-in:hover .ledger__num { transform: translateX(4px); transition-delay: 0s; }

/* Safety net for anyone who asks for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media, .band__media { transform: none !important; }
}

/* ---------- Single-message pages (404, thanks) ---------- */
.solo { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; background: var(--peat-950); }
.solo__inner { position: relative; z-index: 2; display: grid; justify-items: start; gap: 1.5rem; padding-block: 4rem; }
.solo .nav__brand { margin-bottom: 2rem; }
.solo__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); }
.solo__title em { color: var(--rust-400); }
.solo__body { max-width: 36ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--parchment-100); margin-bottom: 1rem; }
