/*
  Eden Koren's home page, both languages (index.html, en/index.html, made by salons/eden/page/build.py). Two ways to read it:
  wider than a phone it scrolls, the stage pinned and driving the 3D; on a phone it is an app of whole screens that snap
  one at a time, the scene behind the first four, and a tab bar that follows. See home.js.
*/
@font-face { font-family: "Frank Ruhl Libre"; src: url(/fonts/frl-he.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(/fonts/frl-lat.woff2) format("woff2"); font-weight: 300 900; font-display: swap; 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: "Assistant"; src: url(/fonts/assistant-he.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url(/fonts/assistant-lat.woff2) format("woff2"); font-weight: 200 800; font-display: swap; 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; }

/* day: paper, ink, bamboo; the oil's gold only as a hairline accent */
:root {
  color-scheme: light;
  --paper: #f6f2eb;
  --paper-rgb: 246 242 235;
  --sand: #efe8dd;
  --wash: #e9dfd1;
  --surface-rgb: 255 255 255;
  --ink: #1c1712;
  --soft: #5f5347;
  --wood: #8a5a26;
  --gold: #c9971f;
  --line: rgb(28 23 18 / 0.14);
  --btn: #1c1712;
  --btn-ink: #f6f2eb;
  --btn-hover: #3a2d22;
  --stage: #e9dfd1;
  --close: #1e1610;
  --veil-rgb: 52 36 20;
  --logo-filter: none;
  --logo-blend: multiply;
  --sc-canvas: var(--paper);
  --sc-surface: #ffffff;
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--soft);
  --sc-accent: var(--wood);
  --sc-accent-ink: var(--paper);
  --sc-font-display: "Frank Ruhl Libre", "Noto Serif Hebrew", "Times New Roman", serif;
  --sc-font-text: "Assistant", "Noto Sans Hebrew", "Arial Hebrew", system-ui, sans-serif;
  --bar: 4.25rem;
  --note: 0px;
  --tabs: 4.25rem;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* night: the same room after dark, warm black and lamp light; every pair here measured at 4.5:1 or more */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14100c;
  --paper-rgb: 20 16 12;
  --sand: #1a1510;
  --wash: #2b2219;
  --surface-rgb: 38 31 24;
  --ink: #f0e8dc;
  --soft: #b5a690;
  --wood: #d6a464;
  --gold: #ddb04c;
  --line: rgb(240 232 220 / 0.14);
  --btn: #f0e8dc;
  --btn-ink: #14100c;
  --btn-hover: #ffffff;
  --stage: #1d1712;
  --close: #0c0906;
  --veil-rgb: 0 0 0;
  --logo-filter: invert(1);
  --logo-blend: screen;
  --sc-surface: #1f1914;
}

html { scroll-behavior: auto; }
body { margin: 0; font-family: var(--sc-font-text); font-size: 1.125rem; line-height: 1.65; background: var(--paper); color: var(--ink); }
h1, h2, h3, .serif { font-family: var(--sc-font-display); font-weight: 300; letter-spacing: 0; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { height: auto; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: var(--bar); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums lining-nums; direction: ltr; unicode-bidi: isolate; }
/* Latin set wide, the way her own packaging sets it. Never Hebrew. */
.caps { font-family: var(--sc-font-text); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ico { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* an arrow that points the way the page reads */
[dir="ltr"] .ico--flip { transform: scaleX(-1); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.125rem; padding-inline: 1.75rem; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 1.0625rem; border-radius: 2px; white-space: nowrap; transition: background-color 160ms, transform 120ms; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.98); }
.btn--light { background: #f6f2eb; color: #1c1712; }
.btn--light:hover { background: #fff; }
.link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.55rem) / 100% 1px no-repeat; transition: background-size 220ms; }
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 0.55rem); }
.only-app { display: none !important; }
.app .only-app { display: inline-flex !important; }
.app .only-wide { display: none !important; }

.bar { position: sticky; top: 0; z-index: 60; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: var(--pad); background: rgb(var(--paper-rgb) / 0.82); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); border-bottom: 1px solid var(--line); transition: background-color 300ms, border-color 300ms; }
.bar__logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.bar__logo img { height: 2.6rem; width: auto; mix-blend-mode: var(--logo-blend); filter: var(--logo-filter); }
.bar__end { display: flex; align-items: center; gap: 0.25rem; }
.bar nav { display: flex; align-items: center; gap: 0.25rem; }
.bar nav > a { display: none; min-height: 2.75rem; align-items: center; padding-inline: 0.9rem; font-weight: 600; font-size: 1rem; }
.bar .btn { min-height: 2.75rem; padding-inline: 1.15rem; font-size: 1rem; margin-inline-start: 0.5rem; }
.chip { display: inline-flex; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; background: rgb(var(--surface-rgb) / 0.5); cursor: pointer; padding: 0; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; transition: background-color 160ms; }
.chip:hover { background: rgb(var(--surface-rgb) / 0.9); }
.chip .ico { width: 1.2rem; height: 1.2rem; }
/* the icon says which theme is on, as the shop's and the booking's toggle does */
.theme .sun, :root[data-theme="dark"] .theme .moon { display: block; }
.theme .moon, :root[data-theme="dark"] .theme .sun { display: none; }
@media (min-width: 861px) { .bar nav > a { display: inline-flex; } }

