/* The Clip Creator hero, shared by the studio and the landing page. All code: marker lettering, a brushed lime underline,
   and five tilted cards whose frames are CSS. Each card holds its own looping clip, so every one moves on its own. */
/* Sizes follow the hero's own width (container units), so it still fits when Nala's panel narrows the page. */
.hero-art { container-type: inline-size; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 26px; width: 100%; max-width: 100%; }
.hero-brand { margin: 0; font-family: var(--marker, 'Permanent Marker', cursive); font-size: 26px; letter-spacing: .1em; text-transform: uppercase; color: #fff; transform: rotate(-2deg); }
.hero-brand i { font-style: normal; color: #FF4332; }
.hero-title { position: relative; margin: 2px 0 0; padding: 0 12px 20px; font-family: var(--marker, 'Permanent Marker', cursive); font-weight: 400; font-size: clamp(30px, calc(124cqw / var(--n, 12)), 96px); line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; color: #fff; transform: rotate(-3.5deg); text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 34px rgba(170, 110, 255, .35); white-space: nowrap; }
.hero-under { position: absolute; left: 4%; bottom: 0; width: 82%; height: 22px; overflow: visible; }
.hero-under path { fill: none; stroke: #C6F135; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(198, 241, 53, .45)); }
.hero-under .u1 { stroke-width: 11; stroke-dasharray: 640; stroke-dashoffset: 640; animation: hero-draw .9s .15s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-under .u2 { stroke-width: 4; opacity: .8; stroke-dasharray: 420; stroke-dashoffset: 420; animation: hero-draw .7s .55s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }

.hero-cards { display: flex; justify-content: center; align-items: center; margin-top: 30px; perspective: 1400px; padding: 10px 0 6px; }
.hc { --w: clamp(56px, 18.4cqw, 176px); position: relative; flex: none; width: var(--w); aspect-ratio: 9 / 14; margin: 0 calc(var(--w) * -.035); border-radius: calc(var(--w) * .11); overflow: hidden; background: #0d0718;
  border: 2px solid rgba(255, 255, 255, .88); box-shadow: 0 0 0 1px rgba(150, 90, 255, .35), 0 18px 34px -14px rgba(0, 0, 0, .8), 0 0 30px -8px rgba(150, 80, 255, .7);
  transform: var(--t); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; animation: hc-in .7s cubic-bezier(.2, .8, .2, 1) backwards; }
.hc video, .hc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 22%, transparent 68%, rgba(0, 0, 0, .55)); }
.hc1 { --t: rotateY(24deg) rotateZ(-3deg) translateY(6px); animation-delay: .05s; }
.hc2 { --t: rotateY(13deg) rotateZ(-1.5deg) translateY(2px); animation-delay: .12s; }
.hc3 { --t: scale(1.1); z-index: 2; animation-delay: .19s; }
.hc4 { --t: rotateY(-13deg) rotateZ(1.5deg) translateY(2px); animation-delay: .26s; }
.hc5 { --t: rotateY(-24deg) rotateZ(3deg) translateY(6px); animation-delay: .33s; }
.hc:hover { transform: var(--t) translateY(-8px) scale(1.04); z-index: 3; box-shadow: 0 0 0 1px rgba(190, 130, 255, .6), 0 24px 40px -14px rgba(0, 0, 0, .85), 0 0 44px -6px rgba(180, 100, 255, .95); }
@keyframes hc-in { from { opacity: 0; transform: var(--t) translateY(26px) scale(.94); } }
/* the little player bar: a play mark and a line that fills at each card's own pace */
.hc-bar { position: absolute; z-index: 1; left: 9%; right: 9%; bottom: 6.5%; display: flex; align-items: center; gap: 7%; margin: 0; }
.hc-play { width: 0; height: 0; flex: none; border-left: calc(var(--w) * .06) solid #fff; border-top: calc(var(--w) * .04) solid transparent; border-bottom: calc(var(--w) * .04) solid transparent; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.hc-line { position: relative; flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.hc-line b { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: 0 50%; transform: scaleX(0); animation: hc-prog var(--d, 5s) linear infinite; }
.hc2 .hc-line b { animation-delay: -1.7s; } .hc3 .hc-line b { animation-delay: -3.1s; } .hc4 .hc-line b { animation-delay: -.8s; } .hc5 .hc-line b { animation-delay: -2.4s; }
@keyframes hc-prog { to { transform: scaleX(1); } }
@container (max-width: 520px) { .hero-cards { margin-top: 22px; } .hero-brand { font-size: 19px; } .hc { border-width: 1.5px; } }
@media (prefers-reduced-motion: reduce) { .hc, .hero-under path { animation: none; stroke-dashoffset: 0; } .hc-line b { animation: none; transform: scaleX(.4); } }

.hero-art.solo { margin-bottom: 30px; }
.hero-art.solo .hero-title { font-size: clamp(30px, calc(124cqw / var(--n, 12)), 84px); }

/* still cards carry a small picture badge in the corner (the stand-in for the clips' play bar), drawn in code */
.hc-ico { position: absolute; z-index: 1; left: 9%; bottom: 5.5%; width: calc(var(--w) * .2); height: calc(var(--w) * .2); color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65)); pointer-events: none; }
.hc-ico svg { width: 100%; height: 100%; display: block; }


/* film-strip cards (Animation Studio): a purple film frame with sprocket holes drawn in code. Both panels are the same size (3:5), the same distance from the
   edges and from the arrow, and each plays its own loop: the original on the left, a lime arrow, the animated version on the right. */
.hero-cards.film { gap: calc(var(--w, 150px) * .028); }
.hero-cards.film .hc { --w: clamp(54px, 19cqw, 206px); aspect-ratio: 100 / 74; margin: 0; border-radius: calc(var(--w) * .085); border-color: rgba(200, 160, 255, .8);
  background: linear-gradient(160deg, #3B1581 0%, #1C0A4A 55%, #12062C 100%); box-shadow: 0 0 0 1px rgba(170, 100, 255, .5), 0 16px 30px -14px rgba(0, 0, 0, .8), 0 0 34px -6px rgba(170, 80, 255, .85); }
.hero-cards.film .hc::after { background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 30%); }
.hc .hf-a, .hc .hf-b { inset: auto; top: 7.5%; width: 35%; height: 79%; object-fit: cover; border-radius: calc(var(--w) * .022); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); background: #0d0718; }
.hc .hf-a { left: 10%; }
.hc .hf-b { left: 55%; }
.hf-arrow { position: absolute; z-index: 1; left: 46%; top: 41%; width: 8%; height: auto; color: #C6F135; filter: drop-shadow(0 0 5px rgba(198, 241, 53, .7)); }
.hf-holes { position: absolute; border-radius: 2px; background: repeating-linear-gradient(180deg, rgba(210, 170, 255, .85) 0 calc(var(--w) * .03), transparent calc(var(--w) * .03) calc(var(--w) * .062)); }
.hf-holes.l { left: 3.4%; top: 8%; bottom: 8%; width: 3.6%; }
.hf-holes.b { left: 10%; bottom: 4.4%; width: 80%; height: 4.6%; background: repeating-linear-gradient(90deg, rgba(210, 170, 255, .85) 0 calc(var(--w) * .03), transparent calc(var(--w) * .03) calc(var(--w) * .062)); }
.hero-cards.film .hc1 { --t: rotateY(8deg) rotateZ(-2.5deg) translateY(5px); }
.hero-cards.film .hc2 { --t: rotateY(4deg) rotateZ(-1.2deg) translateY(2px); }
.hero-cards.film .hc3 { --t: scale(1.06); }
.hero-cards.film .hc4 { --t: rotateY(-4deg) rotateZ(1.2deg) translateY(2px); }
.hero-cards.film .hc5 { --t: rotateY(-8deg) rotateZ(2.5deg) translateY(5px); }

/* Still cards (Image Generation), laid out like the banner art: five cards that together span about 98% of the row, hairline gaps, every card standing on the same
   baseline, the centre card wider and taller, and a gentle alternating tilt. All sizes are container units, so it holds at any width and with Nala's panel open. */
.hero-cards.stills { gap: .8cqw; align-items: flex-end; padding-top: 14px; }
.hero-cards.stills .hc { --w: clamp(46px, 18.6cqw, 190px); aspect-ratio: 3 / 4; border-radius: calc(var(--w) * .095); margin: 0; }   /* 3:4, the banner's own card shape; the picture icon is part of the art */
.hero-cards.stills .hc3 { --w: clamp(54px, 21.6cqw, 220px); --t: none; }
.hero-cards.stills .hc1 { --t: rotate(3.4deg); }
.hero-cards.stills .hc2 { --t: rotate(-1.8deg); }
.hero-cards.stills .hc4 { --t: rotate(1.8deg); }
.hero-cards.stills .hc5 { --t: rotate(-3.4deg); }

/* ---------- Projects: five cards drawn in code (the mascot with a folder, a project list, a folder stack, a render in
   progress, a grid of finished work). Same tilted film-card frame as Animation Studio; every size is a share of --w. ---------- */
.hero-cards.pjs .hc { background: radial-gradient(120% 100% at 50% 0%, #2a1250, #12071f 70%); }
.hero-cards.pjs .hc::after { background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 30%); }
.pj img { position: absolute; inset: auto; }
.pj-me .pj-mascot { left: 8%; top: 8%; width: 70%; height: 84%; object-fit: contain; border-radius: 22%; }
.pj-play { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-left: calc(var(--w) * .07) solid #fff; border-top: calc(var(--w) * .045) solid transparent; border-bottom: calc(var(--w) * .045) solid transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.pj-folder { position: absolute; left: 22%; top: 30%; width: 58%; height: 50%; border-radius: calc(var(--w) * .05); background: linear-gradient(160deg, #c9a5ff, #8a4dff 60%, #6a2fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 18px -6px rgba(0, 0, 0, .7), 0 0 22px -4px rgba(170, 100, 255, .9); }
.pj-folder .pj-tab { position: absolute; left: 6%; top: -12%; width: 38%; height: 18%; border-radius: calc(var(--w) * .025) calc(var(--w) * .025) 0 0; background: #b689ff; }
.pj-folder.back { left: 32%; top: 18%; opacity: .55; filter: saturate(.8); }
.pj-folder.mid { left: 27%; top: 24%; opacity: .78; }
.pj-folder.sm { left: auto; right: 7%; top: auto; bottom: 10%; width: 40%; height: 32%; }
.pj-folder.sm .pj-play { border-left-width: calc(var(--w) * .045); border-top-width: calc(var(--w) * .03); border-bottom-width: calc(var(--w) * .03); }
.pj-list { display: flex; flex-direction: column; justify-content: center; gap: 6%; padding: 0 7%; }
.pj-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 6%; height: 24%; padding: 2.5%; border-radius: calc(var(--w) * .035); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pj-row.on { box-shadow: inset 0 0 0 calc(var(--w) * .008 + 1px) #C6F135, 0 0 14px -3px rgba(198, 241, 53, .7); animation: pj-pick 6s ease-in-out infinite; }
.pj-row img { position: static; width: 42%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .022); }
.pj-row b { font: 600 calc(var(--w) * .075) / 1 var(--font, system-ui); color: #fff; padding: 2% 4%; border-radius: 4px; background: rgba(0, 0, 0, .45); }
.pj-dots { margin-left: auto; width: calc(var(--w) * .1); height: calc(var(--w) * .022); background: radial-gradient(circle, #fff 45%, transparent 50%) 0 0 / 33.3% 100% repeat-x; opacity: .85; }
@keyframes pj-pick { 0%, 100% { transform: none; } 50% { transform: translateX(2%); } }
.pj-render img { left: 7%; top: 7%; width: 86%; height: 60%; object-fit: cover; border-radius: calc(var(--w) * .035); }
.pj-status { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 7%; height: 22%; display: flex; align-items: center; gap: 5%; padding: 0 4%; border-radius: calc(var(--w) * .035); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font: 600 calc(var(--w) * .075) / 1 var(--font, system-ui); color: #fff; white-space: nowrap; overflow: hidden; }
.pj-ring { position: absolute; left: 3%; width: calc(var(--w) * .2); height: calc(var(--w) * .2); transform: rotate(-90deg); }
.pj-ring circle { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3.4; }
.pj-ring .arc { stroke: #C6F135; stroke-linecap: round; stroke-dasharray: 72 100; animation: pj-ring 5s ease-in-out infinite; }
.pj-pct { width: calc(var(--w) * .2); flex: none; text-align: center; font-size: calc(var(--w) * .06); }
@keyframes pj-ring { 0% { stroke-dasharray: 8 100; } 70%, 100% { stroke-dasharray: 72 100; } }
.pj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding: 7%; }
.pj-grid span { position: relative; z-index: 1; border-radius: calc(var(--w) * .03); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.pj-grid img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-grid .pj-play { border-left-width: calc(var(--w) * .045); border-top-width: calc(var(--w) * .03); border-bottom-width: calc(var(--w) * .03); }
@media (prefers-reduced-motion: reduce) { .pj-row.on, .pj-ring .arc { animation: none; } }
.pj-grid { grid-template-rows: 1fr 1fr; }
.pj-list .pj-row { width: 100%; box-sizing: border-box; }
.pj-list .pj-row img { flex: none; width: 46%; }
.pj-status { gap: 3%; font-size: calc(var(--w) * .064); }
.pj-ring { width: calc(var(--w) * .17); height: calc(var(--w) * .17); }
.pj-pct { width: calc(var(--w) * .17); font-size: calc(var(--w) * .05); margin-left: -1%; }
/* padding in % would be a share of the whole card row, not the card: size it from --w instead */
.pj-list { padding: 0 calc(var(--w) * .07); gap: calc(var(--w) * .035); }
.pj-row { padding: calc(var(--w) * .018); gap: calc(var(--w) * .04); height: calc(var(--w) * .19); }
.pj-grid { padding: calc(var(--w) * .07); gap: calc(var(--w) * .04); }
.pj-status { padding: 0 calc(var(--w) * .03); gap: calc(var(--w) * .025); }
.pj-row b { padding: calc(var(--w) * .012) calc(var(--w) * .025); }
.pj-me .pj-mascot { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pj-me .pj-mascot { object-fit: contain; }
