/* ============================================================
   GENSHI MEDIA GROUP — 2026
   The Pebble-Spiral Universe
   palette: deep indigo-charcoal / logo lime / warm white / violet streak
   type:    Unbounded (display) · Instrument Sans (body) · Space Mono (data)
   ============================================================ */

:root {
  --ink:        #14131c;
  --bg:         #201F2E;
  --bg-2:       #282740;
  --line:       rgba(244, 243, 238, 0.13);
  --white:      #F4F3EE;
  --grey:       #989aa9;
  --lime:       #A8D437;
  --lime-soft:  rgba(168, 212, 55, 0.14);
  --violet:     #8B7BFF;
  --display:    "Unbounded", sans-serif;
  --body:       "Instrument Sans", sans-serif;
  --mono:       "Space Mono", monospace;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.mono { font-family: var(--mono); letter-spacing: 0.08em; }

a { color: inherit; text-decoration: none; }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); }
  75% { transform: translate(-3%,-3%); }
}

/* ===== preloader ===== */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader .loader-spiral { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loader .loader-text { font-size: 11px; color: var(--grey); letter-spacing: 0.3em; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
body:not(.loading) #loader { opacity: 0; visibility: hidden; }

/* ===== particle canvas & atmosphere ===== */
#cosmos {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 0; display: block;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 10%, transparent 55%, rgba(20,19,28,0.75) 100%),
    radial-gradient(ellipse 80% 60% at 80% 90%, rgba(139,123,255,0.05), transparent 60%);
}

/* ===== custom cursor ===== */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(244,243,238,0.5);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s;
  mix-blend-mode: difference;
}
.cursor-ring.is-hover {
  transform: scale(1.8);
  border-color: var(--lime);
  background: rgba(168,212,55,0.12);
}
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ===== topbar ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 34px;
  background: linear-gradient(to bottom, rgba(20,19,28,0.85), transparent);
  opacity: 0; /* revealed on load */
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.topbar.scrolled {
  padding: 12px 34px;
  background: rgba(20,19,28,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244,243,238,0.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-word {
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.12em;
}
.brand-word em {
  display: block; font-family: var(--mono); font-style: normal; font-size: 8.5px;
  letter-spacing: 0.42em; color: var(--lime); text-transform: uppercase;
}
.topnav { display: flex; gap: 26px; font-size: 11px; }
.topnav a { position: relative; color: var(--grey); transition: color 0.25s; padding: 4px 0; }
.topnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--lime); transition: width 0.3s ease;
}
.topnav a:hover { color: var(--white); }
.topnav a:hover::after { width: 100%; }

#audio-toggle {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 100px;
  color: var(--grey); font-size: 10px; letter-spacing: 0.2em;
  padding: 8px 16px; cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
#audio-toggle:hover { border-color: var(--lime); color: var(--white); }
#audio-toggle .eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
#audio-toggle .eq i {
  width: 2px; height: 4px; background: var(--grey); border-radius: 1px;
  transition: background 0.3s;
}
#audio-toggle.on { color: var(--lime); border-color: rgba(168,212,55,0.5); }
#audio-toggle.on .eq i { background: var(--lime); animation: eq 0.9s ease-in-out infinite; }
#audio-toggle.on .eq i:nth-child(1) { animation-delay: 0s; }
#audio-toggle.on .eq i:nth-child(2) { animation-delay: 0.22s; }
#audio-toggle.on .eq i:nth-child(3) { animation-delay: 0.1s; }
#audio-toggle.on .eq i:nth-child(4) { animation-delay: 0.34s; }
@keyframes eq { 50% { height: 12px; } }

/* ===== layout primitives ===== */
main { position: relative; z-index: 10; }
section { position: relative; padding: 0 max(34px, 6vw); }

.kicker {
  font-size: 11px; color: var(--lime); letter-spacing: 0.34em;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 30px;
}

.kanji-ghost {
  position: absolute; right: -2vw; top: 12vh; z-index: -1;
  font-size: clamp(180px, 30vw, 460px); line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,243,238,0.07);
  pointer-events: none; user-select: none;
  writing-mode: vertical-rl;
}

