/* Tranquillity Reiki: Morning Light.
   A quiet room by the Atlantic at first light: high-key photography, slow water,
   breath. One deep ink for every letter, always on light grounds. The chakra
   colours appear only as soft light, never as text. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* soft cross-fade between pages */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 0.45s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: page-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes page-out {
  to { opacity: 0; transform: scale(0.985); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(1.5rem); }
}

:root {
  --ink: #241c33;

  --linen: #f6f1ea;
  --mist: #fcfaf7;
  --sand: #ece3d6;
  --sage: #e3e9dc;
  --dawn: #f6e5dc;
  --white: #ffffff;

  /* her favourite colour carries every call to action */
  --sun: #fdd953;
  --sun-deep: #f6cb34;

  /* the seven chakras, root to crown: light only, never text */
  --c1: #e0544a;
  --c2: #f39a4b;
  --c3: #f2c94c;
  --c4: #5fae73;
  --c5: #5fb2e6;
  --c6: #5662c9;
  --c7: #9a6fd6;

  --line: rgb(36 28 51 / 0.14);
  --veil: 246 241 234;

  --display: "Gloock", Georgia, serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;

  --step--1: 1.0625rem;
  --step-0: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);
  --step-1: clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
  --step-2: clamp(1.8rem, 1.45rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.7rem + 2.9vw, 4.1rem);
  --step-4: clamp(3rem, 1.8rem + 5vw, 6rem);

  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: clamp(3rem, 2rem + 3.5vw, 5rem);
  --space-2xl: clamp(5rem, 3rem + 7vw, 10rem);

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --wrap: 84rem;
  --measure: 35em;
  --radius: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--ink) var(--sand);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
  caret-color: var(--ink);
  overflow-wrap: break-word;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

strong {
  font-weight: 700;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(36 28 51 / 0.45);
  transition: text-decoration-color 0.3s, background-color 0.3s;
}

a:hover {
  text-decoration-color: var(--ink);
}

.ext__end {
  white-space: nowrap;
}

.ext__end::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.18em;
  vertical-align: -0.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5h10v10M19 5 6 18' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5h10v10M19 5 6 18' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.link-pending {
  border-bottom: 0.09em dashed var(--ink);
}

:focus-visible {
  outline: 0.18rem solid var(--ink);
  outline-offset: 0.22rem;
  box-shadow: 0 0 0 0.55rem rgb(253 217 83 / 0.7);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

p.wrap {
  max-width: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------ buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.5rem;
  padding: 0.8em 1.75em;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  translate: var(--mx, 0) var(--my, 0);
  box-shadow: 0 0.9rem 2rem -1rem rgb(196 150 40 / 0.65);
  transition: background-color 0.35s, box-shadow 0.5s var(--ease), translate 0.5s var(--ease);
}

.btn:hover {
  background: var(--sun-deep);
  box-shadow: 0 1.3rem 2.4rem -1rem rgb(196 150 40 / 0.75);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.5s var(--ease);
}

@media (hover: none) {
  a,
  button {
    -webkit-tap-highlight-color: rgb(253 217 83 / 0.35);
  }

  .btn:active {
    scale: 0.97;
    transition: scale 0.15s;
  }
}

.btn:hover svg.arrow {
  transform: translateX(0.25em);
}

.btn--line {
  background: rgb(255 255 255 / 0.55);
  box-shadow: inset 0 0 0 0.094rem var(--ink);
}

.btn--line:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 0.094rem var(--ink);
}

/* placeholders: icon and label on one line, the note always underneath */
.btn.is-placeholder {
  display: inline-grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  row-gap: 0.2em;
  cursor: default;
}

.btn.is-placeholder .placeholder-note {
  grid-column: 2;
  justify-self: start;
}

.placeholder-note {
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0 0.6em;
  border: 0.09rem dashed currentColor;
  border-radius: 999px;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: transform 0.6s var(--ease), background-color 0.4s, box-shadow 0.4s;
}

.site-header.is-solid {
  background: var(--linen);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-away {
  transform: translateY(-110%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-s) var(--space-l);
  min-height: 5.25rem;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.4rem, 0.8rem + 1.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* from the full bar up to a wide screen, the name and the gaps give a little so seven items keep one line */
@media (min-width: 78.0625rem) and (max-width: 90rem) {
  .wordmark {
    font-size: 1.55rem;
  }

  .site-nav__list {
    column-gap: 0.9rem;
  }
}

/* over a hero the header sits on one soft haze of morning light, which fades into the picture */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: calc(6.5rem + env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgb(255 251 240 / 0.96), rgb(255 251 240 / 0.92) 52%, rgb(255 251 240 / 0.55) 72%, rgb(255 251 240 / 0.18) 88%, rgb(255 251 240 / 0));
  transition: opacity 0.4s;
  pointer-events: none;
}

.site-header.is-solid::before,
.menu-open .site-header::before {
  opacity: 0;
}

.site-header .site-nav__list {
  position: relative;
}

.site-nav__list,
.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem clamp(0.4rem, 1.4vw, 1.4rem);
}

.site-nav__list > li:not(.site-nav__extra) > a,
.site-nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 3rem;
  padding: 0.3em 0.2em;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 0% 1.5px;
  transition: background-size 0.5s var(--ease);
}

.site-nav__list > li:not(.site-nav__extra) > a:hover,
.site-nav__sub-toggle:hover,
.site-nav a[aria-current="page"],
.site-nav__group:has([aria-current="page"]) > .site-nav__sub-toggle {
  background-size: 100% 1.5px;
}

.site-nav__sub-toggle svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.4s var(--ease);
}

.site-nav__sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.site-nav__group {
  position: relative;
}

.site-nav__sub {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1.25rem;
  min-width: 19rem;
  padding: 0.6rem;
  border-radius: 1.25rem;
  background: var(--mist);
  box-shadow: 0 1.5rem 3rem -1.25rem rgb(36 28 51 / 0.35), 0 0 0 1px var(--line);
  transform-origin: top left;
  animation: drop 0.45s var(--ease);
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-0.5rem) scale(0.98); }
}

.js .site-nav__sub[hidden] {
  display: none;
}

.site-nav__sub a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.9rem;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-nav__sub a:hover {
  background: var(--sand);
}

.site-nav__toggle,
.site-nav__group-label,
.site-nav__extra {
  display: none;
}

.site-header__book {
  flex: none;
  white-space: nowrap;
  min-height: 3rem;
  padding-inline: 1.4em;
}

/* without script the dropdown opens on hover and focus */
html:not(.js) .site-nav__group:not(:hover, :focus-within) .site-nav__sub {
  display: none;
}

/* ------------------------------------------------------------ the menu sheet
   Below 78rem the menu is a full screen of its own. Every page is in view at once (nothing
   hides behind a second tap), set large, standing along a thread of light like her story. */

