/* ==========================================================================
   Homepage hero, Nov 2026.
   The first screen does three jobs: who (Bobby, a face and a name), what
   (real color work, big), and one warm way in (Tell Me Your Idea).
   Built on the skull + pet page kit: drip headline, aurora word, spaced-caps
   place line, deep-ink window, Bobby's mirror shape (big round corner top-left
   and bottom-right), glass buttons. Bobby picked this look (A) on Nov 19.
   ========================================================================== */

/* ---------- Reset the old two-column hero ---------- */
body.v2 .hero.hh { display: block; padding: 0; gap: 0; min-height: 0; background: transparent; overflow: visible; }
body.v2 .hh .hh-a { display: grid; }
body.v2 .hh ~ #selected-work { padding-top: 112px; }

/* ---------- Shared pieces ---------- */
.hh-copy { position: relative; z-index: 3; min-width: 0; }

/* who: a real face and a name before anything else */
body.v2 .hh .hh-who { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 30px; max-width: none; }
.hh-who__face {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  padding: 2px; background: linear-gradient(135deg, #9C86FF, #5B7CFF 50%, #22B8B3);
  box-shadow: 0 8px 24px -10px rgba(91, 92, 246, .7);
}
.hh-who__text { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; }
.hh-who__text b { font-family: var(--v2-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--v2-ink); }
.hh-who__text span { font-family: var(--v2-body); font-weight: 700; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--v2-muted); }

/* headline: same build as the skull + pet pages */
body.v2 .hh .hh-h1 { margin: 0; max-width: none; font-family: var(--v2-display); font-weight: 600; color: var(--v2-ink); text-shadow: none; font-size: clamp(46px, 5.5vw, 84px); line-height: .98; letter-spacing: -.035em; }
.hh-h1__a { display: block; }
body.v2 .hh .hh-h1 em { display: inline-block; font-style: normal; white-space: nowrap; }
body.v2 .hh .hh-h1__sub {
  display: block; margin-top: 44px; font-family: var(--v2-body); font-weight: 700; font-size: 14px; line-height: 1.2;
  letter-spacing: .24em; text-transform: uppercase; color: var(--v2-ink-2);
}
.hh-h1__sub::before { content: ''; display: inline-block; vertical-align: middle; width: 34px; height: 2px; margin: -2px 14px 0 0; border-radius: 2px; background: linear-gradient(90deg, #9C86FF, #7FD3FF); }

body.v2 .hh .hh-lede { margin: 26px 0 0; max-width: 34ch; font-size: 18.5px; line-height: 1.55; color: var(--v2-ink-2); }
.hh-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
body.v2 .hh .hh-proof { margin: 26px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; font-weight: 500; color: var(--v2-muted); max-width: none; }
.hh-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hh-proof span + span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--v2-aurora); }
.hh-proof .hh-live { color: var(--v2-ink); font-weight: 700; }
.hh-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2BD4A4; box-shadow: 0 0 0 4px rgba(43, 212, 164, .18); }
@media (prefers-reduced-motion: no-preference) { .hh-live::before { animation: v2-pulse 2.6s ease-in-out infinite; } }

/* deep-ink room: light type, glass ghost button */
.hh-a { --v2-ink: #F3F4FA; --v2-ink-2: rgba(236, 240, 255, .82); --v2-muted: rgba(214, 220, 245, .66); }
body.v2 .hh .hh-a .hh-h1 { color: #fff; }
body.v2 .hh .hh-a .hero__cta-ghost { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hh-copy > :not(.hh-h1) { animation: hh-rise 1s var(--v2-ease) both; }
  .hh-copy > .hh-who { animation-delay: 0s; }
  .hh-copy > .hh-lede { animation-delay: .35s; }
  .hh-copy > .hh-actions { animation-delay: .45s; }
  .hh-copy > .hh-proof { animation-delay: .55s; }
}
@keyframes hh-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

/* the reel: slides cross-fade, each one slowly settles while it's on */
.hh-reel { position: relative; }
.hh-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--v2-ease), visibility 0s linear 1.2s; }
.hh-slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--v2-ease), visibility 0s; z-index: 1; }
.hh-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hh-slide img { scale: 1.1; transition: scale 7s cubic-bezier(.2, .6, .2, 1); }
  .hh-slide.is-on img { scale: 1; }
}

/* story bars: which piece you're on, and how long until the next */
.hh-bars { display: flex; gap: 6px; }
.hh-bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; cursor: pointer; }
.hh-bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #C2B4FF, #93B2FF, #A8EEFF); transform-origin: left center; scale: 0 1; }
.hh-bar.is-done i { scale: 1 1; }
.hh-bar.is-on i { animation: hh-fill var(--hh-dwell, 5.5s) linear both; }
.hh-paused .hh-bar.is-on i { animation-play-state: paused; }
@keyframes hh-fill { to { scale: 1 1; } }

/* ==========================================================================
   The window
   ========================================================================== */
