/* Generated by Frontend Wireframe Engine — Phase 4
   Client:   Battleground Skate House & Youth Center
   DNA Hash: e0a0846eeed3
   Do not edit — regenerate via the engine */

:root {
  /* ── Typography — typography-dna.yml → stencil-military ─────────────── */
  --font-heading: 'Saira Stencil One', 'Saira', Impact, sans-serif;
  --font-body: 'Saira', system-ui, -apple-system, sans-serif;
  --scale-ratio: 1.333;
  --heading-weight: 400;
  --heading-case: uppercase;
  --heading-letterspacing: 0.10em;
  --heading-line-height: 1.1;
  --body-size: 17px;
  --body-weight: 400;
  --body-line-height: 1.65;
  --body-letterspacing: 0.02em;
  --max-line-length: 66ch;

  /* Display tracking is optically corrected: the archetype's 0.10em is right at
     label sizes and absurd at 180px. Stays positive at every size, so the
     cramped-tracking detector rule (below -0.04em) cannot fire. */
  --display-letterspacing: 0.02em;
  --label-letterspacing: 0.16em;

  /* Type scale, 1.333 ratio, fluid */
  --t-display: clamp(3.75rem, 12vw, 11.25rem);   /* oversized-heading mutation */
  --t-h1: clamp(2.5rem, 7vw, 5.25rem);
  --t-h2: clamp(1.95rem, 4.4vw, 3.4rem);
  --t-h3: clamp(1.5rem, 2.6vw, 2.15rem);
  --t-h4: clamp(1.2rem, 1.8vw, 1.5rem);
  --t-lead: clamp(1.1rem, 1.6vw, 1.35rem);
  --t-body: 1.0625rem;
  --t-label: 0.8125rem;

  /* ── Color — color-application.yml → warm-dark-espresso ───────────────
     Structure (75/15/10 distribution, warm three-step alternation) from the
     strategy. Hexes from design-dna.yml → brand_tokens, source: logo.
     Every pair below is contrast-verified; see palette_extended in the DNA. */
  --color-brand-primary: #f2be5d;    /* logo gold, logo-colors.mjs, 7.4% share */
  --color-brand-secondary: #b8862f;  /* darker gold: rules and fills, never text */
  --color-bg-base: #151210;          /* 75% — warm near-black from logo #302c1c */
  --color-bg-elevated: #1f1a15;
  --color-bg-card: #292219;          /* 15% — warm mid-darks */
  --color-text-primary: #f4efe6;     /* warm cream, never pure white */
  --color-text-secondary: #b6b5b0;   /* concrete, sampled from the park photos */
  --color-accent: #2ec4d9;           /* 10% — electric teal, hue-matched to the wall */
  --color-accent-deep: #113643;      /* the measured wall teal from BGPARK2.jpg */
  --color-paper: #e8e4db;            /* light concrete panel: the adult path */
  --color-ink: #151210;
  --color-ink-soft: #4a463f;         /* 7.39:1 on paper */
  --color-border: #7a684c;
  --color-border-soft: #3a3128;
  --color-border-strong: #f2be5d;

  /* ── Spacing — spacing-philosophy.yml → very-generous ─────────────────
     base 8px, scale 0-256, section_gap 128px, whitespace_ratio 0.48 */
  --spacing-base: 8px;
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;  --s5: 48px;
  --s6: 64px; --s7: 96px; --s8: 128px; --s9: 192px; --s10: 256px;
  --spacing-section: 128px;
  --spacing-section-tight: 64px;      /* the arrhythmia half of section_rhythm */
  --spacing-section-expansive: 192px;
  --spacing-content-desktop: 120px;
  --spacing-content-mobile: 32px;
  --spacing-paragraph: 32px;
  --spacing-component: 48px;

  /* ── Components — component-personality.yml → thick-solid-frame ───────
     Zero radius, heavy solid rules, no shadow. */
  --radius: 0px;
  --card-radius: 0px;
  --shadow: none;
  --frame: 4px;
  --frame-thin: 2px;
  --card-bg: var(--color-bg-card);
  --card-border: var(--frame) solid var(--color-border);
  --card-padding: 36px;

  /* ── Buttons — button-archetypes.yml → notched-corner ─────────────────
     Deviation from the archetype default: ink on gold (10.92:1) rather than
     white on accent, which would fail AAA. */
  --btn-notch: 14px;
  --btn-notch-hover: 20px;
  --btn-padding: 18px 34px;
  --btn-letterspacing: 0.12em;

  /* ── Animation — animation-character.yml → gravity-drop ───────────────
     Content entrances use the gravity curve (acceleration is the character).
     Controls use the fast floor tokens: animation-craft.yml rule 9. */
  --gravity: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --entrance-duration: 550ms;
  --stagger-delay: 60ms;
  --transition-speed: 200ms;
  --control-speed: 160ms;
  --parallax-factor: 0.2;

  /* ── Layout — layout-archetypes.yml → asymmetric-art-directed ─────────
     Scalars only. The grid, the rhythm and every distinguishing feature are
     built as real rules below; a token block is not an implementation. */
  --layout-max-width: 1440px;
  --layout-whitespace-ratio: 0.48;

  --texture-type: "concrete-raw";
  --nav-type: "marquee-announcement-header";
  --hero-archetype: "offset-editorial";
  --hero-height: 92vh;
  --btn-archetype: "notched-corner";
}