/* ---------- the stage: one pinned screen, the scene behind, the words in front ---------- */
/* the height the engine will give the pin (data-sc-span), set before it runs */
.stage { height: 600vh; margin-top: calc(-1 * (var(--bar) + var(--note))); }
.stage [data-sc-stage] { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--stage); }
.stage canvas, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The photograph of the scene, until the scene is drawn: one per language (the name on the wall) and theme, and only
   the one this reader will see is ever fetched, because it is a background chosen by the same attributes as the page. */
:root { --pw: url(/poster/he-day-wide-1440.webp); --pw2: url(/poster/he-day-wide-2880.webp); --pt: url(/poster/he-day-tall-780.webp); --pt3: url(/poster/he-day-tall-1170.webp); }
:root[data-theme="dark"] { --pw: url(/poster/he-night-wide-1440.webp); --pw2: url(/poster/he-night-wide-2880.webp); --pt: url(/poster/he-night-tall-780.webp); --pt3: url(/poster/he-night-tall-1170.webp); }
:root[lang="en"] { --pw: url(/poster/en-day-wide-1440.webp); --pw2: url(/poster/en-day-wide-2880.webp); --pt: url(/poster/en-day-tall-780.webp); --pt3: url(/poster/en-day-tall-1170.webp); }
:root[lang="en"][data-theme="dark"] { --pw: url(/poster/en-night-wide-1440.webp); --pw2: url(/poster/en-night-wide-2880.webp); --pt: url(/poster/en-night-tall-780.webp); --pt3: url(/poster/en-night-tall-1170.webp); }
.stage .poster { background: var(--stage) center / cover no-repeat; background-image: var(--pw); transition: opacity 600ms ease; }
@media (min-resolution: 1.5dppx) { .stage .poster { background-image: var(--pw2); } }
@media (max-aspect-ratio: 9/10) { .stage .poster { background-image: var(--pt); } }
@media (max-aspect-ratio: 9/10) and (min-resolution: 2.5dppx) { .stage .poster { background-image: var(--pt3); } }
.stage.is-live .poster { opacity: 0; }
.stage canvas { opacity: 0; transition: opacity 600ms ease; }
.stage.is-live canvas { opacity: 1; }
/* the products can be taken in hand (home.js): a grab cursor, and no text selected by a drag across them */
.stage [data-sc-stage] { cursor: grab; -webkit-user-select: none; user-select: none; }
.grabbing, .grabbing * { cursor: grabbing !important; }
.veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 42%, transparent 62%, rgb(var(--veil-rgb) / 0.16)); }

