/* Hinge Physio sample site. Direction A, Range of motion. Tokens from copy/brand-kit.md */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --pool: #0C2B30;
  --deep: #071D21;
  --chalk: #F1F0EB;
  --band: #E9D84A;
  --mist: #9DBABC;
  --slate: #4F6668;
  --line-dim: #1E464D; /* undrawn spine track, decorative only */

  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Atkinson Hyperlegible Next', Verdana, sans-serif;

  --t-hero: clamp(3rem, 6.6vw, 7.5rem);
  --t-h1: clamp(2.5rem, 6vw, 6rem);
  --t-h2: clamp(2rem, 4vw, 3.5rem);
  --t-num: clamp(4rem, 9vw, 9rem);
  --t-h3: 1.5rem;
  --t-lead: 1.25rem;
  --t-body: 1.125rem;
  --t-small: 0.9375rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-panel: 20px; --r-card: 12px; --r-btn: 12px;

  --ease-range: cubic-bezier(0.17, 0.4, 0.02, 0.99);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: 40px;       /* space for the spine on phones */
  --spine-x: 18px;
  --pad: 20px;
  --maxw: 1280px;
}
@media (min-width: 900px) {
  :root { --gutter: 96px; --spine-x: 44px; --pad: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scroll-padding-bottom: 96px; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }
  ::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-range); }
}
body {
  margin: 0;
  background: var(--pool);
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 118%; font-weight: 650; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 var(--s5); text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--chalk); }
.small, small { font-size: var(--t-small); color: var(--mist); }

:focus-visible { outline: 3px solid var(--band); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible, .book-panel :focus-visible { outline-color: var(--pool); }

.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--band); color: var(--pool); padding: var(--s3) var(--s4); border-radius: var(--r-btn); font-weight: 700; }
.skip:focus { top: var(--s4); }

.sample-bar { margin: 0; max-width: none; padding: 6px var(--pad); background: var(--deep); color: var(--mist); font-size: var(--t-small); text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--r-btn); border: 2px solid transparent;
  font: 700 1.0625rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 56px; padding: 0 var(--s6); font-size: 1.125rem; }
.btn-band { background: var(--band); color: var(--pool); }
.btn-pool { background: var(--pool); color: var(--chalk); }
.btn-quiet { background: transparent; color: var(--chalk); border-color: var(--mist); }
@media (hover: hover) and (pointer: fine) {
  .btn-band:hover { background: var(--chalk); }
  .btn-pool:hover { background: var(--deep); }
  .btn-quiet:hover { border-color: var(--chalk); background: var(--deep); }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s6); }
.text-link { font-weight: 700; color: var(--chalk); }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--pad); max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; min-height: 44px; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--s1); list-style: none; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); text-decoration: none; border-radius: 8px; color: var(--chalk); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--band); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.header-actions { display: flex; gap: var(--s2); align-items: center; }
.header-actions .btn-band, .header-call { display: none; }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .header-actions .btn-band { display: inline-flex; }
}
@media (min-width: 1320px) { .header-call { display: inline-flex; } }

.menu { padding: var(--s4) var(--pad) var(--s6); border-bottom: 1px solid var(--line-dim); }
.menu ul { list-style: none; display: grid; gap: var(--s1); }
.menu a { display: flex; align-items: center; min-height: 52px; font-family: var(--f-display); font-stretch: 118%; font-weight: 650; font-size: 1.75rem; text-decoration: none; }
.menu-hours { color: var(--mist); margin-top: var(--s5); }
@media (min-width: 1100px) { .menu { display: none !important; } }

