/* ============================================================
   Roya Yoga — Landing page
   Persian Blue (Shah Mosque Isfahan) + Antique Gold
   Match the in-app palette and typography
   ============================================================ */

:root {
  /* Surfaces — Lapis spectrum */
  --bg: hsl(224 60% 9%);
  --bg-2: hsl(224 56% 11%);
  --card: hsl(224 55% 13%);
  --card-2: hsl(224 50% 16%);
  --border: hsl(224 38% 22%);
  --border-soft: hsl(224 32% 26% / 0.55);

  /* Ink */
  --ink: hsl(40 35% 92%);
  --ink-2: hsl(40 22% 80%);
  --ink-3: hsl(40 14% 64%);
  --ink-mute: hsl(220 14% 52%);

  /* Antique gold */
  --gold-1: hsl(44 78% 68%);
  --gold-2: hsl(40 70% 56%);
  --gold-3: hsl(36 62% 46%);
  --gold-4: hsl(32 58% 38%);
  --gold: var(--gold-2);
  --peak: hsl(38 60% 48%);

  /* Accents */
  --lapis: hsl(224 70% 38%);
  --lapis-deep: hsl(228 80% 24%);
  --turquoise: hsl(192 70% 58%);
  --saffron: hsl(28 80% 58%);

  /* Type */
  --font-display: "Cormorant Garamond", "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "SF Pro Text", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Rhythm */
  --container: 1240px;
  --gap-section: clamp(48px, 6vw, 88px);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --ease-soft: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Atmosphere — 4 radial gradients matching the app */
.atmosphere {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, hsla(40, 70%, 56%, 0.10), transparent 60%),
    radial-gradient(800px 700px at 110% 30%, hsla(28, 80%, 58%, 0.06), transparent 60%),
    radial-gradient(900px 800px at -10% 50%, hsla(224, 70%, 38%, 0.18), transparent 65%),
    radial-gradient(700px 600px at 100% 90%, hsla(192, 70%, 58%, 0.05), transparent 60%),
    var(--bg);
}

/* Selection */
::selection { background: hsla(40, 70%, 56%, 0.32); color: var(--ink); }

/* ============================================================
   Type scale — Cormorant display, Inter body
   ============================================================ */

.serif-headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  font-size: clamp(40px, 6.2vw, 84px);
}
.serif-headline--md { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; }
.serif-headline--sm { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; font-weight: 500; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 18px 0;
}

p { margin: 0 0 1em 0; color: var(--ink-2); }

a { color: var(--ink); text-decoration: none; }
a:focus-visible { outline: 1.5px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }

em { font-style: italic; color: var(--gold-1); font-family: var(--font-display); font-size: 1.08em; }

/* Gold rule with center diamond */
.gold-rule {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0;
  max-width: 360px;
}
.gold-rule::before,
.gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(40, 70%, 56%, 0.5), transparent);
}
.diamond {
  width: 6px; height: 6px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Centered variant (in section heads, CTA) */
.section__head .gold-rule,
.cta .gold-rule { margin-left: auto; margin-right: auto; }

/* ============================================================
   Gold-leaf CTA — brushed gradient + inner highlight
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft), background .25s var(--ease-soft);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 15px; }

.gold-leaf {
  background:
    linear-gradient(180deg, hsla(0,0%,100%,0.18), transparent 40%),
    linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 35%, var(--gold-3) 70%, var(--gold-4) 100%);
  color: hsl(225 60% 12%);
  border: 1px solid hsla(40, 70%, 35%, 0.6);
  box-shadow:
    inset 0 1px 0 hsla(0,0%,100%,0.35),
    inset 0 -1px 0 hsla(0,0%,0%,0.18),
    0 6px 22px -10px hsla(40, 70%, 50%, 0.7),
    0 0 0 1px hsla(40, 78%, 60%, 0.2);
  font-weight: 600;
  text-shadow: 0 1px 0 hsla(0,0%,100%,0.2);
}
.gold-leaf:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 hsla(0,0%,100%,0.45),
    inset 0 -1px 0 hsla(0,0%,0%,0.20),
    0 10px 30px -10px hsla(40, 70%, 50%, 0.85),
    0 0 0 1px hsla(40, 78%, 60%, 0.35);
}
.gold-leaf:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: hsla(40, 70%, 56%, 0.5);
  background: hsla(40, 70%, 56%, 0.06);
}

.link-signin {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease-soft), border-color .2s var(--ease-soft);
}
.link-signin:hover { color: var(--gold-1); border-bottom-color: var(--gold-2); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: hsla(224, 60%, 9%, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.nav__lockup {
  display: flex; align-items: center; gap: 10px;
}
.logomark { display: inline-flex; line-height: 0; }
.wordmark { color: var(--ink); display: inline-flex; line-height: 0; }

.nav__links {
  justify-self: center;
  display: flex; gap: 28px;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  font-family: var(--font-body);
  transition: color .2s var(--ease-soft);
}
.nav__links a:hover { color: var(--gold-1); }

.nav__cta { display: flex; align-items: center; gap: 18px; }

.nav__rule {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 14%,
    hsla(40, 70%, 56%, 0.35) 50%,
    transparent 86%);
}
.nav__rule .diamond {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; padding: 12px 18px; }
}
@media (max-width: 520px) {
  /* On phones, the CTA "Start composing" button is hidden — Sign in becomes
     the primary nav affordance so logged-in users can return quickly without
     scrolling. The hero still has the gold Start-composing button. */
  .nav__cta .btn { display: none; }
  .nav__cta .link-signin {
    color: var(--ink);
    border-bottom-color: hsla(40, 70%, 56%, 0.5);
    font-size: 13px;
  }
  .nav__inner { padding: 10px 16px; gap: 12px; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) 28px clamp(80px, 10vw, 140px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero__copy { max-width: 640px; }

/* Hero headline — editorial display with italic gold accent */
.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
  font-size: clamp(46px, 6.6vw, 88px);
}
.hero__headline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1em;
}