.hero__kicker { color: var(--wood); }
.hero__lede { font-size: 1.1875rem; line-height: 1.5; max-width: 26ch; margin-top: 0.75rem; text-wrap: balance; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.hero__rating { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-size: 0.9375rem; color: var(--soft); }
.hero__rating b { color: var(--ink); font-weight: 600; }
.hero__rating svg { width: 0.9rem; height: 0.9rem; fill: var(--gold); }

.hero { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero > * { pointer-events: auto; }
.beat { position: absolute; z-index: 2; }
.beat h2 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); margin-top: 0.85rem; }
.beat p { color: var(--soft); margin-top: 1rem; max-width: 34ch; }
.beat__price { display: flex; align-items: baseline; gap: 0.9rem; margin-top: 1.25rem; }
.beat__price b { font-family: var(--sc-font-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.beat__price s { color: var(--soft); }
.beat__price span { color: var(--soft); font-size: 0.9375rem; }
.beat__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.beat .rule { width: 2.5rem; height: 1px; background: var(--gold); margin-top: 1rem; }
.pair { display: grid; gap: 1rem; margin-top: 1.25rem; }
.pair div { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.pair h3 { font-size: 1.5rem; }
.pair p { margin-top: 0.3rem; font-size: 1rem; }
.pair .beat__price { margin-top: 0.4rem; }
.pair .beat__price b { font-size: 1.375rem; }

/* tall screens: the words sit on the floor of the scene, on a band of paper that fades up into it */
.floor { position: absolute; inset: auto 0 0; padding: 4.5rem var(--pad) calc(1.25rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgb(var(--paper-rgb) / 0.97) 58%, rgb(var(--paper-rgb) / 0.82) 76%, rgb(var(--paper-rgb) / 0)); }
.hero__kicker-wrap { position: absolute; z-index: 2; inset-inline: 0; text-align: center; top: calc(var(--name-top, 16svh) - 2rem); }
.hero .floor .hero__lede { max-width: 30ch; }
.beat.floor h2 { font-size: 2.125rem; margin-top: 0.6rem; }
.beat.floor p { margin-top: 0.6rem; font-size: 1.0625rem; }
.beat.floor .beat__price { margin-top: 0.75rem; }
.beat.floor .beat__row { margin-top: 1rem; }
.beat.floor .rule { display: none; }
.beat.floor .pair { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem; }
.beat.floor .pair h3 { font-size: 1.1875rem; }
.beat.floor .pair p { display: none; }

/* everything wider: the words stand in their own column beside the products */
@media (min-aspect-ratio: 9/10) {
  .floor { background: none; padding: 0; }
  .hero__kicker-wrap { display: none; }
  /* Positions here are physical on purpose: the room is the same in both languages, so the words stay beside the same things. */
  .hero .floor { position: absolute; inset: auto var(--name-right, 7vw) auto auto; top: calc(100svh - var(--name-bottom, 70svh) + 1.25rem); width: min(30rem, 40vw); }
  /* the kicker is a Latin line (its own direction left to right): in Hebrew it lines up with the column's right edge */
  .hero .floor .hero__kicker { display: block; text-align: left; }
  [dir="rtl"] .hero .floor .hero__kicker { text-align: right; }
  .hero__lede { font-size: 1.375rem; }
  .beat { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(27rem, 34vw); }
  .beat--oil { right: var(--pad); left: auto; }
  .beat--cream { left: var(--pad); right: auto; }
  /* the closing beat returns to the opening's composition: its words stand under her name, as the opening's did */
  .beat--both { display: block; bottom: auto; top: calc(100svh - var(--name-bottom, 70svh) + 1.25rem); right: var(--name-right, 7vw); left: auto; width: min(30rem, 40vw); }
  .beat.floor h2 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); margin-top: 0.85rem; }
  .beat.floor p { font-size: 1.125rem; margin-top: 1rem; }
  .beat.floor .beat__price { margin-top: 1.25rem; }
  .beat.floor .beat__row { margin-top: 1.5rem; }
  .beat.floor .rule { display: block; }
  .beat.floor .pair { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
  .beat.floor .pair p { display: block; }
  .beat.floor .pair h3 { font-size: 1.5rem; }
}
/* In English the words under her name start where the name starts, its left edge. */
@media (min-aspect-ratio: 9/10) {
  [dir="ltr"] .hero .floor, [dir="ltr"] .beat--both { right: auto; left: var(--name-left, 55vw); }
}
@media (max-aspect-ratio: 9/10) { .hero .floor .hero__kicker { display: none; } }

/* ---------- after the stage ---------- */
.section { padding-block: clamp(5rem, 11vw, 10rem); background: var(--paper); }
.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--pad); box-sizing: border-box; }
.eyebrow { color: var(--wood); }
.h-xl { font-size: clamp(2.75rem, 1.5rem + 5vw, 6rem); }
.h-lg { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem); }

