/* ═══ The homepage story (home.js) — the launch film's design system, laid out for the web ═══
   Tokens, type and components follow the launch film's README: Inter Tight 800/900 headlines, one Instrument Serif
   italic word for emphasis, JetBrains Mono for technical text; red only in the problem scenes, gold only from
   "Genesis makes films." on. */
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("media/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("media/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("media/fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 900; font-display: swap; src: url("media/fonts/inter-tight-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("media/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("media/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-devanagari-devanagari-700-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC; }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-gurmukhi-gurmukhi-700-normal.woff2") format("woff2"); unicode-range: U+0A00-0A7F; }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-gujarati-gujarati-700-normal.woff2") format("woff2"); unicode-range: U+0A80-0AFF; }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-bengali-bengali-700-normal.woff2") format("woff2"); unicode-range: U+0980-09FF; }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-tamil-tamil-700-normal.woff2") format("woff2"); unicode-range: U+0B80-0BFF; }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-telugu-telugu-700-normal.woff2") format("woff2"); unicode-range: U+0C00-0C7F; }
@font-face { font-family: "Indic"; font-weight: 700; font-display: swap; src: url("media/fonts/noto-sans-malayalam-malayalam-700-normal.woff2") format("woff2"); unicode-range: U+0D00-0D7F; }

.home2 {
  --h-bg: #050506; --h-ink: #F4F2EC; --h-mute: #8B8B94; --h-dim: #3A3A44; --h-red: #FF4B3A; --h-gold: #E9B949;
  --h-card: #15151B; --h-line: rgba(255, 255, 255, .12);
  font-family: "Inter Tight", var(--sans); color: var(--h-ink); background: var(--h-bg);
}
/* A stage is exactly as tall as its content (--h, measured by home.js) and holds in the middle of the screen while
   its section scrolls past — so sections follow one another with a normal gap, never a screen of black. */
.home2 .hsc { position: relative; height: calc(var(--h, 100svh) + (var(--len) - 1) * 100svh); }
/* reveals: a CSS transition once the section passes the element's moment (home.js) — smooth at any scroll speed */
.home2 [data-at] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.home2 [data-at].in { opacity: 1; transform: none; }
.home2 .hsc-pin { position: sticky; top: max(calc(var(--top) + 4px), calc(50svh - var(--h, 100svh) / 2 + var(--top) / 2)); display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 6svh, 64px) var(--gutter); }
.home2.still .hsc { height: auto; }
.home2.still .hsc-pin { position: relative; height: auto; min-height: 92svh; }
@media (max-width: 640px) { .home2 .hsc { height: calc(var(--h, 100svh) + (var(--len) - 1) * 80svh); } }

