:root {
  color-scheme: light;
  --paper: #f3ead8;
  --paper-deep: #dfcfb5;
  --paper-light: #fff8eb;
  --ink: #161818;
  --charcoal: #20211f;
  --muted: #6a6257;
  --gold: #c49a46;
  --burgundy: #8f342f;
  --teal: #1a6762;
  --line: rgba(22, 24, 24, 0.16);
  --soft-line: rgba(255, 248, 235, 0.2);
  --shadow: 0 24px 70px rgba(22, 24, 24, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(196, 154, 70, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(22, 24, 24, 0.035) 25%, transparent 25% 50%, rgba(22, 24, 24, 0.035) 50% 75%, transparent 75%),
    var(--paper);
  background-size: auto, 8px 8px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.02; }
h1 { max-width: 12ch; font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 4.1rem); }
h3 { font-size: 1.08rem; line-height: 1.25; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(243, 234, 216, 0.9);
  border-bottom: 1px solid rgba(22, 24, 24, 0.1);
  backdrop-filter: blur(16px);
}
.brand, .nav-links { display: flex; align-items: center; }
.brand {
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.brand-mark {
  width: 26px; height: 26px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, var(--teal) 44% 56%, transparent 56%),
    radial-gradient(circle at 50% 50%, var(--burgundy) 0 18%, transparent 19%);
}
.nav-links { gap: clamp(10px, 2vw, 24px); color: var(--muted); font-size: 0.92rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 126px clamp(18px, 5vw, 72px) clamp(156px, 18vh, 230px);
}
.hero img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 16, 16, 0.86), rgba(13, 16, 16, 0.5) 48%, rgba(13, 16, 16, 0.15)),
    linear-gradient(0deg, rgba(13, 16, 16, 0.7), transparent 46%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -2px;
  height: clamp(220px, 30vh, 360px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 235, 0) 0%,
    rgba(255, 248, 235, 0.1) 34%,
    rgba(255, 248, 235, 0.54) 72%,
    var(--paper-light) 100%
  );
}
.hero-content { position: relative; z-index: 2; max-width: 880px; color: var(--paper-light); }
.eyebrow, .section-kicker, .card-meta {
  margin: 0 0 10px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow, .build-section .section-kicker, .statement-section .section-kicker, .ethics-section .section-kicker { color: #e6bf67; }
.subtitle { margin: 16px 0 0; color: #f1dba9; font-size: clamp(1.08rem, 2vw, 1.45rem); font-weight: 800; }
.subtitle.zh { margin-top: 4px; font-weight: 650; }
.hero-copy { max-width: 760px; margin: 22px 0 0; color: rgba(255, 248, 235, 0.84); font-size: clamp(1.02rem, 2vw, 1.22rem); }
.question-card {
  max-width: 620px;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 248, 235, 0.1);
  color: #fff7df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.4vw, 1.65rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.button.primary { background: var(--paper-light); color: var(--charcoal); border-color: var(--paper-light); }
.button.secondary { color: var(--paper-light); }
.button.dark { background: var(--charcoal); color: var(--paper-light); border-color: var(--charcoal); }
.button.pale { background: transparent; color: var(--charcoal); border-color: var(--line); }

.hero-head-stage {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4vw, 70px);
  bottom: clamp(34px, 8vh, 92px);
  width: min(34vw, 520px);
  min-width: 360px;
  color: var(--paper-light);
  pointer-events: auto;
}
.head-camera {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 32%, rgba(196, 154, 70, 0.18), transparent 46%),
    linear-gradient(140deg, rgba(255, 248, 235, 0.07), rgba(22, 24, 24, 0.38));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(3px);
}
.head-camera::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 248, 235, 0.04), transparent 26% 74%, rgba(255, 248, 235, 0.03)),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 248, 235, 0.12), transparent 24%);
}
.head-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 46%;
  transition: transform 900ms cubic-bezier(.18, .78, .2, 1), filter 900ms ease;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.28));
}
.head-stage-sight .head-svg { transform: scale(2.55) translate(-13%, 11%); }
.head-stage-sound .head-svg { transform: scale(2.22) translate(19%, 1%); }
.head-stage-smell .head-svg { transform: scale(2.68) translate(-23%, -2%); }
.head-stage-touch .head-svg { transform: scale(2.25) translate(1%, -21%); }
.head-stage-sacred .head-svg { transform: scale(1.55) translate(0%, 7%); }
.head-profile {
  fill: url(#skinGlow);
  stroke: rgba(255, 248, 235, 0.76);
  stroke-width: 2.2;
}
.face-line,
.ear-line,
.nose-line,
.mouth-line,
.eye-line,
.skin-contour,
.neck-line {
  fill: none;
  stroke: rgba(255, 248, 235, 0.66);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sacred-halo {
  fill: none;
  stroke: rgba(196, 154, 70, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 2 11;
  animation: haloTurn 18s linear infinite;
  transform-origin: 214px 196px;
}
.face-hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(255, 248, 235, 0.92);
  border-radius: 50%;
  background: rgba(196, 154, 70, 0.88);
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(196, 154, 70, 0.12), 0 0 24px rgba(255, 248, 235, 0.58);
  animation: facePulse 1800ms ease-in-out infinite;
}
.face-hotspot:hover,
.face-hotspot.active {
  background: var(--burgundy);
  transform: scale(1.18);
}
.eye-hotspot { left: 57%; top: 33%; }
.ear-hotspot { left: 28%; top: 41%; }
.nose-hotspot { left: 64%; top: 45%; }
.mouth-hotspot { left: 61%; top: 58%; }
.touch-hotspot { left: 47%; top: 67%; }
.sacred-hotspot { left: 49%; top: 15%; }
.head-info-card {
  position: relative;
  margin-top: 12px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(22, 24, 24, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transition: transform 420ms ease, opacity 420ms ease;
}
.head-info-card h3 {
  font-size: 1.4rem;
}
.head-info-card p {
  margin: 8px 0 0;
  color: rgba(255, 248, 235, 0.74);
}
.head-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
@keyframes haloTurn {
  to { transform: rotate(360deg); }
}
@keyframes facePulse {
  0%, 100% { box-shadow: 0 0 0 7px rgba(196, 154, 70, 0.12), 0 0 22px rgba(255, 248, 235, 0.52); }
  50% { box-shadow: 0 0 0 13px rgba(196, 154, 70, 0.06), 0 0 34px rgba(255, 248, 235, 0.72); }
}

.section-inner { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
section { padding: clamp(58px, 8vw, 108px) 0; }
.statement-section, .build-section, .ethics-section { background: var(--charcoal); color: var(--paper-light); }
.archive-section, .glossary-section, .reflection-section { background: var(--paper-light); }
.timeline-section { background: var(--paper-deep); }
.two-column, .trail-layout, .reflection-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}
.section-heading, .archive-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-note { margin: 12px 0 0; color: var(--muted); max-width: 720px; }
.statement-section .section-note, .statement-section p, .build-section p, .ethics-section p { color: rgba(255, 248, 235, 0.78); }

.statement-panel, .trail-panel, .note-panel {
  padding: 22px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.08);
}
.toggle-group, .filter-controls, .note-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-button, .filter-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}
.toggle-button { color: var(--paper-light); border-color: rgba(255, 248, 235, 0.28); }
.toggle-button.active, .filter-button.active, .toggle-button:hover, .filter-button:hover, .lens-card.active {
  background: var(--teal);
  color: var(--paper-light);
  border-color: var(--teal);
}
.statement-text { margin: 18px 0 0; font-size: 1.1rem; }

.lens-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}
.lens-card {
  min-height: 292px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.64);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.lens-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(22, 24, 24, 0.12); }