/* the light through her clinic's window, the same light every one of her photographs is taken in */
.light { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.light::before { content: ""; position: absolute; inset: -30% -50%; background: repeating-linear-gradient(118deg, transparent 0 6rem, rgb(122 84 44 / 0.075) 9rem 12.5rem, transparent 15.5rem 24rem); animation: window-light 46s ease-in-out infinite alternate; }
:root[data-theme="dark"] .light::before { background: repeating-linear-gradient(118deg, transparent 0 6rem, rgb(255 196 120 / 0.035) 9rem 12.5rem, transparent 15.5rem 24rem); }
@keyframes window-light { from { transform: translate3d(-5%, 0, 0); } to { transform: translate3d(5%, 0, 0); } }

/* treatments: a menu where the length of a line is the length of the treatment */
.treat { display: grid; gap: 3rem; }
.treat__side p { color: var(--soft); margin-top: 1.25rem; max-width: 34ch; }
.treat__label { margin-top: 2.25rem !important; font-size: 0.9375rem; font-weight: 600; color: var(--ink) !important; }
.tags { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 30rem; }
.tags li { padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; line-height: 1.5; background: rgb(var(--surface-rgb) / 0.55); }
.clinics { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; border-top: 1px solid var(--line); max-width: 24rem; }
.clinics li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.clinics li span { color: var(--soft); }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.menu__list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 2.25rem 1fr auto; grid-template-areas: "no name price" "no dur price"; align-items: center; column-gap: 0.75rem; row-gap: 0.15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.menu__list a::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: 0.375rem; background: var(--wash); opacity: 0; transform: scaleY(0.7); transition: opacity 220ms, transform 300ms var(--ease); }
.menu__no { grid-area: no; align-self: start; padding-top: 0.55rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--wood); }
.menu__name { grid-area: name; font-family: var(--sc-font-display); font-weight: 300; font-size: 1.5rem; line-height: 1.2; transition: color 200ms, transform 300ms var(--ease); }
.menu__dur { grid-area: dur; display: flex; align-items: center; gap: 0.75rem; color: var(--soft); font-size: 0.9375rem; white-space: nowrap; }
.menu__dur i { position: relative; display: block; width: 4.5rem; height: 2px; background: var(--line); }
/* the line fills from where the page starts reading */
.menu__dur i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--m) / 90 * 100%); background: var(--wood); }
.menu__price { grid-area: price; font-family: var(--sc-font-display); font-weight: 400; font-size: 1.5rem; text-align: end; }
.menu__go { display: none; }
.menu__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; }
.menu__foot span { color: var(--soft); font-size: 0.9375rem; }
@media (hover: hover) {
  .menu__list a:hover::before { opacity: 1; transform: none; }
  .menu__list a:hover .menu__name { color: var(--wood); transform: translateX(-0.5rem); }
  [dir="ltr"] .menu__list a:hover .menu__name { transform: translateX(0.5rem); }
}
.menu__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 861px) {
  .treat { grid-template-columns: 5fr 7fr; gap: 6rem; align-items: start; }
  .treat__side { position: sticky; top: calc(var(--bar) + 3rem); }
  .menu__list a { grid-template-columns: 3rem 1fr auto 2.5rem; grid-template-areas: "no name price go" "no dur price go"; column-gap: 1.5rem; row-gap: 0.35rem; padding: 1.5rem 0; }
  .menu__no { padding-top: 0.85rem; }
  .menu__name { font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.375rem); }
  .menu__go { grid-area: go; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--btn); color: var(--btn-ink); opacity: 0; transform: scale(0.8); transition: opacity 220ms, transform 300ms var(--ease); }
  .menu__go .ico { width: 1.1rem; height: 1.1rem; stroke-width: 1.75; }
  .menu__list a:hover .menu__go, .menu__list a:focus-visible .menu__go { opacity: 1; transform: none; }
}

