/* ==========================================================================
   PSALM PILATES — core stylesheet
   Palette and type sampled from the brand mark: sky blue, cloud white,
   fine high-contrast serif set in wide caps.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Sky — light to deep, sampled from the logo gradient */
  --sky-01: #f7fafd;
  --sky-02: #edf3fb;
  --sky-03: #dce8f6;
  --sky-04: #c2d7ef;
  --sky-05: #9dbde3;
  --sky-06: #7ba1d4;
  --sky-07: #5b82b8;
  --sky-08: #416a9c;
  --sky-09: #2f4f77;

  /* Ink and neutrals */
  --ink:      #22323f;
  --ink-soft: #5f7385;
  --ink-mute: #8b9caa;
  --line:     #e2ebf5;
  --white:    #ffffff;

  /* Warm counterpoint so the blue never reads cold */
  --sand:      #f5f0e8;
  --sand-deep: #e8dfd1;
  --sand-ink:  #8a7c66;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", "Times New Roman", Times, serif;
  --sans:  "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --maxw:    1240px;
  --maxw-sm: 760px;
  --section: clamp(4.5rem, 11vw, 9rem);

  /* Surface */
  --radius:    6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(34, 50, 63, .04), 0 8px 24px -12px rgba(34, 50, 63, .10);
  --shadow-md: 0 2px 4px rgba(34, 50, 63, .04), 0 18px 48px -20px rgba(34, 50, 63, .18);
  --shadow-lg: 0 40px 90px -40px rgba(47, 79, 119, .38);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sky-04); color: var(--sky-09); }

:focus-visible {
  outline: 2px solid var(--sky-07);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: .75rem 1.5rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 11.5vw, 9rem);
  line-height: .98;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, .h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h2, .h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.16;
  letter-spacing: .045em;
}

h3, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: .03em;
}

h4, .h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: .02em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .34em;
  color: var(--sky-07);
  margin: 0 0 1.25rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .82); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
}

.muted { color: var(--ink-soft); }
.small { font-size: .875rem; line-height: 1.7; }
.tiny  { font-size: .78rem; letter-spacing: .06em; }

.serif-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.45rem, 3.3vw, 2.5rem);
  line-height: 1.44;
  letter-spacing: .01em;
}

/* Hairline rule used as a quiet section marker */
.rule {
  width: 56px;
  height: 1px;
  background: var(--sky-05);
  border: 0;
  margin: 0 0 1.75rem;
}
.rule--center { margin-inline: auto; }
.rule--light  { background: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--maxw-sm); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sky  { background: linear-gradient(180deg, var(--sky-01) 0%, var(--sky-02) 100%); }
.section--sand { background: var(--sand); }
.section--deep {
  background: linear-gradient(165deg, var(--sky-07) 0%, var(--sky-09) 100%);
  color: var(--white);
}
.section--deep .lede,
.section--deep .muted { color: rgba(255, 255, 255, .78); }

.center { text-align: center; }
.stack > * + * { margin-top: 1.15rem; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--sky-08);
  --btn-fg: var(--white);
  --btn-bd: var(--sky-08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2.1rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), opacity .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(47, 79, 119, .6); }
.btn:active { transform: translateY(0); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--sky-09); --btn-bd: var(--white); }
.btn--light:hover { box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .35); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--sky-08); --btn-bd: var(--sky-05); }
.btn--ghost:hover { --btn-bg: var(--sky-08); --btn-fg: var(--white); --btn-bd: var(--sky-08); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .16); --btn-bd: #fff; }

.btn--sm { padding: .72rem 1.5rem; font-size: .68rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }

/* Understated text link with an underline that retracts on hover */
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--sky-08);
  padding-bottom: .3rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.link-quiet:hover { background-size: 0 1px; color: var(--sky-06); }
.link-quiet svg { transition: transform .35s var(--ease); }
.link-quiet:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Sky surfaces — the drifting-cloud treatment used behind every hero
   -------------------------------------------------------------------------- */
