:root {
    color-scheme: light;
    --ivory: #f7f4ef;
    --limestone: #e5ded3;
    --forest: #344b40;
    --brass: #b49a73;
    --charcoal: #292b28;
    --muted: #5e6059;
    --rule: #d5cdbf;
    --serif: "Cormorant Garamond", Georgia, serif;
    --gutter: clamp(1.25rem, 5vw, 6rem);
    --space: clamp(3.5rem, 6.4vw, 7rem);
    font: 100%/1.65 "Manrope", "Segoe UI", sans-serif;
    background: var(--ivory);
    color: var(--charcoal);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
a { text-decoration-thickness: 1px; text-underline-offset: .3em; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
main:focus { outline: none; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 102rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 10; top: .75rem; left: 1rem; padding: .65rem 1rem; background: white; }

h1, h2, h3, .slide-caption { font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { line-height: 1.01; letter-spacing: -.045em; }
h1 { font-size: clamp(3.65rem, 6.1vw, 7.05rem); }
h2 { font-size: clamp(3.15rem, 4.75vw, 5.25rem); }
h3 { font-size: clamp(2.1rem, 2.8vw, 3.15rem); }
h1 em, h2 em { font-weight: 400; color: var(--forest); }
.eyebrow {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--forest);
    font-size: .78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .17em;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--brass); flex: none; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.15rem;
    padding: .75rem 1.6rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .925rem;
    letter-spacing: .015em;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
.primary { color: var(--ivory); background: var(--forest); }
.primary:hover { background: #233a30; }
.outline { color: var(--forest); border-color: var(--forest); }
.outline:hover { color: var(--ivory); background: var(--forest); }
.light { background: var(--ivory); color: var(--forest); }
.light:hover { background: var(--limestone); }

.masthead { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: clamp(4.4rem, 6.2vw, 6.3rem); }
.brand-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark { display: inline-grid; justify-items: center; gap: .27rem; color: var(--forest); }
.wordmark-name { font-size: 2.05rem; font-weight: 400; line-height: .88; letter-spacing: .25em; padding-left: .25em; }
.wordmark-trade { display: flex; align-items: center; gap: .32rem; font-size: .5rem; font-weight: 650; line-height: 1; text-transform: uppercase; letter-spacing: .18em; }
.wordmark-trade::before, .wordmark-trade::after { content: ""; width: .65rem; height: 1px; background: var(--brass); }
.site-nav { display: flex; gap: clamp(1.8rem, 3.2vw, 3.5rem); align-items: center; }
.site-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .925rem; text-decoration: none; }
.site-nav a { position: relative; padding: .45rem .1rem; }
.site-nav a[aria-current], .site-nav a:hover { color: var(--forest); }
.site-nav a[aria-current] { font-weight: 650; }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: .12rem; height: 2px; background: var(--brass); left: .1rem; right: .1rem; }
.menu-toggle { display: none; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(2rem, 4.3vw, 5.2rem);
    padding-block: clamp(3.5rem, 5.6vw, 6.3rem) clamp(3.2rem, 5.25vw, 6rem);
}
.hero-copy { padding-bottom: 2.5rem; }
.hero-copy h1 { margin-block: 1.45rem 1.55rem; }
.hero-intro, .contact-intro { max-width: 37ch; line-height: 1.8; color: var(--muted); }
.hero-copy .button { margin-top: 1.8rem; }
.carousel { min-width: 0; }
.hero-stage, .hero-empty { position: relative; aspect-ratio: 16 / 9; background-color: var(--limestone); }
.hero-stage, .viewer-stage { touch-action: pan-y pinch-zoom; }
.hero-stage { overflow: hidden; }
.hero-slide, .hero-slide a { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-slide a:focus-visible { outline-offset: -4px; z-index: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-slide.is-entering { animation: reveal .32s ease-out; }
@keyframes reveal { from { opacity: .45; } to { opacity: 1; } }
.carousel-bar {
    min-height: 3.65rem;
    display: flex;
    align-items: center;
    gap: clamp(.4rem, 1vw, 1rem);
    border-bottom: 1px solid var(--rule);
}
.slide-caption { flex: 1; min-width: 0; font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-style: italic; line-height: 1.15; }
.indicators, .carousel-buttons { display: flex; align-items: center; }
.indicators button { display: grid; place-items: center; width: clamp(26px, 2.8vw, 44px); height: 44px; border: 0; padding: 0 .2rem; background: none; }
.indicators button span { width: 100%; height: 2px; background: #8b8274; }
.indicators button[aria-current] span { height: 3px; background: var(--forest); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--forest); }
.icon-button:hover, .indicators button:hover { background-color: rgb(52 75 64 / .07); }
.chevron { width: .62rem; height: .62rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.previous { transform: rotate(-135deg); }
.play-icon { width: .52rem; height: .84rem; border-inline: 2px solid; }
[data-play].paused .play-icon { width: 0; height: 0; border: solid transparent; border-width: .4rem 0 .4rem .65rem; border-left-color: currentColor; }
.hero-empty { display: grid; place-items: center; text-align: center; }
.hero-empty p { position: relative; padding: 1rem; background: var(--limestone); }

.about { background: #ece7df; border-block: 1px solid var(--rule); }
.about-inner {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 9.5rem);
    padding-block: var(--space);
}
.portrait-mount { position: relative; isolation: isolate; display: flex; justify-content: center; background: #ededed; }
.portrait-mount::before {
    content: "";
    position: absolute;
    inset: 8% 2%;
    z-index: -1;
    background: url("/images/plan.svg") center / cover no-repeat;
    opacity: .36;
}
.portrait { width: min(64%, 20rem); height: auto; }
.about-copy { max-width: 34rem; }
.about-copy h2 { margin-block: 1.15rem 1.5rem; }
.about-copy p:not(.eyebrow), .service-list p { color: var(--muted); line-height: 1.85; }
.about-copy p + p { margin-top: .85rem; }
.services { padding-block: var(--space); }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 5rem); margin-top: 2rem; }
.service-list article { border-top: 1px solid var(--brass); padding-top: 1.65rem; }
.service-list h3 { margin-bottom: 1rem; color: var(--forest); }
.service-list p { max-width: 36ch; }
.contact-invite { background: var(--forest); color: var(--ivory); }
.invite-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 5vw, 5.2rem); }
.invite-inner h2 { max-width: 16ch; }
.invite-inner h2 em { color: #e6d7bc; }
.contact-invite a:focus-visible { outline-color: white; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.footer-links a:hover, .contact-details a:hover, .viewer-meta a:hover { text-decoration: underline; }
.footer-inner small { color: var(--muted); font-size: .8rem; }

.portfolio { padding-block: var(--space); }
.portfolio-heading { display: flex; align-items: end; justify-content: space-between; gap: 2.5rem; margin-bottom: clamp(2.25rem, 4vw, 4.5rem); }
.portfolio-heading h1 { margin-top: .9rem; }
.portfolio-heading > p { max-width: 34ch; color: var(--muted); margin-bottom: .3rem; }
.back-to-first { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1rem; color: var(--forest); }
.masonry { --columns: 3; --gap: clamp(.85rem, 2vw, 2.1rem); columns: var(--columns); column-gap: var(--gap); }
.project { break-inside: avoid; margin-bottom: var(--gap); min-width: 0; }
.masonry.measured { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); grid-auto-rows: 4px; grid-auto-flow: row dense; align-items: start; }
.measured .project { margin: 0; }
.cover { position: relative; display: block; background: var(--limestone); text-decoration: none; }
.cover:focus-visible { outline-offset: 3px; }
.cover img { width: 100%; height: auto; }
.cover img:not([width]) { aspect-ratio: auto 4 / 3; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgb(41 43 40 / .08); }
.cover:hover::after { border-color: var(--brass); }
.image-fallback { display: grid; place-items: center; min-height: 8rem; text-align: center; padding: 1rem; color: var(--muted); font-size: .875rem; }
.album-mark { position: absolute; top: .65rem; right: .65rem; display: flex; align-items: center; gap: .4rem; line-height: 1; padding: .5rem .65rem; background: var(--ivory); color: var(--forest); font-size: .8rem; font-weight: 650; }
.album-icon { position: relative; width: .8rem; height: .63rem; border: 1px solid currentColor; }
.album-icon::after { content: ""; position: absolute; inset: -4px 2px 2px -4px; border: solid currentColor; border-width: 1px 0 0 1px; }
.gallery-message { padding: 2rem; background: var(--limestone); text-align: center; }
.pagination { text-align: center; }
.pagination .button { margin-top: 2rem; }
.pagination [aria-disabled="true"] { opacity: .7; }
.pagination p:not(:empty) { padding-top: 1rem; color: var(--muted); }

.viewer { width: min(92vw, 84rem); max-width: 100%; max-height: 95vh; max-height: 95dvh; padding: 0; border: 0; background: var(--ivory); color: var(--charcoal); }
.viewer::backdrop { background: rgb(20 25 22 / .89); }
body.viewer-open { overflow: hidden; }
.viewer-shell { display: flex; flex-direction: column; max-height: 95vh; max-height: 95dvh; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; padding: .35rem clamp(1rem, 2.5vw, 2rem); border-bottom: 1px solid var(--rule); }
.viewer-header > span { font-family: var(--serif); font-size: 1.5rem; }
.viewer-close { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding: .25rem .4rem; background: none; border: 0; font-size: .9rem; }
.cross { position: relative; width: 1rem; height: 1rem; }
.cross::before, .cross::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: var(--forest); transform: rotate(45deg); }
.cross::after { transform: rotate(-45deg); }
.viewer-stage { position: relative; display: grid; place-items: center; flex: 1 1 auto; min-height: 5rem; height: min(66dvh, 52rem); background: #222923; color: var(--ivory); }
.viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer-stage button { position: absolute; top: 50%; transform: translateY(-50%); background: var(--ivory); border: 1px solid var(--rule); }
.viewer-stage button:focus-visible { outline: 3px solid white; outline-offset: 2px; }
.viewer-prev { left: .65rem; }
.viewer-next { right: .65rem; }
.viewer-unavailable { text-align: center; padding-inline: 3.8rem; }
.viewer-details { display: flex; justify-content: space-between; gap: .75rem 2rem; overflow: auto; max-height: 28dvh; padding: 1.2rem clamp(1rem, 2.5vw, 2rem); }
.viewer-text { min-width: 0; }
.viewer-details h2 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); }
.viewer-details p { margin-top: .5rem; max-width: 65ch; overflow-wrap: anywhere; white-space: pre-line; color: var(--muted); }
.viewer-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; flex: none; }
.viewer-meta span, .viewer-meta a { color: var(--forest); font-size: .875rem; }
.viewer-meta a { display: inline-flex; align-items: center; min-height: 44px; }

