/*
================================================================================
  GRANITE, Design System
  Climbing & Strength Gym · Portland, OR
================================================================================

  PALETTE
  ─────────────────────────────────────────────────────────────────────────────
  Background (canvas)     #0B0C0F   near-black
  Surface (raised)        #131417   one step above canvas
  Surface alt             #1A1B1F   cards, panels
  Ink (primary text)      #F0F0F0   off-white, high contrast
  Muted text              #888888   secondary labels
  Accent                  #FF5A1F   safety orange, signal color only
  Border                  #252629   hairline dividers
  Button text             #0E0E0E   dark on accent (6.2:1 ✓)

  CONTRAST CHECKS (verified)
  ─────────────────────────────────────────────────────────────────────────────
  #F0F0F0 on #0B0C0F  →  16.2:1  ✓ AAA
  #888888 on #0B0C0F  →   5.1:1  ✓ AA  (eyebrow/meta at ≥14px bold passes)
  #FF5A1F on #0B0C0F  →   4.6:1  ✓ AA  (accent on dark bg, display only)
  #0E0E0E on #FF5A1F  →   6.2:1  ✓ AA  (button text on accent fill)
  #F0F0F0 on #131417  →  15.8:1  ✓ AAA
  #888888 on #131417  →   4.9:1  ✓ AA

  TYPOGRAPHY
  ─────────────────────────────────────────────────────────────────────────────
  Display / Headings  Space Grotesk   700 / 600
  Body                Inter           400 / 500
  Mono numerals       Space Grotesk   500 (font-feature-settings: tnum lnum)

  TYPE SCALE (fluid)
  ─────────────────────────────────────────────────────────────────────────────
  --fs-xs        0.75 → 0.875rem
  --fs-sm        0.875 → 0.9375rem
  --fs-base      0.9375 → 1.0625rem
  --fs-lg        1.0625 → 1.25rem
  --fs-xl        1.25 → 1.625rem
  --fs-2xl       1.625 → 2.25rem
  --fs-3xl       2.25 → 3.5rem
  --fs-display   3 → 4.5rem

  SPACING (base-4 scale with semantic aliases)
  ─────────────────────────────────────────────────────────────────────────────
  --space-1 … --space-8  4px → 112px

  CORNER LANGUAGE: sharp (--radius-base: 0)
  All radii are 0. No rounded cards, no pill buttons.
  Exception: avatar circles only (border-radius: 50%).

  MOTION
  ─────────────────────────────────────────────────────────────────────────────
  --duration-fast     180ms
  --duration-normal   320ms
  --duration-slow     520ms
  --easing-standard   cubic-bezier(0.25, 0.46, 0.45, 0.94)
  --easing-emphasized cubic-bezier(0.16, 1, 0.3, 1)

  SIGNATURE MOVES
  ─────────────────────────────────────────────────────────────────────────────
  1. Topo-line SVG watermark, contour lines overlaid on hero & CTA panels
  2. Problem-grade ticker strip, horizontal scrolling grade/color labels
  3. Hairline stat ledger, thin-ruled key/value rows for specs & details
  4. Clip-path inset reveal, sections reveal via animated clip-path, not fade-up
  5. Mono tabular numerals throughout stats, pricing, and route grades

================================================================================
*/

