/* ─────────────────────────────────────────────
   Morgareth-Tech — dark tech theme
   Tokens first; components use tokens only.
   ───────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* palette */
  --bg: #080b12;
  --bg-raised: #0e121c;
  --surface: rgba(17, 22, 35, 0.78);
  --surface-hover: rgba(22, 30, 48, 0.9);
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(45, 212, 191, 0.45);

  --text: #e8edf5;
  --text-muted: #a3adbf;
  --text-faint: #8590a3;

  --violet: #8b5cf6;        /* fills, glows */
  --violet-soft: #a78bfa;   /* large text / icons */
  --violet-text: #c4b5fd;   /* small text on dark */
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.14);
  --sky: #38bdf8;
  --gradient: linear-gradient(110deg, var(--teal) 0%, var(--sky) 55%, var(--violet-soft) 100%);

  /* type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* spacing (8pt rhythm) */
  --s1: 0.5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;  --s7: 6rem;    --s8: 8rem;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1680px;
  --gutter: clamp(1rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  --z-backdrop: 0;
  --z-content: 10;
  --z-header: 40;
  --z-skip: 100;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

::selection { background: rgba(45, 212, 191, 0.4); color: #fff; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: var(--s2); left: var(--s2);
  z-index: var(--z-skip);
  padding: var(--s1) var(--s2);
  background: var(--teal); color: var(--bg);
  font-weight: 600; border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-defs { position: absolute; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.icon-sm { width: 0.95em; height: 0.95em; }

/* ───────────── backdrop ───────────── */
.backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-backdrop);
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(50rem 35rem at -10% 30%, rgba(45, 212, 191, 0.09), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(139, 92, 246, 0.08), transparent 60%);
}
.backdrop::after {
  /* faint circuit grid, fading out from the top */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

main, .site-footer { position: relative; z-index: var(--z-content); }

/* ───────────── header ───────────── */
.site-header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: rgba(8, 11, 18, 0.75);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: var(--s2);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.brand-dash { color: var(--teal); }

.nav-links { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }

@media (max-width: 520px) {
  .brand-name { display: none; }
  .nav-links a { padding: 0 0.7rem; }
}

/* ───────────── shared bits ───────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-mark { color: var(--violet-soft); letter-spacing: 0; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #0b0a14;
  background: var(--gradient);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 8px 28px -10px rgba(45, 212, 191, 0.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 10px 36px -8px rgba(56, 189, 248, 0.6); }
.btn-ghost {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.12); border-color: var(--teal); }

/* ───────────── hero ───────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s4);
  padding-top: clamp(var(--s4), 8vw, var(--s7));
  padding-bottom: var(--s5);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s5);
    min-height: calc(100dvh - 65px);
    padding-bottom: var(--s6);
  }
}

.hero-copy { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.92;
  font-size: clamp(2.7rem, 10vw, 5.8rem);
  display: flex; flex-direction: column;
}
.wm-accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(45, 212, 191, 0.25));
}
.wm-accent::before {
  content: "— ";
  -webkit-text-fill-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}

.tagline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
  min-height: 1.6em;
}
.decipher .word { display: inline-block; white-space: nowrap; }
.decipher .ch { position: relative; display: inline-block; }
.decipher .ch-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.decipher .ch:not(.done) .ch-latin { visibility: hidden; }
.decipher .ch.done .ch-glyph { display: none; }

.lede {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s1); }

.hero-sigil {
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 1;
  order: -1;
  max-width: min(260px, 70vw);
  margin-bottom: calc(var(--s2) * -1);
}
@media (min-width: 900px) {
  .hero-sigil { order: 0; width: min(100%, 640px); max-width: 640px; }
  .wordmark { font-size: clamp(3.5rem, 7.2vw, 7rem); }
  .lede { max-width: 38rem; }
}
@media (min-width: 1600px) {
  .hero-sigil { width: min(100%, 720px); max-width: 720px; }
  .wordmark { font-size: 8rem; }
  .lede { font-size: 1.25rem; max-width: 40rem; }
  .tagline { font-size: 1.4rem; }
}

/* sigil parts */
.sigil { width: 100%; height: 100%; overflow: visible; }
.sg-ring { fill: none; stroke: rgba(148, 163, 184, 0.4); stroke-width: 1.5; }
.sg-ring-faint { stroke: rgba(148, 163, 184, 0.22); stroke-width: 1; }
.sg-ticks { fill: none; stroke: rgba(45, 212, 191, 0.5); stroke-width: 1.5; stroke-linecap: round; }
/* three segments: circumference 2*pi*154 = 967.6, split 3 x (200 + 122.5) */
.sg-arc { fill: none; stroke: rgba(167, 139, 250, 0.55); stroke-width: 3; stroke-dasharray: 200 122.5; stroke-linecap: round; }
.sg-geo { fill: none; stroke: rgba(45, 212, 191, 0.45); stroke-width: 1.4; }
.sg-geo-faint { stroke: rgba(56, 189, 248, 0.22); stroke-width: 1; }
.sg-dot { fill: var(--teal); filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.8)); }
.sg-trace { fill: none; stroke: rgba(148, 163, 184, 0.28); stroke-width: 1.5; }
.sg-pulse {
  fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 200; stroke-dashoffset: 214;
  opacity: 0;
}
.sg-node { fill: var(--bg); stroke: var(--teal); stroke-width: 1.5; }
.sg-core { filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.45)); }
/* view-box reference box starts at user-space (0,0) — the sigil's centre */
.sg-spin, .sg-spin-rev { transform-box: view-box; transform-origin: 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .sg-spin { animation: spin 140s linear infinite; }
  .sg-spin-rev { animation: spin 90s linear infinite reverse; }
  .sg-pulse { animation: pulse 4.4s var(--ease-out) infinite; }
  .sg-node { animation: node 4.4s ease-in-out infinite; }
  .sg-core { animation: breathe 6s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%   { stroke-dashoffset: 14; opacity: 0; }
  8%   { opacity: 1; }
  42%  { stroke-dashoffset: -100; opacity: 1; }
  50%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes node {
  0%, 40% { fill: var(--bg); }
  50% { fill: var(--teal); }
  70%, 100% { fill: var(--bg); }
}
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.35)); }
  50% { filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.5)); }
}

