/*
 * Homepage (docs/03 §2.1): hero, artist, categories, selected works,
 * commission note, studio and the acquisition panel.
 */

/* Hero: dark ground under the overlay header; the name set large, the
   work (when there is one) given the right-hand side. */

.ru-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(100svh, 62rem);
    padding: calc(var(--ru-header-height) + clamp(3rem, 2rem + 4vw, 6rem)) 0 clamp(5rem, 4rem + 4vw, 8rem);
    background: var(--ru-color-dark);
    color: var(--ru-neutral-100);
}

.ru-hero__inner {
    display: grid;
    gap: var(--ru-space-8) clamp(2rem, 1rem + 5vw, 7rem);
    align-items: center;
}

.ru-hero__title {
    margin: 0;
    max-width: 9ch;
    font-size: var(--ru-fs-900);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.025em;
}

/* Approved accent as a decorative rule (non-text, docs/02 §2.1). */
.ru-hero__title::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 1px;
    margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    background: var(--ru-ochre);
}

.ru-hero__lead {
    max-width: 30rem;
    margin: var(--ru-space-5) 0 0;
    font-size: var(--ru-fs-300);
    line-height: 1.6;
    color: var(--ru-night-soft);
}

.ru-hero .ru-placeholder--note {
    max-width: 30rem;
    margin-top: var(--ru-space-5);
}

.ru-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ru-space-3);
    margin: var(--ru-space-7) 0 0;
}

.ru-hero__media {
    margin: 0;
    width: 100%;
    max-width: 34rem;
    justify-self: end;
}

.ru-hero__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--ru-space-1) var(--ru-space-3);
    margin-top: var(--ru-space-3);
    font-size: var(--ru-fs-100);
}

.ru-hero__caption .ru-label {
    color: var(--ru-night-muted);
}

.ru-hero__caption a {
    font-family: var(--ru-font-display);
    font-size: var(--ru-fs-300);
    font-style: italic;
    color: var(--ru-neutral-100);
    text-decoration: none;
}

.ru-hero__caption a:hover {
    color: var(--ru-ochre);
}

/* Exploration cue: a label and a line drawn once, bottom left. */
.ru-hero__cue {
    position: absolute;
    left: max(var(--ru-gutter), calc((100% - var(--ru-container)) / 2));
    bottom: var(--ru-space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--ru-space-3);
    min-height: 44px;
    color: var(--ru-night-soft);
    font-size: var(--ru-fs-50);
    font-weight: 600;
    letter-spacing: var(--ru-tracking-label);
    text-transform: uppercase;
    text-decoration: none;
}

.ru-hero__cue:hover {
    color: var(--ru-neutral-100);
}

.ru-hero__cue-line {
    position: relative;
    overflow: hidden;
    width: 3.5rem;
    height: 1px;
    background: rgb(185 174 159 / 0.3);
}

.ru-hero__cue-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ru-ochre);
    transform: translateX(-100%);
    animation: ru-cue 2.4s var(--ru-ease) 1.2s forwards;
}

/* Drawn once (under 5 s, so no pause control is needed, docs/02 §6). */
@keyframes ru-cue {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ru-hero__cue-line::after {
        animation: none;
        transform: none;
    }
}

@media (min-width: 992px) {
    .ru-hero--media .ru-hero__inner {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    }

    .ru-hero__title {
        max-width: 8ch;
    }
}

/* Phones: a composed stack — the name first, the work beneath at a
   comfortable width, no full-viewport stretch. */
@media (max-width: 991.98px) {
    .ru-hero {
        min-height: auto;
    }

    .ru-hero:not(.ru-hero--media) {
        min-height: 78svh;
    }

    .ru-hero__media {
        justify-self: start;
        max-width: 26rem;
    }
}

/* Artist: portrait beside the positioning statement. */
.ru-artist .ru-split__media {
    max-width: 30rem;
}

/* Commission: deliberately secondary — a ruled band, not a feature. */
.ru-aside-band {
    display: grid;
    gap: var(--ru-space-4) var(--ru-gutter);
    padding: var(--ru-space-6) 0;
    border-top: 1px solid var(--ru-color-border);
    border-bottom: 1px solid var(--ru-color-border);
}

.ru-aside-band__title {
    margin: 0;
    font-size: var(--ru-fs-400);
}

.ru-aside-band__body > .ru-placeholder:first-child {
    margin-top: 0;
}

@media (min-width: 992px) {
    .ru-aside-band {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(0, 1fr);
    }
}

/* Acquisition: a framed panel on paper with the heading set large. */
.ru-acquire__panel {
    display: grid;
    gap: var(--ru-space-6) var(--ru-gutter);
    padding: clamp(2rem, 1.2rem + 4vw, 5.5rem);
    background: var(--ru-color-surface);
    border: 1px solid var(--ru-color-border);
}

.ru-acquire__title {
    margin: 0;
    font-size: var(--ru-fs-700);
    font-weight: 300;
    line-height: 1;
}

.ru-acquire__body > .ru-placeholder:first-child {
    margin-top: 0;
}

.ru-acquire__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ru-space-3);
    margin: var(--ru-space-5) 0 0;
}

@media (min-width: 992px) {
    .ru-acquire__panel {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: end;
    }
}

/* Phones: full-width buttons read as intended actions, not stray chips. */
@media (max-width: 575.98px) {
    .ru-hero__actions .ru-button,
    .ru-acquire__actions .ru-button {
        flex: 1 1 100%;
    }
}
