/**
 * Hero Section — Monolith (type-first editorial)
 *
 * Giant artist name layered behind an arched portrait,
 * hairline details, stats marquee, minimal release card.
 *
 * @package Bargtunes
 */

.hv-section {
    --hv-bg: #030303;
    --hv-text: #ffffff;
    --hv-muted: rgba(255, 255, 255, 0.52);
    --hv-faint: rgba(255, 255, 255, 0.3);
    --hv-line: rgba(255, 255, 255, 0.1);
    --hv-surface: rgba(255, 255, 255, 0.035);
    --hv-hover: rgba(255, 255, 255, 0.07);
    --hv-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hv-max: 1680px;
    --hv-gutter: clamp(20px, 4vw, 56px);
    --hv-nav-offset: clamp(88px, 12vh, 120px);
    --hv-dock-offset: var(--fn-dock-clearance, clamp(88px, 13vh, 124px));
    --hv-name-size: clamp(4.25rem, 15.5vw, 15rem);
    --hv-portrait-h: clamp(340px, 56vh, 620px);
}

.bargtunes-hero.hv-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--hv-bg);
    color: var(--hv-text);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    isolation: isolate;
}

.bargtunes-hero.hv-section[dir="rtl"] {
    font-family: ModamWeb, 'Vazirmatn', sans-serif;
}

/* ========================================
   Background
======================================== */
.hv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hv-bg__halo {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 1100px);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.055) 0%, transparent 62%);
    filter: blur(40px);
}

.hv-bg__floor {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background:
        linear-gradient(to top, rgba(255, 255, 255, 0.02), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 96px);
    mask-image: linear-gradient(to top, black 20%, transparent 100%);
}

.hv-bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========================================
   Frame + top row
======================================== */
.hv-frame {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: min(var(--hv-max), calc(100% - var(--hv-gutter) * 2));
    margin-inline: auto;
    padding-top: calc(var(--hv-nav-offset) + env(safe-area-inset-top, 0px));
    min-height: 0;
}

.hv-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 24px);
    margin-bottom: clamp(4px, 1.5vh, 16px);
}

.hv-top__line {
    height: 1px;
    flex: 0 1 clamp(48px, 10vw, 160px);
    background: linear-gradient(to var(--hv-line-dir, right), transparent, var(--hv-line));
}

.hv-top__line:last-child {
    background: linear-gradient(to var(--hv-line-dir-alt, left), transparent, var(--hv-line));
}

.hv-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--hv-muted);
    white-space: nowrap;
}

.hv-section[dir="rtl"] .hv-label {
    letter-spacing: 0.1em;
}

/* ========================================
   Stage — giant name behind arched portrait
======================================== */
.hv-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
}

.hv-name {
    position: absolute;
    inset-inline: 0;
    top: clamp(0px, 2vh, 24px);
    z-index: 0;
    margin: 0;
    text-align: center;
    font-family: 'Bebas Neue', 'Poppins', sans-serif;
    font-size: var(--hv-name-size);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    will-change: transform;
}

.hv-section.is-visible .hv-name {
    opacity: 1;
    clip-path: none;
}

.hv-name__text {
    display: inline-block;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.28) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hv-name--fa {
    font-family: ModamWeb, 'Vazirmatn', sans-serif;
    font-size: calc(var(--hv-name-size) * 0.74);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.02;
    text-transform: none;
}

.hv-name__img {
    display: inline-block;
    max-width: min(70vw, 640px);
    max-height: clamp(90px, 18vh, 200px);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Figure: portrait + ring */
.hv-figure {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hv-portrait {
    position: relative;
    height: var(--hv-portrait-h);
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 20px 20px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--hv-line);
}

.hv-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.08);
    will-change: transform;
    transition: filter 700ms var(--hv-ease);
}

.hv-portrait:hover img {
    filter: grayscale(55%) contrast(1.05);
}

.hv-portrait__fade {
    position: absolute;
    inset: auto 0 0;
    height: 26%;
    background: linear-gradient(to top, rgba(3, 3, 3, 0.85), transparent);
    pointer-events: none;
}

/* Rotating beam along the arch border */
.hv-portrait__beam {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    overflow: hidden;
}

.hv-portrait__beam::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.8) 40deg, transparent 90deg);
    animation: hvBeam 7s linear infinite;
}

@keyframes hvBeam {
    to { transform: rotate(360deg); }
}

/* ========================================
   Intro ring (play button)
======================================== */
.hv-ring {
    position: absolute;
    z-index: 2;
    bottom: 16%;
    inset-inline-end: clamp(-44px, -4vw, -28px);
    display: grid;
    place-items: center;
    width: clamp(96px, 9vw, 118px);
    height: clamp(96px, 9vw, 118px);
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--hv-text);
    direction: ltr;
}

