/* Landing v2: hero video wall with the prompt box, the model strip and the case studies.
   base.css holds the shared frame, buttons, tiles (.m), drift and the model swatches (.look). */

/* hero: black, one soft glow, the headline, the ask box and a fanned stack of real samples (artlist's hero idiom).
   The old video wall is gone: seven cards are all that plays here. */
.hero { position: relative; overflow: clip; display: flex; align-items: center; isolation: isolate;
        padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); background: transparent; color: var(--t1); }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
             background: radial-gradient(50% 46% at 50% 0%, #f8873628, transparent 70%),
                         radial-gradient(40% 40% at 88% 62%, #8b6cff1c, transparent 70%),
                         radial-gradient(36% 36% at 10% 72%, #f887361a, transparent 70%); }
.hero-c { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero h1 { margin: 0; max-inline-size: 900px; font: 900 clamp(34px, 5.6vw, 68px)/1.15 var(--l-display); letter-spacing: -.02em; text-wrap: balance; }
.hero .grad { background: linear-gradient(90deg, #ffb38a, var(--acc) 40%, #c9a3ff); /* the mockup's ember to violet */ -webkit-background-clip: text; background-clip: text;
              -webkit-text-fill-color: transparent; color: transparent; }
.hero-lead { margin: 0; max-inline-size: 640px; color: var(--t2); font-size: clamp(15px, 1.6vw, 18px); text-wrap: pretty; }

/* the fan: cards overlap, tilt outward from the middle one and rise toward it; the centre card is larger and lifts on hover.
   --o is the card's place from the centre (-3..3), --a its distance. Outer pairs drop out on phones. */
.fan { --fw: clamp(104px, 15.5vw, 224px); display: flex; justify-content: center; align-items: center; margin-block-start: clamp(28px, 5vw, 56px);
       inline-size: 100%; padding-block: 24px 8px; position: relative; }
.fan::before { content: ""; position: absolute; inset-inline: 18%; inset-block: 0; z-index: -1; pointer-events: none;
               background: radial-gradient(closest-side, #f8873630, transparent 75%); filter: blur(30px); }
.fc { position: relative; flex: none; inline-size: var(--fw); aspect-ratio: 3 / 4; margin-inline: calc(var(--fw) * -.12);
      border-radius: var(--r-card); overflow: hidden; background: var(--vd-surface-2);
      box-shadow: 0 0 0 1px #ffffff26, 0 30px 60px -24px #000, 0 0 40px -10px #f8873630;
      z-index: calc(10 - var(--a)); transform-origin: 50% 120%;
      transform: translateY(calc(var(--a) * var(--a) * 7px)) rotate(calc(var(--o) * 5.5deg)) scale(calc(1 - var(--a) * .07));
      transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
      animation: fan-in 1s var(--ease-out) backwards; animation-delay: calc(var(--a) * -80ms + 240ms); }
.fc.mid { inline-size: calc(var(--fw) * 1.22); aspect-ratio: 3 / 4; margin-inline: calc(var(--fw) * -.02); }
.fc:hover { transform: translateY(calc(var(--a) * var(--a) * 7px - 14px)) rotate(calc(var(--o) * 4deg)) scale(calc(1.04 - var(--a) * .05)); z-index: 20; }
@keyframes fan-in { from { opacity: 0; transform: translateY(40px) rotate(0) scale(.86); } }

/* the ask box */
.box { inline-size: min(720px, 100%); border-radius: 22px; padding: 1px; background: linear-gradient(180deg, #ffffff30, #ffffff08); }
.box .in { display: flex; flex-direction: column; gap: 12px; padding-block: 14px 12px; padding-inline: 18px 14px; border-radius: 21px;
           background: #111215e6; backdrop-filter: blur(20px); text-align: start; }
.box textarea { inline-size: 100%; min-block-size: 30px; max-block-size: 160px; field-sizing: content; resize: none; /* one line like the mockup, grows as you type */ border: 0; outline: 0; background: transparent; color: var(--t1);
                font: 400 17px/1.7 var(--l-sans); }
.box textarea::placeholder { color: var(--t3); }
.box .in:focus-within { border-radius: 21px; box-shadow: 0 0 0 2px var(--vd-focus); }
.box .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.box .sp { flex: 1; }
.box .k { position: relative; cursor: pointer; }
.box .k input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.box .k span { display: flex; align-items: center; gap: 6px; padding-block: 5px; padding-inline: 11px; border-radius: 10px; background: #ffffff0a;
               font-size: 12.5px; color: var(--t2); }
.box .k input:checked + span { background: #f887361f; color: var(--t1); box-shadow: inset 0 0 0 1px #f8873650; }
.box .k input:focus-visible + span { outline: 2px solid var(--vd-focus); outline-offset: 2px; }
.ld .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-block: 6px 0; padding: 0; list-style: none; } /* .ld: outranks the ul reset */
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats b { font-size: 24px; font-weight: 900; }
.stats small { color: var(--t3); font-size: 12.5px; }

/* model strip */
.models { padding-block: 20px; overflow: hidden; }
.mlabel { text-align: center; color: var(--vd-text-3); font-size: 13px; margin-block-end: 14px; padding-inline: var(--l-gutter); }
.mq { overflow: hidden; }
.mrow { --d: 50s; display: flex; inline-size: max-content; gap: 12px; padding-inline-end: 12px; }
.mchip { flex: none; display: flex; align-items: center; gap: 10px; padding-block: 8px; padding-inline: 8px 16px; border-radius: 999px;
         background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-line); color: var(--vd-text-1); font-size: 13.5px; font-weight: 600; direction: ltr; }
.mchip .look { inline-size: 28px; block-size: 28px; }

/* case studies: a rail of 9:16 reels (the first one wider); two buttons in the header step through it, phones swipe.
   A card with a full reel is one link (its play badge in the corner) that landing.js opens in the viewer below. */
.sec-h .rail-nav { display: flex; gap: 8px; }
.rnav { display: grid; place-items: center; inline-size: 40px; block-size: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
        background: var(--vd-surface-2); color: var(--vd-text-1); box-shadow: inset 0 0 0 1px var(--vd-line-strong); transition: background var(--vd-dur-base), opacity var(--vd-dur-base); }
.rnav:hover:not(:disabled) { background: var(--vd-surface-3); }
.rnav:disabled { opacity: .35; cursor: default; }
.rnav .flip { transform: scaleX(-1); }
.cases { --cw: 300px; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
         padding-block: 1px; }
.cases::-webkit-scrollbar { display: none; }
.case { position: relative; flex: none; inline-size: var(--cw); block-size: calc(var(--cw) * 16 / 9); scroll-snap-align: start; }
.case.big { inline-size: calc(var(--cw) * 1.3); }
.case .ct { position: absolute; inset-inline: 20px; inset-block-end: 20px; display: flex; flex-direction: column; gap: 4px; }
.case .ck { align-self: flex-start; font-size: 11px; padding-block: 2px; padding-inline: 10px; border-radius: 999px; background: #ffffff1f; backdrop-filter: blur(8px); }
.case b { font-size: 20px; font-weight: 800; }
.case.big b { font-size: 26px; }
.case small { color: #ffffffb0; font-size: 13px; }
.case .open { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.case .open:focus-visible { outline: 2px solid var(--vd-accent); outline-offset: -3px; }
.case .pl { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; display: grid; place-items: center; inline-size: 40px; block-size: 40px;
            border-radius: 50%; background: #0b0c0e99; color: #fff; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px #ffffff2a;
            transition: background var(--vd-dur-base), transform var(--vd-dur-base); }
.case .pl .i { inline-size: 15px; block-size: 15px; transform: translateX(1px); }
.case:hover .pl, .case .open:focus-visible .pl { background: var(--vd-accent); transform: scale(1.06); }

/* the full-reel viewer: one dialog, the reel at the height of the screen, its sound on */
.reel-view { padding: 0; border: 0; background: transparent; color: #fff; max-inline-size: none; max-block-size: none; overflow: visible; }
.reel-view[open] { display: flex; flex-direction: column; gap: 10px; }
.reel-view::backdrop { background: #000000d0; backdrop-filter: blur(6px); }
.reel-view video { display: block; block-size: min(82vh, 860px); inline-size: auto; aspect-ratio: 9 / 16; max-inline-size: 92vw; border-radius: 18px; background: #000; }
.rv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }

@media (max-width: 1023.98px) {
  .cases { --cw: 250px; }
}
@media (max-width: 719.98px) {
  .fan { --fw: 27vw; }
  .fc { margin-inline: calc(var(--fw) * -.16); }
  .fc.mid { margin-inline: calc(var(--fw) * -.04); }
  .fc:nth-child(1), .fc:nth-child(7) { display: none; }
  .hero h1 { font-size: 34px; }
  .ld .stats { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
  .cases { --cw: 72vw; gap: 12px; margin-inline: calc(-1 * var(--l-gutter)); padding-inline: var(--l-gutter); scroll-padding-inline: var(--l-gutter); }
  .case.big { inline-size: var(--cw); }
  .sec-h .rail-nav { display: none; }
  .reel-view video { block-size: min(78vh, 760px); }
}
