/* www.robinland.io — one stylesheet, hand-written in this repo, no imports.
 *
 * Mobile-first: every layout rule starts at the small screen and widens at a
 * min-width query. Dark and light both follow the system by default and are
 * overridden by [data-theme] when a reader chooses (app.js).
 *
 * Fonts are the ones already on the reader's machine. The cash cap is $0, so
 * a licensed family is out — and a hosted one would also be a request to
 * another origin on the critical path, which build.py refuses.
 */

/* ---------- tokens ---------- */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f3f7;
  --fg: #16181d;
  --fg-soft: #3c4049;
  --muted: #666b77;
  --line: #e3e5ea;
  --line-strong: #d2d5dd;

  --accent: #2b5cff;          /* the Robinland blue, as on robinland.com */
  --accent-ink: #1d47d8;      /* for text on a light background: AA at 16px */
  --accent-2: #7a3cff;
  --on-accent: #ffffff;

  --ring: color-mix(in srgb, var(--accent) 40%, transparent);
  --shadow-1: 0 1px 2px rgb(16 18 28 / 6%), 0 8px 24px -12px rgb(16 18 28 / 14%);
  --shadow-2: 0 2px 6px rgb(16 18 28 / 8%), 0 24px 60px -24px rgb(16 18 28 / 22%);

  --wrap: 1120px;
  --gap: 1.25rem;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .5s;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --bg-alt: #0e1118;
    --surface: #14171f;
    --surface-2: #191d27;
    --fg: #eceef4;
    --fg-soft: #c6cad6;
    --muted: #949bab;
    --line: #242936;
    --line-strong: #323847;

    --accent: #5b86ff;
    --accent-ink: #9db6ff;
    --accent-2: #a173ff;
    --on-accent: #0b0d12;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px -14px rgb(0 0 0 / 60%);
    --shadow-2: 0 2px 8px rgb(0 0 0 / 45%), 0 30px 70px -28px rgb(0 0 0 / 70%);
  }
}

/* The same values again under an explicit choice. Written out rather than
 * generated, because a reader's choice has to win over the system in both
 * directions and @media cannot express that. */
:root[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-alt: #0e1118;
  --surface: #14171f;
  --surface-2: #191d27;
  --fg: #eceef4;
  --fg-soft: #c6cad6;
  --muted: #949bab;
  --line: #242936;
  --line-strong: #323847;
  --accent: #5b86ff;
  --accent-ink: #9db6ff;
  --accent-2: #a173ff;
  --on-accent: #0b0d12;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px -14px rgb(0 0 0 / 60%);
  --shadow-2: 0 2px 8px rgb(0 0 0 / 45%), 0 30px 70px -28px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;   /* the sticky header, so #anchors clear it */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.021em;
  margin: 0 0 .6em;
  /* Even line lengths instead of one orphaned word; ignored by browsers
   * that do not know it, which simply get the normal greedy wrap. */
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.6vw, 3.55rem); font-weight: 680; letter-spacing: -.032em; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 640; letter-spacing: -.012em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.15rem;
}
@media (min-width: 720px) { .wrap { padding-inline: 2rem; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: .7rem 1rem;
  z-index: 60;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- preview banner ---------- */
/* Only on the preview build; removed with noindex (build.py). */

.preview-banner {
  margin: 0;
  padding: .55rem 1rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 560;
  letter-spacing: .01em;
  color: var(--on-accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--fg);
  font-weight: 640;
  letter-spacing: -.02em;
  font-size: 1.07rem;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
/* The mark is a flat accent plate with a cut-out R. Both fills are themed, so
 * it inverts correctly in dark mode without a second file. */
.mark-bg { fill: var(--accent); }
.mark-fg { fill: var(--on-accent); }

.site-nav { display: none; gap: .3rem; }
@media (min-width: 900px) { .site-nav { display: flex; } }
.site-nav a {
  color: var(--fg-soft);
  font-size: .925rem;
  font-weight: 520;
  padding: .45rem .7rem;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav a:hover {
  text-decoration: none;
  color: var(--fg);
  background: var(--surface-2);
}

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 580;
  letter-spacing: -.005em;
  padding: .78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { box-shadow: var(--shadow-2); }

.btn-ghost {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--fg-soft); }

.btn-sm { padding: .5rem .9rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 540;
  color: var(--fg-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .7rem;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--line-strong); }
.theme-toggle svg {
  width: 15px; height: 15px; fill: none;
  stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-label { display: none; }
@media (min-width: 420px) { .theme-label { display: inline; } }
/* Which glyph shows: the sun in light, the moon in dark. In Auto the one
 * that matches the system shows, so the button always describes what you
 * are looking at. */
.icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

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

.hero {
  position: relative;
  isolation: isolate;
  padding: 3.2rem 0 3.4rem;
  overflow: hidden;
}
@media (min-width: 720px) { .hero { padding: 5rem 0 3.5rem; } }

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 150%;
  z-index: -1;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  will-change: transform;
}
/* Sized from the viewport WIDTH, never its height. A height-relative unit
 * (vmax, vh) makes the hero a different picture in a tall window — including
 * the full-page screenshots that go on the case, where the window is the
 * height of the whole document. */
.orb-1 {
  width: clamp(320px, 52vw, 780px); aspect-ratio: 1;
  top: -14%; left: -8%;
  background: radial-gradient(circle at 35% 35%, var(--accent), transparent 68%);
  animation: drift-1 22s var(--ease) infinite alternate;
}
.orb-2 {
  width: clamp(260px, 44vw, 660px); aspect-ratio: 1;
  top: 2%; right: -10%;
  background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 66%);
  animation: drift-2 26s var(--ease) infinite alternate;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .orb { opacity: .4; }
}
:root[data-theme="dark"] .orb { opacity: .4; }

/* A faint technical grid, faded out at the edges with a mask so it has no
 * visible border. Two gradients, no image file. */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-strong) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 25%, transparent 75%);
}

