:root {
  --radius-2xl: 40px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --width: min(1220px, calc(100vw - 72px));
  --font-sans: "SF Pro Display", "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-serif: "Canela", "Iowan Old Style", "Baskerville", "STSong", serif;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --cursor-apple: url("./assets/cursors/cursor-apple.svg") 9 9, auto;
  --cursor-paw: url("./assets/cursors/cursor-paw.svg") 10 4, pointer;
}

body[data-theme="light"] {
  --bg: #f9eee2;
  --bg-2: #e8f3ef;
  --bg-3: #fff8f3;
  --panel: rgba(255, 251, 246, 0.54);
  --panel-strong: rgba(255, 251, 246, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.4);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.3));
  --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.52));
  --line: rgba(101, 112, 119, 0.12);
  --line-strong: rgba(90, 108, 119, 0.26);
  --text: #192d34;
  --text-soft: #4f646b;
  --text-faint: #6e7f85;
  --accent: #98ebd6;
  --accent-2: #def8ef;
  --accent-strong: #245d58;
  --accent-warm: #f1ae79;
  --accent-blue: #aac2ff;
  --glow-a: rgba(126, 225, 196, 0.32);
  --glow-b: rgba(246, 170, 112, 0.26);
  --glow-c: rgba(159, 183, 255, 0.2);
  --glow-d: rgba(236, 135, 179, 0.16);
  --glow-e: rgba(255, 239, 183, 0.24);
  --shadow: 0 32px 80px rgba(111, 85, 61, 0.11);
  --shadow-soft: 0 14px 36px rgba(124, 95, 70, 0.07);
  --shadow-card: 0 18px 46px rgba(114, 89, 64, 0.08);
}

body[data-theme="dark"] {
  --bg: #050f1b;
  --bg-2: #141f3d;
  --bg-3: #0d1b2c;
  --panel: rgba(10, 21, 35, 0.46);
  --panel-strong: rgba(12, 26, 43, 0.74);
  --panel-soft: rgba(18, 36, 58, 0.42);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.05));
  --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.1));
  --line: rgba(191, 227, 222, 0.15);
  --line-strong: rgba(193, 233, 227, 0.28);
  --text: #edf8f6;
  --text-soft: #afc8c7;
  --text-faint: #90aaa9;
  --accent: #7cf4d4;
  --accent-2: rgba(143, 227, 207, 0.2);
  --accent-strong: #d6fff3;
  --accent-warm: #ffb066;
  --accent-blue: #9bb2ff;
  --glow-a: rgba(45, 209, 170, 0.5);
  --glow-b: rgba(255, 167, 88, 0.34);
  --glow-c: rgba(115, 146, 255, 0.34);
  --glow-d: rgba(237, 97, 171, 0.22);
  --glow-e: rgba(255, 223, 143, 0.2);
  --shadow: 0 34px 96px rgba(0, 0, 0, 0.54);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 22px 52px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  cursor: var(--cursor-apple);
  background:
    radial-gradient(circle at 8% 9%, var(--glow-a), transparent 34%),
    radial-gradient(circle at 92% 86%, var(--glow-b), transparent 36%),
    radial-gradient(circle at 76% 16%, var(--glow-c), transparent 28%),
    radial-gradient(circle at 20% 80%, var(--glow-d), transparent 28%),
    radial-gradient(circle at 52% 52%, var(--glow-e), transparent 40%),
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(144deg, var(--bg) 0%, var(--bg-3) 44%, var(--bg-2) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.2) 0.7px, transparent 0.9px),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.065) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(32deg, rgba(255, 206, 167, 0.08) 0 2px, transparent 2px 14px),
    linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 36%);
  background-size: 11px 11px, 13px 13px, 16px 16px, 100% 100%;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.08));
}

body::after {
  inset: auto;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: -8rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 236, 205, 0.24), transparent 64%),
    radial-gradient(circle at 36% 36%, rgba(160, 206, 255, 0.18), transparent 64%);
  filter: blur(42px);
  opacity: 0.72;
  animation: ambientGlowDrift 14s ease-in-out infinite alternate;
}

body[data-theme="dark"]::before {
  opacity: 0.28;
}

body[data-theme="dark"]::after {
  background:
    radial-gradient(circle, rgba(133, 182, 255, 0.26), transparent 70%),
    radial-gradient(circle at 62% 58%, rgba(255, 175, 94, 0.2), transparent 68%);
}

.site-shell::before {
  content: "";
  position: fixed;
  left: -10vw;
  bottom: -26vh;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(130, 220, 208, 0.2), transparent 62%),
    radial-gradient(circle at 30% 36%, rgba(255, 185, 128, 0.18), transparent 56%);
  filter: blur(42px);
  opacity: 0.68;
}

body[data-theme="dark"] .site-shell::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(80, 213, 174, 0.24), transparent 64%),
    radial-gradient(circle at 34% 40%, rgba(255, 170, 100, 0.18), transparent 58%),
    radial-gradient(circle at 72% 46%, rgba(125, 152, 255, 0.18), transparent 56%);
  opacity: 0.82;
}

