/* ============================================
   HERO v3 — portrait + two discipline cards
   Live on index.html (approved 2026-09-24). Loaded after hero.css + hero-v2.css:
   the headline, swoosh and scroll-cue base come from v2, everything else
   is scoped to .hero--v3 / .page-v3.

   One .v3-stage on the right holds: lime glow + streaks → slash lines →
   three cards ("3D & Motion", "Branding", "Web & Apps") → portrait on top,
   so every card sits behind her and peeks out beside her.
   Each sits in a .hero-plane (pointer parallax from hero-scene.js);
   cards nest .v3-in (entrance) → .v3-float (idle bob).
   Image notes: assets/hero-v3/README.md
============================================ */

.hero--v3{ background: #040404; }

/* ---- Atmosphere ---- */
.v3-atmos{
  background:
    radial-gradient(60% 55% at 72% 60%, rgba(120,190,20,.14), transparent 70%),
    radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(0,0,0,.6) 100%);
}
.v3-atmos::after{   /* page fade at the base */
  content:''; position:absolute; inset:auto 0 0 0; height: 16%;
  background: linear-gradient(0deg, var(--bg), transparent);
}

/* ---- Stage ---- */
.v3-stage{
  position:absolute; z-index: 5; top:0; bottom:0; right:0;
  width: 60%;
  pointer-events: none;
}
.v3-plane{ perspective: 1400px; }

/* lime light behind her head */
.v3-glow{
  position:absolute; left: 60%; top: 56%; width: 96%; aspect-ratio: 1;
  transform: translate(-50%,-50%);
  background:
    radial-gradient(closest-side, rgba(198,255,62,.62), rgba(170,240,40,.3) 38%, rgba(120,190,20,.1) 62%, transparent 80%);
  filter: blur(12px);
  opacity:0; transition: opacity 2s ease .6s;
  animation: v3Breathe 8s ease-in-out infinite;
}
/* floor bloom under her shoulders */
.v3-glow::after{
  content:""; position:absolute; left: 10%; right: -30%; top: 78%; height: 45%;
  background: radial-gradient(closest-side, rgba(198,255,62,.5), transparent);
  filter: blur(20px);
}
.hero--v3.is-live .v3-glow{ opacity:1; }
@keyframes v3Breathe{ 0%,100%{ transform: translate(-50%,-50%) scale(1); } 50%{ transform: translate(-50%,-50%) scale(1.05); } }

/* long light streaks behind the cards */
.v3-streak{
  position:absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(198,255,62,.95) 45%, rgba(230,255,160,1) 55%, transparent);
  box-shadow: 0 0 14px rgba(198,255,62,.8);
  opacity:0; transition: opacity 1.4s ease 1.8s;
}
.v3-streak--a{ left: -6%; top: 70%; width: 46%; transform: rotate(-24deg); }
.v3-streak--b{ right: -8%; top: 78%; width: 50%; transform: rotate(-18deg); }
.hero--v3.is-live .v3-streak{ opacity:.85; }

/* two diagonal slashes at the right edge */
.v3-slash{ position:absolute; right: 2%; top: 14%; width: 10%; aspect-ratio: 1; }
.v3-slash i{
  position:absolute; left:0; top:50%; width:140%; height: 4px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 16px rgba(198,255,62,.7);
  transform: rotate(-42deg) scaleX(0); transform-origin: right center;
  transition: transform 1.1s cubic-bezier(.16,.84,.3,1) 1.5s;
}
.v3-slash i:nth-child(2){ top: 76%; left: 12%; transition-delay: 1.65s; }
.hero--v3.is-live .v3-slash i{ transform: rotate(-42deg) scaleX(1); }

/* portrait: wide chest-up cut-out, anchored to the hero floor */
.v3-portrait{ position:absolute; right: -16%; bottom: 0; width: 112%; aspect-ratio: 1286 / 994; }
.v3-portrait img{
  position:absolute; inset:0; width:100%; height:100%; max-width:none;
  /* lime rim hugging her silhouette, then a soft dark drop */
  filter: drop-shadow(0 0 2px rgba(198,255,62,.55)) drop-shadow(0 0 26px rgba(198,255,62,.38)) drop-shadow(-30px 20px 50px rgba(0,0,0,.55));
}