/* ---------- stage and spine ---------- */
.stage { position: relative; padding-left: var(--gutter); padding-right: var(--pad); max-width: calc(var(--maxw) + var(--gutter) + var(--pad)); margin: 0 auto; }
.spine { position: absolute; top: 0; bottom: 0; left: var(--spine-x); width: 2px; background: var(--line-dim); pointer-events: none; }
.spine-fill { position: absolute; inset: 0; background: var(--mist); transform-origin: top; transform: scaleY(var(--p, 1)); }
.js-motion .spine-fill { transform: scaleY(0); }
.joint { position: relative; padding-block: var(--s8); }
@media (min-width: 900px) { .joint { padding-block: var(--s9); } }
.joint::before {
  content: ''; position: absolute; left: calc(var(--spine-x) - var(--gutter) - 8px); top: calc(var(--s8) + 10px);
  width: 18px; height: 18px; border-radius: 50%; background: var(--pool); border: 2px solid var(--mist);
  transition: background-color 150ms ease, border-color 150ms ease;
}
@media (min-width: 900px) { .joint::before { top: calc(var(--s9) + 14px); width: 22px; height: 22px; left: calc(var(--spine-x) - var(--gutter) - 10px); } }
.joint.is-reached::before { background: var(--band); border-color: var(--band); }

/* 3D spine (desktop, motion allowed): replaces the flat line and nodes */
@media (min-width: 1100px) {
  body.spine-3d { --gutter: 232px; --spine-x: 0px; }
  body.spine-3d .spine { left: 0; width: 200px; background: none; }
  body.spine-3d .spine-fill { display: none; }
  body.spine-3d .joint::before { display: none; }
  .spine-sticky { position: sticky; top: 0; height: 100vh; width: 200px; }
  .spine-sticky canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 500ms ease; }
  body.spine-3d-live .spine-sticky canvas { opacity: 1; }
}

/* ---------- hero ---------- */
.hero { display: grid; gap: var(--s6); padding-top: var(--s6); }
.hero-title { font-size: var(--t-hero); font-stretch: 125%; font-weight: 700; line-height: 0.94; letter-spacing: -0.035em; margin-bottom: var(--s5); max-width: 12ch; }
.hero .lead { max-width: 44ch; }
.today { margin-top: var(--s4); color: var(--mist); }
.today strong { color: var(--chalk); }
.hero-figure { position: relative; aspect-ratio: 1; max-width: 300px; width: 100%; justify-self: end; margin-top: calc(-1 * var(--s8)); }
@media (max-width: 599px) { .hero-figure { display: none; } }
.hero-figure img, .hero-figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-figure canvas { opacity: 0; transition: opacity 400ms ease; }
.hero-figure.is-live canvas { opacity: 1; }
.hero-figure.is-live img { opacity: 0; transition: opacity 400ms ease 200ms; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; min-height: min(86vh, 880px); padding-top: var(--s7); }
  .hero-figure { max-width: none; margin: 0; justify-self: stretch; }
  .hero::before { top: calc(var(--s7) + 30px); }
}

/* ---------- what brings you in ---------- */
.brings-list { list-style: none; display: grid; border-top: 1px solid var(--line-dim); }
.brings-list a {
  display: flex; align-items: center; min-height: 72px; padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-dim); text-decoration: none;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.015em;
}
.brings-list a::after { content: ''; margin-left: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mist); flex: none; transition: background-color 120ms ease, border-color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .brings-list a:hover::after { background: var(--band); border-color: var(--band); } }
@media (min-width: 900px) { .brings-list { grid-template-columns: 1fr 1fr; column-gap: var(--s7); } }

