/* ============================================================
   Leyna Studios — shared design system
   Quiet luxury: soft light, sharp edges, generous space.
   ============================================================ */

:root {
  --ink: #101314;
  --ink-soft: #384240;
  --muted: #66706d;
  --line: rgba(16, 19, 20, 0.12);
  --paper: #f7f8f5;
  --mist: #eef3ef;
  --white: #ffffff;
  --aqua: #75e7d6;
  --aqua-deep: #276b60;
  --sage: #8fa89a;
  --warm: #efe5d6;
  --shadow: 0 28px 90px rgba(16, 19, 20, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  animation: page-in 640ms var(--ease) both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

button, input, select { font: inherit; }

a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(117, 231, 214, 0.5); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.01em;
}

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 18px;
  background: rgba(247, 248, 245, 0.76);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 12px 42px rgba(16, 19, 20, 0.08);
  transition: box-shadow 300ms ease, background 300ms ease;
}

.nav.scrolled {
  background: rgba(247, 248, 245, 0.92);
  box-shadow: 0 16px 48px rgba(16, 19, 20, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1px solid var(--aqua);
  transform: rotate(45deg);
  transition: transform 600ms var(--ease);
}

.brand:hover .mark::before { transform: rotate(225deg); }

.links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.links a {
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: background 180ms ease, border 180ms ease, color 180ms ease;
}

.links a:hover,
.links a.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 300ms var(--ease), opacity 200ms ease;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.button:hover {
  background: #232b29;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(16, 19, 20, 0.18);
}

.button:active { transform: translateY(0); }

.button.secondary {
  background: rgba(247, 248, 245, 0.74);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button.secondary:hover { background: rgba(255, 255, 255, 0.92); }

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.button.ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

/* ---------------- Hero ---------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #dfe8e3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,248,245,0.94) 0%, rgba(247,248,245,0.68) 38%, rgba(247,248,245,0.08) 76%),
    linear-gradient(180deg, rgba(16,19,20,0.02), rgba(16,19,20,0.16));
  z-index: -1;
}

.hero.cardio::before {
  background:
    radial-gradient(circle at 76% 38%, rgba(117,231,214,0.34), transparent 30%),
    linear-gradient(90deg, rgba(247,248,245,0.9) 0%, rgba(247,248,245,0.5) 42%, rgba(247,248,245,0.02) 82%),
    linear-gradient(180deg, rgba(16,19,20,0.04), rgba(16,19,20,0.22));
}

.hero.club::before {
  background:
    linear-gradient(90deg, rgba(247,248,245,0.94) 0%, rgba(247,248,245,0.62) 45%, rgba(247,248,245,0.16) 82%),
    linear-gradient(180deg, rgba(239,229,214,0.12), rgba(16,19,20,0.12));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: hero-zoom 2400ms var(--ease) both;
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 142px 0 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: end;
}

.page-hero .hero-content { grid-template-columns: 0.98fr 1.02fr; }

.hero-content > div:first-child > * {
  animation: rise 900ms var(--ease) both;
}

.hero-content > div:first-child > *:nth-child(2) { animation-delay: 90ms; }
.hero-content > div:first-child > *:nth-child(3) { animation-delay: 180ms; }
.hero-content > div:first-child > *:nth-child(4) { animation-delay: 270ms; }

.hero-content > .glass-panel,
.hero-content > form {
  animation: rise 900ms var(--ease) 340ms both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 9px 12px;
  margin-bottom: 18px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--aqua);
  box-shadow: 0 0 18px var(--aqua);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px var(--aqua); }
  50% { box-shadow: 0 0 22px var(--aqua); }
}

h1 {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.96;
  margin: 0;
  max-width: 760px;
}

.page-hero h1 { font-size: clamp(60px, 9vw, 126px); }

.lead {
  margin: 22px 0 0;
  max-width: 600px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------------- Glass panel & booking ---------------- */

.glass-panel {
  background: rgba(247, 248, 245, 0.74);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  padding: 24px;
}

.glass-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.glass-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.booking p { margin-bottom: 14px; font-size: 15px; }

.field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--ink);
  background: var(--white);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.slot {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  padding: 11px 8px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.slot:hover { border-color: var(--ink); color: var(--ink); }

.slot.active {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(117, 231, 214, 0.28);
}

.booking .button { width: 100%; margin-top: 14px; }

.status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--aqua-deep);
  font-size: 14px;
}

