/* =====================================================================
   ADVNC8 — shared system
   One source for the instrument panel: tokens, shell, type, motion,
   controls, the element grid, specimens, forms. Used by advnc8.co and
   both practices (Threshold, Hotline). Page-only styles stay inline.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --canvas:    #e6e7eb;
  --canvas-2:  #dcdde2;
  --paper:     #ffffff;
  --hush:      #f3f4f7;
  --line:      #ebecef;
  --line-2:    #e0e2e7;
  --ink:       #15161b;
  --ink-2:     #2c2f36;
  --ink-3:     #5a5e66;
  --mute:      #65686f;            /* AA on paper and hush */

  --neon:      #9eff2e;  --neon-glow:  rgba(158,255,46,.55);
  --coral:     #ff5436;  --coral-glow: rgba(255,84,54,.45);
  --blue:      #4d6bff;  --blue-glow:  rgba(77,107,255,.5);
  --pink:      #ff4dd0;  --pink-glow:  rgba(255,77,208,.5);
  --amber:     #ff8a2e;  --amber-glow: rgba(255,138,46,.5);
  --blue-band: #3f5cf0;            /* white text passes AA on this, not on --blue */
  --coral-txt: #ad2c1c;            /* coral as text on paper */

  --grid-line:   rgba(20,22,30,.10);
  --on-ink-mute: rgba(255,255,255,.58);
  --on-ink-line: rgba(255,255,255,.14);

  --sans:  "Futura", "Futura PT", "Jost", "Trebuchet MS", "Century Gothic", system-ui, sans-serif;
  --serif: "DM Sans", "Jost", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out:    cubic-bezier(.2,.7,.2,1);
  --ease-glide:  cubic-bezier(.22,1,.36,1);
  --ease-settle: cubic-bezier(.16,1,.3,1);

  --shadow-pill:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 -1px 0 rgba(20,20,30,.04) inset,
    0 10px 26px -10px rgba(20,20,30,.18),
    0 2px 6px -2px rgba(20,20,30,.08);
  --shadow-pill-hover:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 -1px 0 rgba(20,20,30,.04) inset,
    0 20px 40px -14px rgba(20,20,30,.28),
    0 4px 12px -4px rgba(20,20,30,.12);
  --shadow-ink:
    0 1px 0 rgba(255,255,255,.07) inset,
    0 -2px 4px rgba(0,0,0,.25) inset,
    0 18px 32px -12px rgba(20,20,30,.55),
    0 4px 10px -2px rgba(20,20,30,.30);
  --shadow-shell:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 60px 120px -50px rgba(20,20,30,.22),
    0 10px 30px -10px rgba(20,20,30,.06);
  --shadow-well:
    0 1px 2px rgba(20,20,30,.06) inset,
    0 0 0 1px rgba(20,20,30,.03) inset;

  interpolate-size: allow-keywords;
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas:    #0a0b0e;
  --canvas-2:  #06070a;
  --paper:     #1a1c22;
  --hush:      #14161c;
  --line:      #2a2c34;
  --line-2:    #383b44;
  --ink:       #f1f2f5;
  --ink-2:     #cdcfd5;
  --ink-3:     #8a8d96;
  --mute:      #9296a0;
  --coral-txt: #ff8a76;
  --grid-line:   rgba(255,255,255,.09);
  --on-ink-mute: rgba(20,22,28,.66);
  --on-ink-line: rgba(20,22,28,.16);
  --shadow-pill:
    0 1px 0 rgba(255,255,255,.045) inset,
    0 -1px 0 rgba(0,0,0,.4) inset,
    0 10px 26px -10px rgba(0,0,0,.7),
    0 2px 6px -2px rgba(0,0,0,.5);
  --shadow-pill-hover:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 -1px 0 rgba(0,0,0,.45) inset,
    0 22px 44px -14px rgba(0,0,0,.85),
    0 6px 14px -4px rgba(0,0,0,.6);
  --shadow-ink:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 -1px 0 rgba(0,0,0,.05) inset,
    0 18px 32px -12px rgba(0,0,0,.6),
    0 4px 10px -2px rgba(0,0,0,.4);
  --shadow-shell:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 60px 120px -50px rgba(0,0,0,.7),
    0 10px 30px -10px rgba(0,0,0,.5);
  --shadow-well:
    0 1px 2px rgba(0,0,0,.5) inset,
    0 0 0 1px rgba(255,255,255,.02) inset;
}