/* ═══ RESET AND BASE ══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Base element rules are written with :where() so they carry ZERO specificity.
   Tailwind v4 puts utilities in @layer utilities, and unlayered CSS beats all
   layered CSS whatever its specificity, so a bare `p { margin: 0 0 32px }` here
   would silently defeat every mb-* utility on the page. :where() keeps these as
   true defaults that any class overrides. @layer base is the other fix and is
   wrong here: the Tailwind browser CDN injects its preflight into `base` AFTER
   this file loads, so a layered base block would lose its heading sizes to
   preflight's `h1 { font-size: inherit }`. */
:where(body) {
  margin: 0;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letterspacing);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, .display, .stencil {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-transform: var(--heading-case);
  letter-spacing: var(--display-letterspacing);
  line-height: var(--heading-line-height);
  margin: 0;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
:where(p) { margin: 0 0 var(--spacing-paragraph); max-width: var(--max-line-length); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--color-accent); color: var(--color-ink); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-brand-primary); color: var(--color-ink);
  padding: 14px 22px; font-weight: 700; letter-spacing: var(--label-letterspacing);
  text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ═══ CONCRETE-RAW TEXTURE ════════════════════════════════════════════
   texture-depth.yml → concrete-raw, amplified by the grain-overlay mutation.
   Two inline SVG fractal-noise layers, no network request, no image weight. */

.grain::after,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.concrete {
  background-color: var(--color-bg-elevated);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23c)' opacity='0.35'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
}

/* Photographs keep their grain and their exposure. No colour correction into
   stock-photo smoothness — the brief is explicit about this. */
.photo {
  filter: contrast(1.06) saturate(0.94);
  background-color: var(--color-bg-card);
}
.photo-warm { filter: contrast(1.08) saturate(0.9) sepia(0.06); }

/* ═══ LAYOUT — asymmetric-art-directed ════════════════════════════════
   distinguishing_features, each built as a rule you can point at:
     1. no section shares a composition  → .comp-* classes, one per section
     2. text and image roles reverse     → .comp-invert / .comp-overlay
     3. micro-typography per section     → .eyebrow / .display / .figure
     4. arrhythmic vertical rhythm       → .rhythm-tight / -normal / -expansive */

.shell {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-left: var(--spacing-content-mobile);
  padding-right: var(--spacing-content-mobile);
}
.shell-wide { max-width: 1720px; }

@media (min-width: 1024px) {
  .shell {
    padding-left: var(--spacing-content-desktop);
    padding-right: var(--spacing-content-desktop);
  }
}

/* The 12-column bed. Content blocks carry real grid-column spans. */
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--spacing-component); }
@media (max-width: 899px) { .grid12 { display: block; } .grid12 > * + * { margin-top: var(--spacing-component); } }

/* Arrhythmia. Section padding does NOT repeat down the page. */
.rhythm-tight     { padding-block: var(--spacing-section-tight); }
.rhythm-normal    { padding-block: var(--spacing-section); }
.rhythm-expansive { padding-block: var(--spacing-section-expansive); }
@media (max-width: 899px) {
  .rhythm-tight     { padding-block: 48px; }
  .rhythm-normal    { padding-block: 72px; }
  .rhythm-expansive { padding-block: 96px; }
}

/* Surfaces alternate warm-dark without ever reaching cool grey. */
.surface-base { background-color: var(--color-bg-base); }
.surface-elev { background-color: var(--color-bg-elevated); }
.surface-card { background-color: var(--color-bg-card); }

