:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --sand: #eae6df;
  --taupe: #9d8c75;
  --wood: #514a40;
  --ink: #292823;
  --subtle: #625951;
  --rule: #c9c0b3;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Inter', system-ui, sans-serif;
  --gutter: clamp(1.125rem, 5.2vw, 6rem);
  --spacing: clamp(3.65rem, 8vw, 8.2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.68 var(--body); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #77583d; outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 8; top: 1rem; left: 1rem; background: var(--paper); padding: .7rem 1rem; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 90rem); margin-inline: auto; }
.section { padding-block: var(--spacing); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: .91; letter-spacing: -.03em; }
h1 { font-size: clamp(3.65rem, 8.4vw, 9rem); }
h2 { font-size: clamp(2.7rem, 5.5vw, 6.1rem); }
h3 { font-size: clamp(1.9rem, 3.1vw, 3.4rem); }
em { font-weight: 500; }
.kicker { text-transform: uppercase; letter-spacing: .135em; font-size: .75rem; line-height: 1.6; font-weight: 700; color: #65513f; }
.kicker + h1, .kicker + h2, .kicker + h3 { margin-top: .6rem; }
.muted, figcaption { color: var(--subtle); }
.lead { font-size: clamp(1.03rem, 1.25vw, 1.23rem); line-height: 1.64; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem 1.18rem; align-items: center; }
.button, .text-link { display: inline-flex; align-items: center; min-height: 2.8rem; width: fit-content; font-size: .88rem; font-weight: 700; line-height: 1.35; }
.button { justify-content: center; text-align: center; color: var(--paper); background: var(--ink); padding: .7rem 1rem; border: 1px solid var(--ink); text-decoration: none; }
.button:hover { background: var(--wood); border-color: var(--wood); }
.button:disabled { opacity: .65; }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .29em; }
.text-link:hover { text-decoration-thickness: 2px; }
.plain-button { padding: 0; background: none; border: 0; color: var(--ink); }

.header { border-bottom: 1px solid var(--rule); }
.header-row { min-height: 5.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .62rem; width: fit-content; white-space: nowrap; text-decoration: none; }
.wordmark > span { display: grid; gap: .24rem; }
.wordmark strong { font: 700 1.95rem/.73 var(--display); letter-spacing: -.035em; }
.wordmark small { font-size: .65rem; line-height: 1; letter-spacing: .015em; }
.header nav { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2.6rem); }
.header nav a { text-decoration: none; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .89rem; }
.header nav a:hover, .header nav a[aria-current] { text-decoration: underline; text-underline-offset: .32rem; }
.header .nav-contact { border: 1px solid #a49988; padding: .45rem 1.03rem; }
.menu-button { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; column-gap: clamp(1.6rem, 4vw, 5rem); padding-top: clamp(1.85rem, 4.4vw, 4rem); }
.hero h1 { font-size: clamp(3.9rem, 6.25vw, 7.1rem); margin-top: .72rem; line-height: .9; }
.hero h1 em { display: block; color: var(--wood); }
.hero .lead { max-width: 31ch; margin: 1.38rem 0 1.15rem; }
.hero .project-note { margin-top: 1.35rem; color: var(--subtle); font-size: .82rem; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1.11; object-fit: cover; background: var(--sand); }
figcaption { padding-top: .52rem; font-size: .78rem; letter-spacing: .018em; line-height: 1.45; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.7rem, 3.8vw, 3.7rem); }
.section-head > p { max-width: 33ch; }
.section-end { display: flex; justify-content: end; margin-top: 1.8rem; border-top: 1px solid var(--rule); padding-top: .55rem; }