@media (max-width: 78rem) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .site-header__inner {
    justify-content: space-between;
    gap: var(--space-s);
    min-height: 4.5rem;
  }

  .wordmark {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0 0.24em;
    min-height: 3rem;
    margin-right: auto;
    font-size: clamp(1.25rem, 0.7rem + 1.6vw, 1.75rem);
  }

  .site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .site-nav {
    flex: none;
    order: 2;
  }

  .site-header__book {
    order: 1;
  }

  .site-nav__toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0 1rem 0 0.85rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 251 240 / 0.94);
    box-shadow: inset 0 0 0 0.094rem var(--ink);
    color: var(--ink);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .burger {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1rem;
  }

  .burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.14rem;
    border-radius: 1rem;
    background: currentColor;
    transition: transform 0.5s var(--ease), opacity 0.3s;
  }

  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: calc(50% - 0.07rem); }
  .burger span:nth-child(3) { bottom: 0; }

  [aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(0.43rem) rotate(45deg); }
  [aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
  [aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-0.43rem) rotate(-45deg); }

  .js .site-nav__list[hidden] {
    display: none;
  }

  .js .site-nav__list {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(5.25rem + env(safe-area-inset-top)) 0 0;
    background: var(--linen);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu-open,
  .menu-open body {
    overflow: hidden;
  }

  /* the thread of light runs from Home, root red, to Science & Reiki, crown violet */
  .js .site-nav__list > li:not(.site-nav__extra) {
    position: relative;
    padding: 0 var(--gutter) 0 calc(var(--gutter) + 2.75rem);
  }

  .js .site-nav__list > li:not(.site-nav__extra)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--gutter) + 1.1rem);
    width: 3px;
    background: linear-gradient(var(--from), var(--to));
  }

  .js .site-nav__list > li:nth-child(1) { --from: var(--c1); --to: var(--c2); }
  .js .site-nav__list > li:nth-child(2) { --from: var(--c2); --to: var(--c3); }
  .js .site-nav__list > li:nth-child(3) { --from: var(--c3); --to: var(--c5); }
  .js .site-nav__list > li:nth-child(4) { --from: var(--c5); --to: var(--c6); }
  .js .site-nav__list > li:nth-child(5) { --from: var(--c6); --to: var(--c7); }

  .js .site-nav__list > li:not(.site-nav__extra) > a,
  .site-nav__group-label {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: clamp(3.25rem, 7svh, 4rem);
    padding: 0;
    background: none;
    font-family: var(--display);
    font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-decoration: none;
  }

  .js .site-nav__sub-toggle {
    display: none;
  }

  .js .site-nav__group-label {
    display: flex;
  }

  .js .site-nav__sub,
  .js .site-nav__sub[hidden] {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 0.5rem;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    animation: none;
  }

  .js .site-nav__sub a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0;
    border-radius: 0;
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
  }

  .js .site-nav__sub a:hover {
    background: none;
  }

  /* a lotus on the thread says where you are */
  .js .site-nav__list a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(1.5px - 1.65rem);
    width: 2.2rem;
    height: 2.2rem;
    translate: -50% -50%;
    border-radius: 50%;
    background: url("../assets/img/lotus.svg") center / contain no-repeat, radial-gradient(closest-side, var(--linen) 72%, rgb(246 241 234 / 0));
  }

  .js .site-nav__extra {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding: 3.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  }

  /* her painted sky rises at the foot of the sheet */
  .js .site-nav__extra::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../assets/img/sky-portrait-900.webp") center 62% / cover no-repeat;
    -webkit-mask-image: linear-gradient(transparent, #000 48%);
    mask-image: linear-gradient(transparent, #000 48%);
  }

  .js .site-nav__extra .btn {
    width: min(100%, 26rem);
  }

  .js .site-nav__extra .social {
    justify-content: center;
    margin: 0;
  }

  .js .site-nav__extra .placeholder-note {
    background: rgb(255 251 240 / 0.94);
  }

  /* arrival: the sheet opens from the button like a flower, and the pages rise along the thread */
  .motion .site-nav__list:not([hidden]) {
    animation: menu-bloom 0.8s var(--ease) both;
  }

  .motion .site-nav__list:not([hidden]) > li {
    animation: menu-rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 55ms + 80ms);
  }

  .site-nav__list > li:nth-child(2) { --i: 1; }
  .site-nav__list > li:nth-child(3) { --i: 2; }
  .site-nav__list > li:nth-child(4) { --i: 3; }
  .site-nav__list > li:nth-child(5) { --i: 4; }
  .site-nav__list > li:nth-child(6) { --i: 5; }

  .motion .site-nav__list.is-closing {
    animation: menu-fold 0.32s cubic-bezier(0.4, 0, 1, 1) both;
  }

  /* without script the pages simply sit in a row */
  html:not(.js) .site-nav__toggle {
    display: none;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  html:not(.js) .site-nav__list {
    flex-wrap: wrap;
  }

  html:not(.js) .site-nav__sub {
    position: static;
  }
}

/* on small screens the name takes two lines, so it can stay large beside the menu */
@media (max-width: 48rem) {
  .wordmark {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(1.3rem, 0.6rem + 3.2vw, 1.75rem);
    line-height: 1.02;
  }
}

@keyframes menu-bloom {
  from { clip-path: circle(1.5rem at calc(100% - 4rem) 2.4rem); }
  to { clip-path: circle(150vmax at calc(100% - 4rem) 2.4rem); }
}

@keyframes menu-rise {
  from { opacity: 0; transform: translateY(1.25rem); }
}

@keyframes menu-fold {
  to { opacity: 0; }
}

@media (max-width: 40rem) {
  /* on a phone the header is one row: the name and the menu. The WhatsApp bar does the booking. */
  .site-header__book {
    display: none;
  }

  .site-header__inner {
    min-height: 4.25rem;
  }

  .site-nav__toggle {
    font-size: 1.0625rem;
  }
}

/* ------------------------------------------------------------ hero: the painted sky
   Anita's painting expanded into a sky. Its light stream fans out in all seven colours,
   and motes of light rise from the earth below. */

.hero {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: 5.75rem var(--gutter) 5.5rem;
}

.hero__media,
.hero__media picture,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media {
  z-index: -3;
  inset: -1%;
  width: 102%;
  height: 102%;
  transform: scale(calc(1 + var(--hp, 0) * 0.1));
  transform-origin: 50% 70%;
  translate: calc((var(--gx, 50%) - 50%) * -0.35) calc((var(--gy, 54%) - 54%) * -0.25);
  transition: translate 1.6s var(--ease);
}

.hero__media img {
  object-position: 50% 60%;
}

/* the light source: a warm glow where the stream rises from the earth */
.hero__source {
  position: absolute;
  left: 50%;
  bottom: -18%;
  z-index: -2;
  width: min(90vw, 60rem);
  aspect-ratio: 1.6;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 246 214 / 0.9), rgb(255 232 170 / 0.45) 45%, rgb(255 232 170 / 0));
  pointer-events: none;
}

.hero__motes {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* a veil of morning light keeps every letter on a light ground */
/* the cream glow behind the words keeps every letter at 7:1 or better */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 30% 22% at 50% 70%, rgb(255 251 240 / 0.35) 0%, rgb(255 251 240 / 0) 100%);
}

/* the cream glow hugs the words themselves, so the sky keeps its colour everywhere else */
.hero__words {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(0.9rem, 2.2svh, 1.5rem);
}

/* the cream light behind hero words: it fades out on an eased curve, with no rim */
.hero__words::before,
.story-hero__text::before,
.page-hero__words::before {
  --fx: 9rem;
  --fy: 4.5rem;
  /* the light reaches past the words, so it must never catch a tap meant for a button beside it */
  pointer-events: none;
  --glow-mask: linear-gradient(to right, transparent, rgb(0 0 0 / 0.1) calc(var(--fx) * 0.22), rgb(0 0 0 / 0.38) calc(var(--fx) * 0.45), rgb(0 0 0 / 0.75) calc(var(--fx) * 0.72), #000 var(--fx), #000 calc(100% - var(--fx)), rgb(0 0 0 / 0.75) calc(100% - var(--fx) * 0.72), rgb(0 0 0 / 0.38) calc(100% - var(--fx) * 0.45), rgb(0 0 0 / 0.1) calc(100% - var(--fx) * 0.22), transparent), linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.1) calc(var(--fy) * 0.22), rgb(0 0 0 / 0.38) calc(var(--fy) * 0.45), rgb(0 0 0 / 0.75) calc(var(--fy) * 0.72), #000 var(--fy), #000 calc(100% - var(--fy)), rgb(0 0 0 / 0.75) calc(100% - var(--fy) * 0.72), rgb(0 0 0 / 0.38) calc(100% - var(--fy) * 0.45), rgb(0 0 0 / 0.1) calc(100% - var(--fy) * 0.22), transparent);
}

.hero__words::before {
  content: "";
  position: absolute;
  inset: calc(var(--fy) * -1) calc(var(--fx) * -1);
  z-index: -1;
  background: rgb(255 251 240 / 0.92);
  -webkit-mask-image: var(--glow-mask);
  mask-image: var(--glow-mask);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__content,
.story-hero__grid,
.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: clamp(0.9rem, 2.2svh, 1.5rem);
  text-align: center;
}

.hero.is-pinned .hero__content {
  transform: translateY(calc(var(--hp, 0) * -14vh));
  opacity: calc(1 - var(--hp, 0) * 1.6);
}

.hero__painting {
  margin: 0;
  width: min(62vw, 25svh, 21rem);
}

.hero__mount {
  display: block;
  padding: clamp(0.6rem, 1.4vw, 1rem);
  background: #fbf8f2;
  box-shadow:
    0 0 0 1px rgb(36 28 51 / 0.08),
    0 2.25rem 3.5rem -1.5rem rgb(60 40 20 / 0.45),
    0 0.6rem 1.2rem -0.4rem rgb(60 40 20 / 0.2);
}

.hero__painting img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  box-shadow: inset 0 0 0 1px rgb(36 28 51 / 0.1);
}

.hero h1 {
  font-size: clamp(2.8rem, 1.4rem + 3.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  max-width: 20ch;
}

.hero__question {
  max-width: 46ch;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.45;
}

/* her welcome, under her question */
.hero__welcome {
  max-width: 62ch;
  margin-top: 0;
  font-size: var(--step-0);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}

.hero .actions {
  margin-top: 0.25rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 1px;
  height: 3.5rem;
  background: rgb(36 28 51 / 0.2);
  overflow: hidden;
  opacity: calc(1 - var(--hp, 0) * 4);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
}

/* the hero stays put while the sheet slides over it, but only when it fits the screen */
.hero.is-pinned {
  position: sticky;
  top: 0;
}

/* ------------------------------------------------------------ the sheet slides over the hero */

/* No hard edge: a bank of morning mist leads the linen up over the sky and grows as you
   scroll (--sheet-rise), while the sky washes towards linen, so the picture dissolves into the page. */
.sheet {
  position: relative;
  z-index: 1;
  background: var(--linen);
}

.sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(12rem, 40vh, 26rem);
  background:
    radial-gradient(ellipse 34% 55% at 8% 100%, var(--linen) 35%, rgb(246 241 234 / 0) 100%),
    radial-gradient(ellipse 30% 72% at 33% 100%, var(--linen) 30%, rgb(246 241 234 / 0) 100%),
    radial-gradient(ellipse 36% 60% at 63% 100%, var(--linen) 35%, rgb(246 241 234 / 0) 100%),
    radial-gradient(ellipse 30% 76% at 92% 100%, var(--linen) 30%, rgb(246 241 234 / 0) 100%),
    linear-gradient(rgb(246 241 234 / 0), rgb(246 241 234 / 0.5) 50%, var(--linen) 92%);
  transform-origin: bottom;
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
}