.lens-symbol {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}
.keyword-row, .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.keyword-row span, .tag-row span, .lens-badge {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(22, 24, 24, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 24, 24, 0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.archive-card p { color: var(--muted); }
.archive-card .button { margin-top: auto; align-self: flex-start; }
.meta-grid { display: grid; gap: 5px; margin: 14px 0; font-size: 0.9rem; color: var(--muted); }

.trail-section { background: #2b241d; color: var(--paper-light); }
.trail-section p, .trail-item small { color: rgba(255, 248, 235, 0.72); }
.trail-list { display: grid; gap: 10px; margin-bottom: 14px; }
.trail-empty { margin: 0; color: rgba(255, 248, 235, 0.72); }
.trail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 6px;
  background: rgba(255, 248, 235, 0.07);
}
.mini-button {
  min-height: 32px;
  border: 1px solid rgba(255, 248, 235, 0.25);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.accordion-list { display: grid; gap: 12px; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.72);
  overflow: hidden;
}
.accordion-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.accordion-content { display: none; padding: 0 18px 18px; color: var(--muted); }
.accordion-item.open .accordion-content { display: block; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.detail-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.42); }
.detail-grid strong { display: block; color: var(--ink); }

.concept-map {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
}
.concept-node {
  align-self: flex-start;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.concept-node:hover, .concept-node.active, .concept-node.related {
  background: var(--burgundy);
  color: var(--paper-light);
  transform: translateY(-2px);
}
.concept-node.dimmed { opacity: 0.34; }
.map-explanation {
  min-height: 72px;
  margin: 14px 0 0;
  padding: 14px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 248, 235, 0.72);
}

.search-label { display: block; margin-bottom: 8px; font-weight: 900; }
.search-input {
  width: min(620px, 100%);
  min-height: 46px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.glossary-item, .source-card, .method-grid article, .blueprint-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.72);
}
.glossary-item summary, .source-card summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 900;
}
.glossary-body, .source-body { padding: 0 16px 16px; color: var(--muted); }

