/* ==========================================================================
   Hospitech Solutions — brand surface
   Lane: back-of-house utility. The staff side of the building.
   Type: Archivo, one family, width axis carries the display/body contrast.
   Colour: committed rust on graphite + cool off-white. Never cream.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Surface. Cool-tinted off-white — the steel prep counter, not parchment. */
  --bg:          oklch(0.970 0.003 250);
  --bg-raised:   oklch(1.000 0.000 0);
  --deep:        oklch(0.185 0.012 250);
  --deep-raised: oklch(0.235 0.013 250);

  /* Ink */
  --ink:         oklch(0.185 0.012 250);
  --ink-on-deep: oklch(0.965 0.003 250);
  --steel:       oklch(0.455 0.014 250); /* muted on light — verified ≥4.5:1 */
  --steel-dim:   oklch(0.740 0.012 250); /* muted on deep  — verified ≥4.5:1 */

  /* Brand signal — vermilion/rust. Deep enough to be paint, not startup-orange. */
  --rust:        oklch(0.550 0.170 32);
  --rust-ink:    oklch(0.470 0.150 32); /* rust as text on light */
  --rust-bright: oklch(0.760 0.165 45); /* rust as text on deep  */
  --rust-deep:   oklch(0.380 0.120 32);

  /* Structure */
  --line:        oklch(0.875 0.005 250);
  --line-deep:   oklch(0.320 0.014 250);

  /* Type */
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Modular scale, ratio ~1.32 */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-lg:   clamp(1.15rem, 0.4vw + 1.05rem, 1.35rem);
  --t-xl:   clamp(1.5rem,  1.1vw + 1.2rem,  2.1rem);
  --t-2xl:  clamp(2.05rem, 2.2vw + 1.4rem,  3.1rem);
  --t-3xl:  clamp(2.6rem,  4.4vw + 1.4rem,  4.6rem);

  /* Rhythm */
  --gut:     clamp(1.25rem, 4vw, 2.5rem);
  --bay:     clamp(4rem, 9vw, 7.5rem);
  --measure: 62ch;

  /* Radii — hard-wearing. Cards top out at 12px; nothing is "insanely rounded". */
  --r-sm: 3px;
  --r:    6px;
  --r-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* quint-out */
  --fast: 180ms;
  --slow: 640ms;

  /* Semantic z-scale */
  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-variation-settings: 'wdth' 100, 'wght' 400;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:where(h1, h2, h3, h4) {
  font-variation-settings: 'wdth' 118, 'wght' 800;
  line-height: 1.02;
  letter-spacing: -0.028em; /* floor is -0.04em; nothing tighter */
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--rust); color: #fff; }

/* Focus — visible, never removed */
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-deep :focus-visible,
.hero :focus-visible,
.foot :focus-visible { outline-color: var(--rust-bright); }

/* ------------------------------------------------------------ structure -- */
.shell {
  width: min(100% - (var(--gut) * 2), 1180px);
  margin-inline: auto;
}
.shell--tight { width: min(100% - (var(--gut) * 2), 880px); }

.bay { padding-block: var(--bay); }

/* The masthead is sticky, so an anchor jump would park the target underneath
   it. Section padding alone isn't enough — it's 64px at the small end vs a
   69px bar. */
:where(section, div)[id] { scroll-margin-top: calc(69px + 1.5rem); }

.on-deep {
  background: var(--deep);
  color: var(--ink-on-deep);
}
.on-deep :where(h1, h2, h3) { color: var(--ink-on-deep); }
.on-deep p { color: var(--steel-dim); }
/* Light type on dark reads lighter — give it room */
.on-deep { line-height: 1.68; }

.lede {
  font-size: var(--t-lg);
  max-width: 54ch;
  color: var(--steel);
}
.on-deep .lede { color: var(--steel-dim); }

/* Section heading + intro pairing. No eyebrow above every section —
   the heading does the work. */
.bay__head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.bay__head h2 { font-size: var(--t-2xl); }
.bay__head p { margin-top: 1.1rem; max-width: 58ch; color: var(--steel); font-size: var(--t-lg); }
.on-deep .bay__head p { color: var(--steel-dim); }