/* ---- Cards ---- */
.v3-card{ position:absolute; transform-style: preserve-3d; }
.v3-in, .v3-float{ position:absolute; inset:0; display:block; }
.v3-card .v3-float{
  overflow:hidden; border-radius: 14px;
  background: #0c0c0c;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.85), 0 0 0 1.5px rgba(198,255,62,.6), 0 0 50px -4px rgba(198,255,62,.5);
  animation: v3Float 9s ease-in-out infinite;
}
.v3-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; max-width:none; }
.v3-card .v3-float::after{   /* glass sheen + base scrim for the label */
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 45%);
}
.v3-card-label{
  position:absolute; z-index:2; left: 9%; bottom: 10%;
  font-family: var(--font-display); font-weight:700; font-size: clamp(.58rem, .78vw, .78rem);
  letter-spacing:.2em; text-transform:uppercase; color: var(--fg);
}
.v3-card-label i{ display:block; width: 26px; height: 3px; margin-top: 8px; background: var(--accent); border-radius:2px; }

.v3-card--motion{ left: -4%; top: 52%; width: 24%; aspect-ratio: 1136 / 1408;
  transform: rotateY(24deg) rotateZ(-6deg); }
.v3-card--dev   { left: 13%; top: 15%; width: 19%; aspect-ratio: 1136 / 1408;
  transform: rotateY(20deg) rotateZ(5deg); }
.v3-card--brand { right: -3%; top: 40%; width: 27%; aspect-ratio: 1408 / 1136;
  transform: rotateY(-24deg) rotateZ(-7deg); }
.v3-card--brand .v3-float{ animation-duration: 11s; animation-delay: -4s; }
.v3-card--dev .v3-float{ animation-duration: 10s; animation-delay: -7s; }

/* ---- Copy ---- */
.hero--v3 .hero-inner{ max-width: min(660px, 42vw); }
.hero--v3 .hero-title{ font-size: clamp(3rem, 7.2vw, 7.4rem); }
.hero--v3 .eyebrow{ color: rgba(244,244,239,.82); letter-spacing:.26em; }
.hero--v3 .hero-sub{ max-width: 380px; font-size: clamp(1rem, 1.3vw, 1.2rem); color: rgba(244,244,239,.78); margin-bottom: 40px; }
.hero--v3 .btn-lg{ letter-spacing:.2em; padding: 19px 34px; gap: 16px; }
.hero--v3 .btn-lg svg{ color: var(--accent); }

/* text link, used by the work section footer */
.v3-link{
  display:inline-flex; align-items:center; gap: 20px;
  font-family: var(--font-display); font-size:.82rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color: var(--fg);
}
.v3-link span{ position:relative; padding-bottom: 10px; }
.v3-link span::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background: var(--accent);
  transform-origin:left; transition: transform .5s var(--ease); }
.v3-link:hover span::after{ transform: scaleX(.35); }
.v3-link svg{ color: var(--accent); transition: transform .4s var(--ease); }
.v3-link:hover svg{ transform: translate(4px,-4px); }

/* ---- Scroll cue: bottom-left, under the copy ---- */
.hero--v3 .v3-scroll{
  left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: 30px; transform:none; padding: 0;
  align-items:flex-start; gap: 14px;
}
.v3-scroll .hero-scroll-track{ margin-left: 4px; height: 44px; }
.v3-scroll-row{ display:flex; align-items:center; gap: 16px; }
.v3-scroll-row i{ width:9px; height:9px; border-radius:50%; background: var(--accent); box-shadow: 0 0 10px rgba(198,255,62,.6); }
.hero--v3 .hero-scroll-label{ font-size:.7rem; letter-spacing:.24em; color: rgba(244,244,239,.75); }

/* ---- Entrance: portrait rises, cards arrive after the headline ---- */
.hero--v3 .v3-in{ opacity:0; transform: translate3d(0, 60px, -180px); }
.hero--v3 .v3-portrait .v3-in{ transform: translate3d(0, 50px, 0); }
.hero--v3.is-live .v3-in{
  opacity:1; transform:none;
  transition: opacity 1.2s ease var(--d, 1s), transform 1.6s cubic-bezier(.16,.84,.3,1) var(--d, 1s);
}

@keyframes v3Float{ 0%,100%{ transform: translate3d(0,-6px,0); } 50%{ transform: translate3d(0,6px,0); } }
.hero--v3.is-offscreen *{ animation-play-state: paused; }