/* Category signals. Pages map their own categories onto these five voices;
   a colour never appears without a text label beside it. */
.c-lime  { --c: var(--neon);  --c-glow: var(--neon-glow);  --c-band: var(--neon);      --c-on: #15161b; }
.c-coral { --c: var(--coral); --c-glow: var(--coral-glow); --c-band: var(--coral);     --c-on: #15161b; }
.c-blue  { --c: var(--blue);  --c-glow: var(--blue-glow);  --c-band: var(--blue-band); --c-on: #ffffff; }
.c-pink  { --c: var(--pink);  --c-glow: var(--pink-glow);  --c-band: var(--pink);      --c-on: #15161b; }
.c-amber { --c: var(--amber); --c-glow: var(--amber-glow); --c-band: var(--amber);     --c-on: #15161b; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none;
  background: var(--c, var(--ink-3)); box-shadow: 0 0 6px var(--c-glow, transparent);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  padding: 20px;
}
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
img, svg { display: block; }
::selection { background: var(--ink); color: var(--paper); }
em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.012em; color: var(--ink-2);
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 28px; top: 28px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; transform: translateY(-200%); opacity: 0;
  transition: transform .2s var(--ease-out), opacity .2s;
}
.skip:focus { transform: none; opacity: 1; }

html.theme-anim, html.theme-anim * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}

.shell {
  background: var(--paper);
  border-radius: 28px;
  max-width: 1480px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-shell);
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 1024px) { .container { padding: 0 40px; } }
@media (max-width: 720px) {
  body { padding: 8px; }
  .shell { border-radius: 18px; }
  .container { padding: 0 22px; }
}

/* ---------- Type ---------- */
.label, .eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.kv .k {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
}
.kv .v {
  display: block; margin-top: 5px; font-size: 14.5px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.35;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }
.reveal[data-delay="5"] { transition-delay: .32s; }

.lineclip { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.lineclip > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
}
.lineclip + .lineclip > span { transition-delay: .08s; }
.in .lineclip > span { transform: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--neon-glow), 0 0 6px var(--neon-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(158,255,46,0), 0 0 6px var(--neon-glow); }
  100% { box-shadow: 0 0 0 0 rgba(158,255,46,0), 0 0 6px var(--neon-glow); }
}

/* ---------- Top bar ---------- */
header.top { padding: 22px 0 0; position: relative; z-index: 30; }
.top-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; gap: 24px;
}
.top-left { display: flex; align-items: center; min-height: 48px; }
.top-right { display: flex; justify-content: flex-end; align-items: flex-start; gap: 14px; }
.cta-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.top-inner > .nav { margin-top: 2px; }

.wordmark { display: inline-flex; align-items: center; gap: 11px; height: 48px; border-radius: 10px; }
.wordmark img { height: 20px; width: auto; }
.wordmark .logo-dark { display: none; }
[data-theme="dark"] .wordmark .logo-light { display: none; }
[data-theme="dark"] .wordmark .logo-dark  { display: block; }
.wordmark .name {
  font-family: var(--sans); font-weight: 500; font-size: 23px; letter-spacing: -0.035em; color: var(--ink);
}
/* Practice glyph: an ink key with one signal bar — the threshold, the line. */
.glyph {
  width: 26px; height: 26px; border-radius: 8px; background: var(--ink); flex: none;
  position: relative; box-shadow: var(--shadow-ink);
}
.glyph::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 2px; border-radius: 2px;
  background: var(--c, var(--neon)); box-shadow: 0 0 6px var(--c-glow, var(--neon-glow));
}

.clock {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; gap: 10px; align-items: center; white-space: nowrap;
}
.clock .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 var(--neon-glow), 0 0 6px var(--neon-glow);
  animation: pulse 2.4s ease-out infinite;
}
.clock .city { color: var(--ink-2); font-weight: 500; }

