:root {
    --ink: #09080b;
    --paper: #f4f0e8;
    --muted: #a39e96;
    --amber: #e6a15a;
    --amber-ink: #1a1208;
    --line: rgba(244, 240, 232, 0.16);
    --header: 4.5rem;
    --index-size: 4.75rem;
    --serif: "Instrument Serif", "Iowan Old Style", Palatino, serif;
    --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0;
    z-index: 40;
    transform: translateY(-120%);
    background: var(--amber);
    color: var(--amber-ink);
    padding: 0.7rem 1rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    transform: none;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    height: var(--header);
    display: flex;
    align-items: center;
    transition: background 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(9, 8, 11, 0.92);
    border-bottom: 1px solid var(--line);
}

.navbar {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-height: 44px;
}

.brand-mark {
    display: block;
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    background: rgba(9, 8, 11, 0.96);
    border-bottom: 1px solid var(--line);
}

.nav-menu.is-open {
    display: block;
}

.nav-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1.25rem;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--amber);
}

.reel-index {
    position: fixed;
    z-index: 25;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
    background: rgba(9, 8, 11, 0.92);
    border-top: 1px solid var(--line);
}

.reel-index a {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reel-index a.is-current {
    color: var(--amber);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background: #050507;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(to top, rgba(9, 8, 11, 0.94) 0%, rgba(9, 8, 11, 0.35) 55%, transparent 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 2rem));
    margin: 0 0 calc(var(--index-size) + 1.5rem) 1rem;
    padding-top: calc(var(--header) + 2rem);
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(4.2rem, 16vw, 7.5rem);
    line-height: 0.86;
    letter-spacing: -0.035em;
}

.hero-lede {
    margin: 0.8rem 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    line-height: 1.15;
}

.hero-note {
    max-width: 36rem;
    margin: 0.9rem 0 0;
    color: var(--paper);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.amber-btn,
.line-btn,
.mail {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    text-decoration: none;
    font-weight: 600;
}

.amber-btn {
    background: var(--amber);
    color: var(--amber-ink);
}

.line-btn {
    border: 1px solid var(--line);
    background: rgba(9, 8, 11, 0.35);
}

.frame {
    scroll-margin-top: var(--header);
}

.frame figure,
.contact figure {
    margin: 0;
}

.frame img,
.contact img {
    display: block;
    width: 100%;
    height: min(78svh, 820px);
    object-fit: cover;
    background: #121014;
}

.frame-copy,
.contact-copy,
.about-inner {
    padding: 2.2rem 1.25rem 2.6rem;
}

.frame-no {
    margin: 0;
    color: var(--amber);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.frame-copy h3,
.about h2,
.contact h2 {
    margin: 0.25rem 0 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.frame-line {
    margin: 0.7rem 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.45rem;
}

.frame-copy p:last-child,
.about p:last-child,
.contact-copy > p {
    max-width: 34rem;
    color: var(--muted);
}

.about {
    border-top: 1px solid var(--line);
}

.about-inner {
    width: min(760px, 100%);
}

.contact {
    display: grid;
}

.mail {
    margin-top: 1.2rem;
    width: min(100%, 28rem);
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid var(--amber);
    background: transparent;
}

.mail-label {
    color: var(--amber);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mail-addr {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.footer {
    display: grid;
    gap: 1.4rem;
    padding: 2.2rem 1.25rem calc(var(--index-size) + 1.6rem);
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-name {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.4rem;
}

.footer-brand p,
.footer-meta p {
    margin: 0.15rem 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.footer-links a,
.footer-meta a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.reveal.is-visible {
    animation: rise 700ms ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 900px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu,
    .nav-menu.is-open {
        display: flex;
        position: static;
        background: transparent;
        border: 0;
        padding: 0;
        gap: 0.25rem;
    }

    .nav-menu a {
        padding: 0 0.8rem;
    }

    .navbar {
        width: min(1240px, calc(100% - 8.5rem));
    }

    .reel-index {
        left: 1.1rem;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
        gap: 0.15rem;
    }

    .reel-index a {
        justify-content: flex-start;
        min-height: 44px;
        font-size: 0.74rem;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    }

    .hero-copy {
        margin-left: 7.5rem;
        margin-bottom: 4.5rem;
    }

    .frame {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
        min-height: 100svh;
    }

    .frame-flip {
        grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.4fr);
    }

    .frame-flip .frame-copy {
        order: -1;
    }

    .frame img {
        height: 100%;
        min-height: 100svh;
    }

    .frame-copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 4rem 3rem 4.5rem 2.4rem;
    }

    .frame-flip .frame-copy {
        padding-left: 7.5rem;
    }

    .contact {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
        min-height: 80svh;
    }

    .contact img {
        height: 100%;
        min-height: 80svh;
    }

    .contact-copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 4rem 3rem;
    }

    .about-inner {
        padding: 5.5rem 7.5rem;
    }

    .footer {
        grid-template-columns: 1.2fr 1.4fr 1fr;
        align-items: start;
        width: min(1240px, calc(100% - 8.5rem));
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-visible {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .site-header {
        transition: none;
    }
}
