/* =====================================================
   HERO
===================================================== */
.hero {
  --p: 0;                                  /* scroll progress 0 → 1 (set by JS) */
  position: relative;
  height: 100vh; height: 100svh; min-height: 660px;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.05), transparent 70%), var(--bg);
}


/* tilted golden arc (soft, ambient) */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  left: 97%; top: 49%;
  width: 220vw; height: 220vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #060607;
  box-shadow:
    0 -2px 0 0 rgba(255, 236, 170, .6),
    0 -10px 44px 2px rgba(242, 217, 138, .36),
    0 -40px 150px 24px rgba(242, 217, 138, .16);
}


.spot {                                    /* cursor spotlight */
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 35%), rgba(242,217,138,.15), rgba(242,217,138,.045) 45%, transparent 70%);
}

.grain {                                   /* film grain */
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* ---------- NAV ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 6vw, 110px);
}

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }

.brand svg { width: 38px; height: 38px; }

.links { display: flex; gap: clamp(22px, 3.6vw, 56px); font-size: .96rem; font-weight: 500; }

.links a { opacity: .9; position: relative; transition: opacity .2s, color .2s; }

.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }

.links a:hover { opacity: 1; color: var(--gold); }

.links a:hover::after { transform: scaleX(1); }


.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border: 1px solid rgba(242, 217, 138, .75); border-radius: 999px;
  font-weight: 500; font-size: .95rem; background: rgba(255,255,255,.02);
  transition: background .3s, color .3s, transform .3s, border-color .3s;
}

.btn-outline:hover { background: #f6e7bd; color: #0a0a0a; transform: translateY(-2px); }

.btn-outline svg,.btn-solid svg { transition: transform .3s var(--ease-out); }

.btn-outline:hover svg,.btn-solid:hover svg { transform: translate(3px, -3px); }


/* ---------- STAGE ---------- */
.stage { position: absolute; inset: 0; }


.role {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: max(104px, 12svh);
  display: flex; align-items: center; justify-content: center; gap: 28px;
  font-size: clamp(.72rem, 1.05vw, .95rem); font-weight: 500;
  letter-spacing: .55em; text-transform: uppercase; color: rgba(255,255,255,.9);
}

.role span { margin-right: -.55em; white-space: nowrap; }

.role::before,.role::after { content: ""; width: clamp(40px, 5.4vw, 86px); height: 1px; background: var(--line); }


.title {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: max(150px, 19svh);
  text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--display); font-weight: 800;
  font-size: var(--title-size, clamp(3rem, 11vw, 10rem));
  line-height: .95; letter-spacing: -.02em;
  transform: translate3d(0, calc(var(--p) * -70px), 0);
}

.title-in {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 8%, #8f8c85 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.45));
}


.photo-wrap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; pointer-events: none;
  transform-origin: 50% 100%;
  transform: translate3d(0, calc(var(--p) * 90px), 0) scale(calc(1 - var(--p) * .05));
}

.photo { position: relative; line-height: 0; }

.photo::before {                           /* warm backlight */
  content: ""; position: absolute; z-index: -1; inset: 0 -22% 0 -22%;
  background: radial-gradient(ellipse at 50% 38%, rgba(242,217,138,.2), rgba(242,217,138,.06) 42%, transparent 68%);
  filter: blur(22px);
}

.photo img {
  display: block; width: auto; max-width: 96vw;
  height: clamp(460px, 82svh, 940px);
  object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 99%);
          mask-image: linear-gradient(#000 70%, transparent 99%);
  filter: contrast(1.03) saturate(1.04) drop-shadow(0 0 2px rgba(255,205,120,.62)) drop-shadow(0 -1px 1px rgba(255,205,120,.32));
}


/* ---------- LEFT COPY ---------- */
.copy {
  position: absolute; z-index: 3;
  left: clamp(20px, 8.6vw, 160px); bottom: max(130px, 26svh);
  max-width: 340px;
  opacity: calc(1 - var(--p) * 1.8);
  transform: translate3d(0, calc(var(--p) * -40px), 0);
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.05); backdrop-filter: blur(8px);
  font-size: .85rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,224,90,.6); } 70% { box-shadow: 0 0 0 9px rgba(47,224,90,0); } 100% { box-shadow: 0 0 0 0 rgba(47,224,90,0); } }

.lede { position: relative; padding-left: 20px; margin-bottom: 28px; font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.5; }

.lede::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent); }


.btn-solid {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 34px; border-radius: 999px;
  background: linear-gradient(135deg, #fbf3df, #ecd29a);
  color: #0a0a0a; font-weight: 600; font-size: 1.02rem;
  transition: transform .3s, box-shadow .3s;
}

.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(242,217,138,.35); }

.btn-solid::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-20deg); transition: left .7s ease; }

.btn-solid:hover::after { left: 130%; }


/* ---------- SKILLS STRIP (running ticker, right to left) ---------- */
.skills {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; overflow: hidden;
  padding: 0 0 clamp(22px, 4svh, 44px);
  opacity: calc(1 - var(--p) * 2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.skills-track { display: flex; width: max-content; animation: skillsTick 40s linear infinite; will-change: transform; }

.skills:hover .skills-track { animation-play-state: paused; }

.skills-set { display: flex; flex: none; }

@keyframes skillsTick { to { transform: translate3d(-50%, 0, 0); } }
.skill { flex: none; display: flex; align-items: center; gap: 14px; padding: 6px clamp(26px, 3.6vw, 56px); border-left: 1px solid var(--line); font-size: .96rem; font-weight: 500; color: rgba(255,255,255,.92); white-space: nowrap; }

.skill svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

