/* Main pages: shared scroll motion, Services and How it works pages, the
   home, and their illustrations (D104, D105). Loaded after
   responsive-overrides.css: section h1/h2/p sizes are forced there with
   !important, so the overrides below need the same weight. */

/* ─── Motion ────────────────────────────────────────────────────────── */

.fx-row { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.fx-row > span,
.fx-word > span {
  display: inline-block;
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1);
}
.fx-word { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: top; }

/* Hidden only while a parent waits to come into view, so a title outside any
   reveal is never left invisible. */
.reveal:not(.in) .fx-row > span,
.reveal-stagger:not(.in) .fx-row > span,
.fx-lines:not(.is-in) .fx-row > span { transform: translateY(112%) rotate(3deg); }
.fx-words:not(.is-in) .fx-word > span { transform: translateY(112%); }
.fx-row > span { transform-origin: left bottom; }

.reveal,
.reveal-stagger > * { filter: blur(6px); transition-property: opacity, transform, filter; }
.reveal.in,
.reveal-stagger.in > * { filter: none; }

.fx-fade {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s ease;
}
.fx-fade.is-in { opacity: 1; transform: none; filter: none; }

/* The clip sits on the inner box: an observed element clipped to nothing never intersects. */
.fx-tilt {
  display: block;
  color: var(--cream);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s ease-out;
}
.fx-tilt__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  border-radius: 26px;
  background: var(--ink-2);
  clip-path: inset(100% 0 0 0 round 26px);
  transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1);
}
.fx-tilt.is-in .fx-tilt__inner { clip-path: inset(0 0 0 0 round 26px); }
.fx-tilt__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.fx-tilt:hover .fx-tilt__inner::after { opacity: 1; }

/* Split-flap menu labels: each letter turns over on its own, no tiles. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.flap-cells { white-space: pre; }
.flap { display: inline-block; perspective: 240px; }
.flap__ch { display: inline-block; transform-origin: 50% 50%; backface-visibility: hidden; }
.flap.is-flipping .flap__ch { animation: flap-turn .1s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes flap-turn {
  from { transform: rotateX(-86deg); opacity: .4; }
  to { transform: none; opacity: 1; }
}

/* Above-the-fold blocks enter once the page is ready. */
.fx-enter {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease var(--d, .7s), transform .9s cubic-bezier(.16, 1, .3, 1) var(--d, .7s);
}
.is-ready .fx-enter { opacity: 1; transform: none; }

.btn-quiet,
.btn-ghost {
  border-color: var(--hair-strong) !important;
  color: var(--cream);
}

.btn-solid {
  background: var(--cream);
  color: var(--ink) !important;
  border-color: var(--cream) !important;
}

/* ─── Shared bits of the Services and How it works pages (D106) ────── */

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.svc-body {
  margin: 0 0 18px;
  max-width: 640px;
  color: var(--mist);
}

.svc-icon {
  flex: 0 0 auto;
  margin-top: 5px;
}

.svc-icon--check { color: var(--gold); }
.svc-icon--dash { color: var(--mist); opacity: .7; }

/* The tick draws itself when its row fades in. */
.fx-fade .svc-icon--check path { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .6s ease .45s; }
.fx-fade.is-in .svc-icon--check path { stroke-dashoffset: 0; }

.svc-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ─── Light closing: a question and a salon appointment card (D106) ──── */

.closing { position: relative; padding: 120px 0 130px; background: var(--ink); }
.closing::before {
  content: "";
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  top: 0;
  height: 1px;
  background: var(--cream);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.65, 0, .35, 1);
}
.closing.is-in::before { transform: scaleX(1); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 80px; align-items: center; }
.closing h2 { margin: 0 0 22px; max-width: 720px; font-size: clamp(38px, 4.2vw, 64px) !important; line-height: 1.06 !important; }
.closing .closing__sub { margin: 0 0 30px; max-width: 560px; font-size: 19px !important; color: var(--mist); }
.closing .closing__mail { margin: 0; max-width: 560px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 15px !important; color: var(--mist); }
.closing__mail a { color: var(--cream); font-weight: 600; border-bottom: 1.5px solid var(--gold-line); }