/* it grows in height only, so its foot is always solid linen and meets the sheet without a seam */
.motion .sheet::before {
  transform: scaleY(var(--sheet-rise, 0));
  opacity: 1;
}

.hero:not(.is-pinned) + .sheet::before,
.story-hero:not(.is-pinned) + .sheet::before,
.page-hero:not(.is-pinned) + .sheet::before {
  height: 5rem;
}

/* as the story rises, the sky washes towards linen from below */
.motion .hero__veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--linen) 8%, rgb(246 241 234 / 0.55) 55%, rgb(246 241 234 / 0.12));
  opacity: calc(var(--hp, 0) * 1.3);
  pointer-events: none;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.section {
  padding-block: var(--space-2xl);
}

/* ------------------------------------------------------------ distance */

.distance {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.distance__text {
  display: grid;
  gap: var(--space-l);
}

.distance__text .lead {
  max-width: 30ch;
}

.datelines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.dateline {
  margin: 0;
}

.dateline__sky {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.5rem;
}

.dateline__sky svg {
  width: 100%;
  height: 100%;
}

.dateline .moon,
.dateline[data-phase="night"] .sun {
  display: none;
}

.dateline[data-phase="night"] .moon {
  display: block;
}

.sun__rays {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.motion .sun__rays {
  animation: turn 30s linear infinite;
}

.dateline__time {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dateline__place {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.dateline__day {
  display: block;
}

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.photo img,
.photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -8%)) scale(1.14);
}

.distance__photo {
  position: relative;
}

.distance__photo .photo {
  aspect-ratio: 4 / 5;
}

/* a lotus with her words turning slowly around it, beside the mountain */
.ring {
  position: absolute;
  left: clamp(-5rem, -5vw, -2rem);
  bottom: clamp(-3.5rem, -3vw, -1.5rem);
  display: grid;
  width: clamp(12.5rem, 17vw, 16.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fffdf8 62%, rgb(252 250 247 / 0.96) 100%);
  box-shadow: 0 1.75rem 3.5rem -1.75rem rgb(60 40 20 / 0.45);
}

.ring > * {
  grid-area: 1 / 1;
}

.ring .lotus {
  width: 64%;
  margin: auto;
}

.ring__words {
  width: 100%;
  height: 100%;
}

.ring text {
  font-family: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: var(--ink);
}

.ring__spin {
  transform-origin: 100px 100px;
}

/* the lotus: every layer turns about the flower's own centre */
.lotus {
  display: block;
  overflow: visible;
}

.lotus__layer {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

/* ------------------------------------------------------------ the session, as a journey */

.journey {
  position: relative;
  background: var(--sand);
}

.journey__frame {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-2xl);
}

.journey__intro {
  display: grid;
  gap: var(--space-m);
  align-content: center;
}

.journey__intro h2 {
  font-size: clamp(2.1rem, 1.5rem + 1.7vw, 3rem);
}

.journey__intro p {
  max-width: 28ch;
}

.journey__progress {
  position: relative;
  height: 0.35rem;
  margin-top: var(--space-s);
  border-radius: 1rem;
  background: var(--sand);
  overflow: hidden;
}

.journey__progress span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7));
  transform-origin: left;
  transform: scaleX(calc(0.08 + var(--jp, 0) * 0.92));
}

.journey__viewport {
  min-width: 0;
}

.journey__track,
.journey__track .steps {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.25rem 2rem;
  scrollbar-width: thin;
}

.journey__track .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* the two halves of the session open like chapters */
.chapter {
  flex: 0 0 min(22rem, 78vw);
  scroll-snap-align: start;
  display: grid;
  align-content: end;
  gap: var(--space-m);
}

.chapter__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}

.chapter__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter h3 {
  font-size: var(--step-3);
  line-height: 1;
}

.step {
  position: relative;
  flex: 0 0 min(25rem, 82vw);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: var(--space-s);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--radius);
  background: #fbf7f1;
  box-shadow: 0 1.75rem 3.5rem -2.5rem rgb(60 40 20 / 0.35);
  overflow: hidden;
}

/* each step has its own soft colour; the colour is only light, it does not stand for a chakra */
.step::before {
  content: "";
  position: absolute;
  top: -9rem;
  right: -9rem;
  width: 24rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  opacity: 0.42;
  filter: blur(12px);
}

.motion .step::before {
  animation: glow 7s ease-in-out infinite alternate;
}

@keyframes glow {
  from { opacity: 0.32; transform: scale(0.94); }
  to { opacity: 0.52; transform: scale(1.06); }
}

.step > * {
  position: relative;
}

.step__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.step__symbol {
  width: clamp(4rem, 5vw, 5.25rem);
  height: auto;
  filter: drop-shadow(0 0.6rem 1rem rgb(60 40 20 / 0.18));
}

.step__n {
  font-family: var(--display);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem);
  line-height: 0.9;
}

.step h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: var(--step-1);
  line-height: 1.2;
}

.step p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* on wide screens the section holds still while the steps pass by */
@media (min-width: 64rem) {
  .js .journey.is-pinned {
    height: calc(100svh + var(--travel, 0px));
  }

  .js .journey.is-pinned .journey__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    display: grid;
    align-items: center;
  }

  .js .journey.is-pinned .journey__frame {
    padding-block: 6rem 2rem;
  }

  .js .journey.is-pinned .journey__viewport {
    overflow: hidden;
    margin-block: -1rem -2rem;
    padding-block: 1rem 2rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  }

  .js .journey.is-pinned .journey__track {
    padding-inline: 2.5rem;
    overflow: visible;
    scroll-snap-type: none;
    transform: translateX(calc(var(--jp, 0) * var(--travel, 0px) * -1));
    will-change: transform;
  }
}

/* ------------------------------------------------------------ breathe */

.breathe {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--space-2xl) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.breathe__media,
.breathe__media video,
.breathe__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breathe__media {
  z-index: -2;
}

/* site.js places the film so the centre of its ripples is exactly under the lotus. Turned
   over, that centre lies high in the frame, where the lotus is, so the film needs little zoom. */
.breathe__media video {
  max-width: none;
  transform: scaleY(-1);
}

.breathe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 48% 55% at 50% 50%, rgb(var(--veil) / 0.9), rgb(var(--veil) / 0.62) 62%, rgb(var(--veil) / 0.3));
}

.breathe__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-l);
}

.breath {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(15rem, 32vw, 23rem);
  aspect-ratio: 1;
}

.breath > * {
  grid-area: 1 / 1;
}

/* the lotus lies in the water: a soft pool of light that fades out with no edge */
.breath__glow {
  width: 150%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 252 242 / 0.82), rgb(255 248 230 / 0.5) 42%, rgb(255 248 230 / 0.16) 70%, rgb(255 248 230 / 0));
}

.breath .lotus {
  width: 92%;
}

.breath__words {
  display: grid;
  max-width: none;
  margin-top: calc(var(--space-m) * -1);
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.1;
}

.breath__words span {
  grid-area: 1 / 1;
}

.breath__words span + span {
  opacity: 0;
}

.breathe__line {
  font-size: var(--step-1);
  max-width: 26ch;
}

/* ------------------------------------------------------------ help */

.help {
  background: var(--sage);
}

.help__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.help__photo {
  position: sticky;
  top: 7rem;
}

.help__photo .photo {
  aspect-ratio: 4 / 5;
}

.help__body {
  display: grid;
  gap: var(--space-l);
}

.help__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help__list li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: var(--space-m);
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgb(36 28 51 / 0.18);
  font-size: var(--step-1);
  line-height: 1.3;
}

.help__list li::before {
  content: "";
  width: 3.25rem;
  aspect-ratio: 1;
  background: var(--sym) center / contain no-repeat;
  filter: drop-shadow(0 0 0.9rem var(--c));
  transition: transform 1s var(--ease), filter 1s var(--ease), opacity 1s var(--ease);
}

.help__list li { --sym: url("../assets/img/lotus.svg"); }
.help__list li:nth-child(1) { --c: rgb(224 84 74 / 0.45); }
.help__list li:nth-child(2) { --c: rgb(243 154 75 / 0.45); }
.help__list li:nth-child(3) { --c: rgb(242 201 76 / 0.5); }
.help__list li:nth-child(4) { --c: rgb(95 174 115 / 0.45); }
.help__list li:nth-child(5) { --c: rgb(95 178 230 / 0.45); }
.help__list li:nth-child(6) { --c: rgb(86 98 201 / 0.45); }
.help__list li:nth-child(7) { --c: rgb(154 111 214 / 0.45); }

