/* ─────────────────────────────────────────────────────────────
   雪的小窝 · sard.games
   design system + layout.  hand-written, no frameworks.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #05070d;
  --bg-soft: #0a0f19;
  --ink: #eef4ff;
  --ink-dim: #c3d3e8;
  --muted: #8ea3bd;
  --faint: #6a7e98;
  --line: rgba(168, 198, 236, 0.13);
  --line-soft: rgba(168, 198, 236, 0.07);
  --accent: #a8d4ff;
  --accent-deep: #5f9fe0;
  --warm: #ffc48a;
  --glass: rgba(11, 18, 30, 0.55);
  --max: 1240px;
  --pad: clamp(20px, 4.5vw, 56px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.75, 0.18, 1);
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(88, 142, 214, 0.16), transparent 62%),
    radial-gradient(900px 700px at 6% 18%, rgba(108, 84, 186, 0.12), transparent 60%),
    linear-gradient(180deg, #05070d 0%, #060a12 55%, #04060a 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(168, 212, 255, 0.9);
  color: #04101d;
}

img, svg { display: block; }
a { color: inherit; }
b, strong { font-weight: 650; }
em { font-style: normal; color: var(--accent); }

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

/* ── layers ─────────────────────────────────────────────────── */

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, transparent 30%, rgba(5, 7, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0) 40%, rgba(5, 7, 13, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.2s linear;
}

.gridlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}

@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-3%, 2%, 0); }
  50% { transform: translate3d(2%, -3%, 0); }
  75% { transform: translate3d(-2%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(168, 198, 236, 0.08);
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), #fff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 18px rgba(168, 212, 255, 0.7);
}

/* ── cursor ─────────────────────────────────────────────────── */

.cursor { display: none; }

body.has-cursor .cursor {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}

body.has-cursor.cursor-on .cursor { opacity: 1; }

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #fff;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), border-color 0.3s;
}

body.cursor-hover .cursor-ring {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(255, 255, 255, 0.9);
}

/* ── skip ───────────────────────────────────────────────────── */

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--ink);
  color: #06101c;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip:focus-visible { transform: none; }

/* ── shell ──────────────────────────────────────────────────── */

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

main, .footer { position: relative; z-index: 3; }

/* ── header ─────────────────────────────────────────────────── */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), background 0.4s, border-color 0.4s, padding 0.4s;
}

.hdr.is-stuck {
  padding-block: 12px;
  background: rgba(6, 9, 15, 0.62);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.hdr.is-hidden { transform: translateY(-104%); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.logo svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  transition: transform 1.1s var(--ease);
}

.logo:hover svg { transform: rotate(180deg); }

.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
}

.nav a {
  position: relative;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.hdr-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 0 rgba(255, 196, 138, 0.5);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 196, 138, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 196, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 196, 138, 0); }
}

.tz { color: rgba(142, 163, 189, 0.5); }

/* ── hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 16vh, 170px) 0 clamp(48px, 9vh, 90px);
}

.hero-wrap { position: relative; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow .sep { color: var(--accent); margin: 0 0.35em; }

.display {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(16px, 3vh, 30px) 0 clamp(22px, 4vh, 40px);
  font-size: clamp(62px, 12.6vw, 188px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.035em;
  filter: drop-shadow(0 20px 70px rgba(120, 175, 240, 0.22));
}

.ch {
  display: inline-block;
  overflow: hidden;
  padding-right: 0.02em;
}

.ch > span {
  display: inline-block;
  background-image: linear-gradient(178deg, #ffffff 4%, #dceaff 40%, #93b8e0 78%, #5d84b4 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(112%) rotate(2deg);
  animation: chIn 1.35s var(--ease) forwards;
  animation-delay: calc(var(--i) * 105ms + 260ms);
}

@keyframes chIn {
  to { transform: translateY(0) rotate(0); }
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}

.hero-sub {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.95;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

.hero-sub em {
  position: relative;
  color: var(--ink);
  padding-bottom: 2px;
  background-image: linear-gradient(90deg, var(--warm), rgba(255, 196, 138, 0.15));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.25s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  will-change: transform;
}

.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #cfe4ff);
  color: #06101c;
  box-shadow: 0 14px 40px -18px rgba(190, 222, 255, 0.85);
}

.btn-primary:hover {
  box-shadow: 0 18px 46px -14px rgba(190, 222, 255, 0.95);
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(168, 198, 236, 0.26);
  background: rgba(10, 17, 28, 0.35);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(168, 198, 236, 0.5);
  background: rgba(20, 32, 50, 0.55);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  margin: clamp(38px, 7vh, 68px) 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
}

.hero-facts b {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-facts .scroll-hint {
  margin-left: auto;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.2em;
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: 50% 0;
}

@keyframes drip {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.hero-side {
  position: absolute;
  top: 50%;
  right: calc(var(--pad) * 0.4);
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 16px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(142, 163, 189, 0.55);
  pointer-events: none;
}

.hero-side .dim { color: rgba(142, 163, 189, 0.3); }

.vline {
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(168, 198, 236, 0.4), transparent);
}

/* ── ticker ─────────────────────────────────────────────────── */

