/* shift. Dark brand surface: a green-black ground (#0e1410), panels lifted by hairlines and a soft
   green glow. Brand green (#0b6b45) carries primary actions; sage (#7db19c) carries secondary
   headlines; a brighter signal green carries live, armed and executing state. */

/* One rule for every element the page hides. A bare `display` on a selector beats the user
   agent's [hidden] rule, and per-element guards only work until someone adds the next element:
   the banner already spent a release claiming the page was read only on a page where it was not. */
[hidden] { display: none !important; }

:root {
  color-scheme: dark;

  --brand: #0b6b45;
  --brand-hi: #0f8155;
  --sage: #7db19c;

  --bg: #0e1410;
  --surface: #141c17;
  --surface-2: #18221c;
  --sunk: #0a0f0c;
  --line: #213028;
  --line-strong: #2d4136;
  --line-ctrl: #4b6557;             /* control borders and wires: 3:1 against surface */

  --ink: #f2f6f3;
  --ink-2: #a8bdb1;
  --ink-3: #82998c;

  --live: #3fd08a;
  --live-ink: #86e0b0;
  --live-soft: #15301f;
  --halt: #ff7a6b;
  --ok: var(--sage);
  --on-live: #06130c;

  --f-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-0: 0.8rem;
  --t-1: 1rem;
  --t-2: 1.25rem;
  --t-3: 1.5625rem;
  --t-4: 1.9531rem;
  --t-5: 2.4414rem;
  --t-6: 3.0518rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.875rem;
  --sp-4: 1.375rem;
  --sp-5: 2.25rem;
  --sp-6: 3.5rem;
  --sp-7: 5.5rem;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  --pad: clamp(1rem, 4vw, 2.75rem);
  --maxw: 1180px;

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 18px 40px -22px rgb(0 0 0 / 0.8);
  --shadow-3: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 30px 70px -30px rgb(0 0 0 / 0.9), 0 0 80px -40px rgb(11 107 69 / 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 120ms;
  --mid: 200ms;
  --slow: 320ms;

  --z-sticky: 20;
  --z-toast: 60;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-1);
  line-height: 1.55;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--f-mono); font-size: 0.82em; font-stretch: 85%; font-weight: 500; }

.skip {
  position: absolute;
  left: var(--pad);
  top: -3rem;
  z-index: calc(var(--z-sticky) + 1);
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  text-decoration: none;
  transform: translateY(0);
  transition: transform var(--fast) var(--ease);
}
.skip:focus { transform: translateY(3.5rem); }

/* ---------------------------------------------------------------- top bar */

.top {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.75rem var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.mark img { width: auto; height: 1.15em; display: block; }
.mark, .top > .btn { flex: 0 0 auto; }

.net {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-inline-end: auto;
  min-width: 0;
  font-size: var(--t-0);
  color: var(--ink-2);
}
.net-name { white-space: nowrap; }
.net-block {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--ink);
  transition: color var(--slow) var(--ease);
}
.net-block[data-tick] { color: var(--live-ink); }