.note,
.site-footer__note {
  align-self: start;
  padding: var(--space-m) var(--space-l);
  border-radius: 1.25rem;
  background: var(--mist);
  box-shadow: 0 0 0 1px var(--line);
}

/* ------------------------------------------------------------ in person / at a distance */

.compare__head {
  max-width: 18ch;
  margin-bottom: var(--space-xl);
}

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl) clamp(2rem, 5vw, 5rem);
}

.compare article:nth-child(2) {
  margin-top: clamp(0rem, 8vw, 9rem);
}

@media (min-width: 60rem) {
  .motion .compare article:first-child {
    transform: translateX(calc((1 - min(1, var(--p, 1) * 1.6)) * 12%));
  }

  .motion .compare article:nth-child(2) {
    transform: translateX(calc((1 - min(1, var(--p, 1) * 1.6)) * -12%));
  }
}

.compare .photo {
  aspect-ratio: 3 / 2;
  margin-bottom: var(--space-l);
}

.compare h3 {
  margin-bottom: var(--space-s);
}

/* ------------------------------------------------------------ statement: her line, large, with drifting photographs */

.statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110svh;
  padding: var(--space-2xl) var(--gutter);
  overflow: hidden;
  background: var(--linen);
}

.statement__text {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.statement__photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 2rem 4rem -2rem rgb(60 40 20 / 0.4);
}

.statement__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement__photo--a {
  top: 6%;
  left: 4%;
  width: clamp(9rem, 20vw, 19rem);
  aspect-ratio: 4 / 3;
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -18vh));
}

.statement__photo--b {
  right: 5%;
  top: 22%;
  width: clamp(7rem, 14vw, 13rem);
  aspect-ratio: 3 / 4;
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -34vh));
}

.statement__photo--c {
  left: 14%;
  bottom: 5%;
  width: clamp(8rem, 16vw, 15rem);
  aspect-ratio: 1;
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -10vh));
}

@media (max-width: 40rem) {
  .statement {
    min-height: auto;
    padding-block: 12rem;
  }

  /* on phones the photographs stay in the lanes above and below the words */
  .statement__photo--a { top: 2rem; left: 1rem; width: 9rem; transform: none; }
  .statement__photo--b { top: auto; bottom: 2rem; right: 1rem; width: 7rem; aspect-ratio: 4 / 3; transform: none; }
  .statement__photo--c { display: none; }
}

/* ------------------------------------------------------------ how it works */

.works {
  background: var(--dawn);
}

.works__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.works__aside {
  position: sticky;
  top: 7rem;
}

.works__aside .photo {
  aspect-ratio: 4 / 5;
}

.works__text {
  display: grid;
  gap: var(--space-l);
}

.works__text p + p {
  margin-top: 0;
}

.resonance {
  margin: 0;
  padding: var(--space-l);
  border-radius: var(--radius);
  background: var(--mist);
}

.resonance svg {
  width: 100%;
  height: auto;
}

.resonance__label {
  font-weight: 700;
  line-height: 1.2;
}

.resonance figcaption {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
}

.changes {
  display: grid;
  gap: var(--space-m);
}

.changes p {
  max-width: none;
  margin: 0;
  padding: var(--space-l);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.6);
}

.changes strong {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.2;
}

/* ------------------------------------------------------------ book (shared footer) */

.book {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92svh;
  padding: var(--space-2xl) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.book__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.book__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(var(--veil) / 0.25), rgb(var(--veil) / 0.05) 40%, rgb(var(--veil) / 0.4));
}

.book__card {
  display: grid;
  justify-items: center;
  gap: var(--space-m);
  width: min(100%, 40rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  background: rgb(var(--veil) / 0.95);
  box-shadow: 0 3rem 6rem -3rem rgb(36 28 51 / 0.5);
  text-align: center;
}

.book__lotus {
  width: clamp(4.5rem, 8vw, 6rem);
  height: auto;
  margin-bottom: -0.5rem;
  filter: drop-shadow(0 0.75rem 1.25rem rgb(60 40 20 / 0.2));
}

.motion .book__lotus {
  animation: turn 60s linear infinite;
}

@keyframes turn {
  to { rotate: 360deg; }
}

.book h2 {
  font-size: var(--step-4);
  line-height: 0.95;
}

.book__lead {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 24ch;
}

.book__actions .btn.is-placeholder {
  justify-content: center;
}

.book__actions .placeholder-note {
  justify-self: center;
}

.book__actions {
  display: grid;
  gap: var(--space-s);
  width: min(100%, 28rem);
  margin-top: var(--space-s);
}

.site-footer__base {
  padding: var(--space-xl) 0 var(--space-l);
  background: var(--linen);
}

.orbs {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.orbs__title {
  max-width: none;
  margin-bottom: var(--space-l);
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.1;
}

.orbs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-s);
}

.orbs a {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 0.5rem;
  border-radius: 1.25rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}

/* each chakra shown by its own symbol, standing in soft light */
.orbs a {
  text-decoration: none;
}

.orbs a span {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(36 28 51 / 0.45);
}

.orbs a img {
  width: clamp(4.25rem, 7vw, 6.5rem);
  height: auto;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  background-size: 140% 140%;
  background-position: center;
  box-shadow: 0 0 2.5rem -0.25rem var(--c);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}

.orbs a:hover img {
  transform: rotate(30deg) scale(1.08);
  box-shadow: 0 0 3.5rem 0.25rem var(--c);
}

.motion .orbs li a img {
  animation: bloom 7s ease-in-out infinite alternate;
}

.motion .orbs li:nth-child(2) a img { animation-delay: -1s; }
.motion .orbs li:nth-child(3) a img { animation-delay: -2s; }
.motion .orbs li:nth-child(4) a img { animation-delay: -3s; }
.motion .orbs li:nth-child(5) a img { animation-delay: -4s; }
.motion .orbs li:nth-child(6) a img { animation-delay: -5s; }
.motion .orbs li:nth-child(7) a img { animation-delay: -6s; }

@keyframes bloom {
  from { scale: 0.94; }
  to { scale: 1.04; }
}

.site-footer__grid {
  display: grid;
  /* the links are short, so her name and her three pages get the room: the pills stay on one line on a desktop */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) minmax(0, 1.35fr);
  gap: var(--space-l);
}

.site-footer__name {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.1;
}

.site-footer__slogan {
  margin-top: 0.3em;
  font-size: var(--step-1);
}

.site-footer__place {
  margin-top: 0.6em;
}

/* her Instagram, Facebook and TikTok pages, as quiet pills with their own marks */
.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--space-s) 0 0;
  padding: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.35em 1.1em 0.35em 0.95em;
  border-radius: 999px;
  background: rgb(252 250 247 / 0.94);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.35s var(--ease), translate 0.35s var(--ease);
}

.social a:hover {
  box-shadow: 0 0 0 1.5px var(--ink);
  translate: 0 -0.1rem;
}

.social svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

/* on the Home hero they stand in the bottom right corner, opposite Pause motion */
.hero__social {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  z-index: 2;
  margin: 0;
}

/* on tablets the three named pills would reach the scroll cue in the middle, so they become round marks there too
   (their names stay for screen readers) */
@media (min-width: 40.0625rem) and (max-width: 62rem) {
  .hero__social a {
    width: 2.9rem;
    padding: 0;
    justify-content: center;
  }

  .hero__social .social__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-xl);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

/* ------------------------------------------------------------ floating actions */

.book-bar {
  display: none;
}

@media (max-width: 40rem) {
  .book-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: block;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgb(246 241 234 / 0.97);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%);
    transition: transform 0.7s var(--ease);
  }

  .book-bar.is-shown {
    transform: none;
  }

  .book-bar .btn {
    width: 100%;
  }

  .site-footer__base {
    padding-bottom: 6rem;
  }
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.35em 1em;
  border: 0;
  border-radius: 999px;
  background: rgb(252 250 247 / 0.94);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}

.hero .motion-toggle,
.breathe .motion-toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
}

.motion-toggle svg {
  width: 1.05em;
  height: 1.05em;
}

.motion-toggle .icon-play,
.motion-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.motion-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

/* ------------------------------------------------------------ motion
   Everything is readable without it. html.motion is set only when the visitor
   has not asked for reduced motion and has not paused it. */

