@font-face {
  font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}

/* Petra Kitz-Deutsch, MSc — Praxis für Psychotherapie
   Calm, Apple-inspired. One card style, one button style, one motion curve. */

:root {
  --bg: #ffffff;
  --bg-warm: #f9f6f2;
  --bg-soft: #f1ebe4;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);
  --accent: #c2502a;
  --accent-ink: #a8421f;
  --accent-soft: #f6e6df;
  --accent-tint: rgba(194, 80, 42, .08);
  --sage: #66765f;
  --sage-2: #8a9a82;
  --sage-tint: rgba(102, 118, 95, .11);
  --sand: #f1ebe4;
  --ok: #2f7d4f;
  --err: #b42318;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, .16), 0 4px 12px -4px rgba(0, 0, 0, .06);
  --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, .22);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .25s;
  --t: .5s;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --edge: clamp(20px, 3vw, 44px);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Text links: animated underline (header, footer, inline) ---------- */
.u-link { position: relative; display: inline-block; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease);
}
.u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: opacity var(--t) var(--ease);
}
.site-header.is-scrolled, .site-header.is-open { background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; letter-spacing: 0; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Language dropdown */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 9px;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .6); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.lang-btn:hover { border-color: rgba(0, 0, 0, .28); background: #fff; }
.flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }
.chev { width: 10px; height: 10px; transition: transform .4s var(--ease); color: var(--muted); }
.lang.is-open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 184px; padding: 6px; margin: 0; list-style: none;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; transition: background-color var(--t-fast) var(--ease); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(0, 0, 0, .045); }
.lang-menu a[aria-current="true"] { font-weight: 600; }
.lang-menu .check { margin-left: auto; width: 14px; height: 14px; color: var(--accent); opacity: 0; }
.lang-menu a[aria-current="true"] .check { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 16px; font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: rgba(0, 0, 0, .05); color: var(--ink); }
.btn-ghost:hover { background: rgba(0, 0, 0, .085); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.site-header.is-open .menu-toggle span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Type & sections ---------- */
.section { padding: clamp(80px, 11vw, 128px) 0; }
.section-warm { background: var(--bg-warm); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin: 0 0 16px; }
.h-display, .h-1, .h-2, .statement, .quote, .fact strong, .badge strong, .address, .principle-num, .topic-num { font-family: var(--serif); font-optical-sizing: auto; }
.h-display { font-size: clamp(44px, 6.8vw, 84px); line-height: 1.02; letter-spacing: -.025em; font-weight: 420; margin: 0; }
.h-1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.02em; font-weight: 420; margin: 0 0 20px; }
.h-2 { font-size: clamp(23px, 2.3vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 480; margin: 0 0 14px; }
.h-3 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.015em; margin: 0; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.prose p { color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero {
  min-height: min(100svh, 880px); display: flex; align-items: center; position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: radial-gradient(1100px 600px at 85% 20%, rgba(194, 80, 42, .05), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(102, 118, 95, .07), transparent 60%), var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.accent { color: var(--accent); }
.hero-sub { margin-bottom: 32px; max-width: 34ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.tags li { font-size: 14px; padding: 6px 12px; border-radius: 8px; background: var(--sage-tint); color: var(--sage); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: end; }
.labyrinth { width: 100%; height: 100%; color: var(--accent); }
.labyrinth path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.hero .labyrinth { opacity: .5; }
.labyrinth-spin { transform-origin: 50% 50%; animation: spin 160s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease); }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(64px, 9vw, 112px)) 0 clamp(56px, 7vw, 88px); background: var(--bg); }
.page-hero .h-display { font-size: clamp(42px, 6vw, 74px); max-width: 15ch; margin-bottom: 24px; }
.page-hero .lead { max-width: 640px; }
.page-hero-art { position: absolute; right: -120px; top: 40px; width: 460px; height: 460px; opacity: .22; pointer-events: none; color: var(--sage-2); }
.page-hero-art .labyrinth { color: inherit; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 32px 24px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: clamp(28px, 3.2vw, 36px); font-weight: 450; letter-spacing: -.02em; line-height: 1.15; }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Quote ---------- */
.quote-section { padding: clamp(100px, 15vw, 190px) 0; text-align: center; }
.quote { margin: 0 auto; max-width: 980px; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.16; letter-spacing: -.02em; font-weight: 380; font-style: italic; }
.quote .w { display: inline-block; opacity: .14; transition: opacity .6s var(--ease); }
.quote .w.on { opacity: 1; }
.quote-cite { display: block; margin-top: 28px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- Cards (one style everywhere) ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage); margin-bottom: 20px; flex: none; }
.card-icon svg { width: 20px; height: 20px; }