@keyframes ambientGlowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.2rem, 1.5rem, 0) scale(1.08);
  }
}

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

img {
  display: block;
  max-width: 100%;
}

a,
button,
[role="button"],
[data-lightboxable="true"],
.filter-chip,
.category-chip,
.tag-pill-link,
.article-gallery-card,
.gallery-rail-button,
.theme-toggle-button,
.page-button,
.qr-frame {
  cursor: var(--cursor-paw);
}

input[type="search"],
input[type="number"],
input[type="text"],
textarea {
  cursor: text;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: var(--width);
  margin: 0 auto;
  padding: 24px 0 52px;
}

.site-header,
.site-footer,
.hero-panel,
.panel-card,
.article-card,
.metric-card,
.archive-list-item,
.category-chip,
.filter-chip,
.theme-toggle {
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.site-header::before,
.site-footer::before,
.hero-panel::before,
.panel-card::before,
.article-card::before,
.metric-card::before,
.archive-list-item::before,
.archive-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 86% -12%, rgba(255, 255, 255, 0.24), transparent 44%);
  opacity: 0.62;
  z-index: 0;
  transition: opacity var(--transition), transform var(--transition);
}

body[data-theme="dark"] .site-header::before,
body[data-theme="dark"] .site-footer::before,
body[data-theme="dark"] .hero-panel::before,
body[data-theme="dark"] .panel-card::before,
body[data-theme="dark"] .article-card::before,
body[data-theme="dark"] .metric-card::before,
body[data-theme="dark"] .archive-list-item::before,
body[data-theme="dark"] .archive-controls::before {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 92% -10%, rgba(156, 190, 255, 0.18), transparent 46%);
  opacity: 0.72;
}

.site-header > *,
.site-footer > *,
.hero-panel > *,
.panel-card > *,
.article-card > *,
.metric-card > *,
.archive-list-item > *,
.archive-controls > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 24;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass), var(--panel);
  box-shadow: var(--shadow-soft);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

body[data-theme="dark"] .site-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(9, 20, 34, 0.72);
  border-color: rgba(195, 229, 224, 0.26);
  box-shadow: 0 16px 34px rgba(3, 11, 19, 0.34);
}

body.is-scrolled .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--panel) 86%, transparent);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(9, 17, 22, 0.12);
}

body[data-theme="dark"].is-scrolled .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 14px 34px rgba(2, 8, 12, 0.24);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brandmark-wave {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 186, 129, 0.22), rgba(136, 229, 208, 0.22));
  border: 1px solid var(--line);
  box-shadow: 0 0 20px rgba(143, 227, 207, 0.36);
}

.brandmark-copy {
  display: block;
}

.brandmark-copy strong,
.section-heading h2,
.hero-side-title,
.archive-title,
.article-title,
.panel-card h3,
.article-card h3,
.archive-list-item h3,
.contact-mini-card strong {
  font-family: var(--font-serif);
}

.brandmark-copy strong {
  font-size: 1.02rem;
}

.brandmark-copy span {
  display: none;
}

.brandmark-copy span,
.site-footer,
.hero-intro,
.section-copy,
.section-lead,
.panel-card p,
.article-card p,
.metric-card p,
.archive-list-item p {
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  line-height: 1;
  border: 1px solid rgba(88, 111, 122, 0.22);
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 72%, #4b6571 28%);
  font: inherit;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

body[data-theme="light"] .section-kicker {
  color: #4d7394;
}

body[data-theme="light"] .hero-intro,
body[data-theme="light"] .profile-intro,
body[data-theme="light"] .profile-aliases,
body[data-theme="light"] .section-lead {
  color: #2f4b59;
}

body[data-theme="light"] #about .section-heading h2,
body[data-theme="light"] #articles .section-heading h2,
body[data-theme="light"] #products .section-heading h2,
body[data-theme="light"] #talks .section-heading h2,
body[data-theme="light"] #contact .section-heading h2 {
  color: #25424f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

body[data-theme="light"]::before {
  opacity: 0.3;
}

body[data-theme="dark"] .nav-link {
  color: #dbf0ec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  background: rgba(6, 16, 28, 0.3);
  border-color: rgba(193, 233, 227, 0.14);
}

.nav-link:hover,
.nav-link-accent,
.theme-toggle-button:hover,
.theme-toggle-button.is-active {
  color: var(--text);
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(255, 186, 129, 0.2), rgba(136, 229, 208, 0.18)),
    rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 18px rgba(139, 216, 255, 0.16);
}

body[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .nav-link-accent,
body[data-theme="dark"] .theme-toggle-button:hover,
body[data-theme="dark"] .theme-toggle-button.is-active {
  background:
    linear-gradient(135deg, rgba(255, 170, 104, 0.24), rgba(90, 214, 179, 0.2)),
    rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 22px rgba(103, 154, 255, 0.22);
}

.theme-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 183, 126, 0.13), rgba(137, 228, 208, 0.11)),
    rgba(255, 255, 255, 0.07);
}

