/* Rotten Apples Circuit 1.1.0, restyled to the rabit.sh look (child theme 1.0.5.32).
   Layout and interaction are Circuit's (device ring, tendril, price scan, intake, dock).
   Colors, type, wordmark, device photos, and the drip-skull + edge-trace parallax are rabit.sh's.

   Light (Apple-style): page #f5f5f7, text #1d1d1f, muted #6e6e73, hairline #d2d2d7,
     blue #0071e3 only for primary actions and links.
   Dark: bg #000000, surface #0a0a0a, text #ffffff, muted rgba(255,255,255,.72), line rgba(255,255,255,.25).
     Buttons neutral (off-white fill, black text). Lime #90f444 only for small details
     (dots, heading bars, node index, focus rings). Other small markers amber #ffb02e, sky #5ac8fa, red #ff5a52.
   <html data-theme="light|dark"> is set before first paint by the inline boot script (inc/look.php). */

/* Self-hosted fonts, SIL OFL (assets/fonts/OFL-Inter.txt, OFL-Quicksand.txt). Same files as rabit.sh. */
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Quicksand;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens: light (default) ---------- */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --ra-bg: #f5f5f7;
  --ra-surface: #ffffff;
  --ra-fg: #1d1d1f;
  --ra-muted: #6e6e73;
  --ra-line: #d2d2d7;
  --ra-accent: #0071e3;        /* primary actions and links only */
  --ra-accent-hover: #0077ed;
  --ra-on-accent: #ffffff;
  --ra-fill: #e8e8ed;          /* neutral secondary buttons, chips */
  --ra-fill-hover: #dcdce1;
  --ra-strong: #1d1d1f;        /* selected node / chip fill */
  --ra-on-strong: #ffffff;
  --ra-detail: #0071e3;        /* small details: heading bars, node index */
  --ra-danger: #d70015;
  --ra-dot-lime: #34c759;
  --ra-dot-amber: #ff9f0a;
  --ra-dot-sky: #0071e3;
  --ra-dot-red: #ff3b30;
  --ra-glass: rgba(255, 255, 255, 0.72);
  --ra-glass-line: rgba(0, 0, 0, 0.08);
  --ra-node: rgba(255, 255, 255, 0.9);
  --ra-ring: rgba(29, 29, 31, 0.18);
  --ra-vein: rgba(29, 29, 31, 0.07);
  --ra-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --ra-focus-color: #0071e3;
  --ra-radius: 18px;
  --ra-font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ra-font-accent: Quicksand, var(--ra-font);
  --dock-h: 4.6rem;
  --focus: 3px solid var(--ra-focus-color);
}
/* Page gutter matches rabit.sh (.ra-wrap): the edge traces live in it. */
body { --gutter: max(20px, 6vw); }
@media (min-width: 800px) {
  body { --gutter: clamp(40px, 10vw, 160px); }
}

/* ---------- Tokens: dark ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  background: #000;
  --ra-bg: #000000;
  --ra-surface: #0a0a0a;
  --ra-fg: #ffffff;
  --ra-muted: rgba(255, 255, 255, 0.72);
  --ra-line: rgba(255, 255, 255, 0.25);
  --ra-accent: #ededed;        /* buttons are neutral in dark: off-white fill, black text */
  --ra-accent-hover: #ffffff;
  --ra-on-accent: #000000;
  --ra-fill: rgba(255, 255, 255, 0.10);
  --ra-fill-hover: rgba(255, 255, 255, 0.18);
  --ra-strong: #ededed;
  --ra-on-strong: #000000;
  --ra-detail: #90f444;        /* lime: small details only */
  --ra-danger: #ff5a52;
  --ra-dot-lime: #90f444;
  --ra-dot-amber: #ffb02e;
  --ra-dot-sky: #5ac8fa;
  --ra-dot-red: #ff5a52;
  --ra-glass: rgba(0, 0, 0, 0.72);
  --ra-glass-line: rgba(255, 255, 255, 0.25);
  --ra-node: rgba(10, 10, 10, 0.92);
  --ra-ring: rgba(255, 255, 255, 0.25);
  --ra-vein: rgba(255, 255, 255, 0.08);
  --ra-shadow: none;
  --ra-focus-color: #90f444;
}

