/* Vera · a Strayd landing for a psychotherapist.
   One black thread on light grey: a knot on the first screen, undone as the page is read, a calm open circle at the
   first call. Geist and Geist Mono, pill buttons, one dark block at the end for the contacts.
   Colors: change them in Edit Mode → Colors (or in site.config.js); every color below follows those five. */
:root {
  --bg: #e9e8e4;
  --ink: #121317;
  --mute: #5d5f66;
  --soft: #dcdbd5;
  --line: color-mix(in oklab, var(--ink) 15%, transparent);
  --dark-mute: color-mix(in oklab, var(--bg) 64%, var(--ink));
  --dark-line: color-mix(in oklab, var(--bg) 18%, transparent);
  --sans: 'Geist', 'Geist Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Geist Mono', 'Geist Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --pad: clamp(16px, 2.2vw, 32px);
  --head: 76px;
  --colw: min(46vw, 1100px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fast: 160ms ease-out;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-gutter: stable; background: var(--bg); }
html, body { overflow-x: clip; }
html.is-locked { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font-variant-numeric: lining-nums; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }
/* line breaks a typesetter would choose: balanced headings, no lone last words */
h1, h2, h3, summary, .row__t, .prow__t, .first__title, .doc__title { text-wrap: balance; }
p, li, dd, .row__d { text-wrap: pretty; }
/* a word longer than its line (a long name, a long Ukrainian word on a 320 px phone) breaks inside rather than leave the screen */
.sec__title, .first__title, .row__t, .prow__t, .trow__t, .place__t, .qa summary, .bform__title, .contacts__title { overflow-wrap: break-word; }
[data-num] { font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------- the thread
   The canvas covers the window and stays put; the thread is drawn inside whichever [data-stage] box is shown and on
   screen. Without WebGL the canvas steps aside and the stages show pictures of the knot and the circle. */
.thread { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
html.has-gl .thread { display: block; }
.stage { pointer-events: none; }
.stage--fixed { display: none; }
html:not(.has-gl) .hero__stage { background: url(../img/knot.webp) center / contain no-repeat; }
html:not(.has-gl) .first__stage { background: url(../img/enso.webp) center / contain no-repeat; }

/* ---------------------------------------------------------------- header */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); border-bottom: 1px solid transparent; transition: background-color 240ms ease-out, border-color 240ms ease-out; }
.nav.is-solid { background: var(--bg); border-bottom-color: var(--line); }
.nav__logo { display: flex; align-items: center; min-height: 44px; min-width: 0; font: 600 17px/1 var(--sans); letter-spacing: -.02em; }
.nav__logo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; background: linear-gradient(currentColor, currentColor) 0 calc(50% + 11px) / 0 1px no-repeat; transition: background-size 240ms var(--ease); }
@media (hover: hover) { .nav__links a:hover { background-size: 100% 1px; } }
.nav__end { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__mob { display: none; align-items: center; min-height: 44px; padding: 0 8px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 99px; background: var(--ink); color: var(--bg);
  font: 500 14px/1 var(--sans); white-space: nowrap; transition: opacity var(--fast); }
@media (hover: hover) { .btn-pill:hover { opacity: .86; } }
.lang { position: relative; }
.lang-btn { min-height: 44px; min-width: 44px; padding: 0 8px; font: 400 13px/1 var(--mono); letter-spacing: .04em; }
.lang-menu { position: fixed; z-index: 150; display: none; min-width: 190px; padding: 8px; border-radius: 16px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(0 0 0 / .08); }
.lang-menu.open { display: grid; }
.lang-menu a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; }
.lang-menu a span { width: 26px; font: 400 12px/1 var(--mono); color: var(--mute); }
.lang-menu a[aria-current] { background: var(--soft); }
@media (hover: hover) { .lang-menu a:hover { background: var(--soft); } }
@media (max-width: 900px) { .nav__links { display: none; } .nav__mob { display: inline-flex; } }
.nav.is-tight .nav__mob { display: none; }

/* ---------------------------------------------------------------- buttons and labels */
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 99px; font: 500 15px/1.2 var(--sans);
  padding-block: 10px; text-align: center; text-wrap: balance; transition: background-color var(--fast), color var(--fast), border-color var(--fast), opacity var(--fast); }
