/* =========================================================
   Part 2 · Hero
   ========================================================= */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  height: clamp(730px, calc(100svh - var(--header-h)), 980px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 48% 55% at 50% 42%, rgba(120, 16, 28, .22), transparent 68%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(9, 9, 9, .9), transparent 70%),
    var(--bg);
}

.hero-rules {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  opacity: .55;
}
.hero-rules i {
  border-right: 1px solid rgba(255, 255, 255, .035);
}
.hero-rules i:first-child { border-left: 1px solid rgba(255, 255, 255, .035); }
.hero-rules i:last-child { border-right: 0; }

.hero-top {
  position: absolute;
  top: 20px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  color: var(--muted);
}
.hero-top > span:first-child { color: var(--accent); font-weight: 700; }
.hero-top-right { display: inline-flex; gap: 8px; white-space: nowrap; }
#ist-time { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Giant name */
.hero-giant {
  position: absolute;
  top: 7.2%;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: min(30vw, 520px);
  line-height: .82;
  letter-spacing: -.035em;
  white-space: nowrap;
  color: #a1101f;
  text-shadow: 0 0 90px rgba(227, 43, 60, .12);
  pointer-events: none;
  user-select: none;
}

/* Portrait */
.hero-portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: min(45%, 640px);
  height: 94%;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform;
}
.portrait-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 120%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(227, 43, 60, .26), rgba(143, 15, 27, .1) 45%, transparent 70%);
  filter: blur(38px);
  z-index: -1;
}
.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 72%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.08) saturate(.9) brightness(.86);
  transform: scale(1.02);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(227, 43, 60, .26), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(227, 43, 60, .22), transparent 52%),
    linear-gradient(0deg, rgba(9, 9, 9, .55), transparent 45%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.portrait-tag {
  position: absolute;
  right: -26px;
  bottom: 22%;
  transform: rotate(90deg);
  transform-origin: right center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .36em;
  color: rgba(242, 239, 235, .42);
  white-space: nowrap;
}

/* Copy */
.hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: 96px;
  z-index: 5;
  width: min(31%, 430px);
  isolation: isolate;
  animation: heroRise .9s .4s both;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -90px -120px -40px -80px;
  z-index: -1;
  background: radial-gradient(ellipse at 25% 55%, rgba(9, 9, 9, .92), rgba(9, 9, 9, .35) 52%, transparent 74%);
  pointer-events: none;
}
.hero-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-headline::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero-hello {
  display: inline-block;
  transform: rotate(-6deg);
  transform-origin: left bottom;
  color: var(--ink);
  margin-bottom: 10px;
  font-size: clamp(28px, 2.6vw, 40px);
}
.hero-name {
  font-size: clamp(58px, 5.4vw, 96px);
  line-height: .88;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.hero-name .dot { color: var(--accent); }
.hero-role {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .005em;
  margin-bottom: 5px;
}
.hero-tagline {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-description {
  max-width: 300px;
  font-size: 12px;
  line-height: 1.8;
  color: #b9b4b1;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-actions .primary-link { flex: 1 1 auto; max-width: 240px; }
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid #3a2c2d;
  transition: color .25s, border-color .25s;
}
.resume-link svg { width: 13px; height: 13px; color: var(--accent); }
.resume-link:hover { color: var(--ink); border-color: var(--accent); }
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-location svg { width: 13px; height: 13px; color: var(--accent); }

/* Side / stats */
.hero-side {
  position: absolute;
  right: var(--gutter);
  bottom: 96px;
  z-index: 5;
  width: min(17%, 235px);
  animation: heroRise .9s .55s both;
}
.hero-manifesto {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.crosshair {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #72202a;
  border-radius: 50%;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
}
.hero-manifesto p {
  font-size: 11px;
  line-height: 1.65;
  color: #b0aaa7;
}
.hero-stats { border-top: 1px solid var(--line); }
.hero-stats > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.hero-stats .stat-value {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  min-width: 66px;
}
.hero-stats .stat-value span { font-size: 22px; line-height: 1; margin-top: 3px; }
.hero-stats .stat-value strong { font-weight: 400; font-family: inherit; }
.hero-stats p {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Bottom bar */
.hero-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  z-index: 6;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(0deg, var(--bg) 55%, rgba(9, 9, 9, .5));
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--ink);
  transition: color .25s;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-line {
  position: relative;
  display: block;
  width: 44px;
  height: 1px;
  background: #372a2b;
  overflow: hidden;
}
.scroll-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--accent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-18px); }
  100% { transform: translateX(46px); }
}
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  transition: color .25s;
}
.hero-availability:hover { color: var(--ink); }
.edition { color: #6f6968; }

/* Hero entrance */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroPortraitIn {
  from { opacity: 0; transform: translateX(-50%) translateY(26px) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(34px); letter-spacing: .01em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: -.035em; }
}
.hero-top { animation: heroRise .7s .1s both; }
.hero-giant { animation: heroTitleIn 1.2s .15s both; }
.hero-portrait { animation: heroPortraitIn 1.3s .25s both; }
.hero-bottom { animation: heroRise .8s .75s both; }