.motion .scroll-cue::after {
  animation: cue 2.6s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.motion .ring__spin {
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ring .lotus__layer {
  transition: scale 1.6s var(--ease), opacity 1.6s var(--ease);
}

.ring .lotus__layer--middle { transition-delay: 0.15s; }
.ring .lotus__layer--inner { transition-delay: 0.3s; }
.ring .lotus__layer--core { transition-delay: 0.45s; }

.motion .ring:not(.is-in) .lotus__layer {
  scale: 0.2;
  opacity: 0;
}

.motion .ring[data-reveal]:not(.is-in) {
  opacity: 1;
  transform: none;
}

.motion .ring .lotus__layer--outer { animation: turn 90s linear infinite; }
.motion .ring .lotus__layer--middle { animation: turn-back 70s linear infinite; }
.motion .ring .lotus__layer--inner { animation: turn 50s linear infinite; }

@keyframes turn-back {
  to { rotate: -360deg; }
}

.motion .breath .lotus__layer--outer { animation: open-outer 10s ease-in-out infinite; }
.motion .breath .lotus__layer--middle { animation: open-middle 10s ease-in-out infinite; }
.motion .breath .lotus__layer--inner { animation: open-inner 10s ease-in-out infinite; }
.motion .breath .lotus__layer--core { animation: open-core 10s ease-in-out infinite; }
.motion .breath__glow { animation: glow-breath 10s ease-in-out infinite; }

@keyframes open-outer {
  0%, 100% { scale: 0.55; rotate: -12deg; opacity: 0.55; }
  45%, 55% { scale: 1; rotate: 0deg; opacity: 1; }
}

@keyframes open-middle {
  0%, 100% { scale: 0.62; rotate: 10deg; }
  45%, 55% { scale: 1; rotate: 0deg; }
}

@keyframes open-inner {
  0%, 100% { scale: 0.72; rotate: -8deg; }
  45%, 55% { scale: 1; rotate: 0deg; }
}

@keyframes open-core {
  0%, 100% { scale: 0.85; }
  45%, 55% { scale: 1.05; }
}

@keyframes glow-breath {
  0%, 100% { scale: 0.7; opacity: 0.6; }
  45%, 55% { scale: 1; opacity: 1; }
}

.motion .breath__words span:first-child {
  animation: say-in 10s ease-in-out infinite;
}

.motion .breath__words span + span {
  animation: say-out 10s ease-in-out infinite;
}

@keyframes say-in {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes say-out {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

.motion .book__media img {
  animation: drift 40s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.1) translateX(-2%); }
}

/* arrival: the room fills with light, the painting and words settle */
.motion .hero__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(var(--veil));
  animation: dawn 2.4s var(--ease) both;
  pointer-events: none;
}

@keyframes dawn {
  from { opacity: 1; }
  to { opacity: 0; }
}

.motion .hero__painting {
  animation: arrive 1.6s var(--ease) 0.2s both, float 9s ease-in-out 1.8s infinite alternate;
}

.motion .hero__media img {
  animation: sky-open 2.8s var(--ease) both, sky-breathe 28s ease-in-out 2.8s infinite alternate;
}

@keyframes sky-open {
  from { scale: 1.22; filter: saturate(0.35) brightness(1.18); }
  to { scale: 1; filter: none; }
}

@keyframes sky-breathe {
  from { scale: 1; rotate: 0deg; }
  to { scale: 1.04; rotate: 0.5deg; }
}

.motion .hero__source {
  animation: source 9s ease-in-out infinite alternate;
}

@keyframes source {
  from { opacity: 0.55; scale: 0.94; }
  to { opacity: 1; scale: 1.06; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: translateY(-0.4rem); filter: none; }
}

@keyframes float {
  from { transform: translateY(-0.4rem); }
  to { transform: translateY(0.45rem); }
}

/* words rise from behind a line */
.split .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: top;
}

.split .w > span {
  display: inline-block;
}

.motion .split:not(.is-in) .w > span {
  transform: translateY(110%);
}

.motion .split .w > span {
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.motion [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(1.75rem);
}

.motion [data-reveal] {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

/* photographs open like a curtain */
.motion .photo[data-reveal]:not(.is-in) {
  opacity: 1;
  transform: none;
  clip-path: inset(16% 10% 16% 10% round var(--radius));
}

.motion .photo[data-reveal] {
  clip-path: inset(0 0 0 0 round var(--radius));
  transition: clip-path 1.6s var(--ease);
}

.motion .photo[data-reveal]:not(.is-in) img {
  scale: 1.15;
}

.motion .photo[data-reveal] img {
  transition: scale 2s var(--ease);
}

/* the help list lights up as it is read */
.motion .help__list li:not(.is-lit)::before {
  transform: scale(0.5) rotate(-60deg);
  opacity: 0.35;
  filter: drop-shadow(0 0 0 transparent) grayscale(0.6);
}

.motion .help__list li.is-lit::before {
  transform: none;
}

.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* ------------------------------------------------------------ My Story: hero
   The painted sky, full-bleed, with its stream of light rising behind her portrait.
   The hero pins and the story slides over it as a linen sheet. */

.story-hero {
  --focus-x: 72%;
  position: relative;
  z-index: 0;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 6rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

/* the sky is widened so its stream of light rises behind her, not between her and the words */
.story-hero .hero__media {
  left: -1%;
  width: calc(var(--focus-x) * 2 + 2%);
}

.story-hero__source {
  left: var(--focus-x);
  width: min(70vw, 48rem);
}

.story-hero__motes {
  --motes-x: 0.72;
}

.story-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--space-xl) clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.story-hero__text {
  position: relative;
  display: grid;
  gap: var(--space-l);
}

.story-hero.is-pinned .story-hero__text {
  transform: translateY(calc(var(--hp, 0) * -10vh));
  opacity: calc(1 - var(--hp, 0) * 1.6);
}

/* the cream glow behind the words keeps every letter at 7:1 or better, and fades out on an
   eased curve with no rim, so it reads as morning mist */
.story-hero__text::before,
.page-hero__words::before {
  --fx: 12rem;
  --fy: 5.5rem;
  content: "";
  position: absolute;
  inset: calc(var(--fy) * -1) calc(var(--fx) * -1);
  z-index: -1;
  background: rgb(255 251 240 / 0.92);
  -webkit-mask-image: var(--glow-mask);
  mask-image: var(--glow-mask);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.story-hero h1 {
  font-size: clamp(3.2rem, 1.6rem + 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.story-hero .actions {
  justify-content: flex-start;
}

.story-hero__portrait {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
}

/* her portrait dissolves into the mist as the story rises */
.story-hero.is-pinned .story-hero__portrait {
  transform: translateY(calc(var(--hp, 0) * -6vh));
  opacity: calc(1 - var(--hp, 0) * 1.3);
}

/* the brightest light in the sky gathers around her, with slow sun rays turning behind */
.story-hero__halo {
  position: absolute;
  inset: -14% -24%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 251 240 / 0.95) 34%, rgb(255 244 210 / 0.6) 58%, rgb(255 244 210 / 0) 100%);
}

.story-hero__halo::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 250 232 / 0) 0deg, rgb(255 250 232 / 0.55) 2.5deg, rgb(255 250 232 / 0) 5deg 11deg);
  filter: blur(1.5px);
  -webkit-mask-image: radial-gradient(closest-side, transparent 30%, #000 44%, rgb(0 0 0 / 0.35) 66%, transparent 92%);
  mask-image: radial-gradient(closest-side, transparent 30%, #000 44%, rgb(0 0 0 / 0.35) 66%, transparent 92%);
}

.story-hero__arch {
  position: relative;
  display: block;
  width: min(100%, 25rem, 44svh);
  padding: clamp(0.6rem, 1.2vw, 0.9rem);
  border-radius: 999px 999px 1.75rem 1.75rem;
  background: #fbf8f2;
  box-shadow:
    0 0 0 1px rgb(36 28 51 / 0.08),
    0 2.5rem 4rem -1.75rem rgb(60 40 20 / 0.5),
    0 0.6rem 1.2rem -0.4rem rgb(60 40 20 / 0.2);
}

.story-hero__arch img {
  width: 100%;
  height: auto;
  border-radius: 999px 999px 1.25rem 1.25rem;
}

.story-hero .motion-toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
}

/* the hero stays put while the story slides over it, but only when it fits the screen */
.story-hero.is-pinned {
  position: sticky;
  top: 0;
}

.motion .story-hero__arch {
  animation: arrive 1.6s var(--ease) 0.15s both, float 10s ease-in-out 1.8s infinite alternate;
}

.motion .story-hero__halo {
  animation: halo-open 2.4s var(--ease) both;
}

.motion .story-hero__halo::before {
  animation: halo-turn 120s linear infinite;
}

@keyframes halo-open {
  from { opacity: 0; scale: 0.7; }
  to { opacity: 1; scale: 1; }
}

@keyframes halo-turn {
  to { rotate: 360deg; }
}

/* ------------------------------------------------------------ My Story: the chapters
   A thread of light runs down the left edge of the story. In each chapter it fills
   from the previous chapter's colour to its own as you read, root red to crown violet. */

.story {
  position: relative;
  padding-top: var(--space-xl);
}

.life {
  --rail-x: calc((100% - min(100% - 2 * var(--gutter), var(--wrap))) / 2);
  position: relative;
  padding-block: var(--space-xl);
}

.life::before,
.life::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail-x);
  width: 3px;
  border-radius: 3px;
}

.life::before {
  background: var(--line);
}

.life::after {
  background: linear-gradient(var(--c-prev, var(--c)), var(--c));
  transform-origin: top;
  transform: scaleY(var(--lp, 0));
}

.life__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 35em);
  justify-content: space-between;
  gap: var(--space-l) clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.life__rail {
  position: sticky;
  top: 7rem;
  z-index: 1;
  display: grid;
  gap: var(--space-s);
  padding-left: 2.75rem;
}

