:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --ink: #192b3c;
  --muted: #434e59;
  --accent: #f0b95d;
  --rule: #cbc7c1;
  --focus: #895909;
  --kicker: #795118;
  --on-dark: #e3e9ee;
  --accent-hover: #ffd78f;
  --panel: #e8e6e2;
  --accent-rule: #b57c25;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.wrap { width: min(1190px, calc(100% - 64px)); margin-inline: auto; }
.header, .brand, nav, .footer { display: flex; align-items: center; }
.header { min-height: 84px; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; gap: 11px; line-height: 1.1; }
nav { gap: clamp(12px, 2vw, 30px); }
nav a, .header-phone { font-weight: 650; text-decoration: none; font-size: .93rem; }
nav a:hover, .header-phone:hover { text-decoration: underline; }
.header-phone { border: 1px solid var(--rule); padding: 10px 13px; white-space: nowrap; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--paper); }
.hero-copy { padding: clamp(54px, 7vw, 116px) clamp(25px, 4vw, 65px) clamp(54px, 7vw, 116px) max(32px, calc((100vw - 1190px) / 2)); align-self: center; }
.eyebrow { text-transform: uppercase; font-weight: 780; letter-spacing: .145em; font-size: .73rem; color: var(--kicker); margin-bottom: 16px; }
.hero .eyebrow, .contact .eyebrow { color: var(--accent); }
h1, h2 { font-family: Archivo, "Arial", sans-serif; font-weight: 700; letter-spacing: -.043em; line-height: 1.01; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 4.85vw, 5.4rem); }
h2 { font-size: clamp(2.35rem, 4.4vw, 4.2rem); }
.intro, .contact p { max-width: 38ch; color: var(--on-dark); font-size: 1.06rem; line-height: 1.65; margin-top: 24px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px 24px; margin-top: 30px; }
.button { display: inline-flex; gap: 14px; align-items: center; background: var(--accent); padding: 14px 17px; color: var(--ink); font-weight: 750; text-decoration: none; width: fit-content; }
.button:hover { background: var(--accent-hover); }
.under { text-underline-offset: 5px; font-weight: 670; }
.hero-photo { position: relative; min-height: 360px; isolation: isolate; background: #55687a; }
.hero-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.hero-photo figcaption { position: absolute; bottom: 20px; right: 20px; padding: 7px 10px; color: #fff; background: var(--ink); font-size: .75rem; }
.section { padding-block: clamp(62px, 8vw, 110px); }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.heading > p { max-width: 33ch; color: var(--muted); line-height: 1.55; }
.services, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.services article { border-top: 1px solid var(--rule); padding: 20px 0 25px; }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.25; margin-bottom: 8px; }
.services p { color: var(--muted); line-height: 1.55; max-width: 36ch; }
.projects { background: var(--panel); }
.gallery { gap: 24px; }
.gallery a { display: block; background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery a:hover { box-shadow: 0 3px 12px #192b3c38; }
.gallery a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.gallery span { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 680; }
.gallery span::after { content: "↗"; }
.contact { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: end; }
.contact .eyebrow { margin-top: 0; }
.contact .button { margin-top: 23px; }
address { border-top: 1px solid #8997a5; padding-top: 22px; font-style: normal; overflow-wrap: anywhere; }
address p { margin: 10px 0 16px !important; }
address a { display: block; width: fit-content; text-underline-offset: 5px; margin-bottom: 12px; }
.footer { min-height: 88px; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; padding-block: 18px; font-size: .88rem; }
.footer div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-underline-offset: 3px; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 2; transform: translateY(-200%); padding: 10px; background: white; }
.skip:focus { transform: translateY(0); }
dialog { background: var(--ink); color: var(--paper); border: 0; padding: 10px 16px 15px; max-width: min(94vw, 1100px); max-height: 95vh; }
dialog::backdrop { background: #101c2aec; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 6px; }
dialog button { font: inherit; font-size: 1.6rem; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; min-width: 42px; min-height: 42px; }
dialog img { width: auto; max-width: 100%; max-height: 75vh; object-fit: contain; margin-inline: auto; }
dialog figcaption { padding-top: 10px; }
@media (max-width: 900px) {
  .hero-copy { padding-block: 54px; }
  .services { gap: 0 20px; }
  .gallery { gap: 14px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header { padding-block: 13px; min-height: 0; flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; order: 3; border-top: 1px solid var(--rule); padding-top: 12px; justify-content: space-between; }
  .header-phone { font-size: .8rem; padding: 8px; }
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 46px 18px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .heading { align-items: start; flex-direction: column; }
  .services, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 410px) {
  .services, .gallery { grid-template-columns: 1fr; }
  .actions { align-items: start; flex-direction: column; }
}

.brand img { display: block; width: clamp(175px, 18vw, 230px); height: auto; }
nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.album-title { font-size: clamp(3rem, 7vw, 6rem); }
.album { border-top: 1px solid var(--rule); }
.album:last-child { border-bottom: 1px solid var(--rule); }
.album summary { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: baseline; padding: 18px 0; cursor: pointer; font-size: clamp(1.1rem, 3vw, 1.55rem); font-weight: 700; }
.album summary::before { content: "+"; width: 1em; }
.album[open] summary::before { content: "−"; }
.album summary small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.album summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.album-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); gap: 14px; padding-bottom: 22px; }
.album-grid span { padding: 9px 10px; font-size: .75rem; gap: 5px; }
.viewer-controls { display: flex; gap: 8px; margin-top: 10px; }
.viewer-controls button:disabled { opacity: .5; cursor: default; }
dialog img { max-height: 68vh; }
.album-grid img { height: auto; }

.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 16px; }
.spot { background: var(--panel); padding: clamp(16px, 3vw, 25px); border-top: 3px solid var(--accent-rule); }
.spot audio { display: block; width: 100%; margin: 16px 0; }
.spot .under { display: inline-block; padding-block: 6px; font-size: .88rem; }

@media (max-width: 780px) {
  .brand img { width: clamp(145px, 30vw, 190px); }
  .header { padding-block: 13px; min-height: 0; flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; order: 3; border-top: 1px solid var(--rule); padding-top: 12px; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  nav a { font-size: .85rem; }
}

:root[data-theme="bridlice"] {
  --paper: #f5f4f2;
  --ink: #2c333e;
  --muted: #49535e;
  --rule: #c8cdd2;
  --panel: #e6e9ed;
  --accent: #bcd7f3;
  --accent-hover: #d1e7ff;
  --accent-rule: #577998;
  --focus: #355d7e;
  --kicker: #385975;
}
:root[data-theme="terakota"] {
  --paper: #fbf3eb;
  --ink: #422b28;
  --muted: #604945;
  --rule: #d7c4b9;
  --panel: #f0e1d5;
  --accent: #f1b79d;
  --accent-hover: #ffd2bd;
  --accent-rule: #a65d43;
  --focus: #9a4c34;
  --kicker: #814430;
}
:root[data-heading="source"] :is(h1, h2) { font-family: "Source Sans 3", system-ui, sans-serif; }
:root[data-heading="serif"] :is(h1, h2) { font-family: Georgia, serif; font-weight: 700; }
:root[data-body="system"] { font-family: system-ui, sans-serif; }