.btn--ink { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .btn--ink:hover { opacity: .86; } }
.btn--line { border: 1px solid color-mix(in oklab, var(--ink) 28%, transparent); }
@media (hover: hover) { .btn--line:hover { border-color: var(--ink); } }
.label { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }

/* ---------------------------------------------------------------- first screen */
main { position: relative; z-index: 1; }
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; flex-direction: column; padding: var(--head) var(--pad) 28px; }
.hero__stage { position: relative; flex: 1 1 auto; min-height: 180px; margin: 8px calc(-1 * var(--pad)) 0; }
.hero__meta { display: none; }
.hero__title { position: relative; flex: none; max-height: 38svh; margin-top: 12px; }
.hero__name { display: inline-block; width: min-content; font: 500 25vw/.8 var(--sans); letter-spacing: -.065em; margin-left: -.04em; }
.hw { display: inline-block; white-space: nowrap; }
.hero__bottom { display: grid; gap: 18px; margin-top: 22px; }
.hero__lead { font: 400 17px/1.4 var(--sans); max-width: 34ch; }

/* ---------------------------------------------------------------- the column of text */
.col { position: relative; }
.sec { position: relative; padding: clamp(88px, 12vh, 160px) var(--pad) 0; background: var(--bg); }
.sec__title { font: 500 clamp(44px, 11vw, 104px)/.92 var(--sans); letter-spacing: -.05em; margin-bottom: 28px; }
.sec__lead { max-width: 34ch; font-size: 18px; line-height: 1.45; margin-bottom: 36px; }
.sec__note { margin-top: 24px; max-width: 40ch; font-size: 15px; color: var(--mute); }

.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.row__t { font: 500 21px/1.2 var(--sans); letter-spacing: -.02em; }
.row__d { font-size: 16px; line-height: 1.5; color: var(--mute); max-width: 44ch; }
.row__m { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }

.places { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.place__photo { overflow: hidden; border-radius: 6px; background: var(--soft); margin-bottom: 16px; }
.place__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.place__t { font: 500 21px/1.2 var(--sans); letter-spacing: -.02em; margin-bottom: 6px; }
.place__d { font-size: 15px; color: var(--mute); }

.plist { border-bottom: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t p" "d b"; align-items: center; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.prow__t { grid-area: t; font: 500 21px/1.2 var(--sans); letter-spacing: -.02em; }
.prow__d { grid-area: d; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.prow__p { grid-area: p; justify-self: end; font: 500 21px/1.2 var(--sans); letter-spacing: -.02em; }
.prow__b { grid-area: b; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line);
  font: 500 14px/1 var(--sans); transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
@media (hover: hover) { .prow__b:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); } }

.about__photo { overflow: hidden; border-radius: 6px; background: var(--soft); max-width: 460px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.stat dt b { display: block; font: 500 clamp(40px, 11vw, 72px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: lining-nums; white-space: nowrap; }
.stat dd { margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--mute); }
.training { margin-top: 48px; }
.training__t { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: 12px; }
.trows { border-bottom: 1px solid var(--line); }
.trow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.trow__y { font: 400 13px/1.6 var(--mono); color: var(--mute); }

.qa { border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary { position: relative; display: block; padding: 20px 48px 20px 0; font: 500 19px/1.3 var(--sans); letter-spacing: -.015em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform 240ms var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa details p { padding: 0 48px 22px 0; max-width: 58ch; color: var(--mute); }

/* the first call: on a phone the circle shows above it, through a clear window in the page */
.first { background: transparent; padding-bottom: clamp(88px, 12vh, 160px); }
.first__stage { height: 54svh; min-height: 260px; margin: 0 calc(-1 * var(--pad)) 24px; }
.first .label { margin-bottom: 18px; }
.first__title { font: 500 clamp(48px, 13vw, 128px)/.92 var(--sans); letter-spacing: -.055em; }
.first__text { max-width: 36ch; margin: 24px 0 32px; font-size: 18px; line-height: 1.45; }
.first__hours { margin-top: 20px; font-size: 15px; color: var(--mute); }

/* ---------------------------------------------------------------- contacts: the one dark block */
.contacts { position: relative; z-index: 2; background: var(--ink); color: var(--bg); padding: clamp(72px, 10vw, 140px) var(--pad) 0; }
.contacts__title { font: 500 clamp(44px, 11vw, 104px)/.92 var(--sans); letter-spacing: -.05em; margin-bottom: clamp(36px, 5vw, 64px); }
/* minmax(0, 1fr): a column never grows to its longest unbreakable word, and a long email or address breaks instead */
.visit { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.info { display: grid; gap: 28px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.info__label { display: block; margin-bottom: 8px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dark-mute); }
.info p { font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.info p + p { margin-top: 2px; }
.info a { display: inline-flex; align-items: center; min-height: 32px; border-bottom: 1px solid transparent; transition: border-color var(--fast); }
@media (hover: hover) { .info a:hover { border-color: currentColor; } }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: clamp(72px, 9vw, 120px); padding: 22px 0 26px; border-top: 1px solid var(--dark-line);
  font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--dark-mute); }
.footer > span:first-child { margin-right: auto; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; transition: color var(--fast); }
@media (hover: hover) { .footer a:hover { color: var(--bg); } }
.footer a[aria-current] { color: var(--bg); }
/* a footer of its own (privacy, 404): the same dark band */
body > .footer { margin: 0; padding: 22px var(--pad) 26px; background: var(--ink); border-top: 0; }

/* the map: Google's own view, unaltered. Until a visitor asks, a quiet panel holds its place and nothing loads from Google */
.map { position: relative; min-height: 360px; border-radius: 20px; overflow: hidden; border: 1px solid var(--dark-line); background: color-mix(in oklab, var(--bg) 7%, var(--ink)); }
.visit:not(.has-map) .map { display: none; }
.map__ask { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(22px, 3vw, 44px); }
.map__ask[hidden], .map.is-map .map__ask { display: none; }
.map__pin { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.map__place { max-width: 14em; font: 500 clamp(26px, 2.6vw, 44px)/1.05 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.map__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; }
.map__btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 99px; background: var(--bg); color: var(--ink); border: 1px solid var(--bg);
  font: 500 15px/1 var(--sans); transition: background-color var(--fast), color var(--fast); }
@media (hover: hover) { .map__btn:hover { background: transparent; color: var(--bg); } }
.map__open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, var(--bg) 40%, transparent); }
.map__open svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }
@media (hover: hover) { .map__open:hover { text-decoration-color: currentColor; } }
.map__note { max-width: 34em; margin-top: 14px; font-size: 14px; color: var(--dark-mute); }
.map__frame { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease-out; }
.map.is-loaded .map__frame { opacity: 1; }
.map.is-map:focus-within { outline: 2px solid var(--bg); outline-offset: 3px; }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__hide { position: absolute; top: 12px; right: 12px; z-index: 2; min-height: 44px; padding: 0 18px; border-radius: 99px; font-size: 14px;
  background: color-mix(in oklab, var(--ink) 84%, transparent); color: var(--bg); }
@media (hover: hover) { .map__hide:hover { background: var(--bg); color: var(--ink); } }

/* "this website is also in your language": a quiet note, never a redirect (lang.js) */
.lang-hint { position: fixed; left: 12px; right: 12px; top: 76px; z-index: 95; display: flex; align-items: center; gap: 4px 16px; padding: 8px 8px 8px 18px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 15px/1.4 var(--sans); box-shadow: 0 12px 32px rgb(0 0 0 / .08); }
.lang-hint span { flex: 1; min-width: 0; }
.lang-hint a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.lang-hint button { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; }
html.lx-editing .lang-hint { display: none; }

/* ---------------------------------------------------------------- booking: a panel from the right */
.modal { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; transition: visibility 0s linear 400ms; }
.modal.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.modal__bg { position: absolute; inset: 0; background: color-mix(in oklab, var(--ink) 50%, transparent); opacity: 0; transition: opacity 240ms ease-out; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(620px, calc(100% - 24px)); background: var(--bg); color: var(--ink); border-radius: 24px;
  overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 3.4vw, 52px) clamp(22px, 3.4vw, 52px) 0; transform: translateX(calc(100% + 40px)); transition: transform 400ms var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: sticky; top: 0; float: right; z-index: 3; margin: -6px -6px 8px 16px; background: var(--bg); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color var(--fast), color var(--fast); }