.source-grid, .method-grid, .blueprint-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.source-body ul { padding-left: 20px; }
textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  resize: vertical;
}
.method-grid article, .blueprint-list article { padding: 20px; }
.method-grid p, .blueprint-list p, .saved-note { color: var(--muted); }
.blueprint-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.blueprint-list span { color: var(--burgundy); font-weight: 950; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 13, 13, 0.72);
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
  position: relative;
  width: min(840px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}
.modal-panel h2 { padding-right: 36px; }
.modal-section { margin-top: 18px; }
.modal-section strong { display: block; margin-bottom: 4px; }

.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--charcoal);
  color: rgba(255, 248, 235, 0.78);
  border-top: 1px solid rgba(255, 248, 235, 0.12);
}
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .site-header, .section-heading, .archive-top { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; justify-content: space-between; overflow-x: auto; }
  .two-column, .trail-layout, .reflection-layout, .archive-grid, .glossary-list { grid-template-columns: 1fr; }
  .lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-grid, .method-grid, .blueprint-list, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { position: absolute; }
  .brand { font-size: 0.95rem; }
  .nav-links { font-size: 0.82rem; }
  .hero { min-height: 96vh; padding: 150px 18px 42px; }
  h1 { font-size: 3rem; }
  .lens-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 0; }
  .modal-panel { padding: 22px 16px; }
}

/* Interaction refinements */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible,
section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.path-section,
.builder-section,
.interpretation-section,
.then-now-section,
.prompt-section {
  background: var(--paper-light);
}
.path-section {
  margin-top: -1px;
  background:
    linear-gradient(180deg, var(--paper-light) 0%, #fbf2e1 32%, var(--paper-light) 100%);
}
.desk-section,
.passport-section,
.mixer-section,
.voices-section,
.checkpoint-section {
  background: var(--paper);
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}
.path-grid,
.passport-grid,
.then-now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.passport-grid,
.then-now-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.path-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.74);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.path-card:hover,
.path-card.active {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(22, 24, 24, 0.12);
}
.current-path,
.passport-count {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}
.attention-pulse {
  animation: attentionPulse 1300ms ease;
}
@keyframes attentionPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(196, 154, 70, 0); }
  35% { box-shadow: inset 0 0 0 999px rgba(196, 154, 70, 0.08); }
}