/* ---------- first visit ---------- */
.first { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 900px) { .first { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.steps { list-style: none; counter-reset: s; display: grid; gap: var(--s5); margin-bottom: var(--s7); }
.steps li { counter-increment: s; position: relative; padding-left: 3.75rem; max-width: 60ch; min-height: 2.5rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.1em; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--band); }
.figures { display: grid; gap: var(--s5); margin: var(--s6) 0; }
@media (min-width: 600px) { .figures { grid-template-columns: 1fr 1fr; } }
.figures p { margin: 0; display: grid; gap: var(--s2); }
.fig-n { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: var(--t-num); line-height: 0.9; letter-spacing: -0.04em; color: var(--band); font-variant-numeric: tabular-nums; }
.fig-l { color: var(--mist); max-width: 26ch; }

.photo { display: block; border-radius: var(--r-panel); overflow: hidden; background: var(--deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* rolling numbers */
.roll { display: inline-flex; white-space: nowrap; }
.roll-d { display: inline-block; height: 1em; overflow: hidden; line-height: 1; vertical-align: top; }
.roll-col { display: flex; flex-direction: column; transform: translateY(0); }
.roll-col span { height: 1em; display: block; }
.roll.is-rolled .roll-col { transition: transform 1100ms var(--ease-range); transform: translateY(calc(var(--d) * -1em)); }

/* ---------- services stack ---------- */
.services-stack > h2 { margin-bottom: var(--s6); }
.svc-panel {
  display: grid; gap: var(--s5); background: var(--deep); border-radius: var(--r-panel); padding: var(--s4);
  margin-bottom: var(--s5);
}
.svc-panel .photo { border-radius: var(--r-card); }
.svc-panel .photo img { aspect-ratio: 4 / 3; }
.svc-copy { padding: 0 var(--s2) var(--s4); }
.svc-copy h3 { font-size: var(--t-h2); }
.svc-copy h3 a { text-decoration: none; }
.svc-meta { color: var(--mist); }
@media (min-width: 900px) {
  .svc-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s7); padding: var(--s5); min-height: 78vh; position: sticky; top: 24px; }
  .svc-panel .photo, .svc-panel .photo img { height: 100%; }
  .svc-panel .photo img { aspect-ratio: auto; max-height: calc(78vh - 48px); }
  .svc-copy { padding: var(--s6) var(--s6) var(--s6) 0; }
}
@media (prefers-reduced-motion: reduce) { .svc-panel { position: static; min-height: 0; } }
.svc-more { margin-top: var(--s7); }
.svc-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); }
.svc-more a, .chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  border: 1.5px solid var(--mist); border-radius: 10px; text-decoration: none; font-weight: 700;
  transition: background-color 120ms ease, color 120ms ease;
}
@media (hover: hover) and (pointer: fine) { .svc-more a:hover, .chips a:hover { background: var(--chalk); color: var(--pool); } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0 var(--s5); }
.chips-paper a { border-color: var(--slate); color: var(--pool); }
@media (hover: hover) and (pointer: fine) { .chips-paper a:hover { background: var(--pool); color: var(--chalk); } }

/* ---------- team ---------- */
.team-cards { list-style: none; display: grid; gap: var(--s4); margin-bottom: var(--s5); }
@media (min-width: 640px) { .team-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .team-cards { grid-template-columns: repeat(4, 1fr); } }
.team-card { background: var(--deep); border-radius: var(--r-panel); padding: var(--s5); position: relative; }
.team-card h2, .team-card h3 { font-size: 1.5rem; margin: var(--s5) 0 var(--s1); }
.team-card h2 a, .team-card h3 a { text-decoration: none; }
.team-card h2 a::after, .team-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-panel); }
.team-card:focus-within { outline: 3px solid var(--band); outline-offset: 3px; }
.team-card a:focus-visible { outline: none; }
.role { color: var(--band); font-weight: 700; margin-bottom: var(--s3); }
.initials { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 5rem; line-height: 0.85; letter-spacing: -0.05em; color: var(--mist); }
.initials-xl { font-size: clamp(7rem, 18vw, 15rem); color: var(--band); }

