/* =========================================================
   Debora Lasoen: stylesheet
   Layout idea: one long scroll that travels like a day by the sea:
   sun → violet → midnight blue (SALT) → dawn-to-night (retreat) → salt-white.
   ========================================================= */

:root {
  /* Colour palette: deep purples and blues */
  --salt:     #f2eff2;  /* salt-white paper, a breath of lilac */
  --lilac:    #c7bde6;  /* soft lavender, for highlights on dark */
  --violet:   #4a2a85;  /* deep purple: the main accent */
  --ink:      #1a1426;  /* deep aubergine-black, for text */
  --midnight: #101a3d;  /* deep midnight blue */
  --plum:     #2a1a40;  /* dark plum night */

  /* Typefaces (each with a fallback in case Google Fonts doesn't load) */
  --display: "Instrument Serif", "Times New Roman", serif;
  --body:    "EB Garamond", Garamond, Georgia, serif;
  --mono:    "DM Mono", ui-monospace, Menlo, monospace;

  /* Side gutter: at least 16px, more on wide screens */
  --gutter: max(16px, 4vw);

  color-scheme: light;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(18px, 1.1vw + 12px, 21px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* Visually hidden, but still read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Paper grain over the whole page, for an analogue feel */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Content column with side gutters */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Small typewriter-style labels */
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Buttons */
.button {
  display: inline-block;
  padding: .85em 1.6em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.button:hover { background: var(--salt); color: var(--ink); border-color: var(--salt); }
.button--dark:hover { background: var(--ink); color: var(--salt); border-color: var(--ink); }
/* Filled, larger button for the main call to action (Buy the book) */
.button--solid { padding: 18px 40px; font-size: 15px; background: var(--salt); color: var(--ink); border-color: var(--salt); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.button--solid:hover, .button--solid:focus-visible { background: var(--violet); color: var(--salt); border-color: var(--violet); }
.textlink { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }

/* ---------- Scroll scenes ----------
   A "scene" is a tall section with a "stage" that sticks to the screen
   while you scroll through it. JavaScript writes the scroll progress
   (0 → 1) into the CSS variable --p, and the CSS below uses it. */
.scene { position: relative; --p: 0; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Gentle fade-up when elements come into view.
   Only hidden when JavaScript is running (the "js" class), so nothing
   is ever invisible if the script fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Navigation ----------
   White text with "difference" blending, so it stays readable
   on every background colour as you scroll. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  color: #fff;
  mix-blend-mode: difference;
}
.nav a { text-decoration: none; }
.nav__name { font-family: var(--display); font-size: 24px; letter-spacing: .01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a, .nav__toggle {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0; }

/* On phones the menu becomes a solid bar that stays at the top while you
   scroll. The "difference" blending is switched off here, because over
   busy sections it made the small text hard to see. */
@media (max-width: 760px) {
  .nav {
    mix-blend-mode: normal;
    color: var(--ink);
    background: rgba(242, 239, 242, .92); /* --salt, slightly see-through */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);           /* softly blurs the page behind the bar */
    box-shadow: 0 1px 0 rgba(26, 20, 38, .08);
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }
  .nav__name { font-size: 22px; }
  .nav__toggle { display: block; font-size: 13px; padding: 10px 0 10px 16px; } /* bigger tap area */
  /* The open menu: a full-width panel under the bar, with large links */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--salt);
    box-shadow: 0 12px 24px rgba(26, 20, 38, .12);
    display: none;
  }
  .nav__links a { font-size: 14px; padding: 14px 0; border-bottom: 1px solid rgba(26, 20, 38, .1); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; } /* no hover underline on phones */
  .nav.is-open .nav__links { display: flex; }
}

/* ---------- 1. Hero ---------- */
.hero { height: 240vh; background: var(--salt); }
.hero__stage { display: grid; place-items: center;
  /* stack the headline and the classes link together in the middle */
  align-content: center; row-gap: clamp(24px, 4vh, 40px); }

/* The sun: a soft disc that grows with scroll until it fills the screen */
.hero__sun {
  position: absolute;
  left: 50%; top: 58%;
  width: min(34vw, 340px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #7a5cc2 0%, var(--violet) 55%, #1d2470 100%);
  transform: translate(-50%, -50%) scale(calc(1 + var(--p) * var(--p) * 9));
  will-change: transform;
}
/* The ring drawing from SALT (saved in deep purple), slowly turning */
.hero__ring {
  position: absolute;
  left: 50%; top: 58%;
  width: min(62vw, 620px);
  aspect-ratio: 1;
  max-width: 100%;
  background: url("../images/sun-ring.png") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(calc(var(--p) * 120deg)) scale(calc(1 + var(--p) * 2.5));
  opacity: calc(1 - var(--p) * 1.6);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.hero__title {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(48px, 9.5vw, 156px);
  line-height: .92;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--ink);
  mix-blend-mode: multiply;
  transform: translateY(calc(var(--p) * -30vh));
  opacity: calc(1 - var(--p) * 2.2);
  padding-inline: 16px;
}
.hero__title .line { display: block; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero__title .line:nth-child(2) { animation-delay: .15s; }
.hero__title .line:nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* Quiet text link above the headline, straight to the yoga schedule (no box, so the sun stays visible) */
.hero__classes {
  position: relative;
  z-index: 2;
  justify-self: center;
  max-width: calc(100vw - 2 * var(--gutter));
  color: var(--ink);
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  /* soft halo in the page colour so the words stay readable over the ring speckles */
  text-shadow: 0 0 4px var(--salt), 0 0 10px var(--salt), 0 0 16px var(--salt);
  /* fades and lifts away with the headline as you scroll */
  transform: translateY(calc(var(--p) * -30vh));
  opacity: calc(1 - var(--p) * 2.2);
  transition: color .3s;
}
/* leave room for the fixed header when jumping to the schedule */
#schedule { scroll-margin-top: 96px; }
.hero__classes span { display: block; animation: rise 1.4s .5s cubic-bezier(.2,.7,.2,1) both; }
/* a little air between the two lines of the link */
.hero__classes { line-height: 2.2; }
.hero__classes:hover, .hero__classes:focus-visible { color: var(--violet); }

.hero__meta, .hero__hint {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  opacity: calc(1 - var(--p) * 4);
}
.hero__meta { left: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.hero__hint { right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .hero__hint { display: none; } }

/* ---------- 2. Manifesto ---------- */
.manifesto { height: 260vh; background: var(--violet); color: var(--salt); }
.manifesto__stage { display: grid; place-items: center; }
.manifesto__text {
  max-width: 22ch;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-block: 12vh; /* breathing room above and below the text */
  font-family: var(--display);
  /* Grows with the screen's width, but never taller than the screen
     can hold (7svh), so it doesn't touch the next section on wide, short windows */
  font-size: clamp(30px, min(5.4vw, 7svh), 84px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* Each word is wrapped in a <span class="w"> by the script */
.manifesto__text .w { opacity: .2; transition: opacity .35s; }
.manifesto__text .w.on { opacity: 1; }

/* ---------- 3. SALT ---------- */
.salt { background: var(--midnight); color: var(--salt); }
.salt__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
  padding-block: clamp(100px, 16vh, 200px);
}
.salt__words { display: grid; gap: 28px; justify-items: start; min-width: 0; }
.salt__title {
  width: min(100%, 520px);
  aspect-ratio: 620 / 330;
  /* The hand-written title from the book (saved in salt-white) */
  background: url("../images/salt-handwritten.png") left center / contain no-repeat;
}
.salt__heals {
  display: grid;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
}
.salt__heals span:nth-child(2) { padding-left: 1.5em; transition-delay: .15s; }
.salt__heals span:nth-child(3) { padding-left: 3em; transition-delay: .3s; }
.salt__heals span:nth-child(4) { padding-left: 4.5em; transition-delay: .45s; color: var(--lilac); }
.salt__echo { font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.salt__desc { max-width: 38ch; }

/* Reader quotes: small stars, then two short quotes with a line on the left */
.salt__reviews { display: grid; gap: 18px; max-width: 38ch; }
.salt__stars { letter-spacing: .2em; color: var(--lilac); }
.salt__review { margin: 0; display: grid; gap: 6px; padding-left: 18px; border-left: 1px solid currentColor; }
.salt__review p { font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }
.salt__review cite { font-style: normal; opacity: .7; }
.salt__formats { margin-top: -14px; opacity: .7; } /* sits close under the button */
.salt__for { font-style: italic; opacity: .75; }

/* Book cover: a drawn version until the real cover photo is added */
.book { margin: 0; position: relative; aspect-ratio: 2 / 3; width: min(100%, 380px); justify-self: center; }
.book__drawn, .book img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
.book__drawn {
  background: #0d0b14;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.book__sun {
  position: absolute; top: 30%; left: 50%;
  width: 44%; aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, #7a5cc2, var(--violet) 70%);
}
.book__sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(#2b3a7a, var(--midnight));
}
.book__name {
  position: absolute; top: 9%;
  font-family: var(--display); font-size: clamp(36px, 4vw, 56px); letter-spacing: .2em; color: var(--salt);
}
.book__author {
  position: absolute; bottom: 6%;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--salt);
}

/* The six chapter words */
.words { padding-block: clamp(40px, 8vh, 100px) clamp(80px, 14vh, 160px); }
.words__title { margin-top: 18px; font-family: var(--display); font-size: clamp(40px, 5.5vw, 84px); font-weight: 400; line-height: .95; }
.words__intro { max-width: 52ch; margin-top: 18px; opacity: .85; }
.words__list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid rgba(242,239,242,.25); }
.word {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 40px;
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 1px solid rgba(242,239,242,.25);
}
.word__name {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 92px);
  line-height: 1;
  overflow-wrap: anywhere;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), color .4s;
}
.word__first { color: var(--lilac); }
.word__def { max-width: 44ch; opacity: .85; }
.word:hover .word__name { transform: translateX(16px); color: var(--lilac); }

/* Extracts: horizontal pages */
.pages { height: 420vh; }
.pages__stage { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.pages__track {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  width: max-content;
  will-change: transform;
}
.page {
  flex: none;
  width: min(78vw, 470px);
  max-height: 74vh;
  overflow: auto;
  padding: clamp(28px, 4vw, 52px);
  background: var(--salt);
  color: var(--ink);
  font-size: clamp(16px, 1vw + 10px, 19px);
  display: flex;
  flex-direction: column;
  gap: 1em;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.55);
}
/* Loose pages: each sits at a slightly different angle */
.page:nth-child(odd)  { rotate: -1.2deg; }
.page:nth-child(even) { rotate: 1deg; margin-top: 4vh; }
.page__chapter { color: var(--violet); }
.page__title { font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; }
.page__whisper { font-style: italic; opacity: .7; }
.page__whisper::before { content: "– "; }
.page:first-child .page__whisper::before { content: ""; }
.page--end { background: var(--violet); color: var(--salt); justify-content: center; align-items: flex-start; gap: 28px; }
.page__big { font-family: var(--display); font-size: clamp(40px, 4.5vw, 64px); line-height: 1; }
.page--end .button--dark:hover { background: var(--salt); color: var(--violet); border-color: var(--salt); }
/* Real book pages, one page each: the size comes from the height,
   the width follows the page shape (1048×1488 px). */
.page--img {
  width: auto;
  height: min(78vh, calc(84vw * 1488 / 1048));
  aspect-ratio: 1048 / 1488;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: block;
  background: #fff;
  cursor: zoom-in;
  transition: translate .3s;
}
.page--img:hover,
.page--img:focus-visible { translate: 0 -8px; }
.page--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pages__hint { opacity: .6; }

/* Page reader: a full-screen window showing one page large enough to read.
   You scroll down through the page; on phones it is wider than the screen,
   so it opens centred on the text and you can also swipe sideways. */
html:has(.reader[open]) { overflow: hidden; } /* stop the page behind from scrolling */
.reader {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(16, 26, 61, .97); color: var(--salt);
}
.reader::backdrop { background: transparent; }
.reader__scroll { width: 100%; height: 100%; overflow: auto; display: flex; align-items: flex-start; }
.reader__img {
  margin: 72px auto; /* centred when it fits, scrollable when it doesn't */
  /* up to 900px wide, and never under 640px so the words stay readable */
  width: max(640px, min(900px, 100vw - 2 * var(--gutter)));
  height: auto; max-width: none;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.reader__btn {
  position: fixed; padding: 10px 16px;
  background: rgba(16, 26, 61, .8); color: var(--salt);
  border: 1px solid rgba(242, 239, 242, .4); border-radius: 999px; cursor: pointer;
}
.reader__btn:hover { background: var(--salt); color: var(--ink); }
.reader__close { top: 16px; right: var(--gutter); }
.reader__prev { bottom: 16px; left: var(--gutter); }
.reader__next { bottom: 16px; right: var(--gutter); }

/* ---------- 4. Retreat day ----------
   The background and text colours are set by JavaScript
   as the "time of day" changes with scroll. */
.day {
  --day-bg: #e9ddec;
  --day-ink: var(--ink);
  background: var(--day-bg);
  color: var(--day-ink);
  padding-block: clamp(100px, 16vh, 200px);
}
.day__head { display: grid; gap: 22px; margin-bottom: clamp(60px, 12vh, 140px); }
.day__title { font-family: var(--display); font-size: clamp(52px, 9vw, 150px); line-height: .9; letter-spacing: -.02em; }
.day__sub { max-width: 46ch; }

/* The two past retreats, side by side (stacked on phones) */
.circles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px); margin-top: clamp(30px, 6vh, 70px);
}
.circle { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid currentColor; }
.circle__num { font-family: var(--display); font-size: clamp(64px, 7vw, 110px); line-height: .8; opacity: .3; }
.circle__name { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4vw, 62px); line-height: 1; }
.circle p:last-child { max-width: 44ch; }
.circles__return {
  margin-top: clamp(20px, 5vh, 50px); max-width: 22ch;
  font-family: var(--display); font-style: italic; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05;
}
.circles__held { opacity: .75; }
.day__intro { display: grid; gap: 14px; margin-top: clamp(70px, 14vh, 160px); }
.day__subtitle { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: .95; }
.next__sub { max-width: 46ch; opacity: .85; }
.day__list { list-style: none; margin: 0 auto; padding-block: 0; display: grid; gap: clamp(60px, 12vh, 140px); }

/* One moment of the day: words on the left, photos on the right.
   A thin line above each moment reads like a timeline. */
.hour {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  padding-top: 22px;
  border-top: 1px solid currentColor;
}
/* "sticky" keeps the words in view while the photos beside them scroll past */
.hour__words { position: sticky; top: 18vh; align-self: start; display: grid; gap: 12px; }
.hour__words p { font-family: var(--display); font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; }

/* The photos sit side by side at the same height, each keeping its own shape.
   Each one grows in proportion to its width-to-height ratio (--r), which is
   what makes the heights line up. */
.hour__shots { display: flex; gap: clamp(10px, 1.6vw, 22px); align-items: flex-start; }
.photo.shot { flex: var(--r) 1 0; aspect-ratio: var(--r); }
.shot--p { --r: .75; }   /* portrait, 3:4 */
.shot--l { --r: 1.3333; } /* landscape, 4:3 */
.photo video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Photo slots: show a soft gradient + label until a real photo is added */
.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--lilac), #6f5aa8 55%, var(--midnight));
}
.photo--tall { aspect-ratio: 4 / 5; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--salt);
}
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

