/* Geist, self-hosted variable font. Preloaded in <head>; font-display: optional means the browser
   never swaps fonts after first paint, so text cannot shift. */
@font-face { font-family: 'Geist'; src: url(public/fonts/geist-latin.woff2) format('woff2'); font-weight: 100 900; font-display: optional; 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: 'Geist'; src: url(public/fonts/geist-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: optional; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Before site.js runs (html.js is set in theme.js), lay the role fans out exactly as they end up,
   so nothing below moves when the script takes over. */
.js #help:not(.is-ready) .role-panel + .role-panel { display: none; }
.js .topic-grid { grid-template-columns: min(460px, 78%); justify-content: center; padding: var(--space-xl) 0 56px; }
.js .topic-grid > li { grid-area: 1 / 1; min-height: 340px; padding: 32px; }
.js .topic-grid > li + li { visibility: hidden; }
.js .topic-grid.is-fan > li + li { visibility: visible; }
.js .fan-controls[hidden] { display: flex; visibility: hidden; }

/* Site: an expert's personal page. Clear offer first, proof by demonstration, scannable formats, one action. */
:root {
  color-scheme: light;
  --paper: oklch(98.9% .002 270);
  --node: oklch(100% 0 0);
  --soft: oklch(96.6% .004 270);
  --ink: oklch(19% .012 270);
  --muted: oklch(48% .012 270);
  --faint: oklch(66% .01 270);
  --line: oklch(91.5% .005 270);
  --blue: oklch(54% .22 268);
  --blue-soft: oklch(95% .03 268);
  --green: oklch(52% .13 155);
  --ochre: oklch(58% .13 60);
  --grid: transparent;
  --drawing-grid: oklch(19% .012 270 / .04);
  --highlight: oklch(94% .04 268);
  --map-node: oklch(100% 0 0);
  --map-node-line: oklch(86% .008 270);
  --map-locked: oklch(97% .003 270);
  --map-detail: oklch(97% .012 268);
  --map-hover: oklch(96% .015 268);
  --map-active: oklch(93% .04 268);
  --map-wire: oklch(54% .22 268);
  --map-fade: oklch(98.9% .002 270 / .9);
  --shadow: 0 1px 2px oklch(19% .012 270 / .04), 0 8px 24px -12px oklch(19% .012 270 / .12);
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 16px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(15.5% .006 270);
  --node: oklch(19% .007 270);
  --soft: oklch(21% .008 270);
  --ink: oklch(95% .004 270);
  --muted: oklch(70% .01 270);
  --faint: oklch(52% .01 270);
  --line: oklch(27% .008 270);
  --blue: oklch(72% .15 268);
  --blue-soft: oklch(26% .06 268);
  --green: oklch(78% .13 155);
  --ochre: oklch(80% .12 70);
  --drawing-grid: oklch(95% .004 270 / .035);
  --highlight: oklch(30% .07 268);
  --map-node: oklch(20% .008 270);
  --map-node-line: oklch(32% .01 270);
  --map-locked: oklch(18% .006 270);
  --map-detail: oklch(22% .02 268);
  --map-hover: oklch(24% .025 268);
  --map-active: oklch(29% .06 268);
  --map-fade: oklch(15.5% .006 270 / .9);
  --shadow: 0 1px 0 oklch(100% 0 0 / .04) inset, 0 12px 32px -16px oklch(0% 0 0 / .6);
}

html { scroll-padding-top: 88px; overflow-x: clip; }
body { background: var(--paper); background-image: none; color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue) !important; outline-offset: 3px !important; }
::selection { background: var(--highlight); color: var(--ink); }
p { margin: 0; }
h1, h2, h3 { font-family: var(--sans); }
main { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-xxl); }

/* Header: always one click from booking. */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; padding: 0 max(var(--space-xxl), calc(50vw - 580px + var(--space-xxl))); background: color-mix(in oklch, var(--paper) 82%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid color-mix(in oklch, var(--line) 70%, transparent); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.wordmark img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.wordmark:hover { color: var(--ink); }
.topbar nav { display: flex; gap: 2px; margin-left: auto; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: color 150ms ease, background-color 150ms ease; }
.topbar nav a:hover { color: var(--ink); background: var(--soft); }
.theme-trigger { border-radius: 8px; font: 14px var(--sans); }
.theme-trigger .theme-label { display: none; }
.theme-menu { border-radius: 12px; background: var(--node); box-shadow: var(--shadow); }
.theme-menu button { border-radius: 8px; font: 14px var(--sans); }
.theme-menu button[aria-checked="true"] { background: var(--blue-soft); color: var(--blue); }
.topbar-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; transition: transform 150ms ease, background-color 150ms ease; }
.topbar-cta:hover { color: var(--paper); background: var(--blue); }