/* Contract address. Hidden until contract.js carries a real TOKEN.address. */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ca {
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.ca-tag {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 0.7rem;
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-inline-end: 1px solid var(--line);
  white-space: nowrap;
}
.ca-soon {
  display: flex;
  align-items: center;
  /* The phone strip is full width with only two children in this state, so without this the text
     is flung to the far edge by the strip's space-between. */
  flex: 1 1 auto;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.ca-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.3rem 0.65rem;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.ca-addr, .ca-short {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  white-space: nowrap;
}
/* Narrow screens swap the full address for a short one rather than clipping it. An ellipsis on the
   end would eat the last four characters, which are exactly what people check an address by. */
.ca-short { display: none; }
.ca-act {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}
.ca-btn:hover .ca-act,
.ca-btn:focus-visible .ca-act { color: var(--live-ink); }
.ca-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 0.55rem;
  color: var(--ink-2);
  border-inline-start: 1px solid var(--line);
  transition: color var(--fast) var(--ease);
}
.ca-link:hover, .ca-link:focus-visible { color: var(--ink); }
.ca-link svg { width: 0.8rem; height: 0.8rem; display: block; }

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

.btn {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.008em;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-ctrl);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), opacity var(--fast) linear;
}
.btn:hover { border-color: var(--ink-2); background: var(--sunk); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgb(11 107 69 / 0.9), 0 1px 0 rgb(255 255 255 / 0.12) inset;
}
.btn-primary:hover { background: var(--brand-hi); border-color: var(--brand-hi); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--line-ctrl); }
.btn-light { background: #f2efe6; border-color: #f2efe6; color: #0a3d28; box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.5); }
.btn-light:hover { background: #fff; border-color: #fff; color: #0a3d28; }
.btn-lg { font-size: 1rem; padding: 0.8rem 1.35rem; border-radius: 999px; }
.btn-live { background: var(--live); border-color: var(--live); color: var(--on-live); }
.btn-live:hover { background: var(--live-ink); border-color: var(--live-ink); color: var(--on-live); }
.btn-danger:hover { border-color: var(--halt); color: var(--halt); background: var(--surface); }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { position: relative; color: transparent; }
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.8em;
  height: 0.8em;
  margin: -0.4em 0 0 -0.4em;
  border: 2px solid currentcolor;
  border-top-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: spin 620ms linear infinite;
}
.btn:not(.btn-primary)[aria-busy="true"]::after { color: var(--ink); }
@keyframes spin { to { transform: rotate(1turn); } }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--live-ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------- shell */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) var(--sp-7);
}

.sec-head { margin-bottom: var(--sp-4); }
.sec-head h2 { font-size: var(--t-3); }
.sec-head p { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.9375rem; max-width: 62ch; }

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

.hero {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-6) 0 var(--sp-6);
}

.hero-text { max-width: 44ch; }
.hero h1 {
  font-size: clamp(var(--t-4), 4.6vw, 3.4rem);
  font-weight: 850;
}
.lede {
  margin-top: var(--sp-3);
  font-size: var(--t-2);
  line-height: 1.42;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 48ch;
}
.warn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--sp-4);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.warn-tag {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.45rem;
  border-radius: var(--r-sm);
  color: var(--halt);
  border: 1px solid color-mix(in oklab, var(--halt), transparent 55%);
}

/* ---------------------------------------------------------------- routing picture */

