/* The homepage hero, "the idea bursts into film" (2026-12-03), and the screening after it. An idea types itself into the
   real idea box, the four making steps tick, and the finished film bursts out of the box to fill the screen behind the
   headline. Anyone can click in and type their own. Further down, the screening: a small screen rises, tears through
   its headline and locks full size. Pairs with home-burst.js; sits on top of home3.css (body.h3 tokens). */

body.hb2-page { --hb2-head: 69px; --hb2-ease: cubic-bezier(.16, 1, .3, 1); --hb2-pad: clamp(18px, 4vw, 56px); }
/* The header floats clear over the film until the page scrolls. */
body.hb2-page .top:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- The hero ---------- */
.hb2 { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center;
  min-height: 100vh; min-height: 100svh; margin-top: calc(-1 * var(--hb2-head)); background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(226, 180, 90, .09), transparent 70%), var(--ground); }
.hb2-films { position: absolute; inset: 0; z-index: 0; }
.hb2-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  clip-path: inset(var(--ct, 50%) var(--cr, 50%) var(--cb, 50%) var(--cl, 50%) round 22px); }
.hb2-film.front { z-index: 2; opacity: 1; }
.hb2-film.back { z-index: 1; opacity: 1; clip-path: inset(0 0 0 0 round 0); }
.hb2-film.open { clip-path: inset(0 0 0 0 round 0); transition: clip-path 1.05s cubic-bezier(.7, 0, .15, 1); }
.hb2-film.flashed { animation: hb2pop 1.2s ease-out; }
@keyframes hb2pop { 0% { filter: brightness(2.1) saturate(1.3) } 100% { filter: none } }
/* The film breathes: a slow push in while it plays. */
.hb2-film.back { animation: hb2push 12s linear both; }
@keyframes hb2push { from { transform: scale(1.06) } to { transform: scale(1) } }
.hb2-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(ellipse 62% 58% at 50% 48%, rgba(11, 11, 12, .62), rgba(11, 11, 12, .2) 72%), linear-gradient(180deg, rgba(11, 11, 12, .7), transparent 22%, transparent 66%, rgba(11, 11, 12, .96)); }
.hb2.has-film .hb2-shade { opacity: 1; }
.hb2-burst, .hb2-sr-burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hb2-burst i, .hb2-sr-burst i { position: absolute; left: var(--x); top: var(--y); width: var(--len); height: var(--th); margin-top: calc(var(--th) / -2); border-radius: 9px; transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, var(--c) 55%, #fff); opacity: 0; transform: rotate(var(--a)) translateX(var(--from)) scaleX(.15); animation: hb2streak var(--t) cubic-bezier(.2, .7, .3, 1) var(--d) forwards; }
@keyframes hb2streak { 15% { opacity: 1 } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--to)) scaleX(1) } }