/* inverted-section mutation: the adult path. Light concrete, black type. */
.surface-paper {
  background-color: var(--color-paper);
  color: var(--color-ink);
}
.surface-paper h1, .surface-paper h2, .surface-paper h3, .surface-paper h4 { color: var(--color-ink); }
.surface-paper .muted { color: var(--color-ink-soft); }
.surface-paper .eyebrow { color: var(--color-accent-deep); }
.surface-paper .rule { background: var(--color-accent-deep); }

.muted { color: var(--color-text-secondary); }
.gold  { color: var(--color-brand-primary); }
.teal  { color: var(--color-accent); }

/* ═══ MICRO-TYPOGRAPHY ════════════════════════════════════════════════ */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--label-letterspacing);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--s3);
  display: block;
}

.display {
  font-size: var(--t-display);
  line-height: 0.84;
  letter-spacing: var(--display-letterspacing);
}
/* Leading below 1 is safe on capitals only, and only without descending
   punctuation. No commas, semicolons or parentheses go in a .display line. */

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 46ch;
}

.figure {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.rule { height: var(--frame); background: var(--color-brand-primary); border: 0; margin: 0; }
.rule-teal { background: var(--color-accent); }
.rule-soft { height: var(--frame-thin); background: var(--color-border-soft); }

/* ═══ COMPONENTS — thick-solid-frame ══════════════════════════════════ */

.frame {
  border: var(--frame) solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  background: var(--card-bg);
  padding: var(--card-padding);
}
.frame-gold { border-color: var(--color-brand-primary); }
.frame-teal { border-color: var(--color-accent); }
.frame-ink  { border-color: var(--color-ink); }

@media (max-width: 599px) { .frame { padding: 24px; } }

/* ═══ BUTTONS — notched-corner ════════════════════════════════════════ */

.btn {
  --notch: var(--btn-notch);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: var(--btn-letterspacing);
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background-color: var(--color-brand-primary);
  color: var(--color-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  transition: background-color var(--control-speed) var(--ease-out),
              transform var(--control-speed) var(--ease-out),
              clip-path var(--control-speed) var(--ease-out),
              color var(--control-speed) var(--ease-out);
  white-space: nowrap;
}
.btn-teal { background-color: var(--color-accent); color: var(--color-ink); }
.btn-ghost {
  background-color: transparent;
  color: var(--color-brand-primary);
  box-shadow: inset 0 0 0 var(--frame-thin) var(--color-brand-primary);
}
.btn-ink { background-color: var(--color-ink); color: var(--color-paper); }
.btn-lg { padding: 22px 42px; font-size: 1.0625rem; --notch: 18px; }
.btn-sm { padding: 12px 22px; font-size: 0.8125rem; --notch: 10px; }

/* Short labels stay on one line, which is what the nowrap above is for. A label
   long enough to exceed its column has to be allowed to break, or it pushes the
   page sideways: measured at 375px, "Email about volunteering" was 326px wide in
   a 255px column and put 12px of horizontal scroll on the contact page. */
.btn-wrap { white-space: normal; text-align: center; max-width: 100%; }
.btn { max-width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --notch: var(--btn-notch-hover); background-color: #ffd27a; }
  .btn-teal:hover { background-color: #63dcec; }
  .btn-ghost:hover { background-color: var(--color-brand-primary); color: var(--color-ink); }
  .btn-ink:hover { background-color: #2b241c; }
}
.btn:active { transform: scale(0.97); }

/* Text links: underline that thickens rather than a colour change */
.tlink {
  color: var(--color-accent);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 0 currentColor;
  transition: box-shadow var(--control-speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tlink:hover { box-shadow: inset 0 -6px 0 0 currentColor; }
}
.surface-paper .tlink { color: var(--color-accent-deep); }

/* ═══ NAVIGATION — marquee-announcement-header ════════════════════════
   AAA contract from design-dna.yml → axes.navigation.note:
   static high-contrast band by default and under reduced motion; the ticker
   runs only when motion is allowed; pauses on hover and on keyboard focus;
   the duplicated track is aria-hidden; the same facts appear as static text
   further down every page. */

.announce {
  background-color: var(--color-brand-primary);
  color: var(--color-ink);
  border-bottom: var(--frame) solid var(--color-ink);
  overflow: hidden;
  position: relative;
}
.announce-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  padding-block: 9px;
}
.announce-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--label-letterspacing);
  text-transform: uppercase;
  padding-inline: 22px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.announce-item::after { content: "◆"; font-size: 0.6rem; opacity: 0.55; }

/* Static by default. Motion is opt-in, not opt-out. */
@media (prefers-reduced-motion: no-preference) {
  .announce-track { animation: marquee 42s linear infinite; }
  .announce:hover .announce-track,
  .announce:focus-within .announce-track { animation-play-state: paused; }
}
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* With motion off the duplicate track is hidden so nothing repeats visually. */
@media (prefers-reduced-motion: reduce) {
  .announce-track { width: 100%; justify-content: center; flex-wrap: wrap; }
  .announce-dupe { display: none; }
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--color-bg-base);
  border-bottom: var(--frame) solid var(--color-border-soft);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-primary);
}
.wordmark img { width: 38px; height: 38px; border: var(--frame-thin) solid var(--color-brand-primary); }
.wordmark span {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.nav-desktop { display: none; align-items: center; gap: 30px; }
@media (min-width: 1000px) { .nav-desktop { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-primary);
  padding-block: 6px;
  box-shadow: inset 0 0 0 0 var(--color-accent);
  transition: box-shadow var(--control-speed) var(--ease-out), color var(--control-speed) var(--ease-out);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { box-shadow: inset 0 -4px 0 0 var(--color-accent); }
}
.nav-link[aria-current="page"] { color: var(--color-brand-primary); box-shadow: inset 0 -4px 0 0 var(--color-brand-primary); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 44px; min-height: 44px;
  background: none; border: var(--frame-thin) solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 14px; cursor: pointer;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

/* Mobile menu — full-viewport overlay, per the hard rule. */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--color-bg-base);
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--color-brand-primary); color: var(--color-ink);
  border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1;
}
.mobile-menu nav { margin-top: 72px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 11vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-primary);
  padding-block: 10px;
  border-bottom: var(--frame-thin) solid var(--color-border-soft);
}
.mobile-menu nav a[aria-current="page"] { color: var(--color-brand-primary); }
.mobile-menu .menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }

/* ═══ HERO — offset-editorial ═════════════════════════════════════════
   Headline in columns 1-5. Image pulled from column 4 so it runs BEHIND the
   type and continues off the right edge (grid-break mutation). */

.hero { position: relative; min-height: var(--hero-height); display: flex; align-items: center; overflow: hidden; }
.hero-grid { position: relative; width: 100%; }

.hero-media {
  position: relative;
  z-index: 1;
  margin-top: var(--s5);
}
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.hero-copy { position: relative; z-index: 2; }

@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-media {
    grid-column: 4 / span 10;      /* overlaps the text zone by 3 columns */
    grid-row: 1;
    margin-top: 0;
    margin-right: calc(var(--spacing-content-desktop) * -1 - 60px); /* bleeds off */
  }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-copy { grid-row: 1; }
}

/* The word FREE sits on a teal block. Ink on teal measures 8.89:1. */
.free-block {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-ink);
  padding: 0.06em 0.16em 0.1em;
  margin-left: -0.06em;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
    var(--color-bg-base) 0%,
    var(--color-bg-base) 26%,
    rgba(21,18,16,0.86) 44%,
    rgba(21,18,16,0.30) 66%,
    rgba(21,18,16,0.05) 100%);
}
@media (max-width: 899px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(21,18,16,0.15) 0%, rgba(21,18,16,0.9) 62%, var(--color-bg-base) 100%); }
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero-copy { margin-top: 34px; }
}

/* ═══ PAGE HEROES ═════════════════════════════════════════════════════
   distinguishing_feature 1: no section shares a composition strategy. Each
   subpage opens differently from the home hero and from the other two. */

/* about: type left, tall portrait column right, heavy top rule */
.phero-about { border-top: var(--frame) solid var(--color-accent); padding-top: 72px; }
.phero-about .grid12 { align-items: end; }
.phero-about .phero-copy { grid-column: 1 / span 7; }
.phero-about .phero-media { grid-column: 9 / span 4; }
.phero-about .phero-media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* services: full-width stencil headline sitting on a wide, shallow photo band */
.phero-services .phero-band { position: relative; overflow: hidden; margin-top: 56px; }
.phero-services .phero-band img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
.phero-services .phero-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,18,16,0.1) 0%, rgba(21,18,16,0.72) 100%);
}
@media (max-width: 899px) { .phero-services .phero-band img { aspect-ratio: 16 / 10; } }

/* contact: copy left, the address as a framed plate bolted to the right */
.phero-contact .phero-copy { grid-column: 1 / span 6; }
.phero-contact .phero-plate { grid-column: 8 / span 5; }