.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(6, 10, 17, 0.45);
  backdrop-filter: blur(6px);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  padding: 15px 0;
  animation: drift 46s linear infinite;
}

.ticker-track .tk {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker-track i {
  font-style: normal;
  font-size: 9px;
  color: var(--accent-deep);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ── sections ───────────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 3;
  padding: clamp(84px, 13vh, 150px) 0;
}

.section-head { max-width: 620px; margin-bottom: clamp(34px, 6vh, 60px); }

.kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kicker .slash { color: var(--accent-deep); }
.kicker .en { color: rgba(142, 163, 189, 0.42); letter-spacing: 0.3em; }

.section-title {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 10%, #b9d2ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}

/* ── cards ──────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --ty: 0px;
  --mx: 50%;
  --my: 0%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  min-height: 292px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 28, 44, 0.62), rgba(8, 13, 22, 0.55));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 220px at var(--mx) var(--my), rgba(168, 212, 255, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 238, 255, 0.4), transparent);
  opacity: 0.6;
}

.card:hover {
  --ty: -4px;
  border-color: rgba(168, 198, 236, 0.3);
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(168, 212, 255, 0.05) inset;
}

.card:hover::before { opacity: 1; }

.card-no {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(142, 163, 189, 0.5);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(168, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(168, 212, 255, 0.13), rgba(168, 212, 255, 0.02));
  color: var(--accent);
}

.card-icon svg { width: 21px; height: 21px; }

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(160, 186, 214, 0.85);
}

/* ── log ────────────────────────────────────────────────────── */

.log-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
}

.log-head {
  position: sticky;
  top: clamp(90px, 16vh, 150px);
  align-self: start;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 34px;
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
}

.timeline::before { background: rgba(168, 198, 236, 0.12); }

.timeline::after {
  background: linear-gradient(180deg, var(--accent), rgba(168, 212, 255, 0.05));
  transform: scaleY(var(--fill, 0));
  transform-origin: 50% 0;
  transition: transform 0.15s linear;
  box-shadow: 0 0 12px rgba(168, 212, 255, 0.45);
}

.tl-item {
  position: relative;
  padding: 0 0 40px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(168, 212, 255, 0.55);
  background: #070c14;
  box-shadow: 0 0 0 4px rgba(168, 212, 255, 0.06);
}

.tl-time {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.tl-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.tl-item p {
  margin: 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ── about ──────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.statement {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.muted-p {
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}

.stats div {
  padding: 18px 16px;
  background: rgba(8, 13, 22, 0.72);
}

.stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
}

.stats dd {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats dd small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ── footer ─────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 3;
  padding: clamp(56px, 9vh, 100px) 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.2), rgba(4, 6, 11, 0.85));
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 5vh, 48px);
}

.footer-mark {
  margin: 0;
  font-size: clamp(52px, 13.5vw, 168px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 219, 255, 0.22);
  user-select: none;
}

.to-top {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: var(--ink); border-color: rgba(168, 198, 236, 0.45); transform: translateY(-3px); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.footer-label {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--faint);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-nav a { color: var(--muted); text-decoration: none; width: fit-content; transition: color 0.25s; }
.footer-nav a:hover { color: var(--ink); }

.footer-legal {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 2;
  color: var(--faint);
}

.footer-legal p { margin: 0; }

.footer-legal a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(195, 211, 232, 0.25);
  transition: color 0.25s, border-color 0.25s;
}

.footer-legal a:hover { color: #fff; border-color: #fff; }
.footer-legal .fine { color: rgba(106, 126, 152, 0.7); }

/* ── reveal ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── responsive ─────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-grid, .about-grid { grid-template-columns: 1fr; }
  .log-head { position: static; }
  .hero-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hdr { gap: 14px; }
  .hdr-meta { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .logo span { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-facts { gap: 22px; }
  .hero-facts .scroll-hint { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { align-items: center; }
  .display { letter-spacing: -0.045em; }
}

/* ── motion preferences ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ch > span { animation: none; transform: none; }
  .ticker-track { animation: none; }
  .grain { animation: none; }
  .live, .scroll-hint i { animation: none; }
  .card, .btn { transition: none; }
}

@media (hover: none) {
  .cursor { display: none !important; }
}

/* no WebGL: the gradients above carry the look */
body.no-webgl #stage { display: none; }
body.no-webgl .veil { opacity: 1; }

@media print {
  #stage, .grain, .gridlines, .cursor, .progress, .hdr { display: none; }
  body { background: #fff; color: #000; }
}