/* ---------- paper (Chalk reading panels) ---------- */
.paper { background: var(--chalk); color: var(--pool); border-radius: var(--r-panel); padding: var(--s7) var(--s5); margin-block: var(--s7); }
@media (min-width: 900px) { .paper { padding: var(--s8) var(--s7); } }
.paper .small, .paper small, .paper caption { color: var(--slate); }
.paper a { color: var(--pool); }
.paper .text-link { color: var(--pool); }
.fees-home { padding-block: var(--s7); }
.fee-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s6); font-size: 1.0625rem; }
.fee-table caption { text-align: left; font-size: var(--t-small); padding-bottom: var(--s3); }
.fee-table th, .fee-table td { text-align: left; padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 1px solid #C9CCC6; vertical-align: top; }
.fee-table thead th { font-size: var(--t-small); color: var(--slate); font-weight: 700; }
.fee-table tbody th { font-weight: 700; }
.fee-table tbody th span { display: block; font-weight: 400; color: var(--slate); font-size: var(--t-small); }
.fee-table .price { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 1.75rem; line-height: 1; white-space: nowrap; }
.fee-table td:nth-child(2) { white-space: nowrap; }

.reading-body { max-width: 860px; }
.reading-body.wide { max-width: none; }
.reading-body h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: var(--s7); }
.reading-body h2:first-child, .reading-body section:first-child h2 { margin-top: 0; }
.fund { border-top: 2px solid var(--pool); margin-top: var(--s7); padding-top: var(--s5); scroll-margin-top: 24px; }
.fund h2 { margin-top: 0; }
.fund dl { display: grid; gap: var(--s4); margin: 0; }
@media (min-width: 900px) { .fund dl { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.fund dt { font-weight: 700; margin-bottom: var(--s1); }
.fund dd { margin: 0; }
.info-note { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid #C9CCC6; font-size: var(--t-small); color: var(--slate); }
.flags { background: var(--pool); color: var(--chalk); border-radius: var(--r-card); padding: var(--s5); margin: var(--s6) 0; }
.flags h2 { margin-top: 0; font-size: 1.75rem; }
.flags a { color: var(--chalk); }
.flags ul { margin: 0 0 var(--s4) var(--s5); }
.flags li { margin-bottom: var(--s1); }
.flags strong { color: var(--band); }
.byline { color: var(--mist); }

/* ---------- title bands and inner pages ---------- */
.title-band { padding-top: var(--s7); }
.title-band h1 { font-stretch: 125%; font-weight: 700; max-width: 14ch; }
.title-band .lead { max-width: 52ch; }
.crumb { margin-bottom: var(--s3); color: var(--mist); }
.svc-hero { display: grid; gap: var(--s6); padding-top: var(--s7); }
@media (min-width: 900px) { .svc-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.svc-hero h1 { font-stretch: 125%; font-weight: 700; }
.prose-dark { max-width: 900px; }
.ticks { list-style: none; display: grid; gap: var(--s3); }
.ticks li { position: relative; padding-left: var(--s6); max-width: 62ch; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%; background: var(--band); }
.ticks-no li::before { background: transparent; border: 2px solid var(--mist); }
.people { list-style: none; display: grid; gap: var(--s3); }
.svc-grid { list-style: none; display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { position: relative; }
.svc-card .photo { border-radius: var(--r-card); margin-bottom: var(--s4); }
.svc-card .photo img { aspect-ratio: 4 / 3; }
.svc-card h2 { font-size: 1.75rem; margin-bottom: var(--s2); }
.svc-card h2 a { text-decoration: none; }
.svc-card h2 a::after { content: ''; position: absolute; inset: 0; }
.svc-card:focus-within { outline: 3px solid var(--band); outline-offset: 6px; border-radius: var(--r-card); }
.svc-card a:focus-visible { outline: none; }
.svc-card p { color: var(--mist); }
.cond-list { list-style: none; border-top: 1px solid var(--line-dim); }
.cond-list a { display: grid; gap: var(--s1); padding: var(--s5) 0; border-bottom: 1px solid var(--line-dim); text-decoration: none; }
.cond-name { font-family: var(--f-display); font-stretch: 118%; font-weight: 650; font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.05; }
.cond-line { color: var(--mist); max-width: 70ch; }
.profile { display: grid; gap: var(--s6); padding-top: var(--s7); align-items: end; }
@media (min-width: 900px) { .profile { grid-template-columns: auto 1fr; gap: var(--s8); } }
.details { display: grid; gap: var(--s4); margin: 0; }
.details div { display: grid; gap: var(--s1); padding-bottom: var(--s4); border-bottom: 1px solid var(--line-dim); }
@media (min-width: 700px) { .details div { grid-template-columns: 14rem 1fr; } }
.details dt { color: var(--mist); }
.details dd { margin: 0; }

/* ---------- location ---------- */
.loc-grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .loc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.map { position: relative; display: block; border-radius: var(--r-panel); overflow: hidden; text-decoration: none; }
.map svg { width: 100%; }
.map-cta { position: absolute; left: var(--s4); bottom: var(--s4); background: var(--chalk); color: var(--pool); font-weight: 700; padding: var(--s2) var(--s4); border-radius: 8px; }
.loc-details { margin: 0; display: grid; gap: var(--s4); }
.loc-details div { padding-bottom: var(--s4); border-bottom: 1px solid var(--line-dim); }
.loc-details dt { color: var(--mist); font-size: var(--t-small); }
.loc-details dd { margin: 0; }

/* ---------- book panel ---------- */
.book-panel { background: var(--band); color: var(--pool); border-radius: var(--r-panel); padding: var(--s7) var(--s5); margin-block: var(--s8) var(--s9); display: grid; gap: var(--s5); }
.book-panel::before { top: var(--s7); left: calc(var(--spine-x) - var(--gutter) - 8px); }
@media (min-width: 900px) { .book-panel { grid-template-columns: 1.3fr 1fr; align-items: end; padding: var(--s8) var(--s7); } .book-panel::before { left: calc(var(--spine-x) - var(--gutter) - 10px); top: var(--s8); } }
.book-panel h2 { font-stretch: 125%; font-weight: 700; margin-bottom: var(--s4); }
.book-panel p { margin-bottom: var(--s3); }
.book-panel a:not(.btn) { color: var(--pool); font-weight: 700; }
.book-panel .small { color: var(--pool); }
.book-panel-actions .btn { margin-bottom: var(--s4); min-height: 56px; padding: 0 var(--s6); font-size: 1.125rem; }

/* ---------- book page ---------- */
.book-types { list-style: none; display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.book-types li { display: grid; grid-template-columns: 1fr auto; gap: var(--s3) var(--s5); align-items: center; background: var(--deep); border-radius: var(--r-panel); padding: var(--s5); border: 2px solid transparent; }
.book-types li.is-suggested { border-color: var(--band); }
.book-types h3 { margin-bottom: var(--s1); }
.book-types p { margin: 0; color: var(--mist); }
.book-types .price { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 2rem; color: var(--chalk); }
.book-types .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) { .book-types li { grid-template-columns: 1fr auto auto; } .book-types .btn { grid-column: auto; } }
.book-note { background: var(--chalk); color: var(--pool); border-radius: var(--r-panel); padding: var(--s5); margin-bottom: var(--s5); }
.book-note a { color: var(--pool); font-weight: 700; }

/* ---------- form ---------- */
.contact-form { display: grid; gap: var(--s5); max-width: 640px; }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 700; }
.opt { font-weight: 400; color: var(--mist); }
.field input, .field textarea {
  font: inherit; color: var(--pool); background: var(--chalk); border: 2px solid var(--mist); border-radius: 10px;
  padding: var(--s3) var(--s4); min-height: 52px; width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--band); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--band); border-width: 3px; }
.err { margin: 0; color: var(--band); font-weight: 700; }
.err::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--band); margin-right: var(--s2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); padding: var(--s8) var(--pad) calc(var(--s8) + 72px); }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--s8); } }
.footer-grid, .site-footer > p { max-width: var(--maxw); margin-inline: auto; }
.footer-grid { display: grid; gap: var(--s6); margin-bottom: var(--s7); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-h { font-size: 1.125rem; font-stretch: 112%; margin-bottom: var(--s3); color: var(--mist); }
.site-footer ul { list-style: none; display: grid; gap: var(--s1); }
.site-footer ul a { display: inline-flex; min-height: 32px; align-items: center; }
.site-footer .brand { margin-bottom: var(--s4); }
.emergency { border-top: 1px solid var(--line-dim); padding-top: var(--s5); font-weight: 700; }
.legal { color: var(--mist); font-size: var(--t-small); }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; gap: var(--s2); padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--deep); border-top: 1px solid var(--line-dim); }
.mobile-bar .btn { min-height: 52px; }
@media (min-width: 1100px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:active { transform: none; }
}