.contact-page { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: clamp(3rem, 7vw, 8rem); padding-block: var(--space); }
.contact-copy h1 { font-size: clamp(3.7rem, 5.5vw, 6.25rem); max-width: 15ch; margin-block: 1.15rem 1.5rem; text-wrap: balance; }
.contact-copy h1 em { white-space: nowrap; }
.contact-intro { max-width: 44ch; }
.contact-details { max-width: 29rem; margin-block: 1.75rem; }
.contact-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-block-end: 1px solid var(--rule); padding-block: .3rem; }
.contact-details dt { font-size: .875rem; color: var(--muted); }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 550; color: var(--forest); overflow-wrap: anywhere; }
.plan-panel { position: relative; isolation: isolate; overflow: hidden; }
.plan-panel::before { position: absolute; content: ""; inset: 0; z-index: -1; background: url("/images/plan.svg") center / 94% auto no-repeat; opacity: .55; }
.contact-drawing { min-height: 24rem; background: var(--forest); }
.contact-drawing::before { background-size: 133% auto; background-position: 25% center; opacity: .82; }

@media (max-width: 62rem) {
    .hero { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 1.75rem; }
    .hero h1 { font-size: clamp(3.4rem, 6.6vw, 4.6rem); }
    .carousel-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .25rem; padding-block: .35rem; }
    .slide-caption { grid-column: 1 / -1; padding-top: .3rem; }
    .indicators { justify-self: start; }
    .carousel-buttons { justify-self: end; }
    .about-inner { gap: 2.5rem; }
    .portrait { width: 76%; }
    .masonry { --columns: 2; }
    .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 48rem) {
    .hero { grid-template-columns: 1fr; gap: 1.85rem; padding-block: 2.75rem 3rem; }
    .hero-copy { padding-bottom: 0; }
    .hero-copy h1 { font-size: clamp(3.65rem, 8.8vw, 4.65rem); margin-block: 1.05rem; }
    .hero-intro { max-width: 43ch; }
    .hero-copy .button { margin-top: 1.2rem; }
    .carousel-bar { display: flex; gap: .75rem; min-height: 3rem; }
    .slide-caption { padding: 0; }
    .about-inner { grid-template-columns: .85fr 1.15fr; gap: 2rem; }
    .portrait { width: 84%; }
    .service-list { gap: 1.3rem; }
    .service-list h3 { font-size: 2rem; }
    .contact-page { grid-template-columns: 1fr; gap: 2rem; }
    .contact-drawing { min-height: 12rem; }
    .contact-drawing::before { background-size: 90% auto; background-position: right 55%; }
}
@media (max-width: 38rem) {
    .header-inner { flex-wrap: wrap; gap: .3rem 1rem; }
    .wordmark-name { font-size: 1.8rem; }
    .site-nav { gap: 1.1rem; }
    .site-nav a { font-size: .89rem; }
    .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: flex-end; gap: .65rem; min-width: 5rem; min-height: 44px; border: 0; padding: 0; background: none; font-size: .9rem; }
    .menu-lines { position: relative; width: 1.3rem; height: .62rem; border-block: 1.5px solid var(--forest); }
    .menu-toggle[aria-expanded="true"] .menu-lines { border: 0; }
    .menu-toggle[aria-expanded="true"] .menu-lines::before, .menu-toggle[aria-expanded="true"] .menu-lines::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--forest); transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }
    .menu-toggle:not([hidden]) + .site-nav { display: none; }
    .menu-toggle[aria-expanded="true"] + .site-nav { display: flex; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; border-block: 1px solid var(--rule); background: var(--ivory); padding: .5rem var(--gutter) 1rem; }
    .menu-toggle[aria-expanded="true"] + .site-nav a { min-height: 48px; align-self: start; }
    .hero-copy h1 { font-size: clamp(3.25rem, 12.8vw, 4.7rem); }
    .carousel-bar { display: grid; gap: 0; padding-top: .35rem; border: 0; }
    .slide-caption { grid-column: 1; grid-row: 1; font-size: 1.25rem; }
    .carousel-buttons { grid-column: 2; grid-row: 1; }
    .indicators { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .indicators button { flex: 1; width: auto; }
    .about-inner { grid-template-columns: 1fr; gap: 2rem; }
    .portrait-mount { width: min(100%, 24rem); margin-inline: auto; }
    .portrait { width: 61%; }
    .service-list { grid-template-columns: 1fr; gap: 1.6rem; }
    .service-list article { padding-top: 1.15rem; }
    .service-list h3 { margin-bottom: .6rem; }
    .invite-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
    .invite-inner { gap: 1.5rem; }
    .footer-inner { gap: .65rem; }
    .footer-links { flex-direction: column; }
    .portfolio-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .album-mark { top: .4rem; right: .4rem; padding: .35rem .4rem; }
    .viewer { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
    .viewer-shell { height: 100%; max-height: 100%; }
    .viewer-stage { height: auto; }
    .viewer-details { flex-direction: column; gap: 0; max-height: 38dvh; padding: .95rem var(--gutter) max(.5rem, env(safe-area-inset-bottom)); }
    .viewer-meta { flex-direction: row; justify-content: space-between; align-items: center; gap: .6rem; }
    .contact-copy h1 { font-size: clamp(3.35rem, 12vw, 4.5rem); }
    .contact-page { padding-block: 2.75rem; }
    .contact-details > div { flex-wrap: wrap; gap: 0 .8rem; }
}
@media (max-width: 23rem) {
    .masonry { --columns: 1; }
    .footer-links a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
    .indicators button span { border-bottom: 2px solid ButtonText; }
    .indicators button[aria-current] span { border-bottom: 4px solid Highlight; }
    .site-nav a[aria-current] { text-decoration: underline; }
}