.hero__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-3);
  margin: 28px 0 0 0;
  max-width: 520px;
}
.hero__ctas {
  display: flex; align-items: center; gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* Hero art — composer screenshot in gold-stitch frame + phone */
.hero__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 480px;
}
.frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px hsla(228, 80%, 5%, 0.9),
    0 0 0 1px hsla(40, 70%, 56%, 0.06);
}
.frame img { display: block; width: 100%; height: auto; }
.frame__corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold-2);
  pointer-events: none;
  opacity: 0.85;
}
.frame__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame__corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame__corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.frame__cap {
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-1);
  background: hsla(224, 60%, 9%, 0.7);
  padding: 6px 10px;
  border: 1px solid hsla(40, 70%, 56%, 0.2);
  border-radius: 2px;
  backdrop-filter: blur(8px);
}

.frame--composer {
  width: 100%;
  max-width: 640px;
  transform: rotate(-1.2deg);
}
.frame--phone {
  position: absolute;
  right: -10px;
  bottom: -32px;
  width: 180px;
  border-radius: 24px;
  transform: rotate(4deg);
  box-shadow:
    0 40px 90px -20px hsla(228, 80%, 5%, 0.95),
    0 0 0 1px hsla(40, 70%, 56%, 0.15);
}
.frame--phone img { border-radius: 22px; }

@media (max-width: 980px) {
  .hero__art { min-height: 420px; }
  .frame--phone { width: 150px; right: 6%; bottom: -20px; }
}
@media (max-width: 520px) {
  .frame--phone { display: none; }
  .frame--composer { transform: none; }
}

/* ============================================================
   Section heads
   ============================================================ */

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 5vw, 72px);
  text-align: center;
}
.section__head--left {
  text-align: left;
  margin-left: 0;
}
.section__lede {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 14px;
}

/* ============================================================
   MOVEMENTS trio
   ============================================================ */

.movements {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--gap-section) 28px;
}
.trio {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .trio { grid-template-columns: 1fr; } }

.trio__card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  overflow: hidden;
  transition: transform .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.trio__card::before {
  /* gold hairline along the top edge (the refined tile-corners look) */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 14%,
    hsla(40, 70%, 56%, 0.5) 50%,
    transparent 86%);
}
.trio__card:hover {
  transform: translateY(-3px);
  border-color: hsla(40, 70%, 56%, 0.32);
}
.trio__numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 18px;
}
.trio__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trio__desc { color: var(--ink-2); margin-bottom: 20px; }
.trio__bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.trio__bullets li {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 18px;
}
.trio__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  transform: rotate(45deg);
}

/* ============================================================
   WALKTHROUGH — scroll-pinned
   ============================================================ */

.walkthrough {
  background:
    linear-gradient(180deg, transparent, hsla(228, 80%, 18%, 0.35) 30%, hsla(228, 80%, 18%, 0.35) 70%, transparent);
  padding: var(--gap-section) 0;
  position: relative;
}
.walkthrough::before, .walkthrough::after {
  content: "";
  position: absolute; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, hsla(40, 70%, 56%, 0.32), transparent);
}
.walkthrough::before { top: 0; }
.walkthrough::after { bottom: 0; }

.walkthrough__stage {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .walkthrough__stage { grid-template-columns: 1fr; gap: 36px; }
}

.walkthrough__media {
  position: sticky;
  top: 110px;
  height: clamp(420px, 60vh, 620px);
}
.walkthrough__media .frame--shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
}
.walkthrough__media .frame--shot.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.walkthrough__media .frame--shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.walkthrough__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: clamp(140px, 22vh, 220px);
  padding-top: 60px;
  padding-bottom: 60px;
}
.walkthrough__steps li {
  max-width: 460px;
  opacity: 0.35;
  transition: opacity .5s var(--ease-soft);
}
.walkthrough__steps li.is-active { opacity: 1; }
.walkthrough__steps h3 { margin: 0 0 12px; }
.walkthrough__steps p { color: var(--ink-2); }

@media (max-width: 980px) {
  .walkthrough__media { position: relative; top: 0; height: auto; }
  .walkthrough__media .frame--shot { position: relative; inset: auto; opacity: 1; transform: none; }
  .walkthrough__steps { gap: 24px; padding: 24px 0 0; }
  .walkthrough__steps li { opacity: 1; max-width: none; }
}

