/* ============================================================
   layout.css — Cold Case Club v2
   6-section interactive case-file landing page
   ============================================================ */

/* ---------- CRIME-SCENE TAPE (top, persistent) ---------- */
.tape {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--tape-h);
  background:
    repeating-linear-gradient(
      90deg,
      var(--tape-yellow) 0 80px,
      var(--tape-black) 80px 84px,
      var(--tape-yellow) 84px 160px
    );
  z-index: 90;
  transform-origin: center;
  will-change: transform;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  overflow: hidden;
}
.tape__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--tape-black);
  letter-spacing: 0.2em;
  white-space: nowrap;
  animation: tape-slide 18s linear infinite;
}
.tape__text span { padding: 0 2.5rem; }
@keyframes tape-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tape__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,12,9,0) 0%, rgba(15,12,9,0) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tape__fill::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--tape-progress, 0%);
  background: linear-gradient(90deg, rgba(139,26,26,0.18), rgba(139,26,26,0.35));
  transition: width 90ms linear;
}

/* Torn state (triggered at 60% scroll) */
.tape--torn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 38%;
  background: inherit;
  transform: rotate(-6deg) translate(8px, 28px);
  opacity: 0.55;
  filter: blur(0.2px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 80%);
}

/* ---------- CASE BADGE (top-right, persistent) ---------- */
.case-badge {
  position: fixed;
  top: calc(var(--tape-h) + 16px);
  right: 24px;
  z-index: 85;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 10px 14px;
  color: var(--text-highlight);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(-120%) rotate(-2deg);
  opacity: 0;
}
.case-badge::before {
  content: "●";
  color: var(--accent-secondary);
  margin-right: 8px;
  font-size: 9px;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.case-badge.is-visible {
  animation: badge-slam 700ms var(--ease-out) forwards;
  animation-delay: 400ms;
}
@keyframes badge-slam {
  0%   { transform: translateY(-120%) rotate(-2deg); opacity: 0; }
  70%  { transform: translateY(4px) rotate(-2deg); opacity: 1; }
  100% { transform: translateY(0) rotate(-2deg); opacity: 1; }
}

/* ---------- SOUND TOGGLE ---------- */
.sound-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 85;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-dim);
  color: var(--accent-primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 200ms var(--ease-out), border-color 200ms;
}
.sound-toggle:hover { transform: scale(1.08); border-color: var(--accent-primary); }
.sound-toggle::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: sound-pulse 2.6s ease-out infinite;
}
@keyframes sound-pulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- STICKY BUY BAR (desktop top-right, mobile bottom) ---------- */
.buy-bar {
  position: fixed;
  z-index: 80;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-dim);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 500ms var(--ease-out);
}
.buy-bar.is-visible { transform: translateY(0); }

@media (min-width: 900px) {
  .buy-bar {
    top: calc(var(--tape-h) + 68px);
    right: 24px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 14px;
    transform: translateX(120%);
  }
  .buy-bar.is-visible { transform: translateX(0); }
}
@media (max-width: 899px) {
  .buy-bar {
    left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    border-top: 1px solid var(--accent-dim);
    border-radius: 0;
  }
}
.buy-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.buy-bar__price { color: var(--text-highlight); font-weight: 600; font-size: 14px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease-out), box-shadow 180ms, background 180ms;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--accent-primary);
  color: var(--text-inverse);
  box-shadow: var(--glow-amber);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212,169,74,0.45);
  background: var(--text-highlight);
}
.btn--ghost {
  color: var(--text-highlight);
  border: 1px solid var(--accent-dim);
}
.btn--ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.btn--lg { padding: 18px 34px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* ---------- SECTION: SHARED ---------- */
.section {
  position: relative;
  padding: var(--space-7) 0;
  scroll-margin-top: var(--tape-h);
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent-primary);
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.section__lead {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--text-highlight);
  max-width: 40ch;
  line-height: 1.4;
  margin-bottom: var(--space-4);
}

/* Typewriter reveal — applied by Splitting.js + JS */
.reveal .char {
  opacity: 0;
  transform: translateY(6px);
  display: inline-block;
  transition: opacity 28ms linear, transform 160ms var(--ease-out);
}
.reveal.is-revealed .char {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--char-index, 0) * 22ms);
}

