/* =========================================================================
   GlowFit — styles.css
   Warm minimalist wellness. Qenliago Italic = display, Host Grotesk = body/UI.
   ========================================================================= */

/* ----------------------------------- Fonts ----------------------------------- */
@font-face {
  font-family: "Qenliago";
  src: url("fonts/Qenliago-Italic.woff2") format("woff2"),
       url("fonts/Qenliago-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/HostGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------- Tokens ---------------------------------- */
:root {
  /* brand palette — main (guidelines p.07) */
  --cream:       #efe7da;
  --sand:        #c1b6a4;
  --light-cream: #e1daca;
  /* brand palette — support (guidelines p.09) */
  --espresso:        #3b2d26;
  --charcoal:        #4a4743;
  --sage:            #7a7b63;
  --camel:           #c8a97e;

  /* terracotta — reserved exclusively for CTA elements (booking buttons + form submit).
     Deep AA-passing fill: white on this passes 4.5:1 (raw terracotta on cream is 3.3:1). */
  --terracotta-deep: #8a6258;
  --text:        var(--espresso);
  --text-muted:  rgba(59, 45, 38, 0.72);
  --text-soft:   rgba(59, 45, 38, 0.46);
  --line:        rgba(59, 45, 38, 0.12);
  --line-strong: rgba(59, 45, 38, 0.22);
  --surface:     #f4eee4;          /* card surface, a touch lighter than cream */
  --shadow:      0 18px 50px -28px rgba(59, 45, 38, 0.32);

  /* type */
  --font-display: "Qenliago", Georgia, "Times New Roman", serif;
  --font-body:    "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --header-offset: clamp(4.5rem, 7vw, 6.5rem); /* clears the fixed header on anchor jumps */
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
ul, ol { list-style: none; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchor targets clear of the fixed header */
  scroll-padding-top: var(--header-offset);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 1rem; top: 0.75rem;
  background: var(--espresso); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 999px;
  z-index: 300;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* --------------------------------- Typography -------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}

.section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  color: var(--espresso);
}

.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lede {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 36rem;
}

.section { padding-block: var(--section-y); }
/* A nav jump should land on the section heading, not the tall top padding above it.
   scroll-margin only affects scroll-into-view, so section-to-section spacing is unchanged. */
.section[id] { scroll-margin-top: calc(3rem - var(--section-y)); }

/* --------------------------------- Buttons ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
/* deep fill + white keeps the label at AA contrast */
.btn--primary { background: var(--terracotta-deep); color: #fff; }
.btn--primary:hover { background: #795349; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); transform: translateY(-2px); }

/* ---------------------------------- Header ----------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding-block: clamp(0.85rem, 1.6vw, 1.4rem);
  background: rgba(239, 231, 218, 0);
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] {
  background: rgba(239, 231, 218, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-block: 0.7rem;
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; }
.site-header__logo { color: var(--espresso); display: inline-flex; }
.site-header__logo svg { height: clamp(32px, 3vw, 42px); width: auto; transition: height 0.3s var(--ease); }
.site-header[data-scrolled] .site-header__logo svg { height: 30px; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.4rem); list-style: none; }
.site-nav__list a {
  font-size: 0.95rem; font-weight: 500; color: var(--espresso);
  position: relative; padding-block: 0.25rem;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--espresso); transition: width 0.28s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { width: 100%; }

.site-header__cta { padding: 0.7rem 1.35rem; }

/* mobile nav toggle */
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--espresso);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  padding: 1rem var(--gutter) 2rem;
  background: rgba(239, 231, 218, 0.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav ul { list-style: none; display: grid; gap: 0.3rem; margin-bottom: 1.25rem; }
.mobile-nav a:not(.btn) {
  display: block; padding: 0.75rem 0; font-size: 1.05rem;
  font-weight: 500; letter-spacing: 0.01em; color: var(--espresso);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { width: 100%; }

/* ----------------------------------- Hero ------------------------------------ */
.hero { padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: var(--section-y); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__display {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(3.4rem, 1.5rem + 8.5vw, 9rem);
  line-height: 0.96; letter-spacing: 0.005em;
  color: var(--espresso); margin-bottom: 1.5rem;
}
.hero__display em { font-style: italic; }
.hero__lede {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  color: var(--text-muted); max-width: 30rem; margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* offset hairline echo frame anchors the media in the asymmetric split */
.hero__media { position: relative; margin-right: 1.75rem; }
.hero__media::before {
  content: ""; position: absolute;
  inset: 1.75rem -1.75rem -1.75rem 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* ---------------------------- Placeholder component --------------------------- */
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center;
  /* quiet mounted plate, not a wireframe box — stripes near-invisible, solid hairline */
  background:
    repeating-linear-gradient(135deg, rgba(193, 182, 164, 0.1) 0 18px, rgba(193, 182, 164, 0.03) 18px 36px),
    var(--light-cream);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(59, 45, 38, 0.04);
  border-radius: var(--radius-lg);
  color: var(--text-soft);
  padding: 1.5rem;
  overflow: hidden;
}
.ph__label {
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
}
.ph__meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 3 / 2; }
.ph--square { aspect-ratio: 1 / 1; }

/* ------------------------------ Positioning strip ---------------------------- */
.strip {
  /* Solid sand band (main color 2, shown as a full ground in the brand book)
     gives the page its first tonal beat between hero and Programi. */
  background: var(--sand);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.strip__text {
  max-width: 46rem; margin-inline: auto; text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  line-height: 1.3; color: var(--espresso); font-weight: 400;
  text-wrap: balance;
}

/* --------------------------------- Programs ---------------------------------- */
.programs__grid {
  list-style: none; display: grid; gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
/* unified sand accent rule above every program name (guidelines p.07) */
.programs__grid > li:nth-child(1) { --card-accent: var(--sand); }
.programs__grid > li:nth-child(2) { --card-accent: var(--sand); }
.programs__grid > li:nth-child(3) { --card-accent: var(--sand); }
.programs__grid > li:nth-child(4) { --card-accent: var(--sand); }
.programs { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.programs .section__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.program-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(193, 182, 164, 0.1) 0 18px, rgba(193, 182, 164, 0.03) 18px 36px),
    var(--light-cream);
  border-bottom: 1px solid var(--line);
}
.program-card__media-label {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft);
}
.program-card__body {
  flex: 1 1 auto;
  padding: clamp(1.25rem, 1.8vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.program-card__body::before {
  content: ""; display: block;
  width: 28px; height: 2px; margin-bottom: 0.35rem;
  background: var(--card-accent, var(--line-strong));
}
.program-card__name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.55rem, 1.25rem + 1vw, 1.95rem); line-height: 1.05; color: var(--espresso);
}
.program-card__desc { color: var(--text-muted); font-size: 0.96rem; line-height: 1.5; }
/* pin to the bottom of the (equal-height) card so "Za koga je" aligns across the row */
.program-card__audience { margin-top: auto; padding-top: 0.85rem; color: var(--text-muted); font-size: 0.96rem; line-height: 1.5; }
.program-card__audience-label {
  display: block;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 0.3rem;
}

/* Whole-card action: the title link stretches to cover its card (programs + format rows). */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.program-card--feature { border-color: var(--line-strong); }
.program-card--feature .program-card__media {
  background:
    repeating-linear-gradient(135deg, rgba(59, 45, 38, 0.06) 0 18px, rgba(59, 45, 38, 0.02) 18px 36px),
    var(--light-cream);
}
.program-card--feature .program-card__body {
  background: linear-gradient(180deg, rgba(59, 45, 38, 0.05), var(--surface) 72%);
}
.program-card--feature .program-card__name { color: var(--espresso); }
.program-card__badge {
  position: absolute; top: 0.85rem; left: 0.85rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); background: var(--espresso);
  padding: 0.34rem 0.7rem; border-radius: 999px;
}

/* ---------------------------------- Format ----------------------------------- */
/* Editorial numbered ledger: full-width rows with oversized numerals — structurally
   distinct from the Programs card grid instead of a second row of identical cards. */
.format__grid {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.format { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.format .section__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.tier-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) 1.1fr 1.6fr;
  gap: clamp(1rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.tier-card:hover { background-color: rgba(59, 45, 38, 0.045); }
.tier-card__index {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.75rem);
  letter-spacing: 0.02em; line-height: 0.9;
  color: var(--sand);
}
.tier-card__rule { display: none; }
.tier-card__body { display: contents; }
.tier-card__name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.15rem); line-height: 1.04; color: var(--espresso);
  padding-top: 0.2rem;
}
.tier-card__desc { color: var(--text-muted); font-size: 1rem; max-width: 34rem; padding-top: 0.55rem; }
/* 01 stays quiet sand (base); the premium tiers 02 & 03 carry espresso emphasis */
.tier-card:nth-child(2) .tier-card__index { color: var(--espresso); }
.tier-card--premium .tier-card__index { color: var(--espresso); }

.section__cta { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.section__cta a {
  font-size: 0.95rem; font-weight: 600; color: var(--espresso);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.section__cta a:hover { border-color: var(--espresso); }

/* --------------------------------- Founder ----------------------------------- */
/* Full-bleed espresso chapter: the page's tonal center at its emotional center.
   Espresso is an official dark support color; reversed cream-on-color treatments
   are printed in the brand book. Scoped custom properties recolor descendants. */
.founder {
  background: var(--espresso);
  --text-muted:  rgba(239, 231, 218, 0.78);
  --text-soft:   rgba(239, 231, 218, 0.55);
  --line:        rgba(239, 231, 218, 0.16);
  --line-strong: rgba(239, 231, 218, 0.3);
}
.founder .section__title { color: var(--cream); }
.founder .eyebrow { color: var(--camel); }
.founder :focus-visible { outline-color: var(--camel); }
.founder .ph {
  background:
    repeating-linear-gradient(135deg, rgba(239, 231, 218, 0.07) 0 18px, rgba(239, 231, 218, 0.02) 18px 36px),
    rgba(239, 231, 218, 0.06);
  box-shadow: none;
}
.founder__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.founder__media { max-width: 30rem; }
.founder__text { color: var(--text-muted); margin-top: 1.25rem; max-width: 34rem; }
.founder__text + .founder__text { margin-top: 1rem; }
.founder__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25;
  color: var(--cream); max-width: 30rem;
  margin-top: 1.75rem; margin-bottom: 0.5rem;
}
.founder__quote::before {
  content: ""; display: block;
  width: 40px; height: 2px; margin-bottom: 1.1rem;
  background: var(--camel);
}
.founder__cta { margin-top: 2rem; }

/* ---------------------------------- Space ------------------------------------ */
.space__grid {
  display: grid; gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "lead a" "lead b";
}
.space__item--lead { grid-area: lead; aspect-ratio: auto; height: 100%; min-height: 24rem; }
.space__grid .space__item:nth-child(2) { grid-area: a; }
.space__grid .space__item:nth-child(3) { grid-area: b; }

/* --------------------------------- Contact ----------------------------------- */
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.contact__lede { color: var(--text-muted); margin-top: 1.25rem; font-size: 1.15rem; max-width: 28rem; }
.contact__details { margin: 2rem 0; display: grid; gap: 1.25rem; }
.contact__details dt {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.contact__details dd { font-size: 1.15rem; color: var(--espresso); }
.contact__details a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s var(--ease); }
.contact__details a:hover { border-color: var(--espresso); }
.contact__map { display: flex; flex-direction: column; gap: 0.75rem; }
.contact__map iframe {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line);
  border-radius: var(--radius-lg); filter: grayscale(0.85);
}
.contact__map-link {
  align-self: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--espresso);
  border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s var(--ease);
}
.contact__map-link:hover { border-color: var(--espresso); }

/* Secondary contact option — quiet form, subordinate to the Instagram block above.
   Marginal head + form fills the full measure instead of stranding dead space. */
.contact__alt {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__alt-title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.05; color: var(--espresso);
}
.contact__alt-lede { color: var(--text-muted); margin-top: 0.75rem; max-width: 34rem; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}
/* author display:grid would otherwise beat the UA [hidden] rule after submit */
.contact-form[hidden] { display: none; }
.contact-form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-body); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.01em; color: var(--espresso);
}
.field__opt { color: var(--text-soft); font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--espresso);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  width: 100%;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 6.5rem; line-height: 1.55; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--espresso);
  box-shadow: 0 0 0 3px rgba(59, 45, 38, 0.15);
}
.contact-form select {
  cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%233b2d26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 0.95rem center; background-size: 0.7rem;
}
/* show the disabled placeholder option in the muted tone until a real choice is made */
.contact-form select:invalid { color: var(--text-muted); }
.contact-form__submit { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
.contact-form__submit[disabled] { opacity: 0.6; cursor: default; }
.contact-form__note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-muted); }
.contact-form__success, .contact-form__error { grid-column: 2; margin-top: 1.5rem; font-size: 1.05rem; }
.contact-form__success { color: var(--espresso); font-weight: 600; }
.contact-form__error { color: var(--espresso); }