@media (max-width: 899px) {
  .phero-about { padding-top: 40px; }
  .phero-about .phero-media img { aspect-ratio: 4 / 3; }
}

/* ═══ SCHEDULE MODULE ═════════════════════════════════════════════════
   The category gap. Typographic, not a widget, and built to take more rows:
   recurring nights, one-offs, seasonal programming. */

.sched { border-top: var(--frame) solid var(--color-brand-primary); }
.sched-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  padding-block: 26px;
  border-bottom: var(--frame-thin) solid var(--color-border-soft);
  align-items: baseline;
}
@media (min-width: 760px) {
  .sched-row { grid-template-columns: minmax(190px, 1.1fr) minmax(150px, 0.9fr) 110px 1.6fr; padding-block: 30px; }
}
.sched-day {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.sched-time { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.sched-cost { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.sched-note { font-size: 0.95rem; color: var(--color-text-secondary); letter-spacing: 0.04em; }
.sched-row.is-free .sched-day,
.sched-row.is-free .sched-time,
.sched-row.is-free .sched-cost { color: var(--color-brand-primary); }
.sched-row.is-free { border-bottom-color: var(--color-brand-primary); }
.sched-row.is-closed .sched-day { color: var(--color-text-secondary); font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.sched-row.is-closed { padding-block: 14px; }

/* ═══ PROGRAMME LIST ══════════════════════════════════════════════════ */

.prog-item {
  display: grid;
  gap: 10px 40px;
  padding-block: 40px;
  border-bottom: var(--frame-thin) solid var(--color-border-soft);
}
@media (min-width: 860px) { .prog-item { grid-template-columns: 78px 1fr 1.35fr; align-items: start; } }
.prog-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ═══ ENTRANCES — gravity-drop ════════════════════════════════════════
   Elements arrive from above and settle with a small squash. The signature
   moment is the schedule: each day row lands in sequence at 60ms apart. */

@media (prefers-reduced-motion: no-preference) {
  [data-animate] { opacity: 0; will-change: transform, opacity; }
  [data-animate].is-in { animation: gravity-drop var(--entrance-duration) var(--gravity) both; }
  [data-animate].is-in { animation-delay: calc(var(--i, 0) * var(--stagger-delay)); }
}
@keyframes gravity-drop {
  0%   { opacity: 0; transform: translate3d(0, -56px, 0); }
  70%  { opacity: 1; transform: translate3d(0, 4px, 0) scaleY(0.98); }
  85%  { transform: translate3d(0, -2px, 0) scaleY(1.008); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1); }
}

/* Weight press: the gravity profile's hover personality, on cards only.
   Controls use the fast floor tokens instead, per animation-craft rule 9. */
@media (hover: hover) and (pointer: fine) {
  .weight { transition: transform var(--transition-speed) var(--gravity), border-color var(--transition-speed) var(--ease-out); }
  .weight:hover { transform: translate3d(0, 2px, 0); border-color: var(--color-brand-primary); }
}

/* Parallax on park photography. Scroll-bound, so the reduced-motion guard at
   the bottom of this file nulls it explicitly, not just its duration. */
[data-parallax] { will-change: transform; }

/* ═══ VISUAL BREAK ════════════════════════════════════════════════════ */

.vbreak { position: relative; overflow: hidden; }
.vbreak-media { position: absolute; inset: -12% 0; z-index: 0; }
.vbreak-media img { width: 100%; height: 100%; object-fit: cover; }
.vbreak::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(21,18,16,0.62) 0%, rgba(21,18,16,0.78) 55%, rgba(21,18,16,0.92) 100%);
}
.vbreak > .shell { position: relative; z-index: 2; }

/* ═══ COMMUNITY MEDIA CONTAINER ═══════════════════════════════════════
   Absorbs rough, user-shot vertical footage without breaking composition:
   a fixed 9:16 frame that crops rather than stretches, in a scroll rail. */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.vertical-slot {
  aspect-ratio: 9 / 16;
  border: var(--frame) solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
}
.vertical-slot img, .vertical-slot video { width: 100%; height: 100%; object-fit: cover; }
.vertical-slot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(21,18,16,0.92);
  color: var(--color-text-primary);
  font-size: 0.8125rem; letter-spacing: 0.06em;
  padding: 10px 12px;
}

/* ═══ FORMS ═══════════════════════════════════════════════════════════ */