/* --------------------------------------------------------------- header -- */
.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.wordmark {
  font-variation-settings: 'wdth' 125, 'wght' 900;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.wordmark i { color: var(--rust); font-style: normal; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
/* Scoped to .nav__links, NOT .nav a — a bare `.nav a` (0,1,1) outranks
   `.btn--primary` (0,1,0) and repaints the CTA's label steel-on-rust. */
.nav__links a {
  text-decoration: none;
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 500;
  color: var(--steel);
  transition: color var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links { display: contents; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.3rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: var(--rust-deep); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-raised); }

/* The hero is a dark surface too, even though it isn't .on-deep (it owns its
   own scrim). Any ghost button on either must flip its ink, or it inherits
   --ink and lands invisible on --deep. */
.on-deep .btn--ghost,
.hero .btn--ghost { border-color: var(--line-deep); color: var(--ink-on-deep); }
.on-deep .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: var(--steel-dim); background: var(--deep-raised); }

.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--t-xs); }

/* Text link with a real underline — not a colour-only affordance */
.tlink {
  color: var(--rust-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-variation-settings: 'wdth' 100, 'wght' 600;
  transition: color var(--fast) var(--ease);
}
.tlink:hover { color: var(--rust-deep); }
.on-deep .tlink { color: var(--rust-bright); }
.on-deep .tlink:hover { color: #fff; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--ink-on-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Art direction: pull the warm pub light toward the brand's graphite+rust */
  filter: grayscale(0.72) contrast(1.06) brightness(0.52);
}
/* Scrim — carries text contrast. Verified: ink-on-deep over this ≥ 4.5:1 */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right,
      oklch(0.185 0.012 250 / 0.97) 0%,
      oklch(0.185 0.012 250 / 0.90) 46%,
      oklch(0.185 0.012 250 / 0.66) 100%),
    linear-gradient(to bottom,
      oklch(0.185 0.012 250 / 0.55) 0%,
      oklch(0.185 0.012 250 / 0.20) 40%,
      oklch(0.185 0.012 250 / 0.80) 100%);
}

.hero__in {
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  position: relative;
}

.hero h1 {
  font-size: var(--t-3xl);
  max-width: 17ch;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--rust-bright);
}

.hero__sub {
  margin-top: 1.6rem;
  font-size: var(--t-lg);
  max-width: 52ch;
  color: oklch(0.88 0.008 250);
  line-height: 1.62;
}

.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* The honest line under the fold — a claim, not a stat-tile */
.hero__claim {
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-deep);
  max-width: 46ch;
  font-size: var(--t-sm);
  color: var(--steel-dim);
}
.hero__claim b {
  color: #fff;
  font-variation-settings: 'wdth' 100, 'wght' 650;
}

