/* HSPingal — site stylesheet.
   Warm paper, ink line work and one signal-orange accent. The apps bring the rest of the colour.
   System fonts only. No third-party requests. */

:root {
  color-scheme: light;

  --paper: #f4efe4;
  --paper-2: #ebe4d3;
  --paper-3: #fbf8f1;
  --ink: #15130e;
  --ink-2: #48443a;
  --ink-3: #6b6657;
  --night: #12110d;
  --night-2: #1d1b15;
  --on-night: #f4efe4;
  --on-night-2: #bdb6a4;
  --signal: #ff4d1c;
  --signal-ink: #b93006;
  --line: rgba(21, 19, 14, 0.18);
  --line-hi: rgba(21, 19, 14, 0.85);
  --line-night: rgba(244, 239, 228, 0.18);

  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 12px;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
a { color: var(--signal-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 500; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 6px; }
main { flex: 1 0 auto; }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: var(--paper); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout and type ---------- */

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }

.h-display { font-family: var(--display); font-size: clamp(3rem, 8.4vw, 6.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 0.98; }
.h-section { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; }
.grad { color: var(--signal); font-style: italic; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 38rem; }
.lede-center { margin-inline: auto; }
.muted { color: var(--ink-3); }

/* Kept as a class name from the older pages: now a plain paper card with an ink hairline. */
.glass { background: var(--paper-3); border: 1.5px solid var(--line); }
.sheen { position: relative; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: #1a0a03; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.on-night .btn { border-color: var(--on-night); color: var(--on-night); }
.on-night .btn:hover { background: var(--on-night); color: var(--night); }
.on-night .btn-primary { background: var(--signal); border-color: var(--signal); color: #1a0a03; }
.on-night .btn-primary:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--signal-ink); font-weight: 700; }
.logo-arc { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .logo-arc { animation: logo-ping 1s var(--ease) infinite; }
  .brand:hover .logo-arc-2 { animation-delay: 0.14s; }
}
@keyframes logo-ping { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

/* ---------- Header and navigation ---------- */

.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
}
.nav .brand { margin-right: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-cta { display: none; }

.menu summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
}
.menu-panel a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--paper-2); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu { display: none; }
}

/* ---------- Home: hero ---------- */