.field { display: block; margin-bottom: var(--s4); }
.field > span {
  display: block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--label-letterspacing);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--color-paper);
  color: var(--color-ink);
  border: var(--frame) solid var(--color-ink);
  border-radius: 0;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  transition: border-color var(--control-speed) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.surface-paper .field input,
.surface-paper .field textarea { background: #fffdf8; }

/* ═══ FOOTER — the door plate ═════════════════════════════════════════
   A bolted shop sign rather than a three-column link block. The plate on the
   left is the mark; the hours on the right are set as an actual sign, which is
   the one fact people come back for. The welcome statement closes the page at
   a size somebody can read, not as grey fine print. */

.foot-plate-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) {
  .foot-plate-grid { grid-template-columns: minmax(260px, 340px) 1fr; gap: 72px; }
}

.plate {
  position: relative;
  border: var(--frame) solid var(--color-brand-primary);
  background: var(--color-bg-elevated);
  padding: 30px 28px;
}
/* Four bolt heads, one pseudo-element, no images. */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--color-brand-primary) 3px, transparent 3.5px),
    radial-gradient(circle, var(--color-brand-primary) 3px, transparent 3.5px),
    radial-gradient(circle, var(--color-brand-primary) 3px, transparent 3.5px),
    radial-gradient(circle, var(--color-brand-primary) 3px, transparent 3.5px);
  background-repeat: no-repeat;
  background-size: 10px 10px;
  background-position:
    9px 9px,
    calc(100% - 9px) 9px,
    9px calc(100% - 9px),
    calc(100% - 9px) calc(100% - 9px);
}
.plate-badge { width: 54px; height: 54px; border: var(--frame-thin) solid var(--color-brand-primary); margin-bottom: 18px; }
.plate-name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.plate-meta {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
  line-height: 1.5;
  margin: 0 0 14px;
}
.plate-note { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0; max-width: 26ch; }

/* The hours, set as a sign */
.foot-sign { border-top: var(--frame) solid var(--color-border); margin-top: 14px; }
.foot-sign-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 20px;
  padding-block: 14px;
  border-bottom: var(--frame-thin) solid var(--color-border-soft);
  align-items: baseline;
}
@media (min-width: 620px) {
  .foot-sign-row { grid-template-columns: 92px 140px 74px 1fr; }
}
.foot-sign-day {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.foot-sign-time { font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.foot-sign-cost { font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.foot-sign-note { font-size: 0.9rem; color: var(--color-text-secondary); }
.foot-sign-row.is-free .foot-sign-day,
.foot-sign-row.is-free .foot-sign-time,
.foot-sign-row.is-free .foot-sign-cost { color: var(--color-brand-primary); }
.foot-sign-row.is-free { border-bottom-color: var(--color-brand-primary); }
.foot-sign-row.is-shut { padding-block: 10px; }
.foot-sign-row.is-shut .foot-sign-day { font-size: 1rem; color: var(--color-text-secondary); }

.foot-stamp { margin-top: 32px; display: grid; gap: 10px; font-size: 0.98rem; }
.foot-stamp p { margin: 0; max-width: none; }

.foot-bottom { margin-top: 64px; padding-top: 28px; border-top: var(--frame-thin) solid var(--color-border-soft); }
.foot-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-bottom: 32px;
}
.foot-inline a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--label-letterspacing);
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 18px 8px 0;
  margin-right: 18px;
  border-right: var(--frame-thin) solid var(--color-border-soft);
  white-space: nowrap;
  transition: color var(--control-speed) var(--ease-out);
}
.foot-inline a:last-child { border-right: 0; margin-right: 0; }
@media (hover: hover) and (pointer: fine) { .foot-inline a:hover { color: var(--color-brand-primary); } }

/* The welcome closes the page, legible. Not grey fine print. */
.foot-welcome {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 34ch;
  margin: 0;
}
.foot-welcome em { font-style: normal; color: var(--color-accent); }

.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-list a { text-decoration: none; font-size: 0.9375rem; letter-spacing: 0.06em; }
@media (hover: hover) and (pointer: fine) { .foot-list a:hover { color: var(--color-brand-primary); } }

/* ═══ UTILITIES ═══════════════════════════════════════════════════════ */

.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.cluster { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ═══ REDUCED MOTION GUARD (required, must stay last) ═════════════════ */

@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;
  }
  /* Scroll-driven and looping rules are not duration-based. Null them. */
  [data-parallax], [class*="parallax"], .announce-track, [data-animate] {
    animation: none !important;
    animation-timeline: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
