/* ============================================================
   LIVIN Studio — Design System
   Dark · Infrared · Minimal · Premium
   ============================================================ */

:root {
  --bg: #0B0908;
  --bg-2: #131010;
  --bg-3: #1A1514;
  --ink: #F4EFE9;
  --muted: #A79E96;
  --ember: #FF3D2E;
  --ember-soft: rgba(255, 61, 46, 0.55);
  --ember-glow: rgba(255, 61, 46, 0.16);
  --line: rgba(244, 239, 233, 0.12);
  /* One typeface across the whole site: Jost (the nav font) */
  --font-display: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchored sections land below the fixed nav */
[id] { scroll-margin-top: 96px; }

body {
  background: var(--bg);
  overflow-x: hidden; /* guard: nothing may force sideways scroll */
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: #fff; }

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

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

/* ---------- Page fade transitions ---------- */
body { opacity: 0; transition: opacity 0.7s ease; }
body.is-loaded { opacity: 1; }
body.is-leaving { opacity: 0; transition: opacity 0.35s ease; }

/* ---------- Ambient heat glow (cursor, desktop only) ---------- */
.heat-glow {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--ember-glow) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
}
body.glow-active .heat-glow { opacity: 1; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1.display { font-size: clamp(2.2rem, 5.2vw, 4.3rem); }
h2.display { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3.display { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--ember);
  opacity: 0.7;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }

.accent { color: var(--ember); font-style: italic; }

/* ---------- Layout ---------- */
.container { width: min(1240px, 92vw); margin: 0 auto; }

section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s ease, height 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(11, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1360px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand img { height: 20px; width: auto; }
.brand span {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 44px);
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 2px;
  position: relative;
  transition: color 0.35s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-actions { display: flex; align-items: center; gap: 22px; }
.login-link {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}
.login-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 38px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--ember);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate; /* keeps the ::before fill inside the button, not behind the page */
  transition: color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
  background: transparent;
  color: var(--ink);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: #fff; box-shadow: 0 0 42px rgba(255, 61, 46, 0.35); }

.btn-solid { background: var(--ember); color: #fff; }
.btn-solid::before { background: #fff; }
.btn-solid:hover { color: var(--ember); box-shadow: 0 0 42px rgba(255, 61, 46, 0.45); }

.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); border-color: var(--ink); box-shadow: none; }

.btn-sm { padding: 12px 26px; font-size: 0.74rem; }

/* ---------- Floating Book button ---------- */
.book-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  writing-mode: vertical-rl;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 26px 15px;
  background: var(--ember);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 0 34px rgba(255, 61, 46, 0.4);
  animation: emberPulse 3.2s ease-in-out infinite;
  transition: padding 0.35s var(--ease), background 0.35s ease;
}
.book-float:hover { padding-right: 24px; background: #ff5445; }
.book-float .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 2s ease-in-out infinite;
}
@keyframes emberPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 61, 46, 0.35); }
  50% { box-shadow: 0 0 48px rgba(255, 61, 46, 0.65); }
}
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(70px, 9vh, 120px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(11, 9, 8, 0.55) 40%, rgba(11, 9, 8, 0.35) 100%),
    radial-gradient(ellipse at 78% 85%, rgba(255, 61, 46, 0.14), transparent 55%);
}
.hero-content { max-width: 900px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 30px; }
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.15s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.3s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero .lead { margin-bottom: 42px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 34px; right: 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, var(--ember), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 34s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee span i {
  font-style: normal;
  color: var(--ember);
  font-size: 0.7rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Why section ---------- */
.why-media {
  position: relative;
  max-width: 350px;
  margin-left: auto;
}
.why-media img {
  width: 100%;
  border-radius: 4px;
}
.media-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.media-caption span {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--ember);
}
.why-media::before {
  content: "";
  position: absolute;
  inset: -20px -20px auto auto;
  width: 62%; height: 62%;
  border: 1px solid rgba(255, 61, 46, 0.35);
  border-radius: 4px;
  z-index: -1;
}
.why-points {
  margin-top: 44px;
  display: grid;
  gap: 0;
}
.why-point {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.why-point:last-child { border-bottom: 1px solid var(--line); }
.why-point b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 210px;
}
.why-point p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Stats strip ---------- */
.stats {
  padding: clamp(56px, 7vw, 90px) 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 61, 46, 0.1), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.stat b em { font-style: normal; color: var(--ember); font-size: 0.55em; vertical-align: super; }
.stat b span { font-size: inherit; display: inline; margin: 0; letter-spacing: inherit; color: inherit; }
.stat > span {
  display: block;
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Class cards ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(44px, 5vw, 70px);
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.7s ease;
  filter: saturate(0.92) brightness(0.85);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 8, 0.92) 8%, transparent 55%);
}
.card:hover { border-color: var(--ember-soft); box-shadow: 0 0 44px rgba(255, 61, 46, 0.18); }
.card:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
.card-body {
  position: relative;
  z-index: 2;
  padding: 26px;
  width: 100%;
}
.card-body small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 8px;
}
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.6s ease, margin 0.6s ease;
}
.card:hover .card-body p { max-height: 120px; opacity: 1; margin-top: 10px; }
.card-arrow {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 2;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.4s ease, transform 0.4s var(--ease), border-color 0.4s ease;
}
.card:hover .card-arrow {
  background: var(--ember);
  border-color: var(--ember);
  transform: rotate(45deg);
}

