/* Casi d'uso (casi-uso.html), part 1: hero with the trailer that grows into the screen, the pinned statement, the team
   of ten, the sticky department index. Same grammar as the landing: black and paper sections, one idea per screen. */

/* hero */
.cu-hero { padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.cu-hero::before { content: ""; position: absolute; inset: -10% -20% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 55% at 38% 30%, rgba(8, 148, 255, .26), transparent 70%), radial-gradient(38% 50% at 64% 36%, rgba(201, 89, 221, .22), transparent 70%), radial-gradient(30% 40% at 52% 60%, rgba(255, 46, 84, .12), transparent 70%);
  animation: cuGlow 14s ease-in-out infinite alternate; }
@keyframes cuGlow { to { transform: translate3d(0, 4%, 0) scale(1.08); } }
.cu-hero .wrap { width: min(1260px, 100% - 2 * var(--gutter)); }
/* Headline in three beats: the question (small, then struck through), «No.» landing like a stamp, the answer as the
   loudest line with a slowly travelling gradient. Sizes are relative to the h1 so it scales from phone to desktop. */
.cu-h1 { display: flex; flex-direction: column; align-items: center; margin: 14px 0 0; font-size: clamp(44px, 10.4vw, 132px); font-weight: 750; letter-spacing: -.045em; line-height: .98; }
.cu-h1 > span { display: block; padding-bottom: .06em; white-space: nowrap; }
.cu-h1 .cu-q { position: relative; font-size: .42em; font-weight: 600; letter-spacing: -.025em; color: #8e8e93; margin-bottom: .32em; }
.cu-h1 .cu-q::after { content: ""; position: absolute; left: -.12em; right: -.12em; top: 53%; height: .07em; border-radius: 1em; background: #ff375f; opacity: .9; transform: scaleX(0); transform-origin: 0 50%; animation: cuStrike .55s var(--ease) both; animation-delay: calc(1 * 140ms + 760ms); }
@keyframes cuStrike { to { transform: scaleX(1); } }
.cu-h1 .cu-no { font-size: .74em; color: #f5f5f7; animation: cuStamp .7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: 1.15s; }
@keyframes cuStamp { from { opacity: 0; transform: scale(1.5); filter: blur(10px); } 60% { opacity: 1; filter: blur(0); } }
.cu-h1 .cu-a { background: linear-gradient(90deg, #0894ff, #c959dd 22%, #ff2e54 42%, #ff9004 50%, #ff2e54 58%, #c959dd 78%, #0894ff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cuIn 1.1s var(--ease) both, cuFlow 9s linear 2s infinite; animation-delay: calc(var(--d, 0) * 140ms + 760ms), 2s; }
.cu-h1 .cu-a .nw { display: inline; white-space: nowrap; }
@keyframes cuFlow { to { background-position: -220% 0; } }
@media (max-width: 600px) { .cu-h1 { font-size: clamp(36px, 11.6vw, 60px); } .cu-h1 > span.cu-a { white-space: normal; text-align: center; line-height: 1.02; } }
.cu-hero .subhead { max-width: 700px; }
/* staged entry on load */
.cu-in { animation: cuIn 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 140ms + 120ms); }
@keyframes cuIn { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } }

.cu-trailer { width: min(1260px, 100% - 2 * var(--gutter)); margin: clamp(48px, 6vw, 80px) auto 0; transform-origin: 50% 0;
  transform: scale(var(--s, .88)); transition: transform .12s linear; will-change: transform; }
.demo-note { margin: 20px auto 0; padding-inline: var(--gutter); text-align: center; font-size: 12px; line-height: 1.4; color: var(--k-fg-2); }

/* video frame (shared by trailer and chapters) */
.cu-frame { position: relative; overflow: hidden; border-radius: clamp(16px, 2vw, 28px); background: #000; aspect-ratio: 16 / 9; isolation: isolate; }
.cu-frame.big { box-shadow: 0 40px 120px rgba(8, 148, 255, .12), 0 30px 80px rgba(0, 0, 0, .5); }
.cu-frame video, .cu-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cu-cover { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .5s var(--ease); }
.cu-cover img { transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.cu-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; }
.cu-cover:hover img { transform: scale(1.025); filter: saturate(1.08); }
.cu-cover.off { opacity: 0; pointer-events: none; }
.cu-play { position: absolute; z-index: 1; left: 50%; bottom: clamp(14px, 2.6vw, 30px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 18px 7px 7px; border-radius: 999px; background: rgba(28, 28, 30, .62); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .4s var(--ease), background .3s; }
.cu-play i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.cu-play svg { width: 15px; height: 15px; margin-left: 2px; fill: #000; }
.cu-play em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.cu-cover:hover .cu-play { transform: translateX(-50%) translateY(-2px); background: rgba(28, 28, 30, .78); }
.cu-cover:hover .cu-play i { transform: scale(1.08); }
.cu-cover:focus-visible { outline: 3px solid var(--k-link); outline-offset: -3px; }

/* pinned statement */
.cu-scrub { height: 260vh; background: var(--k-bg); color: var(--k-fg); }
.cu-scrub .stick { position: sticky; top: 52px; height: calc(100vh - 52px); display: flex; align-items: center; }
.cu-scrub p { margin: 0; font-size: clamp(34px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.cu-scrub .w { opacity: .16; transition: opacity .4s ease; }
.cu-scrub .w.on { opacity: 1; }
.cu-scrub .w.hi.on { background: var(--ai); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* team */
.cu-team { padding-bottom: clamp(72px, 9vw, 130px); }
.cu-members { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(44px, 5vw, 72px); }
.cu-member { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 14px 22px; border-radius: 26px; background: var(--bg-alt); text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
.cu-member::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, var(--h1), var(--h2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.cu-member:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .08); }
.cu-member:hover::before, .cu-member:focus-visible::before { opacity: 1; }
.cu-face { position: relative; display: grid; place-items: end center; width: 104px; height: 104px; margin-bottom: 12px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 25%, #fff, color-mix(in srgb, var(--h1) 22%, #fff)); box-shadow: inset 0 -10px 30px color-mix(in srgb, var(--h2) 18%, transparent); }
.cu-face img { width: 88%; height: 88%; object-fit: contain; transition: transform .6s var(--ease); }
.cu-member:hover .cu-face img { transform: translateY(-3px) scale(1.04); }
.cu-member b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cu-member > span:last-child { font-size: 13px; line-height: 1.3; color: var(--fg-2); text-wrap: balance; }
.cu-members.arm .cu-member { opacity: 0; transform: translateY(30px) scale(.97); }
.cu-members.play .cu-member { animation: cuMember .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes cuMember { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

/* sticky index */
.cu-index { position: sticky; top: 52px; z-index: 20; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.cu-index-in { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent); display: flex; gap: 4px; width: min(1260px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 9px 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cu-index-in::-webkit-scrollbar { display: none; }
.cu-index a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px 4px 5px; border-radius: 999px; color: var(--fg-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s; }
.cu-index a img { width: 26px; height: 26px; border-radius: 50%; background: #f0f0f3; object-fit: contain; padding-top: 2px; }
.cu-index a:hover { color: var(--fg); background: rgba(0, 0, 0, .04); }
.cu-index a.on { color: var(--fg); background: color-mix(in srgb, var(--h1) 13%, #fff); }
.cu-index { transition: transform .5s var(--ease), opacity .4s; }
.cu-index.away { transform: translateY(-100%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility 0s .5s; }
.cu-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--ai); }

@media (max-width: 1068px) { .cu-members { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cu-face { width: 84px; height: 84px; } }
@media (max-width: 834px) {
  .cu-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-member:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cu-scrub { height: auto; padding-block: 72px; } .cu-scrub .stick { position: static; height: auto; } .cu-scrub .w { opacity: 1; }
  .cu-index { top: 48px; }
  .cu-trailer { transform: none; }
}
@media (max-width: 480px) { .cu-play { font-size: 14px; padding-right: 14px; } .cu-play em { display: none; } }
@media (prefers-reduced-motion: reduce) { .cu-in, .cu-hero::before, .cu-h1 .cu-no, .cu-h1 .cu-a { animation: none; } .cu-h1 .cu-q::after { animation: none; transform: none; } .cu-trailer { transform: none; } .cu-members .cu-member { opacity: 1 !important; transform: none !important; animation: none !important; } }