/* The card salons hand out for the next appointment. */
.closing-card {
  justify-self: end;
  width: min(380px, 100%);
  padding: 0 0 26px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--hair), 0 40px 70px -40px rgba(23, 25, 26, .45);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) rotate(4deg);
  transition: opacity .7s ease .2s, transform 1s cubic-bezier(.34, 1.3, .64, 1) .2s;
}
.closing.is-in .closing-card { opacity: 1; transform: rotate(-2deg); }
.closing-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--cream);
  color: #FFFFFF;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
}
.closing-card__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #FFFFFF;
  color: var(--cream);
  font-style: normal;
  font-size: 20px;
}
.closing-card__mark i { position: absolute; right: 6px; bottom: 6px; width: 4px; height: 4px; border-radius: 999px; background: var(--gold-line); }
.closing-card__rows { margin: 6px 22px 18px; }
.closing-card__rows > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.closing-card__rows dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--mist); }
.closing-card__rows dd { margin: 0; font-size: 16px; color: var(--cream); }
.closing-card__hand dd span {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1;
  color: var(--gold);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s steps(14, end) 1.1s;
}
.closing.is-in .closing-card__hand dd span { clip-path: inset(0 0 0 0); }
.closing-card__btn { display: flex !important; justify-content: center; width: auto !important; margin: 0 22px; }
.closing-card__alt { margin: 14px 22px 0; text-align: center; }
.closing-card__alt .btn-base { display: flex; justify-content: center; border-color: var(--hair-strong) !important; color: var(--cream); }
.closing-card__alt p { margin: 10px 0 0; font-size: 13px !important; line-height: 1.45 !important; color: var(--mist); }

/* ─── Questions: one style for the site (D106) ──────────────────────── */

.site-faq-section { padding: 120px 0; background: var(--ink-2); }
.site-faq { max-width: 900px !important; }
.site-faq h2 { margin: 0 0 36px; font-size: clamp(36px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.site-faq__item { margin-bottom: 12px; border-radius: 24px; background: #FFFFFF; overflow: hidden; }
.site-faq__item > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 18px 26px;
  border: 0;
  background: none;
  text-align: left;
  font: 600 19px var(--sans);
  color: var(--cream);
  cursor: pointer;
}
.site-faq__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--cream); color: #FFFFFF; font-size: 22px; font-weight: 400; }
.site-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.7, 0, .2, 1); }
.site-faq__item.is-open .site-faq__a { grid-template-rows: 1fr; }
.site-faq__a > div { overflow: hidden; }
.site-faq__a p { margin: 0; padding: 0 26px 24px; color: var(--mist); }

/* ─── Scenes: illustrations that act out what the text says ─────────── */

.act {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.act--booking { min-height: 600px; }
.act--booking .act__phone { transform: translateX(-70px) scale(.9); }
.act__toast {
  position: absolute;
  top: 3%;
  left: 22%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1C1F1D;
  color: #F4EFE6;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  transition: opacity .45s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.act__toast .svc-icon { margin: 0; color: #B89968; }
.act.is-active .act__toast { opacity: 1; transform: none; transition-delay: 1.1s; }
.act__cal {
  position: absolute;
  right: 0;
  bottom: 6%;
  width: 300px;
  max-width: none;
  opacity: 0;
  transform: translateX(70px) rotate(3deg);
  transition: opacity .6s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.act.is-active .act__cal { opacity: 1; transform: rotate(2deg); transition-delay: 1.6s; }
.act__new .mock-calendar__slot { transition: box-shadow .5s ease, background-color .5s ease; }
.act.is-active .act__new .mock-calendar__slot { box-shadow: 0 0 0 2px #B89968; background: #FFF8EC; transition-delay: 2.3s; }

.act--shop { flex-direction: column; gap: 18px; }
.act--shop .mock-panel { max-width: 500px; }
.act--shop.is-active .mock-product { animation: fx-pop .75s cubic-bezier(.16, 1, .3, 1) both; }
.act--shop.is-active .mock-product:nth-child(1) { animation-delay: .25s; }
.act--shop.is-active .mock-product:nth-child(2) { animation-delay: .38s; }
.act--shop.is-active .mock-product:nth-child(3) { animation-delay: .51s; }
.act--shop.is-active .mock-product:nth-child(4) { animation-delay: .64s; }
.act--shop.is-active .mock-badge--gold { animation: fx-stamp .55s cubic-bezier(.34, 1.56, .64, 1) both 1.2s; }
.act__note {
  padding: 10px 16px;
  border-radius: 999px;
  background: #1C1F1D;
  color: #F4EFE6;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.act--shop.is-active .act__note { opacity: 1; transform: none; transition-delay: 1.6s; }
@keyframes fx-pop { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fx-stamp { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* Before/after: --sim (0..1) moves the line from the photo to the preview. */
.wipe {
  position: relative;
  width: min(400px, 82%);
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .5);
}
.wipe__portrait { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.wipe__after { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--sim, 0)) * 100%) 0 0); }
.wipe__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--sim, 0) * 100%);
  width: 2px;
  margin-left: -1px;
  background: #FFFFFF;
  opacity: calc(min(var(--sim, 0) * 20, (1 - var(--sim, 0)) * 20, 1));
}
.wipe__line span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1C1F1D;
  font-size: 15px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35);
}
.wipe__tag {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 31, 29, .72);
  color: #F4EFE6;
  font-size: 12px;
  font-weight: 600;
}
.wipe__tag--before { right: 16px; opacity: calc(1 - var(--sim, 0) * 1.4); }
.wipe__tag--after { left: 16px; opacity: calc(var(--sim, 0) * 1.4); }
.wipe__label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(28, 31, 29, .84);
  color: #F4EFE6;
  font-size: 12px;
  text-align: center;
  opacity: calc(var(--sim, 0) * 2 - .5);
}