/* On mobile, show all shots stacked with their step inline above */
@media (max-width: 980px) {
  .walkthrough__stage { display: block; }
  .walkthrough__steps {
    display: contents;
  }
  .walkthrough__media {
    display: contents;
  }
}

/* ============================================================
   STUDIOS
   ============================================================ */

.studios {
  padding: var(--gap-section) 28px;
}
.studios__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.studios__grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .studios__grid { grid-template-columns: 1fr; } }

.studio-card {
  background: linear-gradient(180deg, var(--card), hsla(224, 50%, 14%, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  position: relative;
  transition: border-color .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.studio-card:hover {
  border-color: hsla(40, 70%, 56%, 0.32);
  transform: translateY(-2px);
}
.studio-card__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, hsla(40, 70%, 56%, 0.14), hsla(40, 70%, 56%, 0.04));
  color: var(--gold-1);
  border: 1px solid hsla(40, 70%, 56%, 0.22);
  margin-bottom: 18px;
}
.studio-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
}
.studio-card p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ============================================================
   STUDENTS (secondary)
   ============================================================ */

.students {
  padding: var(--gap-section) 28px;
}
.students__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .students__inner { grid-template-columns: 1fr; } }
.students__copy h2 { margin-bottom: 18px; }
.students__copy .btn { margin-top: 16px; }

.students__art { display: flex; justify-content: center; }
.frame--phone-tall {
  width: 280px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -20px hsla(228, 80%, 5%, 0.95);
  transform: rotate(-2deg);
}
.frame--phone-tall img { width: 100%; display: block; }

/* ============================================================
   QUOTES
   ============================================================ */

.quotes { padding: var(--gap-section) 28px; }
.quotes__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .quotes__inner { grid-template-columns: 1fr; gap: 20px; } }

.quote {
  margin: 0;
  padding: 32px 28px;
  background: linear-gradient(180deg, hsla(224, 55%, 13%, 0.6), hsla(224, 50%, 11%, 0.3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 6px; left: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  color: hsla(40, 70%, 56%, 0.32);
  line-height: 1;
}
.quote blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  padding-top: 24px;
}
.quote figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* ============================================================
   FINAL CTA — full bleed lapis
   ============================================================ */

.cta {
  padding: clamp(64px, 8vw, 110px) 28px;
  background:
    radial-gradient(900px 500px at 50% 0%, hsla(40, 70%, 56%, 0.10), transparent 60%),
    radial-gradient(800px 500px at 50% 100%, hsla(192, 70%, 58%, 0.06), transparent 60%),
    linear-gradient(180deg, hsla(228, 80%, 22%, 0.45), hsla(228, 80%, 14%, 0.55));
  border-top: 1px solid hsla(40, 70%, 56%, 0.18);
  border-bottom: 1px solid hsla(40, 70%, 56%, 0.18);
  position: relative;
}
.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cta__lede {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 28px;
  max-width: 580px;
}
.cta__row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 40px 28px 60px;
  border-top: 1px solid var(--border-soft);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.footer__divider { color: var(--gold-3); }
.footer__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer__links a {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  transition: color .2s var(--ease-soft);
}
.footer__links a:hover { color: var(--gold-1); }
.footer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}


/* ============================================================
   Twinkling stars (matches in-app GlobalStars layer)
   ============================================================ */
.starfield {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.06; }
  50%      { opacity: var(--o, 0.55); }
}
.starfield .star {
  position: absolute;
  border-radius: 50%;
  background: #f6efdf;
  opacity: 0.08;
  animation: star-twinkle 5s ease-in-out infinite;
  will-change: opacity;
}
.starfield .star--bright {
  background: hsl(40, 70%, 64%);
  box-shadow: 0 0 5px 1px hsla(40, 70%, 56%, 0.4);
}

/* ============================================================
   TRUST STRIP (under hero)
   ============================================================ */
.trust {
  padding: clamp(28px, 4vw, 48px) 28px clamp(48px, 6vw, 80px);
}
.trust__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, hsla(224, 55%, 13%, 0.55), hsla(224, 50%, 11%, 0.25));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.trust__icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, hsla(40, 70%, 56%, 0.16), hsla(40, 70%, 56%, 0.04));
  color: var(--gold-1);
  border: 1px solid hsla(40, 70%, 56%, 0.22);
  margin-top: 2px;
}
.trust__head {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 2px;
  color: var(--ink);
}
.trust__sub {
  margin: 0;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .trust__inner { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
}

/* ============================================================
   WALKTHROUGH — step numerals & titles
   ============================================================ */
.walkthrough__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 10px;
}
.walkthrough__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.walkthrough__steps p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Mobile: interleave step + shot inline so each screenshot sits
   directly under its description. Uses flex order to interleave. */