.desk-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
}
.desk-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.desk-copy .button {
  align-self: flex-start;
  margin-top: 22px;
}
.desk-preview {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 24, 24, 0.22), rgba(22, 24, 24, 0.04)),
    url("assets/archive-hero.png") center / cover;
  box-shadow: var(--shadow);
}
.desk-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}
.desk-visual {
  position: relative;
  min-width: 0;
  min-height: min(78vh, 760px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 248, 235, 0.58), rgba(196, 154, 70, 0.12)),
    url("assets/archive-hero.png") center / cover;
  box-shadow: var(--shadow);
}
.desk-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 24, 0.36);
}
.hotspot {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 2px solid rgba(255, 248, 235, 0.95);
  border-radius: 50%;
  background: rgba(196, 154, 70, 0.92);
  color: transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
  box-shadow:
    0 0 0 8px rgba(196, 154, 70, 0.18),
    0 0 28px rgba(255, 248, 235, 0.84);
  animation: hotspotGlow 1800ms ease-in-out infinite;
  overflow: visible;
}
.hotspot::after {
  content: attr(data-hotspot);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(22, 24, 24, 0.82);
  color: var(--paper-light);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.hotspot:hover,
.hotspot.selected {
  background: var(--burgundy);
  transform: scale(1.18);
}
.hotspot:hover::after,
.hotspot.selected::after {
  opacity: 1;
}
@keyframes hotspotGlow {
  0%, 100% { box-shadow: 0 0 0 7px rgba(196, 154, 70, 0.16), 0 0 26px rgba(255, 248, 235, 0.76); }
  50% { box-shadow: 0 0 0 13px rgba(196, 154, 70, 0.08), 0 0 38px rgba(255, 248, 235, 0.9); }
}
.hotspot.manuscript { left: 8%; top: 18%; }
.hotspot.photo { right: 14%; top: 22%; }
.hotspot.chain { left: 17%; bottom: 20%; }
.hotspot.incense { right: 26%; bottom: 28%; }
.hotspot.chapel { left: 42%; top: 45%; }
.hotspot.news { right: 8%; bottom: 12%; }
.hotspot-popover {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: auto;
  width: min(420px, calc(100% - 36px));
  bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.96);
  color: var(--ink);
}
.hotspot-popover strong,
.hotspot-popover span {
  display: block;
}
.hotspot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sense-ai-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.82);
  box-shadow: 0 18px 44px rgba(22, 24, 24, 0.12);
}
.sense-ai-panel p {
  margin: 0;
  color: var(--muted);
}
.sense-ai-panel .ai-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(22, 24, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 850;
}
.sense-ai-panel .ai-status.ready {
  border-color: rgba(36, 113, 81, 0.28);
  color: #247151;
}
.sense-ai-panel .ai-status.waiting {
  border-color: rgba(143, 52, 47, 0.28);
  color: var(--burgundy);
}
.file-drop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(22, 24, 24, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-weight: 850;
}
.file-drop input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.image-preview {
  min-height: 70px;
  border-radius: 8px;
  overflow: hidden;
}
.image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.image-preview p {
  margin-top: 6px;
  font-size: 0.86rem;
}
.sense-result {
  padding: 14px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}
.sense-result strong {
  display: block;
  margin-bottom: 6px;
}
.confidence-bars {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.confidence-bars span {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
}
.confidence-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
}