/* =====================================================================
   Scene layer (rebuild after "make it like activetheory.net/work")
   One dark stage, a fixed WebGL scene behind everything, caps display type.
   ===================================================================== */
:root { --night: #050B0D; --veil: rgba(5, 11, 13, 0.86); }
body { background: var(--night); }
.sample-bar { background: #020708; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

canvas.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: none; pointer-events: none; }
body.scene-live canvas.scene { display: block; }
.sample-bar, .site-header, .menu, main, .site-footer { position: relative; z-index: 1; }
.site-footer { background: rgba(2, 7, 8, 0.94); }
body.home.scene-live .spine { display: none; }
body.home.scene-live .joint::before { display: none; }
body.home.scene-live .stage { padding-left: var(--pad); }

/* display type: squared, wide, capitals, like a techno stage */
h1, h2, .display { text-transform: uppercase; font-stretch: 125%; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-stretch: 118%; }
.display { font-family: var(--f-display); font-size: clamp(2.6rem, 6.8vw, 7rem); line-height: 0.92; margin: 0 0 var(--s5); max-width: 13ch; text-wrap: balance; }

/* hero over the scene */
.hero-scene { position: relative; min-height: calc(100vh - 120px); display: grid; grid-template-rows: 1fr auto; padding-block: var(--s7) var(--s6); }
.hero-copy { align-self: center; max-width: 46rem; }
.hero-copy .lead { max-width: 40ch; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.filter { display: grid; gap: var(--s3); margin-top: var(--s7); }
.filter-q { margin: 0; color: var(--mist); }
.filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.filter a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--f-display); font-stretch: 118%; font-weight: 600; font-size: 1.125rem; text-transform: uppercase; color: var(--chalk); transition: color 120ms ease, transform 160ms var(--ease-out); }
.filter a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--mist); margin-right: var(--s2); transition: background-color 120ms ease, border-color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .filter a:hover { color: var(--band); } .filter a:hover::before { background: var(--band); border-color: var(--band); } }
@media (max-width: 899px) {
  body.scene-live .hero-copy { background: var(--veil); border-radius: var(--r-panel); padding: var(--s5); margin-top: 38vh; }
  body.scene-live .filter { background: var(--veil); border-radius: var(--r-panel); padding: var(--s4) var(--s5); }
}