@media (hover: hover) { .modal__close:hover { background: var(--ink); color: var(--bg); } }
.bform__title { font: 500 clamp(36px, 4vw, 60px)/.95 var(--sans); letter-spacing: -.045em; margin-bottom: 32px; padding-right: 56px; }
.bform__group { border: 0; margin-bottom: 24px; min-width: 0; }
.bform__group legend { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: 12px; }
.bk-pick, .bk-when { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 10px 16px; border-radius: 20px; border: 1px solid var(--line);
  font-size: 15px; text-align: left; transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.chip small { font-size: 12px; color: var(--mute); }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-checked="true"] small, .chip[aria-pressed="true"] small { color: inherit; opacity: .72; }
.chip-sm { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; }
.chip:disabled { opacity: .3; cursor: not-allowed; }
.bk-sub { font-size: 14px; color: var(--mute); }
.days { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: center; }
.days .page { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.days .page:disabled { opacity: .3; cursor: default; }
.days-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: grid; justify-items: center; gap: 3px; padding: 8px 0; min-height: 60px; border-radius: 14px; border: 1px solid var(--line); }
.day b { font: 500 20px/1 var(--sans); font-variant-numeric: lining-nums; }
.day small { font: 400 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
@media (hover: hover) { .day:hover { border-color: var(--ink); } }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-pressed="true"] small { color: inherit; opacity: .72; }
.day:disabled { opacity: .3; cursor: not-allowed; }
@media (min-width: 561px) { .days-row[data-week="0"] .day:nth-child(n+8), .days-row[data-week="1"] .day:nth-child(-n+7) { display: none; } }
@media (max-width: 560px) {
  .days { grid-template-columns: minmax(0, 1fr); }
  .days .page { display: none; }
  .days-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 58px; overflow-x: auto; scrollbar-width: none; }
}
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.time { min-height: 44px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .time:hover { border-color: var(--ink); } }
.time[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bk-msg { font-size: 15px; color: var(--mute); }
.bk-tz { font-size: 13px; }
.bk-skel { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-skel i { height: 60px; border-radius: 14px; background: color-mix(in oklab, var(--ink) 7%, transparent); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
.bform__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 24px; }
.field { position: relative; display: block; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 24px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
  font: 400 19px/1.35 var(--sans); font-variant-numeric: lining-nums; color: var(--ink); outline: none; transition: border-color var(--fast); resize: vertical; }
.field textarea { min-height: 64px; }
.field span { position: absolute; left: 0; top: 24px; font-size: 16px; color: var(--mute); pointer-events: none; transform-origin: 0 0; transition: transform var(--fast), font-size var(--fast); }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }   /* a 2 px line: the field with the cursor stands out */
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-24px); font-size: 12px; }
.field [aria-invalid="true"], .field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { border-color: #a3263a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bform__go { display: grid; gap: 12px; padding: 8px 0 clamp(24px, 3.4vw, 52px); }
.field__err:empty, .bk-err:empty { display: none; }
.field__err { display: block; margin-top: 8px; font-size: 13px; color: #8f1d30; }
.bk-err { margin-top: 10px; font-size: 14px; color: #8f1d30; }
.bk-legal { font-size: 13px; color: var(--mute); }
.bk-legal a { text-decoration: underline; text-underline-offset: 3px; }
.bk-sum { font: 500 19px/1.3 var(--sans); letter-spacing: -.01em; }
.bk-sum.is-empty { display: none; }
.bform__submit { width: 100%; min-height: 60px; padding: 0 32px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 500 16px/1 var(--sans); transition: opacity var(--fast); }
@media (hover: hover) { .bform__submit:hover { opacity: .86; } }
.bform__submit:disabled { opacity: .6; cursor: progress; }
.bk-status:not(:empty) { font-size: 15px; }
.bk-status.warn { color: #8f1d30; }
.bk-status .btn-line { margin-top: 12px; }
.btn-line, .btn-shade { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 99px; font: 500 15px/1 var(--sans);
  transition: background-color var(--fast), color var(--fast), opacity var(--fast); }
.btn-shade { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .btn-shade:hover { opacity: .86; } }
.btn-line { border: 1px solid var(--ink); }
@media (hover: hover) { .btn-line:hover { background: var(--ink); color: var(--bg); } }
.bform.is-link .bform__group, .bform.is-link .bform__fields, .bform.is-link .bform__go { display: none; }
.bk-linkbox { display: grid; gap: 18px; justify-items: start; margin-bottom: 8px; }
.bk-linkbox p { color: var(--mute); max-width: 30em; }
.bdone { display: grid; gap: 16px; justify-items: start; padding: 40px 0 clamp(24px, 3.4vw, 52px); }
.bdone[hidden] { display: none; }
.bdone h2 { font: 500 clamp(40px, 4.6vw, 72px)/.95 var(--sans); letter-spacing: -.045em; }
.bdone .what { font: 500 20px/1.3 var(--sans); letter-spacing: -.01em; }
.bdone p { color: var(--mute); max-width: 36ch; }
.bdone .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.bdone .req { white-space: pre-line; font-size: 14px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0 0; }

/* ---------------------------------------------------------------- privacy and page not found */
.page-doc .nav, .page-404 .nav { background: var(--bg); border-bottom-color: var(--line); }
.doc { position: relative; z-index: 1; padding: clamp(128px, 15vw, 208px) var(--pad) clamp(88px, 11vw, 150px); }
.doc__title { font: 500 clamp(48px, 8vw, 120px)/.92 var(--sans); letter-spacing: -.055em; max-width: 12ch; }
.doc__lede { margin-top: 24px; max-width: 38ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: var(--mute); }
.privacy { max-width: 66ch; margin-top: clamp(56px, 7vw, 104px); font-size: 17px; line-height: 1.65; }
.privacy h2 { font: 500 clamp(24px, 2.2vw, 32px)/1.15 var(--sans); letter-spacing: -.03em; margin: clamp(40px, 4vw, 60px) 0 14px; }
.privacy h2:first-child { margin-top: 0; }
.privacy p + p { margin-top: .85em; }
.privacy .privacy-who p + p { margin-top: .3em; }
.privacy a { border-bottom: 1px solid var(--line); }
.doc__back { margin-top: clamp(56px, 7vw, 104px); }
.doc__back a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 15px; border-bottom: 1px solid var(--line); transition: border-color var(--fast); }
@media (hover: hover) { .doc__back a:hover { border-color: var(--ink); } }
.doc__back svg { fill: none; stroke: currentColor; stroke-width: 1.3; }
.nf { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; padding: var(--head) var(--pad) 32px; }
.nf .hero__stage { flex: 1 1 auto; }
.nf__num { font: 500 clamp(120px, 30vw, 300px)/.8 var(--sans); letter-spacing: -.07em; margin-left: -.05em; }
.nf__text { margin: 20px 0 28px; font-size: 20px; line-height: 1.4; max-width: 30ch; }

/* ---------------------------------------------------------------- motion (main.js adds html.motion; without it nothing is hidden) */
.ch-mask, .w-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.ch-mask { padding: .16em 0 .12em; margin: -.16em 0 -.12em; }
.w-mask { padding: .12em 0 .14em; margin: -.12em 0 -.14em; }
/* a word wider than its line (a reader's own wide letter spacing, WCAG 1.4.12) breaks inside its mask instead of running
   off the page; at the page's own spacing every word fits and nothing breaks */
.w-mask, .w-in { max-width: 100%; overflow-wrap: anywhere; }
.ch, .w-in { display: inline-block; }
/* the name is never hidden from Google (it measures when it shows): its letters rise inside their masks */
html.motion .hero__name .ch { transform: translateY(112%); transition: transform 1.3s var(--ease); transition-delay: calc(.2s + var(--i, 0) * .045s); }
html.is-in .hero__name .ch { transform: none; }
html.motion [data-words] .w-in { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .05s); }
html.motion [data-words].is-in .w-in { transform: none; }
html.lx-editing .hero__name .ch, html.lx-editing [data-words] .w-in { transform: none !important; }
/* Edit Mode: the booking panel stands open at the end of the page, so its texts can be edited too */
html.lx-editing .modal { position: relative; visibility: visible; pointer-events: auto; z-index: 3; padding: 48px var(--pad) 0; background: var(--soft); }
html.lx-editing .modal__bg { display: none; }
html.lx-editing .modal__panel { position: relative; inset: auto; width: auto; max-width: 720px; margin: 0 auto; transform: none; overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- wide screens: the text on the left, the thread on the right */
@media (min-width: 760px) and (min-aspect-ratio: 21/20) {
  html.has-gl .stage--fixed { display: block; position: fixed; z-index: 0; top: var(--head); right: var(--pad); bottom: 3vh; width: calc(50vw - var(--pad)); }
  html.has-gl .hero__stage, html.has-gl .first__stage { display: none; }
  html:not(.has-gl) .hero__stage { position: absolute; top: var(--head); right: var(--pad); bottom: 3vh; width: calc(50vw - var(--pad)); margin: 0; }
  html:not(.has-gl) .first__stage { position: absolute; top: 0; bottom: 0; left: calc(50vw - var(--pad)); width: calc(50vw - var(--pad)); height: auto; margin: 0; }
  .hero { padding-bottom: 32px; }
  .hero__meta { display: grid; gap: 16px; margin-top: 7vh; width: var(--colw); font: 400 12px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
  .hero__meta b { display: block; color: var(--ink); font-weight: 400; }
  .hero__title { flex: 1 1 auto; max-height: none; width: var(--colw); display: flex; align-items: flex-end; margin-top: 24px; }
  .hero__name { font-size: clamp(96px, 12.5vw, 240px); }
  .hero__bottom { width: var(--colw); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-top: 28px; }
  .hero__lead { font-size: 18px; }
  .col { width: calc(var(--colw) + var(--pad)); }
  .sec { background: transparent; padding-right: 0; }
  .sec__title { font-size: clamp(56px, 6vw, 104px); }
  .row { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 6px 28px; padding: 22px 0; }
  .steps .row { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .steps .row__m { grid-column: 2; }
  .prow { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "t d p b"; gap: 16px 24px; padding: 20px 0; }
  .prow__d { justify-self: end; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat dt b { font-size: clamp(48px, 5vw, 80px); }
  .first { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .first__title { font-size: clamp(64px, 7.4vw, 136px); }
  .contacts { padding-left: var(--pad); padding-right: var(--pad); }
  .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; }
  .visit:not(.has-map) { grid-template-columns: 1fr; }
  .visit:not(.has-map) .info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map { min-height: 440px; height: 100%; }
  .lang-hint { left: auto; right: 24px; top: auto; bottom: 24px; max-width: 520px; }
  .nf { flex-direction: column; }
  .nf .hero__stage { display: none; }
  html:not(.has-gl) .nf .hero__stage { display: block; }
  .nf__body { width: var(--colw); margin-top: auto; }
}
@media (min-width: 760px) and (max-aspect-ratio: 21/20) {
  .hero__name { font-size: 22vw; }
  .places { gap: 32px 24px; }
}
@media (max-width: 759px), (max-aspect-ratio: 21/20) {
  :root { --head: 64px; }
  .nav { gap: 12px; }
  .btn-pill { padding: 0 18px; }
  .prow__b { min-height: 40px; }
}
@media (max-width: 600px) {
  .bform__fields { grid-template-columns: 1fr; }
  .map { min-height: 0; aspect-ratio: 1; border-radius: 16px; }
  .map__ask { padding: 20px; gap: 14px; }
  .map__place { font-size: 26px; }
  .map__btn { min-height: 48px; padding: 0 22px; }
  .places { grid-template-columns: 1fr; }
  .place__photo img { aspect-ratio: 4 / 3; }
  .stats { gap: 12px; }
  .footer > span:first-child { flex-basis: 100%; }
}
@media (max-height: 520px) and (min-aspect-ratio: 21/20) { .hero { min-height: 520px; } .hero__meta { display: none; } }
/* the privacy page's contact link: a 24 px touch target (WCAG 2.5.8) without moving its line */
.privacy-who a { padding-block: 3px; }
