/* ==========================================================================
   OpenMotionFX — openmotionfx.com
   Camera-department design system: charcoal body, gaffer-tape orange,
   viewfinder brackets, timecode mono. Archivo (variable width) + Fragment Mono.
   ========================================================================== */

:root {
  /* Color — committed dark, single saturated accent */
  --bg:        oklch(23.5% 0.008 40);   /* warm charcoal body */
  --bg-deep:   oklch(19%   0.007 40);   /* recessed panels */
  --bg-black:  oklch(13%   0.005 40);   /* header / footer / wells */
  --accent:    oklch(68%   0.20  41);   /* gaffer-tape orange (#f75c03) */
  --accent-hi: oklch(74%   0.19  45);   /* hover lift */
  --ink:       oklch(97%   0.004 40);   /* headlines */
  --body:      oklch(88%   0.008 40);   /* reading text */
  --muted:     oklch(73%   0.012 40);   /* labels, meta — AA on --bg */
  --line:      oklch(35%   0.010 40);   /* hairlines */
  --line-soft: oklch(29%   0.009 40);
  --tape-ink:  oklch(16%   0.02  40);   /* black text on orange tape */
  --ok:        oklch(78%   0.17 150);   /* status green, used sparingly */

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wide: 125;                          /* Archivo expanded width for display */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --space-section: clamp(5rem, 10vw, 9rem);
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --max-w: 1200px;

  /* z-scale */
  --z-sticky: 100;
  --z-skip: 200;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--tape-ink); }

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

a { color: var(--ink); text-decoration-color: color-mix(in oklch, var(--accent) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }

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

.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: var(--z-skip);
  background: var(--accent); color: var(--tape-ink);
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: 0.6rem 1rem; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--ink);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { max-width: 68ch; text-wrap: pretty; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--body);
  max-width: 62ch;
}

.mono, code, kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: 0;
}

code {
  background: var(--bg-black);
  border: 1px solid var(--line-soft);
  padding: 0.15em 0.45em;
}

.muted { color: var(--muted); }

/* Gaffer-tape label — the one section-marker system on this site.
   Orange tape, black stencil text, half-degree skew like real tape. */
.tape {
  display: inline-block;
  background: var(--accent);
  color: var(--tape-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  transform: rotate(-0.6deg);
  margin-bottom: 1.4rem;
}
.tape--plain { transform: none; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--space-section); }
.section--line { border-top: 1px solid var(--line); }
.section--well { background: var(--bg-black); border-block: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); border-block: 1px solid var(--line-soft); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   Header / nav — no-JS friendly: links wrap on small screens
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg-black) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: 0.9rem;
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-variation-settings: "wdth" var(--wide);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.brand:hover { color: var(--ink); }
.brand:hover .brand-mark { stroke: var(--accent-hi); }
.brand-mark { stroke: var(--accent); transition: stroke 0.15s var(--ease); }