.theme-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.theme-toggle-button-single {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.theme-toggle-icon::before,
.theme-toggle-icon::after {
  content: "";
  position: absolute;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), inset var(--transition);
}

.theme-toggle-icon::before {
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 -7px 0 -5px currentColor,
    0 7px 0 -5px currentColor,
    7px 0 0 -5px currentColor,
    -7px 0 0 -5px currentColor;
}

.theme-toggle-icon::after {
  inset: 1px 3px 1px 1px;
  border-radius: 50%;
  box-shadow: 6px 0 0 0 currentColor;
  opacity: 0;
}

.theme-toggle-button-single.is-dark .theme-toggle-icon::before {
  transform: scale(0.72);
  opacity: 0;
}

.theme-toggle-button-single.is-dark .theme-toggle-icon::after {
  opacity: 1;
}

.page-main {
  position: relative;
  padding-top: 30px;
}

.scroll-bamboo {
  position: fixed;
  top: 108px;
  right: 12px;
  bottom: 74px;
  width: 24px;
  z-index: 44;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.scroll-bamboo.is-hidden {
  opacity: 0;
  transform: translateX(8px);
}

.scroll-bamboo-track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    repeating-linear-gradient(180deg, rgba(68, 125, 73, 0.3) 0 14px, rgba(180, 228, 173, 0.36) 14px 17px, rgba(67, 121, 72, 0.34) 17px 21px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(121, 193, 122, 0.24);
}

.scroll-bamboo-fill {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 6%;
  min-height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(212, 255, 170, 0.9), rgba(113, 198, 96, 0.9)),
    repeating-linear-gradient(180deg, rgba(29, 88, 32, 0.26) 0 14px, rgba(233, 255, 211, 0.42) 14px 17px, rgba(31, 93, 34, 0.36) 17px 21px);
  box-shadow:
    0 0 14px rgba(163, 231, 145, 0.34),
    0 0 22px rgba(255, 191, 130, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: height 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-theme="dark"] .scroll-bamboo-track {
  background:
    linear-gradient(180deg, rgba(193, 255, 210, 0.18), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(180deg, rgba(47, 104, 66, 0.48) 0 14px, rgba(163, 240, 177, 0.34) 14px 17px, rgba(45, 97, 62, 0.54) 17px 21px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .scroll-bamboo-fill {
  background:
    linear-gradient(180deg, rgba(186, 255, 171, 0.88), rgba(74, 183, 88, 0.94)),
    repeating-linear-gradient(180deg, rgba(30, 84, 37, 0.28) 0 14px, rgba(228, 255, 214, 0.4) 14px 17px, rgba(31, 93, 36, 0.36) 17px 21px);
}

.hero-grid,
.archive-hero,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
}

.hero-panel,
.panel-card,
.metric-card,
.article-card,
.archive-list-item,
.archive-controls {
  border: 1px solid var(--line);
  background: var(--glass), var(--panel);
  box-shadow: var(--shadow-card);
}

.hero-panel {
  border-radius: var(--radius-2xl);
}

.hero-panel-side {
  display: grid;
  gap: 14px;
}

.hero-panel-main,
.hero-panel-bio,
.hero-panel-side,
.panel-card,
.article-card-copy,
.metric-card,
.archive-controls,
.cached-article-shell {
  padding: 26px;
}

.hero-panel-main {
  display: flex;
  flex-direction: column;
}

.hero-signature-panel .hero-bottom-row-home {
  margin-top: auto;
  padding-top: 18px;
}

.hero-signature-panel {
  overflow: hidden;
  position: relative;
}

.hero-signature-panel::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), transparent 64%);
  filter: blur(14px);
  opacity: 0.9;
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.hero-copy-cluster {
  display: grid;
  gap: 8px;
}

.hero-logo-line {
  color: var(--text-faint);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-sans);
  opacity: 0.9;
}

.hero-manifesto-row {
  display: grid;
  gap: 18px;
}

.hero-manifesto-block {
  max-width: 48rem;
  padding: 2px 0 6px;
}

.hero-manifesto {
  margin: 0;
  max-width: 15ch;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 750;
  font-size: clamp(2.05rem, 3.45vw, 3.36rem);
  line-height: 1.11;
  letter-spacing: -0.028em;
  display: grid;
  gap: 6px;
  text-wrap: balance;
}

.hero-manifesto span {
  display: block;
  text-wrap: pretty;
}

.hero-manifesto span:first-child {
  font-size: 0.68em;
  letter-spacing: 0.02em;
  color: #35546a;
}

.hero-manifesto span:nth-child(2) {
  font-size: 1.08em;
  color: #14354b;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero-manifesto span:last-child {
  font-size: 0.74em;
  letter-spacing: 0.01em;
  color: #6d4d36;
  opacity: 0.95;
}

body[data-theme="dark"] .hero-manifesto {
  text-shadow: 0 8px 30px rgba(7, 18, 32, 0.32);
}

body[data-theme="dark"] .hero-manifesto span:first-child {
  color: #b8d0ff;
}