/* ── interactive core (main.js adds .is-live; never without JS or with reduced motion) ── */
.hero-sigil { position: relative; }
.hero-sigil.is-live .sg-spin,
.hero-sigil.is-live .sg-spin-rev { animation: none; }   /* JS drives rotation */
.hero-sigil.is-live .sigil {
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.sg-core { transform-box: view-box; transform-origin: 0 0; }

.sg-ripple {
  fill: none; stroke: var(--teal); stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-box: view-box; transform-origin: 0 0;
  pointer-events: none;
  animation: ripple 900ms var(--ease-out) forwards;
}
@keyframes ripple {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(3.2); opacity: 0; }
}
.sg-burst {
  fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 14 200;
  pointer-events: none;
  animation: burst 650ms var(--ease-out) forwards;
}
@keyframes burst {
  from { stroke-dashoffset: 14; opacity: 1; }
  to   { stroke-dashoffset: -100; opacity: 0.2; }
}
.sg-node.flash { animation: node-flash 800ms ease-out; }
@keyframes node-flash {
  0%, 35% { fill: var(--bg); }
  50%     { fill: var(--sky); }
  100%    { fill: var(--bg); }
}

.sigil-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-sigil.is-live .sigil { cursor: grab; }
  .hero-sigil.is-grabbing .sigil { cursor: grabbing; }
  .hero-sigil.is-live .sigil-hint {
    display: block;
    position: absolute; left: 50%; bottom: -0.25rem;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 600ms var(--ease-out);
  }
  .hero-sigil.is-used .sigil-hint { opacity: 0; }
}

/* ───────────── sections ───────────── */
.section { padding-block: clamp(var(--s6), 9vw, var(--s8)); }
.section-head { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); max-width: 44rem; }
.section h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-muted); }

/* filters — only shown when JS can run them */
.filters { display: none; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s3); }
.js .filters { display: flex; }
.chip {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font: 500 0.9rem/1 var(--font-body);
  cursor: pointer;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"] {
  color: var(--bg);
  background: var(--teal);
  border-color: var(--teal);
}

/* project grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--s2);
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card::before {
  /* corner glyph */
  content: "";
  position: absolute; top: 0; right: 0;
  width: 48px; height: 48px;
  border-top: 1px solid var(--teal);
  border-right: 1px solid var(--teal);
  border-top-right-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px -24px rgba(45, 212, 191, 0.4);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }
.card[hidden] { display: none; }
.card-work { background: rgba(13, 17, 27, 0.78); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-shipped { color: var(--teal); }
.status-wip { color: var(--violet-text); }
.status-oss { color: #fcd34d; }
.status-paused { color: var(--text-faint); }

.card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }

.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.stack li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet-text);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.stack-lg li { font-size: 0.82rem; padding: 0.35rem 0.7rem; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  align-self: flex-start;
  min-height: 44px;
  color: var(--teal);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
}
.card-link::after {
  /* whole card is the hit area */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--teal); outline-offset: 3px; }
.card:has(.card-link) { cursor: pointer; }
.stars {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-mono); font-size: 0.8rem; color: #fcd34d;
}

/* ───────────── about ───────────── */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; align-items: start; }
}
.about-copy { display: flex; flex-direction: column; gap: var(--s2); max-width: 36rem; }
.about-copy p { color: var(--text-muted); font-size: 1.08rem; }
.about-copy h2 { margin-bottom: var(--s1); }
.about-side { display: flex; flex-direction: column; gap: var(--s3); }

.panel {
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s2);
}

.tenets { display: flex; flex-direction: column; gap: var(--s2); }
.tenets li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s2); align-items: start;
  color: var(--text-muted);
}
.tenets strong { color: var(--text); font-weight: 600; }
.tenet-num {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 500;
  color: var(--teal);
  background: var(--teal-dim);
}

/* ───────────── portals ───────────── */
.portals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s2);
}
.portal {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: var(--s2);
  align-items: center;
  padding: var(--s3);
  min-height: 96px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.portal:hover {
  background: var(--surface-hover);
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal-dim), 0 16px 40px -20px rgba(45, 212, 191, 0.5);
}
.portal-icon {
  grid-row: 1 / 3;
  width: 44px; height: 44px; padding: 10px;
  fill: none; stroke: var(--violet-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  color: var(--violet-soft);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.portal-label { font-weight: 600; font-size: 1.1rem; }
.portal-meta { grid-column: 2; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); overflow-wrap: anywhere; }
.portal-arrow {
  grid-column: 3; grid-row: 1 / 3;
  width: 22px; height: 22px;
  fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur) var(--ease-out), stroke var(--dur) var(--ease-out);
}
.portal:hover .portal-arrow { stroke: var(--teal); transform: translate(3px, -3px); }

/* ───────────── footer ───────────── */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--s5); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.footer-mark { width: 28px; height: 28px; opacity: 0.7; }
.site-footer p { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }

/* ───────────── reveal (JS only, never hides content without it) ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .card.reveal.is-visible:hover { transform: translateY(-3px); transition-delay: 0ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .card:hover { transform: none; }
}