.voices { display: grid; gap: clamp(50px, 10vh, 110px); padding-top: clamp(100px, 20vh, 220px); }
.voice { margin: 0; display: grid; gap: 18px; max-width: 34ch; }
.voice p { font-family: var(--display); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.15; }
/* The rest of a long review: smaller, in the body font, so it stays easy to read */
.voice .voice__more { font-family: var(--body); font-size: inherit; line-height: 1.55; opacity: .85; margin-top: -6px; }
/* Photo of the participant (only for women who said yes in the feedback form):
   an arch shape, like a window at the finca. object-position in the HTML keeps her face in frame */
.voice__photo { width: clamp(120px, 14vw, 180px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 6px 6px; }
/* Every second review sits on the right, so they zig-zag down the page */
.voice:nth-of-type(even) { justify-self: end; }
.next {
  display: grid; gap: 22px; justify-items: start;
  padding-top: clamp(40px, 8vh, 80px);
  border-top: 1px solid currentColor;
}
.next__text { font-family: var(--display); font-size: clamp(34px, 4.5vw, 70px); line-height: 1.02; max-width: 18ch; }

/* Retreat interest form: two fields side by side on wide screens, stacked on phones */
.interest {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px 40px; width: 100%; max-width: 760px; margin-top: 12px;
}
@media (max-width: 600px) { .interest { grid-template-columns: 1fr; } }
.interest__field { display: grid; gap: 10px; }
.interest__field--wide { grid-column: 1 / -1; }
.interest__field em { text-transform: none; letter-spacing: 0; opacity: .6; }
.interest input,
.interest textarea {
  width: 100%; padding: 10px 0;
  background: transparent; color: inherit;
  border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  font-family: var(--body); font-size: 20px;
  resize: vertical;
}
.interest input:focus,
.interest textarea:focus { outline: none; border-bottom-color: var(--lilac); }
.interest .button { justify-self: start; background: transparent; color: inherit; cursor: pointer; }
/* INAE waitlist: a filled deep violet button, so it stands out on the lilac background */
.interest .button--waitlist {
  padding: 18px 36px; font-size: 15px;
  white-space: nowrap; /* keep "Join the waitlist" on one line */
  background: var(--violet); color: var(--salt); border-color: var(--violet);
  box-shadow: 0 8px 24px rgba(26, 20, 38, .25);
  transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
}
.interest .button--waitlist:hover,
.interest .button--waitlist:focus-visible {
  background: var(--ink); border-color: var(--ink); color: var(--salt);
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26, 20, 38, .35); /* lifts a little */
}
.interest__status { grid-column: 1 / -1; font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); }
.interest__status:empty,
.interest [hidden] { display: none; } /* make sure hidden fields really disappear after sending */