/* Static illustrations that only enter: their parts follow one another. */
@keyframes fx-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.is-ready .mock-client__row,
.is-ready .mock-client__next { animation: fx-pop .6s cubic-bezier(.16, 1, .3, 1) both; }
.is-ready .mock-client__row:nth-of-type(1) { animation-delay: .9s; }
.is-ready .mock-client__row:nth-of-type(2) { animation-delay: 1s; }
.is-ready .mock-client__row:nth-of-type(3) { animation-delay: 1.1s; }
.is-ready .mock-client__next { animation-delay: 1.35s; }

/* ─── Illustrations ─────────────────────────────────────────────────── */

.mock-phone *,
.mock-panel * {
  overflow-wrap: normal;
}

.mock-phone,
.mock-panel {
  --m-bg: #F2F1EE;
  --m-ink: #1C1F1D;
  --m-gold: #B89968;
  --m-gold-dark: #7A5C2E;
  --m-line: #DCDAD3;
  --m-muted: #6B6A66;
  font-family: var(--sans);
  color: var(--m-ink);
  text-align: left;
}

.mock-phone {
  width: min(310px, 100%);
  padding: 10px;
  border-radius: 42px;
  background: #1C1F1D;
  box-shadow: 0 50px 90px -40px rgba(26, 22, 18, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}

.mock-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 560px;
  padding: 26px 18px 22px;
  border-radius: 33px;
  background: var(--m-bg);
}

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--m-ink, #1C1F1D);
}

.mock-brand--small { font-size: 13px; gap: 8px; }

.mock-brand__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #1C1F1D;
  color: #F4EFE6;
  font-family: var(--serif);
  font-size: 19px;
  font-style: normal;
  line-height: 1;
}

.mock-brand--small .mock-brand__mark { width: 24px; height: 24px; font-size: 15px; border-radius: 7px; }

.mock-brand__mark i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #B89968;
}

.mock-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.mock-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mock-steps span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid var(--m-line);
  background: #fff;
  font-size: 11px;
  color: var(--m-muted);
}

.mock-steps b { font-size: 11px; color: var(--m-gold-dark); }
.mock-steps .is-done { background: #F4EFE6; color: var(--m-gold-dark); border-color: transparent; }
.mock-steps .is-current { background: var(--m-ink); color: #F4EFE6; border-color: var(--m-ink); }
.mock-steps .is-current b { color: var(--m-gold); }

.mock-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--m-line);
  font-size: 13px;
  font-weight: 600;
}

.mock-chip--selected { border-color: var(--m-ink); }

.mock-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--m-muted);
}

.mock-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-times span {
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid var(--m-line);
  background: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.mock-times .is-selected { background: var(--m-ink); color: #F4EFE6; border-color: var(--m-ink); }

.mock-button {
  margin-top: auto;
  padding: 14px;
  border-radius: 999px;
  background: var(--m-ink);
  color: #F4EFE6;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.mock-panel {
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 24px;
  background: var(--m-bg);
  border: 1px solid rgba(26, 22, 18, .08);
  box-shadow: 0 50px 90px -46px rgba(26, 22, 18, .4);
}

.mock-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--m-line); }

.mock-calendar__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--m-line);
}

.mock-calendar__time { font-size: 13px; font-weight: 600; color: var(--m-muted); }

.mock-calendar__slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border-left: 3px solid var(--m-gold);
  font-size: 13px;
}

.mock-calendar__slot span { color: var(--m-muted); font-size: 12px; }

.mock-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F4EFE6;
  color: var(--m-gold-dark);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-badge--gold { background: var(--m-ink); color: #F4EFE6; }

.mock-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-filters--center { justify-content: center; margin: 16px 0 0; }

.mock-filters span {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--m-line);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}

.mock-filters .is-selected { background: var(--m-ink); color: #F4EFE6; border-color: var(--m-ink); }

.mock-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mock-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--m-line);
}

.mock-product .mock-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
}

.mock-product__img {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 104px;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-radius: 11px;
  background: #F4EFE6;
}

.mock-product__img--0 { color: #C9A27A; }
.mock-product__img--1 { color: #8C6A4A; background: #EFE6D6; }
.mock-product__img--2 { color: #D9B98F; }
.mock-product__img--3 { color: #A9B3AE; background: #ECEDEA; }

.mock-product__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.mock-product__price { font-size: 13px; color: var(--m-gold-dark); font-weight: 600; }

.mock-client__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mock-client__head > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--m-muted);
}

.mock-client__head b { font-size: 19px; color: var(--m-ink); }

.mock-client__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #F4EFE6;
  color: var(--m-gold-dark);
  font-weight: 700;
  font-size: 17px;
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-tabs span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--m-muted);
  background: #fff;
  border: 1px solid var(--m-line);
}