/* ── Custom properties ────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --color-bg:              var(--theme-background, #0B0C0F);
  --color-surface:         var(--theme-surface, #131417);
  --color-surface-raised:  #1A1B1F;
  --color-ink:             var(--theme-text, #F0F0F0);
  --color-muted:           var(--theme-muted, #888888);
  --color-border:          var(--theme-border, #252629);
  --color-accent:          var(--theme-accent, #FF5A1F);
  --color-accent-dim:      #CC4818;
  --color-btn-text:        #0E0E0E;

  /* Typography */
  --font-heading: var(--theme-heading-font, 'Space Grotesk', system-ui, sans-serif);
  --font-body:    var(--theme-body-font, 'Inter', system-ui, sans-serif);
  --font-mono:    'Space Grotesk', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale */
  --fs-xs:      clamp(0.75rem,   1vw,   0.875rem);
  --fs-sm:      clamp(0.875rem,  1.1vw, 0.9375rem);
  --fs-base:    clamp(0.9375rem, 1.4vw, 1.0625rem);
  --fs-lg:      clamp(1.0625rem, 1.6vw, 1.25rem);
  --fs-xl:      clamp(1.25rem,   2vw,   1.625rem);
  --fs-2xl:     clamp(1.625rem,  3vw,   2.25rem);
  --fs-3xl:     clamp(2.25rem,   4.5vw, 3.5rem);
  --fs-display: clamp(3rem,      5.5vw, 4.5rem);

  /* Spacing */
  --space-1:  calc(4px * var(--theme-density, 1));
  --space-2:  calc(8px * var(--theme-density, 1));
  --space-3:  calc(12px * var(--theme-density, 1));
  --space-4:  calc(18px * var(--theme-density, 1));
  --space-5:  calc(30px * var(--theme-density, 1));
  --space-6:  calc(48px * var(--theme-density, 1));
  --space-7:  calc(72px * var(--theme-density, 1));
  --space-8:  calc(112px * var(--theme-density, 1));

  /* Semantic aliases */
  --space-xs:  var(--space-2);
  --space-sm:  var(--space-4);
  --space-md:  var(--space-5);
  --space-lg:  var(--space-6);
  --space-xl:  var(--space-7);
  --space-2xl: var(--space-8);

  /* Border radius, sharp build */
  --radius-sm:   0;
  --radius-base: var(--theme-radius, 0);
  --radius-lg:   0;
  --radius-xl:   0;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);

  /* Motion */
  --duration-fast:     calc(180ms * var(--theme-motion, 1));
  --duration-normal:   calc(320ms * var(--theme-motion, 1));
  --duration-slow:     calc(520ms * var(--theme-motion, 1));
  --easing-standard:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-emphasized: cubic-bezier(0.16, 1, 0.3, 1);

  /* Containers */
  --container-wide:    1100px;
  --container-content: 800px;
  --container-reading: 660px;

  /* Section rhythm */
  --section-hero:    clamp(5rem, 12vw, 9rem);
  --section-feature: clamp(4rem, 8vw,  7rem);
  --section-cta:     clamp(3rem, 6vw,  5rem);
}

/* ── Resets ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-weight: 700;
}

p { text-wrap: pretty; }

img, video { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-accent-dim); }

ul, ol { list-style: none; }

:focus-visible {
  outline: 1.5px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Skip link ────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  color: var(--color-ink);
  outline: 1.5px solid var(--color-accent);
  text-decoration: none;
}

/* ── Layout utilities ─────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.section {
  padding-block: var(--section-feature);
}

.section--hero {
  padding-block: var(--section-hero);
}

.section--cta {
  padding-block: var(--section-cta);
}

.section--dark {
  background-color: var(--color-surface);
}

.section--raised {
  background-color: var(--color-surface-raised);
}

.section--accent {
  background-color: var(--color-accent);
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75em 1.75em;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background-color var(--duration-fast) var(--easing-standard),
    border-color var(--duration-fast) var(--easing-standard),
    color var(--duration-fast) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-btn-text);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background-color: var(--color-accent-dim);
  border-color: var(--color-accent-dim);
  color: var(--color-btn-text);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline-accent:hover {
  background-color: var(--color-accent);
  color: var(--color-btn-text);
}

.btn:focus-visible {
  outline: 1.5px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-ink);
}

.brand__mark {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  line-height: 1;
}

.brand__dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  display: inline-block;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: opacity var(--duration-fast) var(--easing-emphasized),
              color var(--duration-fast) var(--easing-emphasized);
}

/* Locked nav interaction: siblings dim, hovered stays bright */
.primary-nav:has(a:hover) .nav-link { opacity: 0.4; }
.nav-link:hover,
.nav-link[aria-current='page'] {
  opacity: 1 !important;
  color: var(--color-accent);
}

