/* GameFi情報局 — Cyberpunk × Wafu Fantasy */

:root {
  --bg-void: #05050f;
  --bg-deep: #0a0a1f;
  --bg-purple: #1a0b2e;
  --bg-card: #0d0b22;
  --ink-100: #f4f4ff;
  --ink-200: #c8c4e0;
  --ink-400: #8a86a8;
  --ink-600: #555274;

  --neon-cyan: #00ffff;
  --neon-cyan-soft: #7afcff;
  --neon-magenta: #ff00ea;
  --neon-magenta-soft: #ff7ae0;
  --gold: #ffd700;
  --vermilion: #e63946;   /* 朱色 */
  --torii: #d7263d;
  --jade: #5dd39e;

  --grid-line: rgba(0, 255, 255, 0.06);
  --grid-line-strong: rgba(0, 255, 255, 0.14);

  --font-display: "Zen Tokyo Zoo", "Orbitron", system-ui, sans-serif;
  --font-jp: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-void);
  color: var(--ink-100);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  cursor: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 0, 234, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(0, 255, 255, 0.15), transparent 60%),
    transparent;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== Noise + scanlines ===== */
.scanlines::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 100;
  mix-blend-mode: overlay;
}

.vignette::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
  z-index: 99;
}

/* ===== Typography ===== */
.font-display { font-family: var(--font-display); letter-spacing: 0.02em; }
.font-jp { font-family: var(--font-jp); }
.font-mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ===== Glitch text ===== */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before {
  color: var(--neon-cyan);
  animation: glitch-top 2.4s infinite steps(1);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-1px, -1px);
}
.glitch::after {
  color: var(--neon-magenta);
  animation: glitch-bot 2.8s infinite steps(1);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translate(1px, 1px);
}
@keyframes glitch-top {
  0%, 92%, 100% { transform: translate(-1px, -1px); }
  93% { transform: translate(-3px, -2px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 1px); }
}
@keyframes glitch-bot {
  0%, 90%, 100% { transform: translate(1px, 1px); }
  91% { transform: translate(3px, 2px); }
  94% { transform: translate(-2px, 1px); }
  96% { transform: translate(1px, -2px); }
}

/* ===== Neon button ===== */
.neon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(255, 0, 234, 0.08));
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: var(--ink-100);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.2,.9,.2,1);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.neon-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
  transition: left 0.7s;
}
.neon-btn:hover::before { left: 100%; }
.neon-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.6),
    0 0 40px rgba(0, 255, 255, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}
.neon-btn.magenta {
  border-color: rgba(255, 0, 234, 0.4);
  background: linear-gradient(135deg, rgba(255, 0, 234, 0.12), rgba(0, 255, 255, 0.05));
}
.neon-btn.magenta::before {
  background: linear-gradient(90deg, transparent, rgba(255, 0, 234, 0.6), transparent);
}
.neon-btn.magenta:hover {
  border-color: var(--neon-magenta);
  box-shadow:
    0 0 20px rgba(255, 0, 234, 0.6),
    0 0 40px rgba(255, 0, 234, 0.3);
}

/* ===== Cards ===== */
.cyber-card {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 11, 34, 0.9), rgba(10, 10, 31, 0.95));
  border: 1px solid rgba(0, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.cyber-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--neon-cyan), transparent 40%, transparent 60%, var(--neon-magenta));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  filter: blur(8px);
}
.cyber-card:hover::before { opacity: 0.6; }

/* Clipped corner "chamfer" — sci-fi window */
.chamfer {
  clip-path: polygon(
    16px 0,
    100% 0,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0 100%,
    0 16px
  );
}
.chamfer-sm {
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
}

/* ===== Rotating gradient border ===== */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.rot-border {
  position: relative;
  isolation: isolate;
}
.rot-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), var(--neon-cyan), var(--neon-magenta), var(--gold), var(--neon-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin-border 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
.rot-border:hover::before { opacity: 1; }
@keyframes spin-border {
  to { --border-angle: 360deg; }
}

/* ===== Scan-line overlay on cards ===== */
.scan-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.03) 2px,
    rgba(0, 255, 255, 0.03) 3px
  );
  pointer-events: none;
}