.nav {
  display: inline-flex; background: var(--paper); padding: 5px; border-radius: 999px;
  box-shadow: var(--shadow-pill); gap: 2px; position: relative;
}
.nav-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  background: var(--hush); border-radius: 999px;
  opacity: 0; transform: translate3d(var(--pill-x, 0), 0, 0) scale(.86);
  pointer-events: none; z-index: 0;
  transition:
    opacity .22s var(--ease-out),
    transform .52s var(--ease-glide),
    width .52s var(--ease-glide);
}
.nav:hover .nav-pill, .nav:focus-within .nav-pill, .nav.has-current .nav-pill {
  opacity: 1; transform: translate3d(var(--pill-x, 0), 0, 0) scale(1);
}
.nav a {
  position: relative; z-index: 1;
  font-weight: 500; font-size: 13px; letter-spacing: -0.005em;
  color: var(--ink-3); padding: 9px 18px; border-radius: 999px; transition: color .25s;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }

@media (max-width: 1080px) {
  .top-inner { grid-template-columns: 1fr auto; }
  .nav, .clock { display: none; }
}
@media (max-width: 560px) {
  .top-inner { gap: 10px; }
  .top-right { gap: 8px; }
  .top-right .btn-ink { padding: 11px 15px; }
  .top-right .btn-ink .arrow { display: none; }
  .wordmark .name { font-size: 20px; }
  .wordmark { gap: 9px; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  background: var(--paper); border: 0; padding: 12px 20px; border-radius: 999px; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow-pill); white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-pill-hover); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-ink); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); box-shadow: var(--shadow-ink); }
.btn .arrow { transition: transform .25s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.btn-icon .icon-sun { display: none; }
[data-theme="dark"] .btn-icon .icon-sun { display: block; }
[data-theme="dark"] .btn-icon .icon-moon { display: none; }

.link-mono {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); background: none; border: 0; padding: 6px 0; cursor: pointer;
  transition: color .2s, gap .25s var(--ease-out);
}
.link-mono:hover { color: var(--ink); gap: 14px; }

/* ---------- Hero ---------- */
section.hero { padding: 76px 0 72px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px; align-items: center;
}
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }
.hero h1 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(44px, 6.2vw, 90px);
  line-height: 0.95; letter-spacing: -0.038em;
  margin: 0; max-width: 11.5ch; text-wrap: balance; color: var(--ink);
}
.hero h1 em { letter-spacing: -0.02em; }
.hero-lede {
  margin: 28px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink-2);
  max-width: 44ch; letter-spacing: -0.005em;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-meta {
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 14px 36px;
  justify-content: start; max-width: 620px;
}
.hero-meta .v { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 560px) { .hero-meta { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
section.band { padding: 128px 0 136px; position: relative; }
section.band.hush { background: var(--hush); }
@media (max-width: 720px) { section.band { padding: 76px 0 84px; } section.hero { padding: 48px 0 60px; } }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px;
  align-items: end; margin-bottom: 64px;
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; } }
.section-head h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(38px, 5vw, 74px); line-height: 0.97; letter-spacing: -0.032em;
  margin: 20px 0 0; text-wrap: balance; max-width: 15ch;
}
.section-head h2 em { letter-spacing: -0.015em; }
.section-head .lede {
  font-size: 17px; color: var(--ink-2); max-width: 52ch; margin: 0; letter-spacing: -0.005em;
}

/* Raised card — the default lifted surface */
.card {
  background: var(--paper); border-radius: 22px; padding: 30px 28px 32px;
  box-shadow: var(--shadow-pill);
}
.card-hover { transition: transform .3s var(--ease-out), box-shadow .3s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-pill-hover); }

/* Mono tag pill */
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); background: var(--hush);
  padding: 6px 11px; border-radius: 999px;
}
:where(.band.hush) .tag { background: var(--canvas); }

