/* Reef Studio · "La descente"
   Visual contract: design/aesthetics-prompt.md. Structure: wireframes/README.md (S0–S9).
   Tokens from the brand kit; one derived shade (--color-abyss) for the deepest section. */

:root {
  --color-bg: #061C28;
  --color-surface: #0B2A3C;
  --color-ink: #F4EDE1;
  --color-muted: #9DB3BD;
  --color-dominant: #0B7A7A;
  --color-lagoon: #0E8C8C;   /* kit's lagoon for dark backgrounds */
  --color-highlight: #8FD3CF;
  --color-accent: #E8735A;
  --color-abyss: #03111A;
  --color-line: rgba(143, 211, 207, .16);
  --color-on-accent: #0B2A3C;

  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --font-body: var(--font-display);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1320px;
  --top-h: 76px;
  --section-pad: clamp(80px, 8vw, 128px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  font: 300 1.0625rem/1.6 var(--font-body);
  /* the descent: lit surface at the top, abyss at the bottom */
  background: linear-gradient(180deg, #0F3A50 0%, var(--color-surface) 14%, #08222F 42%, var(--color-bg) 68%, var(--color-abyss) 100%);
  overflow-x: hidden;
}
body::before { /* grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot { position: relative; z-index: 1; }

/* background waves: thin lines across the whole page, darker as the page goes down (colour set by JS) */
.depth { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.depth__svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(143, 211, 207, .16); stroke-width: 1; }
.depth__svg path { vector-effect: non-scaling-stroke; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-highlight); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--color-ink); color: var(--color-bg); font-weight: 400; text-decoration: none;
}
.skip:focus { top: 12px; }

.h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  letter-spacing: -.035em;
  line-height: .98;
  max-width: 17ch;
}
.section { padding-block: var(--section-pad); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }
.section__intro { margin: 0; max-width: 46ch; color: var(--color-muted); font-size: 1.125rem; }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px;
  font: 400 1rem/1.2 var(--font-display);
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); font-weight: 500; }
.btn--accent:hover { background: #F08A73; color: var(--color-on-accent); }
.btn--ghost { border: 1px solid var(--color-line); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-highlight); color: var(--color-ink); }
.btn--small { min-height: 42px; padding: 10px 20px; font-size: .9375rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- S1 header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--top-h);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled, .page-legal .top {
  background: rgba(8, 34, 47, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-line);
}
.top__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.top__home { flex: none; display: block; line-height: 0; border-radius: 6px; }
.logo { width: 156px; height: auto; overflow: visible; }
.top__nav { display: flex; gap: clamp(16px, 2.2vw, 32px); margin-inline: auto; }
.top__nav a { color: var(--color-muted); font-weight: 400; font-size: .9375rem; text-decoration: none; }
.top__nav a:hover { color: var(--color-ink); }
.top__side { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; font: 400 .8125rem/1 var(--font-mono); }
.langs__item { display: inline-block; padding: 8px 7px; color: var(--color-muted); text-decoration: none; border-radius: 6px; }
.langs__item.is-current { color: var(--color-ink); }
a.langs__item:hover { color: var(--color-highlight); }
.top__burger {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--color-line); border-radius: 999px;
  background: transparent; color: var(--color-ink);
  font: 400 .9375rem/1 var(--font-display); cursor: pointer;
}
.top__burger-lines, .top__burger-lines::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.top__burger-lines::before { content: ""; position: absolute; top: 5px; }
.top__burger-lines { transform: translateY(-2.5px); }
.top__burger[aria-expanded="true"] .top__burger-lines { transform: rotate(45deg); }
.top__burger[aria-expanded="true"] .top__burger-lines::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 1040px) {
  .top__nav {
    position: fixed; inset: var(--top-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(8, 34, 47, .97);
    border-bottom: 1px solid var(--color-line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .top__nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .top__nav a { padding: 14px 0; font-size: 1.375rem; font-weight: 200; color: var(--color-ink); border-bottom: 1px solid var(--color-line); }
  .top__burger { display: inline-flex; }
  .top__side { margin-left: auto; }
  html.no-js .top__nav { display: none; } /* the footer carries the same links */
  html.no-js .top__burger { display: none; }
}
@media (max-width: 640px) {
  .top__cta { display: none; }
  .logo { width: 132px; }
  .top__side { gap: 8px; }
}

/* ---------- S2 hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--top-h) + 48px) 0 48px;
  overflow: hidden;
}
.hero::before { /* light from the sun and surface caustics */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(20, 160, 160, .30), transparent 70%),
    radial-gradient(30% 25% at 70% 18%, rgba(232, 115, 90, .14), transparent 70%),
    repeating-radial-gradient(ellipse 120% 40% at 70% -10%, transparent 0 22px, rgba(143, 211, 207, .035) 23px 24px, transparent 25px 46px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 32px; }
.hero__copy { position: relative; z-index: 2; grid-column: 1; }
.hero__label { margin-bottom: 28px; font: 400 .875rem/1.4 var(--font-mono); color: var(--color-highlight); }
.hero__title {
  font-size: clamp(2.8rem, 5.6vw, 5.9rem);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.line { display: block; overflow: hidden; padding: .14em 0 .06em; margin: -.14em 0 -.06em; }
.line__in { display: inline-block; }
.line--hl { color: var(--color-highlight); }
.hero__text { max-width: 40ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--color-muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__sea {
  position: absolute; z-index: 1;
  right: calc(var(--gutter) * -1 - 9vw);
  top: 50%;
  width: min(60vw, 920px);
  aspect-ratio: 1;
  transform: translate(calc(var(--px, 0) * 14px), calc(-50% + var(--py, 0) * 10px));
  pointer-events: none;
}
.sea { width: 100%; height: 100%; overflow: visible; }
.sea__disc { filter: drop-shadow(0 30px 80px rgba(14, 140, 140, .35)); }

.hero__facts {
  grid-column: 1 / -1;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 6vh, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; font-size: .9375rem; }
.hero__facts strong { font-weight: 500; color: var(--color-ink); }
.hero__facts span { color: var(--color-muted); font: 400 .8125rem/1.5 var(--font-mono); }

@media (max-width: 900px) {
  .hero { display: block; padding-top: var(--top-h); }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__sea {
    position: relative; inset: auto;
    order: -1;
    width: min(92vw, 520px); margin: 0 calc(var(--gutter) * -1 - 14vw) 0 auto;
    transform: translate(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px));
  }
  .hero__copy { margin-top: -30vw; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__actions .btn { flex: 1 1 220px; }
}

/* ---------- S3 offer ---------- */
.offer__rows { border-top: 1px solid var(--color-line); }
.offer__row {
  position: relative;
  /* fixed link column: every row shares the same columns, so the descriptions line up */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 17rem;
  gap: 12px 40px; align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}
.offer__row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--color-highlight); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.offer__row:hover::after, .offer__row:focus-within::after { transform: scaleX(1); }
.offer__name { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 200; letter-spacing: -.01em; }
.offer__text { margin: 0; color: var(--color-muted); max-width: 46ch; }
.offer__link { justify-self: end; font: 400 .875rem/1.4 var(--font-mono); white-space: nowrap; }
.offer__more { margin: 40px 0 0; font-size: 1.25rem; font-weight: 200; }
@media (max-width: 760px) {
  .offer__row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .offer__link { white-space: normal; justify-self: start; }
}

/* ---------- S4 method ---------- */
.method .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.method__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: none; }
.method__step { position: relative; padding-top: 28px; border-top: 1px solid var(--color-line); }
.method__step::before { /* the line that links the steps */
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--color-highlight), transparent);
}
.method__n {
  display: block; margin-bottom: 18px;
  font-size: clamp(4rem, 6vw, 6rem); font-weight: 200; line-height: .8; letter-spacing: -.04em;
  color: var(--color-lagoon);
}
.method__title { font-size: 1.5rem; font-weight: 500; margin-bottom: 14px; line-height: 1.15; }
.method__step p { color: var(--color-muted); max-width: 38ch; }
@media (max-width: 860px) { .method__steps { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- S5 why ---------- */
.why .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 20px 32px; }
.why__lead {
  grid-row: 1 / span 3;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(20, 160, 160, .28), transparent 70%),
    var(--color-surface);
  border: 1px solid var(--color-line);
}
.why__lead-title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; max-width: 14ch; line-height: 1.02; }
.why__lead p { color: var(--color-muted); max-width: 36ch; }
.why__item { padding: 28px 4px 8px; border-top: 1px solid var(--color-line); }
.why__title { font-size: 1.375rem; font-weight: 500; line-height: 1.15; margin-bottom: 10px; }
.why__item p { color: var(--color-muted); margin: 0; }