/* type */
.home2 .w { display: inline-block; }
.home2 .hx { font-weight: 900; letter-spacing: -.045em; line-height: .9; text-transform: uppercase; }
.home2 .hx .serif, .home2 .serif { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; text-transform: none; }
.home2 .s { font-size: clamp(12px, 1.35vw, 21px); }
.home2 .m { font-size: clamp(20px, 2.5vw, 38px); }
.home2 .l { font-size: clamp(30px, 4.4vw, 70px); }
.home2 .xl { font-size: clamp(42px, 6.6vw, 112px); }
.home2 .xxl { font-size: clamp(54px, 9vw, 160px); }
.home2 .mega { font-size: clamp(74px, 15vw, 250px); }
.home2 .hx.m { letter-spacing: -.03em; line-height: 1; }
.home2 .hx.mega { text-transform: none; letter-spacing: -.055em; }
.home2 .serif.l, .home2 .serif.xl, .home2 .serif.xxl, .home2 .serif.mega { line-height: .95; }
.home2 .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0; }
.home2 .indic { font-family: "Indic", "Inter Tight", sans-serif; font-weight: 700; }
.home2 .lab { font-weight: 600; font-size: clamp(11px, 1.05vw, 16px); letter-spacing: .22em; text-transform: uppercase; color: var(--h-mute); }
.home2 .tiny { font-size: 10.5px; letter-spacing: .14em; }
.home2 .red { color: var(--h-red); }
.home2 .gold { color: var(--h-gold); }
.home2 .dim { color: var(--h-mute); }
.home2 .small { font-size: 13px; }
.home2 .center { text-align: center; }
.home2 .goldtxt { padding-inline: .06em; margin-inline: -.06em; background: linear-gradient(180deg, #FBEBB8 0%, #E9B949 46%, #B8842A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home2 .goldbg { background: linear-gradient(135deg, #F6D98A 0%, #E9B949 45%, #C9962E 100%); color: #141210; }
.home2 .pill { display: inline-flex; align-items: center; padding: .42em 1em; border-radius: 999px; font-weight: 800; font-size: clamp(16px, 2vw, 28px); letter-spacing: -.01em; white-space: nowrap; }
.home2 .pill.dark { background: var(--h-card); border: 1px solid var(--h-line); color: var(--h-ink); }
.home2 .rec { color: var(--h-red); }
.home2 .fc { overflow: hidden; }
.home2 .fc svg { display: block; }

/* layouts */
.home2 .hs-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 84px); width: min(100%, 1280px); align-items: center; }
.home2 .hs-two.wide-r { grid-template-columns: 1fr 1.15fr; }
.home2 .hs-col { display: grid; gap: clamp(10px, 1.6vh, 18px); align-content: center; min-width: 0; }
.home2 .hs-stack { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 30px); width: min(100%, 1280px); text-align: center; }
.home2 .hs-head { display: grid; gap: 8px; justify-items: center; }
.home2 .hs-head.row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }
.home2 .hs-foot { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; align-items: baseline; }
@media (max-width: 760px) {
  .home2 .hs-two, .home2 .hs-two.wide-r { grid-template-columns: 1fr; gap: 18px; }
}

