main.page, .hero.hero--brand { animation: none !important; transform: none !important; }
.hero--brand .hero-tag {
    width: min(76vw, 740px, 95svh);
    aspect-ratio: 1100 / 560;
    margin: 0 0 16px;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
    animation: none !important;
    transform: none !important;
    opacity: 1;
    flex-shrink: 0;
}
.hero-tag img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-tag.tag-image-failed { font-size: 3rem; line-height: 1.2; aspect-ratio: auto; }
.hero-tag.tag-image-failed .sr-only { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.hero-tag.tag-image-failed img { display: none; }
.tag-hero-veil { position: absolute; inset: 0; z-index: 1; background: #090909; opacity: 0; pointer-events: none; transition: opacity 1400ms ease; }
.hero--brand .hero-links--listen { margin-top: 40px; }
.hero--brand .hero-tag { z-index: 2; }
html.tag-hero-active, html.tag-hero-active body { overflow: hidden; }
html.tag-hero-pending body { background: #090909; }
html.tag-hero-pending .tag-hero-veil { opacity: 1; }
html.tag-hero-pending .hero--brand::before,
html.tag-hero-pending .hero--brand::after { opacity: 0; }
html.tag-hero-pending .header,
html.tag-hero-pending .hero-kicker,
html.tag-hero-pending .hero-links,
html.tag-hero-pending main > :not(.hero--brand),
html.tag-hero-pending footer { opacity: 0; }
.header, .hero--brand .hero-kicker, .hero--brand .hero-links,
main > :not(.hero--brand), footer { transition: opacity 1100ms ease; }
.header { transition: opacity 1100ms ease, transform 300ms ease, background 300ms ease; }
html.tag-hero-pending #preloader,
html.tag-hero-active #preloader { display: none !important; }
.hero--brand .hero-kicker, .hero--brand .hero-links { animation: none !important; transform: none; }
html.tag-hero-pending .hero-tag img { opacity: 0; }
.hero-tag::before, .hero-tag::after {
    content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
    background: url('../assets/arabika-tag-intro.png') center / 100% 100% no-repeat;
}
.hero-tag::before { clip-path: inset(29% 0 55%); }
.hero-tag::after { clip-path: inset(65% 0 22%); }
.hero-tag.tag-glitch::before { animation: tagGlitchUpper 160ms steps(1) both; }
.hero-tag.tag-glitch::after { animation: tagGlitchLower 160ms steps(1) both; }
@keyframes tagGlitchUpper {
    0%, 100% { opacity: 0; transform: none; }
    20% { opacity: .7; transform: translateX(-3px); filter: drop-shadow(2px 0 #da5222); }
    55% { opacity: .45; transform: translateX(2px); filter: none; }
}
@keyframes tagGlitchLower {
    0%, 100% { opacity: 0; transform: none; }
    35% { opacity: .6; transform: translateX(3px); }
    70% { opacity: .35; transform: translateX(-2px); }
}
html.tag-hero-drawing .hero-tag img { opacity: 1; animation: heroTagInk 1250ms cubic-bezier(.25,.55,.25,1) both; }
html.tag-hero-opening .header { transition-delay: 80ms; }
html.tag-hero-opening .hero-links { transition-delay: 250ms; }
html.tag-hero-opening main > :not(.hero--brand) { transition-delay: 350ms; }
@keyframes heroTagInk {
    0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    28% { clip-path: polygon(0 0, 31% 0, 17% 100%, 0 100%); }
    55% { clip-path: polygon(0 0, 59% 0, 42% 100%, 0 100%); }
    78% { clip-path: polygon(0 0, 83% 0, 69% 100%, 0 100%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 600px) {
    .hero--brand .hero-links--listen { margin-top: 28px; }
    .hero--brand .hero-tag { width: min(94vw, 120svh); margin-bottom: 12px; }
    html.tag-hero-drawing .hero-tag img { animation-duration: 1100ms; }
}
@media (max-height: 500px) {
    .hero--brand .hero-links--listen { margin-top: 12px; }
    .hero.hero--brand { padding: 20px 16px 28px; min-height: calc(100svh - 64px); }
    .hero--brand .hero-tag { width: min(70vw, 650px, 70svh); margin-bottom: 12px; }
    .hero--brand .hero-kicker { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-tag::before, .hero-tag::after { display: none; animation: none !important; }
    .hero-tag img { animation: none !important; opacity: 1 !important; }
    .tag-hero-veil { display: none; }
    .header, .hero--brand .hero-kicker, .hero--brand .hero-links,
    main > :not(.hero--brand), footer { transition: none; }
    /* The requested entrance still plays once, without the ambient glitch. */
    html.tag-hero-active .tag-hero-veil { display: block; transition: opacity 1400ms linear; transition-duration: 1400ms !important; }
    html.tag-hero-pending .hero-tag img { opacity: 0 !important; }
    html.tag-hero-drawing .hero-tag img { opacity: 1 !important; animation: heroTagInk 1250ms linear both !important; }
    html.tag-hero-active .header, html.tag-hero-active .hero-kicker,
    html.tag-hero-active .hero-links, html.tag-hero-active main > :not(.hero--brand),
    html.tag-hero-active footer { transition: opacity 1100ms linear; transition-duration: 1100ms !important; }
}

/* Reloads keep the same visual language but resolve in about one second. */
html[data-hero-entry-mode="reload"] .tag-hero-veil {
    transition-duration: 260ms !important;
}
html[data-hero-entry-mode="reload"] :is(.header, .hero--brand .hero-kicker, .hero--brand .hero-links, main > :not(.hero--brand), footer) {
    transition-duration: 260ms !important;
    transition-delay: 0ms !important;
}
html[data-hero-entry-mode="reload"].tag-hero-drawing .hero-tag img {
    animation-duration: 340ms !important;
}
