:root {
  color-scheme: light;
  --paper: #f9f8f5;
  --ink: #201e1c;
  --muted: #5d5550;
  --red: #a82624;
  --line: #dfd9cf;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #bc5142; outline-offset: 4px; }
.skip { position: absolute; top: 8px; left: 8px; padding: 12px; background: white; z-index: 3; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.masthead, .work, footer { padding-inline: clamp(20px, 5vw, 88px); }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; line-height: 1.15; font-weight: 750; font-size: 1.2rem; }
.brand img { object-fit: contain; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .79rem; margin-top: 4px; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.nav-projects { font-weight: 650; text-decoration: none; }
.nav-projects:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.25;
}
.button-outline { background: transparent; color: var(--red); border-color: #b94b44; }
.button-outline:hover { background: #fcf0ed; }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: #8c1e1c; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  min-height: clamp(480px, 46vw, 710px);
}
.hero-copy {
  align-self: center;
  padding: clamp(36px, 6vw, 110px) clamp(24px, 5vw, 88px);
}
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 730;
  font-size: .83rem;
  color: var(--red);
  margin: 0 0 20px;
}
.eyebrow span { width: 20px; height: 2px; background: currentColor; flex: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.042em; margin: 0; line-height: .99; }
h1 { font-size: clamp(3.1rem, 6.5vw, 7.3rem); }
h1 em, h2 em { color: var(--red); font-weight: inherit; }
.intro { max-width: 35ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; margin: 24px 0; }
.hero-photo { margin: 0; position: relative; min-width: 0; }
.hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 54%; }
.hero-photo figcaption { position: absolute; bottom: 18px; right: 20px; background: var(--paper); color: var(--ink); padding: 8px 13px; font-size: .84rem; }
.work { max-width: 1630px; margin-inline: auto; padding-block: clamp(48px, 7.4vw, 116px); }
.work-heading { display: flex; gap: 20px; align-items: end; justify-content: space-between; }
.work-heading h2, .quote-band h2 { font-size: clamp(2.6rem, 5.2vw, 5.35rem); }
.work-heading p { max-width: 35ch; color: var(--muted); margin: 0; line-height: 1.55; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 22px; }
.filters button { min-height: 44px; padding: 6px 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 3px; font-size: .91rem; font-weight: 650; }
.filters button:hover { border-color: var(--red); }
.filters button[aria-pressed=true] { border-color: var(--red); background: var(--red); color: white; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 42px) clamp(15px, 2vw, 32px); }
.project { min-width: 0; }
.project img { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; background: #e9e3da; object-fit: cover; }
.project[data-shape=linear] img { object-position: 48% center; }
.project-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; }
.project h3 { margin: 0; line-height: 1.22; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.project button { padding: 8px 0; min-height: 44px; color: var(--red); background: transparent; border: 0; text-align: left; text-decoration: underline; text-underline-offset: .25em; font-weight: 680; font-size: .89rem; flex-shrink: 0; }
.quote-band { display: flex; justify-content: space-between; gap: 30px; align-items: center; background: var(--red); color: white; padding: clamp(38px, 6vw, 86px) clamp(20px, 5vw, 88px); }
.quote-band p { line-height: 1.55; margin: 16px 0 0; max-width: 47ch; }
.button-light { background: var(--paper); color: var(--red); flex: none; }
.button-light:hover { background: white; }
footer { background: white; padding-block: 34px 22px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: .94rem; }
.preview-note { width: 100%; padding-top: 16px; border-top: 1px solid var(--line); margin: 0; color: var(--muted); font-size: .82rem; }
dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 68px #19141055; }
dialog::backdrop { background: #1d1714ad; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading h2 { font-size: 2.45rem; }
.close { width: 44px; height: 44px; background: transparent; border: 0; color: var(--ink); font-size: 1.9rem; }
#quote-form { display: grid; gap: 15px; }
#quote-form label { display: grid; gap: 6px; font-weight: 650; }
#quote-form label span { display: inline; font-size: .86rem; font-weight: 400; color: var(--muted); }
#quote-form input, #quote-form select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #a69b90; border-radius: 3px; padding: 9px; color: var(--ink); background: white; font-size: 1rem; }
.reference { background: #f3e5e0; color: #84241f; margin: 0; padding: 10px 12px; font-size: .92rem; }
.dialog-note { font-size: .88rem; line-height: 1.45; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .project-caption { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .masthead { min-height: 68px; gap: 10px; }
  .masthead .brand { gap: 7px; font-size: 1.02rem; }
  .masthead .brand img { width: 30px; height: 35px; }
  .masthead .brand small { font-size: .69rem; }
  .masthead .button { min-height: 44px; padding-inline: 9px; font-size: .83rem; }
  .nav-projects { display: none; }
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { align-self: stretch; padding: 30px 20px 24px; }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(3.4rem, 11vw, 5.35rem); }
  .intro { margin: 15px 0 17px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-photo figcaption { right: 12px; bottom: 12px; }
  .work-heading, .quote-band { align-items: start; flex-direction: column; }
  .work-heading { gap: 13px; }
  .gallery { grid-template-columns: 1fr; }
  .project-caption { flex-wrap: nowrap; }
  .quote-band { gap: 20px; }
}
@media (max-width: 360px) {
  .project-caption { flex-wrap: wrap; }
}