.builder-panel,
.interpretation-panel,
.mixer-panel,
.voices-panel,
.notebook-panel,
.prompt-card,
.guided-tour,
.compare-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.74);
}
.guided-tour {
  position: relative;
  margin-top: 18px;
  border-left: 4px solid var(--gold);
}
.guided-tour[hidden] {
  display: none;
}
.guided-tour ol {
  padding-left: 22px;
}
.inline-close {
  top: 12px;
  right: 12px;
}
.compare-section {
  background: var(--paper-deep);
}
.compare-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}
.compare-controls select {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.compare-output {
  margin-top: 14px;
}
.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compare-columns article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}
.builder-panel label,
.interpretation-panel label,
.mixer-panel label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-weight: 850;
}
.builder-panel input,
.builder-panel select,
.interpretation-panel select,
.mixer-panel select,
.checkpoint-section select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.builder-actions,
.notebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-preview,
.generated-question,
.feedback {
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.56);
}
.mini-preview ul {
  padding-left: 20px;
}
.random-note {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 9px;
  border: 1px solid rgba(143, 52, 47, 0.24);
  border-radius: 999px;
  color: var(--burgundy);
  font-weight: 850;
}

.passport-stamp {
  min-height: 118px;
  padding: 16px;
  border: 1px dashed rgba(143, 52, 47, 0.45);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.56);
  color: var(--muted);
}
.passport-stamp strong {
  display: block;
  color: var(--ink);
}
.passport-stamp span {
  display: inline-block;
  margin-top: 12px;
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-transform: uppercase;
}
.passport-stamp.stamped {
  background: rgba(143, 52, 47, 0.09);
  animation: stampIn 360ms ease;
}
@keyframes stampIn {
  from { transform: scale(1.04) rotate(-1deg); opacity: 0.62; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.mixer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.authority-grid,
.voice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.authority-detail,
.voice-reading {
  min-height: 130px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
}
.voice-tabs {
  margin-bottom: 12px;
}
.voice-tabs .toggle-button,
.ethical-toggle .toggle-button {
  color: var(--ink);
  border-color: var(--line);
}
.voice-reading {
  border-left: 4px solid var(--gold);
}
.then-now-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.74);
}
.then-now-card p {
  color: var(--muted);
}
.checkpoint-section select {
  margin-bottom: 12px;
}
.notebook-panel pre {
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  white-space: pre-wrap;
}
.prompt-card p {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}
.modal-panel {
  animation: modalSlide 220ms ease;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.button:active,
.filter-button:active,
.lens-card:active {
  transform: translateY(1px);
}

@media (max-width: 980px) {
  .builder-layout,
  .path-grid,
  .passport-grid,
  .mixer-grid,
  .then-now-grid,
  .compare-controls,
  .compare-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .desk-visual {
    min-height: 500px;
  }
  .hotspot {
    max-width: 150px;
    white-space: normal;
  }
}

/* Research subpages */
.subpage-main {
  padding-top: 68px;
}
.subpage-hero {
  padding: clamp(90px, 12vw, 150px) 0 clamp(44px, 6vw, 76px);
  background:
    linear-gradient(90deg, rgba(22, 24, 24, 0.88), rgba(22, 24, 24, 0.58)),
    url("assets/archive-hero.png") center / cover;
  color: var(--paper-light);
}
.subpage-hero h1,
.entry-page h1 {
  max-width: 15ch;
}
.page-lede {
  max-width: 820px;
  color: rgba(255, 248, 235, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}
.database-section {
  background: var(--paper-light);
}
.database-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.7fr) minmax(180px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.database-toolbar .search-input {
  margin: 0;
  width: 100%;
}
.database-toolbar select,
.submission-form input,
.submission-form select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.entry-page {
  padding: clamp(110px, 12vw, 150px) 0 80px;
}
.entry-page .page-lede {
  color: var(--muted);
}
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.entry-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.72);
}
.entry-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}
.metadata-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.metadata-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
}
.metadata-list dt {
  color: var(--muted);
  font-weight: 850;
}
.metadata-list dd {
  margin: 4px 0 0;
}
.ethics-note {
  border-left: 4px solid var(--burgundy);
}
.submission-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.72);
}
.submission-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .database-toolbar,
  .metadata-list {
    grid-template-columns: 1fr;
  }
}