/* ---------- SECTION 1: HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--tape-h) + var(--space-6)) 0 var(--space-6);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-base);
}
.hero__canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08);
}
.hero__canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(15,12,9,0.35) 60%, rgba(15,12,9,0.88) 100%),
    linear-gradient(180deg, rgba(15,12,9,0.15) 0%, rgba(15,12,9,0.6) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
  display: inline-block;
  padding: 8px 12px;
  border: 1px dashed var(--accent-dim);
  transform: rotate(-1.5deg);
}
.hero__title {
  font-size: var(--fs-5xl);
  line-height: 1.04;
  max-width: 22ch;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero__title .line + .line { margin-top: 0.1em; }
.hero__title .line--red { color: var(--accent-secondary); }
.hero__sub {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--text-body);
  max-width: 42ch;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  opacity: 0.6;
  animation: scroll-hint 2.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes scroll-hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50%      { transform: translate(-50%, 8px); opacity: 0.85; }
}

/* ---------- SECTION 2: WITNESSES (POLAROIDS) ---------- */
.witnesses { background: var(--bg-base); padding: var(--space-7) 0; }
.polaroids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
  perspective: 1200px;
}
.polaroid {
  position: relative;
  aspect-ratio: 3/4;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-io);
  cursor: pointer;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.polaroid:nth-child(1) { transform: rotate(-3deg); }
.polaroid:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.polaroid.is-flipped { transform: rotateY(180deg) !important; }
.polaroid__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #ece4d2;
  padding: 14px 14px 44px;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: var(--text-inverse);
}
.polaroid__face--front { display: flex; flex-direction: column; }
.polaroid__photo {
  width: 100%; height: 70%;
  background: var(--bg-base);
  overflow: hidden;
  position: relative;
}
.polaroid__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.25) contrast(1.12) brightness(0.92);
}
.polaroid__caption {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.polaroid__face--back {
  transform: rotateY(180deg);
  background: #ece4d2;
  font-size: 13px;
  line-height: 1.55;
  color: #22201c;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.polaroid__face--back strong { font-family: var(--font-serif); font-size: 15px; color: var(--text-inverse); }
.polaroid__tag {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--accent-secondary);
  color: var(--text-highlight);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  letter-spacing: 0.15em;
  transform: rotate(6deg);
  z-index: 3;
  text-transform: uppercase;
}
.witnesses__hint {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  text-align: center;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.witnesses__hint.is-visible { opacity: 1; }

/* ---------- SECTION 3: HOW IT WORKS ---------- */
.steps {
  background-image: url("/assets/video/scenes/frame-red-coat.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,12,9,0.92) 0%, rgba(15,12,9,0.82) 100%);
  backdrop-filter: saturate(0.6);
}
.steps__inner { position: relative; z-index: 1; }
.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
  counter-reset: step;
}
.step {
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 280ms var(--ease-out), border-color 280ms, box-shadow 280ms;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.step__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-base);
  position: relative;
}
.step__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
  filter: saturate(0.92) contrast(1.05);
}
.step:hover .step__image img { transform: scale(1.06); }
.step__image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0) 0%, rgba(15,12,9,0.55) 100%);
  pointer-events: none;
}
.step__num,
.step__title,
.step__body {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}
.step__num { padding-top: var(--space-3); }
.step__body { padding-bottom: var(--space-3); }
.step__num {
  counter-increment: step;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  display: inline-block;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--text-highlight);
  margin-bottom: 8px;
}
.step__body { font-size: var(--fs-sm); color: var(--text-body); }