.hb2-inner { position: relative; z-index: 4; width: 100%; max-width: 1460px; padding: calc(var(--hb2-head) + 56px) var(--hb2-pad) 120px; display: flex; flex-direction: column; align-items: center; }
.hb2-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px !important; padding: 7px 14px; border-radius: 999px; font: 600 12px/1 var(--h3-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2) !important; background: rgba(11, 11, 12, .45); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-hi) inset; opacity: 0; animation: hb2up .9s var(--hb2-ease) .05s forwards; }
.hb2-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--h3-red); box-shadow: 0 0 8px var(--h3-red); animation: hb2blink 1.2s steps(1) infinite; }
@keyframes hb2blink { 50% { opacity: .25 } }
.hb2 h1 { margin: 0; font-size: clamp(46px, 7.6vw, 132px) !important; line-height: .94 !important; letter-spacing: -.05em !important; text-shadow: 0 6px 50px rgba(0, 0, 0, .55); }
.hb2-l { display: block; opacity: 0; transform: translateY(.45em); filter: blur(10px); animation: hb2line 1.1s var(--hb2-ease) forwards; }
.hb2-l + .hb2-l { animation-delay: .14s; }
.hb2 h1 em { font-style: normal; color: var(--h3-gold); }
@keyframes hb2line { to { opacity: 1; transform: none; filter: blur(0) } }
@keyframes hb2up { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@media (min-width: 1001px) { .hb2-l { white-space: nowrap; } }

/* The idea box: a real form. The demo types into it; clicking in hands it over. */
.hb2-box { position: relative; display: flex; align-items: center; gap: 12px; width: min(780px, 100%); min-height: 72px; margin-top: 44px; padding: 10px 10px 10px 18px; border-radius: 20px; text-align: left;
  background: rgba(18, 18, 21, .74); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 30px 80px -20px rgba(0, 0, 0, .8); opacity: 0; animation: hb2up .9s var(--hb2-ease) .35s forwards; transition: transform .25s var(--hb2-ease), box-shadow .4s; }
/* A gold light runs round the box while it is "thinking". */
.hb2-box::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 21.5px; padding: 1.5px; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--hb2-spin, 0deg), transparent 0 62%, rgba(226, 180, 90, .2) 72%, #f6d58a 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hb2-box.making::before { opacity: 1; animation: hb2spin 1.1s linear infinite; }
@property --hb2-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hb2spin { to { --hb2-spin: 360deg } }
.hb2-box:focus-within { box-shadow: 0 0 0 1.5px var(--h3-gold) inset, 0 0 0 6px rgba(226, 180, 90, .12), 0 30px 80px -20px rgba(0, 0, 0, .8); }
.hb2-box.fire { transform: scale(.985); box-shadow: 0 0 0 1.5px var(--h3-gold) inset, 0 0 0 10px rgba(226, 180, 90, .14), 0 0 70px rgba(226, 180, 90, .5); }
.hb2-tag { flex: none; padding: 6px 9px; border-radius: 6px; background: var(--h3-gold); color: var(--h3-gold-ink); font: 700 11px/1 var(--h3-mono); letter-spacing: .12em; text-transform: uppercase; }
.hb2-box input { flex: 1; min-width: 0; height: 52px; padding: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 500 clamp(16px, 1.4vw, 20px)/1.2 "Inter", system-ui, sans-serif; text-overflow: ellipsis; }
.hb2-box input::placeholder { color: rgba(255, 255, 255, .5); }
.hb2-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer; background: var(--h3-gold); color: var(--h3-gold-ink);
  font: 650 16px/1 "Inter", system-ui, sans-serif; box-shadow: 0 1px 0 rgba(255, 240, 200, .6) inset, 0 12px 34px -10px rgba(226, 180, 90, .6); transition: transform .2s var(--hb2-ease), background .2s; }