/* Quiet cinematic motion layer */
@media (pointer: fine) {
  body {
    cursor: none;
  }
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
  box-shadow: 0 0 18px rgba(196, 154, 70, 0.55);
}
.cursor-glow {
  position: fixed;
  z-index: 110;
  width: 96px;
  height: 96px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background:
    radial-gradient(circle, rgba(22, 24, 24, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(196, 154, 70, 0.34), rgba(143, 52, 47, 0.16) 34%, transparent 68%);
  border: 1px solid rgba(22, 24, 24, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.36),
    0 0 24px rgba(196, 154, 70, 0.32);
  mix-blend-mode: multiply;
  transition: opacity 220ms ease;
}
.cursor-glow.is-visible {
  opacity: 1;
}
.hero {
  isolation: isolate;
}
.hero img {
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-content {
  animation: titleRise 900ms cubic-bezier(.2, .8, .2, 1) both;
}
.cinema-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,0.45) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 66%, rgba(255,255,255,0.25) 0 1px, transparent 1px),
    radial-gradient(circle at 42% 34%, rgba(0,0,0,0.35) 0 1px, transparent 1px);
  background-size: 6px 6px, 9px 9px, 11px 11px;
  animation: grainShift 1400ms steps(5) infinite;
}
.slow-light {
  position: absolute;
  z-index: 1;
  width: 42vw;
  height: 140vh;
  top: -25vh;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.22;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 235, 0.38), transparent);
}
.sweep-one {
  left: -18vw;
  transform: rotate(18deg);
  animation: lightSweep 14s ease-in-out infinite alternate;
}
.sweep-two {
  right: -24vw;
  transform: rotate(-22deg);
  animation: lightSweepReverse 18s ease-in-out infinite alternate;
}
.cinematic-room {
  background: #141413;
  color: var(--paper-light);
  overflow: hidden;
}
.cinematic-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}
.cinematic-room .section-note {
  color: rgba(255, 248, 235, 0.72);
}
.motion-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 460px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 8px;
  overflow: hidden;
  perspective: 1200px;
}
.motion-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 24px;
  border-right: 1px solid rgba(255, 248, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 248, 235, 0.04), rgba(22, 24, 24, 0.88)),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(196, 154, 70, 0.22), transparent 35%);
  transform-style: preserve-3d;
  transition: transform 220ms ease, background 220ms ease;
  overflow: hidden;
}
.motion-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 248, 235, 0.12), transparent 62%);
  transform: translateX(-70%);
  transition: transform 700ms ease;
}
.motion-panel:hover::before {
  transform: translateX(55%);
}
.motion-panel:last-child {
  border-right: 0;
}
.motion-panel span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  opacity: 0.34;
}
.motion-panel h3,
.motion-panel p {
  position: relative;
  z-index: 1;
}
.motion-panel p {
  color: rgba(255, 248, 235, 0.74);
}
.archive-card,
.lens-card,
.path-card,
.method-grid article,
.glossary-item,
.source-card {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.archive-card:hover,
.lens-card:hover,
.path-card:hover {
  --lift: -5px;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.4%, -1%, 0); }
}
@keyframes titleRise {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-0.5%, -0.5%); }
  100% { transform: translate(0.5%, 0.5%); }
}
@keyframes lightSweep {
  from { transform: translateX(0) rotate(18deg); }
  to { transform: translateX(48vw) rotate(18deg); }
}
@keyframes lightSweepReverse {
  from { transform: translateX(0) rotate(-22deg); }
  to { transform: translateX(-42vw) rotate(-22deg); }
}