.project-grid { display: grid; gap: clamp(2rem, 5vw, 5.25rem) clamp(1.4rem, 4.4vw, 4.75rem); }
.featured-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.featured-grid .project-card { grid-column: span 5; }
.featured-grid .project-card:first-child, .featured-grid .project-card:nth-child(4) { grid-column: span 7; }
.featured-grid .project-card:nth-child(2), .featured-grid .project-card:nth-child(4) { margin-top: clamp(1.35rem, 6vw, 5.6rem); }
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { min-width: 0; }
.project-link { display: block; text-decoration: none; }
.project-image { overflow: hidden; background: var(--sand); }
.project-image img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 1.34; transition: transform .3s ease; }
.project-link:hover .project-image img { transform: scale(1.025); }
.project-caption { display: flex; justify-content: space-between; align-items: end; gap: .75rem; padding-top: 1.05rem; }
.project-caption .text-link { min-width: max-content; min-height: 2.1rem; }
.project-caption h3 { margin-top: .3rem; }
.project-summary { color: var(--subtle); margin-top: .55rem; }
.portfolio-section { padding-bottom: var(--spacing); }
.filter-row { border-block: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .62rem; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button { border: 1px solid #9e9181; color: var(--ink); background: transparent; min-height: 2.75rem; padding: .54rem .84rem; font-size: .87rem; font-weight: 600; }
.filters button:hover { background: var(--sand); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-status { white-space: nowrap; font-size: .85rem; }

.about-band { background: var(--sand); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 7vw, 8.2rem); align-items: center; padding-block: clamp(3rem, 6.4vw, 6.1rem); }
.about-layout img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; background: #c9b99f; }
.about-layout p:not(.kicker) { margin-top: 1rem; max-width: 36ch; }
.about-layout .text-link { margin-top: .55rem; }
.service-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem clamp(1.3rem, 3vw, 3.1rem); }
.service-index article { border-top: 1px solid var(--rule); padding: 1.22rem 0 1.2rem; }
.service-index h3 { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.service-index h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.service-index h3 a:hover { text-decoration: underline; text-underline-offset: .13em; }
.service-index p { color: var(--subtle); margin-top: .45rem; }
.process { background: var(--sand); }
.process-layout, .principles { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(2rem, 6vw, 6rem); }
.process-layout .muted { margin-top: 1.1rem; max-width: 34ch; }
.process-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.process-list li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: .75rem; border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.process-list h3 { font-size: clamp(1.55rem, 2.5vw, 2.4rem); }
.process-list p { margin-top: .23rem; color: var(--subtle); }
.process-number { color: #67513d; font-size: .82rem; font-weight: 700; }
.principles dl { border-top: 1px solid var(--rule); }
.principles dt { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; margin-top: .7rem; }
.principles dd { border-bottom: 1px solid var(--rule); padding-bottom: .7rem; color: var(--subtle); }

.callout { background: var(--ink); color: var(--paper); }
.callout-row { min-height: 16rem; padding-block: clamp(2.8rem, 6vw, 5.6rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.callout h2 { font-weight: 500; }
.button-inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-inverse:hover { background: var(--sand); border-color: var(--sand); }

.page-intro, .project-intro { padding-block: clamp(2.7rem, 7.1vw, 6.25rem) clamp(1.9rem, 4.4vw, 3.75rem); }
.page-intro .lead, .project-intro .lead { color: var(--subtle); max-width: 57ch; margin-top: 1.25rem; }
.page-intro h1 { max-width: 16ch; }
.project-intro > a { margin-bottom: .55rem; }
.project-intro h1 { font-size: clamp(3.55rem, 8.1vw, 8rem); }
.gallery-photo { min-width: 0; }
.photo-button { width: 100%; position: relative; display: block; color: var(--paper); border: 0; padding: 0; background: var(--sand); }
.photo-button img { width: 100%; height: auto; aspect-ratio: 1.32; object-fit: cover; }
.project-main-photo img { aspect-ratio: 1.83; }
.photo-open { position: absolute; bottom: .65rem; right: .65rem; color: var(--paper); background: var(--ink); padding: .43rem .62rem; font-size: .78rem; }
.photo-button:hover .photo-open { text-decoration: underline; }
.project-story { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: start; gap: clamp(1.8rem, 6.5vw, 7rem); }
.project-story h2 { font-size: clamp(2.6rem, 4.9vw, 5rem); }
.project-story h2 + p { margin-top: 1.12rem; max-width: 63ch; }
.materials { border-top: 1px solid var(--rule); padding-top: .95rem; }
.materials h3 { font-size: clamp(1.72rem, 2.7vw, 2.4rem); }
.materials ul { color: var(--subtle); margin: .75rem 0 0; padding-left: 1.25rem; }
.materials li { margin-bottom: .42rem; }
.project-gallery { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.35rem, 3.6vw, 3.5rem); }
.project-nav { margin-top: var(--spacing); margin-bottom: clamp(3rem, 7vw, 6.5rem); border-block: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project-nav a { display: grid; padding: 1rem .5rem; min-height: 4rem; text-decoration: none; }
.project-nav a + a { border-left: 1px solid var(--rule); text-align: right; }
.project-nav a:hover span { text-decoration: underline; }
.project-nav span { font: 600 clamp(1.5rem, 3vw, 2.55rem)/1 var(--display); }
.project-nav small { color: var(--subtle); font-size: .78rem; }
.lightbox { border: 1px solid #8f8373; background: var(--ink); color: var(--paper); padding: clamp(.7rem, 2.3vw, 1.45rem); width: min(56rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); }
.lightbox::backdrop { background: rgb(20 19 16 / 87%); }
.lightbox-head, .lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.lightbox-head { margin-bottom: .55rem; }
.lightbox h2 { font-size: clamp(1.6rem, 4.7vw, 3rem); }
.lightbox button { min-height: 2.75rem; color: var(--paper); background: transparent; border: 1px solid #9d8c75; padding: .3rem .68rem; }
.lightbox button:hover { background: var(--wood); }
.lightbox .large-photo { width: 100%; height: min(65vh, 38rem); object-fit: contain; background: #1c1b17; }
.lightbox-controls { margin-top: .55rem; }
.lightbox-controls p { font-size: .88rem; }

.services-list { padding-bottom: var(--spacing); }
.service-detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.3rem, 5vw, 5rem); border-top: 1px solid var(--rule); padding-block: clamp(1.3rem, 3vw, 2.55rem); scroll-margin-top: 1rem; }
.service-detail h3 { font-size: clamp(2.15rem, 4vw, 4rem); }
.service-detail .lead { margin-top: .65rem; max-width: 38ch; color: var(--subtle); }
.service-detail dt { font-weight: 700; font-size: .9rem; }
.service-detail dd { margin-bottom: .64rem; }
.scope-note { border-top: 1px solid var(--rule); padding-top: 1.1rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(2.2rem, 6vw, 7rem); padding-block: var(--spacing); align-items: start; }
.contact-intro h1 { font-size: clamp(3.45rem, 5.65vw, 7rem); }
.contact-intro .lead { margin-top: 1.25rem; max-width: 34ch; }
.demo-note { margin-top: 1.6rem; padding-top: 1.05rem; border-top: 1px solid var(--rule); color: var(--subtle); max-width: 38ch; font-size: .95rem; }
.demo-note strong { color: var(--ink); }
.contact-panel { border: 1px solid var(--rule); padding: clamp(.95rem, 3vw, 2.7rem); background: #efebe4; }
.contact-panel h2 { font-size: clamp(2.13rem, 4.4vw, 3.6rem); }
.form-hint { color: var(--subtle); font-size: .88rem; margin: .52rem 0 1.2rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { min-width: 0; margin-bottom: .9rem; }
.field label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: .28rem; }
.field label span { color: var(--subtle); font-weight: 400; font-size: .81rem; }
.field input, .field select, .field textarea, .proposal-preview textarea { width: 100%; min-width: 0; min-height: 2.9rem; color: var(--ink); background: #fdfaf4; border: 1px solid #9e9181; border-radius: 0; padding: .56rem .63rem; }
.field textarea, .proposal-preview textarea { resize: vertical; }
.field select { appearance: none; padding-right: 1.8rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23514a40' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .48rem center; }
.proposal-preview textarea { margin-bottom: .7rem; }
.copy-status { font-size: .9rem; color: var(--wood); margin-top: .55rem; }

.credits, .error-actions { padding-bottom: var(--spacing); }
.credits ul { padding: 0; list-style: none; max-width: 55rem; }
.credits li { padding-block: .65rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.credits li a { text-underline-offset: .2em; }
.footer { background: #e6e0d6; border-top: 1px solid #cfc4b4; padding-block: 2.7rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr); gap: 1.55rem; }
.footer-grid p { margin-top: .65rem; color: var(--subtle); font-size: .9rem; }
.footer h2 { font: 700 .85rem/1.4 var(--body); letter-spacing: 0; margin-bottom: .38rem; }
.footer nav a { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 2.75rem; font-size: .9rem; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid #b9ad9d; margin-top: 1.5rem; padding-top: 1rem; display: flex; justify-content: space-between; align-items: start; gap: .8rem 1.5rem; font-size: .86rem; }
.footer-base p { max-width: 80ch; }
.footer-base a { flex-shrink: 0; text-underline-offset: .2em; }

@media (max-width: 900px) {
  .hero { column-gap: 1.4rem; }
  .hero h1 { font-size: clamp(3.5rem, 7.4vw, 5.35rem); }
  .featured-grid { column-gap: 1rem; }
  .project-caption { display: block; }
  .contact-layout { gap: 1.5rem; }
}
@media (max-width: 720px) {
  .header-row { min-height: 4.55rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; position: relative; }
  .header nav { grid-column: 1 / -1; flex-wrap: wrap; padding-bottom: .55rem; }
  .header nav.is-open { display: grid; gap: 0; padding: .55rem .9rem 1rem; position: absolute; inset: 100% 0 auto; z-index: 5; background: var(--paper); border: 1px solid var(--rule); }
  .menu-button:not([hidden]) + nav:not(.is-open) { display: none; }
  .menu-button { min-height: 2.75rem; display: block; background: transparent; border: 1px solid #a49988; color: var(--ink); padding: .4rem .75rem; font-size: .9rem; font-weight: 650; }
  .header .nav-contact { border: 0; padding-inline: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 2.25rem; row-gap: 1.5rem; }
  .hero h1 { font-size: clamp(3.7rem, 10.7vw, 5.7rem); }
  .hero .lead { margin-block: .95rem .82rem; }
  .hero .project-note { margin-top: .8rem; }
  .hero-media img { aspect-ratio: 1.52; }
  .section-head { display: block; }
  .section-head > p, .section-head > a { margin-top: .65rem; }
  .featured-grid, .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-grid .project-card { grid-column: auto !important; margin-top: 0 !important; }
  .project-caption { display: flex; }
  .project-caption h3 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
  .about-layout, .process-layout, .principles, .contact-layout, .service-detail, .project-story, .project-gallery { grid-template-columns: minmax(0, 1fr); }
  .about-layout > div { grid-row: 1; }
  .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail { gap: .9rem; }
  .filter-row { display: block; }
  .filter-status { margin-top: .55rem; }
  .callout-row { display: block; min-height: auto; }
  .callout h2 br { display: none; }
  .callout .button { margin-top: 1rem; }
  .project-main-photo img { aspect-ratio: 1.28; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-base { display: block; }
  .footer-base a { display: inline-block; margin-top: .65rem; }
}
@media (max-width: 450px) {
  .field label { font-size: .88rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .service-index article { padding-top: .85rem; }
  .service-index p { font-size: .92rem; }
  .project-caption .text-link { font-size: .77rem; }
  .project-caption { gap: .45rem; }
}
@media (max-width: 400px) {
  .service-index { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
