/* ============================================================
   hero.css — opening "panel": large display name, typed
   instrument readout, and a 3D-tilting photo card that
   responds to pointer position like a gimbal.
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 60px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__eyebrow .bracket {
  color: var(--instrument-dim);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.hero__name em {
  font-style: italic;
  color: var(--signal);
  font-weight: 500;
}

.hero__readout {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--instrument);
  min-height: 3.2em;
  max-width: 580px;
  border-left: 2px solid var(--hairline-bright);
  padding-left: 16px;
}

.hero__readout .cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--signal);
  margin-left: 2px;
  vertical-align: -2px;
  animation: cursor-blink 0.9s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
    background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  border: 1px solid var(--hairline-bright);
}

.btn--primary {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--signal-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: translateY(-2px);
}

/* ── 3D tilt photo card ─────────────────────────────────── */
.hero__visual {
  perspective: 1100px;
}

.tilt-card {
  position: relative;
  border-radius: 6px;
  transform-style: preserve-3d;
  transition: transform 0.18s var(--ease-out);
  will-change: transform;
}

.tilt-card__frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline-bright);
  background: var(--panel);
  aspect-ratio: 4 / 5; /* default: portrait, matches a typical profile photo */
}

.tilt-card__frame.is-landscape { aspect-ratio: 4 / 3; }
.tilt-card__frame.is-portrait  { aspect-ratio: 4 / 5; }
.tilt-card__frame.is-square    { aspect-ratio: 1 / 1; }

.tilt-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.tilt-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, transparent 40%, rgba(61, 220, 138, 0.14) 100%);
  mix-blend-mode: screen;
}

.tilt-card__readout {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--paper);
  letter-spacing: 0.04em;
  transform: translateZ(40px);
}

.tilt-card__readout .blip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 14, 17, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 9px;
  border-radius: 30px;
  border: 1px solid var(--hairline-bright);
  white-space: nowrap;
}

.tilt-card__readout .blip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal-glow);
}

.tilt-card__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--signal);
  opacity: 0.85;
  transform: translateZ(50px);
}

.tilt-card__corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tilt-card__corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ── Scroll-cue at bottom of hero ───────────────────────── */
.scroll-cue {
  position: absolute;
  left: var(--edge);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--instrument-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 980px) {
  .scroll-cue {
    left: calc(var(--rail-x) + 30px);
  }
}

.scroll-cue__line {
  width: 26px;
  height: 1px;
  background: var(--instrument-dim);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal);
  animation: scroll-trace 2.2s ease-in-out infinite;
}

@keyframes scroll-trace {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 900px) {
  .scroll-cue { display: none; }
}