.hb2-go:hover { background: #f0c66e; transform: translateY(-1px); }
.hb2-go.press { transform: scale(.93); }
.hb2-go b { font-weight: 700; transition: transform .2s; }
.hb2-go:hover b { transform: translateX(3px); }

/* The four making steps tick under the box, then the film arrives. */
.hb2-steps { display: flex; justify-content: center; gap: 22px; height: 26px; margin: 18px 0 0; padding: 0; list-style: none; font: 600 12px/26px var(--h3-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.hb2-steps li { display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--hb2-ease), color .3s; }
.hb2-steps.show li { opacity: 1; transform: none; }
.hb2-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .3) inset; transition: background .25s, box-shadow .25s; }
.hb2-steps li.done { color: #fff; }
.hb2-steps li.done::before { background: var(--h3-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%2317130a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 12px rgba(226, 180, 90, .6); }
.hb2-steps.now { color: rgba(255, 255, 255, .75); }

/* Try one: each chip plays that film. */
.hb2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; opacity: 0; animation: hb2up .9s var(--hb2-ease) .55s forwards; }
.hb2-chips span { align-self: center; margin-right: 4px; font: 600 12px/1 var(--h3-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hb2-chips button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; font: 500 14px/1 "Inter", system-ui, sans-serif; color: var(--ink);
  background: rgba(18, 18, 21, .6); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; transition: background .2s, color .2s, box-shadow .2s; }
.hb2-chips button:hover { background: rgba(255, 255, 255, .12); }
.hb2-chips button.on { background: rgba(226, 180, 90, .16); color: #f6d58a; box-shadow: 0 0 0 1px rgba(226, 180, 90, .6) inset; }
.hb2 .h3-fine { margin: 20px 0 0; font-size: 13.5px; color: rgba(239, 232, 220, .62) !important; opacity: 0; animation: hb2up .9s var(--hb2-ease) .65s forwards; }

/* Now playing, bottom left, with the film's own progress. */
.hb2-now { position: absolute; z-index: 4; left: var(--hb2-pad); bottom: 30px; display: flex; flex-direction: column; gap: 8px; width: min(300px, 40vw); text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--hb2-ease); }
.hb2-now.show { opacity: 1; transform: none; }
.hb2-now p { display: flex; align-items: baseline; gap: 10px; margin: 0 !important; color: #fff !important; font-size: 14px; }
.hb2-now b { font-weight: 700; }
.hb2-now small { font: 700 11px/1 var(--h3-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--h3-gold); }
.hb2-now i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hb2-now i::after { content: ""; display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: var(--h3-gold); box-shadow: 0 0 10px rgba(226, 180, 90, .8); }
.hb2-sound { position: absolute; z-index: 4; right: var(--hb2-pad); bottom: 26px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(18, 18, 21, .6); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; color: #fff; font: 500 13.5px/1 "Inter", system-ui, sans-serif; opacity: 0; transition: opacity .5s; }
.hb2.has-film .hb2-sound { opacity: 1; }
.hb2-sound[hidden] { display: none; }
.hb2-sound .ic { width: 16px; height: 16px; }
.hb2-sound[aria-pressed="true"] { background: rgba(226, 180, 90, .18); box-shadow: 0 0 0 1px rgba(226, 180, 90, .6) inset; color: #f6d58a; }
.hb2-cue { position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 1.5px; height: 40px; transform: translateX(-50%); background: linear-gradient(rgba(255, 255, 255, .6), transparent); overflow: hidden; }
.hb2-cue::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--h3-gold); animation: hb2cue 1.8s var(--hb2-ease) infinite; }
@keyframes hb2cue { to { top: 100% } }

/* ---------- The screening: a small screen rises, tears through its headline and opens to full size ---------- */
.hb2-sr { position: relative; height: 260vh; }
.hb2-sr-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(226, 180, 90, .08), transparent 70%), var(--ground); }
.hb2-sr-stage.jolt { animation: hb2jolt .42s cubic-bezier(.3, .7, .4, 1); }
@keyframes hb2jolt { 0% { translate: 0 0 } 18% { translate: -7px 5px } 36% { translate: 6px -4px } 54% { translate: -4px 2px } 72% { translate: 2px -1px } 100% { translate: 0 0 } }
.hb2-sr-glow { position: absolute; z-index: 2; pointer-events: none; border-radius: var(--crad, 28px); opacity: calc(1 - var(--sp, 0)); transform: var(--tilt, none);
  box-shadow: 0 0 0 1.5px rgba(240, 200, 120, .85), 0 0 34px 2px rgba(226, 180, 90, .45), 0 0 120px 20px rgba(226, 180, 90, .22), 0 60px 140px -20px rgba(0, 0, 0, .9); }
.hb2-sr-screen { position: absolute; inset: 0; z-index: 2; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: var(--tilt, none); clip-path: inset(var(--ct, 30%) var(--cr, 30%) var(--cb, 30%) var(--cl, 30%) round var(--crad, 28px)); }
.hb2-sr-screen video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--sp, 0) * .18)); filter: blur(calc((1 - var(--fp, 1)) * 7px)) brightness(calc(.7 + var(--fp, 1) * .36)) saturate(calc(1 + var(--sp, 0) * .15)); will-change: transform, filter; }
.hb2-sr-screen.pop video { animation: hb2popv 1.1s ease-out; }
@keyframes hb2popv { 0% { scale: 1 } 14% { scale: 1.035 } 100% { scale: 1 } }
.hb2-sr-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 55%, rgba(0, 0, 0, .75)); opacity: var(--sp, 0); }
.hb2-sr-sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: calc(1 - var(--sp, 0));
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 200, .22) 47%, rgba(255, 255, 255, .34) 50%, rgba(255, 236, 200, .22) 53%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: calc(130% - var(--fp, 0) * 160%) 0; }
.hb2-sr-pop { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 226, 170, .9), rgba(255, 140, 60, .35) 45%, transparent 75%); }
.hb2-sr-screen.pop .hb2-sr-pop { animation: hb2popo 1.1s ease-out; }
@keyframes hb2popo { 0% { opacity: 0 } 12% { opacity: .85 } 100% { opacity: 0 } }
.hb2-sr-prompt { position: absolute; z-index: 3; left: 50%; bottom: 12%; width: min(760px, 88vw); padding: 18px 22px; border-radius: 14px; text-align: left; transform: translate(-50%, calc((1 - var(--tp, 0)) * 30px)); opacity: var(--tp, 0);
  background: rgba(10, 10, 12, .62); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 30px 80px -20px rgba(0, 0, 0, .7); }