/* Buttons. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 15px var(--sans); letter-spacing: -.01em; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease; }
.button:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.button:active { transform: scale(.98); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--soft); border-color: var(--line); color: var(--ink); }

/* Hero: the offer in five seconds. */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--space-section); align-items: center; padding: var(--space-hero) 0 var(--space-section); }
.availability { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--space-xl); padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--node); color: var(--muted); font-size: 13px; }
.availability strong { color: var(--ink); font-weight: 600; }
/* Seats: five little places, taken ones filled, the next free one breathes */
.seats { display: inline-flex; gap: 3px; }
.seats i { width: 6px; height: 12px; border-radius: 3px; border: 1.5px solid color-mix(in oklch, var(--green) 70%, var(--line)); }
.seats i.taken { border-color: transparent; background: var(--ink); opacity: .8; }
.seats i.next { background: color-mix(in oklch, var(--green) 35%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .seats i.next { animation: seat 2.2s ease-in-out infinite; }
  @keyframes seat { 50% { background: var(--green); box-shadow: 0 0 8px color-mix(in oklch, var(--green) 70%, transparent); } }
}
.hero h1 { margin: 0 0 var(--space-xl); font-size: clamp(40px, 5vw, 62px); font-weight: 600; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 33em; margin-bottom: var(--space-xxl); color: var(--muted); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.portrait { position: relative; margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 24px; box-shadow: var(--shadow); }
.agent-card { position: absolute; left: -28px; bottom: 32px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; width: min(300px, 80%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in oklch, var(--node) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font: 12.5px/1.3 var(--mono); }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.agent-step { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 200ms ease, transform 200ms ease; }
.agent-card.is-switching .agent-step { opacity: 0; transform: translateY(-4px); }
.agent-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.agent-bar i { display: block; height: 100%; width: calc(var(--progress, .1) * 100%); background: var(--blue); border-radius: 3px; transition: width 500ms cubic-bezier(.22, 1, .36, 1); }

/* Credibility strip. */
.facts dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts dl > div { display: flex; flex-direction: column; gap: 4px; padding: var(--space-lg) var(--space-xl) var(--space-xl); grid-column: span 2; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in oklch, var(--paper) 70%, var(--line)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.facts dl > .fact-main { grid-row: span 2; justify-content: flex-end; }
.facts dl > div::before { content: attr(data-kicker); margin-bottom: auto; padding-bottom: var(--space-lg); color: var(--muted); font: 500 12px var(--sans); letter-spacing: .02em; }
.facts dt { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.facts .fact-main dt { width: fit-content; font-size: clamp(56px, 8vw, 96px); line-height: .95; letter-spacing: -.05em; }
.facts dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.facts .fact-main dd { max-width: 22ch; font-size: 15px; }
.facts dl > div { position: relative; isolation: isolate; overflow: hidden; }
.facts dl > div::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--ink) 10%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
@media (hover: hover) {
  .facts dl > div:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--ink) 25%, var(--line)); box-shadow: 0 18px 44px -22px color-mix(in oklch, var(--ink) 40%, transparent); }
  .facts dl > div:hover::after { opacity: 1; }
}
@media (max-width: 1000px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div { grid-column: span 1; }
  .facts dl > .fact-main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .facts dl { gap: 8px; }
  .facts dl > div { padding: var(--space-md) var(--space-md) var(--space-lg); border-radius: 16px; }
  .facts dl > div::before { padding-bottom: var(--space-md); font-size: 11px; }
  .facts dt { font-size: 18px; }
  .facts dd { font-size: 13px; }
}
.facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Blocks. */
.block, .process-section, .booking { display: block; padding: 112px 0 0; border: 0; }
.block-head { max-width: 720px; margin-bottom: var(--space-xxl); }
.block h2, .booking h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.block-lead { margin-top: var(--space-lg); color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* Method: the drawing is the proof. */
.process-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-md); }
.plate-title { font: 500 14px var(--sans); color: var(--muted); }
.process-controls { gap: 6px; }
.process-controls button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--node); color: var(--ink); font: 13px var(--sans); }
.process-controls button:hover { background: var(--soft); }
.pipeline-schematic { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--node); box-shadow: var(--shadow); }
.process-input [data-flow] { border-radius: 999px; background: var(--paper); font: 13px var(--sans); }
.flow-node { border-radius: 12px; background: var(--paper); }
.flow-node::after { border-radius: 12px; }
.flow-node strong { font-weight: 600; letter-spacing: -.01em; }
.node-role { font-family: var(--mono); }
.stage-name { font: 600 12px var(--sans); color: var(--ink); }
.flow-status, .flow-legend, .process-footer > p { font-family: var(--sans); }
.flow-node.is-active { outline-color: var(--blue); }

