@charset "UTF-8";

/* ==========================================================================
   Talenttao Editorial V3 · Privacy-Clean + Flashcards + Dynamic Lab + Secrets
   Strictly scoped to body.editorial-site (mini-game pages are untouched)
   ========================================================================== */

body.editorial-site {
  --bg: #f6f4ef;
  --ink: #1b1e1d;
  --muted: #646a67;
  --line: rgba(27, 30, 29, 0.10);
  --line-strong: rgba(27, 30, 29, 0.22);
  --surface: #eceae2;
  --card: #ffffff;
  --button: #1b1e1d;
  --button-ink: #faf9f6;
  --accent: #b45334;
  --accent-2: #3d6b7c;
  --accent-soft: rgba(180, 83, 52, 0.10);
  --header-bg: rgba(246, 244, 239, 0.78);
  --shadow-sm: 0 2px 12px rgba(20, 24, 22, 0.045);
  --shadow-md: 0 16px 38px rgba(20, 24, 22, 0.09);
  --shadow-panel: 0 28px 64px rgba(10, 14, 22, 0.26);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 95% 560px at 12% -80px, rgba(180, 83, 52, 0.08), transparent 68%),
    radial-gradient(ellipse 75% 460px at 88% 80px, rgba(61, 107, 124, 0.065), transparent 70%),
    linear-gradient(to right, rgba(27, 30, 29, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 30, 29, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  text-rendering: optimizeLegibility;
}

body.editorial-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] body.editorial-site {
  --bg: #0d1014;
  --ink: #eef0ed;
  --muted: #9aa2a0;
  --line: rgba(238, 240, 237, 0.10);
  --line-strong: rgba(238, 240, 237, 0.24);
  --surface: #171c22;
  --card: #13171c;
  --button: #eef0ed;
  --button-ink: #0d1014;
  --accent: #e08a5c;
  --accent-2: #5ec2c6;
  --accent-soft: rgba(224, 138, 92, 0.15);
  --header-bg: rgba(13, 16, 20, 0.78);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.45);
  --shadow-panel: 0 30px 72px rgba(0, 0, 0, 0.62);
  background-image:
    radial-gradient(ellipse 95% 560px at 12% -80px, rgba(224, 138, 92, 0.11), transparent 68%),
    radial-gradient(ellipse 75% 460px at 88% 80px, rgba(94, 194, 198, 0.09), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
}

body.editorial-site ::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

body.editorial-site a:focus-visible,
body.editorial-site button:focus-visible,
body.editorial-site input:focus-visible,
body.editorial-site select:focus-visible,
body.editorial-site canvas:focus-visible,
body.editorial-site [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Typography Hierarchy */
body.editorial-site .hero h1,
body.editorial-site .section-heading h2,
body.editorial-site .page-head h1,
body.editorial-site .article-head h1,
body.editorial-site .bento-card h3,
body.editorial-site .lab-showcase-card h3,
body.editorial-site .flashcard-front h3,
body.editorial-site .wander-card blockquote,
body.editorial-site .bento-wander blockquote {
  font-family: var(--serif);
}

/* Sticky Frosted Header */
body.editorial-site .header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  max-width: none;
  width: 100%;
  padding-inline: max(64px, calc((100% - 1280px) / 2 + 64px));
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

body.editorial-site .header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

body.editorial-site .brand {
  font-size: 21px;
  letter-spacing: -0.6px;
}

body.editorial-site .brand-mark {
  display: inline-block;
  font-size: 24px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

body.editorial-site .brand:hover .brand-mark {
  transform: rotate(90deg);
  color: var(--accent);
}

body.editorial-site .brand-dot,
body.editorial-site .hero-period,
body.editorial-site .travel-title-dot {
  color: var(--accent);
}

body.editorial-site .header nav {
  gap: 6px;
}

body.editorial-site .header nav a {
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.editorial-site .header nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

body.editorial-site .header nav a[aria-current] {
  color: var(--ink);
  font-weight: 500;
}

body.editorial-site .header nav a[aria-current]:after {
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

body.editorial-site .header-tools {
  gap: 10px;
}

body.editorial-site .cmd-trigger,
body.editorial-site .language,
body.editorial-site .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.editorial-site .cmd-trigger {
  padding: 5px 10px 5px 11px;
  font-size: 13px;
}

body.editorial-site .cmd-trigger kbd,
body.editorial-site .button-ghost kbd {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

body.editorial-site .language {
  padding: 6px 12px;
  color: var(--ink);
}

body.editorial-site .theme-toggle {
  padding: 7px;
  color: var(--ink);
}

body.editorial-site .cmd-trigger:hover,
body.editorial-site .language:hover,
body.editorial-site .theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}

body.editorial-site .reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 2;
}

/* Keyframes */
@keyframes editorial-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.65); opacity: 0.45; }
}