.hv-ring--fa {
    width: clamp(104px, 10vw, 124px);
    height: clamp(104px, 10vw, 124px);
    bottom: 17%;
    inset-inline-end: clamp(-22px, -1.5vw, -8px);
    overflow: visible;
}

.hv-ring__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: hvRingSpin 18s linear infinite;
    pointer-events: none;
}

.hv-ring__halo {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hv-ring__ticks {
    display: block;
    width: 100%;
    height: 100%;
    animation: hvRingSpin 16s linear infinite;
}

.hv-ring__caption {
    position: absolute;
    left: 50%;
    bottom: -1.55rem;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 9.5rem;
    padding: 0.28rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.92);
    font-family: ModamWeb, Tahoma, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    direction: rtl;
    unicode-bidi: isolate;
}

.hv-ring__text {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    font-weight: 600;
}

.hv-ring__text--en {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@keyframes hvRingSpin {
    to { transform: rotate(360deg); }
}

.hv-ring__play {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(8, 8, 8, 0.72);
    border: 1px solid var(--hv-line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 300ms var(--hv-ease), background 300ms var(--hv-ease);
}

.hv-ring--fa .hv-ring__play {
    width: 52px;
    height: 52px;
}

.hv-ring__play svg {
    width: 15px;
    height: 15px;
    margin-inline-start: 2px;
}

.hv-ring:hover .hv-ring__play,
.hv-ring.is-playing .hv-ring__play {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.12);
}

.hv-ring.is-playing .hv-ring__play {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.hv-ring--fa:hover .hv-ring__caption,
.hv-ring--fa.is-playing .hv-ring__caption {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(12, 12, 12, 0.88);
}

/* ========================================
   Side panels
======================================== */
.hv-panel {
    position: absolute;
    bottom: clamp(8px, 2.5vh, 28px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hv-panel--intro {
    inset-inline-start: 0;
    align-items: flex-start;
    max-width: min(360px, 27vw);
    gap: clamp(14px, 2vh, 20px);
}

.hv-panel--aside {
    inset-inline-end: 0;
    align-items: flex-end;
    max-width: min(320px, 24vw);
    gap: clamp(14px, 2vh, 20px);
    text-align: end;
}

/* Headline + description */
.hv-headline {
    margin: 0;
    font-size: clamp(1.3rem, 1.9vw, 1.9rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.hv-headline--fa {
    font-family: ModamWeb, 'Vazirmatn', sans-serif;
    text-transform: none;
    line-height: 1.25;
}

.hv-headline__line {
    display: block;
}

.hv-headline__line--dim {
    color: var(--hv-faint);
    -webkit-text-stroke: 0;
}

.hv-desc {
    max-width: 340px;
}

.hv-desc p {
    margin: 0 0 0.6em;
    font-size: clamp(0.82rem, 0.95vw, 0.92rem);
    line-height: 1.75;
    color: var(--hv-muted);
}

.hv-desc p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.hv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 300ms var(--hv-ease), background 300ms var(--hv-ease), border-color 300ms var(--hv-ease);
}

.hv-section[dir="rtl"] .hv-btn {
    letter-spacing: 0.02em;
}

.hv-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.hv-btn--solid {
    background: var(--hv-text);
    color: #050505;
    border: 1px solid var(--hv-text);
}

.hv-btn--solid svg {
    color: #050505;
}

.hv-btn--solid:hover {
    transform: translateY(-3px);
    color: #050505;
}

.hv-btn--ghost {
    background: transparent;
    color: var(--hv-text);
    border: 1px solid var(--hv-line);
}

.hv-btn--ghost:hover {
    transform: translateY(-3px);
    background: var(--hv-hover);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--hv-text);
}

/* ========================================
   Release card (aside)
======================================== */
.hv-release {
    display: block;
    width: 100%;
    padding: clamp(14px, 1.6vw, 18px);
    border-radius: 18px;
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-decoration: none;
    color: var(--hv-text);
    transition: transform 300ms var(--hv-ease), background 300ms var(--hv-ease), border-color 300ms var(--hv-ease);
}

.hv-release:hover {
    transform: translateY(-4px);
    background: var(--hv-hover);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--hv-text);
}

.hv-release__label {
    display: block;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hv-muted);
}

.hv-section[dir="rtl"] .hv-release__label {
    letter-spacing: 0.08em;
}

.hv-release__body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hv-release__cover {
    position: relative;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hv-line);
}

.hv-release__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: transform 400ms var(--hv-ease), filter 400ms var(--hv-ease);
}