/* a lotus marks each chapter on the thread; it only marks the place and says nothing about the chapter */
.life__symbol {
  position: absolute;
  left: 1.5px;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.2rem;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--linen) 72%, rgb(246 241 234 / 0));
  filter: drop-shadow(0 0 0.8rem color-mix(in srgb, var(--c) 50%, transparent));
  transition: transform 1s var(--ease), filter 1s var(--ease), opacity 1s var(--ease);
}

/* it turns in, grows and gains its glow as its chapter lights */
.motion .life:not(.is-lit) .life__symbol {
  transform: scale(0.5) rotate(-60deg);
  opacity: 0.35;
  filter: drop-shadow(0 0 0 transparent) grayscale(0.6);
}

.life__year {
  max-width: none;
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 3.6vw, 5.5rem);
  line-height: 0.9;
  font-variant-numeric: lining-nums;
}

.life__rail h2 {
  font-size: var(--step-2);
  line-height: 1.1;
}

.life__rail .photo {
  margin-top: var(--space-m);
  max-width: 22rem;
  aspect-ratio: 4 / 3;
}

/* her whole story is set at the lead size, so nothing shrinks part way through */
.life__text p {
  font-size: var(--step-1);
  line-height: 1.6;
}

.life__text p + p {
  margin-top: 1.1em;
}

/* the close: her motto under a lotus that opens */
.finale {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--space-l);
  padding: var(--space-xl) var(--gutter) var(--space-2xl);
  text-align: center;
  background: radial-gradient(ellipse 50% 60% at 50% 35%, rgb(253 235 200 / 0.7), rgb(253 235 200 / 0) 70%);
}

.finale__lotus {
  width: clamp(10rem, 18vw, 15rem);
}

.finale__lotus .lotus {
  width: 100%;
  height: auto;
}

.finale__motto {
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.8rem);
  line-height: 1.12;
  text-wrap: balance;
}

.finale .lotus__layer {
  transition: scale 1.8s var(--ease), opacity 1.8s var(--ease);
}

.finale .lotus__layer--middle { transition-delay: 0.2s; }
.finale .lotus__layer--inner { transition-delay: 0.4s; }
.finale .lotus__layer--core { transition-delay: 0.6s; }

.motion .finale:not(.is-in) .lotus__layer {
  scale: 0.2;
  opacity: 0;
}

.motion .finale[data-reveal]:not(.is-in) {
  opacity: 1;
  transform: none;
}

.motion .finale .lotus__layer--outer { animation: turn 90s linear infinite; }
.motion .finale .lotus__layer--middle { animation: turn-back 70s linear infinite; }
.motion .finale .lotus__layer--inner { animation: turn 50s linear infinite; }

/* ------------------------------------------------------------ the inner pages: heroes */

.page-hero {
  position: relative;
  z-index: 0;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 7rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}

.page-hero.is-pinned {
  position: sticky;
  top: 0;
}

/* the sky is widened so its stream of light rises behind the seven symbols */
.page-hero--stream {
  --focus-x: 72%;
}

.page-hero--stream .hero__media {
  left: -1%;
  width: calc(var(--focus-x) * 2 + 2%);
}

.page-hero__words {
  position: relative;
  display: grid;
  justify-items: start;
  gap: var(--space-m);
  width: fit-content;
  max-width: min(100%, 44rem);
}

.page-hero.is-pinned .page-hero__words {
  transform: translateY(calc(var(--hp, 0) * -10vh));
  opacity: calc(1 - var(--hp, 0) * 1.6);
}

.page-hero h1 {
  font-size: clamp(3rem, 1.4rem + 5.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.page-hero__sub {
  font-size: var(--step-2);
  line-height: 1.1;
}

.page-hero__lead {
  max-width: 36ch;
  font-size: var(--step-1);
  line-height: 1.45;
}

.page-hero .actions {
  justify-content: flex-start;
}

.page-hero .motion-toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
}

/* ------------------------------------------------------------ the inner pages: reading */

.reading {
  display: grid;
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.reading__aside {
  position: sticky;
  top: 7rem;
}

.reading__aside .photo {
  aspect-ratio: 4 / 5;
}

/* the turning wheel must never make the page scroll sideways */
.reading__aside--wheel {
  overflow-x: clip;
  overflow-y: visible;
}

.reading__text > * + * {
  margin-top: var(--space-m);
}

.reading__text p {
  font-size: var(--step-1);
  line-height: 1.6;
}

.reading__text p.note {
  font-size: var(--step-0);
}

.reading__text > p:not(.note) > strong:first-child {
  font-family: var(--display);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
}

.ground-sage { background: var(--sage); }
.ground-dawn { background: var(--dawn); }
.ground-sand { background: var(--sand); }

.page-note {
  max-width: 44rem;
}

/* the words of a closing line, under a lotus that opens */
.finale__motto--long {
  max-width: 32ch;
  font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.8rem);
  line-height: 1.22;
}

/* ------------------------------------------------------------ panels that stack as you scroll
   Each full screen holds still while the next slides over it: the four rays, and the two
   meditations. Her words sit on linen and are always there. */

.panels {
  position: relative;
}

.panel {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 7rem var(--gutter) 5rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2rem 4rem -2.5rem rgb(36 28 51 / 0.35);
}

.panel:first-child {
  border-radius: 0;
  box-shadow: none;
}

/* a panel that does not fit the screen just scrolls, so the next one can never cover her words */
.panel.is-flow {
  position: relative;
}

@media (max-height: 40rem) {
  .panel {
    position: relative;
    min-height: auto;
  }
}

.panel__media,
.panel__media img,
.panel__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__media {
  z-index: -1;
}

.motion .panel__media img {
  animation: drift 40s ease-in-out infinite alternate;
}

.panel__card {
  display: grid;
  gap: var(--space-s);
  width: min(100%, 38rem);
  margin-inline: auto 0;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: var(--radius);
  background: rgb(var(--veil) / 0.96);
  box-shadow: 0 3rem 6rem -3rem rgb(36 28 51 / 0.5);
}

.panel:nth-child(even) .panel__card {
  margin-inline: 0 auto;
}

.panel__card p {
  font-size: var(--step-1);
  line-height: 1.5;
}

/* a card that holds a heading and a few paragraphs: a little wider, and reading size rather than display size */
.panel__card--reading {
  width: min(100%, 44rem);
  gap: var(--space-m);
}

.panel__card--reading h2 {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.9rem);
}

.panel__card--reading p {
  font-size: var(--step-0);
  line-height: 1.6;
}

.panel__card--reading p + p {
  margin-top: 0;
}

/* the heart of the painted ripples lies on the right, beside the card */
.panel--ripples .panel__media img {
  object-position: 88% 50%;
}

.panel__card strong {
  display: block;
  margin-bottom: 0.2em;
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* a meditation: her line of introduction, then the words to say to yourself, set large */
.after-colon {
  display: block;
  margin-top: 0.75em;
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.9rem);
  line-height: 1.2;
}

/* ------------------------------------------------------------ Chakra Energy Healing */

.chakra-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-xl) clamp(2rem, 6vw, 6rem);
  align-items: center;
}

/* her words: "rising up from the root chakra". The seven rise on a thread of light, and each
   one is a way into its part of the page. */
.rise {
  --size: clamp(3.1rem, 9.2svh, 5rem);
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-self: center;
  width: fit-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rise::before {
  content: "";
  position: absolute;
  top: calc(var(--size) / 2);
  bottom: calc(var(--size) / 2);
  left: calc(var(--size) / 2 - 1.5px);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7));
}

.rise li {
  position: relative;
}

.rise a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--size);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.rise img {
  flex: none;
  width: var(--size);
  height: var(--size);
  filter: drop-shadow(0 0 0.7rem var(--c));
  transition: transform 0.9s var(--ease);
}

.rise a:hover img {
  transform: scale(1.1) rotate(30deg);
}

.rise span {
  padding: 0.2em 0.75em;
  border-radius: 999px;
  background: rgb(255 251 240 / 0.94);
}

.motion .rise::before {
  transform-origin: bottom;
  animation: rise-thread 2s var(--ease) 0.5s both;
}

.motion .rise li {
  animation: rise-bloom 1.2s var(--ease) both;
  animation-delay: calc(var(--i) * 170ms + 0.5s);
}

@keyframes rise-thread {
  from { transform: scaleY(0); }
}

@keyframes rise-bloom {
  from { opacity: 0; transform: scale(0.5) rotate(-40deg); }
}

/* seven symbols turning slowly around the lotus */
.wheel {
  position: relative;
  width: min(82%, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.wheel__ring {
  position: absolute;
  inset: 0;
}

.wheel__ring img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23%;
  height: auto;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.43deg)) translateY(-168%) rotate(calc(var(--i) * -51.43deg));
  filter: drop-shadow(0 0 0.7rem var(--c));
}

.wheel .lotus {
  position: absolute;
  inset: 31%;
  width: 38%;
  height: auto;
}

.motion .wheel__ring {
  animation: turn 150s linear infinite;
}