@keyframes editorial-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lab-dash-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes lab-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes lab-pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.22); opacity: 0.85; }
}

body.editorial-site .hero-copy,
body.editorial-site .sculpture-panel,
body.editorial-site .page-head {
  animation: editorial-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.editorial-site .sculpture-panel {
  animation-delay: 0.08s;
}

/* Hero Section */
body.editorial-site .hero-v2 {
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 56px;
  min-height: 0;
}

body.editorial-site .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

body.editorial-site .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: editorial-pulse 2.4s ease-in-out infinite;
}

body.editorial-site .hero-v2 h1 {
  font-size: clamp(54px, 5.8vw, 78px);
  letter-spacing: -2.5px;
  margin: 26px 0 18px;
}

body.editorial-site .hero-v2 .hero-intro {
  max-width: 470px;
  font-size: 15px;
  line-height: 1.85;
}

body.editorial-site .hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

body.editorial-site .button {
  border-radius: 999px;
  padding: 12px 22px;
  gap: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.editorial-site .button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body.editorial-site .button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.editorial-site .button-ghost:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}

body.editorial-site .hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

body.editorial-site .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 6px;
  border-right: 1px solid var(--line);
}

body.editorial-site .hero-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

body.editorial-site .hero-stat strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

body.editorial-site .hero-stat span {
  font-size: 11px;
  color: var(--muted);
}

body.editorial-site .home-entry-grid {
  gap: 12px;
  margin-top: 20px;
}

body.editorial-site .home-entry,
body.editorial-site .bento-card,
body.editorial-site .lab-card {
  position: relative;
  --mx: 50%;
  --my: 50%;
}

body.editorial-site .home-entry {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(240px circle at var(--mx) var(--my), var(--accent-soft), transparent 70%),
    var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

body.editorial-site .home-entry:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

body.editorial-site .home-entry-primary {
  border-color: rgba(180, 83, 52, 0.32);
}

body.editorial-site .home-entry:hover .home-entry-title {
  text-decoration: none;
  color: var(--ink);
}

body.editorial-site .home-entry:hover .home-entry-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* 3D Sculpture Panel + Palette + Render Modes + Fullscreen + Secret Portal */
body.editorial-site .sculpture-panel {
  background: #10131a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  padding: 20px 22px 18px;
}

body.editorial-site .sculpture-panel.is-fullscreen {
  position: fixed;
  inset: 14px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  margin: 0;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.85);
}

body.editorial-site .sculpture-panel.is-fullscreen .sculpture-stage {
  flex: 1;
  height: auto;
  min-height: 260px;
}