.hv-release:hover .hv-release__cover img {
    transform: scale(1.07);
    filter: grayscale(30%);
}

.hv-release__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 300ms var(--hv-ease);
}

.hv-release__play svg {
    width: 16px;
    height: 16px;
}

.hv-release:hover .hv-release__play {
    opacity: 1;
}

.hv-release__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    text-align: start;
}

.hv-release__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.hv-section[dir="rtl"] .hv-release__title {
    letter-spacing: 0;
}

.hv-release__info {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hv-muted);
}

.hv-section[dir="rtl"] .hv-release__info {
    letter-spacing: 0.04em;
}

.hv-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    width: 100%;
    max-width: 140px;
}

.hv-waveform__bar {
    flex: 1;
    max-width: 3px;
    height: calc(30% + (var(--wi) * 7% - (var(--wi) * var(--wi) * 0.4%)));
    max-height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    transform-origin: bottom;
    animation: hvWave 1.1s ease-in-out infinite;
    animation-delay: calc(var(--wi) * 0.06s);
    animation-play-state: paused;
}

.hv-release.is-playing .hv-waveform__bar {
    animation-play-state: running;
    background: rgba(255, 255, 255, 0.7);
}

@keyframes hvWave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* ========================================
   Socials (aside)
======================================== */
.hv-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.hv-social__label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv-faint);
}

.hv-section[dir="rtl"] .hv-social__label {
    letter-spacing: 0.08em;
}

.hv-social__icons {
    display: flex;
    gap: 8px;
}

.hv-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--hv-line);
    background: var(--hv-surface);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 300ms var(--hv-ease), background 300ms var(--hv-ease), color 300ms var(--hv-ease);
}

.hv-social__icon svg {
    width: 15px;
    height: 15px;
}

.hv-social__icon:hover {
    transform: translateY(-3px);
    background: var(--hv-hover);
    color: var(--hv-text);
}

/* ========================================
   Stats marquee
======================================== */
.hv-marquee {
    position: relative;
    z-index: 1;
    margin-bottom: calc(var(--hv-dock-offset) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--hv-line);
    border-bottom: 1px solid var(--hv-line);
    padding-block: 13px;
    overflow: hidden;
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.hv-marquee__inner {
    display: flex;
    width: max-content;
    animation: hvMarquee 46s linear infinite;
}

.hv-marquee:hover .hv-marquee__inner {
    animation-play-state: paused;
}

.hv-marquee__track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hv-marquee__item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv-muted);
    white-space: nowrap;
}

.hv-section[dir="rtl"] .hv-marquee__item {
    letter-spacing: 0.06em;
}

.hv-marquee__sep {
    margin-inline: clamp(18px, 2.5vw, 36px);
    font-size: 10px;
    color: var(--hv-faint);
}

@keyframes hvMarquee {
    to { transform: translateX(-50%); }
}

/* ========================================
   Scroll cue (side rail)
======================================== */
.hv-scroll {
    position: absolute;
    z-index: 2;
    inset-inline-start: clamp(14px, 2.4vw, 36px);
    bottom: calc(var(--hv-dock-offset) + clamp(56px, 8vh, 88px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--hv-faint);
    transition: color 300ms var(--hv-ease);
}

.hv-scroll:hover {
    color: var(--hv-text);
    transform: none;
}

.hv-scroll__text {
    writing-mode: vertical-rl;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hv-section[dir="rtl"] .hv-scroll__text {
    letter-spacing: 0.12em;
}

.hv-scroll__line {
    position: relative;
    width: 1px;
    height: clamp(36px, 6vh, 60px);
    background: var(--hv-line);
    overflow: hidden;
}

.hv-scroll__line::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: -40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.7);
    animation: hvScrollDrop 2.2s var(--hv-ease) infinite;
}

@keyframes hvScrollDrop {
    0% { top: -40%; }
    60%, 100% { top: 110%; }
}