@media (max-width: 980px) {
  .cinematic-layout,
  .motion-triptych {
    grid-template-columns: 1fr;
  }
  .desk-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .motion-triptych,
  .motion-panel {
    min-height: 260px;
  }
  .hero {
    align-items: start;
    padding-bottom: 40px;
  }
  .hero-content {
    max-width: 760px;
  }
  .hero-head-stage {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(620px, 100%);
    min-width: 0;
    margin-top: 34px;
  }
  .head-camera {
    min-height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .cursor-glow {
    display: none;
  }
}

/* Realistic sensory head replacement */
.hero-head-stage {
  right: clamp(42px, 6vw, 118px);
  top: 50%;
  bottom: auto;
  width: min(39vw, 610px);
  min-width: 450px;
  transform: translateY(-38%);
}
.head-camera {
  min-height: 0;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
}
.head-camera::after {
  display: none;
}
.head-map {
  position: absolute;
  inset: 0;
  transform-origin: 50% 45%;
  transition: transform 900ms cubic-bezier(.18, .78, .2, 1), filter 900ms ease;
  pointer-events: none;
}
.head-image-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.head-mode-controls {
  position: absolute;
  z-index: 9;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 248, 235, 0.22);
  border-radius: 999px;
  background: rgba(22, 24, 24, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}
.head-mode-button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 235, 0.76);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.head-mode-button.active {
  background: rgba(255, 248, 235, 0.9);
  color: var(--charcoal);
}
.head-mode-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.head-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  filter: saturate(0.68) contrast(1.02) brightness(0.78);
  mix-blend-mode: normal;
  transition: opacity 520ms ease, filter 520ms ease;
}
.head-image-cat {
  opacity: 0;
  object-position: center;
  filter: saturate(0.9) contrast(1.03) brightness(0.74);
}
.hero-head-stage.cat-mode .head-image-human {
  opacity: 0;
}
.hero-head-stage.cat-mode .head-image-cat {
  opacity: 0.94;
}
.hero-head-stage[class*="head-stage-"] .head-map {
  filter: brightness(1.08);
}
.head-stage-sight .head-map { transform: scale(2.28) translate(2%, 9%); }
.head-stage-sound.head-focus-sound .head-map { transform: scale(2.02) translate(-9%, 3%); }
.head-stage-sound.head-focus-mouth .head-map { transform: scale(2.18) translate(0%, -6%); }
.head-stage-smell .head-map { transform: scale(2.34) translate(1%, -1%); }
.head-stage-touch .head-map { transform: scale(1.72) translate(0%, -14%); }
.head-stage-sacred .head-map { transform: scale(1.3) translate(0%, 7%); }
.cat-mode.head-stage-sight .head-map { transform: scale(2.15) translate(0%, 8%); }
.cat-mode.head-stage-sound.head-focus-sound .head-map { transform: scale(1.76) translate(-17%, 3%); }
.cat-mode.head-stage-sound.head-focus-mouth .head-map { transform: scale(2.08) translate(0%, -7%); }
.cat-mode.head-stage-smell .head-map { transform: scale(2.38) translate(0%, -3%); }
.cat-mode.head-stage-touch .head-map { transform: scale(1.68) translate(0%, -14%); }
.cat-mode.head-stage-sacred .head-map { transform: scale(1.18) translate(0%, 9%); }
.head-svg,
.head-profile,
.face-line,
.ear-line,
.nose-line,
.mouth-line,
.eye-line,
.skin-contour,
.neck-line {
  display: none;
}
.face-hotspot {
  position: absolute;
  pointer-events: auto;
  z-index: 6;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 248, 235, 0.22);
  background: rgba(255, 248, 235, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(196, 154, 70, 0.12),
    0 0 18px rgba(196, 154, 70, 0.16);
  opacity: 0.58;
  animation: subtleSensePulse 3200ms ease-in-out infinite;
  transform: translate(-50%, -50%);
}
.face-hotspot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(196, 154, 70, 0.42);
  box-shadow: 0 0 8px rgba(196, 154, 70, 0.25);
}
.face-hotspot span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(22, 24, 24, 0.86);
  color: var(--paper-light);
  font-size: 0.72rem;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.face-hotspot:hover span,