/* ------------------------------------------------------------ venue bar -- */
.venues {
  border-bottom: 1px solid var(--line);
  padding-block: 1.6rem;
  background: var(--bg-raised);
}
.venues__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem clamp(1rem, 3vw, 2.4rem);
}
.venues__label {
  font-size: var(--t-xs);
  color: var(--steel);
  font-variation-settings: 'wdth' 100, 'wght' 500;
}
.venues__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.9rem, 2.4vw, 2rem);
  list-style: none;
  padding: 0;
}
.venues__list li {
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: var(--t-sm);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------- tools -- */
/* Deliberately not an identical card grid: the two live tools get a wide,
   detailed row each; the rest are a compact ledger. Maturity drives layout. */

.tool {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(2rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.tool:last-of-type { border-bottom: 1px solid var(--line); }

@media (min-width: 780px) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
}

.tool__id { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.tool__name {
  font-size: var(--t-xl);
  font-variation-settings: 'wdth' 118, 'wght' 800;
  letter-spacing: -0.026em;
}
.tool__what {
  font-size: var(--t-xs);
  color: var(--steel);
  font-variation-settings: 'wdth' 100, 'wght' 500;
  text-transform: none;
}
.tool__body p { color: var(--steel); max-width: 56ch; }
.tool__body p + p { margin-top: 0.8rem; }

.tool__meta {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
}
.tool__price {
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 650;
  color: var(--ink);
}

/* Sub-brand mark — Staff'd keeps its own emerald; it just gains a parent. */
.subbrand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-xs);
  color: var(--steel);
}
.subbrand__swatch {
  width: 11px; height: 11px;
  border-radius: 2px;
  background: var(--sb, var(--rust));
  flex: none;
}

/* ------------------------------------------------------- maturity chips -- */
/* Never colour alone: every chip carries its label AND a distinct glyph. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-variation-settings: 'wdth' 100, 'wght' 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.chip--live {
  color: oklch(0.36 0.11 155);
  border-color: oklch(0.80 0.09 155);
  background: oklch(0.95 0.035 155);
}
.chip--live .chip__dot { background: oklch(0.52 0.14 155); }

.chip--early {
  color: var(--rust-deep);
  border-color: oklch(0.83 0.08 40);
  background: oklch(0.955 0.03 40);
}
.chip--early .chip__dot {
  background: linear-gradient(to right, var(--rust) 50%, transparent 50%);
  border: 1.5px solid var(--rust);
}

.chip--dev {
  color: var(--steel);
  border-color: var(--line);
  background: transparent;
}
.chip--dev .chip__dot {
  background: transparent;
  border: 1.5px dashed var(--steel);
}

.on-deep .chip--dev { color: var(--steel-dim); border-color: var(--line-deep); }
.on-deep .chip--dev .chip__dot { border-color: var(--steel-dim); }

/* ------------------------------------------------- the suite (grid) ----- */
.suite-lead { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.suite-lead .tagline {
  font-size: var(--t-2xl);
  font-variation-settings: 'wdth' 118, 'wght' 800;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
  text-wrap: balance;
}
.suite-lead .tagline em { font-style: normal; color: var(--rust-ink); }
.suite-lead p { max-width: 60ch; color: var(--steel); font-size: var(--t-lg); }

/* Five clickable boxes; the open one spans full width for its detail.
   Native <details name="suite"> = exclusive accordion, works with no JS,
   keyboard-accessible by default. */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: start;
}
.suite-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.suite-card:hover { border-color: var(--steel); }
.suite-card[open] {
  grid-column: 1 / -1;
  border-color: var(--rust);
}
.suite-card > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* chips stay compact pills, not full-width bars */
  gap: 0.55rem;
  position: relative;
  min-height: 100%;
}
.suite-card > summary::-webkit-details-marker { display: none; }
.suite-card > summary:focus-visible { outline: 3px solid var(--rust); outline-offset: -3px; border-radius: var(--r-lg); }
.suite-card__name {
  font-size: var(--t-lg);
  font-variation-settings: 'wdth' 112, 'wght' 750;
  letter-spacing: -0.02em;
  padding-right: 1.6rem;
  line-height: 1.1;
}
.suite-card__what {
  font-size: var(--t-xs);
  color: var(--steel);
  font-variation-settings: 'wdth' 100, 'wght' 500;
}
.suite-card__plus {
  position: absolute; top: 1.2rem; right: 1.15rem;
  width: 17px; height: 17px; flex: none; color: var(--steel);
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.suite-card[open] .suite-card__plus { transform: rotate(45deg); color: var(--rust); }
.suite-card__detail {
  padding: 0.2rem 1.2rem 1.35rem;
  color: var(--steel);
  font-size: var(--t-sm);
  max-width: 70ch;
}
.suite-card__detail p { margin: 0; }
.suite-card__detail p + p { margin-top: 0.75rem; }
.suite-card__meta {
  margin-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center;
}
.suite-card__meta .tool__price {
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 650;
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .suite-card, .suite-card__plus { transition: none; }
}

/* --------------------------------------------------------- the ledger --- */
.ledger {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-deep);
}
.ledger li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-deep);
  align-items: baseline;
}
@media (min-width: 720px) {
  .ledger li { grid-template-columns: 13rem minmax(0, 1fr) auto; }
}
/* A chip is a grid item — without this it stretches the full column and reads
   as an empty box on narrow screens. */
.ledger li .chip { justify-self: start; }