/* ---- Header additions (body.page-v3) ---- */
.page-v3 .v3-header-right{ display:flex; align-items:center; gap: 32px; }
.v3-avail{
  display:inline-flex; align-items:center; gap: 12px;
  font-family: var(--font-display); font-size:.72rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(244,244,239,.72); white-space:nowrap;
}
.v3-avail i{ position:relative; width:9px; height:9px; border-radius:50%; background: var(--accent); }
.v3-avail i::after{ content:''; position:absolute; inset:0; border-radius:50%; background: var(--accent); animation: v3Pulse 2.4s ease-out infinite; }
@keyframes v3Pulse{ 0%{ transform:scale(1); opacity:.7; } 100%{ transform:scale(3); opacity:0; } }

/* ============================================
   Responsive
============================================ */
@media (max-width: 1240px){
  .v3-avail{ display:none; }
}

@media (max-width: 1080px){
  .v3-stage{ width: 62%; }
  .hero--v3 .hero-inner{ max-width: min(470px, 46vw); }
  .hero--v3 .hero-title{ font-size: clamp(3rem, 7.6vw, 5.4rem); }
  .hero--v3 .eyebrow{ font-size:.66rem; letter-spacing:.16em; }
}

/* Tablet portrait & phones: copy on top, portrait band underneath */
@media (max-width: 820px){
  .hero--v3{ min-height:auto; justify-content:flex-start; padding-top: 118px; padding-bottom: 0; }
  .hero--v3 .hero-inner{ max-width:100%; }
  .v3-stage{ position:relative; order: 1; width:auto; height: min(118vw, 720px); margin: 8px calc(var(--gutter) * -1) 0; }   /* markup puts it first */
  .v3-portrait{ right: -30%; width: 124%; }
  .v3-glow{ top: 46%; width: 110%; }
  .v3-slash{ top: 42%; right: 0; width: 16%; }
  .v3-card--motion{ left: 1%; top: 48%; width: 28%; }
  .v3-card--dev{ left: 3%; top: 6%; width: 24%; }
  .v3-card--brand{ right: 2%; top: 4%; width: 38%; }
  .v3-card .v3-float{ border-radius: 10px; }
  .v3-card-label{ font-size: .46rem; letter-spacing:.12em; top: 9%; bottom: auto; left: 8%; white-space: nowrap; }   /* her hair covers the lower edges here */
  .v3-card .v3-float::after{ background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 30%), linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 45%); }
  .v3-card-label i{ width: 20px; height: 2px; margin-top: 6px; }
  .hero--v3 .v3-scroll{ display:none; }
  .hero--v3 .hero-sub{ max-width: 420px; }
}

/* Phones: fit headline, button AND her face into the first screen
   (~412×670 visible on a standard phone), like the approved reference. */
@media (max-width: 640px){
  .hero--v3{ padding-top: 80px; }
  .hero--v3 .eyebrow{ font-size:.58rem; letter-spacing:.12em; margin-bottom: 12px; }
  .hero--v3 .eyebrow .rule{ width:24px; margin-right:12px; }
  .hero--v3 .hero-title{ font-size: clamp(2.9rem, 15vw, 4.2rem); line-height: .87; margin-bottom: 14px; }
  .hero--v3 .hero-sub{ font-size: .94rem; line-height: 1.38; margin-bottom: 18px; }
  .hero--v3 .btn-lg{ padding: 12px 22px; font-size: .74rem; letter-spacing:.16em; }
  .v3-plane{ perspective: 900px; }

  /* portrait band starts right under the button */
  .v3-stage{ height: 104vw; margin-top: -38px; }
  .v3-portrait{ right: -24%; width: 120%; }
  .v3-glow{ top: 50%; left: 58%; width: 120%; }
  /* slashes sit level with the button, top-right */
  .v3-slash{ top: -6%; right: 0; width: 17%; }
  .v3-card--dev   { left: 1%;  top: 15%; width: 17%; }
  .v3-card--motion{ left: 2%; top: 52%; width: 19%; }
  .v3-card--brand { right: -2%; top: 34%; width: 28%; }
  .v3-card--brand .v3-card-label{ left: auto; right: 12%; text-align: right; }   /* left edge sits behind her cheek */
  .v3-card--brand .v3-card-label i{ margin-left: auto; }
}

@media (prefers-reduced-motion: reduce){
  .hero--v3 .v3-in{ opacity:1; transform:none; transition:none; }
  .hero--v3 .v3-float, .v3-avail i::after{ animation:none; }
  .v3-glow{ opacity:1; transition:none; }
  .v3-slash i{ transform: rotate(-42deg) scaleX(1); transition:none; }
}