body[data-theme="dark"] .hero-manifesto span:nth-child(2) {
  background: linear-gradient(112deg, #e7f1ff, #9de6d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="dark"] .hero-manifesto span:last-child {
  color: #ffcb9b;
}

.hero-panel-main {
  display: flex;
  flex-direction: column;
}

.hero-copy-cluster {
  gap: 14px;
  padding-top: 12px;
}

.hero-manifesto-row {
  min-height: clamp(164px, 23vw, 236px);
  align-items: center;
}

.hero-manifesto-block {
  max-width: 40rem;
  padding: 8px 0 0;
}

.hero-manifesto {
  max-width: 16ch;
  gap: 12px;
  font-family: -apple-system, 'PingFang SC', 'SF Pro Display', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-manifesto-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #9c642c;
}

.hero-manifesto-line {
  display: block;
  text-wrap: pretty;
}

.hero-manifesto-line-primary {
  color: #2c2118;
  text-shadow: none;
}

.hero-manifesto-line-secondary {
  max-width: 20ch;
  font-size: 0.38em;
  line-height: 1.3;
  letter-spacing: 0;
  color: #8a7b6a;
  text-shadow: none;
}

body[data-theme="dark"] .hero-manifesto-eyebrow {
  color: #a8bdd9;
}

body[data-theme="dark"] .hero-manifesto-line-primary {
  background: linear-gradient(112deg, #edf5ff 0%, #d6f8f1 52%, #ffd5a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 32px rgba(10, 22, 41, 0.34);
}

body[data-theme="dark"] .hero-manifesto-line-secondary {
  color: #ffd3a2;
  text-shadow: 0 10px 26px rgba(8, 20, 38, 0.28);
}

.hero-signature-panel .hero-bottom-row-home {
  margin-top: auto;
  padding-top: 22px;
}

.hero-bottom-row {
  gap: 24px;
  margin-top: 18px;
}

.hero-link-cluster {
  gap: 22px;
}

.hero-link-card p {
  white-space: pre-line;
}


.hero-bottom-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 16px;
  align-items: start;
}

.hero-bottom-row-home {
  grid-template-columns: 1fr;
}

.hero-link-cluster {
  display: grid;
  gap: 20px;
}

.hero-link-cluster-stacked {
  grid-template-columns: 1fr;
}

.hero-link-card,
.profile-meta-card,
.contact-mini-card {
  border: 1px solid var(--line);
  background: var(--glass-strong), var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-link-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.hero-link-card:hover,
.panel-card-link:hover,
.article-card:hover,
.archive-list-item:hover,
.nav-article-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 22px 52px rgba(0, 0, 0, 0.16),
    0 0 42px rgba(143, 227, 207, 0.2),
    0 0 26px rgba(255, 179, 122, 0.16),
    0 0 34px rgba(132, 160, 255, 0.14);
}

.hero-link-card:hover::before,
.panel-card-link:hover::before,
.article-card:hover::before,
.archive-list-item:hover::before,
.nav-article-card:hover::before {
  opacity: 0.9;
  transform: translateY(-2px);
}

body[data-theme="dark"] .hero-link-card:hover,
body[data-theme="dark"] .panel-card-link:hover,
body[data-theme="dark"] .article-card:hover,
body[data-theme="dark"] .archive-list-item:hover,
body[data-theme="dark"] .nav-article-card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.17),
    0 24px 56px rgba(0, 0, 0, 0.26),
    0 0 46px rgba(84, 214, 181, 0.24),
    0 0 30px rgba(255, 164, 84, 0.22),
    0 0 36px rgba(116, 149, 255, 0.2);
}

.hero-link-card span,
.profile-meta-card > span,
.profile-id,
.mini-kicker,
.metric-label,
.card-topline {
  display: block;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-link-card strong,
.hero-side-title {
  font-size: 1.42rem;
  line-height: 1.04;
}

.hero-link-card p,
.hero-support-panel p {
  margin: 0;
  line-height: 1.72;
}

.hero-support-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.3), transparent 42%),
    var(--glass),
    var(--panel);
}