.ledger__name {
  font-variation-settings: 'wdth' 112, 'wght' 750;
  font-size: var(--t-base);
  letter-spacing: -0.015em;
  color: var(--ink-on-deep);
}
.ledger__note { color: var(--steel-dim); font-size: var(--t-sm); }

/* ---------------------------------------------------------- the ladder -- */
.ladder {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 800px) { .ladder { grid-template-columns: repeat(3, 1fr); } }

.rung {
  background: var(--bg-raised);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.rung--now { background: oklch(0.975 0.018 40); }

.rung__step {
  font-size: var(--t-xs);
  font-variation-settings: 'wdth' 100, 'wght' 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust-ink);
}
.rung--later .rung__step { color: var(--steel); }
.rung__limit {
  font-size: var(--t-xl);
  font-variation-settings: 'wdth' 118, 'wght' 800;
  letter-spacing: -0.026em;
  line-height: 1.05;
}
.rung p { color: var(--steel); font-size: var(--t-sm); }

/* The promises — a real numbered sequence would be wrong here; these are
   simultaneous commitments, so they're a list, not steps. */
.promises {
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2.5rem; } }
.promises li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--t-sm);
  color: var(--steel);
  padding-block: 0.35rem;
}
.promises b {
  color: var(--ink);
  font-variation-settings: 'wdth' 100, 'wght' 700;
}
.tick { color: var(--rust); flex: none; margin-top: 0.28rem; }

/* ---------------------------------------------------------------- pull -- */
/* One quote-shaped moment. The argument in the operator's own voice. */
.pull { max-width: 100%; }
.pull__q {
  font-size: var(--t-2xl);
  font-variation-settings: 'wdth' 112, 'wght' 750;
  letter-spacing: -0.026em;
  line-height: 1.08;
  color: var(--ink-on-deep);
  /* Wide enough to break on sense, not into a ragged column. In a 2-up split
     the grid column is already the real constraint. */
  max-width: 15ch;
  text-wrap: balance;
}
@media (min-width: 900px) { .pull__q { max-width: 100%; } }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep-raised);
  aspect-ratio: 4 / 3;
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.05) brightness(0.85);
}

/* ------------------------------------------------------------- services -- */
.services {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 760px) { .services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.service h3 {
  font-size: var(--t-lg);
  font-variation-settings: 'wdth' 112, 'wght' 750;
  letter-spacing: -0.02em;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--rust);
  margin-bottom: 0.85rem;
}
.service p { color: var(--steel); font-size: var(--t-sm); }

/* ---------------------------------------------------------------- maker -- */
.maker__name {
  font-variation-settings: 'wdth' 118, 'wght' 800;
  font-size: var(--t-xl);
  letter-spacing: -0.026em;
}
.maker__role { color: var(--steel); font-size: var(--t-sm); margin-top: 0.3rem; }
.maker p + p { margin-top: 1rem; }

/* --------------------------------------------------------------- footer -- */
.foot {
  background: var(--deep);
  color: var(--steel-dim);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--t-sm);
}
.foot__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-deep);
}
@media (min-width: 780px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 {
  font-size: var(--t-xs);
  font-variation-settings: 'wdth' 100, 'wght' 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.foot a { color: var(--steel-dim); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot__legal {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: oklch(0.62 0.012 250);
}

/* --------------------------------------------------------------- motion -- */
/* Reveals enhance an already-visible default.
   `[data-reveal]` is VISIBLE in the stylesheet. The hidden pre-state hangs off
   `.reveals`, which a head script adds only when a transition can genuinely
   run to completion — i.e. the tab is visible, motion is welcome, and IO
   exists. Browsers freeze transitions in hidden tabs, so arming in CSS and
   relying on a transition to undo it renders blank to every headless renderer
   and social-preview crawler. Ask how it looks when the animation never
   fires; that state has to be the correct one. */
.reveals [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.reveals [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--slow) var(--ease),
              transform var(--slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  /* Belt and braces — the head script already declines to arm. */
  .reveals [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-overlay);
  background: var(--rust);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--r) 0;
  text-decoration: none;
  font-variation-settings: 'wdth' 100, 'wght' 650;
}
.skip:focus { left: 0; }