.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(178deg, #6f9ad2 0%, #8db4de 34%, #b6d0ea 62%, #dce9f6 84%, #f7fafd 100%);
  color: var(--white);
}

/* Cloud banks. Three layers of the same tiling silhouette at different
   scales and speeds; the tile loops on background-position, so the drift
   is seamless rather than sliding a finite element back and forth. */
.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/clouds.svg");
  background-repeat: repeat-x;
}

/* Far bank — small, pale, barely moving */
.sky::before {
  z-index: -2;
  background-position: 0 62%;
  background-size: 2200px auto;
  opacity: .5;
  animation: cloud-far 320s linear infinite;
}

/* Near bank — large, bright, mirrored so it never echoes the far one */
.sky::after {
  z-index: -1;
  background-position: 0 100%;
  background-size: 1500px auto;
  opacity: .92;
  transform: scaleX(-1);
  animation: cloud-near 190s linear infinite;
}

/* A third bank, for heroes that want real depth */
.sky__clouds {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/clouds.svg");
  background-repeat: repeat-x;
  background-position: 0 84%;
  background-size: 1800px auto;
  opacity: .68;
  animation: cloud-mid 245s linear infinite;
}

@keyframes cloud-far  { from { background-position: 0 62%; }  to { background-position: -2200px 62%; } }
@keyframes cloud-mid  { from { background-position: 0 84%; }  to { background-position: 1800px 84%; } }
@keyframes cloud-near { from { background-position: 0 100%; } to { background-position: -1500px 100%; } }

/* Feathered hand-off from sky into the page below */
.sky__fade {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 24%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 52%, #fff 100%);
}
.sky__fade--sand { background: linear-gradient(180deg, rgba(245,240,232,0) 0%, rgba(245,240,232,.72) 52%, var(--sand) 100%); }
.sky__fade--tint { background: linear-gradient(180deg, rgba(247,250,253,0) 0%, rgba(247,250,253,.75) 52%, var(--sky-01) 100%); }

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: clamp(1rem, 2vw, 1.55rem);
  color: var(--white);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease),
              color .45s var(--ease), padding .45s var(--ease),
              backdrop-filter .45s var(--ease);
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -28px rgba(34, 50, 63, .5);
  color: var(--ink);
  padding-block: .85rem;
}