/* Topics. */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.topic-grid li { padding: var(--space-xl); border: 1px solid var(--line); border-radius: var(--radius); background: var(--node); transition: border-color 200ms ease, transform 200ms ease; }
.topic-grid li:hover { border-color: color-mix(in oklch, var(--blue) 40%, var(--line)); }
.topic-num { align-self: flex-start; margin-bottom: var(--space-xxl); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }

/* Fan: cards share one grid cell in a real 3D scene (preserve-3d), so the browser orders them by depth.
   site.js writes each card's transform and its shade opacity every frame. */
.topic-grid.is-fan {
  --card: min(460px, 78cqw);
  container-type: inline-size;
  grid-template-columns: var(--card); justify-content: center;
  padding: var(--space-xl) 0 56px;
  transform-style: preserve-3d; perspective: 1600px;
  /* the list plane sits in front of the back cards in 3D, so it must not catch clicks */
  pointer-events: none;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.is-fan li {
  position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 340px; padding: 32px;
  /* transform is written every frame by site.js */
  transform-origin: 50% 120%;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 24px 48px -24px rgb(0 0 0 / .25);
  backface-visibility: hidden;
  cursor: pointer; will-change: transform; pointer-events: auto;
  transition: border-color 200ms ease;
}
.is-fan .fan-shade { position: absolute; inset: -1px; z-index: 2; border-radius: inherit; background: var(--paper); opacity: calc(var(--o, 0) * .45); pointer-events: none; will-change: opacity; }
.is-fan li:not(.is-active):hover .fan-shade { opacity: calc(var(--o, 0) * .3); }
.is-fan li.is-dark .fan-shade { opacity: calc(var(--o, 0) * .25); }
.is-fan li:not(.is-active):hover { border-color: color-mix(in oklch, var(--blue) 35%, var(--line)); }
.is-fan li.is-active { cursor: default; }
/* glare that follows the pointer on the front card */
.is-fan li::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--paper) 30%, transparent), transparent 60%); opacity: 0; pointer-events: none; transition: opacity 400ms ease; }
.is-fan li.is-tilting::before { opacity: 1; }
.topic-grid.is-dragging li { cursor: grabbing; }
.is-fan h3 { font-size: 24px; letter-spacing: -.02em; }
.is-fan li.is-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.is-fan li.is-dark p { color: color-mix(in oklch, var(--paper) 68%, var(--ink)); }
.is-fan li.is-dark .topic-when { color: var(--paper); }
.is-fan li.is-dark .topic-num { border-color: color-mix(in oklch, var(--paper) 25%, var(--ink)); color: color-mix(in oklch, var(--paper) 70%, var(--ink)); }
.fan-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-xl); }
.fan-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--node); }
.fan-indicator { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); border-radius: 999px; background: var(--ink); transform: translateX(var(--x, 0)); transition: transform 600ms cubic-bezier(.22, 1, .36, 1), width 600ms cubic-bezier(.22, 1, .36, 1); }
.fan-tabs button, .fan-arrow { position: relative; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: color 300ms ease, background-color 160ms ease, transform 160ms ease; }
.fan-tabs button[aria-pressed="true"] { color: var(--paper); }
.fan-tabs button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.fan-arrow { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: var(--node); color: var(--ink); font-size: 16px; }
.fan-arrow:hover { background: var(--blue-soft); }
.fan-arrow:active { transform: scale(.94); }
.fan-tabs button:focus-visible, .fan-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.topic-grid h3 { margin-bottom: var(--space-sm); }
.topic-grid p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.topic-grid li { position: relative; }
/* Line icon in a small tile opposite the tag: muted on back cards, drawn in blue when the card comes to the front */
.topic-icon { position: absolute; top: 25px; right: 25px; box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; color: var(--muted); pointer-events: none; transition: color 400ms ease, border-color 400ms ease, background-color 400ms ease; }
.is-fan li.is-active .topic-icon { color: var(--blue); border-color: color-mix(in oklch, var(--blue) 30%, var(--line)); background: color-mix(in oklch, var(--blue) 6%, var(--paper)); animation: icon-draw 1.1s cubic-bezier(.65, 0, .35, 1) both; }
.is-fan li.is-dark .topic-icon { color: color-mix(in oklch, var(--paper) 70%, var(--ink)); border-color: color-mix(in oklch, var(--paper) 25%, var(--ink)); background: transparent; }
.is-fan li.is-dark.is-active .topic-icon { color: color-mix(in oklch, var(--blue) 45%, var(--paper)); border-color: color-mix(in oklch, var(--blue) 45%, var(--ink)); background: color-mix(in oklch, var(--blue) 14%, var(--ink)); }
@keyframes icon-draw { from { stroke-dashoffset: 1; } }
@media (max-width: 640px) { .topic-icon { top: 17px; right: 17px; } }
@media (prefers-reduced-motion: reduce) { .is-fan li.is-active .topic-icon { animation: none; } }
.topic-grid .topic-when { margin-bottom: var(--space-md); color: var(--ink); }

