/* ============================================================
   BITÁCORA DE PROTOCOLOS · VELTIS
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(74, 148, 144, 0.05) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(180, 138, 60, 0.04) 0, transparent 45%);
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 1; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--marble) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--teal); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-serif {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-sans {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}
.site-nav { display: flex; gap: var(--sp-6); }
.site-nav a {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--teal);
  transition: width 0.4s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .site-nav { gap: var(--sp-3); }
  .site-nav a { font-size: 12px; }
  .brand-sans { display: none; }
  .header-inner { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
}
@media (max-width: 480px) {
  .brand-serif { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-nav a { font-size: 11.5px; letter-spacing: 0.02em; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sp-16) var(--sp-6) 0;
  background:
    linear-gradient(to bottom,
      #f7f5ee 0%,
      #ebe7dd 60%,
      #d8d2c1 100%);
}
.hero-atmos {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(123, 186, 182, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(180, 138, 60, 0.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(74, 148, 144, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 148, 144, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.arcade {
  position: absolute;
  left: 0; right: 0; bottom: 60px;
  width: 100%;
  height: 68vh;
  max-height: 620px;
  min-height: 380px;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(60, 60, 50, 0.2));
}

/* Vial glow pulse in hero */
.vials-hero g rect:nth-child(4) {
  transform-origin: center;
  animation: vialGlow 5s ease-in-out infinite;
}
.vials-hero g:nth-child(2) rect:nth-child(4) { animation-delay: 0.7s; }
.vials-hero g:nth-child(3) rect:nth-child(4) { animation-delay: 1.4s; }
.vials-hero g:nth-child(4) rect:nth-child(4) { animation-delay: 2.1s; }
.vials-hero g:nth-child(5) rect:nth-child(4) { animation-delay: 2.8s; }
@keyframes vialGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.95; }
}

.chain-track {
  position: absolute;
  left: 0; right: 0;
  bottom: 44px;
  height: 80px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.aa-chain {
  position: absolute;
  bottom: 10px;
  will-change: transform;
}
.aa-chain svg { filter: drop-shadow(0 3px 4px rgba(30, 60, 58, 0.3)); }
.aa-chain--a {
  animation: driftA 38s linear infinite;
}
.aa-chain--b {
  animation: driftB 50s linear infinite;
  opacity: 0.6;
  transform: scale(0.72);
  bottom: 30px;
}
@keyframes driftA {
  from { transform: translateX(-30vw); }
  to   { transform: translateX(110vw); }
}
@keyframes driftB {
  from { transform: translateX(-35vw) scale(0.72); }
  to   { transform: translateX(115vw) scale(0.72); }
}

.hero-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  z-index: 2;
  background:
    linear-gradient(to bottom, #c9c1ad 0%, #8b8474 100%);
  box-shadow: inset 0 6px 12px rgba(60, 55, 40, 0.35);
}
.hero-floor::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(74, 148, 144, 0.35);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-4) 0;
  text-align: center;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0;
}

.hero-lede-wrap {
  display: inline-block;
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  background: color-mix(in oklab, var(--marble) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.55;
}

.hero-cta {
  margin-top: var(--sp-8);
  display: inline-flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 500;
  transition:
    transform 0.35s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 22px rgba(74, 148, 144, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--teal-deep);
  box-shadow: 0 10px 30px rgba(74, 148, 144, 0.5);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(20, 32, 31, 0.35);
}
.btn-ghost:hover {
  background: rgba(74, 148, 144, 0.08);
  border-color: var(--teal);
  color: var(--teal-deep);
}

.ruo-flag {
  margin-top: var(--sp-8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  background: rgba(74, 148, 144, 0.08);
  border: 1px solid rgba(74, 148, 144, 0.25);
  border-radius: 2px;
}
.ruo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 148, 144, 0.2);
}

/* ============ SECTIONS SHARED ============ */
.section-head {
  max-width: 800px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--teal);
}
.section-lede {
  margin-top: var(--sp-4);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============ PROTOCOLS ============ */
.protocols {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) var(--sp-6);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-12);
}
.chip {
  --dot: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: rgba(20, 32, 31, 0.3);
  transform: translateY(-1px);
}
.chip.is-active {
  background: var(--ink);
  color: var(--marble);
  border-color: var(--ink);
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}