/* ---------------------------------- Footer ----------------------------------- */
/* Espresso close with the reversed cream wordmark — the definitive dark coda. */
.site-footer {
  background: var(--espresso);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.site-footer__brand { color: var(--cream); }
.site-footer__brand svg { height: clamp(52px, 6vw, 68px); width: auto; }
.site-footer__meta { text-align: right; color: rgba(239, 231, 218, 0.68); display: grid; gap: 0.35rem; }
.site-footer__meta a { color: var(--cream); font-weight: 600; }
.site-footer__meta a:hover { color: var(--camel); }
.site-footer :focus-visible { outline-color: var(--camel); }

/* --------------------------------- Reveal ------------------------------------ */
/* Hidden state only applies when the inline <head> script has marked JS as
   available — without JS the page renders fully visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* stagger siblings that enter the viewport together */
.js .programs__grid > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js .programs__grid > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.js .programs__grid > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.js .format__grid > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.js .format__grid > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.js .hero__media[data-reveal] { transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .program-card, .tier-card { transition: none; }
}

/* -------------------------------- Responsive --------------------------------- */
@media (max-width: 960px) {
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 26rem; margin-right: 0; }
  .hero__media::before { content: none; }

  /* Founder: label and name lead, portrait follows, story closes */
  .founder__inner { grid-template-columns: 1fr; }
  .founder__copy { display: contents; }
  .founder__copy .eyebrow { order: -3; }
  .founder__copy .section__title { order: -2; margin-bottom: 0.75rem; }
  .founder__media { order: -1; max-width: 24rem; }

  .contact__inner { grid-template-columns: 1fr; }
  .contact__alt { grid-template-columns: 1fr; }
  .contact-form { margin-top: 0.5rem; }
  .contact-form__success, .contact-form__error { grid-column: auto; }
}

