/* PT Clinic — home
   One colour family (the ruby of the logo, from porcelain to wine), two typefaces, one recurring line. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ruby: #9a1920;
  --wine: #33090e;
  --porcelain: #fbf7f6;
  --blush: #f0ddd9;
  --rose: #d8a8a4;
  --ink: var(--wine);
  --ink-soft: #6b4448;
  --line: rgba(51, 9, 14, 0.17);
  --line-light: rgba(255, 255, 255, 0.28);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --t-l: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --t-xl: clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.2rem, 1.3rem + 3.9vw, 4.75rem);
  --t-hero: clamp(2.5rem, min(10.2vw, 17vh), 11.5rem);

  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --top: clamp(0.875rem, 1.6vw, 1.5rem);
  --logo: clamp(2.875rem, 3.6vw, 3.75rem);
  --indent: 0px;
  --block: clamp(5.5rem, 16vh, 11rem);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}
@media (min-width: 62em) {
  :root { --indent: calc(var(--logo) + clamp(1.5rem, 3vw, 3.5rem)); }
}
@media (max-width: 47.99em) {
  /* the longest headline line is about 7.1em wide at these sizes: size it to fit the column */
  :root { --t-hero: clamp(2.25rem, min(calc((100vw - 2.5rem) / 7.25), 11.5vh), 6rem); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 var(--t-m) / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
section[tabindex='-1']:focus { outline: none; }
::selection { background: var(--ruby); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--pad); top: -5rem; z-index: 100;
  background: var(--wine); color: #fff; padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* display type shares the softened Fraunces */
.hero__title, .filo__lead, .entry__word, .sense h3, .std__head h2, .std__sub, .step__num, .step h3,
.area__name, .cli__head h2, .clinic__city, .team__title, .founder__name, .crew__head h3,
.know__title, .know__col h3, .fin__body h2, .pt-word, .menu__list a, .foot__clinics a:first-child, .intro__sub {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' var(--soft, 100), 'WONK' 0;
  font-optical-sizing: auto;
}

/* ---------- buttons, links, placeholders ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 500 var(--t-s) / 1.1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.btn--primary { background: var(--ruby); color: #fff; }
.btn--primary:hover { background: var(--wine); }
.btn--light { background: #fff; color: var(--ruby); }
.btn--light:hover { background: var(--wine); color: #fff; }
.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em;
  transition: text-decoration-color 0.3s;
}
.link:hover { text-decoration-thickness: 2px; }
.tbd { border-bottom: 1px dashed currentColor; }

.ph {
  position: relative; display: flex; align-items: flex-end; padding: 0.875rem 1rem;
  color: var(--ink-soft); font-size: var(--t-xs); line-height: 1.3;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    var(--blush);
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--top) var(--pad);
  pointer-events: none;
  --hd: var(--wine);
}
.site-header[data-on='dark'] { --hd: #fff; }
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -1.5rem 0; z-index: -1; pointer-events: none;
  background-color: rgba(251, 247, 246, 0.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
  transition: background-color 0.35s;
}
.site-header[data-theme='blush']::before { background-color: rgba(240, 221, 217, 0.7); }
.site-header[data-theme='wine']::before { background-color: rgba(51, 9, 14, 0.6); }
.site-header[data-theme='ruby']::before { background-color: rgba(154, 25, 32, 0.6); }
.site-header[data-top]::before { opacity: 0; }
.site-header::before { transition: background-color 0.35s, opacity 0.35s; }
.site-header > * { pointer-events: auto; }
.brand { display: block; width: var(--logo); height: var(--logo); }
.brand__logo { width: 100%; height: 100%; }
.site-header__actions { display: flex; align-items: center; gap: clamp(0.5rem, 1.2vw, 1.25rem); height: var(--logo); color: var(--hd); transition: color 0.3s; }
.lang { font: 500 var(--t-s) var(--sans); text-decoration: none; padding: 0.5rem; }
.lang:hover { text-decoration: underline; text-underline-offset: 0.28em; }
.site-header[data-on='dark'] .site-header__cta { background: #fff; color: var(--ruby); }
.site-header[data-on='dark'] .site-header__cta:hover { background: var(--wine); color: #fff; }
.menu-toggle {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3rem; padding: 0.5rem 0 0.5rem 0.5rem;
  font: 500 var(--t-s) var(--sans);
}
.menu-toggle__icon { position: relative; width: 1.625rem; height: 0.5rem; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { bottom: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle__icon::before { transform: translateY(calc(0.25rem - 0.75px)) rotate(24deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__icon::after { transform: translateY(calc(-0.25rem + 0.75px)) rotate(-24deg); }
@media (max-width: 30em) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-header__cta { padding-inline: 1rem; }
}

/* ---------- menu ---------- */

.menu {
  position: fixed; inset: 0; z-index: 45; overflow: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--top) + var(--logo) + clamp(2rem, 7vh, 5rem)) var(--pad) 2rem calc(var(--pad) + var(--indent));
  background: var(--ruby); color: #fff;
}
.menu[hidden] { display: none; }
.menu__list a {
  display: inline-block; padding-bottom: 0.08em; text-decoration: none;
  font-weight: 300; font-size: clamp(2.4rem, min(11vw, 8.5vh), 5.25rem); line-height: 1.14; letter-spacing: -0.03em;
  transition: font-weight 0.4s var(--ease);
}
.menu__list a:hover { font-weight: 480; }
.menu__list li { overflow: hidden; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.menu__lang { text-underline-offset: 0.28em; }

/* ---------- the thread: a line that leaves the logo and follows the page ---------- */

.thread { display: none; }
@media (min-width: 62em) {
  .js .thread {
    display: block; position: fixed; z-index: 40; width: 1px;
    left: calc(var(--pad) + var(--logo) / 2);
    top: calc(var(--top) + var(--logo) + 0.75rem); bottom: 1.5rem;
    pointer-events: none;
  }
}
.thread__track, .thread__fill { position: absolute; inset: 0; background: var(--grad, var(--ruby)); }
.thread__track { opacity: 0.22; }
.thread__fill { clip-path: inset(0 0 calc(100% - var(--p, 0) * 100%) 0); }
.thread__nodes li { position: absolute; left: 0; top: calc(var(--at, 0) * 100%); color: var(--ruby); }
.thread__nodes li.is-dark { color: #fff; }
.thread__nodes a {
  position: absolute; left: -0.75rem; top: -0.75rem; width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center; pointer-events: auto; text-decoration: none; color: inherit;
}
.thread__nodes a::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  opacity: 0.4; transition: transform 0.4s var(--ease), opacity 0.4s;
}
.thread__nodes li.is-past a::before { opacity: 1; }
.thread__nodes a:hover::before { transform: scale(1.7); opacity: 1; }
.thread__nodes a span {
  position: absolute; left: 1.75rem; top: 50%; translate: -0.4rem -50%;
  font: 500 var(--t-xs) var(--sans); white-space: nowrap; opacity: 0;
  transition: opacity 0.3s, translate 0.4s var(--ease);
}
.thread__nodes a:hover span { opacity: 1; translate: 0 -50%; }

/* ---------- intro ---------- */

.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 90; color: #fff; }
.intro-on body { overflow: hidden; }
.intro__field { position: absolute; inset: 0; background: var(--ruby); }
.intro__logo { position: fixed; left: 0; top: 0; width: var(--logo); height: var(--logo); overflow: visible; }
.intro__pen { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__mono, .intro__word path { opacity: 0; }
.intro__stage {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: clamp(1.5rem, 5vh, 3rem);
  padding: calc(var(--top) + var(--logo) + 1.5rem) var(--pad) 4.5rem;
  text-align: center;
}
.intro__claim { font-size: clamp(4.25rem, min(22vw, 15vh), 9.5rem); }
.intro__sub { margin-top: 0.75rem; font-size: var(--t-xl); font-weight: 300; opacity: 0; }
.intro__map .map { height: min(44svh, 26rem); }
@media (min-aspect-ratio: 11/10) and (min-width: 48em) {
  .intro__stage {
    grid-template-columns: minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left;
    padding-left: calc(var(--pad) + var(--indent)); padding-right: clamp(var(--pad), 9vw, 11rem);
  }
  .intro__claim { font-size: clamp(5rem, min(13.6vw, 32vh), 17rem); }
  .intro__map .map { height: min(76svh, 48rem); }
  .intro .pin__label { font-size: 27px; }
}
.intro__skip {
  position: absolute; right: var(--pad); bottom: max(1rem, env(safe-area-inset-bottom));
  appearance: none; background: none; border: 0; cursor: pointer; padding: 0.75rem 0.25rem;
  font: 500 var(--t-s) var(--sans); text-decoration: underline; text-underline-offset: 0.28em;
}
.intro .pin__label { font-size: 36px; }
.intro .map__land, .intro .pin { opacity: 0; }
.intro .pin.is-on { opacity: 1; transition: opacity 0.45s; }
.intro .map__route { stroke-dashoffset: 1; }

/* ---------- "PT" that opens into "PER TE" ---------- */

.pt-word { font-weight: 300; line-height: 0.86; letter-spacing: -0.03em; white-space: nowrap; }
.pt-word > span { display: inline-flex; align-items: baseline; }
.pt-word__add { display: inline-block; overflow-x: clip; overflow-y: visible; }
.pt-word__gap { display: inline-block; width: 0.26em; }
.intro .pt-word__add { width: 0; opacity: 0; }
.intro .pt-word__gap { width: 0; }
.intro .pt-word__fix { display: inline-block; opacity: 0; }

/* ---------- map ---------- */

.map { width: auto; max-width: 100%; overflow: visible; color: rgba(255, 255, 255, 0.5); }
.map__ch { opacity: 0.55; }
.map__route { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; }
.pin__dot { fill: #fff; }
.pin__halo { fill: #fff; opacity: 0; transform: scale(0.3); transition: opacity 0.5s, transform 0.7s var(--ease); }
.pin__label { font: 500 27px var(--sans); fill: #fff; }
.pin.is-active .pin__halo { opacity: 0.28; transform: scale(1); }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--top) + var(--logo) + 2.5rem) var(--pad) 0 calc(var(--pad) + var(--indent));
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  background: linear-gradient(115deg, var(--porcelain) 35%, var(--blush));
}
.hero__title {
  color: var(--ruby);
  font-weight: 300; font-size: var(--t-hero); line-height: 0.95; letter-spacing: -0.038em;
}
.line { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line__in { display: block; }
.hero__foot { display: grid; gap: 1.5rem 3rem; margin-top: clamp(1.5rem, 4.5vh, 3.25rem); }
.hero__sub { font-size: var(--t-l); line-height: 1.42; max-width: 37ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (min-width: 48em) {
  .hero__foot { grid-template-columns: minmax(0, 36rem) auto; justify-content: space-between; align-items: end; }
}
.hero__cities {
  margin: clamp(1.75rem, 5.5vh, 3.75rem) calc(var(--pad) * -1) 0 calc((var(--pad) + var(--indent)) * -1);
  padding: 0 var(--pad) 0 calc(var(--pad) + var(--indent));
  border-top: 1px solid var(--line);
}
.hero__cities ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 1rem; padding-block: 0.5rem; }
.hero__cities a { display: block; padding-block: 0.4rem; font-size: var(--t-s); text-decoration: none; }
.hero__cities a:hover { text-decoration: underline; text-underline-offset: 0.28em; }
@media (min-width: 48em) {
  .hero__cities ul { grid-template-columns: repeat(6, auto); padding-block: 0.875rem; }
}
.js:not(.reduced) .hero__body, .js:not(.reduced) .hero__cities { visibility: hidden; }

/* ---------- filosofia ---------- */

.filo {
  background: var(--blush);
  padding: clamp(6rem, 19vh, 13rem) var(--pad) var(--block) calc(var(--pad) + var(--indent));
}
.filo__lead {
  color: var(--ruby); max-width: 16ch;
  font-weight: 300; font-size: var(--t-2xl); line-height: 1.06; letter-spacing: -0.028em;
}
.entry { display: grid; gap: 2.5rem; margin-top: clamp(5rem, 18vh, 12rem); }
.entry__word {
  color: var(--ruby);
  font-weight: 300; font-size: clamp(4.75rem, 14vw, 14.5rem); line-height: 0.86; letter-spacing: -0.05em;
  margin-left: -0.04em; padding-bottom: 0.14em;
}
.entry__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: clamp(1rem, 2.5vh, 1.75rem); color: var(--ink-soft); }
.sense {
  counter-increment: sense; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem;
  padding-block: clamp(1.75rem, 4.5vh, 3.25rem); border-top: 1px solid var(--line);
}
.entry__senses { counter-reset: sense; border-bottom: 1px solid var(--line); }
.sense::before { content: counter(sense) '.'; grid-row: span 2; font: 400 var(--t-l) / 1.45 var(--serif); color: var(--ruby); }
.sense h3 { font-weight: 400; font-size: var(--t-xl); line-height: 1.14; letter-spacing: -0.015em; }
.sense p { margin-top: 0.75rem; font-size: var(--t-l); line-height: 1.45; color: var(--ink-soft); max-width: 33ch; }
.filo__closing { margin-top: clamp(2.5rem, 7vh, 4.5rem); font-size: var(--t-l); line-height: 1.45; max-width: 31ch; }
@media (min-width: 62em) {
  .entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: start; }
  .entry__head { position: sticky; top: 26vh; }
  .filo__closing { margin-left: calc(50% + 2.5vw); }
}

/* ---------- lo standard pt ---------- */

.std { background: var(--wine); color: var(--porcelain); }
.std__pin {
  display: flex; flex-direction: column; justify-content: center; gap: clamp(2.5rem, 7vh, 5rem);
  padding-block: calc(var(--top) + var(--logo) + 3rem) clamp(3.5rem, 9vh, 6rem);
}
.std__head { display: grid; gap: 1.5rem 5vw; padding: 0 var(--pad) 0 calc(var(--pad) + var(--indent)); }
.std__head h2 { font-weight: 300; font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; }
.std__sub { font-weight: 400; font-size: var(--t-xl); line-height: 1.15; color: var(--rose); }
.std__lead { margin-top: 0.875rem; max-width: 47ch; color: rgba(251, 247, 246, 0.8); }
.std__viewport { position: relative; }
.std__track { position: relative; z-index: 1; display: grid; gap: 2.75rem; padding: 0 var(--pad) 0 calc(var(--pad) + var(--indent)); }
.step { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
.step__num { grid-column: 2; font-weight: 200; font-size: 4.25rem; line-height: 0.9; letter-spacing: -0.04em; color: var(--rose); }
.step__node {
  grid-column: 1; grid-row: 1; justify-self: center; margin-top: 1.6rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--wine); border: 1.5px solid var(--rose);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.step.is-on .step__node { background: #fff; border-color: #fff; transform: scale(1.25); }
.step h3 { grid-column: 2; margin-top: 0.75rem; font-weight: 400; font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.015em; }
.step p { grid-column: 2; margin-top: 0.625rem; max-width: 31ch; color: rgba(251, 247, 246, 0.8); }
.std__line { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.std__line path { fill: none; stroke-width: 1.5; }
.std__line-bg { stroke: rgba(216, 168, 164, 0.3); }
.std__line-fg { stroke: #fff; stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-js .std__line { display: none; }

@media (min-width: 62em) {
  .std__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  /* horizontal journey: only when the script can pin the section */
  .js:not(.reduced) .std__pin {
    min-height: 100vh; min-height: 100svh;
    /* the pinned panel must fit the viewport: its spacing and type follow the height */
    gap: clamp(1.25rem, 5vh, 5rem);
    padding-block: calc(var(--top) + var(--logo) + clamp(1rem, 4vh, 3rem)) clamp(1.5rem, 5vh, 6rem);
  }
  .js:not(.reduced) .std__head h2 { font-size: min(var(--t-2xl), 9.5vh); }
  .js:not(.reduced) .std__sub { font-size: min(var(--t-xl), 5.2vh); }
  .js:not(.reduced) .std__viewport { overflow: hidden; }
  .js:not(.reduced) .std__track { display: flex; gap: 0; width: max-content; padding-right: 22vw; will-change: transform; }
  .js:not(.reduced) .std__line { will-change: transform; }
  .js:not(.reduced) .step { display: block; width: clamp(19rem, 30vw, 27rem); padding-right: clamp(2rem, 4vw, 4.5rem); }
  .js:not(.reduced) .step__num { display: block; font-size: clamp(3.75rem, min(9vw, 14.5vh), 9.5rem); }
  .js:not(.reduced) .step__node { display: block; margin: clamp(1.25rem, 3.5vh, 2rem) 0; }
  .js:not(.reduced) .step h3 { margin-top: 0; }
}

/* ---------- trattamenti ---------- */

.aree { padding: var(--block) var(--pad) var(--block) calc(var(--pad) + var(--indent)); }
.aree__lead { font-size: var(--t-l); line-height: 1.42; max-width: 31ch; margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.aree__list { border-top: 1px solid var(--line); }
.area { border-bottom: 1px solid var(--line); }
.area__btn {
  appearance: none; background: none; border: 0; cursor: pointer; text-align: left;
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: clamp(0.5rem, 1.6vh, 1.25rem) 0; color: var(--ruby);
}
.area__name {
  font-weight: 300; font-size: clamp(3.5rem, 11.5vw, 11rem); line-height: 1.02; letter-spacing: -0.045em;
  margin-left: -0.04em; transition: font-weight 0.5s var(--ease);
}
.area__btn:hover .area__name, .area.is-open .area__name { font-weight: 480; }
.area__icon { position: relative; flex: none; width: clamp(1.5rem, 2.8vw, 2.75rem); aspect-ratio: 1; }
.area__icon::before, .area__icon::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 0.75px); height: 1.5px; background: currentColor;
  transition: transform 0.6s var(--ease);
}
.area__icon::after { transform: rotate(90deg); }
.area.is-open .area__icon::after { transform: rotate(0deg); }
.area__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.area.is-open .area__panel { grid-template-rows: 1fr; }
.area__inner { min-height: 0; overflow: hidden; display: grid; gap: 1.5rem 5vw; visibility: hidden; transition: visibility 0s 0.7s; }
.area.is-open .area__inner { visibility: visible; transition-delay: 0s; }
.area__inner > p { padding-top: 0.75rem; font-size: var(--t-l); line-height: 1.42; max-width: 31ch; }
.area__inner > ul { padding-bottom: clamp(2rem, 6vh, 3.75rem); }
.area__inner li { padding-block: 0.75rem; border-top: 1px solid var(--line); }
.area__inner li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 48em) {
  .area__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .area__inner > p { padding-bottom: clamp(2rem, 6vh, 3.75rem); }
  .area__inner > ul { padding-top: 0.75rem; }
}
.aree__note { margin-top: 2.25rem; font-size: var(--t-s); color: var(--ink-soft); max-width: 62ch; }
.no-js .area__panel { grid-template-rows: 1fr; }
.no-js .area__inner { visibility: visible; }
.no-js .area__icon { display: none; }

/* ---------- cliniche ---------- */

.cli { background: var(--ruby); color: #fff; }
.cli__pin {
  display: grid; gap: 2.5rem;
  padding: calc(var(--top) + var(--logo) + 2.5rem) var(--pad) clamp(3.5rem, 9vh, 6rem) calc(var(--pad) + var(--indent));
}
.cli__head h2 { font-weight: 300; font-size: clamp(2.1rem, min(1.2rem + 3vw, 7.2vh), 4rem); line-height: 1.03; letter-spacing: -0.03em; max-width: 13ch; }
.cli__head p { margin-top: 0.875rem; font-size: var(--t-l); line-height: 1.4; color: rgba(255, 255, 255, 0.88); }
.cli__list { margin-top: clamp(1.5rem, 4vh, 2.75rem); border-top: 1px solid var(--line-light); }
.clinic { border-bottom: 1px solid var(--line-light); }
.clinic__btn {
  appearance: none; background: none; border: 0; cursor: pointer; text-align: left;
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: clamp(0.45rem, 1.3vh, 0.75rem) 0;
}
.clinic__city {
  font-weight: 300; font-size: clamp(1.5rem, min(2.3vw, 4vh), 2.25rem); line-height: 1.15; letter-spacing: -0.02em;
  transition: opacity 0.4s, font-weight 0.4s var(--ease);
}
.clinic__region { font-size: var(--t-s); color: rgba(255, 255, 255, 0.82); }
.js .clinic:not(.is-active) .clinic__city { opacity: 0.55; }
.js .clinic__btn:hover .clinic__city { opacity: 1; }
.clinic.is-active .clinic__city { font-weight: 480; }
.clinic__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.clinic.is-active .clinic__panel, .no-js .clinic__panel { grid-template-rows: 1fr; }
.clinic__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 0.6s; }
.clinic.is-active .clinic__inner, .no-js .clinic__inner { visibility: visible; transition-delay: 0s; }
.clinic__inner address { font-size: var(--t-l); line-height: 1.35; }
.clinic__ds { margin-top: 0.125rem; font-size: var(--t-s); color: rgba(255, 255, 255, 0.85); }
.clinic__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0.875rem 0 1.25rem; }
.cli__map { display: flex; justify-content: center; }
.cli__map .map { width: 100%; max-width: 30rem; height: auto; }
.cli__map .pin { cursor: pointer; }
.cli__map .pin__label { font-size: 34px; opacity: 0.9; }
@media (min-width: 62em) {
  .cli__pin { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4vw; align-items: center; min-height: 100vh; min-height: 100svh; padding-bottom: clamp(1.5rem, 4vh, 6rem); }
  .cli__map .map { width: auto; max-width: 100%; height: min(76svh, 47rem); }
  .cli__map .pin__label { font-size: 27px; }
}
/* short laptop screens: the pinned clinics panel gets a compact header so the open clinic always fits */
@media (min-width: 62em) and (max-height: 56em) {
  .cli__pin { padding-block: calc(var(--top) + var(--logo) + 1rem) 1.5rem; }
  .cli__head h2 { max-width: none; font-size: clamp(1.6rem, 5.4vh, 3rem); }
  .cli__head p { display: none; }
  .cli__list { margin-top: clamp(0.75rem, 2.5vh, 1.5rem); }
  .clinic__actions { padding: 0.625rem 0 0.875rem; }
  .clinic__actions .btn { min-height: 2.5rem; }
}

/* ---------- équipe ---------- */

.team { padding: var(--block) var(--pad) var(--block) calc(var(--pad) + var(--indent)); }
.team__title, .know__title {
  color: var(--ruby); max-width: 13ch;
  font-weight: 300; font-size: var(--t-2xl); line-height: 1.03; letter-spacing: -0.03em;
}
.founder { display: grid; gap: 2rem 5vw; margin-top: clamp(2.5rem, 8vh, 5.5rem); }
.founder__name { font-weight: 300; font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; }
.founder__role { margin-top: 0.625rem; color: var(--ink-soft); }
.founder__bio { margin-top: 1.5rem; font-size: var(--t-l); line-height: 1.45; max-width: 37ch; }
.founder__cv { margin-top: 2rem; border-top: 1px solid var(--line); font-size: var(--t-s); }
.founder__cv li { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48em) {
  .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
}
.crew { display: grid; gap: 2rem 5vw; margin-top: clamp(4rem, 13vh, 8.5rem); }
.crew__head h3 { font-weight: 400; font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.015em; }
.crew__head p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 33ch; }
.crew__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.member__name { margin-top: 0.75rem; font-weight: 500; }
.member__role { font-size: var(--t-s); color: var(--ink-soft); }
@media (min-width: 48em) { .crew__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 62em) { .crew { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); } }

