/* ════════════════════════════════════════════
   hero.css : editorial cream hero
   ════════════════════════════════════════════ */

.fw-hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--bg-hero);
  color: var(--text);
  overflow: hidden;
  padding: calc(var(--nav-h) + 56px) 32px 36px;
  display: flex;
}

.fw-hero-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 36px;
  align-items: start;
}

/* ── background drift text ───────────────── */
.fw-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(140px, 28vw, 380px);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--text);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0;
  animation: heroBgDrift 18s ease-in-out infinite;
}
@keyframes heroBgDrift {
  0%   { transform: translate(-35%, -50%); opacity: 0; }
  15%  { opacity: 0.06; }
  85%  { opacity: 0.06; }
  100% { transform: translate(25%, -50%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-hero-bg-text { animation: none; opacity: 0.04; transform: translate(-5%, -50%); }
}

/* ── top meta row ─────────────────────────── */
.fw-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── dominant display name ────────────────── */
.fw-hero-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(96px, 22vw, 340px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.fw-hero-line {
  display: block;
  position: relative;
  will-change: transform, opacity;
}
.fw-hero-line-italic {
  font-style: italic;
  font-weight: 400;
  align-self: flex-end;
  margin-right: 4vw;
  color: var(--text-2);
}

/* ── tagline + sub copy ──────────────────── */
.fw-hero-tagline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: 1100px;
  margin-top: 12px;
}
.fw-hero-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.fw-hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 440px;
}

/* ── bottom row : status + scroll ────────── */
.fw-hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.fw-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.fw-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: breathe 2.4s ease-in-out infinite;
}
.fw-hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.fw-hero-scroll-arrow {
  display: inline-block;
  animation: heroScrollBob 2.2s ease-in-out infinite;
}
@keyframes heroScrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ════════════════════════════════════════════
   LANYARD : alive accent (right column overlay)
   ════════════════════════════════════════════ */
.fw-lanyard-scene {
  position: absolute;
  top: 0;
  right: 6vw;
  width: 220px;
  height: 380px;
  z-index: 3;
  pointer-events: none;
}
.fw-lanyard-scene .fw-avatar-card { pointer-events: auto; }
.fw-lanyard-scene .fw-lanyard-svg { pointer-events: none; }

.fw-lanyard-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  z-index: 1;
}
.fw-strap-text {
  letter-spacing: 1.4px;
  text-rendering: geometricPrecision;
}

/* ── Card (press credential style) ── */
.fw-avatar-card {
  position: absolute;
  left: 0; top: 0;
  width: 200px;
  background: #F4EFE6;
  border: 1px solid rgba(21,20,15,0.18);
  border-radius: 10px;
  box-shadow:
    0 14px 28px rgba(21,20,15,0.18),
    0 4px 8px rgba(21,20,15,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: grab;
  transform-origin: 50% 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
  overflow: hidden;
}
.fw-avatar-card:active { cursor: grabbing; }

/* clip nub at top of card where it meets D-ring */
.fw-card-clip {
  width: 36px;
  height: 16px;
  background: linear-gradient(180deg, #cfc7b5 0%, #8a8270 100%);
  border-radius: 4px 4px 2px 2px;
  margin: -10px auto 0;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 2px 3px rgba(21,20,15,0.25);
}
.fw-card-clip::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  width: 10px; height: 4px;
  transform: translateX(-50%);
  background: rgba(21,20,15,0.85);
  border-radius: 99px;
}

.fw-card-body {
  padding: 12px 14px 14px;
  text-align: left;
}
.fw-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.fw-card-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: #1f1d18;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.fw-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.02);
}
.fw-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}
.fw-card-role {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.fw-card-foot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  border-top: 1px dashed rgba(21,20,15,0.2);
  padding-top: 8px;
  width: 100%;
}
.fw-card-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
}

/* ════════════════════════════════════════════
   REVEAL : staged in by main.js after loader
   ════════════════════════════════════════════ */
.fw-hero-top,
.fw-hero-display .fw-hero-line,
.fw-hero-tagline,
.fw-hero-bottom,
.fw-lanyard-scene {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 1.1s var(--ease-out-expo);
}
.fw-hero-section.is-ready .fw-hero-top              { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.fw-hero-section.is-ready .fw-hero-line:nth-child(1){ opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.fw-hero-section.is-ready .fw-hero-line:nth-child(2){ opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
.fw-hero-section.is-ready .fw-hero-tagline          { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
.fw-hero-section.is-ready .fw-hero-bottom           { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }
.fw-hero-section.is-ready .fw-lanyard-scene         { opacity: 1; transform: translateY(0); transition-delay: 0.50s; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .fw-hero-section {
    padding: calc(var(--nav-h) + 40px) 24px 28px;
  }
  .fw-hero-wrap { gap: 28px; }
  .fw-hero-display {
    font-size: clamp(80px, 24vw, 200px);
  }
  .fw-hero-line-italic { margin-right: 0; }
  .fw-hero-tagline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fw-lanyard-scene {
    width: 150px;
    height: 280px;
    right: 16px;
    top: 0;
  }
  .fw-avatar-card { width: 138px; }
  .fw-card-photo { margin-bottom: 8px; }
  .fw-card-name { font-size: 15px; }
  .fw-card-role { font-size: 8px; margin-bottom: 8px; }
}

@media (max-width: 600px) {
  .fw-hero-display { font-size: clamp(64px, 26vw, 160px); }
  .fw-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .fw-hero-status,
  .fw-hero-scroll { font-size: 10px; }
  .fw-hero-meta { font-size: 10px; }
  .fw-lanyard-scene {
    position: relative;
    right: auto; top: auto;
    width: 150px;
    height: 280px;
    margin: -20px auto 0;
  }
  .fw-hero-wrap { grid-template-rows: auto auto auto auto auto; }
}
