/* Maelo Barber, public site. Tokens of BRAND.md: off-black and off-white, no
   accent colour. Bodoni Moda for display (it echoes the MB monogram),
   Archivo for text, both self-hosted. One radius system: square media, pill
   buttons. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/Archivo.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/static/fonts/BodoniModa.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #0e0e0e;
  --bg-2: #151515;
  --line: #2a2a2a;
  --ink: #f1f1f1;
  --ink-2: #b4b4b4;   /* 9.6:1 on --bg */
  --ink-3: #8a8a8a;   /* 5.6:1 on --bg */
  --plate: #f1f1f1;
  --scrim: 14, 14, 14;

  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --text: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --track: 0.14em;

  --gutter: 16px;
  --header: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 10;
  --z-consent: 20;
  --z-skip: 30;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --header: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: var(--header); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* --- Type ------------------------------------------------------------------ */

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.125rem, 1.1rem + 4.6vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: var(--track);
  text-transform: uppercase;
  /* Tracking adds space after the last letter: give it back on the left so
     a centred title stays centred. */
  padding-left: var(--track);
}
.display--m { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); }
.kicker {
  margin: 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}
@media (min-width: 900px) { .kicker { font-size: 1.1875rem; } }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-2); }

/* --- Pill -------------------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 500 0.8125rem/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.pill--solid { background: var(--ink); color: var(--bg); }
.pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: var(--ink); color: var(--bg); }
  .pill--solid:hover { background: transparent; color: var(--ink); }
}

/* --- Header ------------------------------------------------------------------ */

.top {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: calc(var(--header) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent; isolation: isolate;
}
.top::before {
  content: ""; position: absolute; inset: 0 0 -70%; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(var(--scrim), 0.7), rgba(var(--scrim), 0.35) 45%, rgba(var(--scrim), 0));
  opacity: 0; transition: opacity 300ms ease;
}
.top[data-state="over"]::before { opacity: 1; }
.top[data-state="solid"] {
  background: rgba(var(--scrim), 0.94);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top[data-state="solid"] { background: rgba(var(--scrim), 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.top__menu, .top__action {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; min-width: 44px;
  padding: 0; border: 0; background: none; color: var(--ink);
  font: 500 0.75rem/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.top__menu { justify-self: start; }
.top__action { justify-self: end; }
.top__burger { position: relative; width: 22px; height: 9px; border-block: 1px solid currentColor; }
.top__burger--x { border: 0; }
.top__burger--x::before, .top__burger--x::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; border-top: 1px solid currentColor;
}
.top__burger--x::before { transform: rotate(45deg); }
.top__burger--x::after { transform: rotate(-45deg); }
.top__brand { display: grid; place-items: center; min-height: 44px; padding: 0 8px; }
.top__brand img { width: auto; height: 30px; }
@media (min-width: 900px) { .top__brand img { height: 38px; } }
@media (max-width: 380px) { .top__menu > span:last-child { display: none; } }
/* The hero already carries the monogram: the header shows its own only once
   the hero has scrolled away. */
.page-index .top[data-state="over"] .top__brand { opacity: 0; visibility: hidden; }
.top__brand { transition: opacity 400ms ease, visibility 0s linear 0s; }
.page-index .top[data-state="over"] .top__brand { transition: opacity 200ms ease, visibility 0s linear 200ms; }

/* --- Menu overlay -------------------------------------------------------------- */

.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0 max(var(--gutter), env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border: 0; background: var(--bg); color: var(--ink);
  display: none; flex-direction: column; overflow-y: auto;
}
.menu[open] { display: flex; }
.menu::backdrop { background: var(--bg); }
.menu__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: calc(var(--header) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); flex: none;
}
.menu__nav { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: auto 0; padding: 32px 0; }
.menu__nav a {
  display: inline-flex; align-items: center; min-height: max(56px, 1.35em); padding: 0 0 0 var(--track);
  font: 400 clamp(1.75rem, 1.2rem + 3vw, 3.25rem)/1.1 var(--display);
  letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); transition: color 200ms ease;
}
.menu__nav a[aria-current="page"], .menu__nav a:hover { color: var(--ink); }
.menu__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.menu__foot { display: grid; justify-items: center; gap: 16px; text-align: center; color: var(--ink-2); font-size: 0.9375rem; }
.menu__foot p { margin: 0; }
.menu__links { display: flex; gap: 24px; }
.menu__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.motion .menu[open] { animation: menu-in 260ms var(--ease-out); }
.motion .menu[open] .menu__nav a { animation: menu-link 420ms var(--ease-out) backwards; }
.motion .menu[open] .menu__nav a:nth-child(2) { animation-delay: 40ms; }
.motion .menu[open] .menu__nav a:nth-child(3) { animation-delay: 80ms; }
.motion .menu[open] .menu__nav a:nth-child(4) { animation-delay: 120ms; }
.motion .menu[open] .menu__nav a:nth-child(5) { animation-delay: 160ms; }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-link { from { opacity: 0; transform: translateY(10px); } }

/* --- Scenes: one full-bleed picture per screen -------------------------------- */

.scene {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: end; justify-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header) + 24px) var(--gutter) max(56px, calc(32px + env(safe-area-inset-bottom)));
  text-align: center;
}
.scene__media { position: absolute; inset: 0; z-index: -2; }
.scene__media img { width: 100%; height: 100%; object-fit: cover; }
/* Scrim: the text sits in the bottom third, where the overlay is at least
   78 % opaque, so off-white text keeps 7:1 even over the white walls of the
   salon. */
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(var(--scrim), 0.92) 0%, rgba(var(--scrim), 0.8) 30%,
    rgba(var(--scrim), 0.35) 56%, rgba(var(--scrim), 0) 76%);
}
.scene--bright::after {
  background: linear-gradient(to top,
    rgba(var(--scrim), 0.94) 0%, rgba(var(--scrim), 0.86) 36%,
    rgba(var(--scrim), 0.5) 62%, rgba(var(--scrim), 0.15) 100%);
}
.scene--veil::after { background: rgba(var(--scrim), 0.8); }
.scene__body { display: grid; justify-items: center; gap: 20px; width: 100%; max-width: 60rem; }
.scene__body .pill { margin-top: 8px; }
@media (min-width: 900px) {
  .scene--left { justify-items: start; text-align: left; }
  .scene--left .scene__body { justify-items: start; max-width: 40rem; }
  .scene--left .display { padding-left: 0; }
  .scene--left::after {
    background: linear-gradient(to right, rgba(var(--scrim), 0.9) 0%, rgba(var(--scrim), 0.7) 38%, rgba(var(--scrim), 0) 70%),
      linear-gradient(to top, rgba(var(--scrim), 0.6), rgba(var(--scrim), 0) 40%);
  }
}