/* services orbit: static grid by default, a pinned overlay when the scene is live */
.orbit { position: relative; padding-block: var(--s8); }
.orbit-h { font-size: var(--t-h2); }
.orbit-list { list-style: none; display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 700px) { .orbit-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .orbit-list { grid-template-columns: repeat(3, 1fr); } }
.orbit-item .photo { border-radius: var(--r-card); margin-bottom: var(--s4); }
.orbit-item .photo img { aspect-ratio: 4 / 3; }
.orbit-count { display: none; }
.orbit-title { font-size: 1.75rem; text-transform: uppercase; margin-bottom: var(--s2); }
.orbit-title a { text-decoration: none; }
.orbit-line { color: var(--chalk); }
.orbit-meta { color: var(--mist); }
.orbit .actions { margin-top: var(--s4); }
.orbit-index { display: none; }

body.scene-live .orbit { height: calc(var(--n) * 70vh + 100vh); padding: 0; }
body.scene-live .orbit-sticky { position: sticky; top: 0; height: 100vh; }
body.scene-live .orbit-h { position: absolute; top: var(--s7); left: 0; font-size: var(--t-small); font-family: var(--f-body); letter-spacing: 0; color: var(--mist); text-transform: none; font-weight: 700; }
body.scene-live .orbit-list { display: block; }
body.scene-live .orbit-item { position: absolute; left: 0; bottom: 9vh; max-width: 30rem; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-range), visibility 0s linear 260ms; }
body.scene-live .orbit-item[data-active] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.scene-live .orbit-item .photo { display: none; }
body.scene-live .orbit-count { display: block; margin: 0 0 var(--s2); color: var(--mist); font-variant-numeric: tabular-nums; }
body.scene-live .orbit-count span { color: var(--band); font-weight: 700; }
body.scene-live .orbit-title { font-size: clamp(2.25rem, 3.6vw, 3.75rem); line-height: 0.95; margin-bottom: var(--s4); max-width: 11ch; }
body.scene-live .orbit-item { text-shadow: 0 1px 14px rgba(0,0,0,.75); }
@media (min-width: 900px) { body.scene-live .orbit-item { max-width: min(30rem, 30vw); } }
body.scene-live .orbit-index { display: grid; position: absolute; right: 0; top: 50%; transform: translateY(-50%); list-style: none; gap: 2px; text-align: right; }
body.scene-live .orbit-index button { font: 600 0.9375rem/1.2 var(--f-body); color: var(--mist); background: none; border: 0; padding: 6px 0; min-height: 32px; cursor: pointer; transition: color 120ms ease; }
body.scene-live .orbit-index button[aria-current="true"] { color: var(--band); }
@media (hover: hover) and (pointer: fine) { body.scene-live .orbit-index button:hover { color: var(--chalk); } }
@media (max-width: 899px) {
  body.scene-live .orbit-item { bottom: 84px; right: 0; max-width: none; background: var(--veil); border-radius: var(--r-panel); padding: var(--s5); }
  body.scene-live .orbit-index { display: none; }
  body.scene-live .orbit-title { font-size: 2rem; }
}