/* Smooth colour change only around a toggle click (theme-toggle.js adds the class ~300 ms). */
@media (prefers-reduced-motion: no-preference) {
  html.ra-theme-fade, html.ra-theme-fade *, html.ra-theme-fade *::before, html.ra-theme-fade *::after {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, fill .25s ease, stroke .25s ease !important;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-bottom: 6rem; background: var(--ra-bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ra-bg);
  color: var(--ra-fg);
  font-family: var(--ra-font);
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: calc(var(--dock-h) + 1.5rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .rail { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .rail { top: 46px; }
}

a { color: var(--ra-accent); }
a:hover { color: var(--ra-accent-hover); }
html[data-theme="dark"] main a:not(.button):not(.node):not(.core),
html[data-theme="dark"] .colophon a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.45); }

p { margin: 0 0 0.8rem; }

h1, h2, h3 {
  font-family: var(--ra-font);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 0.6rem;
  color: var(--ra-fg);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 12ch; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ra-accent);
  color: var(--ra-on-accent);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

/* ---------- Parallax background (rabit.sh site.css, verbatim geometry) ----------
   Faint drip skull + edge circuit traces. Fixed behind the page, pointer-events none,
   overflow hidden. Offsets live INSIDE this clipped layer, so nothing can widen the page.
   motion.js moves .ra-drip-bg-shift and .ra-drip-traces together (transform only). */
.ra-drip-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ra-drip-bg-shift {
  position: absolute;
  left: -5vw;
  right: auto;
  top: 0;
  margin: 0;
  width: max(106vw, calc(122vh * 1600 / 2002));
  max-width: none;
  height: auto;
  opacity: 0.04;
  will-change: transform;
}
.ra-drip-bg-shift img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.ra-drip-traces {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 122vh; /* JS raises this to match the skull */
  min-height: 122vh;
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 799px) {
  .ra-drip-bg-shift {
    left: -6vw;
    width: max(108vw, calc(128vh * 1600 / 2002));
    will-change: auto;
  }
  .ra-drip-traces {
    height: 128vh;
    min-height: 128vh;
    will-change: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ra-drip-bg-shift,
  .ra-drip-traces {
    will-change: auto;
    transform: none !important;
  }
  .ra-drip-traces {
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* Circuit traces from RA_Front.psd layer "c1" (rabit.sh). Two clusters on each edge,
   mirrored, kept in the page gutter. Shown in BOTH modes (the 1.0.5.31 dark.css rule
   that hid .ra-drip-traces is intentionally not carried over). */
.ra-trace-slot {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  width: min(10vw, 160px);
  height: calc(min(10vw, 160px) * 2.2);
  top: 5%;
}
@media (max-width: 799px) {
  .ra-trace-slot {
    width: max(18px, 5vw);
    height: calc(max(18px, 5vw) * 2.4);
    top: 12%;
  }
  .ra-trace-slot.is-lower { top: 58%; }
}
.ra-trace-slot.is-left { left: 0; }
.ra-trace-slot.is-right {
  right: 0;
  transform: scaleX(-1);
  transform-origin: center center;
}
.ra-trace-slot.is-lower { top: 56%; }
.ra-trace-slot.is-left.is-lower {
  transform: scaleY(-1);
  transform-origin: center center;
}
.ra-trace-slot.is-right.is-lower {
  transform: scale(-1, -1);
  transform-origin: center center;
}
.ra-trace-art {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 230%;
  height: auto;
  max-width: none;
  margin: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
  background: none;
}
.ra-trace-art.is-gray { opacity: 0.5; }
.ra-trace-art.is-black {
  top: 4px;
  left: 3px;
  opacity: 0.14;
}
/* Dark (rabit.sh dark.css): skull flips to white, a touch stronger; traces keep the gray copy
   as a quiet light-gray line on black and drop the black duplicate. */
html[data-theme="dark"] .ra-drip-bg-shift { opacity: 0.07; }
html[data-theme="dark"] .ra-drip-bg-shift img { filter: invert(1); }
html[data-theme="dark"] .ra-trace-art.is-black,
html[data-theme="dark"] .ra-footer-trace-art.is-black { display: none; }
html[data-theme="dark"] .ra-trace-art.is-gray { opacity: 0.3; }
html[data-theme="dark"] .ra-footer-trace-art.is-gray { opacity: 0.3; }

/* Circuit's own vein lines stay as structure, recolored per mode. */
.veins {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.veins path {
  fill: none;
  stroke: var(--ra-vein);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.rail, main, .dock, .colophon { position: relative; z-index: 1; }

/* ---------- Rail: frosted bar with the rabit.sh wordmark ---------- */
.rail {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem var(--gutter);
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--ra-glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--ra-glass-line);
}
.mark {
  display: flex;
  align-items: center;
  color: var(--ra-fg);
  text-decoration: none;
  flex: none;
}
.mark:hover { color: var(--ra-fg); }
.mark-svg {
  display: block;
  width: auto;
  height: 46px;
}
.rail-place {
  margin: 0;
  color: var(--ra-muted);
  font-family: var(--ra-font-accent);
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
}
.rail-links { display: flex; gap: 1.4rem; }
.rail-links a,
.rail-call,
.rail-theme {
  color: var(--ra-muted);
  font-family: var(--ra-font-accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.rail-links a:hover,
.rail-links a[aria-current="page"],
.rail-call:hover,
.rail-theme:hover { color: var(--ra-fg); }
.rail-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ra-detail); }
.rail-call { color: var(--ra-fg); }

/* Theme control (rabit.sh dark.css): hidden without JS, quiet Auto/Light/Dark suffix. */
html:not(.ra-motion) .ra-theme-link { display: none; }
.ra-theme-link { cursor: pointer; }
.ra-theme-link .ra-theme-state { display: inline-block; margin-left: .45em; font-size: .78em; font-weight: 400; letter-spacing: .02em; opacity: .62; text-transform: none; }
.ra-theme-link .ra-theme-state::before { content: "\00b7\00a0"; }

/* ---------- Home field: copy + device ring ---------- */
.field {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.05fr);
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 2.2rem var(--gutter) 1rem;
  min-height: calc(100vh - 8rem);
}

.kicker {
  font-family: var(--ra-font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--ra-muted);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ra-detail);
  flex: none;
}
.kicker:empty::before { display: none; }

.lede { font-size: 1.2rem; max-width: 36rem; color: var(--ra-muted); }
.hours-inline { color: var(--ra-muted); font-size: 0.95rem; }

.organism {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: min(660px, 100%);
  height: min(660px, 92vw);
  margin-inline: auto;
  justify-self: center;
}
.field-copy,
.tendril { grid-column: 1; }

/* Engraved-skull phone from the rabit.sh hero, sitting inside the ring under the nodes. */
.organism-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  margin: -23.7% 0 0 -31%;   /* centre a 1696x1296 image */
  pointer-events: none;
  will-change: transform;
}
.organism-hero img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.14));
}
html[data-theme="dark"] .organism-hero img {
  opacity: 0.95;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.06));
}