body.v2 .hh .hh-a {
  margin: 96px 12px 0; padding: 64px var(--v2-gutter) 64px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px;
  min-height: min(780px, calc(100svh - 108px));
}
body.v2 .hh .hh-a::after { left: -8%; right: auto; bottom: -50%; width: min(48vw, 600px); opacity: .75; }
.hh-a .hh-stage { position: relative; z-index: 2; justify-self: end; width: min(100%, 470px); }
.hh-a .hh-stage::before {
  content: ''; position: absolute; inset: -12% -16% -8% -20%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(122, 92, 255, .38), transparent) 0 0 / 70% 70% no-repeat,
    radial-gradient(closest-side, rgba(34, 184, 179, .34), transparent) 100% 100% / 70% 70% no-repeat;
  filter: blur(18px);
}
.hh-a .hh-reel {
  aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  border-radius: 34% 16px 34% 16px / 27% 16px 27% 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 50px 100px -40px var(--glow, #5B5CF6), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: box-shadow 1.4s var(--v2-ease);
}
.hh-slide__tag {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; white-space: nowrap; padding: 9px 15px; border-radius: 999px;
  font: 700 11.5px/1 var(--v2-body); letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(10, 12, 26, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: background .3s;
}
.hh-slide:hover .hh-slide__tag { background: rgba(10, 12, 26, .82); }
.hh-a .hh-bars { margin: 20px auto 0; width: 62%; }
.hh-a .hh-chip {
  position: relative; z-index: 3; display: table; margin: 18px auto 0; padding: 11px 16px; border-radius: 999px;
  font: 600 13px/1 var(--v2-body); color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 18px 40px -18px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  transition: translate .5s var(--v2-spring);
}
.hh-a .hh-chip b { font-weight: 700; color: #A8EEFF; }
.hh-a .hh-chip:hover { translate: 0 -3px; }
@media (prefers-reduced-motion: no-preference) {
  .hh-a .hh-stage { animation: hh-stage-in 1.3s var(--v2-ease) .15s both; }
  .hh-a .hh-chip { animation: hh-rise 1s var(--v2-ease) .9s both; }
}
@keyframes hh-stage-in { from { opacity: 0; translate: 0 40px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ==========================================================================
   In between: tablets and small laptops
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 769px) {
  body.v2 .hh .hh-a { gap: 28px; }
  body.v2 .hh .hh-h1 { font-size: clamp(42px, 5.6vw, 64px); }
}

/* ==========================================================================
   Phones: the work comes first, then the name, the headline, the button.
   Everything that matters fits on the first screen.
   ========================================================================== */
@media (max-width: 768px) {
  body.v2 .hh ~ #selected-work { padding-top: 84px; }
  body.v2 .hh .hh-h1 { font-size: clamp(40px, 11.6vw, 54px); }
  body.v2 .hh .hh-h1__sub { margin-top: 34px; font-size: 12px; letter-spacing: .2em; }
  .hh-h1__sub::before { width: 24px; margin-right: 10px; }
  body.v2 .hh .hh-who { gap: 11px; margin-bottom: 18px; }
  .hh-who__face { width: 40px; height: 40px; }
  .hh-who__text b { font-size: 16.5px; }
  .hh-who__text span { font-size: 10.5px; letter-spacing: .13em; }
  body.v2 .hh .hh-lede { font-size: 16px; margin-top: 18px; }
  .hh-actions { margin-top: 22px; flex-direction: column; gap: 10px; }
  .hh-actions a { width: 100%; justify-content: center; text-align: center; }
  body.v2 .hh .hh-proof { margin-top: 18px; gap: 6px 14px; font-size: 13px; }
  .hh-proof span:last-child { display: none; }

  /* the reel becomes a wide band at the top of the window */
  body.v2 .hh .hh-a { margin: 88px 8px 0; padding: 14px 14px 28px; grid-template-columns: 1fr; gap: 22px; min-height: 0; border-radius: 26px; }
  .hh-a .hh-stage { order: -1; justify-self: stretch; width: auto; }
  .hh-a .hh-stage::before { inset: -6% -10% -30% -10%; }
  .hh-a .hh-reel { aspect-ratio: 4 / 3; border-radius: 30% 12px 30% 12px / 40% 12px 40% 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 26px 50px -26px var(--glow, #5B5CF6); }
  .hh-a .hh-slide img { object-position: 50% 38%; }
  .hh-a .hh-bars { width: 50%; margin-top: 12px; }
  .hh-a .hh-chip { display: none; }
  .hh-slide__tag { left: 16px; translate: none; bottom: 14px; padding: 7px 11px; font-size: 10.5px; }
  .hh-a .hh-copy { padding: 0 8px; }
  .hh-a .hh-lede { display: none; }

}

/* The window sits on its own above the gallery room: leave a little air between them */
body.v2 .hh ~ #selected-work { margin-top: 14px; }
@media (max-width: 768px) { body.v2 .hh ~ #selected-work { margin-top: 10px; } }
