/* Home: pull landing gallery closer to site header */
body.page-home header {
    margin-bottom: clamp(10px, 2.5vw, 18px);
}

.hero-section.hero-section--home {
    padding-top: 0;
}

.hero-section.hero-section--home .landing-showcase.card {
    margin-top: 0;
}

/* Hero copy — aligned with gallery width, clearer hierarchy */
.hero-section--home .hero-copy {
    margin-top: clamp(8px, 2vw, 16px);
}

.hero-section--home .hero-eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange-deep);
}

.hero-section--home .hero-title {
    margin: 0 0 clamp(16px, 4vw, 24px);
    max-width: 22ch;
    font-size: clamp(1.65rem, 6vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-section--home .hero-body {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3vw, 20px);
}

.hero-section--home .hero-lead {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(1rem, 3.2vw, 1.15rem);
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

.hero-section--home .hero-line {
    margin: clamp(20px, 4vw, 28px) 0 0;
    padding: clamp(14px, 3vw, 18px) clamp(16px, 3vw, 22px);
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    line-height: 1.5;
    font-weight: 500;
    border: var(--border-width) solid var(--text-color);
    background: linear-gradient(135deg, var(--surface-orange) 0%, var(--surface-blue) 100%);
    box-shadow: 4px 4px 0 var(--accent-blue-soft);
}

.hero-section--home .hero-line__accent {
    font-weight: 800;
    color: var(--text-color);
}

.hero-section--home .hero-cta {
    margin-top: 0;
}

/* Teaser row → opens tagline dialog */
.home-tagline-teaser {
    margin-top: clamp(20px, 5vw, 32px);
}

.home-tagline-teaser:hover {
    transform: none;
}

.home-tagline-teaser__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
}

.home-tagline-teaser__title {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-tagline-teaser__hint {
    margin: 0;
    font-size: clamp(0.88rem, 2.6vw, 0.95rem);
    color: var(--text-muted);
    max-width: 36ch;
}

.home-tagline-teaser__btn {
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .home-tagline-teaser__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .home-tagline-teaser__btn {
        width: 100%;
        text-align: center;
    }
}

/* Native dialog — centred tagline */
.org-tagline-dialog {
    padding: 0;
    border: none;
    max-width: calc(100vw - 2 * var(--page-pad-x, 16px));
    width: min(92vw, 520px);
    background: transparent;
}

.org-tagline-dialog::backdrop {
    background: rgba(21, 66, 143, 0.42);
    backdrop-filter: blur(4px);
}

.org-tagline-dialog__panel {
    position: relative;
    padding: clamp(28px, 6vw, 40px) clamp(22px, 5vw, 36px);
    border: var(--border-width) solid var(--text-color);
    background: linear-gradient(165deg, var(--bg-color) 0%, var(--surface-blue) 45%, var(--surface-orange) 100%);
    box-shadow: 10px 10px 0 var(--accent-orange);
    text-align: center;
}

.org-tagline-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: var(--border-width) solid var(--text-color);
    background: var(--bg-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-color);
    transition: background 0.15s ease, color 0.15s ease;
}

.org-tagline-dialog__close:hover {
    background: var(--accent-orange);
    color: var(--bg-color);
}

.org-tagline-dialog__kicker {
    margin: 0 0 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-orange-deep);
}

.org-tagline-dialog__line {
    margin: 0;
    font-size: clamp(1.15rem, 4vw, 1.55rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-color);
}

.org-tagline-dialog__line-strong {
    display: block;
    margin-top: 10px;
    font-weight: 800;
    font-size: clamp(1.05rem, 3.4vw, 1.25rem);
    letter-spacing: -0.01em;
}

.landing-showcase {
    margin-bottom: 36px;
    padding: 0;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--accent-blue-soft);
}

.landing-showcase:hover {
    transform: none;
}

.landing-marquee {
    overflow: hidden;
    width: 100%;
}

.landing-marquee:focus-within .landing-marquee__track,
.landing-marquee:hover .landing-marquee__track {
    animation-play-state: paused;
}

.landing-marquee__track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: max-content;
    padding: 14px;
    animation: landing-marquee-scroll 55s linear infinite;
}

@keyframes landing-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.landing-marquee__item {
    flex: 0 0 auto;
    margin: 0;
    width: clamp(200px, 38vw, 320px);
    height: clamp(160px, 28vw, 240px);
    border: var(--border-width) solid var(--text-color);
    background: var(--accent-gray);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-marquee__item:hover {
    transform: rotate(-1deg);
    box-shadow: 6px 6px 0 var(--accent-orange);
}

.landing-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .landing-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .landing-marquee__item {
        width: min(100%, 280px);
        height: 200px;
    }
}