.hb2-sr-label { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--h3-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--h3-gold); }
.hb2-sr-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--h3-red); box-shadow: 0 0 8px var(--h3-red); animation: hb2blink 1.2s steps(1) infinite; }
.hb2-sr-text { margin: 9px 0 0 !important; min-height: 1.45em; font-size: clamp(16px, 1.7vw, 22px); font-weight: 500; line-height: 1.45 !important; color: #fff !important; }
.hb2-caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--h3-gold); animation: hb2blink 1s steps(1) infinite; }
.hb2-sr-tag { position: absolute; z-index: 3; top: 96px; left: var(--hb2-pad); display: flex; flex-direction: column; gap: 4px; text-align: left; opacity: var(--tp, 0); transform: translateY(calc((1 - var(--tp, 0)) * -14px)); padding-left: 14px; border-left: 3px solid var(--h3-gold); }
.hb2-sr-tag b { font: 800 clamp(22px, 2.4vw, 34px)/1 var(--h3-display); letter-spacing: -.03em; color: #fff; }
.hb2-sr-tag span { font: 600 11.5px/1 var(--h3-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.hb2-sr-title { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; text-align: center; padding: 0 var(--hb2-pad); opacity: var(--to, 1); transform: translateY(calc(-50% - (1 - var(--to, 1)) * 60px)) scale(calc(.92 + var(--to, 1) * .08)); filter: blur(calc((1 - var(--to, 1)) * 10px)); pointer-events: none; }
.hb2-sr-title h2 { font-size: clamp(44px, 7.4vw, 124px) !important; line-height: .98 !important; letter-spacing: -.045em !important; text-shadow: 0 6px 40px rgba(0, 0, 0, .8); }
.hb2-sr-title h2 em { font-style: normal; color: var(--h3-gold); }
.hb2-sr-kicker { display: inline-block; margin: 0 0 22px !important; font: 600 12px/1 var(--h3-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; transition: opacity .5s, transform .7s var(--hb2-ease), filter .5s; }
.hb2-sr-title .w { display: inline-block; white-space: nowrap; }
.hb2-sr-title .ch { display: inline-block; transition: transform .7s var(--hb2-ease), opacity .5s ease, filter .5s ease; }
.hb2-sr-title.blast .ch { transform: translate(var(--dx), var(--dy)) rotate(var(--rz)) scale(var(--s)); opacity: 0; filter: blur(5px);
  transition: transform 1s cubic-bezier(.12, .75, .25, 1) var(--d), opacity .75s ease-in var(--d), filter .45s ease-in var(--d); }
.hb2-sr-title.blast .hb2-sr-kicker { opacity: 0; transform: translateY(-40px) scale(1.3); filter: blur(4px); transition: opacity .35s ease-in, transform .6s cubic-bezier(.12, .75, .25, 1), filter .35s; }
.hb2-sr-burst { z-index: 4; }

@media (max-width: 1000px) { .hb2-now { width: min(300px, 60vw); } .hb2-cue { display: none; } }
@media (max-width: 640px) {
  body.hb2-page { --hb2-head: 63px; }
  .hb2-inner { padding-top: calc(var(--hb2-head) + 36px); padding-bottom: 110px; }
  .hb2-kicker { font-size: 10.5px; letter-spacing: .08em; }
  .hb2-box { flex-wrap: wrap; padding: 10px; margin-top: 30px; }
  .hb2-tag { margin-left: 6px; }
  .hb2-box input { flex: 1 1 60%; height: 44px; }
  .hb2-go { flex: 1 1 100%; justify-content: center; }
  .hb2-steps { gap: 12px; font-size: 10.5px; }
  .hb2-chips button { height: 34px; font-size: 13px; }
  .hb2-now { left: 16px; bottom: 20px; width: calc(100vw - 150px); }
  .hb2-sound { right: 16px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb2-l, .hb2-kicker, .hb2-box, .hb2-chips, .hb2 .h3-fine { animation: none; opacity: 1; transform: none; filter: none; }
  .hb2-film.back { animation: none; }
  .hb2-cue::after { animation: none; }
}