/* ---------- sapere ---------- */

.know { background: var(--blush); padding: var(--block) var(--pad) var(--block) calc(var(--pad) + var(--indent)); }
.know__grid { display: grid; gap: 3rem 4vw; margin-top: clamp(2.5rem, 8vh, 5.5rem); }
.know__col { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.know__col h3 { font-weight: 400; font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 1.25rem; }
.know__col--academy p { max-width: 34ch; }
.know__col--academy p + p { margin-top: 1.25rem; }
.know__list li { padding-block: 0.75rem; border-top: 1px solid var(--line); }
.know__list cite { display: block; font-style: normal; font-weight: 500; text-wrap: balance; }
.know__list span { font-size: var(--t-s); color: var(--ink-soft); }
@media (min-width: 56em) { .know__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr); } }

/* ---------- finale ---------- */

.fin {
  background: var(--ruby); color: #fff; overflow: hidden;
  padding: clamp(5rem, 15vh, 10rem) var(--pad) clamp(4.5rem, 12vh, 8rem) calc(var(--pad) + var(--indent));
}
.fin__word { font-size: clamp(5rem, 22.5vw, 26rem); margin-left: -0.045em; }
.fin__body { display: grid; gap: 1.25rem; justify-items: start; max-width: 41rem; margin-top: clamp(2.5rem, 8vh, 5rem); }
.fin__body h2 { font-weight: 300; font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -0.03em; }
.fin__body p { font-size: var(--t-l); line-height: 1.42; max-width: 36ch; }

/* ---------- footer ---------- */

.foot {
  background: var(--wine); color: rgba(251, 247, 246, 0.82); font-size: var(--t-s);
  padding: clamp(3rem, 9vh, 5.5rem) var(--pad) 2rem calc(var(--pad) + var(--indent));
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 0.28em; }
.foot__top { display: grid; gap: 2.5rem 5vw; }
.foot__logo { width: 4.5rem; height: 4.5rem; }
.foot__clinics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.5rem; }
.foot__clinics li { display: grid; gap: 0.125rem; justify-items: start; }
.foot__clinics a:first-child { color: #fff; font-size: var(--t-l); font-weight: 400; }
.foot__legal { display: grid; gap: 1rem 5vw; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.foot__legal p { max-width: 64ch; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 2.5rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; }
@media (min-width: 48em) {
  .foot__top { grid-template-columns: auto minmax(0, 1fr); }
  .foot__clinics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 75em) {
  .foot__clinics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .foot__legal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