.card {
  --tone: var(--teal);
  position: relative;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease);
  animation: cardIn 0.6s var(--ease) both;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--tone) 12%, transparent) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--tone);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px var(--shadow);
  border-color: color-mix(in oklab, var(--tone) 45%, var(--line));
}
.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tone);
  font-weight: 500;
}
.card-cat::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
}
.card-title {
  margin-top: var(--sp-3);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.card-sub {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.card-body {
  margin-top: var(--sp-4);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.card-specs {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(74, 148, 144, 0.05);
  border-left: 2px solid var(--tone);
  border-radius: 0 2px 2px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.card-specs strong {
  color: var(--ink);
  font-weight: 500;
}
.card-quote {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.card-quote::before {
  content: '❞ ';
  color: var(--tone);
  font-style: normal;
  margin-right: 4px;
}
.card-tags {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.card-tag {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.card-ruo {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  background: rgba(74, 148, 144, 0.1);
  padding: 3px 7px;
  border-radius: 2px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card.is-hidden { display: none; }

.grid-empty {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
}

/* ============ LAB STAGE ============ */
.lab-section {
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) var(--sp-6);
  background: linear-gradient(to bottom, transparent, rgba(74, 148, 144, 0.04));
}
.stage {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: clamp(420px, 62vh, 620px);
  background:
    linear-gradient(to bottom, #edeadf 0%, #d8d2c1 55%, #b8b1a0 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    inset 0 0 60px rgba(80, 70, 50, 0.25),
    0 30px 60px -30px rgba(60, 55, 40, 0.35);
}
.stage-back {
  position: absolute;
  inset: 0 0 40% 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(123, 186, 182, 0.5) 0%, transparent 55%),
    linear-gradient(to bottom, #d8d2c1 0%, #e8e4d4 60%, transparent 100%);
}
.stage-glow {
  position: absolute;
  left: 50%;
  bottom: 42%;
  width: 200px;
  height: 200px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 186, 182, 0.55) 0%, rgba(74, 148, 144, 0.2) 40%, transparent 72%);
  filter: blur(2px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.stage-arcade {
  position: absolute;
  left: 0; right: 0; bottom: 30%;
  height: 45%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  pointer-events: none;
}
.arch {
  position: relative;
  background:
    linear-gradient(to bottom, #f4f0e3 0%, #d0c9b4 60%, #8b8474 100%);
  border-top-left-radius: 50% 65%;
  border-top-right-radius: 50% 65%;
  border-left: 1px solid rgba(60, 55, 40, 0.35);
  border-right: 1px solid rgba(60, 55, 40, 0.35);
  box-shadow: inset 0 -15px 30px rgba(60, 55, 40, 0.3);
}
.arch::before {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  top: 12%;
  bottom: 0;
  background: linear-gradient(to bottom, #2a3938 0%, #14201f 90%);
  border-top-left-radius: 50% 55%;
  border-top-right-radius: 50% 55%;
  box-shadow: inset 0 12px 22px rgba(0, 0, 0, 0.55);
}
.arch:nth-child(3) {
  transform: scaleY(1.15) translateY(-6%);
  z-index: 2;
}
.arch:nth-child(3)::after {
  /* keystone with teal dot */
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(74, 148, 144, 0.6);
}

.stage-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background:
    linear-gradient(to bottom, #cec7b1 0%, #948d79 55%, #56513f 100%);
  box-shadow: inset 0 6px 14px rgba(40, 35, 25, 0.3);
}
.stage-floor::before {
  content: '';
  position: absolute;
  inset: 55% 0 auto 0;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    transparent 0 24px,
    rgba(40, 35, 25, 0.35) 24px 27px,
    transparent 27px 60px
  );
  opacity: 0.4;
}

/* Molecules floating like caravans */
.stage-molecules {
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  height: 100px;
  pointer-events: none;
  z-index: 3;
}
.mol {
  position: absolute;
  bottom: 0;
  width: 80px; height: 80px;
  filter: drop-shadow(0 6px 6px rgba(40, 35, 25, 0.35));
  opacity: 0.85;
}
.mol-1 { animation: molWalk 26s linear infinite; }
.mol-2 { animation: molWalk 26s linear infinite -6.5s; }
.mol-3 { animation: molWalk 26s linear infinite -13s; }
.mol-4 { animation: molWalk 26s linear infinite -19.5s; }
@keyframes molWalk {
  from { transform: translateX(-12vw) translateY(0); }
  50%  { transform: translateX(50vw) translateY(-4px); }
  to   { transform: translateX(115vw) translateY(0); }
}
.mol svg { animation: molRotate 12s linear infinite; }
.mol-2 svg { animation-delay: -3s; }
.mol-3 svg { animation-delay: -6s; }
.mol-4 svg { animation-delay: -9s; }
@keyframes molRotate {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ============ SPECIMENS (hover reveals) ============ */
.specimens {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.specimen {
  position: absolute;
  pointer-events: auto;
  cursor: help;
}
.specimen:nth-child(1) { top: 38%;  left: 14%; }
.specimen:nth-child(2) { top: 60%;  left: 26%; }
.specimen:nth-child(3) { top: 32%;  left: 42%; }
.specimen:nth-child(4) { top: 60%;  right: 32%; }
.specimen:nth-child(5) { top: 40%;  right: 18%; }
.specimen:nth-child(6) { top: 64%;  right: 10%; }

/* Vials */
.vial-shape {
  position: relative;
  width: 34px; height: 74px;
  animation: vialBob 5s ease-in-out infinite;
}
.vial-cap {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 10px;
  background: linear-gradient(to bottom, #4a4638 0%, #2a2620 100%);
  border-radius: 2px 2px 0 0;
  box-shadow: inset -2px 0 2px rgba(0, 0, 0, 0.35);
}
.vial-body {
  position: absolute;
  top: 8px; left: 3px;
  width: 28px; height: 66px;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(240, 245, 244, 0.75) 100%);
  border: 1px solid rgba(74, 148, 144, 0.45);
  border-radius: 3px 3px 4px 4px;
  box-shadow:
    inset -3px 0 4px rgba(74, 148, 144, 0.15),
    inset 2px 2px 3px rgba(255, 255, 255, 0.7);
}
.vial-liquid {
  position: absolute;
  bottom: 4px; left: 5px;
  width: 24px; height: 22px;
  background: linear-gradient(to bottom, rgba(123, 186, 182, 0.9), rgba(74, 148, 144, 0.8));
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.5);
}
.vial-shine {
  position: absolute;
  top: 12px; left: 7px;
  width: 3px; height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), transparent);
  border-radius: 3px;
  opacity: 0.7;
}
.vial-shape--amber .vial-liquid {
  background: linear-gradient(to bottom, rgba(210, 155, 90, 0.9), rgba(180, 138, 60, 0.85));
}
.vial-shape--gold .vial-liquid {
  background: linear-gradient(to bottom, rgba(230, 195, 130, 0.9), rgba(180, 138, 60, 0.85));
}
@keyframes vialBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-5px) rotate(1deg); }
}

/* Peptide chain shapes */
.chain-shape {
  animation: chainFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(40, 60, 58, 0.35));
}
.chain-shape svg { width: auto; height: 42px; }
@keyframes chainFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

/* Tip cards */
.specimen-tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(280px, 62vw);
  max-width: 280px;
  padding: 14px 16px;
  background: rgba(20, 32, 31, 0.96);
  color: #f4f2ec;
  border: 1px solid rgba(74, 148, 144, 0.4);
  border-radius: 3px;
  box-shadow: 0 18px 32px rgba(20, 32, 31, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    visibility 0s linear 0.35s;
  z-index: 10;
}
.specimen-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(20, 32, 31, 0.96);
}
.tip-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-glow);
  background: rgba(123, 186, 182, 0.14);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.tip-label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.tip-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 242, 236, 0.9);
  margin-bottom: 8px;
}
.tip-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal-glow);
  letter-spacing: 0.06em;
  padding-top: 8px;
  border-top: 1px solid rgba(123, 186, 182, 0.2);
}
.specimen:hover .specimen-tip,
.specimen:focus-within .specimen-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.specimen:hover .vial-shape,
.specimen:focus-within .vial-shape {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(123, 186, 182, 0.6));
}
.specimen:hover .chain-shape,
.specimen:focus-within .chain-shape {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(123, 186, 182, 0.55));
}