/* Formats: big rows with price, details open in place. */
.prices { display: grid; gap: var(--space-md); border: 0; }
.format, .format:last-child { border: 1px solid var(--line); border-radius: var(--radius); background: var(--node); transition: border-color 200ms ease, box-shadow 200ms ease; }
.format:hover { border-color: color-mix(in oklch, var(--ink) 18%, var(--line)); }
.format[open] { box-shadow: var(--shadow); }
.format .price-row { gap: var(--space-xl); padding: var(--space-xl) var(--space-xl); border: 0; }
.format-title { font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.format-subtitle { margin-top: 4px; font-size: 14px; color: var(--muted); }
.price { font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.format .expand-mark { display: grid; place-items: center; width: 36px !important; height: 36px !important; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.format .motion-disclosure > summary .expand-mark::before, .format .motion-disclosure > summary .expand-mark::after,
.format.motion-disclosure > summary .expand-mark::before, .format.motion-disclosure > summary .expand-mark::after { top: 50%; left: 50%; translate: -50% -50%; }
.format-body { padding: 0 var(--space-xl) var(--space-xl); font-size: 15px; }
.format-body > p:first-child { max-width: 60ch; padding-top: var(--space-lg); border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.format-body h3 { margin: var(--space-xl) 0 var(--space-sm); color: var(--muted); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.format-body ul { margin: 0; padding-left: 0; list-style: none; color: var(--ink); }
.format-body li { position: relative; padding-left: 22px; margin-bottom: var(--space-sm); }
.format-body li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 10px; height: 5px; border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg); }
.format-note { color: var(--muted); }
.format-body > .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-lg); padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; }
.format-body > .text-link:hover { background: var(--blue); color: var(--paper); }
.map-preview { border-color: var(--line); }
.map-preview > summary { font: 600 15px var(--sans); }
.tools-map__frame { border-radius: 12px; }

/* Steps. */

/* Teams: one contrasting card. */
.team-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-section-sm); padding: var(--space-section-sm); border-radius: 24px; background: var(--ink); color: var(--paper); }
.team-card h2 { color: var(--paper); margin-bottom: var(--space-lg); }
.team-card p { color: color-mix(in oklch, var(--paper) 72%, var(--ink)); font-size: 16px; }
.team-price { align-self: end; padding: 0; margin: 0; }
.team-amount { margin-bottom: var(--space-sm); color: var(--paper) !important; font-size: 40px !important; font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.team-amount span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: color-mix(in oklch, var(--paper) 60%, var(--ink)); }
.team-card .button { margin-top: var(--space-xl); background: var(--paper); border-color: var(--paper); color: var(--ink); }
.team-card .button:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }

/* FAQ. */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-section-sm); }
.faq .block-head { margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 68px; padding: var(--space-md) 0; font-size: 17px; font-weight: 500; letter-spacing: -.015em; cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: color 200ms ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
/* plus drawn from two bars inside a ring; the vertical bar folds away when open */
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 9px; top: 50%; width: 14px; height: 1.5px; margin-top: -.75px; border-radius: 1px; z-index: 1; background: currentColor; color: var(--ink); transition: transform 400ms cubic-bezier(.22, 1, .36, 1), opacity 300ms ease; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(180deg); opacity: 0; }
.faq-list summary { position: relative; padding-right: 56px; }
.faq-list details { position: relative; }
.faq-list summary .q-ring { position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 1px solid var(--line); border-radius: 50%; transition: border-color 200ms ease, background-color 200ms ease, transform 400ms cubic-bezier(.22, 1, .36, 1); }
.faq-list summary:hover .q-ring { border-color: color-mix(in oklch, var(--blue) 45%, var(--line)); background: var(--blue-soft); }
.faq-list details[open] .q-ring { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.faq-list details[open] summary::before { background: var(--paper); }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--ink); }
.faq-list details:not([open]) summary { color: color-mix(in oklch, var(--ink) 88%, var(--paper)); }
/* smooth height where supported (Chromium 131+, Safari 18.4+ for ::details-content), instant elsewhere */
.faq-list { interpolate-size: allow-keywords; }
.faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size 450ms cubic-bezier(.22, 1, .36, 1), content-visibility 450ms allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-list details p { opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 450ms cubic-bezier(.22, 1, .36, 1); }
.faq-list details[open] p { opacity: 1; transform: none; transition-delay: 80ms; }
.faq-list details p { padding: 0 var(--space-xxl) var(--space-xl) 0; color: var(--muted); font-size: 16px; }
.faq-list a { color: var(--blue); }