@media (max-width: 980px) {
  .walkthrough__stage {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .walkthrough__media { display: contents; }
  .walkthrough__steps { display: contents; }
  .walkthrough__steps li { margin-top: 8px; }
  .walkthrough__media .frame--shot {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px -20px hsla(228, 80%, 5%, 0.85);
    max-height: 64vh;
  }
  .walkthrough__steps li[data-step="library"]  { order: 1; }
  .walkthrough__media .frame--shot[data-shot="library"]  { order: 2; }
  .walkthrough__steps li[data-step="moods"]    { order: 3; }
  .walkthrough__media .frame--shot[data-shot="moods"]    { order: 4; }
  .walkthrough__steps li[data-step="composer"] { order: 5; }
  .walkthrough__media .frame--shot[data-shot="composer"] { order: 6; }
  .walkthrough__steps li[data-step="live"]     { order: 7; }
  .walkthrough__media .frame--shot[data-shot="live"]     { order: 8; }
  .walkthrough__steps li[data-step="calendar"] { order: 9; }
  .walkthrough__media .frame--shot[data-shot="calendar"] { order: 10; }
}

/* ============================================================
   TWO TRACKS — owners + teachers
   ============================================================ */
.tracks {
  padding: var(--gap-section) 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.tracks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
@media (max-width: 980px) {
  .tracks__grid { grid-template-columns: 1fr; gap: 18px; }
}
.track {
  background: linear-gradient(180deg, var(--card), hsla(224, 50%, 13%, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.track::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(40, 70%, 56%, 0.45), transparent);
}
.track__head { display: flex; flex-direction: column; gap: 14px; }
.track__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
  background: hsla(40, 70%, 56%, 0.12);
  border: 1px solid hsla(40, 70%, 56%, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
}
.track__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.track__lede {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.track__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 18px;
}
.track__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.track__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, hsla(40, 70%, 56%, 0.14), hsla(40, 70%, 56%, 0.03));
  color: var(--gold-1);
  border: 1px solid hsla(40, 70%, 56%, 0.22);
  margin-top: 1px;
}
.track__list h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--ink);
}
.track__list p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}
.track__cta { align-self: flex-start; margin-top: 4px; }
@media (max-width: 520px) {
  .track__cta { align-self: stretch; text-align: center; }
}

/* ============================================================
   MOBILE STICKY CTA — phones only
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: hsla(224, 60%, 9%, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border-soft);
}
.mobile-cta__btn {
  flex: 1 1 auto;
  padding: 13px 18px;
  text-align: center;
  font-size: 14px;
}
.mobile-cta__signin {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid hsla(40, 70%, 56%, 0.5);
  padding-bottom: 2px;
  text-decoration: none;
}
@media (max-width: 720px) {
  .mobile-cta { display: none; }
  .footer__links { gap: 18px 22px; row-gap: 14px; }
  .footer__links a { font-size: 14px; }
}

/* ============================================================
   MOBILE HERO + SECTION REFINEMENTS
   ============================================================ */
@media (max-width: 720px) {
  .hero { padding: 32px 16px 40px; }
  .hero__art { min-height: auto; margin-top: 28px; }
  .frame--composer { transform: none; box-shadow: 0 24px 60px -24px hsla(228, 80%, 5%, 0.9); margin-left: -4px; margin-right: -4px; }
  .hero__ctas { gap: 12px; }
  .hero__ctas .btn { width: 100%; text-align: center; padding-left: 22px; padding-right: 22px; }
  .hero__ctas .btn--ghost { padding: 14px 22px; }
  .hero__lede { font-size: 17px; margin-top: 22px; }
  .hero__headline { font-size: clamp(42px, 11vw, 64px); }
  .gold-rule { margin: 26px 0; }
  .movements { padding: clamp(48px, 8vw, 80px) 18px; }
  .tracks { padding: clamp(48px, 8vw, 80px) 18px; }
  .walkthrough { padding: clamp(48px, 8vw, 80px) 18px; }
  .cta { padding: clamp(56px, 9vw, 100px) 18px; }
  .footer { padding: 32px 18px 40px; }
  .section__head { margin-bottom: 32px; }
  .section__lede { font-size: 16px; }
}

/* ============================================================
   Reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   V7 — PERSIAN ARCHITECTURAL FACELIFT
   Two architectural "rooms" (hero + cta) framed with iwan + dense tile;
   middle sections (walkthrough, tracks) remain quiet corridors.
   ============================================================ */

:root {
  --tile-url: url('assets/persian-tile.svg');
  --iwan-url: url('assets/iwan-frame.svg');
  --turq-hair: hsla(192, 78%, 64%, 0.55);
  --turq-soft: hsla(192, 78%, 64%, 0.20);
  --gold-hair: hsla(40, 70%, 56%, 0.55);
  --gold-soft: hsla(40, 70%, 56%, 0.18);
}

/* -- Typography refinement (Cormorant lighter + tighter) -- */
.hero__headline {
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.0;
  max-width: 12ch;
}
.hero__headline em { font-weight: 400; }
.hero__lede {
  font-weight: 400;
  font-style: normal;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}

/* -- Eyebrow rule: hairline + glyph + text + glyph + hairline -- */
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--turq-hair), transparent);
}
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--turq-hair)); }
.eyebrow::after  { background: linear-gradient(90deg, var(--turq-hair), transparent); }
.section__head .eyebrow {
  justify-content: center;
}