.routing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(138px, 14vw, 188px);
  column-gap: clamp(40px, 5.5vw, 86px);
  row-gap: var(--sp-4);
  align-items: center;
  margin: 0;
  padding: clamp(1rem, 2.6vw, 1.875rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.wire { fill: none; stroke: var(--line-ctrl); stroke-width: 1.5; }
.wire[data-state="armed"] { stroke: var(--ink-3); }
.wire[data-state="ready"] { stroke: var(--live); stroke-width: 2; }
.wire[data-flash] { stroke: var(--live); stroke-width: 2.5; }
.wire { transition: stroke var(--slow) var(--ease); }
.pip { fill: var(--live); filter: drop-shadow(0 0 4px color-mix(in oklab, var(--live), transparent 45%)); }
.pip[data-side="buy"] { fill: var(--ok); }

.rails { display: flex; flex-direction: column; gap: clamp(0.5rem, 1.5vw, 1.125rem); }

.rail {
  display: grid;
  grid-template-columns: max-content minmax(1.5rem, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
}
.rail[data-hit] .rail-dot { background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.rail-id { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.rail-top { display: flex; align-items: baseline; gap: 0.55rem; white-space: nowrap; }
.rail-val { display: flex; align-items: baseline; gap: 0.35rem; }
.rail-unit {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink-3);
}
.rail-sym {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-0);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.rail[data-state="armed"] .rail-dot { background: var(--ink-3); }
.rail[data-state="ready"] .rail-dot { background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.rail[data-state="ready"] .rail-sym { color: var(--live-ink); }

.rail-price {
  font-family: var(--f-mono);
  font-stretch: 80%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 2.5vw, var(--t-4));
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color var(--slow) var(--ease);
}
.rail-price[data-tick] { color: var(--live-ink); }
.rail-price[data-empty] { color: var(--ink-3); }
.rail-drift {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  letter-spacing: 0;
}
.rail-track { height: 2px; }

.terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--sp-3);
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.term-sym { font-size: var(--t-2); font-weight: 850; letter-spacing: -0.03em; }
.term-lbl, .term-meta { font-size: 0.6875rem; color: var(--ink-2); line-height: 1.35; }
.term-lbl { margin-top: 0.15rem; }
.term-val {
  font-family: var(--f-mono);
  font-stretch: 80%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: var(--t-2);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.term-meta { font-family: var(--f-mono); font-stretch: 78%; font-size: 0.625rem; }
.term-val[data-tick] { color: var(--live-ink); }
.term-tx { margin-top: 0.3rem; font-size: 0.6875rem; color: var(--live-ink); }

.routing figcaption {
  grid-column: 1 / -1;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-2);
  max-width: 78ch;
}

/* ---------------------------------------------------------------- banner */

.banner {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-4);
  border-block: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.banner span:last-child { flex: 1 1 24ch; min-width: 0; }
.banner-tag {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.4rem;
  border-radius: var(--r-sm);
  background: var(--live-soft);
  color: var(--live-ink);
}

/* ---------------------------------------------------------------- builder */

.build { padding-top: var(--sp-5); }

/* the sentence field: one input that types into the builder below it, nothing more */
.draft { margin-bottom: var(--sp-5); }
.draft-lbl { display: block; }
.draft-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: stretch; }
.draft-in {
  flex: 1 1 24rem;
  min-width: 0;
  font: inherit;
  font-size: 1.0625rem;
  padding: 0.62rem 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-ctrl);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.draft-in::placeholder { color: var(--ink-3); }
.draft-in:hover { border-color: var(--line-strong); }
.draft-in:focus {
  outline: none;
  border-color: var(--brand-hi);
  box-shadow: 0 0 0 3px rgb(11 107 69 / 0.35);
}
.draft-row .btn { border-radius: 999px; padding: 0.5rem 1.2rem; }
.draft-help { margin: 0.55rem 0 0 1rem; font-size: 0.8125rem; color: var(--ink-3); max-width: 68ch; }

.draft-out {
  margin-top: var(--sp-3);
  padding: 0.85rem 1rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.draft-out[data-bad] {
  border-color: color-mix(in oklab, var(--halt), var(--line-strong) 55%);
  background: color-mix(in oklab, var(--surface), var(--halt) 7%);
}
.draft-said {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
/* the brand chevron, same mark as the notes below, so the echo reads as part of the page */
.draft-said::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.62em;
  margin-right: 0.55em;
  background: var(--live);
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}
.draft-out[data-bad] .draft-said { color: var(--halt); }
.draft-out[data-bad] .draft-said::before { background: var(--halt); }
.draft-notes { margin: 0.5rem 0 0; padding-left: 1.85em; list-style: none; }
.draft-notes li {
  position: relative;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 0.3rem;
}
.draft-notes li::before {
  content: "";
  position: absolute;
  left: -0.9em;
  top: 0.62em;
  width: 0.32em;
  height: 1px;
  background: var(--line-ctrl);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.seg button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.seg button:hover, .seg button:focus-visible { color: var(--ink); }
.seg button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: start;
  margin-top: var(--sp-3);
  padding: clamp(1.125rem, 2.6vw, 1.875rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

/* What the sentence resolves to right now, from the same live numbers as the hero. */
.check {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-content: start;
  font-size: 0.8125rem;
}
.check dt { color: var(--ink-2); white-space: nowrap; }
.check dd {
  margin: 0;
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.check dd[data-live] { color: var(--live-ink); }
.check .gauge { grid-column: 1 / -1; max-width: none; margin-top: 0.15rem; }
.check-note { grid-column: 1 / -1; margin: 0.2rem 0 0; font-family: var(--f-sans); font-size: 0.75rem; color: var(--ink-2); text-align: left; }

@media (min-width: 62rem) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(184px, 250px); }
  .check {
    margin: 0;
    padding: var(--sp-3) 0 0 var(--sp-4);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.say {
  font-size: clamp(1.125rem, 2.2vw, var(--t-3));
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -0.016em;
  max-width: 54ch;
}
.say .w { font-weight: inherit; }
.say .pc { margin-left: -0.22em; }
.say-fine {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 450;
  line-height: 2.1;
  letter-spacing: 0;
  color: var(--ink-2);
  max-width: 72ch;
}
.say-fine .inl { color: var(--ink); }
.hint {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  color: var(--ink-3);
}

/* the inline editable controls: part of the sentence, not a form box */
.inl {
  font: inherit;
  font-weight: 700;
  color: var(--live-ink);
  background: var(--live-soft);
  border: 0;
  border-bottom: 2px solid var(--live);
  border-radius: 5px 5px 0 0;
  padding: 0.02em 0.3em;
  margin: 0 0.04em;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.inl:hover { background: color-mix(in oklab, var(--live-soft), var(--live) 12%); }
input.inl { cursor: text; }
/* select-only combobox (ui.js): looks like part of the sentence, behaves like a listbox */
.sel {
  padding-right: 1.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2386e0b0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.42em center;
  background-size: 0.46em auto;
  text-align: left;
}
.sel[aria-expanded="true"] { background-color: color-mix(in oklab, var(--live-soft), var(--live) 18%); }

.lb {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 4px;
  max-height: min(18rem, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-ctrl);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  font-family: var(--f-sans);
  font-size: 0.9375rem;
}
.lb::backdrop { background: transparent; }
.opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
}
.opt b { font-weight: 650; }
.opt-meta {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.opt[data-active] { background: var(--sunk); }
.opt[aria-selected="true"] { background: var(--live-soft); color: var(--live-ink); }
.opt[aria-selected="true"] .opt-meta { color: var(--live-ink); }
.opt[aria-selected="true"]::after {
  content: "";
  width: 0.34em;
  height: 0.62em;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg) translate(-0.1em, 0.02em);
  align-self: center;
}

.num {
  font-family: var(--f-mono);
  font-stretch: 80%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  text-align: center;
  width: 4.4em;
  appearance: textfield;
  -moz-appearance: textfield;
}
.num::-webkit-outer-spin-button, .num::-webkit-inner-spin-button { appearance: none; margin: 0; }
.num.sm { width: 2.6em; }
.num.lg { width: 7.4em; }
.inl[data-bad] { border-bottom-color: var(--halt); background: color-mix(in oklab, var(--surface), var(--halt) 9%); color: var(--halt); }

.fielderr {
  display: inline-block;
  margin: 0 0.35em 0 0.25em;
  padding: 0.1em 0.45em;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--surface), var(--halt) 12%);
  color: var(--halt);
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: normal;
}

/* rebalance weight slider */
.wt {
  appearance: none;
  -webkit-appearance: none;
  width: 4.5rem;
  height: 1.05rem;
  margin: 0 0.15rem;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
}
.wt::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--live) 0 calc(var(--fill, 0) * 100%), var(--line-ctrl) calc(var(--fill, 0) * 100%) 100%);
}
.wt::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-ctrl); }
.wt::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--live); }
.wt::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--live);
  box-shadow: var(--shadow-1);
  transition: transform var(--fast) var(--ease);
}
.wt::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--live);
}
.wt:active::-webkit-slider-thumb { transform: scale(1.15); }
.wt:focus-visible { outline: 2px solid var(--live-ink); outline-offset: 3px; border-radius: 4px; }

