/* Spaarsh2Fly — tokens
   Air #E3EBF1 · Cloud #F6F9FB · Silk #B3125A · Silk-deep #7C0B3F · Ink #1D2148 · Marigold #E9A23B
   Type scale (classic): 14 / 16 / 18 / 21 / 24 / 36 / 48 / 72+ */
:root {
  --air: #E3EBF1;
  --cloud: #F6F9FB;
  --silk: #B3125A;
  --silk-deep: #7C0B3F;
  --ink: #1D2148;
  --ink-soft: #464B72;
  --marigold: #E9A23B;

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", system-ui, sans-serif;
  --deva: "Tiro Devanagari Hindi", serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34em;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--air);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;      /* 18 */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--cloud); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Wordmark: “2Fly” rides above the baseline ---------- */
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1;
}
.wordmark .lift {
  display: inline-block;
  color: var(--silk);
  transform: translateY(-.28em);
  margin-left: .04em;
}
.wordmark-small { font-size: 1.3125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--silk);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--silk-deep); }
.btn-small { font-size: 1rem; padding: .55rem 1.05rem; }

.text-link {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
  text-decoration-color: var(--silk);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem var(--gutter);
  position: relative;
  z-index: 3;
  border-bottom: 4px solid var(--ink);   /* the rigging beam the hammock hangs from */
}
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 1.75rem; }
.site-header nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--silk); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 960px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding-top: 4rem; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.5rem, 13.5vw, 12.5rem);
  line-height: .84;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
/* The last line drops a step lower and lighter — the body leaving the floor */
.hero h1 .let-go {
  font-weight: 500;
  margin-top: .12em;
  padding-left: .55em;
}

.hero-lede {
  margin-top: 2rem;
  max-width: 28em;
  font-size: 1.3125rem;     /* 21 */
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* The hammock: the one orchestrated motion on the page */
.hammock {
  position: absolute;
  top: 0;
  right: clamp(-4rem, 2vw, 4rem);
  height: 100%;
  width: auto;
  aspect-ratio: 600 / 760;
  max-width: 52vw;
  overflow: visible;
  z-index: 1;
}
.hammock .rope { stroke: var(--ink); stroke-width: 3; }
.hammock .ring { fill: none; stroke: var(--ink); stroke-width: 5; }
.hammock .fabric { fill: var(--silk); }
.hammock .fold { fill: none; stroke: var(--silk-deep); stroke-width: 5; stroke-linecap: round; opacity: .55; }

.hammock .rig,
.hammock .silk {
  transform-box: view-box;
  transform-origin: 300px 34px;
}
@media (prefers-reduced-motion: no-preference) {
  .hammock .rig  { animation: drop 1.1s cubic-bezier(.2, .9, .25, 1) both; }
  .hammock .silk { animation: drop 1.1s cubic-bezier(.2, .9, .25, 1) both, sway 3.2s ease-in-out 1s both; }
}
@keyframes drop {
  from { translate: 0 -105%; }
  to   { translate: 0 0; }
}
@keyframes sway {
  0%   { rotate: 0deg; }
  20%  { rotate: 4deg; }
  45%  { rotate: -2.4deg; }
  68%  { rotate: 1.2deg; }
  86%  { rotate: -.4deg; }
  100% { rotate: 0deg; }
}

/* ---------- Meaning ---------- */
.meaning {
  background: var(--ink);
  color: var(--cloud);
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, var(--measure));
  gap: 1rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.devanagari {
  font-family: var(--deva);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1.1;
  color: #F2A3C6;
}
.meaning-text {
  font-size: clamp(1.3125rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}
.meaning-text em { font-style: italic; color: #fff; }

/* ---------- Shared section rhythm ---------- */
.classes,
.first-class,
.studio,
.visit {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) 0;
}
.visit { padding-bottom: clamp(4rem, 10vw, 8rem); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.5rem);   /* 48 → 72 */
  line-height: .95;
}
.section-intro {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.3125rem;
}

/* ---------- Classes: air vs ground ---------- */
.realms {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.realm { padding: clamp(1.75rem, 4vw, 3rem); }
.realm-air {
  background: var(--cloud);
  border-top: 6px solid var(--silk);
}
.realm-ground {
  background: #D3DEE7;
  border-bottom: 6px solid var(--ink);
  margin-top: 4rem;           /* sits lower: the floor */
}
.realm-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;         /* 36 */
  line-height: 1;
  color: var(--silk);
}
.realm-ground .realm-title { color: var(--ink); }

.realm dl { margin-top: 1.5rem; }
.realm dl > div { padding: 1.25rem 0; }
.realm dl > div + div { border-top: 1px solid rgba(29, 33, 72, .16); }
.realm dt {
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.3;
}
.realm dd {
  margin-top: .35rem;
  max-width: 32em;
  color: var(--ink-soft);
}

.training {
  margin-top: 3rem;
  max-width: 44rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--silk);
}
.training h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
}
.training p { margin-top: .75rem; max-width: var(--measure); }

/* ---------- First class: a real sequence, so it's numbered ---------- */
.steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 4.5rem;
}
/* Each step hangs a little lower than the last: the descent into the first inversion */
.steps li:nth-child(2) { margin-top: 1.5rem; }
.steps li:nth-child(3) { margin-top: 3rem; }
.steps li:nth-child(4) { margin-top: 4.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--silk);
}
.steps h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
}
.steps p { margin-top: .5rem; color: var(--ink-soft); }

/* ---------- Studio ---------- */
.studio p {
  margin-top: 1.25rem;
  max-width: 30em;
  font-size: clamp(1.3125rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

/* ---------- Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.visit address {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 1.3125rem;
  line-height: 1.5;
}
.hours-note { margin-top: 1rem; color: var(--ink-soft); max-width: 26em; }
.contact { margin-top: 2rem; display: grid; gap: .75rem; justify-items: start; }
.contact li:first-child { margin-bottom: .5rem; }
.contact a:not(.btn) {
  font-weight: 600;
  text-underline-offset: .25em;
  text-decoration-color: var(--silk);
}
.social { margin-top: 2rem; display: flex; gap: 1.5rem; }
.social a { font-size: 1rem; text-underline-offset: .25em; }

.map {
  position: relative;
  min-height: 420px;
  height: 100%;
  border-top: 6px solid var(--silk);
  background: var(--cloud);
}
.map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cloud);
  padding: 2rem var(--gutter);
  font-size: 1rem;
}
.site-footer .lift { color: #F2A3C6; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { margin-top: 0; }
  .steps li:nth-child(4) { margin-top: 1.5rem; }
}

@media (max-width: 760px) {
  .site-header { gap: 1rem; flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; }
  .site-header nav ul { gap: 1.25rem; }
  .site-header .btn-small { margin-left: auto; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
  }
  .hero-copy { padding-top: 15.5rem; }
  .hammock {
    height: 17rem;
    max-width: none;
    right: -2.5rem;
  }
  .hero h1 { font-size: clamp(4.25rem, 22vw, 7rem); }

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

  .realms { grid-template-columns: 1fr; }
  .realm-ground { margin-top: 0; }

  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps li:nth-child(n) { margin-top: 0; padding-top: 0; padding-left: 3.5rem; }
  .steps li::before { font-size: 3rem; }

  .visit { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
}