/* -- HERO as an architectural room -- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  padding: clamp(56px, 7vw, 96px) 28px clamp(72px, 8vw, 120px);
}
.hero > * { position: relative; z-index: 2; }
.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
}

/* Dense tile background — confident 20% opacity, blended with cobalt wash */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--tile-url);
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* Cobalt vignette wash on top of tile to keep center calm */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, hsla(228, 75%, 11%, 0.78), hsla(228, 75%, 11%, 0.0) 70%),
    linear-gradient(180deg, hsla(228, 75%, 11%, 0.25), hsla(228, 75%, 11%, 0.45));
  pointer-events: none;
}

/* Iwan frame — pointed-arch portal sitting around the hero copy */
.iwan-hero {
  position: absolute;
  inset: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px) auto clamp(20px, 4vw, 56px);
  height: clamp(420px, 60vw, 720px);
  z-index: 1;
  pointer-events: none;
}
.iwan-hero svg,
.iwan-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 24px 60px hsla(228, 90%, 4%, 0.55));
}
@media (max-width: 980px) {
  .iwan-hero { display: none; }
}

/* Constrain hero copy width so it sits inside the arch opening */
@media (min-width: 981px) {
  .hero__copy {
    max-width: 560px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.0fr) minmax(0, 1fr);
    padding-top: clamp(40px, 6vw, 80px);
  }
  .hero__art { z-index: 3; }
}

/* -- Movements cards as mihrab niches (pointed-arch top) -- */
.movements {
  position: relative;
}
.trio__card {
  /* pointed-arch top via mask-image (SVG) */
  border-radius: 0;
  padding-top: 64px;
  background:
    linear-gradient(180deg, hsla(228, 60%, 16%, 0.85), var(--card-2)),
    var(--tile-url);
  background-size: auto, 180px 180px;
  background-blend-mode: normal, soft-light;
  border: 1px solid var(--turq-soft);
  border-top: none;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 0 12 Q 0 0 50 -8 Q 100 0 100 12 L 100 100 L 0 100 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 0 12 Q 0 0 50 -8 Q 100 0 100 12 L 100 100 L 0 100 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
/* turquoise pointed-arch hairline overlay */
.trio__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 80px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'><path d='M 0.5 12 L 0.5 11.5 Q 0.5 0.6 50 -1 Q 99.5 0.6 99.5 11.5 L 99.5 12' fill='none' stroke='%2378D4E8' stroke-width='0.4' opacity='0.7'/></svg>") center top / 100% 100% no-repeat;
  pointer-events: none;
}
.trio__numeral {
  position: relative;
}
/* tiny tile-glyph above numeral */
.trio__numeral::before {
  content: "✦";
  display: block;
  font-size: 12px;
  color: var(--turq-hair);
  margin-bottom: 6px;
  letter-spacing: 0;
}

/* -- Quiet middle: walkthrough + tracks have NO pattern -- */
.walkthrough, .tracks {
  position: relative;
}
/* refined hairline above each */
.walkthrough::before,
.tracks::before {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  background: linear-gradient(90deg, transparent, var(--gold-hair), transparent);
}

/* -- Final CTA as the second architectural room -- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--tile-url);
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, hsla(228, 75%, 14%, 0.78), hsla(228, 75%, 14%, 0.0) 70%),
    linear-gradient(180deg, hsla(228, 75%, 18%, 0.4), hsla(228, 75%, 12%, 0.6));
  pointer-events: none;
}
.cta > * { position: relative; z-index: 2; }

/* Iwan around CTA copy on desktop */
.cta__iwan {
  position: absolute;
  inset: clamp(40px, 6vw, 80px) clamp(60px, 10vw, 160px) auto clamp(60px, 10vw, 160px);
  height: clamp(360px, 50vw, 560px);
  z-index: 1;
  pointer-events: none;
}
.cta__iwan img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 24px 60px hsla(228, 90%, 4%, 0.6));
}
@media (max-width: 980px) {
  .cta__iwan { display: none; }
}