/* first visit with three big numbers */
.first { align-items: center; }
.figures-xl { display: grid; gap: var(--s6); margin: 0; }
.figures-xl p { border-top: 1px solid var(--line-dim); padding-top: var(--s4); }
@media (min-width: 900px) { .figures-xl { grid-template-columns: 1fr; } }

/* panels read clearly over the dimmed scene */
.team-card, .book-types li { background: rgba(7, 29, 33, 0.92); }
.svc-panel { background: rgba(7, 29, 33, 0.92); }

/* motion toggle (anything that moves for more than 5 seconds can be paused).
   It lives in the phone action bar; on desktop the bar shrinks to just this button. */
.mobile-bar { grid-template-columns: 1fr auto auto; }
.motion-toggle[aria-pressed="true"] { border-color: var(--band); color: var(--band); }
.motion-toggle[hidden] { display: none; }
@media (min-width: 1100px) {
  .mobile-bar { display: block; left: auto; right: var(--s4); bottom: var(--s4); padding: 0; background: none; border: 0; }
  .mobile-bar > a { display: none; }
  .mobile-bar .motion-toggle { min-height: 40px; background: rgba(2, 7, 8, 0.9); font-size: 0.9375rem; }
}
@media (max-width: 899px) {
  body.scene-live .orbit-item { padding: var(--s4); }
  body.scene-live .orbit-title { font-size: 1.6rem; margin-bottom: var(--s2); }
  body.scene-live .orbit-line { margin-bottom: var(--s2); }
  body.scene-live .orbit .actions { margin-top: var(--s3); }
}
/* inner pages: the 3D spine sits at the right edge, so the flat line steps aside */
body.scene-live:not(.home) .spine, body.scene-live:not(.home) .joint::before { display: none; }
body.scene-live:not(.home) .stage { padding-left: var(--pad); }
@media (max-width: 1099px) { .mt-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .mobile-bar .btn { padding: 0 var(--s4); } }