/* ===== Seigaiha (wave) pattern background ===== */
.seigaiha {
  background-image:
    radial-gradient(circle at 0 50%, transparent 18px, rgba(0, 255, 255, 0.08) 18px, rgba(0, 255, 255, 0.08) 20px, transparent 20px),
    radial-gradient(circle at 24px 50%, transparent 18px, rgba(255, 0, 234, 0.06) 18px, rgba(255, 0, 234, 0.06) 20px, transparent 20px);
  background-size: 48px 24px;
  background-position: 0 0, 24px 12px;
}

/* Asanoha (hemp leaf) — simplified SVG background set from JS */

/* ===== Focus ring / selection ===== */
::selection {
  background: var(--neon-magenta);
  color: var(--bg-void);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: 4px;
}

/* ===== Floating animation ===== */
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}
.float { animation: float-y 6s ease-in-out infinite; }

/* ===== Pulse glow ===== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.1); }
  50% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 255, 255, 0.2); }
}

/* ===== Tooltip/status dots ===== */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: var(--jade); box-shadow: 0 0 8px var(--jade); animation: blink 1.6s infinite; }
.dot-hot { background: var(--vermilion); box-shadow: 0 0 8px var(--vermilion); }
.dot-new { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Section title ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.35));
}

.section-sub {
  font-family: var(--font-jp);
  font-size: 18px;
  color: var(--ink-200);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-sub::before, .section-sub::after {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan));
}
.section-sub::after {
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

/* ===== Hide default cursor on interactive elements so custom cursor shows ===== */
a, button, input, select, textarea, [role="button"], .interactive {
  cursor: none;
}

/* ===== Chip ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  background: rgba(0, 255, 255, 0.04);
  color: var(--ink-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s;
  border-radius: 2px;
}
.chip:hover, .chip.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 255, 0.12);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}
.chip.magenta.active {
  border-color: var(--neon-magenta);
  background: rgba(255, 0, 234, 0.12);
  color: var(--neon-magenta-soft);
  box-shadow: 0 0 12px rgba(255, 0, 234, 0.3);
}

/* ===== AI search — magic circle ===== */
.magic-ring {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.magic-ring.active { opacity: 1; }
.magic-ring svg {
  width: 100%;
  height: 100%;
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ===== Torii silhouette decor ===== */
.torii-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  filter: drop-shadow(0 0 20px var(--torii));
}

/* ===== Marquee / ticker ===== */
.ticker {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 40s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Spark line strokes animate on mount ===== */
.spark-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2s ease-out forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ===== Quiz card flip ===== */
.flip-container { perspective: 1200px; }
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
}
.flip-inner.flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); }

/* ===== HUD ===== */
.hud {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 280px;
  z-index: 80;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-200);
  letter-spacing: 0.08em;
}

/* ===== Matrix rain canvas ===== */
.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.25;
  pointer-events: none;
}

/* ===== Custom cursor ===== */
.cursor-orb {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan), 0 0 24px var(--neon-cyan);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, box-shadow 0.25s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(.2,.9,.2,1), height 0.35s cubic-bezier(.2,.9,.2,1), border-color 0.25s;
}
.cursor-orb.hover { width: 6px; height: 6px; background: var(--neon-magenta); box-shadow: 0 0 16px var(--neon-magenta); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--neon-magenta); }

/* ===== KBD style ===== */
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-200);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* ===== Link underline animation ===== */
.nav-link {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-200);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.35s;
}
.nav-link:hover { color: var(--ink-100); }
.nav-link:hover::after { width: 100%; }

/* ===== Progress rail ===== */
.xp-bar {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0, 255, 255, 0.2);
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 10px var(--neon-cyan);
  position: relative;
}
.xp-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ===== Placeholder thumbnail ===== */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, rgba(255, 0, 234, 0.1), rgba(0, 255, 255, 0.08));
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Torii SVG color ===== */
.torii-glow { filter: drop-shadow(0 0 12px var(--torii)); }