.hero-stat-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat-row {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.hero-stat-row:nth-last-child(-n + 1) {
  border-bottom: 0;
}

.hero-stat-row span {
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stat-row strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.hero-side-column {
  display: grid;
  gap: 20px;
}

.profile-top {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-avatar {
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(235, 178, 126, 0.2), rgba(143, 227, 207, 0.2)),
    var(--panel-soft);
  box-shadow: var(--shadow-soft);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.profile-id {
  display: block;
  margin-bottom: 8px;
}

.profile-aliases,
.profile-intro {
  margin: 0;
}

.profile-intro {
  margin-top: 20px;
  line-height: 1.84;
}

.profile-fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-fact {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.profile-meta-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-meta-card {
  padding: 16px 18px;
  border-radius: 22px;
}

.profile-meta-list,
.tag-row,
.filter-row,
.category-strip,
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-section {
  margin-top: 80px;
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading-copy {
  max-width: 54rem;
}

.section-heading h2,
.archive-title,
.article-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

#about .section-heading h2,
#articles .section-heading h2,
#products .section-heading h2,
#talks .section-heading h2,
#contact .section-heading h2 {
  font-family: "Pixelify Sans", "Fusion Pixel 12px Proportional", "Zpix", "Sarasa Mono SC", var(--font-sans);
  font-size: clamp(1.22rem, 1.82vw, 1.62rem);
  letter-spacing: 0.08em;
  font-weight: 680;
  color: #284754;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

body[data-theme="dark"] #about .section-heading h2,
body[data-theme="dark"] #articles .section-heading h2,
body[data-theme="dark"] #products .section-heading h2,
body[data-theme="dark"] #talks .section-heading h2,
body[data-theme="dark"] #contact .section-heading h2 {
  color: #d9ecea;
  text-shadow: 0 10px 26px rgba(88, 140, 255, 0.2);
}

.section-heading-archive .archive-title {
  font-size: clamp(1.64rem, 2.3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.article-gallery-flow-heading h2,
.section-heading-related h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.34vw, 1.24rem);
  line-height: 1.24;
  letter-spacing: 0.03em;
  font-weight: 630;
  color: var(--text-soft);
}

.article-gallery-flow-heading .section-kicker,
.section-heading-related .section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.section-lead,
.hero-intro,
.section-copy {
  margin: 10px 0 0;
  line-height: 1.78;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 600;
}

.text-link:hover {
  transform: translateY(-2px);
}

.panel-grid,
.gallery-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.panel-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-grid-2,
.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card,
.article-card {
  border-radius: var(--radius-xl);
}

.panel-card h3,
.article-card h3,
.archive-list-item h3 {
  margin: 12px 0 0;
  font-size: 1.42rem;
  line-height: 1.08;
}

.section-identity-card h3 {
  margin-top: 0;
}

.panel-card p,
.article-card p,
.metric-card p,
.archive-list-item p {
  line-height: 1.72;
}

.section-identity-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  min-height: 140px;
}

.section-identity-card h3 {
  margin: 0;
  line-height: 1.1;
  justify-self: start;
  font-size: 1.34rem;
  letter-spacing: 0.01em;
}

.section-identity-card p {
  margin: 14px 0 0;
  line-height: 1.7;
  color: var(--text-soft);
  text-align: center;
  white-space: pre-line;
  text-wrap: pretty;
  align-self: center;
}

.section-identity-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 227, 207, 0.2), transparent 70%);
}

.panel-card-link {
  display: block;
}

.tag-pill,
.meta-pill,
.filter-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.filter-chip {
  cursor: pointer;
}

body[data-theme="dark"] .tag-pill,
body[data-theme="dark"] .meta-pill,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .category-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #ddf2ee;
}

.filter-chip.is-active,
.filter-chip:hover,
.category-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 189, 132, 0.22), rgba(142, 229, 210, 0.2)),
    rgba(255, 255, 255, 0.22);
}

body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .filter-chip:hover,
body[data-theme="dark"] .category-chip:hover {
  color: #f1fffc;
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line-strong));
  background:
    linear-gradient(135deg, rgba(255, 168, 92, 0.28), rgba(74, 212, 177, 0.26)),
    rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 18px rgba(120, 150, 255, 0.18);
}

.category-chip strong {
  color: var(--accent-strong);
}

.tag-pill-link {
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.tag-pill-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2.2rem;
  color: var(--text);
}

.article-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.article-card-media,
.archive-thumb,
.product-preview,
.article-lead-media,
.gallery-item,
.qr-frame {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(235, 178, 126, 0.16), rgba(143, 227, 207, 0.12)),
    var(--panel-soft);
}

.article-card-media,
.article-card-media-wide {
  aspect-ratio: 21 / 9;
}

.article-card-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding-top: 18px;
  min-height: 100%;
}

.article-card-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-topline,
.archive-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-tail {
  margin-top: 16px;
  align-self: end;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.04)),
    linear-gradient(145deg, rgba(235, 178, 126, 0.22), rgba(143, 227, 207, 0.16));
}

.media-placeholder strong {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.media-placeholder span {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.08;
}

.media-placeholder-large {
  min-height: 100%;
  place-items: center;
  text-align: center;
  align-content: center;
}

.article-card-media img,
.archive-thumb img,
.product-preview img,
.article-lead-media img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

body[data-theme="dark"] .article-card-media img,
body[data-theme="dark"] .archive-thumb img {
  background: transparent;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  transform: none;
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="dark"] .qr-frame img {
  background: rgba(255, 255, 255, 0.94);
}

.product-grid .panel-card,
.product-grid .panel-card-link {
  overflow: hidden;
}

.product-preview {
  margin: -26px -26px 20px;
  aspect-ratio: 16 / 10;
}

.talk-panel {
  overflow: hidden;
}

.talk-preview {
  margin: -26px -26px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(235, 178, 126, 0.18), rgba(143, 227, 207, 0.16)),
    var(--panel-soft);
}

.talk-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.talk-panel:hover .talk-preview img {
  transform: scale(1.03);
  filter: saturate(1.02);
}