.stage-hint {
  max-width: 1280px;
  margin: var(--sp-6) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.stage-hint .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(74, 148, 144, 0.2);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 148, 144, 0.2); }
  50%      { box-shadow: 0 0 0 10px rgba(74, 148, 144, 0); }
}

/* ============ COMPENDIO ============ */
.compendio {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) var(--sp-6);
}
.compendio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
}
.c-card {
  position: relative;
  padding: var(--sp-8) var(--sp-6);
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.c-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px var(--shadow);
}
.c-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-3);
}
.c-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.15;
}
.c-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 4px;
  margin-bottom: var(--sp-4);
}
.c-card p:last-child {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============ COLOFÓN ============ */
.colofon {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) var(--sp-6);
  text-align: center;
}
.colofon-body {
  font-family: var(--serif);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto;
}
.colofon-body em { color: var(--teal); }
.ruo-block {
  margin: var(--sp-10) auto 0;
  max-width: 560px;
  padding: var(--sp-6);
  background: rgba(74, 148, 144, 0.06);
  border: 1px solid rgba(74, 148, 144, 0.3);
  border-radius: 4px;
  text-align: left;
}
.ruo-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--sp-2);
  font-weight: 500;
}
.ruo-block p:last-child {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.ruo-block strong { color: var(--ink); font-weight: 600; }

/* ============ FOOTER ============ */
.site-footer {
  padding: var(--sp-8) var(--sp-6);
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--marble) 96%, var(--teal));
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-serif {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
}
.footer-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.footer-links {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-links a {
  color: var(--teal-deep);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--teal); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .hero { min-height: 84vh; padding-top: var(--sp-12); }
  .arcade { height: 46vh; min-height: 260px; bottom: 40px; }
  .chain-track { bottom: 30px; }
  .hero-floor { height: 40px; }
  .stage { height: 400px; }
  .mol { width: 60px; height: 60px; }
  .vial-shape { width: 28px; height: 60px; }
  .vial-body { width: 22px; height: 54px; }
  .vial-liquid { width: 18px; height: 18px; }
  .chain-shape svg { height: 34px; }
  .specimen-tip { font-size: 13px; }
  .ruo-flag { font-size: 9.5px; padding: 6px 12px; }
}