/* -- Tile-chip variant for ghost buttons -- */
.btn--ghost,
.link-signin {
  /* leave defaults for non-CTA contexts */
}
.cta .btn--ghost,
.hero__ctas .btn--ghost {
  background: hsla(228, 60%, 16%, 0.55);
  border: 1px solid var(--turq-hair);
  color: var(--ink);
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.cta .btn--ghost:hover,
.hero__ctas .btn--ghost:hover {
  background: hsla(228, 60%, 20%, 0.7);
  border-color: var(--gold-hair);
}

/* Mobile: keep dense pattern on hero/cta but reduce density */
@media (max-width: 700px) {
  .hero::before, .cta::before {
    background-size: 160px 160px;
    opacity: 0.18;
  }
  .hero__headline { letter-spacing: -0.024em; }
}


/* ============================================================
   V7.2 — CARTOUCHE BUTTONS + CINEMATIC MOTION
   Thin gold hairline outline, dark cobalt interior, illuminated
   tile-corner ornaments that breathe. Like an inscribed plaque.
   ============================================================ */

/* Primary CTA — cartouche */
.gold-leaf {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 44px 18px 44px;
  min-width: 220px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
  background:
    radial-gradient(ellipse 80% 120% at 50% 50%, hsla(40, 60%, 30%, 0.18), transparent 70%),
    linear-gradient(180deg, hsla(228, 60%, 12%, 0.6), hsla(228, 70%, 8%, 0.7));
  border: 1px solid hsla(40, 70%, 56%, 0.55);
  border-radius: 0;
  text-shadow: 0 0 12px hsla(40, 80%, 60%, 0.2);
  transition:
    color .4s cubic-bezier(.2,.7,.2,1),
    background .5s cubic-bezier(.2,.7,.2,1),
    border-color .4s cubic-bezier(.2,.7,.2,1),
    letter-spacing .4s cubic-bezier(.2,.7,.2,1),
    transform .35s cubic-bezier(.2,.7,.2,1),
    box-shadow .5s cubic-bezier(.2,.7,.2,1);
  box-shadow:
    inset 0 0 0 1px hsla(40, 60%, 50%, 0.0),
    0 0 0 0 hsla(40, 70%, 56%, 0);
}

/* Inner double-hairline frame */
.gold-leaf::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid hsla(40, 60%, 50%, 0.28);
  pointer-events: none;
  transition: inset .35s cubic-bezier(.2,.7,.2,1), border-color .4s cubic-bezier(.2,.7,.2,1);
}

/* Sweeping shimmer line across the gold border on a slow cycle */
.gold-leaf::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  background:
    linear-gradient(110deg,
      transparent 30%,
      hsla(40, 100%, 78%, 0.95) 48%,
      transparent 60%
    ) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-30%);
  animation: cartouche-edge-sweep 5.5s cubic-bezier(.4,.1,.3,1) infinite;
}

/* The label content + corner ornaments wrapper */
.gold-leaf > .btn__label { position: relative; z-index: 2; }

/* Tile-corner ornaments (illuminated, breathing) — injected via JS */
.btn__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
  animation: cartouche-corner-glow 3.6s ease-in-out infinite;
}
.btn__corner--tl { top: -1px; left: -1px; }
.btn__corner--tr { top: -1px; right: -1px; transform: scaleX(-1); }
.btn__corner--bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.btn__corner--br { bottom: -1px; right: -1px; transform: scale(-1, -1); }
.btn__corner--tr { animation-delay: .3s; }
.btn__corner--bl { animation-delay: .9s; }
.btn__corner--br { animation-delay: .6s; }
.btn__corner path { stroke: hsla(40, 80%, 65%, 0.85); fill: none; stroke-width: 1.2; }
.btn__corner circle { fill: hsla(40, 90%, 70%, 0.95); }

/* Hover state — illuminated cartouche */
.gold-leaf:hover {
  color: hsl(40, 100%, 88%);
  letter-spacing: 0.26em;
  border-color: hsla(40, 90%, 70%, 0.95);
  background:
    radial-gradient(ellipse 80% 120% at 50% 50%, hsla(40, 60%, 35%, 0.28), transparent 70%),
    linear-gradient(180deg, hsla(228, 60%, 14%, 0.7), hsla(228, 70%, 9%, 0.8));
  text-shadow: 0 0 18px hsla(40, 90%, 70%, 0.55);
  box-shadow:
    inset 0 0 24px -4px hsla(40, 80%, 50%, 0.35),
    0 0 0 1px hsla(40, 90%, 70%, 0.35),
    0 12px 36px -12px hsla(40, 80%, 60%, 0.55),
    0 0 50px -8px hsla(192, 80%, 60%, 0.2);
  transform: translateY(-1px);
}
.gold-leaf:hover::before {
  inset: 6px;
  border-color: hsla(40, 90%, 75%, 0.5);
}
.gold-leaf:hover .btn__corner {
  animation-play-state: paused;
  opacity: 1;
}
.gold-leaf:hover .btn__corner path { stroke: hsla(40, 100%, 80%, 1); stroke-width: 1.4; }
.gold-leaf:hover .btn__corner circle { fill: hsl(40, 100%, 80%); }

.gold-leaf:active {
  transform: translateY(0);
  transition-duration: .12s;
}
.gold-leaf:focus-visible {
  outline: 1.5px solid hsla(40, 90%, 70%, 0.7);
  outline-offset: 6px;
}

/* Nav variant — smaller */
.nav .gold-leaf {
  padding: 12px 26px;
  font-size: 11px;
  letter-spacing: 0.2em;
  min-width: 0;
}
.nav .gold-leaf::before { inset: 3px; }
.nav .gold-leaf .btn__corner { width: 10px; height: 10px; }

/* Sign-in link — caps-mono with turquoise underline */
.link-signin {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid hsla(192, 78%, 64%, 0.45);
  padding-bottom: 3px;
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}
.link-signin:hover {
  color: var(--gold-1);
  border-bottom-color: var(--gold-2);
}

