/* ==========================================================================
   Ancient City CrossFit — St. Augustine Beach, FL
   Art direction: "Historic St. Augustine, cleanly built."
   Coquina-cream base + logo navy + logo gold, terracotta as second accent.
   Display: Fraunces (transitional serif). Body/UI: Satoshi (modern sans).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.125rem, 1.35rem + 2.6vw, 3.5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette (derived from the official badge logo) */
  --navy: #121c2e;
  --navy-deep: #0c1421;
  --navy-soft: #22314b;
  --gold: #c2a06b;
  --gold-deep: #7a5f2c; /* AA-safe gold-family text on cream */
  --gold-pale: #e6d8bd;
  --clay: #a85b3f; /* terracotta / barrel-tile roofs */
  --clay-deep: #8c4630;

  --cream: #f3ede2; /* coquina / limestone */
  --cream-2: #efe7d9;
  --paper: #faf7f0;
  --line: #ddd2bd;
  --line-soft: #e7ddcb;

  --text: #14192a;
  --text-muted: #565f72;
  --text-faint: #626b7d;
  --text-inverse: #f6f1e7;

  --error: #9b2c2c;
  --success: #2f6b46;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --arch: 44% 44% 6px 6px / 32% 32% 6px 6px; /* colonial arcade arch */

  --shadow-sm: 0 1px 2px rgb(18 28 46 / 0.07);
  --shadow-md: 0 6px 18px rgb(18 28 46 / 0.08);
  --shadow-lg: 0 22px 50px rgb(18 28 46 / 0.13);

  --content: 1200px;
  --content-narrow: 720px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 200ms var(--ease);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 74px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  overflow-x: hidden;
  position: relative;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings:
    'SOFT' 20,
    'WONK' 0;
  color: var(--navy);
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--navy);
}

p,
li,
figcaption,
dd {
  text-wrap: pretty;
}

a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--gold-deep);
}

::selection {
  background: var(--gold-pale);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 200;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--text-inverse);
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(var(--space-20), 9vw, var(--space-32));
  position: relative;
  z-index: 1;
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line-soft);
}
.section--sand {
  background: var(--cream-2);
  border-block: 1px solid var(--line-soft);
}
.section--navy {
  background: var(--navy);
  color: var(--text-inverse);
}
.section--navy h2,
.section--navy h3 {
  color: var(--text-inverse);
}

/* Section header */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.section--navy .eyebrow {
  color: var(--gold);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}
.section-head h2 {
  font-size: var(--text-2xl);
}
.section-head .lede {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 44rem;
}
.section--navy .section-head .lede {
  color: #cfd6e2;
}

.rule-hair {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin-top: var(--space-6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 3px 0 var(--gold-deep);
}
.btn--primary:hover {
  background: #cfae78;
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--gold-deep);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--gold-deep);
}
.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--text-inverse);
}
.section--navy .btn--outline {
  border-color: #7c879c;
  color: var(--text-inverse);
}
.section--navy .btn--outline:hover {
  background: var(--text-inverse);
  color: var(--navy);
}
.btn--lg {
  font-size: 0.9375rem;
  padding: 1.05em 1.7em;
}
.btn--sm {
  padding: 0.7em 1.15em;
  font-size: var(--text-xs);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(243 237 226 / 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 300ms var(--ease),
    border-color 300ms var(--ease),
    background 300ms var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
  padding-block: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 48px;
  height: 48px;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-3), 1.6vw, var(--space-6));
  list-style: none;
}
.nav__list a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--navy-soft);
  padding-block: var(--space-2);
  position: relative;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current='true']::after {
  transform: scaleX(1);
}
.header__cta {
  flex: none;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--line);
  background: rgb(250 247 240 / 0.8);
  padding: 0.5em 1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  font-variation-settings:
    'SOFT' 30,
    'WONK' 1;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--navy);
}
.hero__sub {
  margin-top: var(--space-6);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34rem;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero__loc {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hero__loc strong {
  color: var(--navy);
  font-weight: 600;
}
.hero__loc svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--gold-deep);
}

.hero__figure {
  margin: 0;
  position: relative;
}
.photo-arch {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow-lg);
}
.photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__figure .photo-arch {
  border-radius: var(--arch);
}
.hero__figure .photo-arch img {
  aspect-ratio: 3 / 4;
  object-position: 50% 35%;
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
  max-width: 88%;
}
.hero__badge img {
  width: 46px;
  height: 46px;
  flex: none;
}
.hero__badge span {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.hero__badge span small {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy);
  color: var(--text-inverse);
}
.trust ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  padding-block: var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.trust li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.trust li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex: none;
}