.talk-entry {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.talk-entry::after {
  content: "↗";
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.feature-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-strong);
  line-height: 1.6;
}

.archive-intro {
  margin-top: 8px;
}

.section-heading-archive {
  display: block;
  margin-bottom: 0;
}

.section-heading-archive-tight {
  margin-bottom: 14px;
}

.archive-controls {
  border-radius: var(--radius-2xl);
  margin-top: 18px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 170, 0.28), transparent 34%),
    radial-gradient(circle at 96% 8%, rgba(147, 217, 255, 0.2), transparent 36%),
    var(--glass),
    var(--panel);
}

body[data-theme="dark"] .archive-controls {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 170, 96, 0.26), transparent 36%),
    radial-gradient(circle at 98% 10%, rgba(126, 162, 255, 0.24), transparent 38%),
    var(--glass),
    var(--panel);
}

.content-section-archive-list {
  margin-top: 34px;
}

.search-shell {
  margin-bottom: 18px;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, rgba(255, 255, 255, 0.28));
  background:
    linear-gradient(135deg, rgba(255, 225, 197, 0.24), rgba(169, 231, 246, 0.18)),
    rgba(255, 255, 255, 0.2);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.search-input::placeholder {
  color: color-mix(in srgb, var(--text-soft) 88%, #ffffff 12%);
}

body[data-theme="dark"] .search-input {
  background:
    linear-gradient(135deg, rgba(255, 174, 106, 0.2), rgba(116, 167, 255, 0.22)),
    rgba(255, 255, 255, 0.16);
  color: #f2fffc;
}

body[data-theme="dark"] .search-input::placeholder {
  color: #bdd1cf;
}

.search-input:focus {
  outline: 2px solid rgba(143, 227, 207, 0.38);
  outline-offset: 2px;
}

.archive-list {
  display: grid;
  gap: 18px;
}

.archive-list-item {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 138px;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border-radius: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.archive-thumb {
  aspect-ratio: 21 / 12;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.archive-list-copy {
  min-width: 0;
}

.archive-list-copy h3 {
  margin: 2px 0 0;
}

.archive-list-copy p {
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-list-side {
  min-width: 128px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.archive-list-date {
  min-width: 112px;
  text-align: right;
  color: var(--text-faint);
  font-size: 0.96rem;
}

.archive-list-category {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pagination-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-button,
.nav-article-card {
  border: 1px solid var(--line);
  background: var(--glass-strong), var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.page-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), opacity var(--transition), box-shadow var(--transition);
}

.page-button-ghost {
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.page-jump-input {
  width: 88px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font: inherit;
  text-align: center;
}

.page-jump-input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.page-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.page-button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.page-indicator {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.archive-bottom-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.article-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nav-article-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.nav-article-card span {
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-article-card strong {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.15;
}

.nav-article-card p {
  margin: 0;
  color: var(--text-soft);
}

.nav-article-card.is-disabled {
  opacity: 0.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 30px;
}

.contact-qr-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  justify-content: stretch;
  padding-left: 8px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
  padding-top: 14px;
  height: 100%;
}

.qr-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

.qr-card-compact {
  padding: 12px 12px 8px;
}

.qr-card-compact h3 {
  margin: 0;
  font-size: 1rem;
}

.qr-card-compact p {
  margin: 0;
  font-size: 0.92rem;
  min-height: 0;
}

.qr-frame {
  margin: 18px auto 8px;
  aspect-ratio: 1 / 1;
  width: min(100%, 206px);
  max-width: 206px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  cursor: zoom-in;
}

.qr-card .qr-frame {
  justify-self: center;
}

.qr-card-compact p:empty {
  display: none;
}

.contact-mini-card {
  padding: 22px 18px 18px;
  border-radius: 22px;
  display: grid;
  align-content: center;
  min-height: 100%;
}

.contact-mini-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.12rem;
  line-height: 1.3;
  word-break: break-word;
  text-align: center;
}

.contact-mini-card-order strong {
  white-space: pre-line;
  text-align: center;
  line-height: 1.62;
  font-size: 1.02rem;
}

.contact-mini-card p {
  margin: 10px 0 0;
  text-align: center;
  color: var(--text-soft);
}

.contact-mini-card-order p {
  text-align: center;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--text-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #092128;
  background: linear-gradient(135deg, var(--accent), #f3fffc);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
}

.article-hero {
  grid-template-columns: 1fr;
}

.article-hero-stack {
  padding: 18px;
  position: relative;
}

.article-lead-media {
  position: relative;
  padding: 0;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 211, 150, 0.22), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(126, 225, 196, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 233, 214, 0.46), rgba(235, 248, 244, 0.3));
  border: 1px solid var(--line);
}

.article-lead-media-tall {
  margin-bottom: 20px;
  min-height: 180px;
}

.article-lead-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.2);
  filter: blur(32px) saturate(1.24) brightness(1.04);
  opacity: 0.9;
}

.article-lead-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 38%, rgba(8, 22, 34, 0.09)),
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

body[data-theme="dark"] .article-lead-media {
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 179, 102, 0.24), transparent 36%),
    radial-gradient(circle at 90% 84%, rgba(125, 216, 255, 0.2), transparent 36%),
    linear-gradient(140deg, rgba(36, 54, 76, 0.64), rgba(23, 39, 59, 0.54));
}