/* Inner pages start on white, so the header is inked from the first paint */
.site-header.is-inked { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  text-transform: uppercase;
  letter-spacing: .28em;
  white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.nav__brand:hover { opacity: .7; }
.nav__brand span { display: inline-block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}

.nav__link {
  position: relative;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding-block: .4rem;
  opacity: .88;
  transition: opacity .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-current { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

/* The header CTA inverts with the header state */
.nav__cta {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
  padding: .68rem 1.45rem;
  font-size: .68rem;
}
.nav__cta:hover { --btn-bg: var(--white); --btn-fg: var(--sky-09); --btn-bd: var(--white); }
.is-stuck .nav__cta:hover,
.is-inked .nav__cta:hover { --btn-bg: var(--sky-08); --btn-fg: var(--white); --btn-bd: var(--sky-08); }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .25s var(--ease), width .4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 22px; width: 15px; }
.nav__toggle span:nth-child(3) { top: 27px; }

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

/* Full-screen sky drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  padding: 6rem var(--gutter) 3rem;
  background: linear-gradient(170deg, #7ba1d4 0%, #a9c6e6 48%, #eaf2fb 100%);
  color: var(--sky-09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5%);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
body.nav-open .nav__drawer { opacity: 1; visibility: visible; transform: none; }

.nav__drawer a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-block: .35rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
body.nav-open .nav__drawer a { opacity: 1; transform: none; }
body.nav-open .nav__drawer a:nth-child(1) { transition-delay: .10s; }
body.nav-open .nav__drawer a:nth-child(2) { transition-delay: .16s; }
body.nav-open .nav__drawer a:nth-child(3) { transition-delay: .22s; }
body.nav-open .nav__drawer a:nth-child(4) { transition-delay: .28s; }
.nav__drawer a:hover { color: var(--white); }

.nav__drawer-foot {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(47, 79, 119, .18);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47, 79, 119, .8);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

body.nav-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
}

/* --------------------------------------------------------------------------
   8. Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 0 6rem;
}

.hero__inner { position: relative; z-index: 2; }

.hero__mark {
  color: var(--white);
  text-shadow: 0 2px 30px rgba(47, 79, 119, .22);
}
.hero__mark span { display: block; }
.hero__mark span + span { margin-top: .06em; }

.hero__tagline {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(.72rem, 1.3vw, .82rem);
  text-transform: uppercase;
  letter-spacing: .42em;
  color: rgba(255, 255, 255, .92);
  text-indent: .42em;
}

.hero__verse {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .9);
}

.hero .btn-row { margin-top: clamp(2.25rem, 4vw, 3rem); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--sky-08);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--sky-06), rgba(123, 161, 212, 0));
  animation: scroll-cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9rem 0 5.5rem;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 46rem; margin-inline: auto; }
.page-hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(47, 79, 119, .2); }
.page-hero p {
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sky-04); }
.card__body { padding: clamp(1.5rem, 2.4vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.card__body > * + * { margin-top: .85rem; }
.card__body .btn, .card__body .link-quiet { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

/* Arched image plate — a chapel-window silhouette that suits the brand */
.plate {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
  background: linear-gradient(168deg, var(--sky-05) 0%, var(--sky-03) 55%, var(--sky-01) 100%);
}
.plate--wide { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.plate--square { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.plate img { width: 100%; height: 100%; object-fit: cover; }

/* Cloud texture for plates that have no photograph yet */
.plate--cloud::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44% 30% at 22% 78%, rgba(255,255,255,.95), rgba(255,255,255,0) 64%),
    radial-gradient(38% 26% at 66% 88%, rgba(255,255,255,.85), rgba(255,255,255,0) 66%),
    radial-gradient(30% 20% at 82% 34%, rgba(255,255,255,.6), rgba(255,255,255,0) 68%);
  filter: blur(4px);
}
.plate__label {
  position: absolute;
  left: 0; right: 0; bottom: 1.35rem;
  text-align: center;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--sky-08);
}

.card--class .plate { border-radius: 0; aspect-ratio: 4 / 3; }
.card--class .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--sky-07);
}

/* Value / benefit blocks — a hairline above, no numbering: these are
   parallel qualities, not an ordered sequence. */
.value { position: relative; padding-top: 1.65rem; }
.value::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.value::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 1px;
  background: var(--sky-05);
}
.section--deep .value::before { background: rgba(255, 255, 255, .22); }
.section--deep .value::after  { background: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   11. Split feature blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
}

.split__media { position: relative; }
.split__media .plate { aspect-ratio: 5 / 6; }

/* Small stat plaque that overlaps the media edge */
.plaque {
  position: absolute;
  right: clamp(-1rem, -1vw, 0rem);
  bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.15rem 1.5rem;
  text-align: center;
}
.plaque strong {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--sky-08);
}
.plaque span {
  display: block;
  margin-top: .4rem;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-soft);
}
@media (max-width: 620px) { .plaque { right: 0; bottom: 1rem; } }

