:root {
    --av-bg: #0a0a09;
    --av-white: #f5f1ea;
    --av-white-soft: rgba(245, 241, 234, 0.82);
    --av-line: rgba(245, 241, 234, 0.44);
    --av-border: rgba(245, 241, 234, 0.34);
    --av-dark: #11110f;
    --av-content-max: 650px;
    --av-page-pad: clamp(24px, 5.2vw, 84px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--av-bg);
}

body {
    color: var(--av-white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(26px, 4vw, 58px) var(--av-page-pad) clamp(26px, 3.6vw, 48px);
}

.hero__media,
.hero__media picture,
.hero__media img,
.hero__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__media {
    z-index: -3;
    background: #171714;
}

.hero__media picture {
    display: block;
}

.hero__media img {
    object-fit: cover;
    object-position: 60% center;
    filter: saturate(0.9) contrast(1.04);
    transform: scale(1.002);
}

.hero__veil {
    z-index: -2;
    background:
        linear-gradient(90deg,
            rgba(3, 4, 3, 0.88) 0%,
            rgba(3, 4, 3, 0.76) 24%,
            rgba(3, 4, 3, 0.42) 48%,
            rgba(3, 4, 3, 0.10) 74%,
            rgba(3, 4, 3, 0.03) 100%),
        linear-gradient(0deg,
            rgba(4, 4, 3, 0.50) 0%,
            rgba(4, 4, 3, 0.06) 36%,
            rgba(4, 4, 3, 0.20) 100%);
}

.hero__header,
.hero__footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-block;
    width: clamp(118px, 12vw, 190px);
    text-decoration: none;
}

.brand img {
    width: 100%;
    height: auto;
}

.instagram-link {
    margin-top: 8px;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.76);
    transition: color 180ms ease;
}

.instagram-link:hover {
    color: var(--av-white);
}

.hero__content {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(100%, var(--av-content-max));
    padding: clamp(54px, 8vh, 104px) 0 clamp(48px, 7vh, 92px);
}

.hero__eyebrow {
    margin: 0 0 24px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.34em;
    color: rgba(245, 241, 234, 0.78);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
    font-size: clamp(58px, 6.2vw, 104px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.045em;
    text-wrap: balance;
    color: var(--av-white);
}

.hero__rule {
    width: 52px;
    height: 1px;
    margin: 32px 0 24px;
    background: var(--av-line);
}

.hero__copy {
    max-width: 560px;
    margin: 0;
    color: var(--av-white-soft);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.62;
    font-weight: 350;
}

.hero__actions {
    display: grid;
    width: min(100%, 520px);
    gap: 14px;
    margin-top: 34px;
}

.btn {
    min-height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 1px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.btn--primary {
    grid-template-columns: 1fr auto;
    background: rgba(247, 243, 236, 0.97);
    color: #181816;
}

.btn--primary:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(7, 8, 7, 0.18);
    color: var(--av-white);
    border-color: var(--av-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(245, 241, 234, 0.10);
    border-color: rgba(245, 241, 234, 0.56);
    transform: translateY(-1px);
}

.btn__arrow {
    font-size: 23px;
    line-height: 1;
    font-weight: 300;
}

.btn__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.hero__footer {
    align-items: flex-end;
}

.hero__signature,
.hero__project-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.72);
}

.hero__signature::before {
    content: "";
    width: 28px;
    height: 1px;
    margin-bottom: 9px;
    background: rgba(245, 241, 234, 0.66);
}

.hero__project-meta {
    align-items: flex-end;
    text-align: right;
}

.hero__project-meta strong {
    color: var(--av-white);
    font-weight: 600;
}

.btn:focus-visible,
.brand:focus-visible,
.instagram-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .hero {
        min-height: 100svh;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .hero__media img {
        object-position: 68% center;
    }

    .hero__veil {
        background:
            linear-gradient(90deg,
                rgba(3, 4, 3, 0.84) 0%,
                rgba(3, 4, 3, 0.60) 48%,
                rgba(3, 4, 3, 0.22) 100%),
            linear-gradient(0deg,
                rgba(3, 4, 3, 0.64) 0%,
                rgba(3, 4, 3, 0.14) 50%,
                rgba(3, 4, 3, 0.30) 100%);
    }

    .hero__content {
        width: min(100%, 600px);
    }

    .hero h1 {
        font-size: clamp(54px, 9vw, 82px);
    }

    .instagram-link {
        max-width: 220px;
        text-align: right;
        line-height: 1.4;
    }
}

@media (max-width: 620px) {
    :root {
        --av-page-pad: 20px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero__media img {
        object-position: 66% center;
    }

    .hero__veil {
        background:
            linear-gradient(180deg,
                rgba(2, 3, 2, 0.46) 0%,
                rgba(2, 3, 2, 0.40) 20%,
                rgba(2, 3, 2, 0.66) 52%,
                rgba(2, 3, 2, 0.90) 100%);
    }

    .hero__header {
        align-items: center;
    }

    .brand {
        width: 116px;
    }

    .instagram-link {
        font-size: 9px;
        letter-spacing: 0.13em;
        max-width: 150px;
    }

    .hero__content {
        align-self: end;
        padding: 64px 0 38px;
    }

    .hero__eyebrow {
        margin-bottom: 17px;
        font-size: 10px;
        letter-spacing: 0.27em;
    }

    .hero h1 {
        font-size: clamp(48px, 14vw, 72px);
        line-height: 0.93;
        letter-spacing: -0.04em;
    }

    .hero__rule {
        margin: 23px 0 18px;
    }

    .hero__copy {
        max-width: 520px;
        font-size: 15px;
        line-height: 1.55;
    }

    .hero__actions {
        margin-top: 26px;
        gap: 11px;
    }

    .btn {
        min-height: 58px;
        padding: 0 17px;
        font-size: 14px;
    }

    .hero__footer {
        display: none;
    }
}

@media (max-width: 390px) {
    .instagram-link {
        display: none;
    }

    .hero__copy {
        font-size: 14px;
    }
}

@media (max-height: 760px) and (min-width: 621px) {
    .hero__content {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero h1 {
        font-size: clamp(52px, 5.5vw, 78px);
    }

    .hero__rule {
        margin: 24px 0 18px;
    }

    .hero__actions {
        margin-top: 24px;
    }

    .btn {
        min-height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