/* the ring turns, but each symbol stays upright, as her chakras are always drawn */
.motion .wheel__ring img {
  animation: wheel-upright 150s linear infinite;
}

@keyframes wheel-upright {
  from { transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.43deg)) translateY(-168%) rotate(calc(var(--i) * -51.43deg)) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--i) * 51.43deg)) translateY(-168%) rotate(calc(var(--i) * -51.43deg)) rotate(-360deg); }
}

/* the strip: the seven chakras stay in reach down the whole page */
.chakra-strip {
  position: sticky;
  top: 5.25rem;
  z-index: 30;
  background: rgb(246 241 234 / 0.97);
  box-shadow: 0 1px 0 var(--line);
}

.chakra-strip ul {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  padding: 0.35rem 0;
  list-style: none;
}

.chakra-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.4s;
}

.chakra-strip img {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.chakra-strip a[aria-current] {
  background: rgb(253 217 83 / 0.55);
}

html:has(.chakra-strip) {
  scroll-padding-top: 9.5rem;
}

.chakra {
  background: linear-gradient(rgb(246 241 234 / 0), color-mix(in srgb, var(--c) 13%, var(--linen)) 12%, color-mix(in srgb, var(--c) 13%, var(--linen)) 88%, rgb(246 241 234 / 0));
}

.chakra .life__rail {
  top: 10rem;
}

.chakra__symbol {
  width: clamp(6rem, 11vw, 10rem);
  height: auto;
  filter: drop-shadow(0 0 1.4rem color-mix(in srgb, var(--c) 55%, transparent));
  transition: transform 1s var(--ease), filter 1s var(--ease), opacity 1s var(--ease);
}

.motion .life:not(.is-lit) .chakra__symbol {
  transform: scale(0.5) rotate(-60deg);
  opacity: 0.35;
  filter: drop-shadow(0 0 0 transparent) grayscale(0.6);
}

.chakra .life__rail h2 {
  font-size: var(--step-3);
  line-height: 1.04;
}

.life__text p.chakra__block {
  max-width: none;
  margin-top: var(--space-m);
  padding: var(--space-m) clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: rgb(252 250 247 / 0.88);
  box-shadow: 0 0 0 1px var(--line);
  font-size: var(--step-0);
  line-height: 1.6;
}

.chakra__block .label {
  display: block;
  margin-bottom: 0.35em;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.2;
}

/* ------------------------------------------------------------ Meditation */

.page-hero--centred {
  justify-items: center;
  text-align: center;
}

.page-hero--centred .page-hero__words {
  justify-items: center;
  margin-inline: auto;
}

.page-hero--centred .page-hero__words::before {
  --fx: 24rem;
  --fy: 7rem;
}

.page-hero--soft .page-hero__words::before {
  --fy: 9rem;
}

.page-hero--centred .page-hero__lead {
  max-width: 34ch;
}

.page-hero--centred .breath {
  width: clamp(10rem, 30svh, 18rem);
}

.page-hero--centred .breath__words {
  margin-top: -0.5rem;
}

/* along a thread of light: how to begin */
.flow {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--c5), var(--c6), var(--c7));
}

.flow li {
  position: relative;
  padding-left: 4.5rem;
}

.flow li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: url("../assets/img/lotus.svg") center / 86% no-repeat, radial-gradient(closest-side, var(--linen) 72%, rgb(246 241 234 / 0));
}

.flow p {
  font-size: var(--step-1);
  line-height: 1.6;
}

.benefits__head {
  display: grid;
  gap: var(--space-s);
  margin-bottom: var(--space-xl);
}

.benefits__head p {
  font-size: var(--step-1);
  line-height: 1.5;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
}

.benefit {
  position: relative;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fbf7f1;
  box-shadow: 0 1.75rem 3.5rem -2.5rem rgb(60 40 20 / 0.35);
}

p.benefit + p.benefit {
  margin-top: 0;
}

.benefit .label {
  display: block;
  margin-bottom: 0.3em;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.1;
}

/* ------------------------------------------------------------ Treatments */

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-l);
}

/* the picture of the shorter card takes up the difference, so both Book now pills sit level */
.offer {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--space-m);
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fbf7f1;
  box-shadow: 0 1.75rem 3.5rem -2.5rem rgb(60 40 20 / 0.35);
}

.offer .photo {
  aspect-ratio: auto;
  min-height: calc(100cqi / 1.5);
  border-radius: 0;
}

.offer .photo img {
  position: absolute;
  inset: 0;
}

.offer__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  padding: 0 clamp(1.5rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.75rem);
}

.offer__body p + p {
  margin-top: 0;
}

.offer__body .btn {
  margin-top: auto;
}

.offer__body p:last-of-type {
  margin-bottom: var(--space-s);
}

.zones {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-l) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.zones > p {
  font-size: var(--step-1);
  line-height: 1.6;
}

/* ------------------------------------------------------------ gift vouchers */

.voucher-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-xl) clamp(2rem, 5vw, 6rem);
  align-items: center;
}

/* her voucher on the sky, slightly turned like a card held up to the light */
.voucher-card--hero {
  --tilt: 3deg;
  justify-self: center;
  width: min(100%, 40rem);
  border-radius: 0.9rem;
}

.page-hero.is-pinned .voucher-card--hero {
  transform: translateY(calc(var(--hp, 0) * -6vh));
  opacity: calc(1 - var(--hp, 0) * 1.4);
}


/* each voucher lies like a card on the table: slightly turned, lifted by its shadow */
.voucher-card {
  --tilt: -1.5deg;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  box-shadow:
    0 2.75rem 4.5rem -2.25rem rgb(60 40 20 / 0.5),
    0 0.9rem 1.6rem -0.8rem rgb(60 40 20 / 0.28);
  transform: perspective(1400px) rotate(var(--tilt)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s var(--ease);
}

.voucher-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* a band of light crosses the voucher as it turns */
.voucher-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / 0) 35%, rgb(255 255 255 / 0.45) 50%, rgb(255 255 255 / 0) 65%) var(--shine, 130%) 0 / 260% 100% no-repeat;
  mix-blend-mode: soft-light;
  transition: background-position 0.9s var(--ease);
  pointer-events: none;
}

.motion .voucher-card { animation: voucher-float 7s ease-in-out infinite alternate; }

@keyframes voucher-float {
  from { translate: 0 0.3rem; }
  to { translate: 0 -0.4rem; }
}

.voucher-how {
  display: grid;
  gap: var(--space-xl);
}

.voucher-how .actions {
  justify-content: flex-start;
}

.voucher-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l) clamp(1.5rem, 4vw, 4rem);
  margin: 0;
  padding: 0;
}

.voucher-steps li {
  display: grid;
  align-content: start;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid rgb(36 28 51 / 0.18);
}

.voucher-steps__n {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1;
}

.voucher-steps p {
  max-width: 24ch;
  font-size: var(--step-1);
  line-height: 1.45;
}

.voucher-terms {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.voucher-terms__head {
  display: grid;
  justify-items: start;
  gap: var(--space-l);
}

.voucher-terms ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.voucher-terms li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: var(--space-s);
  padding: 1rem 0;
  border-bottom: 1px solid rgb(36 28 51 / 0.14);
  font-size: var(--step-0);
  line-height: 1.5;
}

.voucher-terms li::before {
  content: "";
  width: 1.6rem;
  aspect-ratio: 1;
  margin-top: 0.1rem;
  background: url("../assets/img/lotus.svg") center / contain no-repeat;
}

.voucher-terms__seller {
  margin-top: var(--space-m);
  font-size: var(--step-0);
  font-weight: 700;
}

.offers__gift {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
}

/* ------------------------------------------------------------ end-of-life Reiki: a quiet section of the treatments */

.eol {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

/* first light falls into the section from the side of her opening words */
.eol::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12rem;
  left: -14rem;
  width: min(64rem, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 251 240 / 0.9), rgb(255 251 240 / 0.45) 55%, rgb(255 251 240 / 0));
  pointer-events: none;
}

.eol__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.eol__head {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: var(--space-l);
}