/* Hero: the picture carries the wordmark, the overlay only a line and a CTA. */
.hero .scene__media img { object-position: 50% 42%; }
.hero::after {
  background: linear-gradient(to top, rgba(var(--scrim), 0.9) 0%, rgba(var(--scrim), 0.62) 18%, rgba(var(--scrim), 0) 34%);
}
.hero .scene__body { gap: 18px; }
.hero__line {
  margin: 0; font: 400 0.8125rem/1.7 var(--text); letter-spacing: 0.2em; text-transform: uppercase;
  padding-left: 0.2em;
}
.hero__line > span:not(.visually-hidden) { display: block; }
@media (min-width: 900px) { .hero__line > span:not(.visually-hidden) { display: inline; } .hero__second { margin-left: -0.28em; } .hero__second::before { content: ", "; } }

/* Page heroes of the inner pages: shorter, the content follows. */
.scene--page { min-height: 68vh; min-height: 68svh; }

/* --- Le geste: vertical clip -------------------------------------------------- */

.geste { position: relative; background: var(--bg); }
.geste__frame { position: relative; overflow: hidden; background: var(--bg-2); }
.geste__video { width: 100%; height: 100%; object-fit: cover; }
.geste__toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  min-height: 44px; padding: 0 18px; border: 1px solid rgba(241, 241, 241, 0.7); border-radius: 999px;
  background: rgba(var(--scrim), 0.72); color: var(--ink);
  font: 500 0.75rem/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 899px) {
  .geste { display: grid; min-height: 100vh; min-height: 100svh; }
  .geste__frame { position: absolute; inset: 0; }
  .geste__body {
    position: relative; align-self: end; display: grid; justify-items: center; gap: 20px; text-align: center;
    padding: 96px var(--gutter) max(56px, calc(32px + env(safe-area-inset-bottom)));
    background: linear-gradient(to top, rgba(var(--scrim), 0.92) 0%, rgba(var(--scrim), 0.8) 55%, rgba(var(--scrim), 0));
  }
  .geste__toggle { top: calc(var(--header) + 12px); bottom: auto; }
}
@media (min-width: 900px) {
  .geste {
    display: grid; grid-template-columns: auto minmax(0, 30rem); justify-content: center; align-items: center; gap: clamp(48px, 7vw, 128px);
    min-height: 100vh; min-height: 100svh;
    padding: calc(var(--header) + 32px) clamp(40px, 8vw, 160px) 48px;
  }
  .geste__body { display: grid; justify-items: start; gap: 22px; }
  .geste__body .display { padding-left: 0; }
  .geste__frame { height: min(84svh, 860px); aspect-ratio: 9 / 16; }
}