/* ---------- Red Light feature ---------- */
.redlight {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255, 61, 46, 0.13), transparent 55%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.redlight-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}
.redlight-media img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 4px;
}
.redlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(11, 9, 8, 0.65);
  border-radius: 4px;
}
.benefit-list { list-style: none; margin-top: 36px; display: grid; gap: 16px; }
.benefit-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: var(--muted);
  font-size: 1rem;
}
.benefit-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 1px;
  background: var(--ember);
  transform: translateY(-4px);
}

/* ---------- Community ---------- */
.community-imgs {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: clamp(44px, 5vw, 64px);
  align-items: stretch;
}
.community-imgs img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.95);
}

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 61, 46, 0.12), transparent 55%),
    var(--bg);
}
.cta-final h2 { margin: 18px 0 26px; }
.cta-final .lead { margin: 0 auto 44px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 42px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-inner .brand img { height: 16px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  list-style: none;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-note {
  margin-top: 34px;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(167, 158, 150, 0.55);
}

/* ---------- Subpage hero ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(70px, 10vw, 120px)) 0 clamp(50px, 7vw, 90px);
  background: radial-gradient(ellipse at 50% -30%, rgba(255, 61, 46, 0.12), transparent 60%);
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .lead { margin-top: 24px; }

/* ---------- Centered class list (Classes & Recovery page) ---------- */
.class-entry {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.class-entry:first-of-type { border-top: none; padding-top: 0; }
.class-entry h2 { margin-bottom: 20px; }
.class-entry h2 a { transition: color 0.35s ease; }
.class-entry h2 a:hover { color: var(--ember); }
.class-entry .lead { margin: 0 auto 30px; }
.class-entry .class-meta { justify-content: center; }
.class-entry .benefit-list { max-width: 520px; margin: 0 auto 34px; text-align: left; }

.section-divider {
  text-align: center;
  padding: 0 0 clamp(20px, 3vw, 34px);
}
.section-divider .eyebrow { justify-content: center; }
.section-divider h2 { margin-top: 18px; }
.section-divider .lead { margin: 20px auto 0; }

/* ---------- Class landing page ---------- */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  transition: color 0.3s ease, gap 0.3s ease;
}
.back-link:hover { color: var(--ink); gap: 16px; }

/* ---------- Class detail rows ---------- */
.class-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
  border-top: 1px solid var(--line);
}
.class-row:nth-child(even) .class-media { order: 2; }
.class-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}
.class-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.class-row:hover .class-media img { transform: scale(1.05); }
.class-meta {
  display: flex;
  gap: 30px;
  margin: 26px 0 30px;
  flex-wrap: wrap;
}
.class-meta div small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 4px;
}
.class-meta div b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------- Instructors ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  transition: border-color 0.5s ease;
}
.team-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: transform 1s var(--ease), filter 0.6s ease;
}
.team-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.team-card:hover { border-color: var(--ember-soft); }
.team-body {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(11, 9, 8, 0.95) 30%, transparent);
}
.team-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.team-body small {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
}
.team-body p {
  font-size: 0.86rem;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.6s ease, margin 0.6s ease;
}
.team-card:hover .team-body p { max-height: 150px; opacity: 1; margin-top: 10px; }

