/* Homepage hero sequence v2 (src/components/home-agency/v2/Sequence.jsx). Type sizes as the agency's hero. */
.v2 { --ease-out: cubic-bezier(.23, 1, .32, 1); position: relative; height: 560vh; background: #060607; }
.v2-stage { position: sticky; top: 0; height: 100lvh; min-height: 560px; overflow: hidden; isolation: isolate; }
.v2-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* hero copy */
.v2-hero { position: absolute; inset: 76px 0 122px; z-index: 3; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 16px; pointer-events: none; }
.v2-hero h1 { margin: 0; font-size: clamp(44px, 7.6vw, 124px); font-weight: 500; line-height: .98; letter-spacing: -.055em; color: #f3f1ee; }
.v2-row { display: block; white-space: nowrap; }
.v2-l, .v2-r, .v2-row.r2, .v2-sub { display: inline-block; will-change: transform, opacity; }
.v2-row.r2 { display: block; }
.v2-m { display: none; }
.v2-slot { display: inline-block; height: .8em; aspect-ratio: 16 / 9; vertical-align: -.07em; margin: 0 .07em; }
.v2-sub { display: block; margin: 28px 0 0; color: #d4d0cb; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.45; letter-spacing: 0; max-width: 46ch; }

/* word entrance on load: blur-rise, staggered (once) */
.v2-w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.32em);
  transition: opacity .7s var(--ease-out), filter .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.v2.in .v2-w { opacity: 1; filter: none; transform: none; }

/* claims strip */
.v2-claims { position: absolute; z-index: 3; left: max(4vw, calc((100vw - 1200px) / 2)); right: max(4vw, calc((100vw - 1200px) / 2)); bottom: 22px; height: 100px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff6ee; pointer-events: none; }
.v2-claims > div { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 26px; border-left: 1px solid rgba(255, 255, 255, .12); }
.v2-claims .t { display: block; }
.v2-claims .t > span, .v2-claims .n > span, .v2-claims .l > span { display: inline; }
.v2-claims > div:first-child { border-left: 0; padding-left: 0; }
.v2-claims .t { font-size: 15px; line-height: 1.42; color: #d4d0cb; max-width: 34ch; }
.v2-claims .n { font: 400 28px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.v2-claims .l { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff6eecc; }

/* the feed */
.v2-shot { position: absolute; left: 0; top: 0; z-index: 4; overflow: hidden; background: #000; transform-origin: 0 0; will-change: transform, width, height;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; }
.v2-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-shot .tag { position: absolute; top: 9%; right: 6%; display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 4px; background: rgba(8, 9, 10, .62);
  font: 500 clamp(7px, .62vw, 10px)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.v2-shot .tag i { width: 5px; height: 5px; border-radius: 50%; background: #FF5B1F; }

/* counter over the wall */
.v2-lock { position: absolute; z-index: 5; left: 0; right: 0; top: 50%; display: grid; justify-items: center; gap: 14px; padding: 0 16px; text-align: center; pointer-events: none; visibility: hidden; opacity: 0; }
.v2-lock .n { font: 400 clamp(46px, 5.6vw, 88px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #f3f1ee; text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }
.v2-lock h3 { margin: 0; font-size: clamp(30px, 3.4vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; color: #f3f1ee; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.v2-lock::before { content: ""; position: absolute; inset: -30% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(6, 6, 7, .82), rgba(6, 6, 7, .5) 55%, transparent); }

/* console scene */
.v2-xp { position: absolute; z-index: 6; opacity: 0; pointer-events: none; }
.v2-xp.side h2 .b { display: block; }
.v2-xp.side p { max-width: 30ch; }
.v2-console { position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.v2-console .scr.pic { opacity: 0; }

/* film layer (Edge / ghost.ai technique): grain always faint; scanlines + sweep only in b */
.v2-film { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.v2-film::before { content: ""; position: absolute; inset: 0; opacity: .08; background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -0.5 0.32'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E"); }
.v2-film i, .v2-film b { display: none; }
.v2[data-opt="b"] .v2-film::before { opacity: .2; }
.v2[data-opt="b"] .v2-film i { display: block; position: absolute; inset-inline: 0; top: 0; height: calc(100% + 4px); background-image: repeating-linear-gradient(rgba(255, 236, 224, .03) 0 1px, transparent 1px 4px); animation: v2-drift 1.5s linear infinite; }
.v2[data-opt="b"] .v2-film b { display: block; position: absolute; inset: 0; background-image: repeating-linear-gradient(rgba(255, 236, 224, .09) 0 1px, transparent 1px 4px);
  -webkit-mask-image: linear-gradient(transparent 34%, #000 50%, transparent 66%); mask-image: linear-gradient(transparent 34%, #000 50%, transparent 66%); animation: v2-sweep 10s linear -2.5s infinite; }
@keyframes v2-drift { to { transform: translateY(-4px); } }
@keyframes v2-sweep { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* b: the channel-switch band, driven by scroll */
.v2-band { position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: 7; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(rgba(255, 240, 230, .16) 0 1px, transparent 1px 4px), linear-gradient(transparent, rgba(255, 236, 224, .06) 50%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 45%, #000 55%, transparent); mask-image: linear-gradient(transparent, #000 45%, #000 55%, transparent); }
/* b: one warm lamp under the hero, part of the hero: it leaves with it */
.v2-lamp { position: absolute; z-index: 0; left: 50%; bottom: -38vh; width: min(1500px, 130vw); height: 80vh; transform-origin: 50% 100%; margin-left: max(-750px, -65vw);
  background: radial-gradient(50% 50% at 50% 50%, rgba(236, 85, 18, .55), rgba(236, 85, 18, .18) 45%, transparent 72%); filter: blur(10px); pointer-events: none; }

@media (max-width: 759px) {
  .v2-hero { inset: 68px 0 108px; }
  .v2-row.r1 { white-space: normal; }
  .v2-m { display: inline; }
  .v2-claims { left: 16px; right: 16px; bottom: 14px; height: 94px; grid-template-columns: repeat(3, 1fr); }
  .v2-claims .t { display: none; }
  .v2-claims > div { padding: 0 12px; }
  .v2-claims > div:nth-child(2) { border-left: 0; padding-left: 0; }
  .v2-claims .n { font-size: 23px; }
  .v2-claims .l { font-size: 9px; letter-spacing: .08em; line-height: 1.3; }
  .v2-lock .n { font-size: 11.4vw; }
  .v2-lock h3 { font-size: 8vw; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-w { transition: opacity .3s ease; filter: none; transform: none; }
  .v2-film i, .v2-film b { animation: none; }
}
