/* ============================================================================
   components.css — reusable primitives.

   Everything here is theme-agnostic: it reads tokens only. If a rule needs a
   literal colour it belongs in views.css with a comment explaining why.
   ========================================================================= */

/* ── Surfaces ─────────────────────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  padding: var(--s-5);
  transition:
    border-color var(--d-base) var(--ease-out),
    background var(--d-base) var(--ease-out),
    transform var(--d-base) var(--ease-out);
}

.card--flush { padding: 0; overflow: hidden; }
.card--raised { background: var(--surface-2); box-shadow: var(--shadow-2); }

.card--interactive { cursor: pointer; }
.card--interactive:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card--interactive:active { transform: translateY(0); }

.panel {
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  overflow: hidden;
  /* Panels are grid/flex children everywhere they appear. Without this they
     inherit min-width:auto and refuse to shrink below their content, pushing
     past the page on a narrow phone. */
  min-width: 0;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-1);
}
.panel__title {
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-1);
}
.panel__body { padding: var(--s-5); }

/* ── Eyebrow / section headers ────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.section-head__text { max-width: var(--measure); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text-0);
  --btn-line: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  min-height: 42px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: var(--r-2);
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: var(--tr-normal);
  white-space: nowrap;
  transition:
    background var(--d-fast) linear,
    border-color var(--d-fast) linear,
    color var(--d-fast) linear,
    transform var(--d-fast) var(--ease-out);
}
.btn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-line: transparent;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 86%, white); }

.btn--ghost { --btn-bg: transparent; --btn-line: transparent; color: var(--text-1); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text-0); }

.btn--danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-line: var(--danger-soft); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn--sm { min-height: 32px; padding: var(--s-1) var(--s-3); font-size: var(--t--2); }
.btn--lg { min-height: 52px; padding: var(--s-4) var(--s-7); font-size: var(--t-0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 36px;
  padding: 0 var(--s-3);
  border-radius: var(--r-2);
  border: 1px solid transparent;
  color: var(--text-1);
  transition: background var(--d-fast) linear, color var(--d-fast) linear, border-color var(--d-fast) linear;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text-0); border-color: var(--line-1); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tr-wide);
  color: var(--text-3);
  border: 1px solid var(--line-1);
  border-radius: var(--r-1);
  padding: 1px 5px;
}

/* Theme toggle swaps which glyph is visible. */
[data-theme="abyss"] .ico-sun { display: none; }
[data-theme="daylight"] .ico-moon { display: none; }

/* ── Chips / tags ─────────────────────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 3px var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid var(--line-1);
  background: var(--surface-1);
  font-size: var(--t--2);
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  transition: all var(--d-fast) linear;
}

button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--line-strong); color: var(--text-0); background: var(--surface-2); }
button.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

.chip--glow { border-color: var(--lure-line); color: var(--lure); background: var(--lure-soft); }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px var(--s-2);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  color: var(--text-2);
}
.badge--live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge--warn { color: var(--lure); border-color: var(--lure-line); background: var(--lure-soft); }
.badge--danger { color: var(--danger); border-color: var(--danger-soft); background: var(--danger-soft); }

/* ── Form controls ────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__label {
  font-size: var(--t--2);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 600;
}
.field__hint { font-size: var(--t--2); color: var(--text-3); }

.input, .select, .textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  color: var(--text-0);
  font-size: var(--t--1);
  transition: border-color var(--d-fast) linear, background var(--d-fast) linear;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { min-height: 96px; resize: vertical; line-height: var(--lh-snug); }

.select {
  appearance: none;
  padding-right: var(--s-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8b9d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  background-size: 15px;
  cursor: pointer;
}
.select option { background: var(--surface-solid); color: var(--text-0); }

/* Range input — the dive console's primary control. */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--range-fill, 0%),
    var(--surface-3) var(--range-fill, 0%),
    var(--surface-3) 100%
  );
}
.range::-moz-range-track {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-3);
}
.range::-moz-range-progress {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--text-0);
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-2);
  transition: transform var(--d-fast) var(--ease-out);
}
.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-0);
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-2);
}
.range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.range:active::-webkit-slider-thumb { transform: scale(1.2); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line-1);
  transition: background var(--d-base) var(--ease-out);
  flex: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-1);
  transition: transform var(--d-base) var(--ease-spring), background var(--d-base) linear;
}
.switch input:checked + .switch__track { background: var(--accent-soft); border-color: var(--accent-line); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--accent); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmented control */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
}
.segmented button {
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-1);
  font-size: var(--t--2);
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--d-fast) linear;
}
.segmented button:hover { color: var(--text-0); background: var(--surface-2); }
.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ── Stats ────────────────────────────────────────────────────────────── */

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: var(--t-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tr-tight);
  line-height: 1.1;
  color: var(--text-0);
}
.stat__value small { font-size: max(0.45em, 11px); color: var(--text-2); font-weight: 400; margin-left: 3px; }
.stat__label {
  font-size: var(--t--2);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-3);
}
.stat--accent .stat__value { color: var(--accent); }
.stat--lure .stat__value { color: var(--lure); }