@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 4%, 0) scale(1.1); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-5%, 6%, 0) scale(.95); }
}

.hero-inner { display: grid; gap: 3rem; }
.hero-copy { max-width: 44rem; }

/* Two columns only when there is room for both without squeezing the
 * sentence. Below that the illustration is not shown at all. */
@media (min-width: 1040px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: center;
    gap: 3.5rem;
  }
}

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

.hero-art { display: none; position: relative; min-height: 24rem; }
@media (min-width: 1040px) { .hero-art { display: block; } }

.art-card {
  position: absolute;
  width: 20.5rem;
  padding: 1.1rem 1.15rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
  will-change: transform;
}
.art-card-1 {
  top: 0; left: 0;
  z-index: 2;
  transform: rotate(-2deg);
  animation: float-a 9s var(--ease) infinite alternate;
}
.art-card-2 {
  top: 12.6rem; left: 6rem;
  z-index: 1;
  opacity: .96;
  transform: rotate(2.5deg);
  animation: float-b 11s var(--ease) infinite alternate;
}

@keyframes float-a {
  from { transform: rotate(-2deg) translateY(0); }
  to   { transform: rotate(-1.2deg) translateY(-10px); }
}
@keyframes float-b {
  from { transform: rotate(2.5deg) translateY(0); }
  to   { transform: rotate(1.6deg) translateY(8px); }
}