/* ===== hero ===== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: 80px;
}
.hero-kicker { font-size: 12px; color: var(--lime); letter-spacing: 0.4em; margin-bottom: 3vh; }
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 14.5vw, 230px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  display: flex;
}
.ht-char { display: inline-block; will-change: transform; }
.ht-char:nth-child(odd):hover { color: var(--lime); transition: color .3s; }
.hero-sub {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(17px, 3.6vw, 56px);
  letter-spacing: 0.56em; text-indent: 0.1em;
  color: var(--grey);
  margin: 1.4vh 0 4.5vh;
}
.hero-tag { max-width: 520px; font-size: 17px; color: var(--grey); }
.hero-tag b { color: var(--white); font-weight: 500; }
.scroll-cue {
  position: absolute; bottom: 38px; left: max(34px, 6vw);
  display: flex; align-items: center; gap: 16px;
  font-size: 10px; color: var(--grey); letter-spacing: 0.3em;
}
.cue-line { width: 72px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.cue-line::after {
  content: ""; position: absolute; inset: 0; background: var(--lime);
  transform: translateX(-100%); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

/* ===== manifesto ===== */
.manifesto { padding-top: 24vh; padding-bottom: 22vh; max-width: 1100px; }
.manifesto-text {
  font-family: var(--body); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.38; letter-spacing: -0.01em;
}
.manifesto-text span { display: block; }
.manifesto-text em { font-style: normal; color: var(--lime); }
.hl-link {
  color: var(--lime);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-size: 100% 1px; background-position: 0 96%; background-repeat: no-repeat;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 9vh; max-width: 880px;
}
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat-num { display: block; font-size: clamp(34px, 4vw, 56px); font-weight: 700; color: var(--white); line-height: 1; }
.stat span { font-size: 10px; color: var(--grey); letter-spacing: 0.26em; }

/* ===== divisions ===== */
.divisions { padding-top: 10vh; padding-bottom: 22vh; }
.division-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 7vh;
  perspective: 1200px;
}
.division-card {
  --glow: var(--lime);
  position: relative;
  display: flex; flex-direction: column; gap: 26px;
  min-height: 380px;
  padding: 30px 28px;
  background: rgba(32, 31, 46, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.division-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--glow) 14%, transparent), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.division-card:hover::before { opacity: 1; }