/* --------------------------------------------------------------------------
   12. Tabs (pricing groups, schedule days)
   -------------------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  gap: .25rem;
  padding: .3rem;
  background: var(--sky-02);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.tab:hover { color: var(--sky-08); }
.tab[aria-selected="true"] {
  background: var(--white);
  color: var(--sky-09);
  box-shadow: var(--shadow-sm);
}

.tabpanel[hidden] { display: none; }
.tabpanel { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.85rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sky-04); }

.price-card--featured {
  border-color: var(--sky-05);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--white) 0%, var(--sky-01) 100%);
}
.price-card__flag {
  position: absolute;
  top: -.7rem; left: 50%;
  transform: translateX(-50%);
  background: var(--sky-08);
  color: var(--white);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  white-space: nowrap;
}

.price-card__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: .05em;
}
.price-card__note { font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; min-height: 2.6em; }

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin: 1.4rem 0 .25rem;
  font-family: var(--serif);
  color: var(--sky-09);
}
.price-card__amount b { font-size: clamp(2.4rem, 4.5vw, 3.1rem); font-weight: 300; line-height: 1; }
.price-card__amount i {
  font-style: normal;
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-soft);
}
.price-card__unit { font-size: .74rem; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; }

.price-card__list {
  margin: 1.75rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .7rem;
  font-size: .9rem;
  color: var(--ink-soft);
  flex: 1;
}
.price-card__list li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.6; }
.price-card__list svg { flex: none; margin-top: .38rem; color: var(--sky-06); }
.price-card__list li.is-off { color: var(--ink-mute); }
.price-card__list li.is-off svg { color: var(--sky-04); }

/* --------------------------------------------------------------------------
   14. Schedule
   -------------------------------------------------------------------------- */
.schedule { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }

.slot {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem clamp(1.1rem, 2.4vw, 1.85rem);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.slot:last-child { border-bottom: 0; }
.slot:hover { background: var(--sky-01); }

.slot__time {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: .04em;
  color: var(--sky-09);
  white-space: nowrap;
}
.slot__name { font-size: 1rem; }
.slot__meta { font-size: .78rem; color: var(--ink-soft); margin-top: .1rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  white-space: nowrap;
  background: var(--sky-02);
  color: var(--sky-08);
  border: 1px solid var(--sky-03);
}
.pill--open { background: #eef7f0; color: #40774f; border-color: #cfe6d5; }
.pill--few  { background: #fdf3e8; color: #9a6b28; border-color: #f2ddc2; }
.pill--full { background: #f4f5f7; color: var(--ink-mute); border-color: #e5e8ec; }

.slot__cta { justify-self: end; }

@media (max-width: 780px) {
  .slot {
    grid-template-columns: 1fr auto;
    grid-template-areas: "time status" "name name" "cta cta";
    gap: .55rem 1rem;
  }
  .slot__time   { grid-area: time; }
  .slot__status { grid-area: status; justify-self: end; }
  .slot__body   { grid-area: name; }
  .slot__cta    { grid-area: cta; justify-self: start; margin-top: .5rem; }
}

.schedule-empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--ink-soft); }
.schedule-empty p + p { margin-top: .5rem; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: .5rem; }
.field > label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-soft);
}
.field > label .req { color: var(--sky-07); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .96rem;
  font-weight: 300;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; cursor: pointer; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235b82b8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sky-04); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky-06);
  box-shadow: 0 0 0 4px rgba(123, 161, 212, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c98a86; box-shadow: 0 0 0 4px rgba(201, 138, 134, .14); }

.field__error {
  font-size: .76rem;
  letter-spacing: .04em;
  color: #b26b67;
  min-height: 1.2em;
}
.field:not(.has-error) .field__error { visibility: hidden; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.6;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: .18rem;
  accent-color: var(--sky-08);
  cursor: pointer;
}

.form-note {
  font-size: .78rem;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* Success state swapped in after a valid submit */
.form-success {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  border: 1px solid var(--sky-03);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--sky-01));
  animation: panel-in .55s var(--ease) both;
}
.form-success__mark {
  width: 58px; height: 58px;
  margin: 0 auto 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sky-02);
  color: var(--sky-08);
  border: 1px solid var(--sky-03);
}
.form-success h3 { margin-bottom: .6rem; }