/* ===== Scroll reveal default (mostly handled by IntersectionObserver classes added via JS) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.2,.9,.2,1), transform 0.8s cubic-bezier(.2,.9,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent overflow for cursor */
html { cursor: none; scroll-behavior: smooth; }

/* =====================================================
   Mobile-friendly & PSI optimizations
   ===================================================== */
img, svg, video { max-width: 100%; height: auto; }

/* Touch devices: native cursor, no orb */
@media (pointer: coarse) {
  html, body, a, button, input, select, textarea, [role="button"], .interactive, .chip { cursor: auto; }
  .cursor-orb, .cursor-ring { display: none !important; }
}

/* Layout grids (responsive via classes instead of inline styles) */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.editorial-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.blog-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.kv-row { display: grid; grid-template-columns: 200px 1fr; }

@media (max-width: 1024px) {
  .dash-grid { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  section { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-split { grid-template-columns: 1fr; gap: 0; }
  .hero-stage { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div { padding: 14px 18px !important; border-left: none !important; border-top: 1px solid rgba(255,255,255,0.07); }
  .quiz-grid { grid-template-columns: 1fr; gap: 34px; }
  .latest-grid, .strip-grid, .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 26px; }
  .blog-hero-grid { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: 1fr; }
  .kv-row > div:first-child { padding-bottom: 4px !important; }
  .hud { width: 220px; right: 10px; bottom: 10px; font-size: 10px; }
  .qa-views { display: none; }
  .section-title { font-size: clamp(28px, 8vw, 40px); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .latest-grid, .strip-grid, .stats-grid-4 { grid-template-columns: 1fr; }
}

/* Mobile nav */
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid rgba(0,255,255,0.35); background: transparent; color: #c8c4e0; place-items: center; }
@media (max-width: 900px) {
  .desktop-nav, .desktop-controls { display: none !important; }
  .menu-btn { display: grid; }
}
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(78vw, 320px);
  background: rgba(5, 5, 15, 0.97);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(0, 255, 255, 0.25);
  z-index: 95;
  padding: 96px 30px 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.2,.9,.2,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { padding: 14px 4px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2em; color: #c8c4e0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu a:active { color: var(--neon-cyan); }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 94; }

/* ===== BgSlides — 設定画背景のうねり＋スライド ===== */
.bg-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease, transform 1s cubic-bezier(.16,.84,.28,1);
  will-change: opacity, transform;
}
.bg-slide img {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.25) contrast(1.05) brightness(1.02);
}
.bg-undulate {
  animation: bg-undulate 18s ease-in-out infinite alternate;
}
@keyframes bg-undulate {
  0%   { transform: scale(1.08) translate(0%, 0%) rotate(0deg); }
  20%  { transform: scale(1.16) translate(-3.2%, 2.2%) rotate(1.4deg); }
  40%  { transform: scale(1.1) translate(2.6%, -2.6%) rotate(-1.2deg); }
  60%  { transform: scale(1.18) translate(-2.4%, -2.2%) rotate(1deg); }
  80%  { transform: scale(1.12) translate(3%, 1.8%) rotate(-1.3deg); }
  100% { transform: scale(1.1) translate(-1.6%, 2.6%) rotate(0.8deg); }
}
@media (max-width: 900px) {
  .bg-slide img { inset: -14%; width: 128%; height: 128%; }
}

/* PSI: skip offscreen rendering for below-fold sections */
main > section:nth-of-type(n+2) { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* PSI: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .matrix-bg { display: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== v2 layout additions ===== */
.hscroll { scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

.side-nav {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 1380px) { .side-nav { display: none; } }

@media (max-width: 1100px) {
  .bento-cell { grid-column: span 3 !important; }
}
@media (max-width: 760px) {
  .bento-cell { grid-column: span 6 !important; }
}
