:root {
    --walnut: oklch(0.377 0.062 51.5);
    --oak: oklch(0.815 0.043 79.5);
    --sand: oklch(0.936 0.011 74);
    --ink: oklch(0.204 0 0);
    --gold: oklch(0.646 0.093 78.5);
    --gold-bright: oklch(0.72 0.11 78.5);
    --bg: oklch(0.981 0.006 79);
    --fg: oklch(0.245 0.012 60);
    --muted: oklch(0.51 0.02 62);
    --border: oklch(0.895 0.016 79);
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Film grain */
.grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 0.045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top bar */
.topbar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 1.25rem;
    color: #fff;
}

@media (min-width: 768px) {
    .topbar {
        padding: 1.75rem 2.5rem;
    }
}

.topbar__brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    opacity: 0.92;
}

.topbar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid oklch(0.815 0.043 79.5 / 0.35);
    border-radius: 999px;
    background: oklch(0.204 0 0 / 0.35);
    backdrop-filter: blur(10px);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--oak);
}

.pulse {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 oklch(0.646 0.093 78.5 / 0.55);
    animation: pulse 2.4s ease-out infinite;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 6.5rem 1.25rem 3.25rem;
    overflow: hidden;
    color: #fff;
}

@media (min-width: 768px) {
    .hero {
        align-items: center;
        padding: 7rem 2.5rem 4rem;
    }
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 32s ease-out forwards;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, oklch(0.204 0 0 / 0.9) 0%, oklch(0.204 0 0 / 0.42) 48%, oklch(0.204 0 0 / 0.28) 100%),
        linear-gradient(100deg, oklch(0.204 0 0 / 0.45) 0%, transparent 55%);
}

.hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 45% at 40% 100%, oklch(0.646 0.093 78.5 / 0.32), transparent 70%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}

.hero__orb--one {
    width: 18rem;
    height: 18rem;
    right: -4rem;
    top: 18%;
    background: oklch(0.646 0.093 78.5 / 0.22);
}

.hero__orb--two {
    width: 14rem;
    height: 14rem;
    left: 8%;
    bottom: 12%;
    background: oklch(0.815 0.043 79.5 / 0.12);
    animation-delay: -4s;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 40rem;
}

@media (min-width: 900px) {
    .hero__content {
        margin-left: max(0px, calc((100% - 80rem) / 2));
    }
}

.brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--oak);
    text-shadow: 0 2px 40px oklch(0.204 0 0 / 0.35);
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rule {
    width: 3.5rem;
    height: 2px;
    margin: 1.35rem 0 0;
    background: linear-gradient(90deg, var(--gold), transparent);
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

h1 {
    margin: 1.1rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 6.5vw, 3.65rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.lede {
    margin: 1.35rem 0 0;
    max-width: 30rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.notify {
    margin-top: 2rem;
    max-width: 28rem;
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.notify__row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 540px) {
    .notify__row {
        flex-direction: row;
    }
}

.notify input {
    flex: 1;
    min-width: 0;
    height: 3rem;
    padding: 0 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    color: #fff;
    font: inherit;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.notify input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.notify input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px oklch(0.646 0.093 78.5 / 0.25);
}

.notify button {
    height: 3rem;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: oklch(0.985 0.006 79);
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 30px oklch(0.646 0.093 78.5 / 0.28);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.notify button:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 36px oklch(0.646 0.093 78.5 / 0.38);
}

.notify button:active {
    transform: translateY(1px);
}

.notify__hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-note {
    margin: 1.5rem 0 0;
    color: var(--oak);
    font-size: 1rem;
    animation: rise 0.55s ease-out both;
}

.meta {
    margin: 2.25rem 0 0;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.hero__scroll {
    display: none;
}

@media (min-width: 900px) {
    .hero__scroll {
        position: absolute;
        right: 2.5rem;
        bottom: 2.5rem;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.65rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
        animation: rise 1s ease-out 0.6s both;
    }

    .hero__scroll-line {
        width: 1px;
        height: 3.5rem;
        background: linear-gradient(to bottom, var(--gold), transparent);
        animation: scrollLine 2.2s ease-in-out infinite;
    }
}

/* Atelier */
.atelier {
    position: relative;
    padding: 5rem 1.25rem;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, oklch(0.646 0.093 78.5 / 0.08), transparent 55%),
        var(--sand);
}

@media (min-width: 768px) {
    .atelier {
        padding: 7rem 2.5rem;
    }
}

.atelier__inner {
    max-width: 80rem;
    margin: 0 auto;
}

.eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow--light {
    color: var(--oak);
}

.atelier__intro {
    max-width: 36rem;
}

.atelier__intro h2 {
    margin: 0.85rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--walnut);
    line-height: 1.15;
}

.atelier__intro p {
    margin: 1.1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.woods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 2.75rem 0 0;
    padding: 0;
    list-style: none;
}

.woods li {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.woods__swatch {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px oklch(0.204 0 0 / 0.12);
}

.woods__swatch--oak {
    background: linear-gradient(145deg, #d6c3a5, #b89a72);
}

.woods__swatch--walnut {
    background: linear-gradient(145deg, #6b4a32, #3d2818);
}

.woods__swatch--cherry {
    background: linear-gradient(145deg, #a56b4a, #7a432c);
}

.woods__swatch--maple {
    background: linear-gradient(145deg, #e8dcc4, #cbb892);
}

.woods__name {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--walnut);
}

.pillars {
    display: grid;
    gap: 1.75rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        margin-top: 4.5rem;
    }
}

.pillars article {
    padding-top: 1.25rem;
    border-top: 1px solid oklch(0.377 0.062 51.5 / 0.18);
}

.pillars__num {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.pillars h3 {
    margin: 0.7rem 0 0;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--walnut);
}

.pillars p {
    margin: 0.7rem 0 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
}

/* CTA band */
.cta {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.25rem;
    background: var(--walnut);
    color: oklch(0.985 0.006 79);
    text-align: center;
}

@media (min-width: 768px) {
    .cta {
        padding: 6.5rem 2.5rem;
    }
}

.cta__glow {
    position: absolute;
    width: 28rem;
    height: 28rem;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: oklch(0.646 0.093 78.5 / 0.28);
    filter: blur(70px);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    margin: 0 auto;
}

.cta h2 {
    margin: 0.85rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.cta p {
    margin: 1rem 0 0;
    color: oklch(0.815 0.043 79.5 / 0.85);
    line-height: 1.65;
}

.cta__mail {
    display: inline-block;
    margin-top: 1.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--oak);
    text-decoration: none;
    border-bottom: 1px solid oklch(0.815 0.043 79.5 / 0.45);
    padding-bottom: 0.15rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cta__mail:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2rem 1.25rem 2.5rem;
    background: var(--bg);
    text-align: center;
}

.footer__brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--walnut);
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenburns {
    from {
        transform: scale(1.12);
    }
    to {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 oklch(0.646 0.093 78.5 / 0.55);
    }
    70% {
        box-shadow: 0 0 0 0.55rem oklch(0.646 0.093 78.5 / 0);
    }
    100% {
        box-shadow: 0 0 0 0 oklch(0.646 0.093 78.5 / 0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1.25rem);
    }
}

@keyframes scrollLine {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(0.65);
        transform-origin: top;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__image,
    .brand,
    .rule,
    h1,
    .lede,
    .notify,
    .meta,
    .form-note,
    .hero__scroll,
    .hero__orb,
    .pulse,
    .hero__scroll-line {
        animation: none !important;
    }
}