/* Booking: the final call to action. */
.booking { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xxl); padding-bottom: 112px; }
.booking-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-sm) var(--space-xxl); }
.booking-intro h2 { grid-column: 1 / -1; }
.booking-intro > p { margin-top: 0; color: var(--muted); font-size: 17px; }
.booking-intro .booking-alt { font-size: 15px; }
.booking-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.booking-calendar { padding: var(--space-lg) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }

.site-footer { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); align-items: center; max-width: 1160px; margin: 0 auto; padding: var(--space-xl) var(--space-xxl) 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .back-top { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { .is-fan li, .is-fan li::after, .fan-indicator, .agent-step, .agent-bar i, .button, .topbar-cta, .topic-grid li, .format, .faq-list summary::before, .faq-list summary::after, .q-ring, .faq-list details p, .faq-list details::details-content { transition: none; } }

@media (max-width: 1000px) {
  .topbar nav { display: none; }
  .topbar .theme-picker { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-section-sm); padding-top: var(--space-section); }
  .portrait { max-width: 520px; }
  .agent-card { left: 16px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card, .faq, .booking { grid-template-columns: minmax(0, 1fr); }
  .booking-intro { position: static; }
}
@media (max-width: 640px) {
  main { padding: 0 var(--space-lg); }
  .topbar { gap: var(--space-sm); padding: 0 var(--space-lg); min-height: 56px; }
  .wordmark { font-size: 14px; }
  .topbar-cta { padding: 0 14px; font-size: 13px; }
  .hero { padding-top: var(--space-xxl); }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .portrait img { aspect-ratio: 4 / 5; border-radius: 18px; }
  .agent-card { left: 12px; bottom: 12px; width: calc(100% - 24px); }
  .block, .process-section, .booking { padding-top: 80px; }
  .process-heading { display: block; }
  .process-controls { margin-top: var(--space-sm); }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-num { margin-bottom: var(--space-lg); }
  .format .price-row { flex-wrap: wrap; gap: var(--space-sm) var(--space-md); padding: var(--space-lg); }
  .format-heading { flex: 1 1 100%; }
  .format .price { margin-right: auto; font-size: 20px; }
  .format-title { font-size: 18px; }
  .format-subtitle { max-width: none; }
  .format-body { padding: 0 var(--space-lg) var(--space-lg); }
  .team-card { padding: var(--space-xl); border-radius: 20px; }
  .team-amount { font-size: 32px !important; }
  .faq-list details p { padding-right: 0; }
  .site-footer { padding: var(--space-xl) var(--space-lg) 96px; }
}

@media (max-width: 640px) {
  .topic-grid.is-fan { --card: 86%; padding-bottom: var(--space-xxl); }
  .is-fan li { min-height: 360px; padding: var(--space-xl); }
}
.facts-title { margin-bottom: var(--space-lg); color: var(--muted); font: 500 14px var(--sans); letter-spacing: 0; }

/* Siri-style flowing gradient in greys: soft light and dark bands drift slowly across the text */
.grad {
  --g-a: var(--ink); --g-b: var(--paper);
  background: linear-gradient(100deg,
    var(--g-a) 0%,
    color-mix(in oklch, var(--g-a) 55%, var(--g-b)) 18%,
    color-mix(in oklch, var(--g-a) 85%, var(--g-b)) 34%,
    color-mix(in oklch, var(--g-a) 40%, var(--g-b)) 52%,
    var(--g-a) 68%,
    color-mix(in oklch, var(--g-a) 60%, var(--g-b)) 84%,
    var(--g-a) 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.team-card .grad { --g-a: var(--paper); --g-b: var(--ink); }
.hero h1.grad { width: fit-content; }
@media (prefers-reduced-motion: no-preference) {
  .grad { animation: siri 5s ease-in-out infinite alternate; }
  @keyframes siri { to { background-position: 100% 0; } }
}
/* Role picker: "Кто вы?" tabs above a three-card fan per role */
.role-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-bottom: var(--space-lg); }
.role-label { color: var(--muted); font-size: 17px; }
.role-tabs, .fan-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--node); }
.role-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.role-tabs::-webkit-scrollbar { display: none; }
.role-tabs button { position: relative; z-index: 1; flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 15px var(--sans); white-space: nowrap; cursor: pointer; transition: color 300ms ease; }
.role-tabs button:hover { color: var(--ink); }
.role-tabs button[aria-selected="true"] { color: var(--paper); }
.role-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.role-panel[hidden] { display: none; }
/* During a role switch the leaving panel is taken out of the flow and lies on top of the incoming one */
#help { position: relative; }
.role-panel { position: relative; z-index: 1; }
.role-panel.is-leaving { position: absolute; z-index: 2; margin: 0; pointer-events: none; }
.role-panel.is-leaving .fan-controls { visibility: hidden; }
.role-panel + .role-panel { margin-top: var(--space-xxl); }
.role-panel.is-js + .role-panel { margin-top: 0; }
/* fan switcher: dots */
.fan-tabs button { width: 28px; min-height: 28px; padding: 0; font-size: 0; }
.fan-tabs button::before { content: ''; display: block; width: 6px; height: 6px; margin: auto; border-radius: 50%; background: var(--muted); transition: background-color 300ms ease; }
.fan-tabs button[aria-pressed="true"]::before { background: var(--paper); }
@media (max-width: 640px) { .role-picker { gap: var(--space-sm); } .role-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } .role-tabs button { padding: 0 14px; font-size: 14px; } }
.price small { margin-left: 2px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
@media (max-width: 640px) { .availability { border-radius: 14px; line-height: 1.4; } }
/* Stack: tool tiles, monochrome logos that pick up the brand colour on hover */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.stack-grid li { --brand: var(--ink); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--space-md); align-items: center; padding: var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius); background: var(--node); transition: border-color 200ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1), box-shadow 300ms ease; }
.stack-grid li:hover { border-color: color-mix(in oklch, var(--brand) 40%, var(--line)); transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgb(0 0 0 / .3); }
.stack-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); transition: color 250ms ease, border-color 250ms ease; }
.stack-icon svg { width: 22px; height: 22px; }
.stack-grid li:hover .stack-icon { color: var(--brand); border-color: color-mix(in oklch, var(--brand) 35%, var(--line)); }
.stack-glyph { font: 600 24px/1 var(--sans); transform: translateY(-1px); }
.stack-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.stack-role { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
@media (max-width: 1000px) { .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stack-grid li { padding: var(--space-md); } .stack-icon { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .stack-grid li { transition: none; } }
.stack-icon img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter 250ms ease, opacity 250ms ease; }
.stack-grid li:hover .stack-icon img { filter: none; opacity: 1; }
.stack-grid li { position: relative; isolation: isolate; overflow: hidden; }
.stack-grid li::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(220px circle at var(--mx, var(--gx)) var(--my, 50%), color-mix(in oklch, var(--brand) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.stack-grid li:hover::after { opacity: 1; }
.stack-grid li:hover .stack-icon { box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 10%, transparent), 0 6px 18px -6px color-mix(in oklch, var(--brand) 55%, transparent); }
.stack-icon { transition: color 250ms ease, border-color 250ms ease, box-shadow 300ms ease; }
/* Once, when the block scrolls into view: the glow sweeps across each tile in turn and the logo lights up in its colour */
@property --gx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
.stack-grid.is-intro li::after { animation: stack-sweep 1.2s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * 80ms) backwards; }
.stack-grid.is-intro .stack-icon { animation: stack-lit 1.2s ease calc(var(--i) * 80ms) backwards; }
.stack-grid.is-intro .stack-icon img { animation: stack-lit-img 1.2s ease calc(var(--i) * 80ms) backwards; }
@keyframes stack-sweep { from { --gx: -30%; opacity: 1; } 70% { opacity: 1; } to { --gx: 130%; opacity: 0; } }
@keyframes stack-lit { 40% { color: var(--brand); border-color: color-mix(in oklch, var(--brand) 35%, var(--line)); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 10%, transparent), 0 6px 18px -6px color-mix(in oklch, var(--brand) 55%, transparent); } }
@keyframes stack-lit-img { 40% { filter: none; opacity: 1; } }
@media (max-width: 640px) {
  .js .topic-grid { grid-template-columns: 86%; padding-bottom: var(--space-xxl); }
  .js .topic-grid > li { min-height: 360px; padding: var(--space-xl); }
}