/* about: her, then four facts from her own site, counted in when they come into view */
.about-sec { position: relative; background: var(--sand); overflow: hidden; }
.about { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.about p { color: var(--soft); max-width: 46ch; margin-top: 1.25rem; }
.about figure { margin: 0; max-width: 26rem; }
.about figure img { width: 100%; }
.facts { position: relative; list-style: none; padding: 0; margin: clamp(3.5rem, 7vw, 6rem) 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts li { padding: 1.5rem 0 0.5rem; padding-inline-end: 1rem; }
.facts b { display: block; font-family: var(--sc-font-display); font-weight: 300; font-size: clamp(3rem, 2rem + 3.4vw, 5.5rem); line-height: 1; }
.facts span { display: block; margin-top: 0.6rem; color: var(--soft); font-size: 1rem; line-height: 1.4; max-width: 16ch; }
@media (min-width: 861px) {
  .about { grid-template-columns: 7fr 5fr; gap: 6rem; }
  .about figure { max-width: none; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 2rem; }
}

/* what customers write: one at a time, large, with a way to move */
.voices-sec { background: var(--sand); padding-top: 0; }
.voices { display: grid; gap: 2rem; border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 6rem); }
.voices h2 { margin-top: 0.85rem; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.carousel { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translate3d(0, 0.75rem, 0); transition: opacity 420ms var(--ease), transform 520ms var(--ease), visibility 0s 520ms; }
.slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 520ms var(--ease) 80ms, transform 620ms var(--ease) 80ms, visibility 0s; }
.slide svg { width: 2.75rem; height: 2.75rem; fill: var(--gold); }
.slide blockquote { margin: 1rem 0 0; font-family: var(--sc-font-display); font-weight: 300; font-size: clamp(1.625rem, 1.15rem + 2.1vw, 3.25rem); line-height: 1.28; max-width: 26ch; text-wrap: pretty; }
.slide figcaption { margin-top: 1.5rem; color: var(--wood); font-weight: 600; font-size: 1rem; }
.slide small { display: block; margin-top: 0.25rem; color: var(--soft); font-weight: 400; font-size: 0.875rem; }
.carousel__nav { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.carousel__nav button { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color 160ms, color 160ms; }
.carousel__nav button:hover { background: var(--btn); color: var(--btn-ink); }
.carousel__nav .ico { width: 1.15rem; height: 1.15rem; stroke-width: 1.75; }
.dots { display: flex; gap: 0.4rem; margin-inline-start: 0.5rem; }
.dots i { width: 1.5rem; height: 2px; background: var(--line); transition: background-color 300ms, width 300ms var(--ease); }
.dots i.is-on { background: var(--ink); width: 2.75rem; }
@media (min-width: 861px) { .voices { grid-template-columns: 4fr 8fr; gap: 6rem; } }

.close { position: relative; isolation: isolate; color: #f6f2eb; background: var(--close); padding-block: clamp(5rem, 12vw, 10rem) 1.5rem; overflow: hidden; }
.close__bed { position: absolute; inset: 0; z-index: -1; }
.close__bed img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0.55; }
.close__bed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 22 16 / 0.97) 30%, rgb(30 22 16 / 0.7)); }
@media (min-width: 861px) {
  .close__bed::after { background: linear-gradient(to left, rgb(30 22 16 / 0.97) 40%, rgb(30 22 16 / 0.55)); }
  [dir="ltr"] .close__bed::after { background: linear-gradient(to right, rgb(30 22 16 / 0.97) 40%, rgb(30 22 16 / 0.55)); }
}
.close .eyebrow { color: #e3c38f; }
.close h2 { max-width: 13ch; margin-top: 1rem; }
.close__where { list-style: none; padding: 0; margin: 2rem 0 2.25rem; display: grid; gap: 0; max-width: 28rem; border-top: 1px solid rgb(246 242 235 / 0.2); }
.close__where li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgb(246 242 235 / 0.2); color: rgb(246 242 235 / 0.82); }
.close__where b { color: #f6f2eb; font-weight: 600; }
.close__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.foot { margin-top: clamp(4rem, 10vw, 8rem); padding-top: 1.25rem; border-top: 1px solid rgb(246 242 235 / 0.16); font-size: 0.8125rem; line-height: 1.55; color: rgb(246 242 235 / 0.72); max-width: 78ch; }
.foot a { text-decoration: underline; text-underline-offset: 0.2em; }
.panel-wrap { display: contents; }
.tabs, .steps, .cue { display: none; }

/* =====================================================================================================================
   The phone: an app of whole screens. The page does not scroll; <main> does, a screen at a time. The first four screens
   are the opening and the three products, transparent over the scene, which follows the scroll; then the treatments
   and about, each a screen of its own that scrolls inside when it is taller. The tab bar says where the reader is.
   ===================================================================================================================== */
.app { --note: 0px; --bar: 3.5rem; --top: calc(var(--note) + var(--bar) + env(safe-area-inset-top)); height: 100%; overflow: hidden; overscroll-behavior: none; }
.app body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* over the scene the bar is only its marks; over a page of text it has its ground back */
.app .bar { position: fixed; top: calc(var(--note) + env(safe-area-inset-top)); inset-inline: 0; padding-inline: 1rem 0.75rem; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app[data-view="services"] .bar, .app[data-view="about"] .bar { background: rgb(var(--paper-rgb) / 0.9); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.app .bar__logo img { height: 2.25rem; }
.app .bar nav { display: none; }

.app main { position: fixed; inset: 0; z-index: 1; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.app main::-webkit-scrollbar { display: none; }
.app .stage { position: fixed; inset: 0; margin: 0; height: auto !important; z-index: 0; }
.app .stage [data-sc-stage] { position: absolute; inset: 0; height: auto; }
.app .hero__kicker-wrap { display: none; }
.app [data-sc-cue] { opacity: 1; }

.app .page { touch-action: pan-y; -webkit-user-select: none; user-select: none; position: relative; z-index: 1; height: 100%; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: flex-end; }
.app .page > [data-beat] { position: relative; inset: auto; width: auto; pointer-events: auto; }
.app .page .floor { padding: 2.75rem 1.25rem calc(var(--tabs) + env(safe-area-inset-bottom) + 1.25rem); background: linear-gradient(to top, rgb(var(--paper-rgb) / 0.95) 62%, rgb(var(--paper-rgb) / 0)); }
.app .hero__lede { font-size: 1.0625rem; margin-top: 0; }
.app .hero__row { margin-top: 0.5rem; gap: 0.25rem 1.25rem; }
.app .hero__row .btn { display: none; }
.app .beat.floor h2 { font-size: 1.875rem; margin-top: 0.35rem; }
.app .beat.floor > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.5; }
.app .beat__buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.85rem; }
.app .beat__buy .beat__price, .app .beat__buy .beat__row { margin-top: 0; }
.app .beat__buy .beat__price b { font-size: 1.75rem; }
.app .beat__buy .beat__price { gap: 0.6rem; }
.app .beat__buy .link { display: none; }
.app .beat--both > .hero__kicker { display: none; }
.app .beat--both h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app .beat--both .pair { margin-top: 0; }
.app .beat--both .beat__row { margin-top: 0.85rem; }

/* the opening says there is more below, and is itself a way to it */
.app .cue { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; margin-inline-start: auto; color: var(--soft); font-size: 0.9375rem; font-weight: 600; }
.app .cue .ico { width: 1.1rem; height: 1.1rem; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(0.3rem); } }

/* where the reader is among the three products */
.steps { position: fixed; z-index: 3; inset-inline-end: 0.25rem; top: 42%; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 260ms, visibility 0s 260ms; }
.app[data-view="products"] .steps { display: flex; opacity: 1; visibility: visible; transition: opacity 260ms; }
.steps button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
.steps button::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--soft); opacity: 0.45; transition: height 300ms var(--ease), opacity 300ms; }
.steps button[aria-current="true"]::before { height: 1.5rem; opacity: 1; background: var(--ink); }