/* ---------- Pricing ---------- */
.price-group { margin-bottom: clamp(56px, 7vw, 90px); }
.price-group-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.price-group-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.price-group-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  transition: border-color 0.45s ease, transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.price-card:hover {
  border-color: var(--ember-soft);
  transform: translateY(-4px);
  box-shadow: 0 0 44px rgba(255, 61, 46, 0.14);
}
.price-card.is-featured {
  border-color: var(--ember-soft);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 61, 46, 0.12), transparent 62%),
    var(--bg-2);
}
.price-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(255, 61, 46, 0.4);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.3;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}
.price-amount b {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
}
.price-amount span {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.price-type {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -8px 0 20px;
}
.price-redeem {
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.price-features {
  list-style: none;
  margin: 0 0 28px;
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
}
.price-features li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.price-features li::before {
  content: "";
  flex: none;
  width: 14px; height: 1px;
  background: var(--ember);
  transform: translateY(-4px);
}
.price-card .btn { width: 100%; }

/* Policies + gift cards */
.policies {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(30px, 4vw, 44px);
  background: var(--bg-2);
}
.policies h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 22px; }
.policies ul { list-style: none; display: grid; gap: 12px; }
.policies li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.94rem;
}
.policies li::before {
  content: "";
  flex: none;
  width: 14px; height: 1px;
  background: var(--ember);
  transform: translateY(-4px);
}

.gift-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(255, 61, 46, 0.12), transparent 60%),
    var(--bg-2);
}
.gift-banner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.gift-banner p { color: var(--muted); max-width: 46ch; }

@media (max-width: 1020px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ---------- Instructors: coming soon ---------- */
.team-tba {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(50px, 8vw, 100px) 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 61, 46, 0.1), transparent 60%),
    var(--bg-2);
}
.team-tba h2 { margin: 18px 0 20px; }
.team-tba .lead { margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
}
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: border-color 0.4s ease;
  border-radius: 0;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--ember);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  padding: 22px 26px;
  border: 1px solid var(--ember-soft);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 61, 46, 0.07);
}
.form-success.is-shown { display: block; }

.info-block { border-top: 1px solid var(--line); padding: 26px 0; }
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
}
.info-block p, .info-block a { color: var(--muted); font-size: 1.02rem; }
.info-block a:hover { color: var(--ink); }

/* ---------- Arketa embed ---------- */
.embed-shell {
  background: #FDFCFA;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 233, 0.2);
  box-shadow: 0 0 70px rgba(255, 61, 46, 0.1);
}
.embed-shell iframe { display: block; width: 100%; min-height: 640px; }

.filter-chip {
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.filter-chip b { color: var(--ember); font-weight: 500; }
.filter-chip a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(11, 9, 8, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5.6vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease), color 0.3s ease;
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu a:hover { color: var(--ember); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 44px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .login-link { display: none; }
  .grid-2, .class-row, .contact-grid { grid-template-columns: 1fr; }
  .why-media { margin: 0 auto; }
  .class-row:nth-child(even) .class-media { order: 0; }
  .community-imgs { grid-template-columns: 1fr; }
  .hero { align-items: center; padding-top: var(--nav-h); }
  .scroll-hint { display: none; }
  .book-float {
    writing-mode: horizontal-tb;
    top: auto;
    bottom: 0;
    left: 0; right: 0;
    transform: none;
    border-radius: 0;
    justify-content: center;
    padding: 18px;
  }
  .book-float:hover { padding-right: 18px; }
  body:has(.book-float) { padding-bottom: 58px; }

  /* Footer stacks and centers on phones */
  .footer-inner { flex-direction: column; text-align: center; gap: 24px; }
  .footer-links { justify-content: center; gap: 14px 22px; }
  section { padding: 70px 0; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 3 / 3.4; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Touch devices: hover-reveal text is always visible ---------- */
@media (hover: none) {
  .card-body p, .team-body p {
    max-height: none;
    opacity: 1;
    margin-top: 10px;
  }
}

/* ---------- Keyboard focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ember);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 16px; }

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