/* Black Mamba: restrained cinematic layer. Static content remains available without JS. */
.hero { isolation: isolate; }
.hero__inner, .hero > .container:last-child { position: relative; z-index: 1; }
.hero__geometry { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__geometry i { position: absolute; width: min(92vw, 1120px); height: 1px; left: 47%; top: 44%; background: linear-gradient(90deg, transparent, rgba(214,255,75,.17), transparent); transform-origin: center; opacity: 0; }
.hero__geometry i:nth-child(1) { transform: rotate(-27deg) scaleX(.35); }
.hero__geometry i:nth-child(2) { transform: rotate(27deg) scaleX(.35); }
.hero__geometry i:nth-child(3) { transform: rotate(90deg) scaleX(.35); }
.hero.is-ready .hero__geometry i { opacity: 1; transition: opacity .85s ease .2s, transform 1.35s var(--ease-out) .2s; }
.hero.is-ready .hero__geometry i:nth-child(1) { transform: rotate(-27deg) scaleX(1); }
.hero.is-ready .hero__geometry i:nth-child(2) { transform: rotate(27deg) scaleX(1); transition-delay: .35s; }
.hero.is-ready .hero__geometry i:nth-child(3) { transform: rotate(90deg) scaleX(1); transition-delay: .5s; }
.hero__case { will-change: transform; }
@media (min-width: 901px) {
  .hero__case { transform: translate3d(0, calc(var(--cinema-hero-scroll, 0) * 1px), 0); }
}

/* The original portfolio gains a subtle editorial rhythm and a curved reveal. */
@media (min-width: 901px) {
  .work-grid > .card-work:nth-child(3n) { margin-top: clamp(30px, 5vw, 76px); }
  .work-grid > .card-work:nth-child(4n) { margin-top: clamp(12px, 2vw, 34px); }
  .work-grid > .card-work[data-reveal]:nth-child(even):not(.is-in) { transform: translate3d(24px, 48px, 0) rotate(2deg); }
  .work-grid > .card-work[data-reveal]:nth-child(odd):not(.is-in) { transform: translate3d(-24px, 48px, 0) rotate(-2deg); }
}
[data-cine-heading] { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), clip-path .95s var(--ease-out); }
html.has-cinema [data-cine-heading]:not(.is-in) { clip-path: inset(0 0 100% 0); }
html.has-cinema [data-cine-heading].is-in { clip-path: inset(0 0 0 0); }
.cinematic-outro { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); margin-bottom: clamp(48px, 8vw, 110px); padding-block: clamp(22px, 3vw, 40px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 clamp(1.45rem, 4.7vw, 5.2rem)/1 var(--display); letter-spacing: -.06em; white-space: nowrap; }
.cinematic-outro span:last-child { color: var(--accent); }
.cinematic-outro i { flex: 1; min-width: 22px; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(.25); transition: transform 1.2s var(--ease-out) .2s; }
.cinematic-outro.is-in i { transform: scaleX(1); }
@media (max-width: 560px) { .cinematic-outro { flex-wrap: wrap; white-space: normal; } .cinematic-outro i { min-width: 28%; } .cinematic-outro span:last-child { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero__geometry i, .hero.is-ready .hero__geometry i { opacity: .5; transition: none; }
  .hero__case { transform: none !important; will-change: auto; }
  [data-cine-heading], .cinematic-outro i { transition: none !important; }
  html.has-cinema [data-cine-heading] { clip-path: none !important; }
  .work-grid > .card-work[data-reveal] { transform: none !important; }
}