/* ---------- SECTION 4: LEAD MAGNET (modal) ---------- */
.magnet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(15,12,9,0.88);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.magnet-modal.is-open { display: flex; }
.magnet-modal__card {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: var(--space-5);
  box-shadow: var(--shadow-lg), var(--glow-amber);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 420ms;
  position: relative;
}
.magnet-modal.is-open .magnet-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.magnet-modal__stamp {
  position: absolute;
  top: -16px; left: -16px;
  background: var(--accent-secondary);
  color: var(--text-highlight);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  transform: rotate(-4deg);
  text-transform: uppercase;
}
.magnet-modal__title {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-2);
  line-height: 1.1;
}
.magnet-modal__sub {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.55;
}
.magnet-modal__form {
  display: flex; gap: 10px;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.magnet-modal__input {
  flex: 1; min-width: 200px;
  padding: 14px 16px;
  background: var(--bg-base);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-md);
  color: var(--text-highlight);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 180ms, box-shadow 180ms;
}
.magnet-modal__input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-amber);
}
.magnet-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
}
.magnet-modal__close:hover { color: var(--accent-primary); }
.magnet-modal__fine {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.magnet-modal__success {
  text-align: center;
  padding: var(--space-4) 0;
}
.magnet-modal__success svg {
  width: 48px; height: 48px;
  stroke: var(--accent-primary);
  margin-bottom: var(--space-2);
}

/* ---------- SECTION 5: PRICING + GUARANTEE ---------- */
.pricing {
  background: var(--bg-base);
  position: relative;
  transition: filter 1s var(--ease-out);
}
.pricing.is-warm { filter: hue-rotate(-4deg) saturate(1.12) brightness(1.04); }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
  transition: transform 280ms var(--ease-out), border-color 280ms, box-shadow 280ms;
}
.plan:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}
.plan--popular {
  border-color: var(--accent-primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg), var(--glow-amber);
}
.plan--popular:hover { transform: translateY(-6px) scale(1.04); }
.plan__ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  background: var(--accent-primary);
  color: var(--text-inverse);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
}
.plan__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.plan__price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--text-highlight);
  margin-bottom: var(--space-2);
  line-height: 1;
}
.plan__price small {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}
.plan__strike {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}
.plan__features {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
}
.plan__features li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--accent-dim);
  display: flex; gap: 10px;
}
.plan__features li::before {
  content: "▸";
  color: var(--accent-primary);
  flex-shrink: 0;
}

.guarantee {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 768px) { .guarantee { grid-template-columns: 1fr; } }
.guarantee__video {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-dim);
  box-shadow: var(--shadow-md);
  background: var(--bg-base);
}
.guarantee__video video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.guarantee__body h2 { margin-bottom: var(--space-2); }
.guarantee__seal {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 14px 24px;
  border: 2px dashed var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  border-radius: 50%;
  transform: rotate(-6deg);
  text-transform: uppercase;
}

/* ---------- SECTION 6: FAQ + FINAL CTA ---------- */
.faq {
  background-image: url("/assets/video/scenes/frame-door-swing.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}
.faq::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0.88) 0%, rgba(15,12,9,0.96) 100%);
}
.faq__inner { position: relative; z-index: 1; }
.faq__list { max-width: 760px; margin: var(--space-5) auto 0; }
.faq__item {
  border-bottom: 1px solid var(--accent-dim);
}
.faq__q {
  width: 100%;
  padding: var(--space-3) 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--text-highlight);
  text-align: left;
  transition: color 200ms;
}
.faq__q:hover { color: var(--accent-primary); }
.faq__q::after { content: "+"; font-size: 24px; color: var(--accent-primary); transition: transform 300ms; }
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-io);
  color: var(--text-body);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.faq__item.is-open .faq__a { max-height: 300px; padding-bottom: var(--space-3); }

.final-cta {
  text-align: center;
  padding: var(--space-7) 0 var(--space-8);
  position: relative;
}
.final-cta h2 {
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-2);
  max-width: 16ch;
  margin-left: auto; margin-right: auto;
}
.final-cta p { margin-bottom: var(--space-4); color: var(--text-body); }
.final-cta .btn { animation: final-pulse 3s ease-in-out infinite; }
@keyframes final-pulse {
  0%, 100% { box-shadow: var(--glow-amber); }
  50%      { box-shadow: 0 0 44px rgba(212,169,74,0.6); }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--accent-dim);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); margin: 0 10px; }
.footer a:hover { color: var(--accent-primary); }

/* ---------- CURSOR GOLD TRAIL (desktop only) ---------- */
@media (hover: hover) and (min-width: 900px) {
  .cursor-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 70;
    mix-blend-mode: screen;
  }
}
@media (hover: none), (max-width: 899px) {
  .cursor-trail { display: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero { min-height: 88vh; }
  .hero__title { font-size: clamp(2rem, 10vw, 3rem); }
  .section { padding: var(--space-6) 0; }
  .case-badge { right: 12px; font-size: 10px; padding: 8px 10px; }
  .sound-toggle { bottom: 84px; left: 16px; width: 40px; height: 40px; }
  .steps { background-attachment: scroll; }
}