.art-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .9rem; }
.art-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--on-accent);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.art-title { display: block; font-size: .95rem; font-weight: 620; }
.art-sub {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: .1rem;
}
.art-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: .5rem;
}
.art-line-short { width: 62%; }
.art-slot {
  display: grid;
  place-items: center;
  margin-top: .85rem;
  padding: .85rem;
  font-size: .78rem;
  font-weight: 580;
  color: var(--accent-ink);
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .775rem;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .36rem .8rem;
  margin: 0 0 1.4rem;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Safari drops the painted text if the box has no own colour in some
   * compositing paths; this keeps a readable fallback. */
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1.06rem, 2.3vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.6rem;
}
.chip {
  font-size: .82rem;
  font-weight: 540;
  color: var(--fg-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .85rem;
  box-shadow: var(--shadow-1);
}

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

.section { padding: 3.6rem 0; }
@media (min-width: 720px) { .section { padding: 4.75rem 0; } }

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-header { max-width: 46rem; margin-bottom: 2.4rem; }

.kicker {
  font-size: .775rem;
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 .9rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

/* ---------- cards ---------- */

.cards { display: grid; gap: var(--gap); }
@media (min-width: 680px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.card-num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.card-num svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-summary { font-weight: 560; color: var(--fg); }
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .955rem; }

/* ---------- properties ---------- */

.properties { display: grid; gap: var(--gap); }
@media (min-width: 820px) { .properties { grid-template-columns: repeat(2, 1fr); } }

.property {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.property:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.property-head { display: flex; gap: .95rem; align-items: flex-start; }
.property-head h3 { margin-bottom: .2rem; }
.property-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--on-accent);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.property-tagline { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.property-body { color: var(--fg-soft); font-size: .97rem; }

.property-reaches {
  font-size: .875rem;
  color: var(--muted);
  padding-top: .9rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.property-reaches span {
  display: block;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: .2rem;
}

.property-link {
  align-self: flex-start;
  margin-top: 1.1rem;
  font-weight: 580;
  font-size: .95rem;
}
.property-link .arrow {
  display: inline-block;
  margin-left: .35rem;
  transition: transform .25s var(--ease);
}
.property-link:hover { text-decoration: none; }
.property-link:hover .arrow { transform: translateX(4px); }

/* ---------- steps ---------- */

.steps { display: grid; gap: 1.6rem; counter-reset: step; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; counter-increment: step; padding-top: 1.9rem; }
.step-rail {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.step-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform .8s var(--ease) calc(var(--i, 0) * .12s);
}
.step.in .step-rail::after { transform: scaleX(1); }
.step h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .1em;
  color: var(--accent-ink);
  margin-bottom: .5rem;
}
.step p { color: var(--muted); font-size: .955rem; margin: 0; }

/* ---------- principles ---------- */

.principles { padding-top: 0; }
.principle-list { display: grid; gap: 1.2rem; }
@media (min-width: 760px) {
  .principle-list { grid-template-columns: repeat(3, 1fr); }
}
.principle-list li {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.principle-list h3 {
  display: flex;
  gap: .55rem;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.principle-list h3::before {
  content: "\2715";              /* a cross: these are the things we do not do */
  color: var(--accent);
  font-weight: 700;
  flex: none;
}
.principle-list p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- contact ---------- */

.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.6rem 1.4rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%,
                    color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-1);
}
@media (min-width: 720px) { .contact-card { padding: 4rem 3rem; } }
.contact-card .kicker { color: var(--accent-ink); }
.contact-card .section-intro { margin: 0 auto 1.9rem; }
.contact-email { margin: 1.1rem 0 0; font-size: .95rem; color: var(--muted); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-top: 2.8rem;
}
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}
.footer-about p {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 34rem;
}
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.footer-cols h2 {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: .7rem;
}
.footer-cols li { margin-bottom: .4rem; }
.footer-cols a { color: var(--muted); font-size: .92rem; }
.footer-cols a:hover { color: var(--accent-ink); }

.footer-legal {
  margin-top: 2.4rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.footer-legal p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- 404 ---------- */

.page-404 { display: grid; place-items: center; min-height: 100vh; }
.card-404 { text-align: center; padding: 2rem 0; }
.card-404 .brand-mark { width: 44px; height: 44px; margin: 0 auto 1.4rem; }
.card-404 h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.card-404 p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- motion ---------- */
/* Hidden only when JS is running, so a reader without it sees everything.
 * The `js` class is set by the inline script in <head>, before first paint,
 * which is why there is no flash of content that then disappears. */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--dur) var(--ease) calc(var(--i, 0) * .08s),
              transform var(--dur) var(--ease) calc(var(--i, 0) * .08s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
  .step-rail::after { transition: none; transform: scaleX(1); }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- print ---------- */

@media print {
  .site-header, .theme-toggle, .hero-bg, .preview-banner { display: none; }
  body { color: #000; background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
}