body.editorial-site .sculpture-top {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.editorial-site .sculpture-palette {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.editorial-site .sculpture-palette button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.editorial-site .sculpture-palette button[data-palette="prism"] { background: linear-gradient(135deg, #6aa4f2, #e28e60); }
body.editorial-site .sculpture-palette button[data-palette="amber"] { background: linear-gradient(135deg, #ba6644, #f6c680); }
body.editorial-site .sculpture-palette button[data-palette="aurora"] { background: linear-gradient(135deg, #4ac4b8, #94c4f8); }
body.editorial-site .sculpture-palette button[data-palette="silver"] { background: linear-gradient(135deg, #9ca2b2, #f1f3f9); }

body.editorial-site .sculpture-palette button[aria-pressed="true"] {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

body.editorial-site .sculpture-render-modes {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.editorial-site .sculpture-render-modes button {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  color: #a0a3b0;
}

body.editorial-site .sculpture-render-modes button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

body.editorial-site .sculpture-fs-btn {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c5c8d4;
  font-size: 11px;
}

body.editorial-site .sculpture-fs-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.editorial-site .sculpture-stage {
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body.editorial-site .sculpture-heading button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

body.editorial-site #seed-form {
  margin-top: 14px;
  padding: 4px 6px 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

body.editorial-site #seed-form:focus-within {
  border-color: rgba(224, 138, 92, 0.65);
}

body.editorial-site #seed-form button {
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #eef0f6;
}

body.editorial-site .form-tabs {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.editorial-site .form-tabs button {
  border-radius: 6px;
  padding: 5px 10px;
}

body.editorial-site .form-tabs button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

body.editorial-site .sculpture-controls > button {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

body.editorial-site .secret-portal {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(224, 138, 92, 0.38);
  background: rgba(224, 138, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: editorial-fade-up 0.3s ease both;
}

body.editorial-site .secret-portal > span {
  font-size: 10px;
  color: #f3c19e;
}

body.editorial-site .secret-portal-links {
  display: flex;
  gap: 10px;
}

body.editorial-site .secret-portal-links a {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 11px;
}

body.editorial-site .secret-portal-links a:hover {
  background: rgba(224, 138, 92, 0.35);
}

/* Secret page header nav */
body.editorial-site .secret-head-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

body.editorial-site .secret-head-nav .back {
  margin-bottom: 0;
}

body.editorial-site .secret-cross-link {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
}

/* Eyebrow & links */
body.editorial-site .eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

body.editorial-site .text-link {
  gap: 8px;
  transition: color 0.2s ease;
}

body.editorial-site .text-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   Act 2 · Bento Concept Deck + Serendipity
   ========================================================================== */
body.editorial-site .bento-section {
  padding-top: 12px;
  padding-bottom: 52px;
}

body.editorial-site .bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

body.editorial-site .bento-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(380px circle at var(--mx) var(--my), var(--accent-soft), transparent 68%),
    var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s ease, box-shadow 0.26s ease;
}

body.editorial-site .bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

body.editorial-site .bento-flashcard {
  grid-column: span 7;
}

body.editorial-site .bento-wander {
  grid-column: span 5;
}

body.editorial-site .bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.editorial-site .bento-head .text-link {
  font-size: 12px;
}

body.editorial-site .bento-pill-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.editorial-site .bento-pill-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* 3D Flashcard Flip */
body.editorial-site .flashcard-scene {
  perspective: 1200px;
  flex: 1;
  min-height: 220px;
  margin-bottom: 16px;
}

body.editorial-site .flashcard-inner {
  position: relative;
  width: 100%;
  min-height: 220px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}

body.editorial-site .flashcard-inner.is-flipped {
  transform: rotateY(180deg);
}

body.editorial-site .flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--surface), var(--card));
}

body.editorial-site .flashcard-back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, var(--card), var(--accent-soft));
  border-color: rgba(180, 83, 52, 0.28);
}

body.editorial-site .flashcard-ch {
  color: var(--accent);
  font-size: 10px;
}

body.editorial-site .flashcard-front h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  margin: 12px 0;
}

body.editorial-site .flashcard-back p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  margin: 10px 0;
  overflow-y: auto;
}

body.editorial-site .flashcard-hint {
  color: var(--muted);
  font-size: 10px;
}

body.editorial-site .flashcard-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

body.editorial-site .flashcard-controls #home-fc-rand {
  margin-right: auto;
}

body.editorial-site .bento-wander-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0 18px;
}

body.editorial-site .bento-wander-meta {
  color: var(--accent);
  margin-bottom: 12px;
}

body.editorial-site .bento-wander blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

body.editorial-site .bento-wander blockquote.is-fading {
  opacity: 0.2;
}

body.editorial-site .bento-foot-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Act 3 · Small Laboratory Dynamic Showcase + New SVG Artworks
   ========================================================================== */
body.editorial-site .lab-showcase-section {
  padding-top: 10px;
  padding-bottom: 54px;
}

body.editorial-site .lab-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.editorial-site .lab-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(320px circle at var(--mx) var(--my), var(--accent-soft), transparent 68%),
    var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.editorial-site .lab-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

body.editorial-site .lab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.editorial-site .lab-card-meta {
  font-size: 10px;
  color: var(--muted);
}

body.editorial-site .lab-art-svg {
  margin-top: 16px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #10141c;
}

body.editorial-site .lab-art-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.editorial-site .lab-card:hover .lab-art-svg svg {
  transform: scale(1.03);
}

body.editorial-site .lab-svg-dash {
  animation: lab-dash-flow 3.2s linear infinite;
}

body.editorial-site .lab-svg-float {
  animation: lab-float 3.8s ease-in-out infinite;
}

body.editorial-site .lab-svg-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: lab-pulse-ring 2.8s ease-in-out infinite;
}

body.editorial-site .lab-showcase-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 18px 0 8px;
}

body.editorial-site .lab-showcase-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ==========================================================================
   Notes, Archive, About, Reading, Focus Mode & Travel Polish
   ========================================================================== */
body.editorial-site .note-row {
  padding: 24px 20px;
  margin-inline: -20px;
  border-radius: var(--radius-md);
  transition: background-color 0.22s ease, transform 0.22s ease;
}

body.editorial-site .note-row:hover {
  background: var(--card);
  transform: translateX(4px);
}

body.editorial-site .note-row:hover .note-number,
body.editorial-site .note-row:hover .row-arrow {
  color: var(--accent);
}

body.editorial-site .note-tags span,
body.editorial-site .demo-badge {
  border-radius: 999px;
}

body.editorial-site .note-tags span {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 4px 10px;
}

body.editorial-site .search-box,
body.editorial-site .lecture-search-input {
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

body.editorial-site .search-box:focus-within,
body.editorial-site .lecture-search-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body.editorial-site .filters button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

body.editorial-site .filters button.active {
  background: var(--button);
  color: var(--button-ink);
  border-color: var(--button);
}

body.editorial-site .archive-row {
  padding: 20px 16px;
  margin-inline: -16px;
  border-radius: var(--radius-sm);
}

body.editorial-site .archive-row:hover {
  background: var(--card);
}

body.editorial-site .archive-row > a:last-child:not(:nth-child(2)) {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 11px;
}

body.editorial-site .about-simple {
  max-width: 780px;
  padding: 36px 40px;
  margin-bottom: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  min-height: 0;
}

body.editorial-site .about-simple .text-link {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

body.editorial-site .prose h2,
body.editorial-site .prose h3,
body.editorial-site .prose h4 {
  scroll-margin-top: 96px;
}

body.editorial-site .toc {
  top: 96px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

body.editorial-site .toc a:hover,
body.editorial-site .toc a.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

body.editorial-site .prose blockquote {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

body.editorial-site .prose pre {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

body.editorial-site .copy-code,
body.editorial-site .article-download a {
  border-radius: 999px;
  background: var(--card);
}

body.editorial-site .copy-code {
  padding: 4px 11px;
}

body.editorial-site .article-download a {
  padding: 9px 18px;
  border: 1px solid var(--line);
}

body.editorial-site .table-scroll {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

body.editorial-site .prose tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}

/* Focus Reading Mode */
body.editorial-site .focus-read-btn {
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
}

body.editorial-site .focus-read-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

body.editorial-site.is-focus-reading .header,
body.editorial-site.is-focus-reading .footer,
body.editorial-site.is-focus-reading .toc,
body.editorial-site.is-focus-reading .lecture-search,
body.editorial-site.is-focus-reading .focus-read-btn {
  display: none !important;
}

body.editorial-site.is-focus-reading .article-layout {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

body.editorial-site .focus-exit-btn {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 11px;
}

body.editorial-site .journal-entry-link {
  padding: 24px 16px;
  margin-inline: -16px;
  border-radius: var(--radius-sm);
}

body.editorial-site .journal-entry-link:hover {
  background: var(--card);
}

body.editorial-site .journal-gallery img {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.editorial-site .journal-gallery img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-md);
}

body.editorial-site .journal-pager {
  border-top: 0;
  gap: 16px;
}

body.editorial-site .journal-pager a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

body.editorial-site .journal-pager a:hover {
  border-color: var(--accent);
}

body.editorial-site .travel-view-tabs button,
body.editorial-site .travel-map-restore,
body.editorial-site .travel-search-actions button[type="submit"] {
  border-radius: 999px;
}

body.editorial-site .travel-map-wrap {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-sm);
}

body.editorial-site .travel-timeline {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

body.editorial-site .travel-map-tools {
  border-radius: 10px;
  overflow: hidden;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

body.editorial-site .wander-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

body.editorial-site .wander-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ==========================================================================
   Command Palette, Lightbox & Back-to-Top Ring
   ========================================================================== */
.ed-cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(12vh, 96px) 16px 24px;
  background: rgba(10, 12, 16, 0.56);
  backdrop-filter: blur(8px);
}

.ed-cmd-dialog {
  width: min(640px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.ed-cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.ed-cmd-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.ed-cmd-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.ed-cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink);
}

.ed-cmd-item.is-active,
.ed-cmd-item:hover {
  background: var(--accent-soft);
}

.ed-cmd-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.ed-cmd-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.ed-cmd-group {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.ed-cmd-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
}

.ed-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.90);
  backdrop-filter: blur(10px);
  color: #eef0f4;
}

.ed-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.ed-lightbox-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #cbd5e1;
}

.ed-lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.ed-lightbox-prev { left: 18px; }
.ed-lightbox-next { right: 18px; }
.ed-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
}

.ed-btt {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ed-btt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ed-btt svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ed-btt circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
}

.ed-btt span {
  font-size: 15px;
  color: var(--ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  body.editorial-site .header { padding-inline: 40px; }
  body.editorial-site .bento-flashcard,
  body.editorial-site .bento-wander { grid-column: span 12; }
}

@media (max-width: 760px) {
  body.editorial-site .header { height: 66px; padding-inline: 20px; }
  body.editorial-site .header nav { top: 65px; background: var(--card); box-shadow: var(--shadow-md); }
  body.editorial-site .cmd-trigger kbd { display: none; }
  body.editorial-site .hero-v2 { padding-top: 28px; padding-bottom: 36px; }
  body.editorial-site .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  body.editorial-site .hero-stat { border-right: 0; }
  body.editorial-site .lab-showcase-grid { grid-template-columns: 1fr; }
  body.editorial-site .note-row { padding: 20px 12px; margin-inline: -12px; }
  body.editorial-site .toc { top: 74px; }
  body.editorial-site .prose h2,
  body.editorial-site .prose h3,
  body.editorial-site .prose h4 { scroll-margin-top: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-site .hero-copy,
  body.editorial-site .sculpture-panel,
  body.editorial-site .page-head,
  body.editorial-site .pulse-dot,
  body.editorial-site .lab-svg-dash,
  body.editorial-site .lab-svg-float,
  body.editorial-site .lab-svg-pulse {
    animation: none !important;
  }
}

@media print {
  body.editorial-site { background: #fff !important; }
  body.editorial-site::before,
  body.editorial-site .reading-progress,
  body.editorial-site .ed-btt,
  body.editorial-site .cmd-trigger,
  body.editorial-site .focus-read-btn,
  body.editorial-site .focus-exit-btn,
  .ed-cmd-backdrop,
  .ed-lightbox {
    display: none !important;
  }
}