/* ── Meter ────────────────────────────────────────────────────────────── */

.meter { display: flex; flex-direction: column; gap: var(--s-2); }
.meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--t--2);
}
.meter__name { color: var(--text-2); letter-spacing: var(--tr-wide); text-transform: uppercase; }
.meter__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-0); }
.meter__track {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--meter-color, var(--accent));
  width: 0;
  transition: width var(--d-slow) var(--ease-out);
}

/* ── Gauge (SVG-driven) ───────────────────────────────────────────────── */

.gauge { display: grid; place-items: center; gap: var(--s-2); }
.gauge svg { width: 100%; max-width: 150px; height: auto; overflow: visible; }
.gauge__track { fill: none; stroke: var(--surface-3); stroke-linecap: round; }
.gauge__arc {
  fill: none;
  stroke: var(--gauge-color, var(--accent));
  stroke-linecap: round;
  transition: stroke-dashoffset var(--d-slow) var(--ease-out), stroke var(--d-base) linear;
}
.gauge__needle {
  stroke: var(--text-0);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform var(--d-slow) var(--ease-out);
  /* NO `transform-origin` here. The rotation is applied through the SVG
     `transform` attribute as rotate(deg 50 50), which already carries its own
     origin. Setting transform-origin as well composes a second translation and
     the needle ends up rotating about (100,100) — swinging outside the dial. */
}
.gauge__hub { fill: var(--text-0); }
.gauge__readout {
  font-family: var(--font-mono);
  font-size: var(--t-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gauge__unit { font-size: var(--t--2); color: var(--text-3); letter-spacing: var(--tr-wide); text-transform: uppercase; }

/* ── Table ────────────────────────────────────────────────────────────── */

/* Tables live inside .panel, which clips with overflow:hidden. .table-wrap
   gives the table its own scroll context so a wide table scrolls instead of
   being cut off. */
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t--1); }
.table th {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-size: 10px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-1);
  vertical-align: middle;
}
.table tbody tr { transition: background var(--d-fast) linear; }
.table tbody tr:hover { background: var(--surface-1); }
.table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .table th, .table td { padding: var(--s-2) var(--s-3); }
  .table td { line-height: var(--lh-snug); }
}
.table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ── Empty / skeleton ─────────────────────────────────────────────────── */

.empty {
  display: grid;
  place-items: center;
  gap: var(--s-3);
  padding: var(--s-9) var(--s-5);
  text-align: center;
  color: var(--text-2);
}
.empty__icon { width: 44px; height: 44px; opacity: 0.4; }
.empty__title { font-size: var(--t-1); color: var(--text-1); font-weight: 600; }

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-1) 25%,
    var(--surface-2) 37%,
    var(--surface-1) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-2);
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* ── Palette ──────────────────────────────────────────────────────────── */