/* ---------------- Sections ---------------- */

section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.55;
}

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  margin-bottom: 14px;
}

/* ---------------- Manifesto ---------------- */

.manifesto {
  padding-top: 110px;
  padding-bottom: 110px;
}

.manifesto h2 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.12;
  max-width: 980px;
  font-weight: 480;
}

.manifesto h2 em {
  font-style: italic;
  color: var(--aqua-deep);
}

.manifesto p {
  margin: 28px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ---------------- Cards & grids ---------------- */

.programs,
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.program,
.feature-card,
.price {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 26px;
  transition: transform 350ms var(--ease), box-shadow 350ms ease, border-color 350ms ease;
}

.program:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 19, 20, 0.28);
  box-shadow: 0 22px 54px rgba(16, 19, 20, 0.1);
}

.program {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program h3,
.feature-card h3,
.price h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.program p,
.feature-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--aqua-deep);
  background: rgba(117, 231, 214, 0.16);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------------- Dark experience band ---------------- */

.experience-band {
  width: 100%;
  background: #111614;
  color: var(--white);
}

.experience-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.experience-band .section-head p { color: rgba(255, 255, 255, 0.64); }
.experience-band .kicker { color: var(--aqua); }

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.gallery-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.gallery-card:hover img { transform: scale(1.045); }

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62));
}

.gallery-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.gallery-copy strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.gallery-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.gallery-side { display: grid; gap: 12px; }

.gallery-side .gallery-card { min-height: 174px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(117, 231, 214, 0.07));
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 520;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.4;
  font-size: 14px;
}

/* ---------------- Statement / portrait ---------------- */

.page-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 14px;
  align-items: stretch;
}

.statement {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 440px;
}

.statement h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.statement p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 18px;
  margin: 0;
}

.portrait-card {
  overflow: hidden;
  min-height: 440px;
  border: 1px solid var(--line);
  background: var(--mist);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms var(--ease);
}

.portrait-card:hover img { transform: scale(1.03); }

/* ---------------- Timeline ---------------- */

.timeline { display: grid; }

.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline-row:last-child { border-bottom: 1px solid var(--line); }

.timeline-row strong { font-size: 18px; }

.timeline-row span {
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------- Steps (first visit) ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 26px 22px;
  counter-increment: step;
  transition: transform 350ms var(--ease), border-color 350ms ease;
}

.step:hover { transform: translateY(-4px); border-color: rgba(16, 19, 20, 0.28); }

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--aqua-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 21px; }

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

/* ---------------- Comparison table ---------------- */

.compare-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.compare th,
.compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 560;
  border-right: 1px solid var(--line);
}

.compare thead th {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: none;
}

.compare td {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.compare tbody tr { transition: background 200ms ease; }
.compare tbody tr:hover { background: rgba(117, 231, 214, 0.08); }

.compare a {
  color: var(--aqua-deep);
  border-bottom: 1px solid rgba(39, 107, 96, 0.4);
}

/* ---------------- Schedule ---------------- */

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter:hover { border-color: var(--ink); color: var(--ink); }

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.class-list { display: grid; }

.class-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 110px 1fr 150px 130px;
  gap: 14px;
  align-items: center;
}

.class-row:last-child { border-bottom: 1px solid var(--line); }

.class-row strong { font-size: 18px; }

