:root {
    --ivory: #F5F1EA;
    --bone: #EAE3D6;
    --ink: #1A1814;
    --brass: #9A7B4F;
    --line: #C9BFAE;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--ink);
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.grain::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hairline {
    height: 1px;
    background: var(--line);
}

.vhairline {
    width: 1px;
    background: var(--line);
}

.eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brass);
}

.display-hair {
    font-family: 'Italiana', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 0.95;
}

.serif-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
}

.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    border: 1px solid var(--ink);
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline span:last-child {
    flex-shrink: 0;
}

.btn-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: 0;
}

.btn-outline:hover {
    color: var(--ivory);
}

.btn-outline:hover::before {
    transform: translateY(0);
}

.btn-outline span {
    position: relative;
    z-index: 1;
}

.marquee {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee 34s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.marquee > div {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: max-content;
}

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

.reveal {
    opacity: 0;
}

.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    transition: transform 1.8s cubic-bezier(0.7, 0, 0.2, 1);
}

.img-reveal:hover img {
    transform: scale(1.04);
}

.num-counter {
    font-variant-numeric: tabular-nums;
}

/* nav */
.nav-scrolled {
    background: rgba(245, 241, 234, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.mobile-menu {
    background: rgba(245, 241, 234, 0.96);
    backdrop-filter: blur(12px);
}

.mobile-menu-link {
    display: block;
    width: fit-content;
}

/* vertical text */
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 10px;
}

/* custom cursor hint on gallery */
.gallery-item {
    cursor: pointer;
}

/* Section numbers */
.section-num {
    font-family: 'Italiana', serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--brass);
}

::selection {
    background: var(--ink);
    color: var(--ivory);
}

@media (max-width: 767px) {
    .btn-outline {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
    }

    .marquee {
        gap: 48px;
        animation-duration: 22s;
    }
}