.mock-tabs .is-selected { background: var(--m-ink); color: #F4EFE6; border-color: var(--m-ink); }

.mock-client__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  border-top: 1px solid var(--m-line);
  font-size: 14px;
}

.mock-client__date { font-size: 12px; font-weight: 600; color: var(--m-muted); }

.mock-client__next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  color: var(--m-muted);
}

.mock-client__next b { color: var(--m-ink); }

.mock-sim__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mock-sim figure { margin: 0; }

.mock-sim figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.mock-portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.mock-sim__preview { position: relative; }

.mock-sim__label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(28, 31, 29, .82);
  color: #F4EFE6;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

/* ─── Home (D105) ───────────────────────────────────────────────────── */


.home h1 { margin: 0; font-size: clamp(46px, 5.3vw, 84px) !important; line-height: 1.02 !important; }
.home h2 { margin: 0 0 24px; font-size: clamp(38px, 4.4vw, 70px) !important; line-height: 1.05 !important; }
.home p { font-size: 18px !important; line-height: 1.62 !important; }

.home-hero { position: relative; overflow: hidden; background: var(--ink); }
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(184, 153, 104, .16), transparent 55%);
  pointer-events: none;
}
.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 81px);
  padding-block: 56px 96px;
}
.home-hero__lead { max-width: 560px; margin: 32px 0 0; color: var(--mist); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* The title's word turns like the menu letters; the tablet on its stand
   shows the screen for that word (D107). */
.home-hero .home-hero__title {
  --title-size: clamp(52px, 5.6vw, 88px);
  container-type: inline-size;
  margin: 0;
  font-size: var(--title-size) !important;
  line-height: 1.04 !important;
}
/* --w: the widest row in em (useFitTitle). A little room is left for the
   turning letters, which lose their kerning. */
.home-hero__row { font-size: min(1em, 98cqi / var(--w, 1)); }
.home-hero__row { display: block; opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
.home-hero__row:nth-child(2) { transition-delay: .15s; }
.home-hero__row:nth-child(3) { transition-delay: .3s; }
.is-ready .home-hero__row { opacity: 1; transform: none; }
.home-hero__fit { display: inline-block; white-space: nowrap; }
.home-hero__row--turn { display: grid; }
.home-hero__row--turn > .home-hero__fit { grid-area: 1 / 1; justify-self: start; }
.home-hero__ghost { visibility: hidden; }
.turn-word { display: inline-flex; color: var(--gold); white-space: pre; }
.turn-word > span { display: inline-block; animation: turn-letter .12s ease; }
.turn-word--whole { display: inline; animation: turn-whole .5s ease; }
@keyframes turn-letter { from { transform: rotateX(70deg); opacity: .4; } }
@keyframes turn-whole { from { opacity: 0; } }

.home-tablet { position: relative; display: flex; flex-direction: column; align-items: center; }
.home-tablet__device {
  position: relative;
  width: min(600px, 100%);
  min-height: 430px;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2A2D30, #121314);
  box-shadow: 0 60px 100px -50px rgba(23, 25, 26, .6), inset 0 0 0 1px rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translateY(40px) rotate(-1deg);
  transition: opacity .8s ease .2s, transform 1.2s cubic-bezier(.16, 1, .3, 1) .2s;
}
.is-ready .home-tablet__device { opacity: 1; transform: rotate(-1deg); }
.home-tablet__device::after { content: ""; position: absolute; inset: 18px; border-radius: 18px; background: #FBFAF7; }
.home-tablet__device > * { position: relative; z-index: 1; }
.home-tablet__top { display: flex; align-items: center; padding: 16px 22px 0; }
.home-tablet__dots { display: flex; gap: 6px; margin-inline-start: auto; }
.home-tablet__dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--hair-strong); transition: background-color .3s ease, width .3s ease; }
.home-tablet__dots i.is-on { width: 20px; background: var(--gold); }
.home-tablet__stand { width: 160px; height: 70px; margin-top: -6px; background: linear-gradient(180deg, #D9D6D0, #C9C5BE); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); border-radius: 0 0 20px 20px; }

.ht-screen { padding: 18px 22px 22px; animation: ht-in .6s cubic-bezier(.16, 1, .3, 1); }
@keyframes ht-in { from { opacity: 0; transform: translateY(12px); } }
.ht-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--cream); }
.ht-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ht-chips span { padding: 5px 11px; border-radius: 999px; background: var(--ink-2); font-size: 12px; color: var(--mist); }
.ht-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ht-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: 14px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--hair);
  animation: ht-in .7s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(.15s + var(--i) * .12s);
}
.ht-card.is-on { box-shadow: 0 0 0 2px var(--cream); }
.ht-card__n { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.ht-card b,
.ht-meter b { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.1; color: var(--cream); }
.ht-card span,
.ht-meter span { font-size: 12px; line-height: 1.45; color: var(--mist); }
.ht-card em { margin-top: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--gold); }
.ht-swatch,
.ht-product { display: block; height: 64px; border-radius: 10px; }
.ht-product { background: linear-gradient(160deg, #EFE9DF, #E1D7C6); }
.ht-note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--ink-2); font-size: 13px; line-height: 1.45; color: var(--cream); }
.ht-meters { display: grid; gap: 14px; margin-top: 20px; }
.ht-meter { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); align-items: center; gap: 4px 14px; animation: ht-in .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.15s + var(--i) * .12s); }
.ht-meter i { display: block; grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--ink-2); overflow: hidden; }
.ht-meter u { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 8px; background: var(--gold-line); animation: ht-bar 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.4s + var(--i) * .12s); }
@keyframes ht-bar { from { width: 0; } }