/* Method steps (shared by all three pages) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; }
.step .role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.step h3 { font-weight: 500; font-size: 23px; line-height: 1.18; letter-spacing: -.025em; margin: 20px 0 14px; text-wrap: balance; }
.step p { margin: 0 0 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.step .tag { margin-top: auto; align-self: flex-start; }

/* ---------- Element grid ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; align-items: center; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: -.005em;
  background: var(--paper); border-radius: 999px; color: var(--ink-2); border: 0;
  box-shadow: var(--shadow-pill);
}
.swatch .dot { width: 11px; height: 11px; }
button.swatch { cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s, color .2s, background .2s, opacity .25s; }
button.swatch:hover { transform: translateY(-1px); box-shadow: var(--shadow-pill-hover); color: var(--ink); }
button.swatch:active { transform: scale(.97); }
.swatch[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-ink); }
.swatch[data-dim="true"] { opacity: .45; }
.legend .count {
  margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute);
}
@media (max-width: 720px) { .legend .count { margin-left: 0; width: 100%; } }

.table-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .table-wrap { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.grid .spacer { aspect-ratio: 1 / 1; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; } .grid .spacer { display: none; } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 420px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; } }
.grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

.el {
  aspect-ratio: 1 / 1; min-width: 0; background: var(--paper); border: 0; border-radius: 16px;
  padding: 11px 12px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; user-select: none; color: var(--ink); font: inherit; text-align: left;
  box-shadow: var(--shadow-pill);
  transition: transform .25s var(--ease-out), box-shadow .2s, background .2s, color .2s, opacity .35s, filter .35s;
}
.grid-4 .el { padding: 14px 15px; }
@media (max-width: 720px) { .el, .grid-4 .el { padding: 9px 10px; border-radius: 12px; } }
.el:hover { transform: translateY(-2px); box-shadow: var(--shadow-pill-hover); }
.el:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.el[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-ink); }
.el[aria-pressed="true"] .el-num, .el[aria-pressed="true"] .el-name { color: var(--on-ink-mute); }
.el[data-dim="true"] {
  opacity: .6; transform: scale(.97); filter: grayscale(1);
  background: var(--hush); box-shadow: none;
}
.el[data-dim="true"] .el-sym { color: var(--ink-3); }
.el[data-dim="true"] .dot { background: var(--ink-3); box-shadow: none; }
.el[data-dim="true"]:hover { opacity: .85; transform: scale(.98); box-shadow: var(--shadow-pill); }
.el-num {
  font-family: var(--mono); font-size: clamp(8.5px, 1.05vw, 10px); letter-spacing: .08em; color: var(--mute);
  display: flex; justify-content: space-between; align-items: center;
}
.el-sym { display: block; font-weight: 500; font-size: clamp(18px, 4.2vw, 42px); line-height: 1; letter-spacing: -.04em; }
.grid-4 .el-sym { font-size: clamp(24px, 4.6vw, 48px); }
.el-name {
  font-family: var(--mono); font-size: clamp(8px, 1.1vw, 9.5px); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.2; margin-top: 3px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gridreveal .el { opacity: 0; transform: translateY(8px); }
.gridreveal.grid-in .el { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.gridreveal.grid-in .el[data-dim="true"] { opacity: .6; transform: scale(.97); }

.detail {
  position: sticky; top: 24px; background: var(--paper); border-radius: 22px;
  min-height: 460px; overflow: hidden; box-shadow: var(--shadow-pill);
}
@media (max-width: 1024px) { .detail { position: static; min-height: 0; } }
.det-band {
  padding: 22px 26px 26px; display: flex; flex-direction: column; min-height: 236px; gap: 14px;
  background: var(--c-band, var(--hush)); color: var(--c-on, var(--ink-3));
}
.det-band-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.det-band-sym { font-weight: 500; font-size: 92px; line-height: .88; letter-spacing: -.05em; margin-top: auto; }
.det-band-name { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.18; letter-spacing: -.005em; }
.det-band.empty .det-band-sym {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 28px; letter-spacing: -.005em; line-height: 1.2; color: var(--ink-2);
}
.det-body { padding: 26px 26px 30px; }
.det-desc { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.det-rows {
  margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.det-pair {
  margin-top: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mute);
}
.det-pair b { color: var(--ink); font-weight: 500; }
.det-empty-body {
  padding: 26px 26px 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute);
}
.det-anim { animation: detIn .5s var(--ease-out) both; }
@keyframes detIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Install order — the sequence under a four-element grid */
.grid-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.track { padding: 22px 24px 24px; }
.track-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.track ol::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1px; background: var(--line-2);
}
.track li { position: relative; padding-top: 22px; padding-right: 10px; }
.track li .dot { position: absolute; top: 1px; left: 1px; width: 9px; height: 9px; transition: transform .35s var(--ease-glide), box-shadow .35s; }
.track li .wk { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: block; }
.track li .nm { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-3); display: block; margin-top: 4px; transition: color .25s; }
.track li .pays { font-size: 12.5px; color: var(--mute); display: block; margin-top: 4px; line-height: 1.4; }
.track li.is-current .nm { color: var(--ink); }
.track li.is-current .dot { transform: scale(1.5); box-shadow: 0 0 0 4px var(--paper), 0 0 10px var(--c-glow); }
@media (max-width: 560px) {
  .track ol { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .track ol::before { display: none; }
}

/* ---------- Specimens ---------------------------------------------------
   Imagery built from the product itself: what a guest, patient or
   homeowner actually sees, played once when it scrolls into view.
   Sequenced children carry data-at (ms); the runner adds .is-on. */
.specimen { margin: 0; position: relative; }
.spec-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin: 0 6px 14px; min-height: 24px;
}
.spec-cap .l { display: inline-flex; align-items: center; gap: 10px; }
.spec-cap .dot { --c: var(--neon); --c-glow: var(--neon-glow); width: 7px; height: 7px; }
.specimen.is-playing .spec-cap .dot { animation: pulse 1.6s ease-out infinite; }
.spec-replay { opacity: 0; pointer-events: none; transition: opacity .4s, color .2s, gap .25s var(--ease-out); padding: 2px 0; }
.specimen.is-done .spec-replay { opacity: 1; pointer-events: auto; }
.spec-replay .g { display: inline-block; transition: transform .5s var(--ease-glide); }
.spec-replay:hover .g { transform: rotate(-180deg); }

