:root {
    --ink: #151411;
    --ink-soft: #26241f;
    --ivory: #f2eee5;
    --paper: #fbf8f1;
    --cream: #ded4c1;
    --gold: #b99456;
    --red: #a42d24;
    --line: rgba(21, 20, 17, .16);
    --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
    --sans: "Arsenal", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --page: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.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;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--paper);
    transition: top .2s;
}

.skip-link:focus { top: 16px; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 94px;
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    color: white;
    transition: height .35s, background .35s, color .35s, box-shadow .35s;
}

.site-header.is-scrolled {
    height: 72px;
    color: var(--ink);
    background: rgba(242, 238, 229, .94);
    box-shadow: 0 1px 0 rgba(21, 20, 17, .12);
    backdrop-filter: blur(18px);
}

.brand {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .16));
    transition: width .35s;
}

.site-header.is-scrolled .brand img { width: 58px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 600;
}

.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 1px;
    background: currentColor;
    transition: right .25s;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after { right: 0; }

.nav-cta {
    padding: 11px 19px;
    border: 1px solid currentColor;
    transition: background .25s, color .25s;
}

.nav-cta:hover { color: var(--ink); background: white; }
.site-header.is-scrolled .nav-cta:hover { color: var(--ivory); background: var(--ink); }
.menu-toggle { display: none; }

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: white;
    background: #151411 url('../images/hero.jpg') center 56% / cover no-repeat;
    isolation: isolate;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 9, 8, .82) 0%, rgba(10, 9, 8, .48) 48%, rgba(10, 9, 8, .18) 78%),
        linear-gradient(0deg, rgba(10, 9, 8, .5), transparent 45%);
}

.hero-content {
    width: var(--page);
    margin: 82px auto 0;
    padding: 72px 0;
}

.eyebrow,
.kicker,
.section-label {
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: 11px;
    font-weight: 600;
}

.eyebrow { color: #e3d6bd; }

.hero h1,
.section h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .94;
}

.hero h1 { max-width: 820px; font-size: clamp(76px, 10vw, 154px); }
.hero h1 em,
.section h2 em { color: var(--gold); font-weight: 400; }

.hero-lead {
    max-width: 580px;
    margin: 36px 0 0;
    color: rgba(255, 255, 255, .78);
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.35;
}

.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 40px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 54px;
    padding: 15px 26px;
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { color: white; background: var(--red); }
.text-link {
    color: white;
    text-underline-offset: 7px;
    text-decoration-thickness: 1px;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
}

.text-link span { margin-left: 9px; }

.hero-index {
    position: absolute;
    inset: auto max(24px, calc((100vw - 1240px) / 2)) 30px;
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.48);
    letter-spacing: .22em;
    font-size: 9px;
}

.section { padding: 130px 0; }

.intro {
    width: var(--page);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(0, 3fr);
    gap: 50px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #726b60;
}