.palette {
  position: fixed;
  inset: 0;
  z-index: var(--z-palette);
  display: grid;
  place-items: start center;
  padding-top: max(12vh, 80px);
}
.palette[hidden] { display: none; }
.palette__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--bg-void) 72%, transparent);
  backdrop-filter: blur(6px);
  animation: fade-in var(--d-fast) var(--ease-out);
}
.palette__panel {
  position: relative;
  width: min(680px, calc(100vw - 2rem));
  max-height: min(70vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--line-2);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: palette-in var(--d-base) var(--ease-out);
}
@keyframes palette-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.palette__field {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-1);
}
.palette__field svg { width: 20px; height: 20px; color: var(--text-3); }
.palette__field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: var(--t-1);
  color: var(--text-0);
  min-width: 0;
}
.palette__field input::placeholder { color: var(--text-3); }

kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: var(--r-1);
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  border-bottom-width: 2px;
  color: var(--text-2);
  white-space: nowrap;
}

.palette__results { flex: 1; overflow-y: auto; padding: var(--s-2); }
.palette__group {
  padding: var(--s-3) var(--s-3) var(--s-1);
  font-size: 10px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.palette__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background var(--d-fast) linear;
}
.palette__item[aria-selected="true"] { background: var(--accent-soft); }
.palette__item:hover { background: var(--surface-2); }
.palette__item[aria-selected="true"]:hover { background: var(--accent-soft); }
.palette__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-1);
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  color: var(--item-accent, var(--text-2));
}
.palette__icon svg { width: 17px; height: 17px; }
.palette__text { flex: 1; min-width: 0; }
.palette__name { font-size: var(--t--1); font-weight: 500; color: var(--text-0); }
.palette__meta {
  font-size: var(--t--2);
  color: var(--text-3);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette__foot {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line-1);
  font-size: var(--t--2);
  color: var(--text-3);
  background: var(--surface-1);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ── Drawer ───────────────────────────────────────────────────────────── */

.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer[hidden] { display: none; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--bg-void) 68%, transparent);
  backdrop-filter: blur(5px);
  animation: fade-in var(--d-base) var(--ease-out);
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: var(--bg-1);
  border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: drawer-in var(--d-slow) var(--ease-out);
}
@keyframes drawer-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.drawer__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  color: var(--text-1);
  transition: all var(--d-fast) linear;
}
.drawer__close:hover { background: var(--surface-3); color: var(--text-0); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__body { padding: var(--s-7) var(--s-6) var(--s-8); }

/* ── Toasts ───────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  right: var(--s-5);
  bottom: calc(var(--strip-h) + var(--s-4));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  pointer-events: none;
  max-width: min(360px, calc(100vw - 2rem));
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-solid);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--toast-color, var(--accent));
  border-radius: var(--r-2);
  box-shadow: var(--shadow-2);
  font-size: var(--t--1);
  animation: toast-in var(--d-base) var(--ease-out);
}
.toast.is-leaving { animation: toast-out var(--d-base) var(--ease-out) forwards; }
.toast__title { font-weight: 600; color: var(--text-0); }
.toast__msg { color: var(--text-2); font-size: var(--t--2); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px) scale(0.97); }
}

/* ── Divider with label ───────────────────────────────────────────────── */

.rule {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-1);
}

/* ── Utility ──────────────────────────────────────────────────────────── */

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-display); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.accent { color: var(--accent); }
.lure { color: var(--lure); }
.small { font-size: var(--t--1); }
.tiny { font-size: var(--t--2); }
.lede { font-size: var(--t-1); line-height: var(--lh-snug); color: var(--text-1); max-width: var(--measure); }
.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--s-2); } .stack-3 { gap: var(--s-3); }
.stack-4 { gap: var(--s-4); } .stack-5 { gap: var(--s-5); }
.stack-6 { gap: var(--s-6); } .stack-7 { gap: var(--s-7); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scroll-reveal. Elements start hidden only when JS is present to reveal them,
   so a scripting failure degrades to a fully visible page. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