.organism-ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed var(--ra-ring);
  border-radius: 50%;
  animation: spin 80s linear infinite;
}

.core, .node {
  position: absolute;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: var(--ra-fg);
}

.core {
  left: 50%;
  top: 50%;
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: var(--ra-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--ra-line);
  box-shadow: var(--ra-shadow);
  padding: 0.6rem;
}
.core:hover, .core:focus-visible { border-color: var(--ra-fg); color: var(--ra-fg); }
.core-kicker { display: block; color: var(--ra-muted); font-size: 0.82rem; font-family: var(--ra-font-accent); font-weight: 600; }
.core-label { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }

.node {
  width: 7.6rem;
  min-height: 4.6rem;
  padding: 0.5rem 0.6rem 0.65rem;
  border-radius: var(--ra-radius);
  background: var(--ra-node);
  border: 1px solid var(--ra-line);
  box-shadow: var(--ra-shadow);
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 0.45rem;
  align-items: center;
  animation: drift 7s ease-in-out infinite;
}
.node-photo {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  display: block;
}
html[data-theme="dark"] .node-photo,
html[data-theme="dark"] .sheet-photo {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.07));
}
.node:nth-child(odd) { animation-delay: -2s; }
.node-index { grid-column: 2; color: var(--ra-detail); font-family: var(--ra-font-accent); font-weight: 700; font-size: 0.72rem; }
.node-label { grid-column: 2; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.03em; line-height: 1.1; }
.node-kicker { grid-column: 1 / -1; color: var(--ra-muted); font-size: 0.74rem; line-height: 1.2; margin-top: 0.3rem; }
.node:hover, .node:focus-visible { border-color: var(--ra-fg); color: var(--ra-fg); }
.node[aria-expanded="true"] {
  background: var(--ra-strong);
  color: var(--ra-on-strong);
  border-color: var(--ra-strong);
}
.node[aria-expanded="true"] .node-kicker { color: var(--ra-on-strong); opacity: 0.75; }
.node[aria-expanded="true"] .node-index { color: var(--ra-on-strong); }
html[data-theme="light"] .node[aria-expanded="true"] .node-index { color: #2997ff; }
html[data-theme="dark"] .node[aria-expanded="true"] .node-photo { filter: none; }
html[data-theme="light"] .node[aria-expanded="true"] .node-photo { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.12)); }

