/* Dacinia — site stylesheet
   Layout: dark-first single column of full-width bands that alternate surface and the
   slightly lighter surface-alt; content in a 1200px container, left-aligned grids,
   Roman-numeral eyebrows.
   Tokens mirror the Dacinia design system (tokens.json). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color: light theme (the site's default) */
  --surface: #f4f6f5;
  --surface-alt: #eaeeed;
  --surface-raised: #ffffff;
  --text: #0b1618;
  --text-secondary: #3d4c4e;
  --text-muted: #5e6e70;
  --accent: #0b6e74;
  --accent-tint: #e2eff0;
  --on-accent: #ffffff;
  --line: #d5dcdc;
  --line-strong: #748688;
  --mark-front: #0b1618;
  --status-success: #1f6b45;
  --status-error: #b42318;
  --dim: #b9c5c6;
  --brand-ink: #0b1618;
  --brand-paper: #f4f6f5;
  --brand-cyan: #5ce1e6;
  --brand-teal: #0b6e74;

  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* space, radius, layout */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --container: 1200px;
  --measure: 68ch;
  --header-height: 72px;
  --gutter: var(--space-6);

  color-scheme: light;
}

/* Ink bands (the footer): the dark theme */
.theme-dark {
  --surface: #0b1618;
  --surface-alt: #0f1d20;
  --surface-raised: #14262a;
  --text: #f4f6f5;
  --text-secondary: #c5d1d2;
  --text-muted: #9fb0b2;
  --accent: #5ce1e6;
  --accent-tint: #12363a;
  --on-accent: #0b1618;
  --line: #24363a;
  --line-strong: #6a8688;
  --mark-front: #f4f6f5;
  --dim: #3a5054;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--surface);
}

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + var(--space-3)); }

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

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.band { padding-block: var(--space-9); background: var(--surface); color: var(--text); }
/* Sections alternate: odd = surface, even = surface-alt. The footer continues the pattern. */
main > :nth-child(even) { background: var(--surface-alt); }
/* Dark accent bands: one or two sections per page switch to the ink theme. Never two in a row. */
main > .theme-dark, main > .theme-dark:nth-child(even) { background: var(--surface); color: var(--text); }
.band--tight { padding-block: var(--space-8); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-7); }

.section-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.section-head p { margin: 0; }

/* ---------- type ---------- */

h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }

.display-xl { font-size: clamp(46px, 7.2vw, 108px); line-height: .96; font-weight: 600; letter-spacing: -0.04em; }
.display { font-size: clamp(38px, 5.2vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
.heading { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; }
.subheading { font-size: 21px; line-height: 29px; font-weight: 500; letter-spacing: -0.01em; }
.body-lg { font-size: 19px; line-height: 30px; color: var(--text-secondary); max-width: var(--measure); }
.body { color: var(--text-secondary); max-width: var(--measure); }
.caption { font-size: 13px; line-height: 20px; color: var(--text-muted); }

p { margin: 0; }
.prose { display: flex; flex-direction: column; gap: var(--space-4); color: var(--text-secondary); max-width: var(--measure); }

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.numeral {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.mono { font-family: var(--font-mono); font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background-color .3s ease;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(244, 246, 245, .72); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
.site-header .container {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-6); }
.site-nav a:not(.button) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  line-height: 24px;
  padding-block: var(--space-2);
  position: relative;
  transition: color .2s ease;
}
.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.65,0,.35,1);
}
.site-nav a:not(.button):hover { color: var(--text); }
.site-nav a:not(.button):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: calc(-1 * var(--space-2));
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}
.button:active { transform: scale(.98); }
.button--primary { background: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: var(--text); color: var(--surface); }
.button--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button--secondary:hover { border-color: var(--text); }
.button svg { width: 18px; height: 18px; flex: none; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.button:hover svg:has(path[d^="M5 12h14"]) { transform: translateX(4px); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--accent); font-weight: 500; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.text-link:hover svg, .card:hover .text-link svg { transform: translateX(4px); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: 168px 152px; }
.hero .container { position: relative; z-index: 1; pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); max-width: 760px; pointer-events: auto; }
.hero-copy .body-lg { max-width: 30em; }
.hero-copy .button-row { margin-top: var(--space-3); }

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface);
}
.hero-media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .9s ease;
  /* soften the top and bottom edges into the page */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 86%, transparent 100%);
}
/* keeps the headline readable where pieces drift behind it */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(244,246,245,.95) 0%, rgba(244,246,245,.88) 22%, rgba(244,246,245,.62) 38%, rgba(244,246,245,.3) 50%, rgba(244,246,245,.1) 58%, rgba(244,246,245,0) 66%);
}
.hero-media.is-live canvas { opacity: 1; }
/* No WebGL2: a still frame of the same scene */
.hero-media.is-still { background: url("../img/hero-still.webp") right center / auto 100% no-repeat, var(--surface); }

/* Option B: the original Pexels footage, graded into the brand (see assets/video/README.md) */
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.9);
}
.hero-media--video::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--brand-cyan);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-media--video::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: var(--brand-ink);
  opacity: .35;
  pointer-events: none;
}

/* ---------- page title (inner pages) ---------- */

.page-title { padding-block: var(--space-9) var(--space-8); }
.page-title .container { display: flex; flex-direction: column; gap: var(--space-5); }