@media (max-width: 720px) {
  /* keep the booking CTA persistent; the nav links move into the menu */
  .site-nav { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .site-header__cta { padding: 0.55rem 1rem; font-size: 0.85rem; margin-left: auto; }
  .mobile-nav:not([hidden]) { display: block; }

  /* Hero: fills the screen (svh dodges the iOS toolbar jump), and the 4:5 photo
     returns below the CTAs so the sliver peeking at the bottom is our own image. */
  .hero {
    min-height: 100vh;            /* fallback for browsers without svh */
    min-height: 100svh;
    padding: 0;
    display: flex; flex-direction: column;
  }
  .hero__inner {
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    gap: clamp(1.75rem, 6vw, 2.5rem);
    padding-top: 6.5rem;          /* clear the fixed header */
    padding-bottom: clamp(2.5rem, 7vw, 3.5rem);
  }
  .hero__copy { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .hero__display { font-size: clamp(3.6rem, 20vw, 5.5rem); line-height: 0.96; margin-bottom: 1.25rem; }
  .hero__display em { display: block; }
  .hero__lede { margin-bottom: 1.75rem; text-wrap: balance; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__actions .btn { width: 100%; }
  .hero__media { display: block; flex: 0 0 auto; max-width: none; width: 100%; margin: 0; }

  .tier-card { grid-template-columns: minmax(3.5rem, 4.5rem) 1fr; }
  .tier-card__index { grid-row: 1 / span 2; }
  .tier-card__desc { grid-column: 2; padding-top: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__submit { justify-self: stretch; margin-top: 0.5rem; }
  .space__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "lead lead" "a b"; }
  .space__item--lead { min-height: 16rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 480px) {
  .site-header__cta-tail { display: none; }
  .programs__grid { grid-template-columns: 1fr; }
  .program-card { min-height: 13.1rem; display: grid; grid-template-columns: 0.7fr 1.3fr; }
  .program-card__media {
    aspect-ratio: auto; height: 100%; min-height: 9.5rem;
    border-bottom: none; border-right: 1px solid var(--line);
  }
  .program-card__badge {
    max-width: calc(100% - 1rem);
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.58rem;
    line-height: 1.15;
    white-space: normal;
  }
}