body[data-theme="dark"] .article-lead-media::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 36%, rgba(5, 12, 20, 0.14)),
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(138, 184, 255, 0.12));
}

.article-lead-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: contain;
  cursor: zoom-in;
  background: transparent;
}

.article-hero-copy {
  display: grid;
  gap: 16px;
}

.article-hero .article-title {
  font-size: clamp(1.48rem, 2.3vw, 2.24rem);
  line-height: 1.12;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-actions-spacious {
  margin-top: 6px;
  gap: 14px;
}

.wechat-origin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(7, 193, 96, 0.32);
  background: rgba(7, 193, 96, 0.14);
  color: #0b8f49;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.12);
  margin-left: auto;
}

body[data-theme="dark"] .wechat-origin-link {
  color: #8df0b7;
  background: rgba(7, 193, 96, 0.12);
  border-color: rgba(109, 255, 170, 0.2);
}

.wechat-origin-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    9px 1px 0 -4px currentColor,
    -1px 8px 0 -5px currentColor;
}

.gallery-item {
  margin: 0;
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.gallery-item-free {
  display: grid;
  place-items: center;
  padding: 12px;
}

.gallery-item-free img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.cached-article-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.cached-article-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% -8%, rgba(255, 255, 255, 0.26), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
  opacity: 0.54;
}

.cached-article-shell > * {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .cached-article-shell::before {
  background:
    radial-gradient(circle at 12% -6%, rgba(130, 182, 255, 0.24), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 9px);
  opacity: 0.4;
}

.article-body-shell {
  padding: 30px;
}

.cached-article-content {
  color: var(--text);
  line-height: 1.88;
  font-size: 1.02rem;
}

.cached-article-content > :first-child {
  margin-top: 0;
}

.cached-article-content * {
  max-width: 100%;
  color: inherit !important;
}

.cached-article-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 20px auto;
  border-radius: 16px;
  object-fit: contain;
  cursor: zoom-in;
}

.cached-article-content p {
  margin: 0 0 1.1em;
}

.cached-article-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.article-inline-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.article-inline-gallery-standalone {
  margin-top: 0;
}

.article-gallery-section {
  margin-top: 32px;
}

.article-gallery-inline-section {
  margin: 26px 0 30px;
}

.article-gallery-flow {
  display: grid;
  gap: 12px;
}

.article-gallery-flow-compact .section-kicker {
  margin-bottom: 8px;
}

.article-gallery-flow-compact h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.08;
}

.section-heading-tight {
  margin-bottom: 12px;
}

.article-gallery-rail-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.article-gallery-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
}

.article-gallery-card {
  flex: 0 0 min(360px, 68vw);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-strong), var(--panel-soft);
  scroll-snap-align: center;
  cursor: pointer;
}

.article-gallery-card.is-active {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.article-gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: transparent;
}

body[data-theme="dark"] .article-gallery-card img {
  background: transparent;
}