.errs { margin-top: var(--sp-3); font-size: 0.875rem; color: var(--halt); line-height: 1.5; }
.errs:empty { display: none; }

.acts {
  display: flex;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.acts-note { font-size: 0.8125rem; color: var(--ink-2); flex: 1 1 18ch; min-width: 0; }
.cover { font-size: 0.875rem; color: var(--ink-2); }

.mix { display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; vertical-align: baseline; }
.mixitem { display: inline-flex; align-items: center; gap: 0; }
.mixitem .pc { font-weight: 600; margin-left: -0.2em; }
.dropmix {
  font: inherit;
  font-family: var(--f-sans);
  font-size: 0.62em;
  line-height: 1;
  margin-left: 0.2em;
  padding: 0.3em 0.4em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.dropmix { transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.dropmix:hover { color: var(--halt); border-color: var(--line-ctrl); }
.addmix {
  font: inherit;
  font-family: var(--f-sans);
  font-size: 0.62em;
  font-weight: 650;
  padding: 0.4em 0.7em;
  border: 1px dashed var(--line-ctrl);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.addmix:hover { border-color: var(--live); color: var(--live-ink); }
.mixsum {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  letter-spacing: 0;
}
.mixsum[data-bad] { color: var(--halt); }

/* ---------------------------------------------------------------- rules */

.rules { padding-top: var(--sp-6); }

.rulelist { border-top: 1px solid var(--line); }

.empty {
  padding: var(--sp-5) 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  max-width: 60ch;
}
.empty[data-busy] { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.52; } }

.mount { display: inline; }

.rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  animation: rise var(--slow) var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.rule-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rule-no {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.pill {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.45rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-ctrl);
  color: var(--ink-2);
  background: var(--surface);
  transition: background var(--mid) var(--ease), color var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.pill[data-s="ready"] { background: var(--live); border-color: var(--live); color: var(--on-live); }
.pill[data-s="locked"] { background: var(--sunk); }
.pill[data-s="executed"] { color: var(--ok); border-color: color-mix(in oklab, var(--ok), transparent 55%); }
.pill[data-s="cancelled"], .pill[data-s="paused"] { color: var(--ink-3); }

.rule-say {
  grid-column: 1;
  font-size: var(--t-2);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.016em;
  max-width: 46ch;
}
.rule-why {
  grid-column: 1;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  max-width: 62ch;
}
.rule-why b { color: var(--ink); font-weight: 650; }
.rule-meta {
  grid-column: 1;
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.rule-acts {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  align-items: start;
  gap: var(--sp-2);
}

.gauge {
  grid-column: 1;
  position: relative;
  height: 3px;
  margin-top: 0.55rem;
  max-width: 34ch;
  background: var(--sunk);
  border-radius: 2px;
  overflow: hidden;
}
.gauge span {
  position: absolute;
  inset: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  background: var(--line-ctrl);
  border-radius: 2px;
  transition: transform var(--slow) var(--ease), background var(--slow) var(--ease);
}
.gauge[data-near] span { background: var(--live); }

/* ---------------------------------------------------------------- notes */

.notes { padding-top: var(--sp-6); }
.notes h2 { font-size: var(--t-3); margin-bottom: var(--sp-4); }

.noteset {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
.noteset dt {
  grid-column: 1;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}
.noteset dd {
  grid-column: 2;
  margin: 0;
  padding: var(--sp-4) 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  max-width: 80ch;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- toast, footer */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: var(--z-toast);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  max-width: min(46rem, calc(100vw - 2rem));
  padding: 0.7rem 1rem;
  transform: translate(-50%, 0);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: var(--shadow-3);
  animation: toastin 240ms var(--ease) both;
}
.toast[data-kind="bad"] { background: var(--halt); color: #1a0806; }
.toast a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-4) var(--pad) var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.foot-net { font-family: var(--f-mono); font-stretch: 78%; font-size: 0.6875rem; color: var(--ink-3); }

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

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(17rem, 25rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* The full address needs roughly 470px of header to itself. Below a roomy desktop it gets the
   short form on the single row, which is whole, rather than a long one with its tail clipped. */
@media (max-width: 62rem) {
  .ca-addr { display: none; }
  .ca-short { display: inline; }
}

@media (max-width: 47rem) {
  .routing {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-5);
  }
  .terminal { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.8rem; }
  .term-lbl { flex: 1 1 100%; order: 3; }
  .term-meta { flex: 1 1 100%; order: 4; }
  .term-tx { order: 5; }
  .rail { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .noteset { grid-template-columns: minmax(0, 1fr); }
  .noteset dt { padding: var(--sp-3) 0 0; border-bottom: 0; }
  .noteset dd { grid-column: 1; padding: 0.3rem 0 var(--sp-3); }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .rule-acts { grid-row: auto; grid-column: 1; margin-top: var(--sp-3); }
  .say { max-width: none; }
  .top { gap: var(--sp-3); }
  .net-name { display: none; }
  /* Four things do not fit one phone row. The address takes its own strip under the logo row, in
     its short form: a full 42 character address still overruns a 360px screen even alone, and a
     shortened one that is whole beats a full one with its tail cut off. Copy hands over all 42. */
  .top { flex-wrap: wrap; }
  .ca { order: 9; flex: 1 0 100%; justify-content: space-between; }
  .ca-short { font-size: 0.75rem; }
}

@media (max-width: 30rem) {
  /* Three wrapped rows at this width, and the button otherwise strands itself on the left of
     its own row. Let it take the row. */
  .top > .btn { flex: 1 0 auto; }
  .say { font-size: 1.0625rem; line-height: 1.85; }
  .num { width: 3.9em; }
  .num.lg { width: 6.4em; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .btn[aria-busy="true"]::after { animation: none; border-top-color: currentcolor; opacity: 0.4; }
}

/* ================================================================ brand layer */

body {
  background:
    radial-gradient(1200px 620px at 78% -8%, rgb(11 107 69 / 0.22), transparent 62%),
    var(--bg);
  background-repeat: no-repeat;
}

.eyebrow {
  font-family: var(--f-mono);
  font-stretch: 78%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

.h1-2 { color: var(--sage); }

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-5);
  min-height: min(82vh, 760px);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero-text { max-width: 40rem; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.lede {
  margin-top: var(--sp-4);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-5); }
.warn { margin-top: var(--sp-4); font-size: 0.875rem; }
.warn-tag { border-radius: 999px; padding: 0.22rem 0.6rem; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  pointer-events: none;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }

@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 4vw, 4rem); }
  .hero-art { width: min(100%, 470px); justify-self: end; margin-right: -2rem; }
}
@media (max-width: 47rem) {
  .hero { min-height: 0; padding-top: 2rem; }
  .hero-art { order: -1; width: 62%; max-width: 260px; margin-bottom: -1rem; }
}

/* ---------------------------------------------------------------- sections */

.sec-head h2, .notes h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.05; }
.sec-head { margin-bottom: var(--sp-5); }
.live { padding-top: var(--sp-5); }
.build { padding-top: var(--sp-7); }
.rules, .notes { padding-top: var(--sp-7); }

.routing, .panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line);
}
.routing { border-radius: 22px; }
.terminal { background: var(--sunk); border-color: var(--line-strong); }
.term-sym { color: var(--sage); }

.seg { border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; padding: 0.45rem 1.05rem; }
.seg button[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgb(11 107 69 / 0.9); }

.inl { border-radius: 6px 6px 0 0; }
.lb { background: var(--surface-2); }

.noteset dt { color: var(--ink); }
.noteset dt::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.62em;
  margin-right: 0.55em;
  background: var(--brand);
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}

/* ---------------------------------------------------------------- band */

.band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 380px;
  margin-top: var(--sp-7);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 26px;
  overflow: hidden;
  background: #015a3e;
  isolation: isolate;
}
.band-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.band-text { max-width: 30rem; color: #fff; }
.band .eyebrow { color: #bfe3cf; }
.band h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.02; letter-spacing: -0.04em; }
.band .h1-2 { color: #bfe3cf; }
.band p:not(.eyebrow) { margin: var(--sp-3) 0 var(--sp-5); color: #d7eee1; font-size: 1.0625rem; max-width: 36ch; }
@media (max-width: 47rem) {
  .band { align-items: start; min-height: 520px; }
  .band-art { object-position: 72% 100%; height: 58%; top: auto; }
}

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

.foot {
  display: block;
  max-width: none;
  margin: var(--sp-7) 0 0;
  padding: 0;
  border-top: 0;
  background: url("assets/wave.webp") center bottom / 100% auto no-repeat;
  min-height: clamp(240px, 26vw, 420px);
}
.foot-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-5) var(--pad) clamp(7rem, 16vw, 13rem);
  border-top: 1px solid var(--line);
}
.mark-lg { font-size: 2.4rem; }
.foot-tag { margin-top: var(--sp-3); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; }
.foot-tag span { color: var(--sage); }
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
@media (max-width: 47rem) { .foot { background-size: 220% auto; } }

@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* alignment + headline fit */
.top { padding-inline: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.9rem); }
.hero-text { max-width: 46rem; }
@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr); }
}