.hero-stage {
  position: relative;
  margin-top: -74px;
  padding: 118px 0 0;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  isolation: isolate;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(244, 239, 228, 0.13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 90% at 70% 45%, #000 30%, transparent 90%);
  mask-image: radial-gradient(90% 90% at 70% 45%, #000 30%, transparent 90%);
}
.hero-grid {
  display: grid;
  gap: clamp(8px, 3vw, 32px);
  align-items: center;
  padding-bottom: clamp(32px, 5vw, 64px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { color: var(--on-night-2); }
.hero-copy .h-display { margin: 20px 0 22px; }
.hero-copy .lede { color: var(--on-night-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art:hover .orbit, .hero-art:hover .counter, .hero-art:focus-within .orbit, .hero-art:focus-within .counter { animation-play-state: paused; }
.hero-tile { cursor: pointer; }
.hero-tile:focus-visible { outline: none; }
.hero-tile:focus-visible rect { stroke: var(--signal); stroke-width: 4px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .hero-stage { padding-top: 128px; }
}

.ticker { overflow: hidden; border-top: 1px solid var(--line-night); padding: 14px 0; white-space: nowrap; font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.02em; color: var(--on-night-2); }
.ticker-track { display: inline-flex; gap: 0; width: max-content; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; }
.ticker-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 46s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Home: the apps ---------- */

.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lede { margin: 0; }
.section-head .eyebrow { margin-bottom: 14px; }

.apps-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.apps-count { margin: 0; font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); }
.search {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
  min-height: 50px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper-3);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.search::placeholder { color: var(--ink-3); }
.js-only { display: none; }
.js .js-only { display: block; }

.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.bento > li { grid-column: span 12; min-width: 0; }
.bento > li[hidden] { display: none; }
@media (min-width: 640px) { .bento > li { grid-column: span 6; } }
@media (min-width: 1000px) {
  .bento > li { grid-column: span 4; }
  .bento > li.lead { grid-column: span 7; }
  .bento > li.lead-2 { grid-column: span 5; }
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-fg);
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.app-card:hover { color: var(--c-fg); transform: translateY(-5px); }
.app-card .scene { display: block; width: 100%; height: auto; flex: none; padding: 10px 10px 0; transition: transform 0.5s var(--ease); }
.app-card:hover .scene { transform: scale(1.035); }
.app-card-body { display: flex; flex-direction: column; flex: 1; padding: 6px 24px 22px; }
.app-card-kind { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-sub); }
.app-card h3 { margin: 6px 0 8px; font-family: var(--c-font, var(--display)); font-size: 1.72rem; font-weight: var(--c-weight, 500); letter-spacing: -0.02em; line-height: 1.08; }
.app-card p { margin: 0 0 16px; font-size: 0.97rem; line-height: 1.45; color: var(--c-sub); }
.app-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: 0.92rem; }
.app-card-go svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.app-card:hover .app-card-go svg { transform: translateX(5px); }
.lead .app-card h3, .lead-2 .app-card h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.empty { display: none; color: var(--ink-3); padding: 24px 0; }

/* ---------- Home: stats and rules ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-block: 1.5px solid var(--ink); margin-bottom: clamp(40px, 6vw, 72px); }
.stat { padding: 22px 8px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 0.95rem; color: var(--ink-2); }
@media (min-width: 640px) { .stat + .stat { border-left: 1.5px solid var(--ink); padding-left: 24px; } }

.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rule { display: flex; flex-direction: column; padding: 0 0 24px; border-radius: var(--r-md); background: var(--paper-3); border: 1.5px solid var(--ink); overflow: hidden; --s1: #ff4d1c; --s2: #15130e; --s3: #e8b52c; --sl: #15130e; --sp: #ebe4d3; }
.rule .scene { display: block; width: 100%; height: auto; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); }
.rule h3 { margin: 20px 24px 8px; font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.015em; }
.rule p { margin: 0 24px; color: var(--ink-2); font-size: 0.99rem; }

/* ---------- Home: local-device band ---------- */

.device-band { background: var(--night); color: var(--on-night); }
.device-grid { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
.device-grid .eyebrow { color: var(--on-night-2); margin-bottom: 14px; }
.device-grid .lede { color: var(--on-night-2); }
.device-grid svg { display: block; width: 100%; height: auto; --s1: #ff4d1c; --s2: #f4efe4; --s3: #e8b52c; --sl: #f4efe4; --sp: #1d1b15; }
.device-note { font-size: 0.92rem; color: var(--on-night-2); margin-top: 14px; }
@media (min-width: 900px) { .device-grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Generic cards and panels ---------- */

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); list-style: none; margin: 0 0 8px; padding: 0; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-2 + p.muted { margin-top: 24px; }
.panel { padding: 28px; border-radius: var(--r-md); }
.panel h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 0.4em; }
.panel p { color: var(--ink-2); margin: 0; font-size: 0.99rem; }
.step-num { font-family: var(--mono); font-size: 0.85rem; color: var(--signal-ink); margin-bottom: 10px; display: block; }
.principle-icon { display: block; margin-bottom: 10px; }

.cta-band { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); border-radius: var(--r-lg); background: var(--signal); color: #1a0a03; border: 0; }
.cta-band .h-section { max-width: 15ch; }
.cta-band .lede { color: #1a0a03; }
.cta-band .btn { border-color: #1a0a03; color: #1a0a03; }
.cta-band .btn:hover { background: #1a0a03; color: var(--paper); }
.cta-band .scene { position: absolute; right: -40px; top: 50%; width: min(52%, 460px); transform: translateY(-50%); --s1: #1a0a03; --sl: #1a0a03; --s2: #1a0a03; --sp: transparent; pointer-events: none; }
.cta-band > :not(.scene) { position: relative; z-index: 1; }
@media (max-width: 720px) { .cta-band .scene { opacity: 0.25; width: 90%; right: -30%; } }

/* ---------- Blog ---------- */

.post-card { position: relative; padding: 24px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 12px; height: 100%; transition: border-color 0.2s, transform 0.3s var(--ease); }
.post-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.post-card h2, .post-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; margin: 0; letter-spacing: -0.015em; line-height: 1.16; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.post-card .tile { width: 46px; height: 46px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.84rem; color: var(--ink-3); }
.badge { padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; color: var(--ink); background: var(--paper-2); }
.tag { padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; color: var(--ink-3); border: 1px solid var(--line); }

.crumbs { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.post-head { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(20px, 3vw, 36px); }
.post-head .h-section { font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 19ch; margin-top: 14px; }
.post-head .scene { display: none; }
.post-emoji { display: block; margin-bottom: 18px; }
.post-emoji .tile { width: 64px; height: 64px; display: block; }
@media (min-width: 960px) {
  .post-head .scene { display: block; position: absolute; right: 0; top: 50%; width: min(36%, 400px); height: auto; transform: translateY(-50%); --s1: #ff4d1c; --s2: #15130e; --s3: #e8b52c; --sl: #15130e; --sp: #ebe4d3; }
  .post-head.has-art .h-section, .post-head.has-art .lede { max-width: min(60%, 19ch * 2); }
}

.prose { max-width: 44rem; font-size: 1.0925rem; line-height: 1.72; color: var(--ink-2); }
.prose h2 { font-family: var(--display); font-size: 2rem; letter-spacing: -0.015em; color: var(--ink); margin: 1.8em 0 0.45em; }
.prose h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 1.6em 0 0.4em; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.post-end { max-width: 44rem; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

.legal { max-width: 46rem; }
.legal .prose { max-width: none; }
.legal h2 { font-size: 1.6rem; }
.notice { padding: 18px 22px; border-radius: var(--r-md); margin: 24px 0; font-size: 0.98rem; color: var(--ink-2); }

.contact-card { padding: 28px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 10px; }
.contact-card h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; }
.contact-card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.mail-big { font-family: var(--mono); font-size: clamp(1rem, 3.4vw, 1.3rem); color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; word-break: break-word; }
.mail-big:hover { color: var(--signal-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

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

.err { text-align: center; padding: clamp(40px, 8vw, 96px) 0; }
.err .scene { display: block; width: min(100%, 460px); height: auto; margin: 0 auto 8px; --s1: #ff4d1c; --s2: #15130e; --s3: #e8b52c; --sl: #15130e; --sp: #ebe4d3; }
.err .code { font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--signal-ink); margin: 0 0 8px; }
.err .hero-cta { justify-content: center; }

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

.site-footer { margin-top: clamp(40px, 6vw, 80px); padding: clamp(40px, 6vw, 72px) 0 0; background: var(--night); color: var(--on-night); overflow: hidden; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.footer-grid h2 { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-night-2); margin: 0 0 14px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--on-night); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--signal); }
.footer-brand p { color: var(--on-night-2); font-size: 0.95rem; max-width: 28ch; margin: 12px 0 0; }
.footer-brand .brand { color: var(--on-night); }
.footer-brand .brand b { color: #ff7a52; }
.footer-apps { columns: 2 150px; column-gap: 20px; display: block !important; }
.footer-apps li { margin-bottom: 7px; break-inside: avoid; }
.footer-bottom { margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--line-night); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--on-night-2); font-size: 0.88rem; }
.footer-word { display: block; width: 100%; height: auto; margin-top: 8px; margin-bottom: -2.2%; font-family: var(--font); fill: var(--on-night); }
.footer-word tspan { fill: var(--signal); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.8s var(--ease) both; }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .app-card:hover, .post-card:hover, .app-card:hover .scene { transform: none; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .panel, .contact-card { padding: 22px; }
  .app-card { min-height: 0; }
}