.gallery-rail-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass-strong), var(--panel-soft);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.article-bottom-nav-section {
  padding-bottom: 8px;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(5, 12, 18, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.media-lightbox-stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  cursor: zoom-out;
  padding: 20px;
}

.media-lightbox-image {
  max-width: min(98vw, calc(100vw - 40px));
  max-height: min(98vh, calc(100vh - 40px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  background: transparent;
}

.media-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.media-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.media-lightbox-prev {
  left: 18px;
}

.media-lightbox-next {
  right: 18px;
}

.media-lightbox.is-single .media-lightbox-nav {
  display: none;
}

body.has-lightbox-open {
  overflow: hidden;
}

#articles .category-strip {
  margin-bottom: 22px;
}

.section-identity-card {
  padding-bottom: 20px;
}

.empty-state {
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  color: var(--text-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass), var(--panel);
}

.site-footer p {
  margin: 0;
}

.site-footer-left {
  justify-self: start;
}

.site-footer-center {
  justify-self: center;
  text-align: center;
}

.site-footer-right {
  justify-self: end;
  text-align: right;
}

@media (max-width: 1180px) {
  .hero-grid,
  .article-hero,
  .hero-bottom-row,
  .contact-layout,
  .panel-grid-3,
  .panel-grid-2,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-qr-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-inline-gallery {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .article-gallery-rail-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .scroll-bamboo {
    display: none;
  }

  .site-shell {
    width: min(100vw - 24px, 1360px);
    padding-top: 12px;
  }

  .site-header {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .site-nav,
  .theme-toggle {
    justify-content: flex-start;
  }

  .hero-grid,
  .article-hero {
    grid-template-columns: 1fr;
  }

  .profile-top,
  .archive-list-item,
  .article-nav-grid {
    grid-template-columns: 1fr;
  }

  .archive-list-date {
    min-width: 0;
    text-align: left;
  }

  .archive-list-side {
    justify-items: start;
    min-width: 0;
  }

  .contact-qr-row {
    grid-template-columns: 1fr;
  }

  .qr-card .qr-frame {
    max-width: 128px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer-left,
  .site-footer-center,
  .site-footer-right {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-panel-main,
  .hero-panel-bio,
  .hero-panel-side,
  .panel-card,
  .article-card-copy,
  .metric-card,
  .archive-controls,
  .cached-article-shell {
    padding: 18px;
  }

  .product-preview {
    margin: -18px -18px 18px;
  }

  .talk-preview {
    margin: -18px -18px 18px;
  }

  .article-body-shell {
    padding: 18px;
  }

  .wechat-origin-link {
    margin-left: 0;
  }

  .hero-manifesto {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .hero-green-note {
    max-width: none;
  }

  .article-showcase-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Hero Visual Block - 关键词拼贴 ===== */

.hero-visual-block {
  position: relative;
  min-height: clamp(200px, 28vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  padding: 20px;
}

.htag {
  display: inline-block;
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s;
  cursor: default;
}

.htag:hover {
  opacity: 1 !important;
  transform: scale(1.05);
}

.htag-xl {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1610;
}
.htag-lg {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c2118;
}
.htag-md {
  font-size: 1rem;
  font-weight: 600;
  color: #4a3e32;
}
.htag-sm {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b5d4e;
}
.htag-xs {
  font-size: 0.65rem;
  font-weight: 400;
  color: #9a8b7a;
}

.htag-accent {
  color: #9c642c !important;
}
.htag-muted {
  opacity: 0.45;
}

body[data-theme="dark"] .htag-xl { color: #f0e8dc; }
body[data-theme="dark"] .htag-lg { color: #d8cfc2; }
body[data-theme="dark"] .htag-md { color: #b8a898; }
body[data-theme="dark"] .htag-sm { color: #8a7e70; }
body[data-theme="dark"] .htag-xs { color: #6a5e52; }
body[data-theme="dark"] .htag-accent { color: #d4a06a !important; }

.hero-visual-name {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #9a8b7a;
  text-transform: uppercase;
}

body[data-theme="dark"] .hero-visual-name {
  color: #6a5e52;
}

/* 去掉原来的manifesto-row最小高度限制 */
.hero-manifesto-row {
  min-height: auto !important;
}


/* ===== 3D动态词云 ===== */

.hero-wordcloud-container {
  position: relative;
  width: 100%;
  height: clamp(320px, 38vw, 440px);
  overflow: hidden;
  cursor: grab;
  background: radial-gradient(circle at 50% 50%, rgba(156,100,44,0.08) 0%, rgba(156,100,44,0.03) 50%, transparent 75%);
  border-radius: 50%;
}

.hero-wordcloud-container:active {
  cursor: grabbing;
}

.wc-item {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  color: #3a2e22;
  text-decoration: none;
  transition: color 0.2s;
  will-change: transform, opacity;
  padding: 2px 6px;
  border-radius: 4px;
}

.wc-item:hover {
  color: #9c642c !important;
  background: rgba(156, 100, 44, 0.08);
  opacity: 1 !important;
}

body[data-theme="dark"] .wc-item {
  color: #d8cfc2;
}

body[data-theme="dark"] .wc-item:hover {
  color: #d4a06a !important;
  background: rgba(212, 160, 106, 0.1);
}

.hero-visual-block {
  min-height: clamp(320px, 38vw, 440px);
}

.hero-manifesto-row {
  min-height: auto !important;
}

/* 隐藏原来的manifesto */
.hero-manifesto-block { display: none; }


/* hover时词放大+停住感 */
.wc-item.wc-hovered {
  color: #9c642c !important;
  background: rgba(156, 100, 44, 0.1);
  opacity: 1 !important;
  z-index: 999 !important;
  font-weight: 700 !important;
  transition: color 0.15s, background 0.15s;
}

body[data-theme="dark"] .wc-item.wc-hovered {
  color: #d4a06a !important;
  background: rgba(212, 160, 106, 0.12);
}


body[data-theme="dark"] .hero-wordcloud-container {
  background: radial-gradient(circle at 50% 50%, rgba(212,160,106,0.08) 0%, rgba(212,160,106,0.03) 50%, transparent 75%);
}


/* 深色模式 - 仅修复确实看不清的部分 */
body[data-theme="dark"] .hero-wordcloud-container {
  background: radial-gradient(circle at 50% 50%, rgba(212,160,106,0.08) 0%, rgba(212,160,106,0.03) 50%, transparent 75%);
}

body[data-theme="dark"] .wc-item.wc-hovered {
  color: #d4a06a !important;
  background: rgba(212,160,106,0.12);
}

/* 词云hover tooltip */
.wc-item {
  position: absolute;
}

.wc-item::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  background: rgba(44, 33, 24, 0.85);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 1000;
}

body[data-theme="dark"] .wc-item::after {
  background: rgba(240, 232, 220, 0.9);
  color: #1a1610;
}

.wc-item.wc-hovered::after {
  opacity: 1;
}