/* ---------- Intro steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 2.6vw, var(--space-10));
}
.step__num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-4);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.step p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.intro__layout .steps {
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.intro__layout .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  align-items: start;
}
.intro__layout .step__num {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  min-width: 4.25rem;
  white-space: nowrap;
  padding-top: 0.35em;
}
.intro__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.intro__note {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- Programs ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(var(--space-5), 2vw, var(--space-8));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 2.2vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.card h3 {
  font-size: var(--text-lg);
}
.card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.programs__figure {
  margin-top: clamp(var(--space-10), 4vw, var(--space-16));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-6), 4vw, var(--space-16));
  align-items: center;
}
.programs__figure .photo-arch img {
  aspect-ratio: 3 / 4;
  object-position: 50% 40%;
}
.pullquote {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--navy);
  font-variation-settings:
    'SOFT' 40,
    'WONK' 1;
}
.pullquote + p {
  margin-top: var(--space-5);
  color: var(--text-muted);
}

/* ---------- Intensity break (B&W) ---------- */
.break {
  background: var(--navy);
  color: var(--text-inverse);
  padding-block: clamp(var(--space-16), 7vw, var(--space-24));
  overflow: hidden;
}
.break__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.break__grid .photo-arch {
  box-shadow: none;
  background: var(--navy-deep);
  max-width: 380px;
}
.break__grid .photo-arch img {
  aspect-ratio: 3 / 4;
  object-position: 50% 45%;
}
.break h2,
.break h3 {
  color: var(--text-inverse);
}
.break .eyebrow {
  color: var(--gold);
}
.break blockquote {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--text-inverse);
  font-variation-settings:
    'SOFT' 40,
    'WONK' 1;
}
.break cite {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Schedule ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: var(--text-sm);
}
caption {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-soft);
}
th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  background: var(--cream-2);
  white-space: nowrap;
}
tbody th {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
td {
  white-space: nowrap;
}
.table-hint {
  display: none;
}
@media (max-width: 900px) {
  .table-hint {
    display: block;
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
  }
}
td span.cls {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.note {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.note strong {
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  white-space: nowrap;
}

/* ---------- Pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-5), 2.4vw, var(--space-8));
  align-items: stretch;
}
.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 2.4vw, var(--space-8));
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--feature {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--text-inverse);
  box-shadow: var(--shadow-lg);
}
.tier--feature h3,
.tier--feature .tier__price {
  color: var(--text-inverse);
}
.tier__flag {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: var(--radius-full);
  padding: 0.4em 1em;
}
.tier h3 {
  font-size: var(--text-lg);
}
.tier__price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
  color: var(--navy);
}
.tier__price small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.tier--feature .tier__price small {
  color: #c3cbd9;
}
.tier ul {
  list-style: none;
  margin: var(--space-6) 0 var(--space-8);
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.tier--feature ul {
  color: #cfd6e2;
}
.tier li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.tier li::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  flex: none;
  background: var(--gold);
  border-radius: 50%;
}
.tier .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 215px);
  gap: clamp(var(--space-3), 1.4vw, var(--space-5));
}
.gallery > li {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-soft);
  border: 1px solid var(--line);
}
.gallery > li:nth-child(1),
.gallery > li:nth-child(4) {
  grid-column: span 4;
  grid-row: span 2;
}
.gallery > li:nth-child(2),
.gallery > li:nth-child(3) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery > li:nth-child(2) img,
.gallery > li:nth-child(3) img {
  object-position: 50% 32%;
}
.gallery > li:hover img {
  transform: scale(1.035);
}
@media (prefers-reduced-motion: reduce) {
  .gallery img,
  .gallery > li:hover img {
    transition: none;
    transform: none;
  }
}
#gallery .note {
  margin-top: clamp(var(--space-6), 2.5vw, var(--space-10));
}

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-5), 2vw, var(--space-8));
  align-items: start;
}
.quote {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-5), 2vw, var(--space-8));
}
.quote p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--navy);
  margin: 0;
}
.quote footer {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 52rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.3em;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 2px 100% no-repeat;
  transition: transform 260ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 2px 100% no-repeat;
}
.faq summary:hover {
  color: var(--gold-deep);
}
.faq__answer {
  padding-bottom: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 44rem;
}
.faq details[open] .faq__answer {
  animation: fade-up 340ms var(--ease) both;
}

/* ---------- Lead form ---------- */
.lead {
  background: var(--navy);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.lead__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}
.lead h2 {
  font-size: var(--text-2xl);
  color: var(--text-inverse);
}
.lead__copy p {
  color: #cfd6e2;
  margin-top: var(--space-5);
}
.lead__list {
  list-style: none;
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: #cfd6e2;
}
.lead__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.lead__list svg {
  flex: none;
  color: var(--gold);
  margin-top: 2px;
}

.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-lg);
  color: var(--text);
  position: relative;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.field label .opt {
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75em 0.9em;
  font-size: var(--text-sm);
  color: var(--text);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314192a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.4em;
}
.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--gold);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--navy);
}
.field .err {
  font-size: var(--text-xs);
  color: var(--error);
  font-weight: 600;
  min-height: 0;
  display: none;
  align-items: center;
  gap: 6px;
}
.field.is-invalid .err {
  display: flex;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
  background: #fdf6f5;
}
.form-foot {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.form-foot .fine {
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 24rem;
}
.form-error-summary {
  display: none;
  margin-bottom: var(--space-6);
  border: 1.5px solid var(--error);
  background: #fdf1ef;
  color: #7d2222;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-error-summary.is-visible {
  display: block;
}

.form-success {
  display: none;
  text-align: left;
}
.form-success.is-visible {
  display: block;
  animation: fade-up 500ms var(--ease) both;
}
.form-success__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
}
.form-success h3 {
  font-size: var(--text-xl);
}
.form-success p {
  color: var(--text-muted);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
.form-success dl {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}
.form-success dt {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  padding-top: 3px;
}
.form-success dd {
  color: var(--navy);
  overflow-wrap: anywhere;
}
.form-success .btn {
  margin-top: var(--space-8);
}
.is-hidden {
  display: none !important;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: #cfd6e2;
  padding-block: clamp(var(--space-16), 6vw, var(--space-24)) var(--space-8);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}
.footer h2,
.footer h3 {
  color: var(--text-inverse);
}
.footer__brand img {
  width: 128px;
  height: 128px;
}
.footer__est {
  margin-top: var(--space-5);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.footer__brand p {
  margin-top: var(--space-4);
  max-width: 22rem;
}
.footer h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.footer address {
  font-style: normal;
}
.footer a {
  color: #e8e2d6;
  text-decoration-color: rgb(194 160 107 / 0.6);
}
.footer a:hover {
  color: #fff;
  text-decoration-color: var(--gold);
}
.footer a.btn--primary,
.footer a.btn--primary:hover {
  color: var(--navy-deep);
  text-decoration: none;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.footer__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-2);
}
.footer__hours dt {
  color: #a8b2c2;
}
.footer__hours dd {
  color: #e8e2d6;
  font-variant-numeric: tabular-nums;
}
.map-frame {
  border: 1px solid rgb(194 160 107 / 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a1220;
}
.map-frame iframe {
  width: 100%;
  height: 260px;
  border: 0;
  filter: saturate(0.85) contrast(0.95);
}
.socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.socials a {
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid rgb(232 226 214 / 0.25);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e8e2d6;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.socials a svg {
  flex: none;
}
.socials a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.footer__bottom {
  margin-top: clamp(var(--space-10), 4vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid rgb(232 226 214 / 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #98a2b3;
}

/* ---------- Motion ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 90ms;
}
.reveal-delay-2 {
  transition-delay: 180ms;
}
.reveal-delay-3 {
  transition-delay: 270ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid,
  .intro__layout,
  .programs__figure,
  .break__grid,
  .testimonials__grid,
  .lead__grid {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .hero__figure,
  .programs__figure .photo-arch {
    max-width: 560px;
    margin-inline: auto;
  }
  .break__grid .photo-arch {
    max-width: 340px;
    margin-inline: auto;
  }
  .hero__figure {
    margin-top: var(--space-4);
  }
  .steps,
  .tiers {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(130px, 20vw, 190px);
  }
  .gallery > li:nth-child(1),
  .gallery > li:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery > li:nth-child(2),
  .gallery > li:nth-child(3) {
    grid-column: span 1;
    grid-row: span 3;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-6);
    display: none;
    margin-left: 0;
  }
  .nav.is-open {
    display: block;
    animation: fade-up 260ms var(--ease) both;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li + li {
    border-top: 1px solid var(--line-soft);
  }
  .nav__list a {
    display: block;
    padding-block: var(--space-4);
    font-size: var(--text-base);
  }
  .nav__list a::after {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .header__cta {
    margin-left: auto;
    order: 2;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand__text {
    display: none;
  }
  .hero h1 {
    letter-spacing: -0.01em;
  }
  .hero__badge {
    left: 0;
    bottom: -14px;
  }
  .tiers,
  .steps {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery > li:nth-child(1),
  .gallery > li:nth-child(2),
  .gallery > li:nth-child(3),
  .gallery > li:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__brand img {
    width: 104px;
    height: 104px;
  }
  .trust ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .trust li + li::before {
    display: none;
  }
  .form-foot .btn,
  .hero__actions .btn {
    width: 100%;
  }
  .form-success dl {
    grid-template-columns: 1fr;
    gap: var(--space-1) 0;
  }
  .form-success dd {
    margin-bottom: var(--space-3);
  }
}