.spec-well {
  background: var(--hush); border-radius: 28px; padding: 22px;
  box-shadow: var(--shadow-well);
}
:where(.band.hush) .spec-well { background: var(--canvas); }
.spec-card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-pill); padding: 22px 22px 20px; }
.spec-foot {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 16px 6px 0;
}
.spec-foot .kv .v { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.spec-note { font-size: 12.5px; color: var(--mute); margin: 14px 6px 0; line-height: 1.5; max-width: 52ch; }

[data-seq] [data-at] {
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), background .3s, color .3s, box-shadow .3s;
}
[data-seq] [data-at].is-on { opacity: 1; transform: none; }
[data-seq] [data-at].is-off { opacity: 0; transform: none; height: 0; margin: 0; padding: 0; overflow: hidden; }
[data-seq].is-static [data-at] { opacity: 1; transform: none; transition: none; }

/* A token that stands in for the client's own name */
.tok {
  display: inline-block; font-family: var(--mono); font-size: .78em; font-style: normal;
  letter-spacing: .06em; text-transform: uppercase; color: inherit; opacity: .8;
  border: 1px dashed currentColor; border-radius: 6px; padding: 0 .45em; line-height: 1.5;
  vertical-align: .08em;
}

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .35; animation: typing 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }
.caret::after {
  content: ""; display: inline-block; width: 1.5px; height: 1em; background: currentColor;
  margin-left: 1px; vertical-align: -0.12em; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .flabel {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px;
}
.field .opt-note { letter-spacing: .1em; text-transform: none; font-size: 10.5px; }
.input {
  width: 100%; background: var(--hush); border: 1px solid transparent; border-radius: 12px;
  padding: 13px 15px; font-family: var(--sans); font-size: 15px; letter-spacing: -.005em;
  color: var(--ink); outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
:where(.band.hush) .input { background: var(--canvas); }
.input::placeholder { color: var(--mute); opacity: 1; }
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: var(--ink); background: var(--paper); }
select.input {
  cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--coral-txt); }