.division-card:hover {
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 24px 70px -28px color-mix(in srgb, var(--glow) 45%, transparent);
  background: rgba(40, 39, 64, 0.7);
}
.card-zg  { --glow: #9DB4FF; }
.card-lab { --glow: #F4F3EE; }
.card-toy { --glow: #F4F3EE; }
.dc-index { font-size: 10px; color: var(--grey); letter-spacing: 0.3em; }
.dc-logo { display: flex; align-items: center; min-height: 110px; }
.dc-logo img { max-width: 86%; max-height: 96px; object-fit: contain; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5)); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.division-card:hover .dc-logo img { transform: scale(1.05) translateZ(30px); }
.dc-desc { color: var(--grey); font-size: 15.5px; line-height: 1.65; flex: 1; }
.dc-cta {
  font-size: 11px; letter-spacing: 0.26em; color: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.dc-cta::before {
  content: ""; width: 22px; height: 1px; background: var(--glow);
  transition: width 0.35s ease;
}
.division-card:hover .dc-cta::before { width: 44px; }
.divisions-foot { margin-top: 6vh; font-size: 11px; color: var(--grey); letter-spacing: 0.22em; }
.divisions-foot a { color: var(--white); border-bottom: 1px solid var(--lime); padding-bottom: 2px; transition: color .3s; }
.divisions-foot a:hover { color: var(--lime); }

/* ===== record / horizontal timeline ===== */
.record { padding: 0; }
.record-pin {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 90px 0 40px;
}
.record-head { padding: 0 max(34px, 6vw); margin-bottom: 4vh; }
.record-head .section-title { margin-bottom: 14px; }
.record-hint { font-size: 10px; color: var(--grey); letter-spacing: 0.3em; }
.record-track {
  display: flex; align-items: stretch; gap: 26px;
  padding: 0 max(34px, 6vw);
  width: max-content;
  will-change: transform;
}
.ms-card {
  position: relative;
  width: min(480px, 78vw);
  display: flex; flex-direction: column;
  background: rgba(32,31,46,0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.4s, transform 0.4s;
}
.ms-card:hover { border-color: rgba(168,212,55,0.45); }
.ms-img {
  height: 280px; overflow: hidden; position: relative;
  background: var(--bg-2);
}
.ms-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
  filter: saturate(0.92);
}
.ms-card:hover .ms-img img { transform: scale(1.06); }
.ms-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(32,31,46,0.85), transparent 45%);
}
.ms-year {
  position: absolute; right: 14px; top: 8px; z-index: 2;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(44px, 5vw, 64px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,243,238,0.8);
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.ms-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ms-cat { font-size: 9.5px; color: var(--lime); letter-spacing: 0.3em; }
.ms-title { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.3; }
.ms-blurb { color: var(--grey); font-size: 14.5px; line-height: 1.6; flex: 1; }
.ms-link {
  align-self: flex-start; cursor: pointer;
  background: none; border: none; color: var(--white);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
}
.ms-link::before { content: ""; width: 20px; height: 1px; background: var(--lime); transition: width 0.35s; }
.ms-link:hover::before { width: 40px; }
.ms-card.ms-origin { justify-content: center; background: var(--lime-soft); border-color: rgba(168,212,55,0.3); }
.ms-card.ms-origin .ms-body { gap: 16px; }
.ms-card.ms-origin .ms-logo { width: 110px; border-radius: 12px; }
.record-progress {
  margin: 4vh max(34px, 6vw) 0;
  height: 1px; background: var(--line); position: relative;
}
.rp-fill {
  position: absolute; inset: 0; transform-origin: left;
  background: var(--lime); transform: scaleX(0);
}

/* ===== archive ===== */
.archive { padding-top: 20vh; padding-bottom: 16vh; }
.archive-sub { max-width: 620px; color: var(--grey); margin-bottom: 5vh; }
.archive-sub .mono { font-size: 12px; display: inline-block; margin-top: 6px; color: rgba(152,154,169,0.7); }
.archive-sub a { color: var(--lime); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--grey); font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  padding: 9px 18px;
  transition: all 0.3s;
}
.filter-chip:hover { border-color: var(--grey); color: var(--white); }
.filter-chip.active { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 700; }
.filter-chip b { font-weight: 400; opacity: 0.55; margin-left: 6px; }
.filter-chip.active b { opacity: 0.7; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.arc-card {
  position: relative; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(32,31,46,0.5);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.arc-card:hover {
  border-color: rgba(168,212,55,0.5);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -24px rgba(0,0,0,0.8);
}
.arc-thumb { height: 190px; background: var(--bg-2); overflow: hidden; position: relative; }
.arc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.4s;
}
.arc-card:hover .arc-thumb img { transform: scale(1.07); filter: saturate(1.05); }
.arc-thumb.no-img { display: flex; align-items: center; justify-content: center; }
.arc-thumb.no-img::before {
  content: "原始"; font-size: 54px; color: rgba(244,243,238,0.07);
  font-weight: 700;
}
.arc-meta { padding: 18px 20px 20px; }
.arc-date { font-family: var(--mono); font-size: 10px; color: var(--lime); letter-spacing: 0.24em; }
.arc-title {
  font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.4;
  margin: 10px 0 12px; color: var(--white);
}
.arc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.arc-cats span {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em;
  color: var(--grey); border: 1px solid var(--line); border-radius: 100px;
  padding: 3px 9px;
}

/* ===== reader overlay ===== */
.reader { position: fixed; inset: 0; z-index: 500; visibility: hidden; }
.reader.open { visibility: visible; }
.reader-veil {
  position: absolute; inset: 0;
  background: rgba(20,19,28,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}
.reader-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(760px, 100vw);
  background: linear-gradient(160deg, var(--bg-2), var(--bg) 40%, var(--ink));
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 30px clamp(24px, 5vw, 60px) 80px;
  transform: translateX(100%);
}
.reader-top {
  display: flex; align-items: center; gap: 18px;
  font-size: 10.5px; color: var(--grey); letter-spacing: 0.22em;
  padding-bottom: 22px; margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: -30px; padding-top: 30px; margin-top: -30px;
  background: var(--bg-2); z-index: 2;
}
.reader-date { color: var(--lime); }
.reader-cats { flex: 1; }
.reader-close {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  color: var(--white); font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  padding: 8px 16px; cursor: pointer; transition: all 0.3s;
}
.reader-close:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.reader-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1.25;
  margin-bottom: 28px;
}
.reader-body p { margin-bottom: 1.2em; color: rgba(244,243,238,0.86); }
.reader-body a { color: var(--lime); border-bottom: 1px solid rgba(168,212,55,0.4); }
.reader-body a:hover { border-bottom-color: var(--lime); }
.reader-body .sc-embed {
  display: block; width: 100%; height: 166px;
  margin: 28px 0 4px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(20,19,28,0.6);
}
.reader-gallery { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.reader-gallery figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.reader-gallery img { width: 100%; display: block; }
.reader-gallery figcaption {
  font-family: var(--mono); font-size: 10px; color: var(--grey);
  letter-spacing: 0.14em; padding: 10px 14px; background: rgba(20,19,28,0.6);
}
.reader-origin { margin-top: 40px; font-size: 10.5px; letter-spacing: 0.22em; }
.reader-origin a { color: var(--grey); transition: color 0.3s; }
.reader-origin a:hover { color: var(--lime); }

/* ===== signal / footer ===== */
.signal {
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 14vh; overflow: hidden;
}
.kanji-signal { top: auto; bottom: 4vh; right: 2vw; }
.signal-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(56px, 11vw, 170px);
  line-height: 0.98; letter-spacing: -0.01em;
  margin-bottom: 7vh;
}
.signal-email {
  display: inline-flex; flex-direction: column; gap: 10px;
  align-self: flex-start;
  margin: -2vh 0 7vh;
}
.se-kicker { font-size: 10px; color: var(--grey); letter-spacing: 0.34em; transition: color 0.3s; }
.se-addr {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(20px, 3.2vw, 40px);
  letter-spacing: 0.02em;
  color: var(--white);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 8px;
  transition: background-size 0.5s cubic-bezier(0.16,1,0.3,1), color 0.3s;
}
.signal-email:hover .se-addr { background-size: 100% 2px; color: var(--lime); }
.signal-email:hover .se-kicker { color: var(--lime); }

.socials { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3.5vw, 48px); margin-bottom: 12vh; }
.socials a { display: block; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), filter 0.35s; filter: grayscale(0.4) brightness(0.85); }
.socials a:hover { transform: translateY(-6px) scale(1.06); filter: grayscale(0) brightness(1.1) drop-shadow(0 10px 28px rgba(0,0,0,0.6)); }
.socials img { height: 30px; width: auto; display: block; }
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 10px; letter-spacing: 0.22em; margin-bottom: 20px; }
.foot-links a { color: var(--grey); transition: color 0.3s; }
.foot-links a:hover { color: var(--lime); }
.foot-copy { font-size: 9.5px; color: rgba(152,154,169,0.55); letter-spacing: 0.18em; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .topnav { display: none; }
  .division-grid { grid-template-columns: 1fr; max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { padding: 16px 20px; }
  .topbar.scrolled { padding: 10px 20px; }
  section { padding-left: 20px; padding-right: 20px; }
  .scroll-cue { left: 20px; }
  .record-pin { height: auto; padding: 16vh 0 10vh; }
  .record-track { flex-direction: column; width: auto; padding: 0 20px; }
  .ms-card { width: 100%; }
  .record-progress { display: none; }
  .kanji-ghost { opacity: 0.6; }
  .reader-panel { width: 100vw; border-left: none; }
}

/* reduced motion: calm everything */
@media (prefers-reduced-motion: reduce) {
  body::after, .cue-line::after, #loader .loader-spiral { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