/* CTA wide ghost — match cartouche language */
.cta .btn--ghost,
.hero__ctas .btn--ghost {
  position: relative;
  padding: 18px 36px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: hsla(228, 60%, 12%, 0.4);
  border: 1px solid hsla(192, 78%, 64%, 0.4);
  border-radius: 0;
  clip-path: none;
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft), letter-spacing .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.cta .btn--ghost:hover,
.hero__ctas .btn--ghost:hover {
  color: var(--ink);
  border-color: hsla(192, 90%, 75%, 0.85);
  letter-spacing: 0.26em;
  background: hsla(228, 60%, 16%, 0.55);
  transform: translateY(-1px);
}


/* ============================================================
   Keyframes
   ============================================================ */
@keyframes cartouche-edge-sweep {
  0%   { opacity: 0; transform: translateX(-40%); }
  10%  { opacity: 1; }
  45%  { opacity: 1; transform: translateX(40%); }
  55%  { opacity: 0; }
  100% { opacity: 0; transform: translateX(40%); }
}
@keyframes cartouche-corner-glow {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 0 transparent); }
  50%      { opacity: 1; filter: drop-shadow(0 0 6px hsla(40, 90%, 70%, 0.5)); }
}

/* Ambient cinematic keyframes */
@keyframes tile-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 240px 240px; }
}
@keyframes arch-shimmer {
  0%, 100% { filter: drop-shadow(0 24px 60px hsla(228, 90%, 4%, 0.55)) drop-shadow(0 0 0 transparent); }
  50%      { filter: drop-shadow(0 24px 60px hsla(228, 90%, 4%, 0.55)) drop-shadow(0 0 18px hsla(192, 80%, 60%, 0.3)); }
}
@keyframes particle-float {
  0%   { transform: translate3d(0,0,0); opacity: 0; }
  10%  { opacity: var(--p-op, 0.7); }
  90%  { opacity: var(--p-op, 0.7); }
  100% { transform: translate3d(var(--p-dx, 20px), var(--p-dy, -120px), 0); opacity: 0; }
}
@keyframes crown-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50%      { transform: scale(1.04); filter: drop-shadow(0 0 8px hsla(40, 90%, 70%, 0.6)); }
}
@keyframes rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes numeral-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 24px hsla(40, 90%, 60%, 0.35); }
}
@keyframes eyebrow-glyph-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes arch-draw {
  from { opacity: 0; transform: scale(0.985) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes glyph-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   Entrance animations — hero room
   ============================================================ */
.iwan-hero {
  animation: arch-draw 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero__copy .eyebrow {
  animation: rise-in .8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .25s;
}
.hero__headline {
  animation: rise-in 1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .45s;
}
.hero__lede {
  animation: rise-in 1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .65s;
}
.hero__copy .gold-rule {
  animation: fade-in 1.2s ease-out both;
  animation-delay: .85s;
}
.hero__ctas {
  animation: rise-in .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .95s;
}
.hero__meta {
  animation: fade-in 1.2s ease-out both;
  animation-delay: 1.15s;
}
.hero__art {
  animation: rise-in 1.3s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .6s;
}

/* Scroll-triggered: sections fade up using IntersectionObserver hook */
.movements .section__head,
.walkthrough .section__head,
.tracks .section__head,
.cta__inner {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.is-revealed .section__head,
.is-revealed.cta__inner,
.cta__inner.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.trio__card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.trio.is-revealed .trio__card { opacity: 1; transform: translateY(0); }
.trio.is-revealed .trio__card:nth-child(1) { transition-delay: .05s; }
.trio.is-revealed .trio__card:nth-child(2) { transition-delay: .18s; }
.trio.is-revealed .trio__card:nth-child(3) { transition-delay: .32s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gold-leaf,
  .gold-leaf::after { animation: none !important; }
  .iwan-hero,
  .hero__copy .eyebrow,
  .hero__headline,
  .hero__lede,
  .hero__copy .gold-rule,
  .hero__ctas,
  .hero__meta,
  .hero__art {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .trio__card,
  .movements .section__head,
  .walkthrough .section__head,
  .tracks .section__head,
  .cta__inner {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   V7.2 — CINEMATIC AMBIENT MOTION + HOVER MICRO-INTERACTIONS
   ============================================================ */

/* Slow parallax tile drift in hero + CTA backgrounds */
.hero::before {
  animation: tile-drift 120s linear infinite;
}
.cta::before {
  animation: tile-drift 140s linear infinite reverse;
}

/* Arch shimmer — iwan frames gain a faint turquoise glow that breathes */
.iwan-hero img,
.cta__iwan img {
  animation: arch-shimmer 6s ease-in-out infinite;
}

/* Ambient particle layer (gold dust motes) — populated by JS */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(40, 90%, 70%, 0.9), hsla(40, 90%, 70%, 0) 70%);
  animation: particle-float linear infinite;
  will-change: transform, opacity;
}

/* Headline italic word — soft golden pulse */
.hero__headline em {
  animation: numeral-glow 8s ease-in-out infinite;
  animation-delay: 2s;
}

/* Movement card numerals — glow on hover */
.trio__card {
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .5s cubic-bezier(.2,.7,.2,1),
    border-color .4s cubic-bezier(.2,.7,.2,1),
    box-shadow .5s cubic-bezier(.2,.7,.2,1);
}
.trio__card:hover {
  transform: translateY(-6px);
  border-color: hsla(192, 90%, 70%, 0.7);
  box-shadow:
    0 24px 60px -16px hsla(228, 90%, 4%, 0.7),
    0 0 0 1px hsla(192, 90%, 70%, 0.2),
    0 0 80px -20px hsla(192, 80%, 60%, 0.25);
}
.trio__numeral {
  transition: text-shadow .5s ease-out, color .4s ease-out;
}
.trio__card:hover .trio__numeral {
  color: hsl(40, 100%, 75%);
  text-shadow: 0 0 28px hsla(40, 90%, 60%, 0.5);
}
.trio__card:hover::before {
  /* brighter arch hairline on hover */
  filter: brightness(1.4) saturate(1.2);
}

/* Tracks cards — gentle lift */
.tracks__card,
.tracks__col,
.studios__card,
.students__card {
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1);
}
.tracks__card:hover,
.tracks__col:hover,
.studios__card:hover,
.students__card:hover {
  transform: translateY(-4px);
  border-color: hsla(40, 70%, 56%, 0.5);
  box-shadow: 0 20px 50px -16px hsla(228, 90%, 4%, 0.6), 0 0 0 1px hsla(40, 70%, 56%, 0.15);
}

/* Trust strip items — illuminate on hover */
.trust__item,
.trust > * > * {
  transition: color .3s ease-out, transform .3s ease-out;
}
.trust__item:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

/* Nav links — animated underline */
.nav__links a {
  position: relative;
  transition: color .3s ease-out;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--gold-1); }

/* Gold rule — draws in on entrance */
.hero__copy .gold-rule::before,
.hero__copy .gold-rule::after,
.cta .gold-rule::before,
.cta .gold-rule::after {
  transform-origin: center;
  animation: rule-draw 1.6s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 1s;
}

/* Crown pendant on iwan — gentle pulse via SVG selector won't work because it's an <img>;
   instead pulse the whole arch with a subtle scale to feel breathing */
.iwan-hero, .cta__iwan {
  transform-origin: center top;
}

/* Composer frame — gentle float */
.frame--composer {
  animation: composer-float 8s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes composer-float {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-8px); }
}

/* Mobile: reduce ambient cost */
@media (max-width: 700px) {
  .hero::before, .cta::before { animation-duration: 180s; }
  .particles { display: none; }
}

/* Reduced motion — disable all ambient */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .cta::before,
  .iwan-hero img, .cta__iwan img,
  .hero__headline em,
  .frame--composer,
  .particles,
  .particle,
  .btn__corner,
  .gold-leaf::after,
  .hero__copy .gold-rule::before,
  .hero__copy .gold-rule::after,
  .cta .gold-rule::before,
  .cta .gold-rule::after {
    animation: none !important;
  }
  .particles { display: none; }
}

/* ============================================================
   v7.4 — Inner rhythm pass
   Sections were tight, but inside the walkthrough and section heads
   there was still huge dead air. Trim those.
   ============================================================ */

/* Section heads: drop the 72px bottom margin to ~28px */
.section__head {
  margin: 0 auto clamp(18px, 2vw, 28px) !important;
}
.section__head .eyebrow { margin-bottom: 10px !important; }
.section__head h2 { margin-bottom: 10px !important; }
.section__head .section__lede { margin-top: 8px !important; }

/* Walkthrough: tighten step gaps + remove sticky-stage dead space.
   The screenshot reads as "huge gap" because the sticky media reserved
   ~540px while step 01 was the only thing visible. Reduce sticky media
   height so the column shorter than the steps text. */
.walkthrough__steps {
  gap: clamp(40px, 7vh, 80px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.walkthrough__media {
  top: 110px !important;
  height: clamp(340px, 46vh, 460px) !important;
  align-self: start !important;
}

/* Movements / Tracks / Walkthrough: tighter outer padding so adjacent
   section padding doesn't compound into a dead band. */
.movements, .walkthrough, .tracks {
  padding-top: clamp(28px, 3.5vw, 48px) !important;
  padding-bottom: clamp(28px, 3.5vw, 48px) !important;
}

/* Hero bottom doesn't need 115px after the iwan */
.hero {
  padding-bottom: clamp(40px, 5vw, 72px) !important;
}

/* Trust strip: 80px bottom was excessive */
.trust {
  padding-top: clamp(32px, 4vw, 48px) !important;
  padding-bottom: clamp(32px, 4vw, 48px) !important;
}

/* CTA — keep room generous but not 110px */
.cta {
  padding-top: clamp(40px, 5vw, 72px) !important;
  padding-bottom: clamp(40px, 5vw, 72px) !important;
}

/* THE REAL CULPRIT: walkthrough+tracks have a decorative hairline
   ::before with 64px bottom margin that piled on top of section padding.
   Trim it. */
.walkthrough::before,
.tracks::before {
  margin: 0 auto clamp(16px, 2vw, 28px) !important;
}