.mock { margin: 32px 0 0; border-radius: 14px; overflow: hidden; background: var(--color-ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #E7DECF; }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9BEAD; }
.mock__bar span { margin-left: 10px; font: 400 .6875rem/1 var(--font-mono); color: #6B7A82; }
.mock__page { padding: 18px; display: grid; gap: 14px; }
.mock__hero { position: relative; height: 110px; border-radius: 8px; background: linear-gradient(135deg, var(--color-dominant), #0E5E6E); padding: 16px; display: grid; align-content: end; gap: 6px; }
.mock__hero b { display: block; height: 9px; width: 55%; border-radius: 9px; background: rgba(244, 237, 225, .9); }
.mock__hero b + b { width: 35%; opacity: .6; }
.mock__hero span { position: absolute; right: 16px; bottom: 16px; width: 64px; height: 20px; border-radius: 20px; background: var(--color-accent); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__row span { height: 46px; border-radius: 6px; background: #D9CDB9; }
.mock__row span:nth-child(2) { background: #CBBFA9; }
.mock__lines { display: grid; gap: 6px; }
.mock__lines b { height: 6px; border-radius: 6px; background: #D9CDB9; }
.mock__lines b:nth-child(2) { width: 80%; }
.mock__lines b:nth-child(3) { width: 60%; }

@media (max-width: 960px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__lead { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- S6 configurator ---------- */
.conf__app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.conf__form { display: grid; gap: 34px; }
.conf__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.conf__step legend { padding: 0; margin-bottom: 14px; font-size: 1.25rem; font-weight: 500; }
.conf__count { display: block; margin-bottom: 6px; font: 400 .8125rem/1.4 var(--font-mono); color: var(--color-highlight); }
.conf__step legend em { font-style: normal; font: 400 .8125rem/1 var(--font-mono); color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--color-line); border-radius: 999px;
  color: var(--color-ink); font-size: .9375rem; font-weight: 400;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover span { border-color: var(--color-highlight); }
.chip input:checked + span { background: var(--color-highlight); border-color: var(--color-highlight); color: var(--color-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--color-highlight); outline-offset: 3px; }
.conf__place { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.conf__place legend { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; color: var(--color-muted); }
.field input, .conf__nojs textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--color-line); border-radius: 14px;
  background: rgba(6, 28, 40, .55); color: var(--color-ink);
  font: 400 1rem/1.4 var(--font-display);
}
.field input:focus, .conf__nojs textarea:focus { outline: 2px solid var(--color-highlight); outline-offset: 2px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--color-accent); }
.field__hint { margin: 0; font: 400 .8125rem/1.5 var(--font-mono); color: var(--color-muted); }

.conf__summary { padding: 28px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-line); }
.conf__summary-title { font-size: 1rem; font-weight: 500; color: var(--color-highlight); margin-bottom: 10px; }
.conf__summary-text { font-size: 1.125rem; font-weight: 300; }
.conf__missing { display: none; color: #F4A08C; font-size: .9375rem; }
.conf__summary.show-missing .conf__missing { display: block; }
.conf__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 14px; }
.conf__send .btn[aria-disabled="true"] { opacity: .55; }
.conf__email { font-size: .9375rem; }
.conf__conditions { margin: 0; font-size: .875rem; color: var(--color-muted); }
.conf__thanks { margin: 14px 0 0; color: var(--color-highlight); font-weight: 400; }

/* the sketch: ink on sand paper, a layout drawn for each kind of business */
.preview { position: sticky; top: calc(var(--top-h) + 24px); margin: 0; --ink: #0B2A3C; --ink-soft: rgba(11, 42, 60, .55); }
.preview__label { margin-bottom: 12px; font: 400 .8125rem/1.4 var(--font-mono); color: var(--color-muted); }
.preview__frame { border-radius: 18px; overflow: hidden; background: var(--color-ink); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(244, 237, 225, .1); }
.preview__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #E7DECF; border-bottom: 1.5px solid var(--ink); }
.preview__bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.preview__url { flex: 1; min-width: 0; margin-left: 10px; padding: 4px 12px; border: 1.5px solid var(--ink-soft); border-radius: 14px 6px 12px 5px / 6px 12px 5px 14px; font: 400 .75rem/1.2 var(--font-mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview__langs { display: flex; gap: 4px; }
.preview__langs b { padding: 3px 5px; border: 1.5px solid var(--ink); border-radius: 5px 3px 6px 3px; color: var(--ink); font: 400 .625rem/1 var(--font-mono); }
.preview__page {
  display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start;
  padding: 16px; min-height: 460px;
  background:
    linear-gradient(rgba(11, 42, 60, .06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(11, 42, 60, .06) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--color-ink);
}
.preview__note { margin: 14px 0 0; font-size: .875rem; color: var(--color-muted); }

.pv {
  flex: 1 1 var(--w, 100%); min-width: 0; order: var(--o, 5);
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 14px 5px 12px 4px / 5px 12px 4px 14px;
}
.pv.is-off { display: none; }
.pv.is-new, .preview__page.is-redraw .pv { animation: sketch-in .7s var(--ease) calc(var(--k, 0) * 70ms) both; }
@keyframes sketch-in { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.pv__name { display: block; margin-bottom: 8px; font: 400 .6875rem/1 var(--font-mono); color: var(--ink-soft); }

/* sketch vocabulary: crossed image boxes, wavy text lines */
.sk-img {
  display: block; min-height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 6px 3px 7px 2px / 3px 7px 2px 6px;
  background:
    linear-gradient(to top right, transparent calc(50% - .9px), var(--ink-soft) 50%, transparent calc(50% + .9px)),
    linear-gradient(to bottom right, transparent calc(50% - .9px), var(--ink-soft) 50%, transparent calc(50% + .9px));
}
.sq {
  display: block; height: 8px; width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 4c3-3 6-3 6 0s3 3 6 0 3-3 6 0 3 3 6 0' fill='none' stroke='%230B2A3C' stroke-width='1.4' stroke-opacity='.55'/%3E%3C/svg%3E") repeat-x 0 50% / 24px 8px;
}
.sq--short { width: 55%; }
.sq + .sq { margin-top: 6px; }

/* hero: a different composition per activity */
.pv--hero { --o: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon head"; gap: 10px 14px; align-items: center; padding: 16px; }
.pv__photo { grid-area: photo; display: none; }
.pv__icon { grid-area: icon; width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv__ic { display: none; }
[data-activity="hotel"] .pv__ic--hotel, [data-activity="restaurant"] .pv__ic--restaurant, [data-activity="tour"] .pv__ic--tour,
[data-activity="school"] .pv__ic--school, [data-activity="shop"] .pv__ic--shop, [data-activity="other"] .pv__ic--other { display: inline; }
.pv__head { grid-area: head; display: grid; gap: 6px; min-width: 0; }
.pv__title { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; overflow-wrap: anywhere; color: var(--ink); }

[data-activity="hotel"] .pv--hero { grid-template-areas: "photo photo" "icon head"; }
[data-activity="hotel"] .pv__photo { display: block; height: 104px; }
[data-activity="restaurant"] .pv--hero { grid-template-columns: auto 1fr 92px; grid-template-areas: "icon head photo"; }
[data-activity="restaurant"] .pv__photo { display: block; width: 92px; height: 92px; border-radius: 50%; }
[data-activity="shop"] .pv--hero { grid-template-columns: 42% 1fr; grid-template-areas: "photo head" "photo icon"; }
[data-activity="shop"] .pv__photo { display: block; height: 100%; min-height: 96px; }
[data-activity="shop"] .pv__icon { width: 34px; height: 34px; }
[data-activity="school"] .pv--hero { background: rgba(11, 122, 122, .10); }
[data-activity="tour"] .pv--hero { padding-block: 12px; }

/* blocks */
.pv--booking { --o: 1; border: 0; padding: 2px 0; display: flex; justify-content: center; }
.pv__pill { display: inline-block; padding: 7px 16px; border: 1.5px solid var(--ink); border-radius: 20px 14px 22px 12px / 12px 22px 14px 20px; background: var(--color-accent); color: var(--ink); font-size: .8125rem; font-weight: 500; }
.pv--gallery { --o: 2; }
.pv__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pv__tiles .sk-img { min-height: 34px; }
.pv__tiles .sk-img:nth-child(5) { display: none; }
.pv--map { --o: 3; }
.pv__map { width: 100%; height: 52px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.pv__route { stroke-dasharray: 4 4; stroke: var(--color-dominant); stroke-width: 2; }
.pv__map circle { fill: var(--color-accent); stroke: var(--ink); stroke-width: 1.2; }
.pv--menu { --o: 4; }
.pv__rows { display: grid; gap: 7px; }
.pv__rows i { display: flex; align-items: center; gap: 8px; }
.pv__rows .sq { flex: 1; }
.pv__rows em { flex: none; width: 26px; height: 12px; border: 1.5px solid var(--ink-soft); border-radius: 3px 5px 3px 6px; }
.pv--reviews { --o: 5; }
.pv__quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv__quotes i { position: relative; padding: 6px 0 0 18px; }
.pv__quotes i::before { content: "\201C"; position: absolute; left: 0; top: -4px; font: 800 1.5rem/1 var(--font-display); color: var(--color-dominant); }
.pv__quotes .sq + .sq { margin-top: 5px; }
.pv--blog { --o: 6; }
.pv__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv__cards i { display: grid; gap: 6px; }
.pv__cards .sk-img { min-height: 30px; }
.pv--contact { --o: 9; }

/* layouts per activity: order (--o) and width (--w) of each block */
[data-activity="hotel"] .pv--map { --o: 3; --w: 50%; }
[data-activity="hotel"] .pv--reviews { --o: 4; --w: 40%; }
[data-activity="hotel"] .pv--menu, [data-activity="hotel"] .pv--blog { --w: 40%; }
[data-activity="hotel"] .pv__tiles { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 32px 32px; }
[data-activity="hotel"] .pv__tiles .sk-img { min-height: 0; }
[data-activity="hotel"] .pv__tiles .sk-img:first-child { grid-row: span 2; }
[data-activity="hotel"] .pv__tiles .sk-img:nth-child(5) { display: block; }

[data-activity="restaurant"] .pv--menu { --o: 1; --w: 52%; }
[data-activity="restaurant"] .pv--gallery { --o: 2; --w: 34%; }
[data-activity="restaurant"] .pv__tiles { grid-template-columns: 1fr 1fr; }
[data-activity="restaurant"] .pv--booking { --o: 3; }
[data-activity="restaurant"] .pv--map, [data-activity="restaurant"] .pv--blog { --w: 40%; }

[data-activity="tour"] .pv--map { --o: 1; }
[data-activity="tour"] .pv__map { height: 96px; }
[data-activity="tour"] .pv--gallery { --o: 2; --w: 52%; }
[data-activity="tour"] .pv__tiles { grid-template-columns: repeat(3, 1fr); }
[data-activity="tour"] .pv--reviews { --o: 3; --w: 34%; }
[data-activity="tour"] .pv__quotes { grid-template-columns: 1fr; }
[data-activity="tour"] .pv--booking { --o: 4; }
[data-activity="tour"] .pv--menu, [data-activity="tour"] .pv--blog { --w: 40%; }

[data-activity="school"] .pv--menu { --o: 1; }
[data-activity="school"] .pv__rows i { padding-bottom: 6px; border-bottom: 1px dashed var(--ink-soft); }
[data-activity="school"] .pv__rows em { width: 46px; }
[data-activity="school"] .pv--blog { --o: 2; --w: 52%; }
[data-activity="school"] .pv__cards { grid-template-columns: 1fr; }
[data-activity="school"] .pv__cards i { grid-template-columns: 40px 1fr; align-items: center; }
[data-activity="school"] .pv__cards .sk-img { min-height: 24px; }
[data-activity="school"] .pv--gallery { --o: 3; --w: 34%; }
[data-activity="school"] .pv__tiles { grid-template-columns: 1fr 1fr; }

[data-activity="shop"] .pv--gallery { --o: 1; }
[data-activity="shop"] .pv__tiles { grid-template-columns: repeat(5, 1fr); }
[data-activity="shop"] .pv__tiles .sk-img { aspect-ratio: 1; min-height: 0; }
[data-activity="shop"] .pv__tiles .sk-img:nth-child(5) { display: block; }
[data-activity="shop"] .pv--menu { --o: 2; --w: 46%; }
[data-activity="shop"] .pv--booking { --o: 3; --w: 40%; align-items: center; }
[data-activity="shop"] .pv--reviews, [data-activity="shop"] .pv--blog { --w: 40%; }

.conf__nojs { display: grid; gap: 14px; max-width: 640px; }
.conf__nojs label { color: var(--color-muted); }
.conf__nojs textarea { min-height: 220px; resize: vertical; }
.conf__nojs .btn { justify-self: start; }
html.js .conf__nojs { display: none; }
html.no-js .conf__app { display: none; }

@media (max-width: 960px) {
  .conf__app { grid-template-columns: 1fr; }
  .preview { position: relative; top: auto; order: -1; }
  .preview__page { min-height: 0; }
  .preview__note { margin-bottom: 8px; }
}
@media (max-width: 520px) { .conf__place { grid-template-columns: 1fr; } }

/* ---------- S7 work ---------- */
.work .h2 { margin-bottom: 56px; }
.work__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.work__card img { width: 100%; height: auto; border-radius: 14px; margin-bottom: 16px; }
.work__card h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 4px; }
.work__card p { color: var(--color-muted); margin-bottom: 6px; }

/* ---------- S8 contact: the deepest point ---------- */
.contact { background: linear-gradient(180deg, transparent, rgba(3, 17, 26, .9) 30%); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.contact__title { font-size: clamp(2.8rem, 6.6vw, 6.6rem); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 32px; max-width: 11ch; }
.contact__copy p { color: var(--color-muted); font-size: 1.125rem; max-width: 44ch; margin: 0; }
.contact__ways { display: grid; gap: 22px; justify-items: start; }
.contact__list { margin: 0; display: grid; gap: 14px; }
.contact__list div { display: grid; gap: 2px; }
.contact__list dt { font: 400 .8125rem/1.4 var(--font-mono); color: var(--color-muted); }
.contact__list dd { margin: 0; font-size: 1.25rem; font-weight: 300; }
.contact__list a { color: var(--color-ink); text-decoration: none; }
.contact__list a:hover { color: var(--color-highlight); }
.contact__place { margin: 0; color: var(--color-muted); }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- S9 footer ---------- */
.foot { background: var(--color-abyss); border-top: 1px solid var(--color-line); padding: 64px 0 48px; }
.foot__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot__logo { width: 168px; height: auto; margin-bottom: 18px; }
.foot__tagline { color: var(--color-muted); max-width: 32ch; }
.foot__nav, .foot__meta { display: grid; gap: 10px; align-content: start; }
.foot__nav a, .foot__meta a { color: var(--color-ink); text-decoration: none; font-weight: 300; }
.foot__nav a:hover, .foot__meta a:hover { color: var(--color-highlight); }
.foot__meta span { color: var(--color-muted); font-size: .875rem; }
.foot__meta .langs { margin-left: -7px; }
@media (max-width: 760px) { .foot__inner { grid-template-columns: 1fr; } }

/* mobile bar: the demo request always at thumb's reach */
.bar { display: none; }
@media (max-width: 760px) {
  .page-home { padding-bottom: 76px; }
  .bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    min-height: 54px; border-radius: 999px;
    background: var(--color-accent); color: var(--color-on-accent);
    font-weight: 500; text-decoration: none;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
    transition: transform .4s var(--ease), opacity .4s var(--ease);
  }
  .bar.is-hidden { transform: translateY(140%); opacity: 0; }
}

/* ---------- legal page ---------- */
.legal { padding: calc(var(--top-h) + 64px) 0 120px; }
.legal__inner { max-width: 780px; }
.legal__title { font-size: clamp(2.6rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: -.02em; margin: 24px 0 20px; }
.legal h2 { font-size: 1.375rem; font-weight: 500; margin: 48px 0 12px; }
.legal p { color: var(--color-muted); max-width: 68ch; }
.legal__back { font: 400 .875rem/1.4 var(--font-mono); }


/* ---------- v4: key figures, weight comparison, FAQ, local cue ---------- */
.hero__coords { margin-left: 12px; color: var(--color-muted); }
.why__figure { margin: 0 0 14px; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 200; line-height: 1; letter-spacing: -.02em; color: var(--color-highlight); }

.weight { margin: 56px 0 0; display: grid; gap: 14px; max-width: 880px; }
.weight__row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 12.5rem; gap: 16px; align-items: center; }
.weight__label { font-size: .9375rem; color: var(--color-muted); }
.weight__bar { position: relative; height: 8px; border-radius: 8px; background: rgba(143, 211, 207, .08); overflow: hidden; }
.weight__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; transform-origin: left; }
.weight__row--site .weight__bar i { width: 4%; min-width: 8px; background: var(--color-highlight); }
.weight__row--photo .weight__bar i { width: 100%; background: var(--color-muted); opacity: .45; }
.weight__value { font: 400 .875rem/1.3 var(--font-mono); color: var(--color-ink); white-space: nowrap; }
.weight__row--site .weight__value { color: var(--color-highlight); }
.weight figcaption { margin-top: 4px; font-size: .9375rem; color: var(--color-muted); }
@media (max-width: 700px) {
  .weight__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .weight__bar { grid-column: 1 / -1; grid-row: 2; }
}

.faq__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--color-line); }
.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: 1.1875rem; font-weight: 400; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--color-highlight);
  transition: transform .4s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--color-highlight); }
.faq__item p { margin: 0 0 24px; max-width: 62ch; color: var(--color-muted); }
@media (max-width: 860px) { .faq__inner { grid-template-columns: 1fr; } }

.foot__coords { margin: -4px 0 16px; font: 400 .8125rem/1.4 var(--font-mono); color: var(--color-muted); }
.foot__social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 50%; color: var(--color-ink); }
.foot__social:hover { color: var(--color-highlight); border-color: var(--color-highlight); }

/* ---------- v4: configurator on phones: the sketch stays on top, the answers scroll in rows ---------- */
@media (max-width: 960px) {
  .preview {
    position: sticky; top: var(--top-h); z-index: 5;
    margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 12px;
    background: rgba(8, 34, 47, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-line);
  }
  .preview__label { display: none; }
  .preview__frame { border-radius: 12px; }
  .preview__page { zoom: .7; max-height: 34vh; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
  .preview__note { margin-top: 8px; font-size: .75rem; line-height: 1.4; }
  .conf__form { gap: 26px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 3px var(--gutter) 6px;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
}

/* =====================================================================
   Motion. Hidden states exist only with JS on and motion allowed:
   without JS, or with reduced motion, every element is simply there.
   ===================================================================== */
.curtain { display: none; }

@media (prefers-reduced-motion: no-preference) {

  /* ----- S0 intro: the header logo itself plays the opening, centred, then flies home ----- */
  /* first visit ≈ 2.5 s (assembly, a pause on the finished logo, flight); later visits ≈ 1.5 s */
  html.intro { --t: 1.15; }
  html.intro-short { --t: .8; }
  html.intro body { overflow: hidden; }
  html.intro .curtain {
    display: block; position: fixed; inset: 0; z-index: 95;
    background: radial-gradient(70% 60% at 50% 45%, #0F3A50, var(--color-bg) 70%);
    transition: opacity calc(.7s * var(--t)) var(--ease);
  }
  html.intro .top { z-index: 100; background: none; border-color: transparent; }
  html.intro .top__nav, html.intro .top__side { opacity: 0; }
  html.intro .top__home .logo {
    transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1));
    transform-origin: 50% 50%;
  }
  html.intro .logo__letter,
  html.intro .logo__disc,
  html.intro .logo__sun,
  html.intro .logo__studio,
  html.intro .logo__wave { transform-box: fill-box; transform-origin: 50% 50%; }
  html.intro .logo__letter { animation: rise calc(.6s * var(--t)) var(--ease) calc((.12s + var(--i) * .075s) * var(--t)) both; }
  html.intro .logo__studio { animation: fade calc(.5s * var(--t)) ease calc(.5s * var(--t)) both; }
  html.intro .logo__disc { animation: pop calc(.7s * var(--t)) var(--ease) both; }
  html.intro .logo__sun { animation: sunrise calc(.8s * var(--t)) var(--ease) calc(.18s * var(--t)) both; }
  html.intro .logo__wave { stroke-dasharray: 1; animation: draw calc(.6s * var(--t)) var(--ease) calc(.3s * var(--t)) both; }
  html.intro .logo__wave--2 { animation-delay: calc(.42s * var(--t)); }

  html.intro-fly .curtain { opacity: 0; pointer-events: none; }
  html.intro-fly .top__home .logo { transform: none; transition: transform calc(.75s * var(--t)) var(--ease); }
  html.intro-fly .top__nav, html.intro-fly .top__side { opacity: 1; transition: opacity .6s ease calc(.35s * var(--t)); }

  @keyframes rise { from { transform: translateY(115%); } to { transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes sunrise { from { transform: translateY(18px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

  /* ----- S2 hero composes while the logo flies home ----- */
  html.intro .line__in { transform: translateY(105%); color: var(--color-muted); }
  html.intro .hero__label,
  html.intro .hero__text,
  html.intro .hero__actions,
  html.intro .hero__facts li { opacity: 0; transform: translateY(16px); }
  html.intro .hero__sea { opacity: 0; }
  html.intro .hero__sea .sea { transform: scale(.82) rotate(-6deg); }

  html.hero-in .line__in { transform: none; color: inherit; transition: transform .9s var(--ease), color 1s ease .25s; }
  html.hero-in .line:nth-child(2) .line__in { transition-delay: .08s, .33s; }
  html.hero-in .line:nth-child(3) .line__in { transition-delay: .16s, .41s; }
  html.hero-in .hero__label { opacity: 1; transform: none; transition: opacity .6s ease, transform .8s var(--ease); }
  html.hero-in .hero__text { opacity: 1; transform: none; transition: opacity .6s ease .2s, transform .8s var(--ease) .2s; }
  html.hero-in .hero__actions { opacity: 1; transform: none; transition: opacity .5s ease .3s, transform .7s var(--ease) .3s; }
  html.hero-in .hero__facts li { opacity: 1; transform: none; transition: opacity .6s ease calc(.45s + var(--i, 0) * .08s), transform .8s var(--ease) calc(.45s + var(--i, 0) * .08s); }
  html.hero-in .hero__sea { opacity: 1; transition: opacity 1s ease; }
  html.hero-in .hero__sea .sea { transform: none; transition: transform 1.4s var(--ease); }

  /* ----- section titles: words rise under a mask, grey to sand ----- */
  html.js [data-anim="words"]:not(.is-split) { opacity: 0; }
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .08em; margin: -.16em 0 -.08em; }
  .w__in { display: inline-block; }
  html.js [data-anim="words"] .w__in { transform: translateY(110%); color: var(--color-muted); }
  html.js [data-anim="words"].is-in .w__in {
    transform: none; color: inherit;
    transition: transform .9s var(--ease) calc(var(--i) * 60ms), color 1.1s ease calc(var(--i) * 60ms + 250ms);
  }

  /* ----- blocks: curtain wipe from the bottom, in cascade ----- */
  html.js [data-anim="cascade"] > * { clip-path: inset(100% 0 0 0); transform: translateY(28px); }
  html.js [data-anim="cascade"].is-in > * {
    clip-path: inset(0 0 0 0); transform: none;
    transition: clip-path 1.2s var(--ease) calc(var(--i, 0) * 130ms), transform 1.2s var(--ease) calc(var(--i, 0) * 130ms);
  }
  html.js .method__steps.is-in > * {
    transition: clip-path 1.6s var(--ease) calc(.15s + var(--i, 0) * 320ms), transform 1.6s var(--ease) calc(.15s + var(--i, 0) * 320ms);
  }
  html.js .method__steps > * .method__n { opacity: 0; transform: translateY(30%); }
  html.js .method__steps.is-in > * .method__n { opacity: 1; transform: none; transition: opacity 1s ease calc(.45s + var(--i, 0) * 320ms), transform 1.4s var(--ease) calc(.45s + var(--i, 0) * 320ms); }

  /* ----- masks on elements (as in the reference) ----- */

  /* "Esquissez votre site": a vertical line draws in the centre, then the form slides out to the left
     and the sketch to the right, each uncovered from the centre line */
  .conf__app { position: relative; }
  .conf__app::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; z-index: 2;
    background: linear-gradient(180deg, transparent, var(--color-highlight) 20%, var(--color-highlight) 80%, transparent);
    transform: scaleY(0); opacity: 0; pointer-events: none;
  }
  html.js .conf__app[data-anim="split"] > .conf__form { clip-path: inset(0 0 0 100%); transform: translateX(22%); }
  html.js .conf__app[data-anim="split"] > .preview { clip-path: inset(0 100% 0 0); transform: translateX(-22%); }
  html.js .conf__app.is-in::before { animation: split-line 1.5s var(--ease) both; }
  html.js .conf__app.is-in > .conf__form,
  html.js .conf__app.is-in > .preview {
    clip-path: inset(0 0 0 0); transform: none;
    transition: clip-path 1.3s var(--ease) .45s, transform 1.3s var(--ease) .45s;
  }
  @keyframes split-line {
    0% { transform: scaleY(0); opacity: 1; }
    35% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
  }
  @media (max-width: 960px) { /* stacked: both open from the centre */
    .conf__app::before { display: none; }
    /* only before the reveal: once .is-in, the open state above must win */
    html.js .conf__app[data-anim="split"]:not(.is-in) > .conf__form,
    html.js .conf__app[data-anim="split"]:not(.is-in) > .preview { clip-path: inset(0 50% 0 50%); transform: none; }
  }

  /* "Vous voyez votre site avant de payer": the card opens from its centre, then its browser rises */
  html.js .why__grid > .why__lead { clip-path: inset(0 50% 0 50% round 28px); transform: none; }
  html.js .why__grid.is-in > .why__lead { clip-path: inset(0 0 0 0 round 28px); transition: clip-path 1.3s var(--ease); }
  html.js .why__lead .mock { transform: translateY(40px) scale(.94); opacity: 0; }
  html.js .why__grid.is-in .why__lead .mock { transform: none; opacity: 1; transition: transform 1.2s var(--ease) .55s, opacity .8s ease .55s; }

  /* offer rows: the line is drawn first, then the row slides in from the left under a mask */
  html.js .offer__rows > .offer__row { clip-path: inset(0 100% 0 0); transform: translateX(-24px); }
  html.js .offer__rows.is-in > .offer__row {
    clip-path: inset(0 0 0 0); transform: none;
    transition: clip-path 1.1s var(--ease) calc(.2s + var(--i, 0) * 120ms), transform 1.1s var(--ease) calc(.2s + var(--i, 0) * 120ms);
  }
  html.js .offer__rows { border-top-color: transparent; position: relative; }
  html.js .offer__rows::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: var(--color-line); transform: scaleX(0); transform-origin: left;
  }
  html.js .offer__rows.is-in::before { transform: none; transition: transform 1.2s var(--ease); }

  /* method: the line that links the three steps draws from left to right */
  html.js .method__steps > .method__step { border-top-color: transparent; }
  html.js .method__step::before { transform: scaleX(0); transform-origin: left; }
  html.js .method__steps.is-in > .method__step::before { transform: none; transition: transform 1.4s var(--ease) calc(var(--i, 0) * 320ms); }

  /* weight comparison: the bars grow once in view, the photo bar takes its time */
  html.js [data-anim="weight"] .weight__bar i { transform: scaleX(0); }
  html.js [data-anim="weight"].is-in .weight__bar i { transform: none; transition: transform 1.6s var(--ease) .2s; }
  html.js [data-anim="weight"].is-in .weight__row--photo .weight__bar i { transition-duration: 2.6s; transition-delay: .5s; }
}

/* Web Studio runtime styles (appended to every site's css/site.css by the engine).
   Uses the site's tokens when they exist, with neutral fallbacks. */

/* demo banner: in the page flow (never covers the header or the booking buttons) */
.demo-banner {
  margin: 0;
  padding: 7px 16px;
  background: var(--color-surface, #1d1d1d);
  color: var(--color-ink, #f2f2f2);
  border-bottom: 1px solid var(--color-line, rgba(255, 255, 255, .15));
  font: 400 13px/1.4 var(--font-body, var(--font-mono, sans-serif));
  text-align: center;
}

/* scroll reveal: the class is only ever added by JS, and never with reduced motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* lazy map */
.lazy-map { position: relative; overflow: hidden; isolation: isolate; z-index: 0; } /* keeps Leaflet's layers under the sticky header */
.lazy-map__canvas { position: absolute; inset: 0; }
.lazy-map.is-loaded .lazy-map__placeholder { display: none; }
.lazy-map--dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.5); }
.lazy-map .leaflet-container { font: inherit; background: var(--color-surface, #ddd); }
.lazy-map__pin span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-dominant, #222);
  color: var(--color-bg, #fff);
  font: 600 13px/1 var(--font-body, var(--font-mono, sans-serif));
  box-shadow: 0 0 0 3px var(--color-bg, #fff), 0 2px 10px rgba(0, 0, 0, .35);
}
.lazy-map__area { fill: var(--color-dominant, #222); fill-opacity: .14; stroke: var(--color-dominant, #222); stroke-width: 1.5; }
.lazy-map__label.leaflet-tooltip {
  background: var(--color-bg, #fff);
  color: var(--color-dominant, #222);
  border: 1px solid var(--color-dominant, #222);
  font: 600 13px/1.2 var(--font-body, var(--font-mono, sans-serif));
  box-shadow: none;
}