.field-err {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--coral-txt);
  margin-top: 7px; min-height: 0;
}
.field-err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt {
  position: relative; display: inline-flex;
}
.pill-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-opt span, .opt {
  display: inline-flex; align-items: center; padding: 11px 18px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s, transform .25s var(--ease-out), box-shadow .25s;
}
.pill-opt:hover span, .opt:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.pill-opt input:checked + span, .opt[aria-checked="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-ink);
  animation: optPress .35s var(--ease-settle);
}
.pill-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@keyframes optPress { 0% { transform: scale(1); } 45% { transform: scale(.94); } 100% { transform: scale(1); } }

.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.form-fine { font-size: 12.5px; color: var(--mute); max-width: 40ch; line-height: 1.45; margin: 0; }
.form-status { font-size: 13.5px; color: var(--coral-txt); margin: 14px 0 0; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status a, .form-fine a { text-decoration: underline; text-underline-offset: 3px; }
.btn.is-sending { pointer-events: none; }
.btn.is-sending .arrow { animation: sending 1s var(--ease-out) infinite; }
@keyframes sending { 0% { transform: translateX(-4px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(6px); opacity: 0; } }

/* Inline pill form (single field + ink button) */
.inline-form {
  display: flex; align-items: center; background: var(--paper); border-radius: 999px;
  padding: 6px 6px 6px 24px; box-shadow: var(--shadow-pill); max-width: 520px; gap: 10px;
  transition: box-shadow .25s;
}
.inline-form:focus-within { box-shadow: var(--shadow-pill-hover), 0 0 0 1.5px var(--ink); }
.inline-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-family: var(--sans); font-size: 15px; padding: 12px 0; color: var(--ink);
}
.inline-form input::placeholder { color: var(--mute); }
.inline-form .input, .inline-form .input:hover, .inline-form .input:focus {
  background: transparent; border-color: transparent; border-radius: 0; padding: 12px 0;
}
.inline-form + .form-status, .inline-form ~ .form-status { margin-top: 12px; }
@media (max-width: 460px) {
  .inline-form { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 8px 8px 8px 18px; }
  .inline-form .btn { width: 100%; }
}

/* Done state — the sealed check */
.done { display: none; }
.is-done > .done { display: block; animation: detIn .5s var(--ease-out) both; }
.is-done > .undone { display: none; }
.seal {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-ink);
  animation: sealIn .55s var(--ease-settle) both;
}
.seal svg { width: 24px; height: 24px; stroke: var(--paper); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .55s cubic-bezier(.5,0,.2,1) .25s forwards; }
@keyframes sealIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- Practices (cross-links between the three sites) ---------- */
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .practices { grid-template-columns: 1fr; } }
.practice {
  display: flex; flex-direction: column; gap: 0; color: inherit;
}
.practice .p-head { display: flex; align-items: center; gap: 12px; }
.practice .p-name { font-weight: 500; font-size: 26px; letter-spacing: -.03em; }
.practice .p-for { margin-left: auto; }
.practice h3 {
  font-weight: 500; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.2; letter-spacing: -.024em;
  margin: 26px 0 0; text-wrap: balance; max-width: 26ch; flex: 1;
}
.practice .p-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.practice .p-go { margin-top: 28px; align-self: flex-start; }
.practice:hover .p-go { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-ink); }
.practice:hover .p-go .arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
footer.foot-wrap { border-top: 1px solid var(--line); }
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap;
  padding: 26px 0 30px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--ink); }
.copy { position: relative; }
.copy .copied {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px);
  background: var(--ink); color: var(--paper); padding: 5px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 10px; letter-spacing: .12em; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease-glide);
}
.copy.is-copied .copied { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.input:focus-visible { outline: none; }

/* ---------- Reduced motion: everything visible, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .lineclip > span, .gridreveal .el, [data-seq] [data-at] {
    transition: none !important; transform: none !important; opacity: 1 !important;
  }
  [data-seq] [data-at].is-off { display: none; }
  .clock .live, .specimen .dot, .typing i, .caret::after { animation: none !important; }
  .det-anim, .seal, .seal svg, .is-done > .done { animation: none !important; }
  .seal svg { stroke-dashoffset: 0; }
  .btn, .el, .swatch, .card-hover, .nav-pill { transition-duration: .01s !important; }
}