/* Phones: everything within thumb reach, less scrolling */
.mobile-cta, .schematic-more { display: none; }
@media (max-width: 640px) {
  .portrait img { aspect-ratio: 1 / 1; object-position: 50% 30%; }

  .stack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
  .stack-grid li { grid-template-columns: 1fr; justify-items: center; row-gap: var(--space-sm); padding: var(--space-md) var(--space-xs); text-align: center; }
  .stack-icon { grid-row: auto; }
  .stack-name { font-size: 13px; }
  .stack-role { display: none; }

  .fan-tabs button { width: 36px; min-height: 36px; }

  /* the long schematic is folded behind a button */
  .js .process-section:not(.is-open) .pipeline-schematic { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .js .schematic-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: var(--space-md); border: 1px solid var(--line); border-radius: 999px; background: var(--node); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }

  /* thumb bar: appears once the hero buttons scroll away, hides at the booking section */
  .mobile-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklch, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .3); transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); transition: transform 420ms cubic-bezier(.32, .72, 0, 1); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .button { flex: 1; min-height: 48px; }
  .mobile-cta-tg { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--node); border: 1px solid var(--line); color: var(--ink); }
  .mobile-cta-tg svg { width: 20px; height: 20px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* Schematic: neutral wires that draw in blue behind a glowing packet; the active node glows instead of filling. */
.wire-underlay { stroke: var(--node); stroke-width: 7; }
.wire-path, .workflow-wire.is-visited .wire-path { stroke: color-mix(in oklch, var(--ink) 20%, transparent); stroke-width: 1.5; opacity: 1; stroke-linecap: round; stroke-linejoin: round; }
.return-wire .wire-path { stroke-dasharray: 4 5; }
.wire-live { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wire-arrow { fill: none; stroke: color-mix(in oklch, var(--ink) 35%, transparent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wire-arrow.is-on { stroke: var(--blue); stroke-width: 2; }
.flow-packet { width: 10px; height: 10px; border: 0; outline: 0; border-radius: 50%; background: var(--blue); offset-rotate: 0deg; box-shadow: 0 0 0 4px color-mix(in oklch, var(--blue) 18%, transparent), 0 0 16px 3px color-mix(in oklch, var(--blue) 45%, transparent); }
.flow-node { transition: border-color .4s, box-shadow .5s cubic-bezier(.2, .8, .2, 1); }
.flow-node::after { background: color-mix(in oklch, var(--blue) 6%, var(--paper)); border-color: transparent; transition: opacity .5s cubic-bezier(.2, .8, .2, 1); }
.flow-node.is-active { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in oklch, var(--blue) 12%, transparent), 0 14px 32px -16px color-mix(in oklch, var(--blue) 55%, transparent); }
.flow-node.is-visited { border-color: color-mix(in oklch, var(--blue) 40%, var(--line)); }
.flow-node.is-done { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in oklch, var(--green) 14%, transparent); }
.process-input [data-flow] { border-color: color-mix(in oklch, var(--blue) 50%, var(--line)); color: var(--blue); }
.flow-status { display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: none; min-height: 0; margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 12px var(--sans); }
.flow-status::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.process-section.is-running .flow-status::before { background: var(--blue); box-shadow: 0 0 0 0 color-mix(in oklch, var(--blue) 50%, transparent); animation: status-pulse 1.4s ease-out infinite; }
@keyframes status-pulse { to { box-shadow: 0 0 0 6px transparent; } }
.retry { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 0; color: var(--blue); font: 500 12px var(--sans); }
.retry span { font-size: 15px; margin: 0; }
@media (max-width: 640px) { .flow-status { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-node, .flow-node::after { transition: none; } .process-section.is-running .flow-status::before { animation: none; } }
@media (min-width: 1101px) { .pipeline-schematic .pipeline { column-gap: 44px; } }

/* Two offset outline frames behind the portrait: they slide out on load, spread on hover,
   and fan out as the hero scrolls away (--s, 0..1, written by site.js). */
@property --frame { syntax: '<length>'; inherits: true; initial-value: 16px; }
.portrait { isolation: isolate; --frame: 16px; --s: 0; transition: --frame .6s cubic-bezier(.2, .8, .2, 1); }
.portrait::before, .portrait::after { content: ''; position: absolute; inset: 0; z-index: -1; border: 1.5px solid color-mix(in oklch, var(--ink) 34%, transparent); border-radius: 24px; pointer-events: none; transform-origin: 0 100%; }
.portrait::before { transform: translate(calc(var(--frame) * (1 + var(--s) * 1.4)), calc(var(--frame) * -1 * (1 + var(--s) * 1.4))) rotate(calc(var(--s) * 2deg)); }
.portrait::after { transform: translate(calc(var(--frame) * 2 * (1 + var(--s) * 1.4)), calc(var(--frame) * -2 * (1 + var(--s) * 1.4))) rotate(calc(var(--s) * 4.5deg)); border-color: color-mix(in oklch, var(--ink) 18%, transparent); }
@media (hover: hover) { .hero:hover .portrait { --frame: 21px; } }
@media (max-width: 640px) { .portrait { --frame: 8px; } .portrait::before, .portrait::after { border-radius: 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .portrait { animation: frames-in 1s cubic-bezier(.2, .8, .2, 1) .2s backwards; }
  @keyframes frames-in { from { --frame: 0px; } }
}
@media (prefers-reduced-motion: reduce) { .portrait { transition: none; } }

/* Liquid glass agent card. Everywhere: frosted tint, specular rim, light text over the photo.
   Chromium also gets edge refraction via an SVG displacement map built by site.js (.is-glass). */
.agent-card { border: 0; border-radius: 22px; padding: 13px 16px; background: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .04)), rgb(24 24 30 / .42); backdrop-filter: blur(3px) saturate(1.6); -webkit-backdrop-filter: blur(3px) saturate(1.6); box-shadow: inset 0 1px .5px rgb(255 255 255 / .8), inset 0 -1px 1px rgb(255 255 255 / .3), inset 0 0 0 1px rgb(255 255 255 / .22), inset 0 0 18px rgb(255 255 255 / .12), 0 14px 34px -12px rgb(0 0 0 / .45); }
.agent-card.is-glass { backdrop-filter: var(--glass-filter) blur(.6px) saturate(1.6); }
.agent-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgb(255 255 255 / .28), transparent 38%, transparent 70%, rgb(255 255 255 / .1)); }
.agent-step { position: relative; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.agent-dot { position: relative; box-shadow: 0 0 0 4px rgb(255 255 255 / .22), 0 0 10px var(--blue); }
.agent-bar { position: relative; background: rgb(255 255 255 / .22); }
@media (max-width: 640px) { .agent-card { border-radius: 18px; } }

/* Shared liquid glass: the glass lives on ::before so the element itself is not a backdrop root
   (the theme menu inside the glass topbar still sees the page). */
.glass { isolation: isolate; border-color: transparent; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.glass::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, light-dark(rgb(255 255 255 / .45), rgb(255 255 255 / .07)), transparent 45%), color-mix(in oklch, var(--paper) var(--glass-tint, 58%), transparent);
  backdrop-filter: blur(16px) saturate(1.8); -webkit-backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: inset 0 1px .5px light-dark(rgb(255 255 255 / .95), rgb(255 255 255 / .16)), inset 0 -1px 1px light-dark(rgb(255 255 255 / .45), rgb(255 255 255 / .04)), inset 0 0 0 1px light-dark(rgb(0 0 0 / .07), rgb(255 255 255 / .06)), 0 12px 32px -16px rgb(0 0 0 / .35); }
