/* Generated by tools/fonts.py - self-hosted, latin + cyrillic subsets only. */
@font-face{font-family:'Bona Nova';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/bona-nova-400-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Bona Nova';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/bona-nova-400-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Bona Nova';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/bona-nova-400-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Bona Nova';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/bona-nova-400-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Ysabeau Office';font-style:italic;font-weight:300 700;font-display:swap;src:url(/assets/fonts/ysabeau-office-300-700-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Ysabeau Office';font-style:italic;font-weight:300 700;font-display:swap;src:url(/assets/fonts/ysabeau-office-300-700-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Ysabeau Office';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/ysabeau-office-300-700-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Ysabeau Office';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/ysabeau-office-300-700-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* gestaltsvitlana.com — mobile first.
   Palette from her photographs: magnolia white and blush, her navy blazer,
   and the yellow of the BikeMi bike for the one call to action on navy.
   Motif: the magnolia (src/assets/magnolia.svg) - logo, blooming story
   markers, language indicator, favicon.
   Type: Bona Nova (display, Latin + Cyrillic) and Ysabeau Office (text). */

:root {
  --paper: #FBF7F5;
  --blush: #F4E5E3;
  --ink: #17203A;
  --ink-hover: #26335A;
  --ink-2: #4A5169;
  --line: #E7D7D5;
  --yellow: #F2B535;
  --yellow-hover: #F6C660;
  --night: #17203A;
  --night-ink: #F6EDEB;
  --night-ink-2: #BAC0D2;
  --night-line: rgba(246, 237, 235, 0.18);

  --f-display: "Bona Nova", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-text: "Ysabeau Office", "Gill Sans", "Gill Sans MT", "Segoe UI", system-ui, sans-serif;

  --t-label: 0.8125rem;
  --t-small: 0.9375rem;
  --t-body: 1.125rem;
  --t-lede: clamp(1.1875rem, 1.06rem + 0.5vw, 1.4375rem);
  --t-h3: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
  --t-h2: clamp(2.125rem, 1.45rem + 2.9vw, 3.875rem);
  --t-h1: clamp(2.75rem, 1.5rem + 5.4vw, 6.5rem);
  --t-quote: clamp(2rem, 1.25rem + 3.4vw, 4.5rem);

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --section: clamp(88px, 12vw, 176px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* A damped spring (about 15% overshoot, settles in 1s) for the petals. */
  --spring: linear(0, 0.042, 0.148, 0.293, 0.455, 0.616, 0.763, 0.89, 0.99, 1.064, 1.113, 1.139, 1.148, 1.142, 1.127, 1.105, 1.081, 1.058, 1.036, 1.017, 1.002, 0.991, 0.984, 0.979, 0.978, 0.979, 0.981, 0.984, 0.988, 0.991, 0.995, 0.997, 1, 1.001, 1.002, 1.003, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

@media (min-width: 960px) {
  body { font-size: 1.1875rem; }
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Gradient definitions for the magnolia mark, shared by every instance. */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.mark { display: block; overflow: visible; }
.mark .petal {
  transform-box: view-box;
  transform-origin: 12px 21px;
  transition: transform 1s var(--spring);
}

@media (prefers-reduced-motion: reduce) {
  .mark .petal { transition: none; }
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--f-text);
  font-size: var(--t-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.h2 {
  margin-top: 0.35em;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h2 em { font-style: italic; }
.rw { display: inline-block; }

.lede {
  max-width: 31em;
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.55;
}

.section { padding-block: var(--section); }
.section-head { max-width: 52rem; }
.section-head__intro {
  max-width: 32em;
  margin: 1.1em 0 0;
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}

.prose p { max-width: 31em; }

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-bg-hover: var(--ink-hover);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  min-height: 52px;
  padding: 0.8em 1.35em 0.8em 1.6em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: scale(0.97); }
.btn .icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.5s var(--ease);
}
.btn:hover .icon { transform: translateX(4px); }

.btn--small {
  min-height: 44px;
  padding: 0.5em 1em 0.5em 1.25em;
  font-size: var(--t-small);
}
.btn--light {
  --btn-bg: var(--yellow);
  --btn-bg-hover: var(--yellow-hover);
  --btn-fg: var(--ink);
}
.btn--float {
  box-shadow: 0 16px 36px -14px rgba(23, 32, 58, 0.6), 0 2px 6px rgba(23, 32, 58, 0.16);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.link-arrow:hover span { text-decoration-thickness: 2px; }
.link-arrow .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.5s var(--ease);
}
.link-arrow:hover .icon { transform: translateY(3px); }
.notfound .link-arrow:hover .icon { transform: translateX(3px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(251, 247, 245, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.1875rem;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__mark {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  margin-block: -0.25em;
}
/* The magnolia opens a little when the logo is hovered. */
.wordmark:hover .petal--l { transform: rotate(-8deg); }
.wordmark:hover .petal--r { transform: rotate(8deg); }

.site-nav { display: none; }

.site-header__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  align-items: center;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lang a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); }
.lang a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: url(/assets/img/magnolia.svg) center / contain no-repeat;
}

.site-header__book { display: none; }

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .wordmark { font-size: 1.375rem; }
  .site-nav {
    display: flex;
    gap: clamp(20px, 2.4vw, 36px);
    margin-left: auto;
    margin-right: clamp(4px, 1.6vw, 24px);
  }
  .site-nav a {
    padding-block: 10px;
    color: var(--ink-2);
    font-size: var(--t-small);
    font-weight: 500;
    text-decoration: none;
  }
  .site-nav a:hover { color: var(--ink); }
  .site-header__book { display: inline-flex; margin-left: 8px; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(28px, 6vw, 88px); }

.hero__grid {
  display: grid;
  gap: 22px;
}

.hero__title {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--b { margin-top: 0.08em; }
.hero__line--b em { font-style: italic; }
.hero__line--a .w { display: inline-block; }

.hero__aside {
  display: grid;
  gap: 28px;
  margin-top: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}

.hero__figure {
  margin-top: clamp(44px, 7vw, 96px);
  overflow: hidden;
  background: var(--blush);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
}

@media (min-width: 700px) {
  .hero__figure img { aspect-ratio: 16 / 9; object-position: 54% 44%; }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 28px;
  }
  .hero__eyebrow { grid-column: 1 / -1; }
  .hero__title { grid-column: 1 / span 11; }
  .hero__aside { grid-column: 7 / span 6; margin-top: 14px; }
}

@media (min-width: 1200px) {
  .hero__figure img { aspect-ratio: 21 / 9; max-height: 82vh; }
}

/* ---------- Photos ---------- */

.photo {
  position: relative;
  overflow: hidden;
  background: var(--blush);
}
.photo__inner { height: 100%; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Story: three beginnings ---------- */

.thread {
  --rail-x: 7px;
  --rail-pad: 40px;
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
}
.thread__rail {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: var(--rail-x);
  width: 1px;
  background: var(--line);
}
.thread__progress {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 50% 0;
}

.beginnings {
  display: grid;
  gap: clamp(72px, 10vw, 144px);
  margin: 0;
  padding: 0 0 0 var(--rail-pad);
  list-style: none;
}

.beginning {
  position: relative;
  display: grid;
  gap: 32px;
}

/* Each beginning is a magnolia on the thread: a closed bud that blooms
   (main.js adds .is-open) when the thread reaches it. */
.beginning__mark {
  position: absolute;
  top: -8px;
  left: calc(var(--rail-x) - var(--rail-pad) - 15px);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
}
.beginning__mark .mark { width: 26px; height: 26px; }
.beginning__mark:not(.is-open) .petal--l { transform: rotate(22deg) scale(0.9); }
.beginning__mark:not(.is-open) .petal--r { transform: rotate(-22deg) scale(0.9); }
.beginning__mark:not(.is-open) .petal--c { transform: scale(0.88); }

.beginning__ordinal {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.beginning__place {
  margin: 0.12em 0 0.45em;
  font-family: var(--f-display);
  font-size: var(--t-h3);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.beginning__text p:not(.beginning__ordinal) { max-width: 30em; }

.beginning__figure img { aspect-ratio: 2 / 3; }

@media (min-width: 960px) {
  .thread { --rail-pad: 76px; }
  .beginning__mark {
    top: -12px;
    left: calc(var(--rail-x) - var(--rail-pad) - 19px);
    width: 38px;
    height: 38px;
  }
  .beginning__mark .mark { width: 34px; height: 34px; }
  .beginning {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .beginning__text { grid-column: 1 / span 6; }
  .beginning--2 .beginning__figure { grid-column: 8 / span 5; margin-top: -24px; }
  .beginning--3 .beginning__figure { grid-column: 8 / span 4; margin-top: 72px; }
}

.story__bridge {
  max-width: 46rem;
  margin-top: clamp(80px, 11vw, 152px);
}
.story__bridge p {
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}
.story__bridge .story__bridge-em {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-style: italic;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (min-width: 960px) {
  .story__bridge { margin-left: 76px; }
}

/* Credentials: a quiet colophon after the story. */
.credentials {
  display: grid;
  gap: 22px;
  margin-top: clamp(80px, 10vw, 136px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.cred-list { margin: 0; }
.cred-row {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-small);
  line-height: 1.5;
}
.cred-row:first-child { padding-top: 0; }
.cred-row dt { color: var(--ink); font-weight: 600; }
.cred-row dd { margin: 0; color: var(--ink-2); }

@media (min-width: 640px) {
  .cred-row { grid-template-columns: 12rem minmax(0, 1fr); column-gap: 24px; }
}
@media (min-width: 960px) {
  .credentials { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .credentials__title { grid-column: 1 / span 3; }
  .cred-list { grid-column: 5 / span 8; }
}

/* ---------- Approach ---------- */

.approach__grid {
  display: grid;
  gap: 40px;
}

.callout {
  max-width: 34rem;
  margin: 2.2em 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--ink);
}
.callout .callout__term {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.callout .callout__text {
  max-width: none;
  margin: 0.55em 0 0;
  font-family: var(--f-display);
  font-size: clamp(1.3125rem, 1.12rem + 0.75vw, 1.6875rem);
  font-style: italic;
  line-height: 1.32;
}

.approach__figure img { aspect-ratio: 2 / 3; }

@media (min-width: 960px) {
  .approach__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 56px;
  }
  .approach__head { grid-column: 1 / span 8; }
  .approach__body { grid-column: 1 / span 6; }
  .approach__figure {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    grid-column: 8 / span 5;
    grid-row: 2;
    align-self: start;
  }
}

.quote-band {
  padding-block: clamp(80px, 11vw, 160px);
  background: var(--blush);
}
.pullquote {
  max-width: 17em;
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--t-quote);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.pullquote em { font-style: italic; }

/* ---------- Themes ---------- */

.themes__groups {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 7vw, 88px);
}
.theme-group__title {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-style: italic;
  line-height: 1.1;
}
.theme-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.theme-list li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

@media (min-width: 800px) {
  .themes__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 44px);
  }
}

.themes__close {
  max-width: 42rem;
  margin-top: clamp(64px, 9vw, 120px);
}
.themes__close p {
  color: var(--ink-2);
  font-size: var(--t-lede);
  line-height: 1.5;
}
.themes__close .themes__close-em {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-style: italic;
  line-height: 1.1;
}

/* ---------- Invitation (navy) ---------- */

.invite {
  background: var(--night);
  color: var(--night-ink);
}
.invite :focus-visible { outline-color: var(--yellow); }
.invite .eyebrow { color: var(--night-ink-2); }
.invite .h2 { color: var(--night-ink); }

.invite__grid {
  display: grid;
  gap: 48px;
}
.invite__text .section-head { margin-bottom: 1.6em; }
.invite .invite__p {
  max-width: 31em;
  color: var(--night-ink-2);
}
.invite__step {
  max-width: 34rem;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--night-line);
}
.invite__step p { color: var(--night-ink-2); }
.invite__step .invite__step-title {
  margin-bottom: 0.35em;
  color: var(--night-ink);
  font-family: var(--f-display);
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.12;
}
.invite__step .btn { margin-top: 0.6em; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  margin: 44px 0 0;
}
.facts dt {
  color: var(--night-ink-2);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.facts dd { margin: 4px 0 0; color: var(--night-ink); }

.invite__notes {
  max-width: 36rem;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  color: var(--night-ink-2);
  font-size: var(--t-small);
  line-height: 1.5;
}
.invite__notes p { margin: 0 0 0.4em; }

.invite__figure { background: #222C48; }
.invite__figure img {
  aspect-ratio: 3 / 2;
  object-position: 56% 45%;
}

@media (min-width: 960px) {
  .invite__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .invite__text { grid-column: 1 / span 7; grid-row: 1; }
  .invite__figure { grid-column: 9 / span 4; grid-row: 1; margin-top: 10px; }
  .invite__figure img { aspect-ratio: 4 / 5; }
}

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

.site-footer {
  padding-block: 44px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-small);
}
.site-footer__grid {
  display: grid;
  gap: 18px;
}
.site-footer__id p { margin: 0; }
.site-footer .wordmark--footer {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__legal { margin: 0; }

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: end;
  }
  .site-footer__nav { justify-content: center; }
  .site-footer__legal { text-align: right; }
}
/* Room for the floating booking button, on the pages that have one. */
@media (max-width: 959px) {
  .site-footer:has(~ .book-bar) { padding-bottom: 128px; }
}

/* ---------- Floating booking button (phones) ---------- */

.book-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 0 16px max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.book-bar .btn { pointer-events: auto; }

@media (min-width: 960px) {
  .book-bar { display: none !important; }
}

/* ---------- Language hint ---------- */

/* Phones: at the bottom, clear of the headline. Wider screens: top right. */
.lang-hint {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--night-ink);
  font-size: var(--t-small);
  line-height: 1.4;
  box-shadow: 0 18px 40px -18px rgba(23, 32, 58, 0.6);
}
.lang-hint p { flex: 1; margin: 0; }
.lang-hint a { color: var(--yellow); font-weight: 600; }
.lang-hint :focus-visible { outline-color: var(--yellow); }
.lang-hint__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.lang-hint__close:hover { background: rgba(246, 237, 235, 0.1); }

@media (min-width: 700px) {
  .lang-hint {
    top: calc(var(--header-h) + 10px);
    right: var(--gutter);
    bottom: auto;
    left: auto;
    max-width: 420px;
  }
}

/* ---------- Privacy page ---------- */

.legal { padding-block: clamp(48px, 8vw, 112px) var(--section); }
.legal__wrap { max-width: calc(44rem + 2 * var(--gutter)); }
.legal h1 {
  margin: 0.3em 0 0.5em;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.legal .lede { margin-bottom: 2.4em; }
.legal__section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal__section h2 {
  margin: 0 0 0.6em;
  font-family: var(--f-display);
  font-size: clamp(1.4375rem, 1.25rem + 0.7vw, 1.75rem);
  line-height: 1.15;
}
.legal__section p { max-width: 36em; }
.legal__updated {
  margin-top: 48px;
  color: var(--ink-2);
  font-size: var(--t-small);
}

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(72px, 12vw, 160px); }
.notfound__grid {
  display: grid;
  gap: 56px;
}
.notfound h1,
.notfound h2 {
  margin-bottom: 0.4em;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1.05;
}
.notfound .lede { margin-bottom: 1em; }

@media (min-width: 800px) {
  .notfound__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Motion: the hero plays in CSS at first paint ----------
   Line one rises word by word; the italic line starts upright and leans
   into italic (the "turn"); the photograph opens and settles. Everything
   below the fold is animated by main.js with Motion (motion.dev). */

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow { animation: rise-in 0.9s var(--ease) both; }
  .hero__line--a .w { animation: word-in 1.1s var(--ease) both; }
  .hero__line--a .w:nth-child(2) { animation-delay: 0.08s; }
  .hero__line--a .w:nth-child(3) { animation-delay: 0.16s; }
  .hero__line--a .w:nth-child(4) { animation-delay: 0.24s; }
  .hero__line--a .w:nth-child(5) { animation-delay: 0.32s; }
  .hero__line--b {
    transform-origin: 0 100%;
    animation: lean-in 1.6s 0.38s var(--ease) both;
  }
  .hero__aside { animation: rise-in 1.1s 0.75s var(--ease) both; }
  .hero__figure { animation: unveil 1.8s 0.2s var(--ease) both; }
  .hero__figure img { animation: settle 2.6s 0.2s var(--ease) both; }
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(0.42em); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
}
@keyframes lean-in {
  0% { opacity: 0; transform: skewX(13deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: skewX(0deg); }
}
@keyframes unveil {
  from { clip-path: inset(0 0 26% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