.tendril {
  border-top: 1px solid var(--ra-line);
  padding-top: 1rem;
}
.tendril-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.tendril-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ra-line);
}
.tendril-actions, .spore-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Buttons: blue primary in light, off-white in dark; neutral secondary ---------- */
.button, button.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ra-accent);
  background: var(--ra-accent);
  color: var(--ra-on-accent);
  font: 600 1rem/1 var(--ra-font);
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.button:hover, button.button:hover { background: var(--ra-accent-hover); border-color: var(--ra-accent-hover); color: var(--ra-on-accent); }
.button-ghost, button.button-ghost {
  background: var(--ra-fill);
  border-color: transparent;
  color: var(--ra-fg);
}
.button-ghost:hover, button.button-ghost:hover { background: var(--ra-fill-hover); border-color: transparent; color: var(--ra-fg); }
.text-button {
  background: none;
  border: 0;
  color: var(--ra-accent);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  min-height: 44px;
}
html[data-theme="dark"] .text-button { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); }

/* ---------- Strata ---------- */
.stratum {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 2.4rem var(--gutter);
  border-top: 1px solid var(--ra-line);
}
.stratum-index {
  font-family: var(--ra-font-accent);
  font-weight: 700;
  color: var(--ra-muted);
  font-size: 1.3rem;
}
.stratum h2::after,
.sheet > h2::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin-top: 0.7rem;
  background: var(--ra-detail);
}
.filament {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
}
.filament li {
  color: var(--ra-muted);
  background: var(--ra-surface);
  border-radius: var(--ra-radius);
  padding: 1.1rem 1.2rem;
  border: 1px solid transparent;
}
html[data-theme="dark"] .filament li { border-color: var(--ra-line); }
.filament span {
  display: block;
  color: var(--ra-fg);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.trust-line { font-size: 1.25rem; max-width: 46rem; }

/* ---------- Sheets (prices, book, portal, visit, about, device) ---------- */
.sheet { padding: 2rem var(--gutter) 3rem; max-width: calc(78rem + 2 * var(--gutter)); }
.sheet-scan { max-width: none; }
.sheet-photo {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  margin: 0 0 0.6rem -0.4rem;
}
.address { font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.08; color: var(--ra-fg); }

.scan {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}
.scan-step { border: 0; margin: 0 0 1.2rem; padding: 0; }
.scan-step legend, .field-label {
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}
.field-label { margin-top: 0.8rem; font-weight: 600; }

input, select, textarea {
  width: 100%;
  max-width: 42rem;
  background: var(--ra-surface);
  color: var(--ra-fg);
  border: 1px solid var(--ra-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1.0625rem;
}
input::placeholder, textarea::placeholder { color: var(--ra-muted); }
html[data-theme="dark"] input:invalid:not(:placeholder-shown) { border-color: var(--ra-dot-red); }

.spore {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--ra-line);
  border-radius: 999px;
  padding: 0.2rem 0.95rem;
  background: var(--ra-surface);
  cursor: pointer;
  font-weight: 500;
}
.spore input { position: absolute; opacity: 0; pointer-events: none; }
.spore:has(input:checked) {
  background: var(--ra-strong);
  color: var(--ra-on-strong);
  border-color: var(--ra-strong);
}
.spore:has(input:focus-visible) { outline: var(--focus); outline-offset: 3px; }

.quote {
  position: sticky;
  top: 6.5rem;
  padding: 1.2rem 1.3rem;
  background: var(--ra-surface);
  border-radius: var(--ra-radius);
  border: 1px solid transparent;
  box-shadow: var(--ra-shadow);
}
html[data-theme="dark"] .quote { border-color: var(--ra-line); }
.quote-price {
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 0.6rem;
}
.quote-who, .quote-note { color: var(--ra-muted); }

.day { margin: 0.8rem 0 1rem; }
.day h2 { font-size: 1.15rem; }
.day h2::after { display: none; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  max-width: 42rem;
}
.check { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 42rem; margin: 1rem 0; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--ra-accent); }

