/* ══════════════════════════════════════════════════════════════════════
   hero-trail.css — the cursor "image-trail" hero layer.

   Loaded after style.css, ht- namespaced so nothing collides with the shared
   global stylesheet.

   SHIPPING — linked from index.html (and from the hero-trail.html prototype
   page). Do not delete.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero band (the trail plays here) ─────────────────────────────── */
.ht-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

/* Cards spawn into this layer. pointer-events:none so cards never block the
   cursor and the hero keeps receiving mousemove; it also sits under the type. */
.ht-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

/* ── index.html integration: trail as a background layer in the real hero ──
   The stage covers the first viewport, sits BEHIND the 3-column hero content
   (which paints on top), and clips the cards. .layout becomes the positioned
   ancestor. Both rules only load on index (hero-trail.css is linked there only). */
.layout { position: relative; }
.ht-stage.is-hero-bg {
  inset: 0 auto auto 0;      /* top-left anchored, not full .layout height */
  width: 100%;
  height: 100svh;
  z-index: 0;                /* behind the columns; in front of the page bg */
}
/* Lift the hero content above the trail so cards sit BEHIND all of it. col-left
   and col-right stay sticky (z-index only); col-center just needs positioning.
   The bio text is otherwise non-positioned and would paint under the z:0 stage. */
.col-left, .col-right { z-index: 1; }
.col-center { position: relative; z-index: 1; }

/* ── A trail card ─────────────────────────────────────────────────── */
.ht-card {
  position: absolute;
  width: var(--ht-w, 240px);
  height: var(--ht-h, 320px);
  border-radius: 6px;
  border: 1px solid rgba(28, 27, 26, 0.10);   /* hairline (site --border is off) */
  background: #cccccc;                          /* colour fallback / loading state */
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  box-shadow: 0 8px 22px rgba(28, 27, 26, 0.12);
  will-change: transform, opacity;
  pointer-events: none;
}
.ht-card-img { display: none; width: 100%; height: 100%; object-fit: cover; }

/* Label chip — dusty-rose, restrained, top-left corner. */
.ht-chip {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em; line-height: 1;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(168, 124, 110, 0.35);
  border-radius: 3px;
  padding: 3px 5px;
}

/* ── Centre type (over the trail, non-interactive) ────────────────── */
.ht-center {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  z-index: 5; pointer-events: none; text-align: center;
  width: max-content; max-width: 92vw;
}
.ht-name {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto; font-style: italic; font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1.0;
  letter-spacing: -0.02em; color: #1C1B1A;
}
.ht-tagline {
  margin-top: 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.32em; color: var(--accent);
}
.ht-hint {
  margin-top: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem; color: var(--muted); opacity: 0.85;
  transition: opacity 0.4s ease;
}
.ht-hint.is-hidden { opacity: 0; }

/* ── Scroll filler (so gestures / CTA / re-arm are testable) ──────── */
.ht-filler {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6vh clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid rgba(28, 27, 26, 0.06);
}
.ht-filler h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em;
  line-height: 1.05; color: var(--ink); max-width: 18ch;
}
.ht-filler p {
  margin-top: 1.1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--muted); max-width: 52ch; line-height: 1.6;
}

/* ── Back-to-top CTA ──────────────────────────────────────────────── */
.ht-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 50%;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(28, 27, 26, 0.08);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.ht-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ht-top:hover { background: var(--accent); color: var(--bg); }
.ht-top svg { width: 15px; height: 15px; display: block; }

/* ── Responsive: smaller cards so the trail fits, no horizontal scroll ── */
@media (max-width: 700px) {
  .ht-card { --ht-w: 128px; --ht-h: 170px; }
  .ht-top { right: 16px; bottom: 16px; }
  /* On a phone the statement sits directly over the pile instead of beside
     it, so the layer drops back to stay a background rather than competing
     with the type. Dimming the stage, not the cards — JS writes each card's
     own opacity as it animates. */
  .ht-stage.is-hero-bg { opacity: 0.45; }
}

/* ── Reduced motion: card transitions off (JS shows a static pile) ── */
@media (prefers-reduced-motion: reduce) {
  .ht-card { transition: none !important; will-change: auto; }
  .ht-top { transition: opacity 0.2s linear; }
}