.home-hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 54px; background: var(--hair); overflow: hidden; }
.home-hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: fx-scroll 2.2s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes fx-scroll { to { top: 100%; } }

/* One screen stays still while three chapters scroll by; the section turns
   white, grey and ink with them. */
.home-story {
  --fg: var(--cream); --muted: var(--mist); --acc: var(--gold);
  position: relative;
  background: var(--ink);
  color: var(--fg);
  transition: background-color .9s ease, color .9s ease;
}
.home-story[data-active="1"] { background: #F1F1EE; }
.home-story[data-active="2"] { background: #E8E9E6; }
.home-story[data-active="3"] { --fg: var(--ivory); --muted: var(--ivory-muted); --acc: var(--gold-light); background: var(--night); }
.home-story .display { color: var(--fg); transition: color .9s ease; }
.home-story__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; }
.home-story__stage { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.home-stage { position: relative; height: min(70vh, 640px); }
.home-stage > .home-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(46px) scale(.95);
  transition: opacity .55s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.home-stage > .home-scene.is-active { opacity: 1; transform: none; transition-delay: .12s; }
.home-scene,
.home-chapter__stage { display: flex; align-items: center; justify-content: center; }
.home-scene > .mock-panel,
.home-chapter__stage > .mock-panel { width: min(460px, 100%); }
.home-story__progress { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.home-story__progress button {
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  color: var(--muted);
  transition: background-color .5s, color .5s, border-color .5s;
}
.home-story__progress button:hover { border-color: var(--acc); color: var(--fg); }
.home-story__progress .is-on,
.home-story__progress .is-on:hover { background: var(--acc); color: var(--ink); border-color: var(--acc); }
.home-story[data-active="3"] .home-story__progress .is-on { color: var(--night); }
.home-story__progress .is-done { color: var(--fg); }

.home-chapter { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 12vh 0; }
.home-chapter__stage { display: none; }
.home-chapter__d { max-width: 520px; margin: 0; color: var(--muted); transition: color .9s ease; }
.home-chapter__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.home-chapter__points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--fg); }
.home-chapter__points .svc-icon { margin: 0; color: var(--acc); }
.home-chapter__n { margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--acc); transition: color .9s ease; }
.home .home-chapter__decides { margin: 26px 0 0; max-width: 520px; padding: 16px 20px; border-left: 3px solid var(--acc); font-family: var(--serif); font-size: 23px !important; line-height: 1.35 !important; color: var(--fg); }
.home-chapter__more { align-self: flex-start; margin-top: 30px; font-weight: 600; color: var(--acc); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

.home-more { padding: 140px 0 120px; background: var(--ink); }
.home-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.home-more__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home .home-more__intro { margin: 0; max-width: 560px; color: var(--mist); }
.home-more__card .fx-tilt__inner { padding: 26px 26px 30px; }
.home-more__card + .home-more__card .fx-tilt__inner { transition-delay: .15s; }
.home-more__visual {
  height: 300px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 26px;
  background: rgba(23, 25, 26, .04);
}
.home-more__visual > * { width: 86%; flex: 0 0 auto; transform: translateY(30px); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1) .5s; }
.fx-tilt.is-in .home-more__visual > * { transform: none; }
.home-more__t { font-family: var(--serif); font-size: 36px; line-height: 1.08; }
.home-more__d { font-size: 16px; line-height: 1.6; color: var(--mist); max-width: 520px; }