.section-label::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: .5; }
.section-label-light { color: #afa797; }

.intro-copy { max-width: 900px; }
.kicker { color: var(--red); margin-bottom: 30px; }
.intro h2 { max-width: 860px; font-size: clamp(48px, 6.2vw, 86px); }
.intro-copy > p:last-child {
    max-width: 690px;
    margin: 46px 0 0 auto;
    color: #5a554b;
    font-size: 18px;
    line-height: 1.85;
}

.services { color: var(--ivory); background: var(--ink); }
.services-heading,
.service-list { width: var(--page); margin: auto; }
.services-heading {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    margin-bottom: 80px;
}

.services-heading h2 { font-size: clamp(50px, 6.6vw, 92px); }
.service { 
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(42px, 6vw, 86px);
    padding: 68px 0;
    border-top: 1px solid rgba(242,238,229,.15);
}

.service:last-child { border-bottom: 1px solid rgba(242,238,229,.15); }
.service:nth-child(even) .service-image { order: 2; }
.service:nth-child(even) .service-copy { order: 1; }
.service-image { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #302e29; }
.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    pointer-events: none;
}
.service-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.service:hover .service-image img { transform: scale(1.035); filter: saturate(1) contrast(1.04); }
.service h3 { margin: 0 0 15px; font-family: var(--serif); font-size: clamp(31px, 3.5vw, 50px); font-weight: 400; line-height: 1.05; }
.service-tagline { margin: 0 0 22px; color: var(--gold) !important; font-family: var(--serif); font-size: 20px !important; }
.service p:last-child { max-width: 790px; margin: 0; color: #bdb6aa; font-size: 15px; line-height: 1.85; }

.gallery-section { background: var(--paper); }
.gallery-heading,
.gallery-tabs,
.gallery-grid,
.gallery-empty { width: var(--page); margin-left: auto; margin-right: auto; }
.gallery-heading { display: block; }
.gallery-heading h2 { font-size: clamp(52px, 6.8vw, 96px); }

.gallery-tabs {
    display: flex;
    gap: 8px 35px;
    overflow-x: auto;
    margin-top: 66px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.gallery-tabs::-webkit-scrollbar { display: none; }
.gallery-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 0 0 17px;
    border: 0;
    background: transparent;
    color: #827b70;
    font-family: var(--serif);
    font-size: 27px;
    cursor: pointer;
}

.gallery-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -1px;
    height: 2px;
    background: var(--red);
    transition: right .3s;
}

.gallery-tab.is-active { color: var(--ink); }
.gallery-tab.is-active::after { right: 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-grid[hidden] { display: none; }
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ddd6c8;
    cursor: zoom-in;
}

.gallery-item:nth-child(8n + 1),
.gallery-item:nth-child(8n + 6) { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-item span {
    position: absolute;
    inset: auto 14px 14px auto;
    padding: 7px 10px;
    color: white;
    background: rgba(18,16,14,.72);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}

.gallery-item:hover img { transform: scale(1.045); }
.gallery-item:hover span,
.gallery-item:focus-visible span { opacity: 1; transform: none; }

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
    gap: 90px;
    padding-left: max(24px, calc((100vw - 1240px) / 2));
    padding-right: max(24px, calc((100vw - 1240px) / 2));
    color: var(--ivory);
    background: var(--ink-soft);
}

.contact h2 { font-size: clamp(54px, 6.5vw, 92px); }
.contact-intro > p { max-width: 570px; margin: 38px 0 0; color: #c0b9ad; font-size: 17px; }
.contact-card { align-self: end; padding: 48px 50px; color: var(--ink); background: var(--paper); }
.contact-card > p {
    margin: 0 0 18px;
    color: #756f65;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 9px;
    font-weight: 700;
}
.contact-card a {
    position: relative;
    display: block;
    padding: 24px 48px 24px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}
.contact-card span { display: block; font-family: var(--serif); font-size: 27px; line-height: 1.2; }
.contact-card small { color: #756f65; font-size: 12px; }
.contact-card b {
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--red);
    font-size: 18px;
    font-weight: 400;
    transform: translateY(-50%);
    transition: transform .2s;
}
.contact-card a:hover b { transform: translate(4px, calc(-50% - 4px)); }

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    align-items: end;
    gap: 30px;
    padding: 70px max(24px, calc((100vw - 1240px) / 2)) 35px;
    color: var(--ivory);
    background: var(--ink);
    border-top: 1px solid rgba(242,238,229,.12);
}

.footer-brand { text-decoration: none; font-family: var(--serif); font-size: 35px; letter-spacing: .08em; }
.footer-brand span { display: block; color: var(--gold); font-family: var(--sans); font-size: 8px; letter-spacing: .44em; }
.site-footer p,
.site-footer small,
.instagram-link { margin: 0; color: #8f897f; font-size: 11px; }
.footer-contacts { display: grid; gap: 4px; }
.footer-contacts a { color: #a9a297; font-size: 11px; text-decoration: none; }
.footer-contacts a:hover { color: var(--ivory); }
.instagram-link { color: var(--ivory); text-transform: uppercase; letter-spacing: .14em; text-underline-offset: 6px; }

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    padding: 0;
    border: 0;
    background: rgba(10, 9, 8, .96);
    color: white;
}

.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 9, 8, .72); }
.lightbox figure { display: grid; place-items: center; margin: 0; width: calc(100% - 180px); height: calc(100% - 100px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.lightbox figcaption { margin-top: 10px; color: #aaa399; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.lightbox-close,
.lightbox-nav { position: fixed; z-index: 2; border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-close { top: 22px; right: 28px; font-family: var(--sans); font-size: 36px; font-weight: 200; }
.lightbox-nav { top: 50%; transform: translateY(-50%); padding: 25px; font-family: var(--serif); font-size: 56px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    :root { --page: min(100% - 36px, 720px); }
    .site-header { height: 76px; padding-inline: 18px; }
    .brand { width: 60px; height: 60px; }
    .menu-toggle {
        display: grid;
        gap: 7px;
        width: 44px;
        height: 44px;
        place-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle span:not(.sr-only) { width: 25px; height: 1px; background: currentColor; transition: transform .25s; }
    .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
    .site-nav {
        position: fixed;
        inset: 72px 0 0;
        display: grid;
        place-content: center;
        gap: 30px;
        color: var(--ivory);
        background: var(--ink);
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .25s, visibility .25s, transform .25s;
    }
    .site-nav a { font-family: var(--serif); font-size: 32px; letter-spacing: 0; text-transform: none; }
    .site-nav .nav-cta { border: 0; padding: 0; color: var(--gold); }
    .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .section { padding: 92px 0; }
    .intro,
    .services-heading { grid-template-columns: 1fr; gap: 26px; }
    .services-heading { margin-bottom: 45px; }
    .service { grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); gap: 34px; padding: 48px 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(8n + 1),
    .gallery-item:nth-child(8n + 6) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(7n + 1) { grid-column: span 2; }
    .contact { grid-template-columns: 1fr; gap: 55px; padding-inline: 18px; }
    .contact-card { max-width: 620px; width: 100%; justify-self: center; }
    .site-footer { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-contacts { text-align: right; }
}

@media (max-width: 560px) {
    .hero { min-height: 760px; }
    .hero-content { margin-top: 44px; padding-bottom: 120px; }
    .hero h1 { font-size: clamp(65px, 21vw, 94px); }
    .hero-lead { max-width: 340px; font-size: 19px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
    .button { width: 100%; }
    .hero-index { inset-inline: 18px; }
    .intro-copy > p:last-child { margin-top: 30px; font-size: 16px; }
    .gallery-heading { align-items: flex-start; flex-direction: column; }
    .gallery-tabs { margin-top: 45px; }
    .gallery-tab { font-size: 23px; }
    .gallery-grid { gap: 6px; width: 100%; }
    .contact-card { padding: 32px 22px; }
    .service { grid-template-columns: 1fr; gap: 28px; }
    .service:nth-child(even) .service-image,
    .service:nth-child(even) .service-copy { order: initial; }
    .service-image { aspect-ratio: 16 / 11; }
    .site-footer { grid-template-columns: 1fr; text-align: left; }
    .footer-contacts { text-align: left; }
    .lightbox figure { width: calc(100% - 32px); }
    .lightbox-nav { top: auto; bottom: 20px; }
    .lightbox-prev { left: calc(50% - 78px); }
    .lightbox-next { right: calc(50% - 78px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

.error-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--ivory);
    background: var(--ink);
}

.error-content { max-width: 680px; text-align: center; }
.error-content img { width: 112px; margin: 0 auto 38px; }
.error-content p { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.error-content h1 { margin: 0 0 42px; font-family: var(--serif); font-size: clamp(52px, 9vw, 100px); font-weight: 400; line-height: .95; }
.error-content .button { width: auto; }