.form-error { color: var(--ra-danger); }
.form-error::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--ra-dot-red);
}
.result {
  border-top: 1px solid var(--ra-line);
  margin: 1rem 0;
  padding-top: 0.8rem;
}
.result::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--ra-dot-lime);
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

details { margin: 0.4rem 0 0.8rem; max-width: 42rem; border-bottom: 1px solid var(--ra-line); }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }

/* ---------- Intent dock ---------- */
.dock {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  background: var(--ra-glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--ra-glass-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  width: min(560px, calc(100% - 1.2rem));
  justify-content: space-between;
}
.dock-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ra-fg);
  font-family: var(--ra-font-accent);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 0.2rem;
  border-radius: 999px;
  min-height: 44px;
}
.dock-link:hover { background: var(--ra-fill); color: var(--ra-fg); }
.dock-link[aria-current="page"] {
  background: var(--ra-accent);
  color: var(--ra-on-accent);
}

/* ---------- Footer with the rabit.sh footer traces ---------- */
.colophon {
  position: relative;
  overflow: hidden;
  padding: 2.2rem var(--gutter) 5.5rem;
  color: var(--ra-muted);
  border-top: 1px solid var(--ra-line);
  font-size: 0.95rem;
}
.colophon > *:not(.ra-footer-traces) { position: relative; z-index: 1; }
.colophon a { color: var(--ra-muted); }
.colophon-mark { display: inline-block; color: var(--ra-fg) !important; margin-bottom: 0.9rem; }
.colophon-mark .mark-svg { height: 40px; }
.ra-footer-traces {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ra-footer-trace {
  position: absolute;
  top: -6px;
  width: min(38%, 380px);
  height: 52px;
  overflow: hidden;
  pointer-events: none;
}
.ra-footer-trace.is-left { left: 0; }
.ra-footer-trace.is-right {
  right: 0;
  left: auto;
  transform: scaleX(-1);
  transform-origin: center center;
}
.ra-footer-trace-art {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
}
.ra-footer-trace-art.is-gray { opacity: 0.42; }
.ra-footer-trace-art.is-black { top: 2px; left: 2px; opacity: 0.12; }

.prose { max-width: 46rem; }

:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .rail-links { display: none; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.55rem; max-width: none; }
  .lede { font-size: 1.08rem; }
  .field { padding-top: 1.1rem; min-height: 0; }
  .field, .scan, .filament, .contact-grid { grid-template-columns: 1fr; }
  .quote { position: static; }
  .organism {
    display: flex;
    flex-wrap: wrap;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    gap: 0.55rem;
  }
  .organism-ring { display: none; }
  .organism-hero {
    position: relative;
    left: auto;
    top: auto;
    order: -2;
    width: 100%;
    margin: 0 0 -0.5rem;
  }
  .organism-hero img { width: min(78%, 340px); margin: 0 auto; }
  .node,
  .core {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    animation: none;
    width: calc(50% - 0.4rem);
  }
  .core {
    order: -1;
    width: 100%;
    height: auto;
    min-height: 4.5rem;
    border-radius: var(--ra-radius);
  }
  .stratum { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rail { gap: 0.8rem; }
  .rail-place { display: none; }
  .mark-svg { height: 38px; }
  .rail-call { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .organism-ring, .node { animation: none; }
  .organism-hero { transform: none !important; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
