/* Shared updates for the homepage, contact form and keyboard navigation. */
:focus-visible { outline: 2px solid #f7f7f7; outline-offset: 5px; }
#showcase, #contactForm, #form-status { scroll-margin-top: 7rem; }

.hero { height: auto; min-height: 85vh; min-height: 85svh; padding: 9rem 0 6rem; }
.hero-still { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-motion { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-motion.is-visible { opacity: 1; }
.hero .hero-overlay { background: linear-gradient(180deg, rgba(10,10,12,.66) 0%, rgba(10,10,12,.72) 60%, #0a0a0c 100%); }
.hero .hero-title { font-size: clamp(2.4rem, 7vw, 5.75rem); letter-spacing: -.055em; text-wrap: balance; }
.hero:has(.hero-headlines) .hero-content { width: 100%; max-width: 72rem; }
.hero .hero-headlines {
    display: grid; align-items: center; font-size: clamp(1.8rem, 7vw, 5.5rem);
    font-weight: 900; line-height: .99; letter-spacing: -.045em; text-transform: uppercase;
}
.hero-readable-heading {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; text-transform: none;
}
.hero-statement {
    grid-area: 1 / 1; opacity: 0; transform: translateY(.2em);
    pointer-events: none; transition: opacity .35s ease, transform .45s ease;
}
.hero-statement.is-current { opacity: 1; transform: translateY(0); }
.hero .hero-subtitle { max-width: 38rem; margin: 0 auto 2rem; color: #ebebeb; font-weight: 400; text-wrap: pretty; }
.hero-kicker { color: #f7f7f7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-actions a { margin: 0; padding: 1rem 1.5rem; }
.hero-actions .cta-button { background: #f7f7f7; color: #101012; }
.hero-actions .cta-button:hover { background: #dbdbdb; color: #101012; }

.work-section { padding: clamp(3rem, 7vw, 7rem) 0; }
.work-section .section-header { margin-bottom: 2rem; }
.work-showreel { display: block; width: 100%; height: auto; margin: 0 0 var(--reel-gap); aspect-ratio: 16/9; background: #18181a; border: 1px solid #343438; border-radius: .75rem; }
.studio-reels { --reel-gap: clamp(3px, .6vw, 6px); max-width: 65rem; margin: 0 auto; }
.studio-reels-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .75rem; }
.studio-reels-header h3 { font-size: clamp(1.15rem, 3vw, 1.65rem); margin: 0; }
.studio-reels-hint { margin: .2rem 0 0; font-size: .8rem; color: #c4c4c8; }
.studio-reels-nav { display: flex; gap: .35rem; }
.studio-reels-nav[hidden], .reel-sound[hidden], .work-card[hidden] { display: none; }
.studio-reels-nav button {
    min-width: 44px; min-height: 44px; border: 1px solid #535358; border-radius: 50%;
    background: #18181a; color: #fff; font: inherit; cursor: pointer;
}
.studio-reels-nav button:hover { background: #333337; }
.is-carousel .studio-reels-window { overflow: hidden; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--reel-gap); }
.work-card { min-width: 0; }
.reel-media { position: relative; }
.work-card video { display: block; width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; background: #18181a; border: 1px solid #343438; border-radius: .75rem; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .is-carousel .studio-reels-window { container-type: inline-size; }
    .is-carousel .work-grid {
        /* Reserve the enlarged row height so content below does not jump. */
        min-height: calc((100cqw - 2 * var(--reel-gap)) * 1.15 / 3 * 16 / 9);
        transition: grid-template-columns .22s ease-out;
    }
    .is-carousel .work-grid:has(> .work-card:nth-child(1):hover) {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .925fr) minmax(0, .925fr);
    }
    .is-carousel .work-grid:has(> .work-card:nth-child(2):hover) {
        grid-template-columns: minmax(0, .925fr) minmax(0, 1.15fr) minmax(0, .925fr);
    }
    .is-carousel .work-grid:has(> .work-card:nth-child(3):hover) {
        grid-template-columns: minmax(0, .925fr) minmax(0, .925fr) minmax(0, 1.15fr);
    }
}
.reel-sound {
    position: absolute; inset: 0; width: 100%; border: 0; border-radius: .75rem;
    background: transparent; color: #fff; cursor: pointer;
}
.reel-sound:focus-visible { outline-offset: -4px; }
.reel-sound span {
    position: absolute; display: grid; place-items: center; right: .4rem; bottom: .4rem;
    width: clamp(1.45rem, 5vw, 2rem); aspect-ratio: 1; border-radius: 50%; background: #111d;
}
.reel-sound svg { width: 60%; }
.reel-sound .reel-audible, .reel-sound[aria-pressed="true"] .reel-muted { display: none; }
.reel-sound[aria-pressed="true"] .reel-audible { display: block; }

.form-status { padding: 1rem; border: 1px solid #8c8c8f; background: #242426; color: #fff; border-radius: .5rem; }
.form-status[data-state="error"] { border-color: #f29d9d; }
.form-status[data-state="success"] { border-color: #a1d7b8; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.submit-btn:disabled { opacity: .65; cursor: wait; }
.pkg-btn-primary { text-decoration: none; }
.quote-note { color: #d4d4d7; max-width: 42rem; margin: 0 auto 1rem; }

.has-menu .nav-menu:not(.active) { visibility: hidden; }
.has-menu .nav-menu.active { overflow: auto; }
html:not(.has-menu) .nav-toggle { display: none; }
html:not(.has-reveal) :is(.fade-up,.slide-left,.slide-right,.scale-in,.blur-in,.rotate-in),
:is(.fade-up,.slide-left,.slide-right,.scale-in,.blur-in,.rotate-in):focus-within {
    opacity: 1; transform: none; filter: none;
}
@media (max-width: 640px) {
    .hero { min-height: 76svh; padding: 7.5rem 0 4rem; }
}

@media (max-width: 480px) {
    .transition-logo { font-size: 12vw; white-space: nowrap; }
}