.class-row small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.class-day {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.class-level {
  color: var(--muted);
  font-size: 14px;
}

.reserve {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.reserve:hover { background: var(--ink); color: var(--white); }

/* ---------------- Pricing ---------------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.price {
  display: flex;
  flex-direction: column;
}

.price:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(16, 19, 20, 0.1); }

.price .plan-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.price.featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.price.featured .plan-note { color: rgba(255, 255, 255, 0.6); }

.amount {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 520;
  margin-bottom: 18px;
  line-height: 1;
}

.amount small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.featured .amount small,
.featured li { color: rgba(255, 255, 255, 0.66); }

ul.clean {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

ul.clean li::before {
  content: "— ";
  color: var(--aqua);
}

.price .button { margin-top: auto; }

.price.featured .button {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--ink);
}

.price.featured .button:hover { background: #8ff0e1; }

/* ---------------- Quotes ---------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quote {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

.quote p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.42;
  margin: 0;
  font-weight: 480;
}

.quote p::before { content: "“"; color: var(--aqua-deep); }
.quote p::after { content: "”"; color: var(--aqua-deep); }

.quote footer {
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- FAQ ---------------- */

.faq {
  display: grid;
  max-width: 860px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 540;
  position: relative;
  transition: color 200ms ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 26px;
  color: var(--muted);
  transition: transform 300ms var(--ease);
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq summary:hover { color: var(--aqua-deep); }

.faq details p {
  margin: 0;
  padding: 0 40px 24px 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

/* ---------------- Events ---------------- */

.events { display: grid; }

.event-row {
  display: grid;
  grid-template-columns: 130px 1fr 140px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.event-row:last-child { border-bottom: 1px solid var(--line); }

.event-date {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}

.event-date small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.event-row h3 { margin: 0 0 6px; font-size: 21px; }

.event-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.event-tag {
  justify-self: end;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--aqua-deep);
  background: rgba(117, 231, 214, 0.14);
  white-space: nowrap;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  width: 100%;
  background: #111614;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(117, 231, 214, 0.16), transparent 42%);
}

.cta-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
  text-align: center;
}

.cta-inner h2 {
  margin: 0 auto;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.05;
  max-width: 820px;
  font-weight: 500;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.64);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.6;
}

.cta-inner .hero-actions {
  justify-content: center;
  margin-top: 34px;
}

.cta-inner .button {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.cta-inner .button:hover { background: var(--aqua); border-color: var(--aqua); }

/* ---------------- Home page links ---------------- */

.home-pages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.page-link {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  background: var(--mist);
}

.page-link img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.page-link:hover img { transform: scale(1.05); }

.page-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
  transition: opacity 400ms ease;
}

.page-link span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 540;
  font-size: 23px;
}

.page-link small {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 48px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease, transform 400ms var(--ease);
}

.page-link:hover small { opacity: 1; transform: translateY(0); }

/* ---------------- Footer ---------------- */

footer.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid p,
.footer-grid a {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.footer-grid a {
  display: block;
  padding: 3px 0;
  transition: color 180ms ease;
}

.footer-grid a:hover { color: var(--aqua-deep); }

.footer-brand .brand { margin-bottom: 14px; }

.footer-brand p { color: var(--muted); max-width: 260px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1040px) {
  .hero-content,
  .page-hero .hero-content,
  .gallery,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .booking { max-width: 560px; }

  .programs,
  .cards-3,
  .pricing,
  .quotes {
    grid-template-columns: 1fr;
  }

  .metrics,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-pages { grid-template-columns: repeat(2, 1fr); }

  .section-head { display: grid; }

  .class-row { grid-template-columns: 1fr; gap: 8px; }
  .class-row .reserve { justify-self: start; }

  .event-row { grid-template-columns: 1fr; gap: 10px; }
  .event-tag { justify-self: start; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero::before,
  .hero.cardio::before,
  .hero.club::before {
    background:
      linear-gradient(180deg, rgba(247,248,245,0.92) 0%, rgba(247,248,245,0.68) 48%, rgba(247,248,245,0.18) 100%);
  }

  /* mobile nav */
  .nav { flex-wrap: wrap; }

  .nav-toggle { display: flex; }

  .links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 420ms var(--ease), margin 420ms var(--ease);
  }

  .nav.open .links {
    max-height: 420px;
    margin-top: 10px;
  }

  .links a { padding: 13px 12px; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child { display: none; }

  .nav-cta { padding: 9px 12px; min-height: 40px; font-size: 14px; }

  .hero-content {
    width: calc(100% - 22px);
    padding-bottom: 28px;
  }

  .field-row,
  .home-pages,
  .metrics,
  .steps {
    grid-template-columns: 1fr;
  }

  section,
  .experience-inner,
  .cta-inner,
  .footer-inner {
    width: calc(100% - 22px);
  }

  section, .experience-inner { padding-top: 64px; padding-bottom: 64px; }

  .lead { font-size: 17px; }

  .gallery-card,
  .gallery-side .gallery-card,
  .statement,
  .portrait-card {
    min-height: 280px;
  }

  .timeline-row { grid-template-columns: 1fr; gap: 6px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Leyna Journal — editorial / magazine layer
   ============================================================ */

.journal-masthead {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 152px 0 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.journal-masthead .kicker { margin-bottom: 18px; }

.journal-masthead h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.journal-masthead p {
  color: var(--muted);
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
}

/* Category filter (optional, reuses .filter) */
.journal-filters {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Featured lead article */
.featured-post {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 0;
}

.featured-post > a {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 52px;
  align-items: center;
}

.post-media {
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.featured-post .post-media { aspect-ratio: 5 / 4; }
.featured-post > a:hover .post-media img { transform: scale(1.04); }

.post-cat {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

.featured-body h2 {
  margin: 16px 0 0;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  font-weight: 520;
}

.featured-body .dek {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 460px;
}

.post-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-meta span::before {
  content: "·";
  margin-right: 10px;
  color: var(--line);
}

.post-meta span:first-child::before { content: none; }

/* Section rule between featured and grid */
.journal-rule {
  width: min(1180px, calc(100% - 32px));
  margin: 88px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.journal-rule h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 540;
}

.journal-rule span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Article grid */
.journal-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 32px;
}

.post-card > a { display: block; }

.post-card .post-media {
  aspect-ratio: 3 / 2;
  margin-bottom: 18px;
}

.post-card > a:hover .post-media img { transform: scale(1.05); }

.post-card h3 {
  margin: 12px 0 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 540;
  transition: color 200ms ease;
}

.post-card > a:hover h3 { color: var(--aqua-deep); }

.post-card .dek {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
}

/* ---------------- Single article ---------------- */

.article-head {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 0;
  text-align: center;
}

.article-head h1 {
  margin: 16px 0 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.01;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.article-head .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 24px auto 0;
}

.article-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-meta span { display: inline-flex; align-items: center; }

.article-meta span::before {
  content: "·";
  margin: 0 12px 0 0;
  color: var(--line);
}

.article-meta span:first-child::before { content: none; }

.article-cover {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 0;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  width: min(680px, calc(100% - 32px));
  margin: 60px auto 0;
  font-size: 19px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 76px;
  line-height: 0.72;
  padding: 8px 12px 0 0;
  color: var(--ink);
}

.article-body p { margin: 24px 0 0; }

.article-body h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  margin: 48px 0 0;
  font-weight: 540;
}

.article-body h3 {
  color: var(--ink);
  font-size: 21px;
  margin: 36px 0 0;
}

.article-body a {
  color: var(--aqua-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-body ul { margin: 20px 0 0; padding-left: 22px; }
.article-body li { margin: 8px 0; }

.article-body .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.28;
  color: var(--ink);
  border-left: 2px solid var(--aqua);
  padding-left: 28px;
  margin: 48px 0;
}

.article-foot {
  width: min(680px, calc(100% - 32px));
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-foot .byline { color: var(--muted); font-size: 14px; }
.article-foot .byline strong { color: var(--ink); font-weight: 600; }

.article-back {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

/* Related posts reuse .journal-grid inside a section */
.related-wrap { margin-top: 40px; }

@media (max-width: 1040px) {
  .featured-post > a { grid-template-columns: 1fr; gap: 26px; }
  .featured-body .dek { max-width: none; }
  .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .article-cover { aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
  .journal-masthead { padding-top: 120px; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-rule { flex-direction: column; gap: 6px; }
  .article-body > p:first-of-type::first-letter { font-size: 60px; }
}