/* --------------------------------------------------------------------------
   16. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--sky-08); }

.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--sky-07);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); opacity: 0; }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 1.6rem;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}
.quote-card__stars { display: flex; gap: .22rem; color: var(--sky-05); margin-bottom: 1.15rem; }
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.quote-card figcaption {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   18. Instagram strip
   -------------------------------------------------------------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ig-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--sky-05), var(--sky-02));
  display: grid;
  place-items: center;
  color: var(--white);
}
.ig-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 32% at 26% 80%, rgba(255,255,255,.9), rgba(255,255,255,0) 62%),
    radial-gradient(40% 26% at 72% 88%, rgba(255,255,255,.75), rgba(255,255,255,0) 64%);
  filter: blur(3px);
}
.ig-tile svg { position: relative; z-index: 1; opacity: .85; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.ig-tile:hover svg { transform: scale(1.15); opacity: 1; }
.ig-tile:nth-child(even) { background: linear-gradient(160deg, var(--sky-04), var(--sky-01)); color: var(--sky-08); }
.ig-tile:nth-child(3n)   { background: linear-gradient(200deg, var(--sky-06), var(--sky-03)); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--sky-09) 0%, #24405f 100%);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem;
  font-size: .9rem;
}
.site-footer a { transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

.footer__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--white);
}
.footer__blurb { margin-top: 1.15rem; max-width: 30ch; line-height: 1.8; }

.footer__title {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1.15rem;
}
.footer__list { display: grid; gap: .7rem; }

.footer__social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer__social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .85);
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              color .35s var(--ease), transform .35s var(--ease);
}
.footer__social a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--sky-09);
  transform: translateY(-2px);
}

.footer__base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}
.footer__base .verse { font-family: var(--serif); font-style: italic; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* No JS? Show everything. */
.no-js .reveal { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   21. Detail components
   -------------------------------------------------------------------------- */

/* Label / value rows — hours, contact details, quick facts */
.rows { border-top: 1px solid var(--line); }
.rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.rows li > span:first-child { color: var(--ink); white-space: nowrap; }
.rows li > span:last-child  { color: var(--ink-soft); text-align: right; }

/* Note panel — policies, asides. Distinguished by surface rather than
   an accent rail, so it sits quietly on the sand section. */
.note {
  height: 100%;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.note:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--sky-04); }
.note h3 { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }

/* Founder sign-off */
.signature {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--sky-08);
}

/* Inline link inside body copy and rows */
.link-plain {
  color: var(--sky-08);
  border-bottom: 1px solid var(--sky-04);
  padding-bottom: 1px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-plain:hover { color: var(--sky-06); border-color: var(--sky-06); }

/* --------------------------------------------------------------------------
   22. Typographic polish
   -------------------------------------------------------------------------- */
h1, .h1, h2, .h2, h3, .h3, .page-hero p { text-wrap: balance; }
.lede, .muted, .small, p { text-wrap: pretty; }

/* Prices and times line up in columns, so keep the digits monospaced-width */
.price-card__amount, .slot__time, .plaque strong { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   23. Additions for sessions, plans and account entry points
   -------------------------------------------------------------------------- */

/* Header sign-in link, sits quieter than the Book button */
.nav__account {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .85;
  white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.nav__account:hover { opacity: 1; }
@media (max-width: 880px) { .nav__account { display: none; } }

/* Where a session can be held, on the class cards */
.card__where {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sky-08);
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

/* Intro line above a group of price cards */
.panel-note {
  max-width: 58ch;
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Availability window rows on the schedule page */
.window {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem clamp(1.1rem, 2.4vw, 1.85rem);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.window:last-child { border-bottom: 0; }
.window:hover { background: var(--sky-01); }
.window__time {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: .04em;
  color: var(--sky-09);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.window__body p + p { margin-top: .15rem; }
.window__meta { font-size: .78rem; color: var(--ink-soft); }
.window__cta { justify-self: end; }

@media (max-width: 780px) {
  .window {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
  }
  .window__cta { justify-self: start; margin-top: .4rem; }
}