.eol__lead {
  max-width: 30ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

.eol__body {
  display: grid;
  gap: var(--space-m);
}

.eol__body h3:not(:first-child) {
  margin-top: var(--space-xl);
}

/* whole sentences, not short phrases: body size, the lotus level with the first line, one warm light for all */
.help__list--sentences li {
  align-items: start;
  padding: 1.35rem 0;
  font-size: var(--step-0);
  line-height: 1.5;
}

.help__list--sentences li:nth-child(n) {
  --c: rgb(246 203 52 / 0.6);
}

.help__list--sentences li:first-child {
  padding-top: 0.5rem;
}

.help__list--sentences li > span {
  padding-top: 0.55rem;
}

/* ------------------------------------------------------------ Science & Reiki */

.page-hero--science .hero__veil {
  background: none;
}

/* on a phone the crop keeps to the colourful side of the painted ripples */
@media (max-width: 40rem) {
  .page-hero--science .hero__media img {
    object-position: 80% 50%;
  }
}

/* her phrase, large, beside Einstein */
.reading__text p.science__phrase {
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(3rem, 1.5rem + 4.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* two pearls far apart, changing together */
.reading__text .pair-figure {
  display: block;
  width: 100%;
  height: clamp(7rem, 12vw, 10rem);
  margin-block: var(--space-m);
}

.mounted {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  width: min(100%, 24rem);
  margin: 0;
}

.mounted__frame {
  display: block;
  padding: clamp(0.6rem, 1.4vw, 1rem);
  background: #fbf8f2;
  box-shadow:
    0 0 0 1px rgb(36 28 51 / 0.08),
    0 2.25rem 3.5rem -1.5rem rgb(60 40 20 / 0.45),
    0 0.6rem 1.2rem -0.4rem rgb(60 40 20 / 0.2);
}

.mounted img {
  width: 100%;
  height: auto;
}

.mounted figcaption {
  font-size: var(--step--1);
  font-weight: 600;
}

.study {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-xl) clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.study__head {
  display: grid;
  gap: var(--space-l);
  justify-items: start;
}

.study__lotus {
  width: clamp(8rem, 13vw, 12rem);
}

.study__lotus .lotus {
  width: 100%;
  height: auto;
}

.motion .study__lotus .lotus__layer--outer { animation: turn 90s linear infinite; }
.motion .study__lotus .lotus__layer--middle { animation: turn-back 70s linear infinite; }
.motion .study__lotus .lotus__layer--inner { animation: turn 50s linear infinite; }

.study p {
  font-size: var(--step-1);
  line-height: 1.6;
}


/* ------------------------------------------------------------ inner pages on smaller screens */

@media (max-width: 60rem) {
  .page-hero--stream {
    --focus-x: 50%;
  }

  .study,
  .reading,
  .chakra-hero__grid,
  .zones,
  .offers,
  .eol__grid,
  .voucher-hero,
  .voucher-terms {
    grid-template-columns: minmax(0, 1fr);
  }

  .voucher-card--hero {
    width: min(100%, 32rem);
  }

  .voucher-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .voucher-steps p {
    max-width: var(--measure);
  }

  .eol__head {
    position: static;
  }

  .eol__lead {
    max-width: var(--measure);
  }

  .reading__aside {
    position: static;
  }

  .reading__aside .photo {
    aspect-ratio: 4 / 3;
  }

  .chakra .life__rail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-s);
    top: auto;
  }

  .chakra__symbol {
    width: 5.25rem;
  }

  .chakra-strip {
    top: 4.5rem;
  }

  .chakra-strip span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 40rem) {
  .page-hero {
    align-items: start;
    padding: 6rem 0 8.5rem;
  }

  .page-hero__words {
    justify-items: center;
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .page-hero__words::before,
  .page-hero--centred .page-hero__words::before,
  .page-hero--soft .page-hero__words::before {
    --fx: 3rem;
    --fy: 6rem;
  }

  .page-hero .actions {
    justify-content: center;
  }

  /* her sentences keep a readable line beside a smaller lotus */
  .help__list--sentences li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: var(--space-s);
  }

  .help__list--sentences li::before {
    width: 2.6rem;
  }

  .help__list--sentences li > span {
    padding-top: 0.25rem;
  }

  .page-hero .motion-toggle,
  .hero .motion-toggle,
  .story-hero .motion-toggle {
    display: none;
  }

  .chakra-hero__grid {
    gap: var(--space-l);
  }

  .rise {
    --size: clamp(2.9rem, 6.6svh, 3.5rem);
  }

  .chakra-strip {
    top: 0;
  }

  .chakra-strip ul {
    width: 100%;
    padding-inline: 0.25rem;
  }

  .chakra-strip a {
    min-height: 2.9rem;
  }

  .chakra-strip img {
    width: 2.2rem;
    height: 2.2rem;
  }

  html:has(.chakra-strip) {
    scroll-padding-top: 4.5rem;
  }

  .panel {
    padding: 5.5rem var(--gutter) 3rem;
  }

  .panel__card,
  .panel:nth-child(even) .panel__card {
    margin-inline: auto;
  }

  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow li {
    padding-left: 3.75rem;
  }

  .panels--flock .panel {
    padding-top: 22rem;
  }

  .panels--flock .panel__media img {
    object-position: 30% 50%;
  }

  /* on a phone the ripples are a picture above the card, fading into linen, rather than stretched behind all
     three paragraphs (that would blow the picture up past its sharpness) */
  .panels--flock .panel--ripples {
    background: var(--linen);
  }

  .panels--flock .panel--ripples .panel__media {
    bottom: auto;
    height: 27rem;
    overflow: hidden;
  }

  .panels--flock .panel--ripples .panel__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(rgb(246 241 234 / 0), var(--linen));
  }

  .panels--flock .panel--ripples .panel__media img {
    object-position: 86% 50%;
  }

  .offer__body .btn {
    align-self: stretch;
  }

  .book__card {
    padding: 2rem 1.25rem;
  }

  .mounted {
    width: min(74%, 24rem);
    margin-inline: auto;
  }

  /* the long WhatsApp label stays on one line down to the smallest phones */
  .btn[data-whatsapp],
  .btn[data-vouchers] {
    padding-inline: 1em;
    font-size: clamp(1.0625rem, 4.6vw, 1.25rem);
  }
}

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 64rem) {
  .journey__frame {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--space-xl);
  }

  .journey__intro p {
    max-width: var(--measure);
  }

  .journey__progress {
    display: none;
  }

  .journey__track {
    flex-direction: column;
    gap: var(--space-xl);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .journey__track .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-m);
  }

  .chapter {
    flex: none;
  }

  .chapter__photo {
    aspect-ratio: 16 / 10;
  }

  .chapter h3 {
    font-size: var(--step-2);
  }

  .step {
    flex: none;
  }
}

@media (max-width: 60rem) {
  .story-hero {
    --focus-x: 50%;
    padding: 6rem 0 5.5rem;
  }

  .story-hero__motes {
    --motes-x: 0.5;
  }

  .story-hero__text::before {
    --fx: 3rem;
    --fy: 6rem;
  }

  .story-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .story-hero__portrait {
    order: -1;
    width: min(100%, 26rem);
    padding: 1.5rem 2.5rem;
  }

  .story-hero__text {
    justify-items: center;
  }

  .story-hero .actions {
    justify-content: center;
  }

  .life__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-m);
  }

  .life__rail {
    position: relative;
    top: auto;
  }

  .life__rail,
  .life__text {
    padding-left: 2rem;
  }

  .life__symbol {
    width: 2.5rem;
    height: 2.5rem;
  }

  .distance,
  .help__grid,
  .compare,
  .works__grid,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .help__photo,
  .works__aside {
    position: static;
  }

  .compare article:nth-child(2) {
    margin-top: 0;
  }

  .orbs__title {
    text-align: center;
  }

  .orbs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-m) 0;
  }

  .orbs li {
    flex: 0 0 25%;
  }

  .ring {
    left: auto;
    right: 1rem;
  }
}

@media (max-width: 40rem) {
  .hero {
    padding-top: 5.25rem;
    padding-bottom: 8.5rem;
  }

  .story-hero {
    padding-bottom: 8.5rem;
  }

  .hero:not(.is-pinned) + .sheet::before,
  .story-hero:not(.is-pinned) + .sheet::before,
  .page-hero:not(.is-pinned) + .sheet::before {
    height: 8rem;
  }

  .hero__painting {
    width: min(40vw, 19svh, 11rem);
  }

  .hero__words::before {
    --fx: 3rem;
    --fy: 7rem;
  }

  /* the pause control keeps clear of the buttons: its own lane at the very bottom */
  .hero .motion-toggle {
    bottom: 1rem;
  }

  /* on phones the bottom of the hero lies under the mist, so the two marks follow the buttons instead */
  .hero {
    align-content: center;
  }

  /* relative, not static, so it stays above the light behind her words */
  .hero__social {
    position: relative;
    inset: auto;
    /* the same breathing room as between the two buttons above */
    padding-top: var(--space-s);
  }

  .hero.is-pinned .hero__social {
    transform: translateY(calc(var(--hp, 0) * -14vh));
    opacity: calc(1 - var(--hp, 0) * 1.6);
  }

  .hero__social a {
    width: 2.9rem;
    padding: 0;
    justify-content: center;
  }

  .hero__social .social__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .scroll-cue {
    display: none;
  }

  .hero__veil {
    background: none;
  }

  .hero__media {
    translate: none;
  }

  .datelines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
  }

  .changes {
    grid-template-columns: minmax(0, 1fr);
  }



  .hero .motion-toggle span,
  .story-hero .motion-toggle span,
  .breathe .motion-toggle span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .hero .motion-toggle,
  .story-hero .motion-toggle,
  .breathe .motion-toggle {
    padding: 0;
    width: 2.9rem;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__media,
  .hero__content,
  .story-hero__text,
  .story-hero__portrait,
  .page-hero__words,
  .photo img,
  .photo video,
  .statement__photo,
  .compare article {
    transform: none !important;
    opacity: 1 !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  .motion-toggle {
    display: none;
  }
}