/* --- Services ---------------------------------------------------------------- */

.svc-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.svc {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 6px; align-items: baseline;
  padding: 18px 0;
}
.svc + .svc { border-top: 1px solid var(--line); }
.svc__name { font-weight: 500; font-size: 1.0625rem; }
.svc__meta { display: inline-flex; gap: 16px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.svc__price { color: var(--ink); min-width: 4.5em; text-align: right; }
.svc__desc, .svc__note { grid-column: 1 / -1; margin: 0; color: var(--ink-2); max-width: 60ch; }
.svc__note { color: var(--ink-3); font-size: 0.9375rem; }
.svc-list--teaser { max-width: 34rem; text-align: left; }
.svc-list--teaser .svc + .svc { border-top-color: rgba(241, 241, 241, 0.16); }
.svc-list--teaser .svc__meta { color: var(--ink); }

/* --- Inner page content -------------------------------------------------------- */

.section { padding: clamp(56px, 9vw, 120px) var(--gutter); }
.section__inner { max-width: 72rem; margin: 0 auto; }
.section__head { display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

.svc-group { display: grid; gap: 8px; padding: 32px 0; border-top: 1px solid var(--line); }
.svc-group:first-child { border-top: 0; padding-top: 0; }
.svc-group__title { margin: 0; font: 400 1.375rem/1.2 var(--display); letter-spacing: var(--track); text-transform: uppercase; }
.svc-group__intro { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .svc-group { grid-template-columns: 16rem 1fr; column-gap: 48px; align-items: start; }
  .svc-group__title { position: sticky; top: calc(var(--header) + 24px); padding-top: 18px; }
  .svc-group__intro { grid-column: 2; }
  .svc-group .svc-list { grid-column: 2; }
}

.book { display: grid; justify-items: center; gap: 18px; text-align: center; padding: clamp(64px, 10vw, 128px) var(--gutter); border-top: 1px solid var(--line); }
.book__note { margin: 0; color: var(--ink-3); font-size: 0.9375rem; }

.split { display: grid; gap: 40px; max-width: 72rem; margin: 0 auto; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.block h2 { margin: 0 0 16px; font: 400 1.375rem/1.2 var(--display); letter-spacing: var(--track); text-transform: uppercase; }
.block p { margin: 0 0 16px; color: var(--ink-2); max-width: 60ch; }
.block .block__after { margin-top: 16px; }
.section--follow { padding-top: 0; }
.block address { font-style: normal; font-size: 1.125rem; margin-bottom: 20px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }

.hours { margin: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.hours__row + .hours__row { border-top: 1px solid var(--line); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

/* --- Products ------------------------------------------------------------------ */

.prod { display: grid; gap: 4px; align-content: start; }
.prod__img { margin-bottom: 10px; background: var(--plate); aspect-ratio: 349 / 520; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod__name { font-weight: 500; }
.prod__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.prod__meta span:last-child { color: var(--ink); margin-left: auto; }

.prod-row { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.prod-row::-webkit-scrollbar { display: none; }
.prod-row__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 42vw, 220px); gap: 16px;
  list-style: none; margin: 0; padding: 0 var(--gutter); width: max-content;
}
.prod-row .prod { scroll-snap-align: center; text-align: left; }
.products { display: grid; justify-items: center; gap: 28px; align-content: center; padding-inline: 0; text-align: center; min-height: 100vh; min-height: 100svh; }
.products .section__head { margin-bottom: 8px; padding-inline: var(--gutter); }

.prod-group { padding: 32px 0; border-top: 1px solid var(--line); }
.prod-group:first-child { border-top: 0; padding-top: 0; }
.prod-group__title { margin: 0 0 24px; font: 400 1.375rem/1.2 var(--display); letter-spacing: var(--track); text-transform: uppercase; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 24px; } }

/* --- Portrait ------------------------------------------------------------------ */

.portrait { display: grid; gap: 32px; align-items: center; max-width: 72rem; margin: 0 auto; }
.portrait__img { width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait__body { display: grid; gap: 20px; justify-items: center; text-align: center; }
.portrait__body p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.portrait__body .kicker { color: var(--ink); }
@media (min-width: 900px) {
  .portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .portrait__body { justify-items: start; text-align: left; }
  .portrait__body .display { padding-left: 0; }
}
.home-portrait { padding-top: calc(var(--header) + 32px); }
@media (min-width: 900px) { .home-portrait { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; } }

/* --- Explore further ------------------------------------------------------------- */

.explore { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.explore__head { margin: 0 0 32px; padding: 0 var(--gutter); text-align: center; }
.explore__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72vw; gap: 16px;
  list-style: none; margin: 0; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.explore__list::-webkit-scrollbar { display: none; }
.explore__item { scroll-snap-align: center; }
@media (min-width: 900px) {
  .explore__list { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-columns: auto; gap: 24px; max-width: 80rem; margin: 0 auto; overflow: visible; }
}
.explore__card { display: grid; gap: 8px; text-decoration: none; }
.explore__img { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 12px; background: var(--bg-2); }
.explore__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-slow); }
.explore__title { font: 400 1.25rem/1.2 var(--display); letter-spacing: var(--track); text-transform: uppercase; }
.explore__line { color: var(--ink-2); font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .explore__card:hover .explore__img img { transform: scale(1.04); }
  .explore__card:hover .explore__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}

/* --- Footer ------------------------------------------------------------------------ */

.foot { border-top: 1px solid var(--line); padding: 56px var(--gutter) max(40px, env(safe-area-inset-bottom)); color: var(--ink-2); font-size: 0.9375rem; }
.foot__inner { max-width: 72rem; margin: 0 auto; display: grid; gap: 36px; }
.foot__brand { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.foot__brand img { height: 40px; width: auto; }
.foot__cols { display: grid; gap: 32px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot__cols > :last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot__cols > :last-child { grid-column: auto; } }
.foot__col { display: grid; align-content: start; justify-items: start; gap: 2px; }
.foot__col p { margin: 0 0 6px; }
.foot__col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.foot__col a:hover, .foot__legal a:hover, .foot__optout a[href]:hover { text-decoration: underline; }
.foot__label { margin: 0 0 8px; font: 500 0.75rem/1.4 var(--text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.foot__app { margin: 0; color: var(--ink); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot__legal a, .foot__optout a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot__legal a[aria-current], .foot__col a[aria-current] { color: var(--ink); text-decoration: underline; }
.foot__copy { margin: 0; color: var(--ink-3); font-size: 0.875rem; }
.foot__optout { margin: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }

/* --- Pixel banner: a plain fixed block, never a <dialog> (it would freeze the page) --- */

.consent { position: fixed; inset: auto 0 0; z-index: var(--z-consent); display: grid; gap: 12px; max-height: 70dvh; overflow-y: auto; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent__text { margin: 0; max-width: 70ch; font-size: 0.875rem; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.consent__actions .pill { flex: 1 1 8rem; }
.consent__actions .pill[hidden] { display: none; }
.consent__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
@media (min-width: 900px) { .consent__actions .pill { flex: 0 0 auto; } }

/* --- Legal pages: the sober reading layout of the first version ------------------- */

.prose { max-width: 70ch; margin: 0 auto; padding: calc(var(--header) + 40px) var(--gutter) 56px; }
.prose h1 { margin: 0 0 8px; font: 500 clamp(1.75rem, 7vw, 2.25rem)/1.15 var(--text); letter-spacing: -0.02em; }
.prose h2 { margin: 38px 0 10px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.prose h3 { margin: 22px 0 6px; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration-color: var(--ink-3); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose .meta { color: var(--ink-2); font-size: 0.875rem; }
.prose .lang { margin: 14px 0 0; color: var(--ink-3); font-size: 0.875rem; }
.prose .box { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.prose .box p:first-child { margin-top: 0; }
.prose .box p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink-2); font-weight: 600; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }

/* --- Motion: slow fades and a settling scale, only when the visitor accepts motion -- */

.ready [data-reveal] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1000ms var(--ease-slow), transform 1000ms var(--ease-slow);
}
.ready [data-reveal].is-in > * { opacity: 1; transform: none; }
.ready [data-reveal].is-in > :nth-child(2) { transition-delay: 90ms; }
.ready [data-reveal].is-in > :nth-child(3) { transition-delay: 180ms; }
.ready [data-reveal].is-in > :nth-child(4) { transition-delay: 270ms; }
.ready .scene .scene__media img { transform: scale(1.06); transition: transform 2600ms var(--ease-slow); }
.ready .scene.is-in .scene__media img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