.face-hotspot.active span {
  opacity: 1;
}
.face-hotspot:hover,
.face-hotspot.active {
  opacity: 1;
  border-color: rgba(255, 248, 235, 0.58);
  background: rgba(196, 154, 70, 0.1);
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 235, 0.28),
    0 0 0 7px rgba(196, 154, 70, 0.08),
    0 0 26px rgba(196, 154, 70, 0.3);
}
.eye-hotspot { left: 61%; top: 37%; }
.ear-hotspot { left: 72%; top: 45%; }
.nose-hotspot { left: 50.5%; top: 49%; }
.mouth-hotspot { left: 51%; top: 56%; }
.touch-hotspot { left: 40%; top: 53%; }
.sacred-hotspot {
  left: 50%;
  top: 14%;
  background: rgba(143, 52, 47, 0.03);
}
.cat-mode .eye-hotspot { left: 69%; top: 38%; }
.cat-mode .ear-hotspot { left: 83%; top: 17%; }
.cat-mode .nose-hotspot { left: 52%; top: 51%; }
.cat-mode .mouth-hotspot { left: 52%; top: 62%; }
.cat-mode .touch-hotspot { left: 29%; top: 65%; }
.cat-mode .sacred-hotspot { left: 50%; top: 9%; }
.head-info-card {
  position: absolute;
  z-index: 7;
  right: min(2vw, 18px);
  top: 58%;
  display: block;
  width: min(360px, 74%);
  margin: 0;
  padding: 15px 16px;
  border: 1px solid rgba(255, 248, 235, 0.24);
  border-left: 3px solid rgba(196, 154, 70, 0.7);
  border-radius: 7px;
  background: rgba(255, 248, 235, 0.16);
  color: var(--paper-light);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.head-info-card .section-kicker {
  color: #f0d58d;
}
.head-info-card h3 {
  font-size: 1.05rem;
}
.head-info-card p {
  margin: 8px 0 0;
  color: rgba(255, 248, 235, 0.82);
  font-size: 0.9rem;
  line-height: 1.45;
}
.hero-head-stage[class*="head-stage-"] .head-info-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.head-focus-ring {
  position: absolute;
  z-index: 5;
  width: 118px;
  height: 118px;
  left: var(--focus-x, 50%);
  top: var(--focus-y, 45%);
  border: 1px solid rgba(196, 154, 70, 0.44);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 28px rgba(196, 154, 70, 0.16);
  transition: left 680ms ease, top 680ms ease, transform 680ms ease, opacity 420ms ease;
}
.hero-head-stage[class*="head-stage-"] .head-focus-ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 980px) {
  .hero-head-stage {
    position: relative;
    right: auto;
    top: auto;
    width: min(620px, 100%);
    min-width: 0;
    transform: none;
  }
  .head-camera {
    min-height: 0;
  }
  .head-info-card {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    margin-top: 14px;
  }
  .head-mode-controls {
    top: 10px;
    right: 10px;
  }
}

/* Final accessibility and small-screen polish */
@media (pointer: fine) {
  body { cursor: auto; }
  .cursor-glow { opacity: 0.3; pointer-events: none; }
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .hero-head-stage { margin-top: 22px; }
  .head-mode-controls { left: 50%; right: auto; transform: translateX(-50%); }
  .face-hotspot { width: 38px; height: 38px; min-height: 38px; }
  .head-info-card { padding: 14px; }
  .hero-actions .button { width: 100%; }
}

@keyframes subtleSensePulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.46; }
}