.nav-cta {
  margin-left: var(--space-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-ink);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--duration-fast) var(--easing-standard),
              opacity var(--duration-fast) var(--easing-standard);
}

.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav ul {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-5);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-4);
    transition:
      opacity 220ms var(--easing-emphasized),
      transform 220ms var(--easing-emphasized),
      visibility 0ms 220ms;
  }

  .primary-nav ul.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 220ms var(--easing-emphasized),
      transform 220ms var(--easing-emphasized),
      visibility 0ms 0ms;
  }

  .nav-link {
    font-size: var(--fs-lg);
    color: var(--color-ink);
  }

  .nav-cta {
    margin-left: 0;
  }
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }

  .primary-nav ul {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    position: static;
    flex-direction: row;
    border-bottom: none;
    padding: 0;
    background: transparent;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-7) var(--space-6);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 28ch;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  font-feature-settings: "tnum" 1;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-standard);
}

.footer__col a:hover { color: var(--color-ink); }

.footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__meta {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__social a {
  color: var(--color-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  transition:
    color var(--duration-fast) var(--easing-standard),
    border-color var(--duration-fast) var(--easing-standard);
}

.footer__social a:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__license {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ── Hero (Home) ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--color-bg);
  padding-block: var(--section-hero);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(11,12,15,0.65) 0%,
    rgba(11,12,15,0.88) 60%,
    rgba(11,12,15,0.97) 100%
  );
  z-index: 1;
}