/* the treatments and about: whole screens with their own scroll, over the scene */
.app [data-panel] { position: relative; z-index: 2; display: block; height: 100%; box-sizing: border-box; overflow-y: auto; scroll-snap-align: start; scroll-snap-stop: always; padding-top: var(--top); padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); background: var(--paper); }
.app .section { padding-block: 2rem 2.5rem; }
.app .section[data-panel] { padding-top: calc(var(--top) + 1.75rem); padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 2.5rem); }
.app .h-xl { font-size: 2.75rem; }
.app .h-lg { font-size: 2rem; }
.app .treat { display: flex; flex-direction: column; gap: 0; }
.app .treat__side { display: contents; }
.app .treat__side p:first-of-type { margin-top: 0.75rem; }
.app .treat__list { order: 1; margin-top: 1.75rem; }
.app .treat__label, .app .tags, .app .clinics { order: 2; }
.app .treat__label { margin-top: 2.25rem !important; }
.app .clinics { margin-top: 1.5rem; }
.app .menu__foot { display: none; }
.app .about figure { max-width: 15rem; margin-inline: auto; }
.app .about { gap: 1.25rem; }
.app .about h2 { font-size: 1.875rem; }
.app .facts { margin-top: 2rem; }
.app .facts li { padding-block: 1rem 0.75rem; }
.app .facts li:nth-child(even) { border-inline-start: 1px solid var(--line); padding-inline-start: 1rem; }
.app .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
.app .facts b { font-size: 2.75rem; }
.app .voices-sec { padding-top: 0; }
.app .voices { padding-top: 2rem; gap: 1.25rem; }
.app .voices h2 { font-size: 1.75rem; }
.app .slide blockquote { font-size: 1.5rem; }
.app .slide svg { width: 2rem; height: 2rem; }
.app .carousel__nav { margin-top: 1.5rem; }
/* about on a phone ends on what it has not said yet: the phone, privacy and the note; the clinics and booking are a tab away */
.app .close { padding-block: 0 1.5rem; background: var(--sand); color: var(--ink); }
.app .close__bed, .app .close .eyebrow, .app .close h2, .app .close__where, .app .close .btn { display: none; }
.app .close__row { border-top: 1px solid var(--line); padding-top: 1rem; }
.app .foot { margin-top: 1rem; border-top: 0; padding-top: 0; color: var(--soft); }