/* Interactive cards: GPU-only hover (transform + shadow layer opacity) */
.card-link { display: flex; flex-direction: column; will-change: transform; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.card-link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-hover); opacity: 0; transition: opacity var(--t) var(--ease);
}
.card-link:hover { transform: translateY(-4px); border-color: transparent; }
.card-link:hover::after { opacity: 1; }
.card-link:active { transform: translateY(-2px) scale(.995); }
.card-more { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.card-more svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.card-link:hover .card-more svg { transform: translateX(4px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); color: var(--ink-2); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-2); opacity: .9; }
.list li:first-child::before { top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li, .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; background: var(--bg-soft); font-size: 15px; color: var(--ink-2); }
.chip svg { width: 16px; height: 16px; color: var(--sage); }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.topic { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.topic-num { flex: none; font-size: 17px; font-weight: 450; color: var(--sage); font-variant-numeric: tabular-nums; padding-top: 2px; min-width: 22px; }
.topic-text { font-weight: 500; line-height: 1.4; }
.topic:last-child:nth-child(3n+2) { grid-column: span 2; }

/* Person */
.person-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.portrait-card { position: sticky; top: calc(var(--header-h) + 32px); }
.portrait { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-meta { margin-top: 20px; }
.portrait-meta .h-2 { margin-bottom: 4px; }
.portrait-meta p { margin: 0; color: var(--muted); font-size: 15px; }

/* Psychotherapie */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.statement { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.02em; font-weight: 420; margin: 0 0 28px; }
.badge { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--sand); }
.badge strong { font-size: 40px; letter-spacing: -.02em; font-weight: 450; color: var(--accent-ink); line-height: 1; }
.badge span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* Gestalt */
.principle-num { display: block; font-size: 22px; color: var(--sage); margin-bottom: 24px; font-weight: 400; font-style: italic; }
.principle p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Media (photo + map) */
.media { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-photo { aspect-ratio: 16 / 10; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.address { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.01em; font-weight: 450; margin: 0 0 6px; font-style: normal; }
.map { position: relative; margin-top: clamp(40px, 6vw, 64px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 21 / 9; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-item { position: relative; display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact-item .card-icon { margin: 0; }
.contact-item small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.contact-item > span:last-child { display: block; min-width: 0; }
.contact-item .val { display: block; font-weight: 500; word-break: break-word; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 6px 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 11px; background: #fbfbfd; padding: 13px 14px; font-size: 16px; line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(0, 0, 0, .26); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(194, 80, 42, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field-error { display: none; font-size: 13px; color: var(--err); margin: 6px 0 0 2px; }
.has-error .field-error { display: block; }
.hint { font-size: 13px; color: var(--muted); margin: -4px 0 16px 2px; line-height: 1.45; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 8px 0 22px; cursor: pointer; line-height: 1.5; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error { color: var(--err); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
.form-status { font-size: 15px; margin: 0; }
.form-status.err { color: var(--err); }
.form-status a { text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 32px 8px; }
.check-circle { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 125, 79, .1); color: var(--ok); }
.check-circle svg { width: 30px; height: 30px; }
.check-circle path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.form.is-sent .form-success { display: block; animation: rise .6s var(--ease) both; }
.form.is-sent .form-success path { animation: draw .6s .25s var(--ease) forwards; }
.form.is-sent .form-body { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .h-1 { margin-bottom: 16px; }
.cta-band .lead { max-width: 600px; margin: 0 auto 32px; }
.cta-band .ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); padding: 56px 0 32px; font-size: 14px; color: var(--muted); }
.site-footer .row { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-grid .brand { color: var(--ink); margin-bottom: 12px; }
.footer-grid p { margin: 0; line-height: 1.7; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 12px; font-weight: 600; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { transition: color var(--t-fast) var(--ease); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }

/* ---------- Legal ---------- */
.legal .wrap { max-width: 800px; }
.legal h2 { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; margin: 44px 0 12px; font-weight: 480; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal-box { background: var(--bg-warm); border-radius: var(--radius-sm); padding: 24px 28px; margin-bottom: 12px; }
.legal-box p:last-child { margin: 0; }
.legal .legal-box { background: #fff; padding: 24px 28px; }
.legal-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.notfound .labyrinth { width: 150px; height: 150px; margin: 0 auto 32px; opacity: .6; }
.notfound .ctas { justify-content: center; margin-top: 32px; }

/* ---------- Reveal (removed by JS once finished, so hovers stay crisp) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .is-ready h1 .line > span { transform: none; }
.js [data-intro] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .is-ready [data-intro] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 22px; }
  .brand small { display: none; }
}
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topic:last-child:nth-child(3n+2) { grid-column: auto; }
  .topic:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding: 14px 0; color: var(--ink); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -120px; top: 70px; width: 340px; max-width: none; opacity: .3; z-index: 0; }
  .hero-copy { position: relative; z-index: 1; }
  .page-hero-art { width: 300px; height: 300px; right: -110px; top: 30px; }
  .person-grid, .two-col, .split, .contact-grid { grid-template-columns: 1fr; }
  .portrait-card { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
  .portrait-meta { margin-top: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact { padding: 22px 12px; }
  .topics, .grid-4 { grid-template-columns: 1fr; }
  .topic:last-child:nth-child(odd) { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lang-btn .lang-code { display: none; }
  .ctas .btn { flex: 1 1 100%; }
  .legal-box { padding: 20px; }
  .footer-nav { gap: 36px; }
}
@media (hover: none) {
  .card-link:hover { transform: none; }
  .card-link:hover::after { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-intro] { opacity: 1; transform: none; }
  .js .hero h1 .line > span { transform: none; }
  .js .draw path { stroke-dashoffset: 0; }
  .quote .w { opacity: 1; }
}
@media print {
  .site-header, .form, .hero-art, .map { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
::view-transition-group(site-header) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.h-display .accent, .h-1 .accent { font-style: italic; font-weight: 400; }