.glass.is-glass::before { backdrop-filter: var(--glass-filter) blur(3px) saturate(1.8); }

.topbar.glass { top: 10px; width: min(1180px, calc(100% - 24px)); margin: 10px auto 0; padding: 0 8px 0 16px; min-height: 56px; border-radius: 999px; --glass-tint: 70%; }
.theme-menu.glass { border-radius: 18px; --glass-tint: 78%; }
.mobile-cta.glass { --glass-tint: 68%; padding: 5px; }
.mobile-cta.glass .mobile-cta-tg { background: color-mix(in oklch, var(--node) 70%, transparent); }
@media (max-width: 640px) { .topbar.glass { top: 8px; width: calc(100% - 16px); margin-top: 8px; min-height: 52px; padding: 0 6px 0 10px; } }

/* Map controls float over the map as a glass pill (inline previews; the fullscreen dialog keeps its toolbar). */
.tools-map__frame { position: relative; }
.tools-map__frame:not(.tools-map__dialog *) > .tools-map__toolbar { position: absolute; z-index: 6; top: 10px; right: 10px; padding: 0; border: 0; pointer-events: none; }
.tools-map__frame:not(.tools-map__dialog *) .tools-map__title { display: none; }
.tools-map__frame:not(.tools-map__dialog *) .tools-map__controls { position: relative; width: auto; pointer-events: auto; gap: 2px; padding: 4px; border-radius: 999px; --glass-tint: 55%; }
.tools-map__frame:not(.tools-map__dialog *) .tools-map__control { min-width: 40px; min-height: 40px; border-radius: 999px; border-color: transparent; }

/* Phones: the portrait frames peek out above the photo like a stack of cards instead of to the side. */
@media (max-width: 640px) {
  .portrait { --frame: 9px; }
  .portrait::before, .portrait::after { transform-origin: 50% 0; }
  .portrait::before { transform: translateY(calc(var(--frame) * -1 * (1 + var(--s) * .8))) scale(.94); }
  .portrait::after { transform: translateY(calc(var(--frame) * -2 * (1 + var(--s) * .8))) scale(.88); }
}

/* Cards keep vertical page scroll for the browser and hand horizontal swipes to the fan. */
.is-fan li { touch-action: pan-y; }
@media (max-width: 760px) {
  .booking-intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (pointer: coarse) { .topic-grid.is-fan { pointer-events: auto; } }