/* ---------- cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.card p { color: var(--text-secondary); }
.card .eyebrow { color: var(--accent); }
.card .text-link { margin-top: auto; padding-top: var(--space-3); }
.card { transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background-color .3s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.service-glyph { width: 30px; height: 29px; margin-bottom: var(--space-3); }
.service-glyph .front { fill: var(--mark-front); }
.service-glyph .back { fill: var(--accent); }
.service-glyph .dim { fill: var(--line-strong); }

/* Steps: a real sequence, numbered I–III */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: none; }
.step { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--line-strong); min-width: 0; }
.step p { color: var(--text-secondary); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-8); }
.principle { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.principle p { color: var(--text-secondary); max-width: 46ch; }

/* Lists with the half-circle bullet (the sideways arch) */
.arch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.arch-list li { position: relative; padding-left: 22px; color: var(--text-secondary); }
.arch-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 11px;
  border-radius: 0 11px 11px 0;
  background: var(--accent);
}

/* Service detail rows */
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service-intro { display: flex; flex-direction: column; gap: var(--space-4); }
.service-body { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.service-note {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

/* CTA */
.cta { text-align: left; }
.cta .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.cta-copy { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; }

/* About */
.bio { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-raised);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-empty {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4);
  padding: var(--space-6);
  text-align: center;
}
.portrait-empty img { width: 72px; height: auto; }
.portrait.is-empty > img { display: none; }
.portrait.is-empty .portrait-empty { display: flex; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.fact { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }

.name-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.name-note svg { width: 48px; height: 47px; }
.name-note .front { fill: var(--mark-front); }
.name-note .back { fill: var(--accent); }

/* ---------- forms ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.book-card { position: sticky; top: calc(var(--header-height) + var(--space-5)); }

.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label, .field legend { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); padding: 0; }
.field .req { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.field select { appearance: none; background-image: none; padding-right: 36px; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-5); margin-top: var(--space-2); }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; color: var(--text-secondary); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); }
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.form-status[data-kind="success"] { color: var(--status-success); border-color: var(--status-success); }
.form-status[data-kind="error"] { color: var(--status-error); border-color: var(--status-error); }
.form-status p { color: var(--text); }

/* ---------- your list (home): pick systems and work, hand it to the contact form ---------- */

[id] { scroll-margin-top: calc(var(--header-height) + var(--space-5)); }
.picker { display: flex; flex-direction: column; gap: var(--space-7); }
.picker-groups { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); }
.picker-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker-group legend { padding: 0; margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.chip-row + .chip-row { margin-top: var(--space-3); }
.chip-row-label { margin: 0; padding-top: 11px; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.chip--more span { color: var(--text-muted); }
.chip--more:hover span, .chip--more:has(input:checked) span { color: var(--text); }
@media (max-width: 520px) { .chip-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } .chip-row-label { padding-top: 0; } }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
  padding: 10px 16px 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 15px; line-height: 22px;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip svg { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
.chip .i-check { display: none; color: var(--accent); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip:active { transform: scale(.98); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.chip:has(input:checked) .i-plus { display: none; }
.chip:has(input:checked) .i-check { display: block; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker-other { max-width: 760px; }
.picker-other .caption { margin: 0; }
.picker-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.picker-contact { max-width: none; }
.form-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.turnstile-slot:empty { display: none; }
.picker-status { gap: var(--space-1); }
.picker-status p { margin: 0; }
.picker-count { font-weight: 500; color: var(--text); }
.picker-status a { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer { padding-block: var(--space-8) var(--space-7); background: var(--surface); color: var(--text); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-7); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: var(--space-7); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-brand img { height: 28px; width: auto; align-self: flex-start; }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-5); border-top: 1px solid var(--line); }

/* ---------- ticker ---------- */

.ticker { overflow: hidden; padding-block: var(--space-6); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: var(--space-6); padding-right: var(--space-6); }
.ticker-item, .ticker-dot {
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--text);
}
.ticker-item--outline { color: transparent; -webkit-text-stroke: 1.25px var(--line-strong); }
.ticker-dot { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */

.statement { padding-block: var(--space-10); }
.statement-text {
  max-width: 24em;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: pretty;
}
.js-motion .statement-text .hw { color: var(--dim); transition: color .35s ease; }
.js-motion .statement-text .hw.is-lit { color: var(--text); }

/* ---------- motion (only when motion.js runs and motion is allowed) ---------- */

.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-reveal].is-in {
  opacity: 1;
  animation: reveal .95s cubic-bezier(.2,.65,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
@keyframes reveal { from { opacity: 0; transform: translateY(32px); } }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
.js-motion .split .w > span {
  transform: translateY(108%);
  transition: transform 1s cubic-bezier(.16,.84,.24,1);
  transition-delay: calc(var(--wi, 0) * 42ms);
}
.js-motion .split.is-in .w > span { transform: none; }

.js-motion .step { border-top-color: transparent; position: relative; }
.js-motion .step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.65,0,.35,1);
  transition-delay: calc(var(--i, 0) * 160ms);
}
.js-motion .step.is-in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .grid-4, .form-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: var(--space-4); --header-height: 64px; }
  .band { padding-block: var(--space-7); }
  .band--tight { padding-block: var(--space-7); }
  .hero { padding-block: var(--space-8) 340px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(244,246,245,.96) 0%, rgba(244,246,245,.82) 45%, rgba(244,246,245,0) 72%); }
  .page-title { padding-block: var(--space-7) var(--space-6); }
  .body-lg { font-size: 17px; line-height: 28px; }
  .grid-2, .grid-3, .steps, .principles, .service, .bio, .contact-grid, .facts, .form-row, .footer-top, .picker-groups { grid-template-columns: minmax(0, 1fr); }
  .picker-actions .button-row, .picker-actions .button { width: 100%; }
  .service { gap: var(--space-5); padding-block: var(--space-7); }
  .card { padding: var(--space-5); }
  .book-card { position: static; }
  .portrait { max-width: 280px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-height));
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-5) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-6) max(var(--space-4), env(safe-area-inset-left, 0px));
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.button) { display: block; padding-block: var(--space-3); font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .site-nav a:not(.button)::after { display: none; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