/* ---------- 5. Yoga ---------- */
.yoga { background: var(--salt); padding-bottom: clamp(100px, 16vh, 200px); overflow: hidden; }
.marquee { padding-block: clamp(40px, 8vh, 90px); border-bottom: 1px solid rgba(26,20,38,.15); }
.marquee__inner {
  display: flex;
  width: max-content;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 1;
  color: var(--violet);
  white-space: nowrap;
  will-change: transform;
}
.yoga__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
  padding-top: clamp(60px, 10vh, 120px);
  align-items: start;
}
.yoga__words { display: grid; gap: 22px; }
.yoga__poem { font-family: var(--display); font-size: clamp(44px, 6vw, 96px); line-height: .95; }
.yoga__credit { opacity: .6; }
.yoga__intro { max-width: 40ch; }
/* Debora's story with yoga: a short personal text under the intro */
.yoga__story { display: grid; gap: 14px; max-width: 44ch; margin-top: clamp(20px, 5vh, 50px); padding-top: 22px; border-top: 1px solid rgba(26, 20, 38, .2); }
.yoga__story em { font-family: var(--display); font-size: 1.25em; }
/* What Debora tells her students: a larger quote with a line on the left */
.yoga__quote {
  margin: 8px 0 0; padding-left: 20px; border-left: 2px solid var(--violet);
  font-family: var(--display); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2;
}
.classes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.class {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.2fr;
  gap: 12px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--ink);
  transition: padding .4s, background .4s;
}
.class:hover { padding-inline: 12px; background: var(--lilac); }
.class__day { font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); }
.class__time { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.class__place { text-align: right; font-style: italic; }
/* studio names link to the studios' Instagram */
a.class__place { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.class__place:hover, a.class__place:focus-visible { color: var(--violet); }
/* The class title sits on its own line under day, time and place */
.class__name { grid-column: 1 / -1; color: var(--violet); font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; }

/* Training & certifications: a quiet list under the class times */
.yoga__side { display: grid; gap: clamp(50px, 8vh, 90px); }
.training { display: grid; gap: 16px; }
.training__list { list-style: none; margin: 0; padding: 0; }
.training__list li {
  display: grid; gap: 4px; /* name, then school and year underneath */
  padding-block: 12px; border-bottom: 1px solid rgba(26, 20, 38, .2);
}
.training__name { font-family: var(--display); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.1; }
.training__meta { opacity: .65; }
.training__group { margin-top: 18px; color: var(--violet); } /* Yoga · Body & mind · Sound */

/* ---------- 5b. Coaching ---------- */
/* Soft lavender, so it reads as its own chapter between Yoga (white) and Music (plum) */
.coaching { background: var(--lilac); color: var(--ink); padding-block: clamp(100px, 18vh, 220px); }
.coaching__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.coaching__words { display: grid; gap: 22px; max-width: 52ch; }
.coaching__title { font-family: var(--display); font-size: clamp(44px, 5.5vw, 88px); line-height: .95; }
.coaching__title em { color: var(--violet); }
/* The INAE box: a line on top, the name large, then the waitlist form */
.inae { display: grid; gap: 16px; margin-top: clamp(20px, 5vh, 50px); padding-top: 24px; border-top: 1px solid var(--ink); }
.inae .label { color: var(--violet); }
.inae__name { font-family: var(--display); font-size: clamp(64px, 9vw, 140px); line-height: .85; letter-spacing: .02em; }
.inae__text { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.coaching .training__group { color: var(--violet); }
.coaching .training__list li { border-bottom-color: rgba(26, 20, 38, .3); }
.about__next a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- 6. Music ---------- */
.music { background: var(--plum); color: var(--salt); padding-block: clamp(100px, 18vh, 220px); overflow: hidden; }
.music__body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.music__words { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.music__title { font-family: var(--display); font-size: clamp(40px, 5vw, 80px); line-height: 1; }
/* Debora's music story: short paragraphs, the key lines in the display font */
.music__story { display: grid; gap: 14px; max-width: 46ch; }
.music__story em { font-family: var(--display); font-size: 1.25em; }
.spotify { width: 100%; max-width: 520px; border: 0; border-radius: 12px; }

/* A record that turns as you scroll */
.record { width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.record__disc {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    repeating-radial-gradient(circle, #120d1c 0 2px, #1b1428 2px 4px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  transform: rotate(calc(var(--p) * 540deg));
}
.record__label {
  width: 36%; aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--violet);
  font-family: var(--mono); font-size: clamp(10px, 1vw, 13px); letter-spacing: .2em;
}

/* ---------- 7. About ---------- */
.about { background: var(--salt); padding-block: clamp(100px, 18vh, 220px); }
.about__body {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.about__words { display: grid; gap: 20px; max-width: 58ch; }
.about__words em { font-family: var(--display); font-size: 1.2em; }
/* "Coming next" box: a violet line on the left, like a note in the margin */
.about__next { display: grid; gap: 8px; padding: 4px 0 4px 20px; border-left: 2px solid var(--violet); }
.about__next .label { color: var(--violet); }
.about__next p:last-child { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.about__title { font-family: var(--display); font-size: clamp(44px, 5.5vw, 88px); line-height: .95; margin-bottom: 8px; }
/* The portrait zooms out slowly as it comes into view */
.zoom img, .zoom::before { transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.js .zoom img { transform: scale(1.18); }
.js .zoom.is-in img { transform: scale(1); }

/* ---------- 8. Contact ---------- */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--salt);
  padding-block: clamp(120px, 22vh, 260px) calc(40px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.contact__ring {
  position: absolute;
  right: -10vw; top: -10vw;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  max-width: 100%;
  background: url("../images/sun-ring-light.png") center / contain no-repeat;
  opacity: .5;
  animation: spin 120s linear infinite;
}
.contact__body { position: relative; display: grid; gap: clamp(40px, 8vh, 80px); }
.contact__big { font-family: var(--display); font-size: clamp(56px, 11vw, 190px); line-height: .9; letter-spacing: -.02em; }
.contact__links { display: flex; flex-wrap: wrap; gap: 16px 40px; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; }
.contact__links a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact__small { opacity: .55; }
/* Centre everything in the footer: big line, button + icon, links, small print */
.contact__body { justify-items: center; text-align: center; }
.contact__actions, .contact__links { justify-content: center; }
/* the turning ring sits centred behind "You are here, now." */
.contact__ring { left: 50%; right: auto; transform: translateX(-50%); }
/* "Message me" button and Instagram icon, side by side */
.contact__actions { display: flex; align-items: center; gap: 24px; }
.contact__btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.contact__btn:hover, .contact__btn:focus-visible { background: var(--violet); color: var(--salt); }
.contact__icon { display: inline-flex; padding: 10px; border: 1px solid currentColor; border-radius: 50%; transition: color .3s; }
.contact__icon:hover, .contact__icon:focus-visible { color: #b9a3ec; }

/* ---------- Illustrations from SALT ----------
   The drawings are black lines on white. "multiply" makes the white disappear
   on light backgrounds; on dark ones we invert them (white lines) and use "screen". */
.ill { display: block; height: auto; mix-blend-mode: multiply; pointer-events: none; }
.ill--on-dark { filter: invert(1); mix-blend-mode: screen; opacity: .75; }
.ill--waves { width: 100%; margin-bottom: clamp(60px, 10vh, 120px); }
.ill--sun { width: clamp(90px, 10vw, 140px); }
.ill--line { width: 100%; max-width: 900px; margin: 0 auto clamp(50px, 9vh, 100px); }
.ill--pulse { width: min(100%, 320px); margin-top: 12px; opacity: .8; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .salt__intro, .yoga__body, .coaching__body, .music__body, .about__body { grid-template-columns: minmax(0, 1fr); }
  /* SALT on one column: centre the text from "These poems are the tears" down to the button */
  .salt__echo, .salt__desc, .salt__reviews, .salt__for, .salt__words .button, .salt__formats { justify-self: center; text-align: center; }
  .salt__review { padding-left: 0; border-left: 0; }
  .word { grid-template-columns: minmax(0, 1fr); }
  .circles { grid-template-columns: minmax(0, 1fr); }
  /* Retreat: words above, then a row of photos you swipe sideways */
  .hour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hour__words { position: static; }
  .hour__shots {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); /* let the row run to the screen edges */
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hour__shots::-webkit-scrollbar { display: none; }
  .photo.shot { flex: 0 0 auto; height: min(78vw, 62vh); width: auto; scroll-snap-align: start; }
  .class { grid-template-columns: 1fr auto; }
  .class__place { grid-column: 1 / -1; text-align: left; }
  .record { width: min(70%, 320px); }
}

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