/* ================================================================ motion */

.top { transition: box-shadow var(--slow) var(--ease), background var(--slow) var(--ease); }
.top[data-scrolled] { box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.9); }

/* hero art: glow + 3D tilt stage */
.hero-art { perspective: 900px; }
.hero-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(63 208 138 / 0.32), rgb(11 107 69 / 0.12) 42%, transparent 70%);
  filter: blur(28px);
  z-index: -1;
}
.hero-tilt {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.motion .hero-glow { animation: glow 5.5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.55; transform: scale(0.92); } }

/* hero entrance: staggered rise on load */
.motion .hero-text > *, .motion .hero-art {
  animation: enter 900ms var(--ease) both;
}
.motion .hero-text > :nth-child(1) { animation-delay: 60ms; }
.motion .hero-text > :nth-child(2) { animation-delay: 140ms; }
.motion .hero-text > :nth-child(3) { animation-delay: 260ms; }
.motion .hero-text > :nth-child(4) { animation-delay: 360ms; }
.motion .hero-text > :nth-child(5) { animation-delay: 440ms; }
.motion .hero-art { animation: enter-art 1400ms var(--ease) 120ms both; }
@keyframes enter { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
@keyframes enter-art { from { opacity: 0; transform: translateY(30px) scale(0.94); filter: blur(10px); } }

/* headline second line: sage sheen sweeps across once on load */
.motion .h1-2 {
  background: linear-gradient(100deg, var(--sage) 0 40%, #d6f5e4 50%, var(--sage) 60% 100%) 100% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 2.4s var(--ease) 700ms both;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* scroll reveals (only when JS added .reveal, so no-JS pages stay visible) */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.noteset dd.reveal { transition-delay: 80ms; }

/* primary buttons: light sweep on hover */
.btn-primary, .btn-light { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before, .btn-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.28) 50%, transparent 70%) -120% 0 / 60% 100% no-repeat;
}
.btn-primary:hover::before, .btn-light:hover::before,
.btn-primary:focus-visible::before, .btn-light:focus-visible::before {
  background-position: 220% 0;
  transition: background-position 700ms var(--ease);
}
.btn-primary[aria-busy="true"]::before { display: none; }
.btn-lg { transition: transform var(--mid) var(--ease), background var(--fast) var(--ease), box-shadow var(--mid) var(--ease); }
.btn-lg:hover, .btn-lg:focus-visible { transform: translateY(-2px); }

/* band: the key presses down when the band arrives, and on hover */
.band-art { transition: transform 900ms var(--ease); transform-origin: 75% 60%; }
.motion .band:not(.in) .band-art { transform: scale(1.06); }
.band:hover .band-art, .band:focus-within .band-art { transform: scale(1.02) translateY(3px); }

/* footer wave drifts slowly */
.motion .foot { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 45% bottom; } to { background-position: 55% bottom; } }
.motion .foot { background-size: 112% auto; }
@media (max-width: 47rem) { .motion .foot { background-size: 240% auto; } }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .foot, .hero-text > *, .hero-art, .h1-2 { animation: none !important; }
  .reveal, .motion .reveal { opacity: 1; transform: none; }
  .h1-2 { background: none; -webkit-text-fill-color: var(--sage); color: var(--sage); }
  .hero-tilt { transform: none; }
}
.hero-art { isolation: isolate; }