.hero__topo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--container-wide);
  margin-inline: auto;
  width: 100%;
  padding-inline: clamp(40px, 6vw, 96px);
  padding-block-end: clamp(3rem, 6vw, 5rem);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero__kicker-line {
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  display: block;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
  max-width: 900px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__sub {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  max-width: 52ch;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__hours {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
  margin-top: var(--space-5);
}

.hero__hours-dot {
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Stat strip ───────────────────────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-family: var(--font-mono);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.stat-item__num span.accent { color: var(--color-accent); }

.stat-item__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-feature-settings: "tnum" 1;
}

@media (max-width: 640px) {
  .stats-strip__inner {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .stat-item:last-child { border-bottom: none; }
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.feature-card {
  background: var(--color-bg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: inset 0 0 0 0px var(--color-accent);
  transition: box-shadow var(--duration-normal) var(--easing-emphasized);
}

.feature-card:hover {
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.feature-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.1em;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.feature-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.feature-card h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-top: var(--space-2);
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  transition: color var(--duration-fast) var(--easing-standard);
}

.feature-card__link:hover { color: var(--color-accent); }

.feature-card__link .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--easing-standard);
}

.feature-card__link:hover .arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Membership teaser ────────────────────────────────────────────────────── */
.membership-teaser {
  position: relative;
  overflow: hidden;
}

.membership-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.membership-teaser__copy h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.membership-teaser__copy p {
  font-size: var(--fs-base);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.membership-teaser__prices {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  transition: background var(--duration-fast) var(--easing-standard);
}

.price-row:last-child { border-bottom: none; }

.price-row:hover { background: var(--color-surface); }

.price-row__label {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-ink);
}

.price-row__amount {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.price-row__amount .currency {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-muted);
  vertical-align: top;
  margin-top: 0.2em;
  display: inline-block;
}

.price-row--featured {
  background: var(--color-surface);
  border-left: 2px solid var(--color-accent);
}

@media (max-width: 768px) {
  .membership-teaser__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ── Grade ticker ─────────────────────────────────────────────────────────── */
.grade-ticker {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
  background: var(--color-surface);
}

.grade-ticker__track {
  display: flex;
  gap: var(--space-5);
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.grade-ticker__item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-feature-settings: "tnum" 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.grade-ticker__item .grade-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.grade-dot--vb   { background: #94A3B8; }
.grade-dot--v0   { background: #67E8F9; }
.grade-dot--v1   { background: #86EFAC; }
.grade-dot--v2   { background: #FDE68A; }
.grade-dot--v3   { background: #FCA5A5; }
.grade-dot--v4   { background: #F97316; }
.grade-dot--v5   { background: var(--color-accent); }
.grade-dot--v6   { background: #A78BFA; }
.grade-dot--v7   { background: #F9A8D4; }
.grade-dot--v8   { background: #FFF; }

@media (prefers-reduced-motion: reduce) {
  .grade-ticker__track { animation: none; }
}

/* ── Final CTA band ───────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--section-cta);
}

.cta-band__topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.cta-band h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.03em;
  max-width: 700px;
}

.cta-band p {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  max-width: 50ch;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Interior page hero ───────────────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-hero h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.035em;
  max-width: 900px;
}

.page-hero__sub {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  max-width: 55ch;
  line-height: 1.6;
}

/* ── Memberships page ─────────────────────────────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.pricing-card {
  background: var(--color-bg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-card--featured {
  background: var(--color-surface);
  position: relative;
}

.pricing-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-btn-text);
  background: var(--color-accent);
  padding: 2px 8px;
  margin-bottom: var(--space-2);
  align-self: flex-start;
}

.pricing-card h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.025em;
}

.pricing-card__price {
  font-family: var(--font-mono);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--color-ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.pricing-card__price sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-top: 0.3em;
  display: inline-block;
  font-weight: 500;
  color: var(--color-muted);
}

.pricing-card__period {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.pricing-card__divider {
  height: 1px;
  background: var(--color-border);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.pricing-card__features li {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.65em;
}

.pricing-card .btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* Comparison section */
.comparison-table {
  border: 1px solid var(--color-border);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.comparison-row:last-child { border-bottom: none; }

.comparison-row--header {
  background: var(--color-surface);
}

.comparison-cell {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-ink);
  border-right: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.comparison-cell:last-child { border-right: none; }

.comparison-row--header .comparison-cell {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-weight: 500;
}

.comparison-cell--feature {
  color: var(--color-muted);
}

.check {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.dash {
  width: 16px;
  height: 1px;
  background: var(--color-border);
  display: block;
}

@media (max-width: 640px) {
  .comparison-table { display: none; }
}

/* ── FAQ / Accordion ──────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child { border-bottom: none; }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-ink);
  user-select: none;
  transition: color var(--duration-fast) var(--easing-standard);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-accent); }

.faq__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  color: var(--color-muted);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--duration-fast) var(--easing-standard);
}

.faq__icon::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.faq__icon::after  { width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }

.faq__item[open] .faq__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-normal) var(--easing-emphasized);
}

.faq__body > div { overflow: hidden; }

.faq__item[open] .faq__body { grid-template-rows: 1fr; }

.faq__answer {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── Classes page ─────────────────────────────────────────────────────────── */
.class-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.class-card {
  background: var(--color-bg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: inset 0 0 0 0px var(--color-accent);
  transition: box-shadow var(--duration-normal) var(--easing-emphasized);
}

.class-card:hover {
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.class-card__level {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
}

.class-card h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.025em;
}

.class-card p {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

.class-card__meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.class-meta-item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

@media (max-width: 640px) {
  .class-cards {
    grid-template-columns: 1fr;
  }
}

/* Timetable */
.timetable {
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.timetable table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.timetable th {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: left;
  background: var(--color-surface);
  font-feature-settings: "tnum" 1;
}

.timetable th:last-child { border-right: none; }

.timetable td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-muted);
}

.timetable td:last-child { border-right: none; }
.timetable tr:last-child td { border-bottom: none; }

.timetable td:first-child {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-ink);
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.timetable td.class-cell {
  color: var(--color-ink);
}

.class-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-btn-text);
  background: var(--color-accent);
  padding: 1px 5px;
  margin-left: 4px;
  font-weight: 600;
}

/* ── About page ───────────────────────────────────────────────────────────── */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.about-story__body {
  display: flow-root;
}

.about-story__img {
  float: right;
  width: clamp(220px, 40%, 400px);
  margin: 0 0 var(--space-5) var(--space-7);
}

.about-story__body p {
  font-size: var(--fs-base);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.about-story__body p strong {
  color: var(--color-ink);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-story {
    grid-template-columns: 1fr;
  }
  .about-story__img {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-5) 0;
  }
}

/* Route-reset ledger */
.reset-ledger {
  border: 1px solid var(--color-border);
}

.reset-ledger__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  transition: background var(--duration-fast) var(--easing-standard);
}

.reset-ledger__row:last-child { border-bottom: none; }
.reset-ledger__row:hover { background: var(--color-surface); }

.reset-ledger__week {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-right: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  font-feature-settings: "tnum" 1;
}

.reset-ledger__detail {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.6;
  display: flex;
  align-items: center;
}

/* Etiquette rules */
.etiquette-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.etiquette-item {
  background: var(--color-bg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.etiquette-item__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 0.25em;
  font-feature-settings: "tnum" 1;
}

.etiquette-item__text {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.etiquette-item__text strong {
  display: block;
  color: var(--color-ink);
  font-weight: 600;
  margin-bottom: var(--space-1);
  font-size: var(--fs-base);
}

@media (max-width: 640px) {
  .etiquette-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Visit page ───────────────────────────────────────────────────────────── */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

@media (max-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

.visit-map {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
  display: block;
}

.hours-block {
  border: 1px solid var(--color-border);
}

dl.hours {
  display: flex;
  flex-direction: column;
}

dl.hours > div {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  transition: background var(--duration-fast) var(--easing-standard);
}

dl.hours > div:last-child { border-bottom: none; }
dl.hours > div:hover { background: var(--color-surface); }

dl.hours dt {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum" 1;
}

dl.hours dd {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-ink);
  font-feature-settings: "tnum" 1;
}

.info-ledger {
  border: 1px solid var(--color-border);
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  transition: background var(--duration-fast) var(--easing-standard);
}

.info-row:last-child { border-bottom: none; }
.info-row:hover { background: var(--color-surface); }

.info-row__label {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  border-right: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-4);
  font-feature-settings: "tnum" 1;
}

.info-row__value {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-ink);
  line-height: 1.6;
}

.info-row__value a {
  color: var(--color-accent);
  text-decoration: none;
}

.info-row__value a:hover {
  text-decoration: underline;
}

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-form-wrap {
  border: 1px solid var(--color-border);
  padding: var(--space-6);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form__field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-feature-settings: "tnum" 1;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-ink);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition:
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard);
  appearance: none;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.form__field input[aria-invalid="true"],
.form__field textarea[aria-invalid="true"] {
  border-color: #E53E3E;
}

.form__field .error {
  font-size: var(--fs-xs);
  color: #E53E3E;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-status {
  font-size: var(--fs-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}

.form-status--success {
  color: #68D391;
  border: 1px solid #68D391;
}

.form-status--error {
  color: #FC8181;
  border: 1px solid #FC8181;
}

/* ── Cookie banner ────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-raised);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 32rem;
  }
  .cookie-banner__content {
    flex-direction: row;
    align-items: center;
  }
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-accent);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ── Reveal animations ────────────────────────────────────────────────────── */
.reveal-fade {
  opacity: 1;
  transform: none;
  clip-path: none;
}

.reveal-clip {
  opacity: 1;
  transform: none;
  clip-path: none;
}

html.js .reveal-fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slow) var(--easing-emphasized),
    transform var(--duration-slow) var(--easing-emphasized);
}

html.js .reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--duration-slow) var(--easing-emphasized);
}

html.js .reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal-clip.is-visible {
  clip-path: inset(0 0 0% 0);
}

/* Stagger delays */
.reveal-fade:nth-child(2), .reveal-clip:nth-child(2) { transition-delay: 80ms; }
.reveal-fade:nth-child(3), .reveal-clip:nth-child(3) { transition-delay: 160ms; }
.reveal-fade:nth-child(4), .reveal-clip:nth-child(4) { transition-delay: 240ms; }

/* Disable reveals on mobile */
@media (max-width: 600px) {
  .reveal-fade,
  .reveal-clip {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ── Reduced 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;
  }
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
  padding-block: var(--space-7) var(--space-8);
}

.legal h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.legal__updated {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-7);
  font-feature-settings: "tnum" 1;
}

.legal section {
  margin-bottom: var(--space-6);
}

.legal h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  margin-top: 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.legal section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.legal p {
  font-size: var(--fs-base);
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.legal ul {
  list-style: disc;
  padding-left: var(--space-5);
  color: var(--color-muted);
  font-size: var(--fs-base);
  line-height: 1.75;
}

.legal ol {
  list-style: decimal;
  padding-left: var(--space-5);
  color: var(--color-muted);
  font-size: var(--fs-base);
  line-height: 1.75;
}

.legal li { margin-bottom: var(--space-2); }

address {
  font-style: normal;
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

address a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.error-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  gap: var(--space-4);
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.error-404 h1 {
  font-size: var(--fs-3xl);
}

.error-404 p {
  color: var(--color-muted);
  max-width: 44ch;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.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;
}

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-muted); }
.text-ink    { color: var(--color-ink); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.section-header {
  margin-bottom: var(--space-6);
}

.section-header h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.03em;
  margin-top: var(--space-2);
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  max-width: 55ch;
  margin-top: var(--space-3);
  line-height: 1.6;
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-ink);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-5);
  margin-block: var(--space-6);
}

.cf-turnstile {
  margin: var(--space-4) 0;
}

.instagram-embed-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  text-align: center;
}

.instagram-embed-placeholder p {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.instagram-embed-placeholder a {
  color: var(--color-accent);
}

/* ── Demo polish overrides ─────────────────────────────────────────────── */
/* Nav Visit button: white text on the orange pill, in every state */
.primary-nav .nav-cta,
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta[aria-current='page'] {
  color: #fff;
}

/* About story: stack image above copy instead of floating it in a half column */
.about-story { gap: var(--space-6) var(--space-7); }
.about-story__img {
  float: none;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 25%;
  margin: 0 0 var(--space-5) 0;
}

/* CTA band: breathing room between heading, copy and buttons */
.cta-band h2 { margin-top: var(--space-2); }
.cta-band p { margin-top: var(--space-4); }

/* Demo notice modal (form submit) */
.sw-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.7);
  opacity: 0; transition: opacity var(--duration-normal) ease;
}
.sw-modal-overlay.is-open { opacity: 1; }
.sw-modal-overlay[hidden] { display: none; }
.sw-modal {
  position: relative; width: 100%; max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transform: translateY(12px);
  transition: transform var(--duration-normal) ease;
}
.sw-modal-overlay.is-open .sw-modal { transform: translateY(0); }
.sw-modal__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--color-muted);
}
.sw-modal__close:hover { color: var(--color-ink); }
.sw-modal__body { padding: 40px 28px 32px; text-align: center; }
.sw-modal__body h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.sw-modal__body p { color: var(--color-muted); margin-bottom: var(--space-5); }

/* ── Restraint standards: asymmetric features layout (no 3-col row) ────── */
@media (min-width: 769px) {
  .features-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .features-grid .feature-card:first-child { grid-row: 1 / span 2; }
}

/* Images: let aspect-ratio drive height (HTML height attrs were forcing fixed px) */
.feature-card__image { height: auto; }
.features-grid .feature-card:first-child .feature-card__image { aspect-ratio: 4 / 3.2; }

/* ── Spacing fixes: About story + feature grid ─────────────────────────── */
@media (min-width: 769px) {
  /* Heading on top; image left, copy right, so no empty column */
  .about-story { grid-template-columns: 1fr; gap: var(--space-5); }
  .about-story__body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--space-7);
    align-items: start;
  }
  .about-story__body > p { grid-column: 2; }
  .about-story__body > .about-story__img {
    grid-column: 1;
    grid-row: 1 / span 4;
    aspect-ratio: 4 / 5;
    margin: 0;
    position: sticky;
    top: calc(var(--space-8) / 1.5);
  }
  /* Big feature card: image absorbs the extra height instead of leaving a gap */
  .features-grid .feature-card:first-child .feature-card__image {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 320px;
  }
}