/* ========================================
   SVG base
======================================== */
.hv-section svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hv-section svg [fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

/* ========================================
   Responsive
======================================== */

/* Large desktop */
@media (min-width: 1600px) {
    .hv-section {
        --hv-name-size: clamp(13rem, 15vw, 17rem);
        --hv-portrait-h: clamp(420px, 58vh, 680px);
    }
}

/* Laptop */
@media (max-width: 1280px) {
    .hv-section {
        --hv-name-size: clamp(4rem, 15vw, 11rem);
        --hv-portrait-h: clamp(320px, 52vh, 540px);
    }

    .hv-panel--intro {
        max-width: min(320px, 30vw);
    }

    .hv-panel--aside {
        max-width: min(280px, 26vw);
    }
}

/* Tablet landscape */
@media (max-width: 1100px) {
    .hv-scroll {
        display: none;
    }

    .hv-headline {
        font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    }
}

/* Tablet portrait & below — stacked flow */
@media (max-width: 900px) {
    .hv-section {
        --hv-nav-offset: clamp(80px, 11vh, 104px);
        --hv-name-size: clamp(3.4rem, 16.5vw, 7.5rem);
        --hv-portrait-h: clamp(300px, 44vh, 460px);
        min-height: auto;
    }

    .hv-stage {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .hv-name {
        position: static;
        margin-bottom: calc(var(--hv-name-size) * -0.42);
        white-space: normal;
        line-height: 0.9;
    }

    .hv-name--fa {
        margin-bottom: calc(var(--hv-name-size) * -0.3);
        line-height: 1.05;
    }

    .hv-figure {
        margin-bottom: clamp(20px, 4vw, 32px);
    }

    .hv-ring {
        bottom: 10%;
        inset-inline-end: clamp(-30px, -6vw, -18px);
        width: clamp(88px, 22vw, 104px);
        height: clamp(88px, 22vw, 104px);
    }

    .hv-ring--fa {
        width: clamp(96px, 24vw, 112px);
        height: clamp(96px, 24vw, 112px);
        inset-inline-end: clamp(-10px, -2vw, 6px);
        bottom: 12%;
    }

    .hv-ring__caption {
        bottom: -1.4rem;
        font-size: 0.68rem;
        padding: 0.24rem 0.62rem;
    }

    .hv-panel {
        position: static;
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .hv-panel--intro {
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .hv-panel--aside {
        align-items: center;
        text-align: center;
        margin-top: clamp(18px, 4vw, 28px);
        margin-bottom: clamp(20px, 5vw, 36px);
    }

    .hv-desc {
        max-width: 440px;
    }

    .hv-actions {
        justify-content: center;
    }

    .hv-release {
        max-width: 380px;
    }

    .hv-social {
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hv-section {
        --hv-gutter: clamp(16px, 4.5vw, 24px);
        --hv-name-size: clamp(3rem, 17vw, 5.5rem);
        --hv-portrait-h: clamp(280px, 42vh, 400px);
        --hv-dock-offset: var(--fn-dock-clearance, clamp(96px, 15vh, 136px));
    }

    .hv-top__line {
        flex-basis: clamp(28px, 12vw, 64px);
    }

    .hv-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: min(100%, 190px);
        min-height: 48px;
    }

    .hv-marquee__item {
        font-size: 10px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hv-section {
        --hv-name-size: clamp(2.5rem, 16vw, 3.8rem);
        --hv-portrait-h: clamp(250px, 38vh, 340px);
    }

    .hv-actions {
        flex-direction: column;
        width: 100%;
    }

    .hv-btn {
        width: 100%;
    }

    .hv-ring {
        inset-inline-end: -12px;
        width: 84px;
        height: 84px;
    }

    .hv-ring__play {
        width: 42px;
        height: 42px;
    }

    .hv-release {
        max-width: none;
        width: 100%;
    }

    .hv-social__icon {
        width: 42px;
        height: 42px;
    }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
    .hv-section {
        --hv-nav-offset: 68px;
        --hv-dock-offset: 76px;
        --hv-name-size: clamp(3rem, 11vw, 5rem);
        --hv-portrait-h: clamp(220px, 55vh, 300px);
        min-height: auto;
    }

    .hv-stage {
        padding-block: 12px;
    }

    .hv-scroll {
        display: none;
    }
}

/* Short desktop screens */
@media (max-height: 720px) and (min-width: 901px) {
    .hv-section {
        --hv-nav-offset: clamp(72px, 10vh, 96px);
        --hv-name-size: clamp(4rem, 12vw, 10rem);
        --hv-portrait-h: clamp(280px, 50vh, 480px);
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .hv-btn:hover,
    .hv-release:hover,
    .hv-social__icon:hover {
        transform: none;
    }

    .hv-btn,
    .hv-ring,
    .hv-release,
    .hv-social__icon {
        -webkit-tap-highlight-color: transparent;
    }

    .hv-btn:active,
    .hv-ring:active,
    .hv-social__icon:active {
        transform: scale(0.98);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hv-ring__svg,
    .hv-ring__ticks,
    .hv-portrait__beam::before,
    .hv-waveform__bar,
    .hv-scroll__line::after,
    .hv-marquee__inner {
        animation: none;
    }

    .hv-portrait img {
        transform: none !important;
    }
}