.tabs { position: fixed; inset: auto 0 0; z-index: 70; grid-template-columns: repeat(4, 1fr) 1.45fr; align-items: center; gap: 0.125rem; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding: 0 0.5rem env(safe-area-inset-bottom); box-sizing: border-box; background: rgb(var(--paper-rgb) / 0.9); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); border-top: 1px solid var(--line); }
.app .tabs { display: grid; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-height: 3.5rem; font-size: 0.75rem; font-weight: 600; line-height: 1; color: var(--soft); -webkit-tap-highlight-color: transparent; }
.tabs a .ico { box-sizing: content-box; padding: 0.2rem 0.85rem; border-radius: 999px; transition: background-color 220ms, color 220ms; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .ico { background: var(--wash); stroke-width: 1.75; }
.tabs .tabs__cta { flex-direction: row; gap: 0.45rem; min-height: 3rem; margin-inline-start: 0.25rem; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 0.875rem; white-space: nowrap; }
.tabs .tabs__cta .ico { padding: 0; width: 1.15rem; height: 1.15rem; }
@media (max-width: 379px) { .tabs .tabs__cta .ico { display: none; } .tabs .tabs__cta { font-size: 0.8125rem; } }
@media (max-height: 720px) { .app .beat.floor > p { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .link, .light::before, .app .cue .ico { transition: none; animation: none; }
  .slide, .slide.is-on { transition: none; transform: none; }
  .menu__list a::before, .menu__name, .menu__go { transition: none; }
}
