:root {
    color-scheme: light;
    --bg: #f4ede2;
    --text: #241912;
    --text-soft: #685846;
    --primary: #927037;
    --primary-strong: #775727;
    --secondary: #4f705a;
    --border-strong: rgba(79, 112, 90, 0.24);
    --radius: 28px;
    --container: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-optical-sizing: auto;
    background:
        radial-gradient(circle at top left, rgba(146, 112, 55, 0.12), transparent 35%),
        radial-gradient(circle at top right, rgba(79, 112, 90, 0.1), transparent 28%),
        linear-gradient(180deg, #faf6ef 0%, #f3eadf 100%);
    color: var(--text);
}

body {
    margin: 0;
    min-height: 100vh;
    background: transparent;
}

#main-content:focus {
    outline: none;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(36, 25, 18, 0.94);
    color: #fff;
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform 180ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.home-page {
    overflow: clip;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.03);
    animation: heroKenBurns 24s ease-out 1 forwards;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(18, 14, 10, 0.34) 0%,
            rgba(18, 14, 10, 0.16) 24%,
            rgba(18, 14, 10, 0.22) 56%,
            rgba(18, 14, 10, 0.62) 100%
        ),
        linear-gradient(90deg,
            rgba(18, 14, 10, 0.56) 0%,
            rgba(18, 14, 10, 0.34) 26%,
            rgba(18, 14, 10, 0.14) 48%,
            transparent 68%
        ),
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 34%);
}

.hero__layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 24rem);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

.hero__text {
    max-width: 38rem;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(18, 14, 10, 0.16);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.hero__text h1 {
    margin: 0 0 1rem;
    max-width: 7ch;
    font-size: clamp(3.2rem, 7.5vw, 6.5rem);
    line-height: 0.95;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
    hyphens: manual;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.hero__lead {
    margin: 0 0 2rem;
    max-width: 34rem;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    color: rgba(248, 243, 234, 0.88);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.95rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: none;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-strong);
}

.btn-glass {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover,
.btn-glass:focus-visible {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.hero__glass {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(18, 14, 10, 0.18);
}

.hero__glass-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.22rem;
    min-height: 5.25rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.hero__glass-value {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero__glass-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: normal;
}

.hero__glass-divider {
    display: none;
}

.hero__scroll {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    z-index: 2;
}

.hero__scroll-indicator {
    position: relative;
    width: 1.8rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(18, 14, 10, 0.14);
}

.hero__scroll-dot {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translateX(-50%);
    animation: scrollDot 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    .hero__eyebrow {
        background: rgba(255, 255, 255, 0.12);
        -webkit-backdrop-filter: blur(14px) saturate(130%);
        backdrop-filter: blur(14px) saturate(130%);
    }

    .hero__glass {
        background: rgba(255, 255, 255, 0.1);
        -webkit-backdrop-filter: blur(18px) saturate(135%);
        backdrop-filter: blur(18px) saturate(135%);
    }

    .hero__glass-item {
        background: rgba(255, 255, 255, 0.08);
    }

    .hero__scroll-indicator {
        background: rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(12px) saturate(125%);
        backdrop-filter: blur(12px) saturate(125%);
    }
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.06) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.12) translate3d(-1%, -0.5%, 0);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    20% {
        opacity: 1;
    }

    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(1rem);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(1.3rem);
    }
}

@media (max-width: 900px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__glass {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .skip-link {
        left: 0.75rem;
        right: 0.75rem;
        width: fit-content;
        max-width: calc(100% - 1.5rem);
    }

    .hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__layout {
        padding: 1.5rem 1.25rem 2rem;
    }

    .hero__glass {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .hero__glass-item {
        min-height: 4.5rem;
        padding: 0.8rem 0.9rem;
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 560px) {
    .hero__text h1 {
        max-width: 6ch;
    }

    .hero__glass {
        grid-template-columns: 1fr;
    }
}

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

    .hero__media {
        transform: none;
        animation: none;
    }
}