/* 1 · shoot */
.home2 .week { font-size: clamp(13px, 1.2vw, 17px); color: var(--h-mute); }
.home2 .week b { color: var(--h-ink); font-weight: 700; }
.home2 .invoice { width: 100%; max-width: 440px; justify-self: center; background: #F1EEE6; color: #111; border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); font-weight: 600; }
.home2 .inv-h { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; border-bottom: 2px dashed #b9b3a6; padding-bottom: 10px; margin-bottom: 6px; }
.home2 .inv-r { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.home2 .inv-r i { height: 10px; background: #ddd8cc; border-radius: 3px; overflow: hidden; }
.home2 .inv-r b { display: block; height: 100%; background: #111; transform-origin: 0 50%; transform: scaleX(0); }
.home2 .inv-t { display: flex; justify-content: space-between; border-top: 2px solid #111; margin-top: 10px; padding-top: 10px; font-size: 18px; font-weight: 700; }

/* 2 · drift */
.home2 .faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); width: 100%; max-width: 1100px; }
.home2 .faces figure, .home2 .sheet figure { margin: 0; display: grid; gap: 8px; }
.home2 .faces .fc { aspect-ratio: 3 / 4; border-radius: 16px; border: 2px solid transparent; transition: border-color .4s; }
.home2 .faces figure.bad .fc { border-color: var(--h-red); }
.home2 .faces figcaption { font-size: 11px; color: var(--h-mute); text-align: center; }

/* 3 · fail */
.home2 .subcard { display: grid; grid-template-columns: clamp(70px, 8vw, 104px) 1fr; gap: 16px; align-items: center; background: var(--h-card); border-radius: 20px; padding: 14px; border: 1px solid var(--h-line); }
.home2 .mini-face { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.home2 .subs { position: relative; height: 2.4em; font-size: clamp(20px, 2.5vw, 36px); }
.home2 .sub { position: absolute; inset: 0; display: flex; align-items: center; font-weight: 800; transition: opacity .5s, transform .5s; }
.home2 .sub.bad { color: var(--h-red); text-decoration: underline wavy var(--h-red); text-underline-offset: 8px; text-decoration-thickness: 2px; opacity: 0; transform: translateY(12px); }
.home2 .subcard.garbled .sub.ok { opacity: 0; transform: translateY(-12px); }
.home2 .subcard.garbled .sub.bad { opacity: 1; transform: none; }
.home2 .render { background: var(--h-card); border: 1px solid var(--h-line); border-radius: 18px; padding: 20px; display: grid; gap: 10px; transition: border-color .3s, box-shadow .3s, opacity .7s, transform .7s; }
.home2 .rc-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--h-mute); }
.home2 .pct { font-size: clamp(44px, 6vw, 88px); font-weight: 700; line-height: 1; }
.home2 .rbar { height: 8px; background: #26262E; border-radius: 99px; overflow: hidden; }
.home2 .rbar i { display: block; height: 100%; background: var(--h-ink); transform-origin: 0 50%; transform: scaleX(0); }
.home2 .render.failed { border-color: var(--h-red); box-shadow: 0 0 70px -10px rgba(255, 75, 58, .55); }
.home2 .render.failed .pct, .home2 .render.failed .rc-h span:last-child { color: var(--h-red); }
.home2 .render.failed .rbar i { background: var(--h-red); }

/* 4 · turn */
.home2 .turn { position: relative; display: grid; place-items: center; width: 100%; min-height: 46svh; text-align: center; overflow-x: clip; }   /* the glow is wider than a phone; the page must not scroll sideways for it */
.home2 .turn > :not(.glow) { grid-area: 1 / 1; }
.home2 .turn .glow { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 130vmax; height: 130vmax; background: radial-gradient(circle, rgba(233, 185, 73, .26), rgba(233, 185, 73, 0) 55%); pointer-events: none; opacity: 0; transform: scale(.5); transition: opacity 1s, transform 1.4s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.home2 .turn .clips { color: var(--h-mute); transition: opacity .6s, filter .6s, transform .6s; }
.home2 .turn-in { display: grid; justify-items: center; gap: 6px; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.home2 .bot { width: clamp(70px, 9vw, 130px); height: auto; margin-bottom: -2vh; }
.home2 .turned .clips { opacity: 0; filter: blur(10px); transform: translateY(-30px); }
.home2 .turned .turn-in { opacity: 1; transform: none; }
.home2 .turned .glow { opacity: 1; transform: scale(1); }

/* 5 · in one */
.home2 .one { font-size: clamp(28px, 4vw, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; box-shadow: 0 20px 60px -20px rgba(233, 185, 73, .6); }
.home2 .slate2 { display: flex; align-items: center; gap: 12px; width: min(100%, 780px); background: var(--h-card); border: 1px solid var(--h-line); border-radius: 999px; padding: 14px 22px; font-size: clamp(14px, 1.55vw, 21px); font-weight: 500; text-align: left; min-height: 58px; }
.home2 .spark { color: var(--h-gold); }
.home2 .caret { width: 2px; height: 1.2em; background: var(--h-gold); animation: hblink 1s steps(1) infinite; flex: 0 0 auto; }
@keyframes hblink { 50% { opacity: 0; } }
.home2 .board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; }
.home2 .shot { background: var(--h-card); border: 1px solid var(--h-line); border-radius: 14px; padding: 8px; display: grid; gap: 6px; text-align: left; align-content: start; }
.home2 .shot .thumb { aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; }
.home2 .shot .sw { font-size: 12.5px; color: var(--h-mute); line-height: 1.3; }
@media (max-width: 760px) { .home2 .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 6 · real */
.home2 .finder { position: relative; height: min(64svh, 640px); aspect-ratio: 9 / 16; max-width: 100%; justify-self: center; border-radius: 18px; overflow: hidden; background: #0b0b0e; }
.home2 .finder video { width: 100%; height: 100%; object-fit: cover; display: block; }
.home2 .cn { position: absolute; width: 28px; height: 28px; border-color: var(--h-gold); border-style: solid; border-width: 0; }
.home2 .cn.tl { left: 12px; top: 12px; border-left-width: 3px; border-top-width: 3px; }
.home2 .cn.tr { right: 12px; top: 12px; border-right-width: 3px; border-top-width: 3px; }
.home2 .cn.bl { left: 12px; bottom: 12px; border-left-width: 3px; border-bottom-width: 3px; }
.home2 .cn.br { right: 12px; bottom: 12px; border-right-width: 3px; border-bottom-width: 3px; }
.home2 .vf-top { position: absolute; left: 50px; right: 50px; top: 18px; display: flex; justify-content: space-between; font-size: 11px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (max-width: 760px) { .home2 .finder { height: 46svh; } }

/* 7 · face sheet */
.home2 .lock { font-size: clamp(16px, 1.8vw, 24px); }
.home2 .sheet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(100%, 900px); padding: 12px; border-radius: 22px; border: 1px solid var(--h-line); transition: border-color .5s, box-shadow .5s; }
.home2 .sheet.locked { border-color: var(--h-gold); box-shadow: 0 0 0 1px var(--h-gold), 0 30px 90px -30px rgba(233, 185, 73, .45); }
.home2 .sheet .fc { aspect-ratio: 3 / 4; border-radius: 12px; }
.home2 .films { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.home2 .filmc { position: relative; width: clamp(104px, 14vw, 190px); background: var(--h-card); border-radius: 14px; padding: 8px; border: 1px solid var(--h-line); display: grid; gap: 6px; text-align: left; }
.home2 .filmc .fc { aspect-ratio: 16 / 10; border-radius: 9px; }
.home2 .tick { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--h-gold); padding: 4px; }

/* 8 · checked */
.home2 .takes { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home2 .take { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: repeat(3, auto); column-gap: 10px; row-gap: 3px; align-items: center; background: var(--h-card); border: 1px solid var(--h-line); border-radius: 14px; padding: 8px 10px; text-align: left; transition: border-color .3s; }
.home2 .take .fc { grid-row: 1 / span 3; aspect-ratio: 3 / 4; border-radius: 8px; }
.home2 .wave { display: flex; gap: 2px; height: 20px; align-items: center; padding-right: 26px; }
.home2 .wave i { flex: 1; background: var(--h-dim); border-radius: 2px; transition: background .3s; }
.home2 .tk, .home2 .state { color: var(--h-mute); }
.home2 .mark { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; padding: 3px; }
.home2 .take.ok { border-color: rgba(233, 185, 73, .6); }
.home2 .take.ok .mark { background: var(--h-gold); }
.home2 .take.ok .wave i { background: var(--h-gold); }
.home2 .take.ok .state { color: var(--h-gold); }
.home2 .take.bad { border-color: var(--h-red); }
.home2 .take.bad .mark { background: var(--h-red); }
.home2 .take.bad .state { color: var(--h-red); }
.home2 .scan { position: absolute; left: -8px; right: -8px; top: 0; height: 2px; background: var(--h-gold); box-shadow: 0 0 18px 4px rgba(233, 185, 73, .5); opacity: 0; pointer-events: none; }
.home2 .price { justify-self: start; margin-top: 12px; border-radius: 18px; padding: 16px 20px; display: grid; gap: 4px; box-shadow: 0 30px 80px -30px rgba(233, 185, 73, .55); }
.home2 .price.in { transform: rotate(-3deg); }
.home2 .price .lab { color: rgba(0, 0, 0, .6); }
.home2 .price .dim { color: rgba(0, 0, 0, .65); }
.home2 .price .small-pill { background: #141210; color: var(--h-gold); font-size: 14px; justify-self: start; margin-top: 6px; }

/* 9 · India */
.home2 .speaks { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 48px); width: min(100%, 1100px); }
.home2 .hellos { display: grid; gap: clamp(10px, 2.2vh, 26px); justify-items: center; }
.home2 .hello { display: grid; justify-items: center; gap: 2px; font-size: clamp(16px, 2vw, 30px); white-space: nowrap; color: rgba(244, 242, 236, .72); }
.home2 .hello em { font-style: normal; font-size: 9.5px; }
.home2 .hellos .hello:nth-child(even) { translate: 18% 0; }
.home2 .hellos:last-child .hello:nth-child(even) { translate: -18% 0; }
.home2 .india-h { display: grid; text-align: center; }
.home2 .dub { display: grid; grid-template-columns: clamp(80px, 11vw, 150px) 1fr; gap: 18px; align-items: center; width: min(100%, 920px); background: var(--h-card); border: 1px solid var(--h-line); border-radius: 22px; padding: 14px; text-align: left; }
.home2 .dub-face { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; }
.home2 .dub-body { display: grid; gap: 10px; min-width: 0; }
.home2 .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.home2 .tab { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--h-line); font-size: 13px; font-weight: 600; color: var(--h-mute); transition: background .3s, color .3s, border-color .3s; }
.home2 .tab.on { background: var(--h-gold); color: #141210; border-color: var(--h-gold); }
.home2 .trk { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; }
.home2 .wave2 { display: flex; gap: 2px; height: 28px; align-items: center; }
.home2 .wave2 i { flex: 1; background: var(--h-ink); border-radius: 2px; min-height: 2px; transition: height .45s cubic-bezier(.2,.7,.2,1); }
.home2 .wave2.keep i { background: var(--h-gold); }
.home2 .kept { font-size: 12px; padding: 4px 10px; }
@media (max-width: 640px) { .home2 .trk { grid-template-columns: 1fr auto; } .home2 .trk .lab { grid-column: 1 / -1; } .home2 .dub { grid-template-columns: 1fr; } .home2 .dub-face { display: none; } }

/* 10 · numbers */
.home2 .big-n { font-size: clamp(110px, 19vw, 320px); line-height: .85; letter-spacing: -.06em; text-transform: none; }
.home2 .cmp { display: grid; gap: 6px; width: min(100%, 460px); margin-top: 10px; }
.home2 .cbar { height: 18px; border-radius: 99px; background: #26262E; overflow: hidden; margin-bottom: 8px; }
.home2 .cbar i { display: block; height: 100%; width: 100%; background: var(--h-mute); transform-origin: 0 50%; }
.home2 .cbar.g i { background: linear-gradient(90deg, #F6D98A, #E9B949, #C9962E); }

/* the studio grid below the story, in the story's type */
.home2.studio { background: transparent; }
.home2 .studio-h { margin: 14px 0 0; display: grid; justify-items: center; gap: 4px; font-weight: inherit; }
.home2 .studio-card h3 { font-family: "Inter Tight", var(--sans); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.05; }
.home2 .serif.goldtxt, .home2 .goldtxt .serif, .home2 .serif .goldtxt { padding-bottom: .1em; margin-bottom: -.1em; }

/* phones: room for the bottom tab bar, and the busiest scenes made compact */
@media (max-width: 640px) {
  .home2 .hsc-pin { padding-bottom: 72px; }
  .home2 .xl { font-size: clamp(34px, 10vw, 56px); }
  .home2 .take { grid-template-columns: 34px 1fr; padding: 6px 8px; }
  .home2 .take .wave { display: none; }
  .home2 .takes { gap: 6px; }
  .home2 .price { padding: 12px 16px; }
}
@media (max-width: 760px) {
  .home2 .speaks { grid-template-columns: 1fr; gap: 12px; }
  .home2 .hellos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .home2 .hellos:first-child { order: 0; } .home2 .india-h { order: 1; } .home2 .hellos:last-child { order: 2; }
  .home2 .hello { font-size: 15px; translate: none !important; }
}
