/* ============================================================
   Hero: Variation A4 (same hero engine as A3)
   Fix: word slot uses clip-path so "Personalized" overflows
   horizontally instead of getting clipped by overflow:hidden.
   Wider copy column for breathing room.
   ============================================================ */

.hero-a4 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background: var(--surface);
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 50%;
}

.hero-a4__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-a4__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: opacity, transform;
}
.hero-a4__canvas--b { opacity: 0; }

.hero-a4__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(250, 249, 247, 0.94) 0%, rgba(250, 249, 247, 0.55) 36%, rgba(250, 249, 247, 0) 64%);
}

.hero-a4__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(46, 35, 28, 0.12) 100%);
  opacity: 0;
  will-change: opacity;
}

.hero-a4__copy {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-a4__copy .container { width: 100%; }

/* Wider copy column so the long word has room */
.hero-a4__copy-inner {
  max-width: 720px;
  pointer-events: auto;
}

.hero-a4__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
}
.hero-a4__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--primary);
  display: block;
  opacity: 0.6;
  transform-origin: left;
  animation: a4LineDraw 1.2s var(--ease-out) 0.2s backwards;
}
@keyframes a4LineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-a4__head {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--on-surface);
  margin-bottom: 28px;
  line-height: 0.95;
}

/* ---- The fix ----
   clip-path clips the slot vertically (so words can slide up)
   while leaving horizontal overflow visible (so "Personalized"
   stretches into the photo space without being cut off).
*/
.hero-a4__word-slot {
  display: block;
  position: relative;
  font-size: clamp(4rem, 8vw, 6.5rem);
  height: clamp(70px, 8.6vw, 120px);
  margin-bottom: 4px;
  overflow: visible;
  clip-path: inset(-4px -100vw -8px 0);
}
.hero-a4__word {
  position: absolute;
  inset: 0 auto 0 0;
  white-space: nowrap;
  display: block;
  font-style: italic;
  color: var(--primary);
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 480ms var(--ease-out), transform 580ms var(--ease-out);
  will-change: transform, opacity;
}
.hero-a4__word.is-active {
  opacity: 1;
  transform: translateY(0%);
}

.hero-a4__kicker {
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.hero-a4__sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 480px;
  margin-bottom: 36px;
  margin-top: 8px;
}

.hero-a4__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-a4__meta {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.hero-a4__meta strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--on-surface);
  margin-top: 6px;
}

.hero-a4__rail {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}
.hero-a4__rail-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  white-space: nowrap;
}
.hero-a4__rail-track {
  width: 1px;
  height: 140px;
  background: var(--outline-variant);
  position: relative;
  overflow: hidden;
}
.hero-a4__rail-fill {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 0%;
  background: var(--primary);
  will-change: height;
}

.hero-a4__cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.65rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  opacity: 0.7;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-a4__cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background: var(--on-surface-variant);
  animation: a4CueLine 1.6s ease-in-out infinite;
}
@keyframes a4CueLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 760px) {
  .hero-a4 { height: auto; min-height: 0; padding: 96px 0 64px; perspective: none; }
  .hero-a4__stage { position: relative; aspect-ratio: 16 / 11; inset: auto; }
  .hero-a4__copy { position: relative; padding: 32px 0 0; inset: auto; }
  .hero-a4__rail, .hero-a4__cue, .hero-a4__veil, .hero-a4__shade { display: none; }
  .hero-a4__meta { gap: 20px; flex-wrap: wrap; }
  .hero-a4__word-slot { font-size: clamp(3rem, 14vw, 5rem); height: clamp(56px, 16vw, 90px); }
}