/* A thread draws itself across the four steps (--line) and lights each number. */
.home-steps { padding: 130px 0; background: var(--ink-2); }
.home-steps__intro { margin: 0; color: var(--mist); }
.home-steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 64px 0 0; }
.home-steps__thread { position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: var(--hair); }
.home-steps__thread i { display: block; height: 100%; background: var(--gold); transform-origin: left center; transform: scaleX(var(--line, 0)); }
.home-step { position: relative; }
.home-step__n {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1.5px solid var(--hair-strong);
  font-family: var(--serif);
  font-size: 26px;
  color: var(--mist);
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.home-step h3 { margin: 22px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--cream); }
.home-step p { margin: 0; font-size: 16px !important; color: var(--mist); }
.home-step a { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--cream); border-bottom: 1.5px solid currentColor; }
.home-step:last-child { --step-c: var(--gold); }
.home-step h3,
.home-step p,
.home-step a { opacity: .32; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.home-step.is-reached .home-step__n { background: var(--step-c, var(--cream)); color: var(--ink); border-color: var(--step-c, var(--cream)); transform: scale(1.08); }
.home-step.is-reached h3,
.home-step.is-reached p,
.home-step.is-reached a { opacity: 1; transform: none; }

.home-prices { padding: 120px 0; background: var(--ink); text-align: center; }
.home-prices .svc-body { margin: 0 auto 36px; }

/* ─── Home hero: clear offer and line-art cards on ink (D107) ───────── */

/* What you get, as four short entries: a name and a line under it. */
.home-hero__offer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  max-width: 620px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.home-hero__offer li { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid var(--hair); }
.home-hero__offer b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; color: var(--cream); }
.home-hero__offer span { font-size: 14px; line-height: 1.45; color: var(--mist); }

/* ─── Home: consultation screens, problems, outcomes (D107) ─────────── */

.home .home-hero__start { margin: 18px 0 0; font-size: 14px !important; color: var(--mist); }