.nav-links {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.25rem 1.6rem; list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding-block: 0.35rem;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-gh {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line); color: var(--ink) !important;
  padding: 0.45rem 0.9rem !important; font-family: var(--font-mono);
  font-size: 0.8rem !important;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-gh:hover { border-color: var(--accent); }
.nav-gh svg { width: 15px; height: 15px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line); color: var(--ink);
  background: transparent;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { border-color: var(--ink); color: var(--ink); }

.btn--accent {
  background: var(--accent); border-color: var(--accent); color: var(--tape-ink);
  font-weight: 700;
}
.btn--accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--tape-ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--bg-black);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.hero-status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); text-transform: uppercase;
  border: 1px solid var(--line); padding: 0.4rem 0.9rem;
  margin-bottom: 1.75rem;
}
.hero-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead { margin-bottom: 2.5rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Viewfinder: framed motion-path demo */
.viewfinder {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  background-color: color-mix(in oklch, var(--bg-deep) 80%, var(--bg-black));
  padding: 1.5rem;
}

/* corner brackets */
.viewfinder::before, .viewfinder::after,
.vf-corners::before, .vf-corners::after {
  content: "";
  position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--accent);
}
.viewfinder::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.viewfinder::after  { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.vf-corners::before { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.vf-corners::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.vf-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.vf-head .rec { color: var(--accent); }

.vf-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 0.75rem;
}
.vf-foot .timecode {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

.vf-replay {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 0.4rem 0.8rem; cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.vf-replay:hover { color: var(--accent-hi); border-color: var(--accent); }

.vf-canvas { width: 100%; height: auto; }

/* Motion-path SVG animation: path draws in, dot follows.
   Take 2 re-draws precisely over take 1 (the repeatability demo).
   All triggered by .run class; reduced-motion gets the static end state. */
.mp-path {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round;
}
.mp-ghost {
  fill: none; stroke: var(--muted); stroke-width: 1.25;
  stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0.7;
}
.mp-dot { fill: var(--ink); }
.mp-key { fill: var(--bg-black); stroke: var(--accent); stroke-width: 1.5; }
.mp-label { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .viewfinder.run .mp-path {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: mp-draw 2.6s var(--ease) forwards;
  }
  .viewfinder.run .mp-dot {
    offset-path: path("M28 148 C 90 40, 200 30, 268 84 S 380 178, 432 96");
    animation: mp-travel 2.6s var(--ease) forwards;
  }
  .viewfinder.run[data-take="2"] .mp-path { animation-duration: 2.6s; }
}

@keyframes mp-draw { to { stroke-dashoffset: 0; } }
@keyframes mp-travel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-replay { display: none; }
}

/* --------------------------------------------------------------------------
   Price-gap comparison (typographic, not a chart)
   -------------------------------------------------------------------------- */

.gap-table { border-top: 1px solid var(--line); }
.gap-row {
  display: grid;
  grid-template-columns: minmax(7rem, 2fr) minmax(0, 3fr) minmax(8rem, 2fr) minmax(6rem, 1.5fr);
  gap: 1rem 2rem; align-items: baseline;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.gap-tier { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }
.gap-what { color: var(--body); font-size: 0.98rem; }
.gap-price {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--ink); white-space: nowrap;
}
.gap-rep { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.gap-row--us { background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 12%, transparent), transparent 70%); }
.gap-row--us .gap-tier, .gap-row--us .gap-rep { color: var(--accent-hi); }
.gap-row--us .gap-price { color: var(--accent); }

@media (max-width: 720px) {
  .gap-row { grid-template-columns: 1fr auto; }
  .gap-what { grid-column: 1 / -1; order: 3; }
  .gap-rep { display: none; }
}

/* --------------------------------------------------------------------------
   GO sequence (the one real numbered sequence)
   -------------------------------------------------------------------------- */

.go-steps { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.go-step {
  display: grid;
  grid-template-columns: 5.5rem minmax(10rem, 16rem) 1fr;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.go-step::before {
  counter-increment: step;
  content: "T-" counter(step);
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent); padding-top: 0.3rem;
}
.go-step:last-child::before { content: "GO"; color: var(--ink); background: none; }
.go-step h3 { text-transform: uppercase; font-variation-settings: "wdth" var(--wide); }
.go-step p { color: var(--body); font-size: 0.98rem; }

@media (max-width: 820px) {
  .go-step { grid-template-columns: 4rem 1fr; }
  .go-step p { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Module index (varied list, not a card grid)
   -------------------------------------------------------------------------- */

.module-list { border-top: 1px solid var(--line); }
.module-row {
  display: grid;
  grid-template-columns: minmax(11rem, 2fr) minmax(0, 4fr) minmax(7rem, 1.2fr);
  gap: 0.5rem 2rem; align-items: baseline;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background 0.15s var(--ease);
}
a.module-row:hover { background: color-mix(in oklch, var(--bg-deep) 70%, transparent); }
a.module-row:hover .module-name { color: var(--accent-hi); }
.module-name {
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
  font-variation-settings: "wdth" var(--wide); text-transform: uppercase;
  transition: color 0.15s var(--ease);
}
.module-desc { color: var(--body); font-size: 0.98rem; }
.module-cost {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted);
  text-align: right; white-space: nowrap;
}
@media (max-width: 720px) {
  .module-row { grid-template-columns: 1fr auto; }
  .module-desc { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Spec tables (lens-engraving style)
   -------------------------------------------------------------------------- */

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  text-align: left; font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; color: var(--muted); padding-bottom: 0.9rem;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 0.8rem 0.5rem 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem; vertical-align: top;
}
.spec-table thead th {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400;
  text-transform: uppercase; color: var(--muted);
}
.spec-table td:last-child, .spec-table th:last-child { text-align: right; padding-right: 0; }
.spec-table td:last-child { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); }
.spec-table tbody th { font-weight: 500; color: var(--body); }

.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Principles / prose blocks
   -------------------------------------------------------------------------- */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle {
  padding: 2rem 2rem 2.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle h3 { margin-bottom: 0.75rem; text-transform: uppercase; }
.principle p { font-size: 0.97rem; color: var(--body); }
.principle blockquote {
  margin-top: 0.9rem; padding-left: 0.9rem;
  border-left: 1px solid var(--accent);
  font-size: 0.9rem; color: var(--muted); font-style: italic;
}

/* Split layout: text + aside figure */
.split {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Terminal / code panel */
.term {
  background: var(--bg-black); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 1.25rem 1.5rem; overflow-x: auto;
}
.term .p { color: var(--accent); user-select: none; }
.term pre { font-family: inherit; }

/* Flow diagram (pipeline) */
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.82rem;
}
.flow .node {
  border: 1px solid var(--line); padding: 0.55rem 1rem; color: var(--ink);
  background: var(--bg-deep); white-space: nowrap;
}
.flow .node--hot { border-color: var(--accent); color: var(--accent-hi); }
.flow .arrow { color: var(--muted); user-select: none; }

/* --------------------------------------------------------------------------
   Roadmap timeline
   -------------------------------------------------------------------------- */

.phases { border-left: 2px solid var(--line); margin-left: 0.4rem; }
.phase { position: relative; padding: 0 0 3rem 2.25rem; }
.phase:last-child { padding-bottom: 0.5rem; }
.phase::before {
  content: ""; position: absolute; left: -7px; top: 0.45rem;
  width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--muted);
  border-radius: 50%;
}
.phase--now::before { background: var(--accent); border-color: var(--accent); }
.phase-meta {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.5rem;
}
.phase--now .phase-meta { color: var(--accent-hi); }
.phase h3 { margin-bottom: 0.6rem; }
.phase p { font-size: 0.98rem; }
.phase ul { margin: 0.75rem 0 0 1.1rem; font-size: 0.95rem; color: var(--body); }
.phase ul li { margin-bottom: 0.35rem; }
.phase .exit {
  margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted);
  border-left: 1px solid var(--accent); padding-left: 0.9rem;
}

/* --------------------------------------------------------------------------
   Rig calculator (system page)
   -------------------------------------------------------------------------- */

.calc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.calc-options { border-top: 1px solid var(--line); }
.calc-option {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 0.35rem 1.1rem; align-items: baseline;
  padding: 1.1rem 0.25rem; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.calc-option:hover { background: color-mix(in oklch, var(--bg-deep) 70%, transparent); }
.calc-option input {
  appearance: none; width: 1.05rem; height: 1.05rem; flex: none;
  border: 1px solid var(--muted); background: transparent; cursor: pointer;
  position: relative; top: 0.15rem;
}
.calc-option input:checked { background: var(--accent); border-color: var(--accent); }
.calc-option input:checked::after {
  content: ""; position: absolute; inset: 3px; background: var(--tape-ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.calc-option input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-name { color: var(--ink); font-weight: 600; }
.calc-cost { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.calc-note { grid-column: 2 / -1; font-size: 0.88rem; color: var(--muted); }

.calc-total {
  position: sticky; top: 5.5rem;
  border: 1px solid var(--line); background: var(--bg-black);
  padding: 1.75rem;
}
.calc-total .label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
.calc-total .figure {
  font-variation-settings: "wdth" var(--wide); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent);
  font-variant-numeric: tabular-nums; margin: 0.35rem 0 1rem;
}
.calc-total .fine { font-size: 0.85rem; color: var(--muted); }
.calc-total hr { border: 0; border-top: 1px solid var(--line-soft); margin: 1.1rem 0; }
.calc-compare { font-size: 0.9rem; color: var(--body); }
.calc-compare strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-black); border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.5rem; font-size: 0.9rem; color: var(--muted);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--body); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-hi); }
.footer-brand p { margin-top: 0.9rem; max-width: 34ch; }

.footer-legal {
  border-top: 1px solid var(--line-soft); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Reveal on scroll — enhancement only; content visible without JS
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}