.hm-read__photo { position: relative; height: 250px; overflow: hidden; border-radius: 14px; }
.hm-read__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hm-read__guides { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-read__guides path { fill: none; stroke: #B89968; stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) .3s; vector-effect: non-scaling-stroke; }
.hm-read__guides circle { fill: #FFFFFF; stroke: #7A5C2E; stroke-width: .6; opacity: 0; transition: opacity .4s ease; transition-delay: calc(1.2s + var(--i) * .08s); }
.hm-read.is-active .hm-read__guides path { stroke-dashoffset: 0; }
.hm-read.is-active .hm-read__guides circle { opacity: 1; }
.hm-read__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hm-read__chips .mock-badge { font-size: 12px; padding: 5px 10px; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(1.6s + var(--i) * .25s); }
.hm-read.is-active .hm-read__chips .mock-badge { opacity: 1; transform: none; }

.hm-match__list { display: grid; gap: 10px; }
.hm-proposal {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--m-line);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .5s ease, transform .7s cubic-bezier(.16, 1, .3, 1), border-color .4s ease, box-shadow .4s ease;
  transition-delay: calc(.3s + var(--i) * .25s);
}
.hm-match.is-active .hm-proposal { opacity: 1; transform: none; }
.hm-match.is-active .hm-proposal.is-chosen { border-color: #1C1F1D; box-shadow: 0 0 0 1px #1C1F1D; transition-delay: calc(.3s + var(--i) * .25s), calc(.3s + var(--i) * .25s), 1.5s, 1.5s; }
.hm-proposal .mock-badge { opacity: 0; transition: opacity .4s ease 1.6s; }
.hm-match.is-active .hm-proposal .mock-badge { opacity: 1; }
.hm-proposal__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-proposal__text b { font-size: 15px; }
.hm-proposal__text span { font-size: 12px; color: var(--m-muted); }
.hm-hair { width: 52px; height: 52px; }
.hm-hair__bg { fill: #F4EFE6; }
.hm-hair__back { fill: #3A2A20; }
.hm-proposal:nth-child(2) .hm-hair__back { fill: #9A6A3C; }
.hm-proposal:nth-child(3) .hm-hair__back { fill: #5A3E2B; }
.hm-hair__face { fill: #ECCDB2; }
.hm-match__foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--m-muted); }
.hm-match__foot .svc-icon { margin: 0; color: #7A5C2E; }

.hm-listen__q { margin: 4px 0 16px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hm-listen__options { display: grid; gap: 8px; }
.hm-listen__options span { padding: 13px 16px; border-radius: 14px; border: 1px solid var(--m-line); background: #FFFFFF; font-size: 14px; font-weight: 500; transition: background-color .4s ease 1s, color .4s ease 1s, border-color .4s ease 1s; }
.hm-listen.is-active .hm-listen__options .is-picked { background: #1C1F1D; color: #F4EFE6; border-color: #1C1F1D; }
.hm-listen__bar { height: 4px; margin-top: 18px; border-radius: 4px; background: var(--m-line); overflow: hidden; }
.hm-listen__bar i { display: block; height: 100%; width: 100%; background: #1C1F1D; transform-origin: left; transform: scaleX(.2); transition: transform 1s cubic-bezier(.65, 0, .35, 1) 1.4s; }
.hm-listen.is-active .hm-listen__bar i { transform: scaleX(.45); }

/* Today's five moments under the salons' before/after slider: the side with
   Saloria sweeps over them with the scroll (--reveal) or the handle (--x). */
.hm-problems { padding: 140px 0 110px; background: var(--ink); }
.hm-problems__head { max-width: 860px; margin-bottom: 52px; }
.home .hm-problems__intro { margin: 22px 0 0; max-width: 640px; color: var(--mist); }
.hm-slider {
  --pos: var(--x, calc(1 - var(--reveal, 0)));
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--hair);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.hm-slider__layer { padding: 66px 48px 36px; }
.hm-slider__layer--before { background: var(--ink-2); color: rgba(23, 25, 26, .46); }
.hm-slider__layer--after { position: absolute; inset: 0; background: var(--night); color: var(--ivory); clip-path: inset(0 0 0 calc(var(--pos) * 100%)); }
[dir="rtl"] .hm-slider__layer--after { clip-path: inset(0 calc(var(--pos) * 100%) 0 0); }
.hm-slider__tag { position: absolute; top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.hm-slider__layer--before .hm-slider__tag { inset-inline-start: 48px; }
.hm-slider__layer--after .hm-slider__tag { inset-inline-end: 48px; color: var(--gold-light); }
.hm-slider__list { margin: 0; padding: 0; list-style: none; }
.hm-slider__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; padding: 20px 0; border-top: 1px solid var(--hair); }
.hm-slider__layer--after li { border-top-color: rgba(244, 239, 230, .14); }
.hm-slider__n { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.hm-slider__layer--after .hm-slider__n { color: var(--gold-light); }
.hm-slider__t { display: grid; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.22; }
.hm-slider__t > span { grid-area: 1 / 1; }
.hm-slider__t > .is-ghost { visibility: hidden; }
.hm-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(var(--pos) * 100%);
  width: 2px;
  margin-inline-start: -1px;
  background: var(--gold-line);
  outline: none;
}
.hm-slider__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px -8px rgba(23, 25, 26, .45);
  font-size: 20px;
  color: var(--cream);
  transition: transform .25s ease;
}
.hm-slider:active .hm-slider__handle span,
.hm-slider__handle:focus-visible span { transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold-line), 0 10px 24px -8px rgba(23, 25, 26, .45); }
.home .hm-slider__hint { margin: 16px 0 0; text-align: center; font-size: 14px !important; color: var(--mist); }

/* What changes in the salon: four curtain cards. */
.hm-outcomes { padding: 130px 0; background: var(--ink-2); }
.hm-outcomes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.hm-outcome .fx-tilt__inner { min-height: 300px; padding: 28px 26px; background: #FFFFFF; }
.hm-outcome:nth-child(2) .fx-tilt__inner { background: var(--night); color: var(--ivory); }
.hm-outcome__n { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold-line); }
.hm-outcome__t { margin-top: auto; font-family: var(--serif); font-size: 30px; line-height: 1.08; }
.hm-outcome__d { font-size: 15px; line-height: 1.55; color: var(--mist); }
.hm-outcome:nth-child(2) .hm-outcome__d { color: var(--ivory-muted); }

/* ─── Tablets and phones ────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .home-story__grid { gap: 40px; }
  .act--booking .act__phone { transform: translateX(-50px) scale(.82); }
  .hm-outcomes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .closing { padding: 80px 0 90px; }
  .closing__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .closing-card { justify-self: center; }
  .act--booking { min-height: 480px; }
  .act--booking .act__phone { transform: translateX(-50px) scale(.72); }
  .act__cal { width: 230px; right: -6px; bottom: 2%; }
  .act__toast { left: 6%; top: 4%; }
  .act--shop .mock-panel { transform: scale(.86); }

  .home-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-block: 40px; }
  /* On a phone the tablet comes right after the offer, next to the turning
     word; the buttons and the free start follow it. */
  .home-hero__text { display: contents; }
  .home-hero .home-hero__title { --title-size: clamp(52px, 8vw, 72px); }
  .home-tablet { order: 1; margin-top: 40px; }
  .home-hero__actions,
  .home-hero__start { order: 2; }
  .home-tablet__device { min-height: 390px; padding: 12px; border-radius: 26px; }
  .home-tablet__device::after { inset: 12px; border-radius: 16px; }
  .home-tablet__top { padding: 12px 14px 0; }
  .ht-screen { padding: 12px 14px 16px; }
  .ht-title { font-size: 23px; }
  .ht-grid { gap: 6px; }
  .ht-card { min-height: 128px; padding: 10px; gap: 4px; }
  .ht-card b, .ht-meter b { font-size: 15px; }
  .ht-card span, .ht-meter span, .ht-note { font-size: 11px; }
  .ht-swatch, .ht-product { height: 36px; }
  .home-tablet__stand { width: 110px; height: 44px; }
  .home-hero__scroll { display: none; }
  .home-hero__offer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .home-hero__offer b { font-size: 20px; }
  .home-story__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-problems { padding: 80px 0 60px; }
  .hm-problems__head { margin-bottom: 32px; }
  .hm-slider { border-radius: 20px; }
  .hm-slider__layer { padding: 56px 20px 18px; }
  .hm-slider__layer--before .hm-slider__tag { inset-inline-start: 20px; }
  .hm-slider__layer--after .hm-slider__tag { inset-inline-end: 20px; }
  .hm-slider__list li { grid-template-columns: 34px minmax(0, 1fr); padding: 16px 0; }
  .hm-slider__t { font-size: 20px; }
  .hm-slider__handle span { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .hm-outcomes { padding: 80px 0; }
  .hm-outcomes__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-outcome .fx-tilt__inner { min-height: 0; }
  .hm-outcome__t { margin-top: 18px; }
  .home-story__stage { display: none; }
  .home-chapter { min-height: 0; padding: 72px 0; }
  .home-chapter__stage { display: block; position: relative; height: 440px; margin-bottom: 28px; }
  .home-more__grid,
  .home-more__grid--three { grid-template-columns: minmax(0, 1fr); }
  .home-steps__list { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .home-steps__thread { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .home-steps__thread i { width: 100%; height: 100%; transform-origin: center top; transform: scaleY(var(--line, 0)); }
  .home-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .home-step__n { grid-row: span 3; }
  .home-step h3 { margin-top: 10px; }
  .home-step h3,
  .home-step p,
  .home-step a { grid-column: 2; }
  .site-faq-section { padding: 80px 0; }
  .site-faq__item > button { font-size: 17px; padding: 16px 18px 16px 22px; }
}

@media (max-width: 640px) {
  .mock-phone__screen { min-height: 500px; }
  .mock-panel { padding: 16px; }
  .act__note { display: none; }
  .act--shop .mock-panel { transform: scale(.76); }

  .home h1 { font-size: 36px !important; }
  .home-hero .home-hero__title { --title-size: 54px; }
  .home h2 { font-size: 34px !important; }
  .home p { font-size: 16px !important; }
  .home-more__t { font-size: 29px; }
  .home-step h3 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after,
  .closing *, .closing::before { transition: none !important; animation: none !important; }
  .closing-card, .closing-card__hand dd span { opacity: 1; clip-path: none; transform: none; }
}

/* ─── German, Korean and Japanese (D108) ─────────────────────────────── */

/* No web font covers Korean or Japanese: the system's Mincho/Myeongjo and
   Gothic faces take over from the Latin ones, and titles get the taller line
   these scripts need. */
html:lang(ja) {
  --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Inter Tight", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  line-break: strict;
}
html:lang(ko) {
  --serif: "Cormorant Garamond", AppleMyungjo, "Nanum Myeongjo", "Noto Serif KR", Batang, serif;
  --sans: "Inter Tight", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
}
html:lang(ja) body :is(h1, h2, h3, .display),
html:lang(ko) body :is(h1, h2, h3, .display) { line-height: 1.28 !important; letter-spacing: 0 !important; }
html:lang(ja) body :is(p, li),
html:lang(ko) body :is(p, li) { line-height: 1.75; }

/* Japanese glyphs are a full em wide: the opening title starts smaller. */
html:lang(ja) .home-hero .home-hero__title { --title-size: clamp(40px, 6vw, 68px); }
html:lang(ja) .site-nav__links,
html:lang(ko) .site-nav__links { letter-spacing: .04em !important; }

/* Arabic (D109): system Naskh and sans faces after the Latin ones, no letter
   spacing (it pulls joined letters apart) and arrows that point the way the
   text reads. */
html:lang(ar) {
  --serif: "Cormorant Garamond", "Noto Naskh Arabic", Amiri, "Al Nile", "Times New Roman", serif;
  --sans: "Inter Tight", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", "Noto Sans Arabic", "Geeza Pro", ui-monospace, monospace;
}
html:lang(ar) body * { letter-spacing: 0 !important; }
html:lang(ar) body :is(h1, h2, h3, .display) { line-height: 1.4 !important; }
html:lang(ar) body :is(p, li) { line-height: 1.8; }
html[dir="rtl"] :is(.btn-arrow, a > span[aria-hidden="true"]) { display: inline-block; transform: scaleX(-1); }

/* Long German compounds would push big titles past the edge of a phone. */
html:lang(de) body :is(h1, h2, h3, .display) { hyphens: auto; overflow-wrap: break-word; }

.login-access{display:grid;grid-template-columns:1fr 1fr;min-height:65vh;border-block:1px solid var(--hair)}
.login-access__intro,.login-access__actions{padding:clamp(32px,6vw,80px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:24px;min-width:0}
.login-access__intro{background:#211b16;color:#f4efe6}
.login-access h1{font-size:clamp(38px,5vw,80px);line-height:1.08;margin:0;color:inherit;overflow-wrap:anywhere}
.login-access h2{font-size:clamp(30px,3vw,48px);margin:0}
.login-access p{font-size:16px;line-height:1.7;max-width:560px;margin:0}
.login-access__recover{font-size:12px;letter-spacing:.08em;text-decoration:underline}
.login-access hr{width:100%;margin:12px 0}
@media(max-width:800px){.login-access{grid-template-columns:1fr}.login-access__intro,.login-access__actions{padding:40px 24px}.login-access .btn-base{max-width:100%;white-space:normal}}
