/* Sunbaked Structures — static prototype
   Warm desert editorial. No remote fonts or images. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #241c16;
  --ink-soft: #3f342c;
  --muted: #5c5148;
  --cream: #f3eee6;
  --paper: #fbf7f1;
  --sand: #e6d9c6;
  --sand-deep: #cbbba4;
  --clay: #9a431f;
  --clay-deep: #6f2e14;
  --sage: #314036;
  --line: rgba(36, 28, 22, 0.16);
  --white: #fffdfb;
  --danger: #8d2b2b;
  --danger-bg: #f8ece7;
  --shadow: 0 24px 60px rgba(36, 28, 22, 0.12);
  --header: 4.5rem;
  --wrap: 1120px;
  --wide: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
.brand-sun,
.study-title,
.result h2 {
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.35rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--clay-deep);
  outline-offset: 3px;
}

::selection {
  background: #e7c4ad;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
}

.skip-link:focus {
  top: 0.6rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide), calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 38rem;
  color: var(--ink-soft);
}

.fine {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.measure {
  max-width: 40rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f3eee6;
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--wide), calc(100% - 2.4rem));
  margin: 0 auto;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand-logo {
  display: block;
  height: 4.7rem;
  width: auto;
  max-width: min(46vw, 9rem);
  aspect-ratio: 1155 / 1088;
  object-fit: cover;
  /* Frame the opaque artwork. The PNG file is the supplied original, uncropped. */
  object-view-box: inset(20.084% 25.503% 14.688% 26.131%);
}

.footer-brand {
  display: inline-block;
  margin: 0 0 0.7rem;
  text-decoration: none;
}

.brand-logo-footer {
  height: 7.4rem;
  max-width: 12rem;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.1rem;
  width: min(var(--wide), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0 0 0.35rem;
}

.contact-bar a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.contact-note {
  flex-basis: 100%;
  margin: 0;
  padding-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-panel {
  margin: 0.2rem 0 0.4rem;
  padding: 1rem 1rem 0.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
}

.contact-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.contact-panel .button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.footer-contact {
  margin: 0.2rem 0 0.4rem;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.nav-toggle .label-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .label-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .label-close {
  display: inline;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.nav-cta {
  border: 1px solid var(--clay-deep);
  background: var(--clay-deep);
  color: var(--paper);
  padding: 0 0.9rem;
}

.nav-cta[aria-current="page"] {
  text-decoration: none;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--clay-deep);
  background: var(--clay-deep);
  color: #fffaf5;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button:hover {
  background: #5c2410;
  border-color: #5c2410;
  color: #fffaf5;
}

.button.secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(0.6rem, 2vw, 1.2rem) 0 1.5rem;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.hero figure {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.hero-meta {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}

.hero-meta p {
  margin-bottom: 0.25rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-grid li {
  border-top: 1px solid var(--ink);
  padding-top: 0.9rem;
}

.match-grid .num {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pair article,
.note-card {
  background: var(--cream);
  padding: 1rem 1rem 1.15rem;
}

.kicker {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-index article {
  padding: 1.4rem 1.4rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.service-index article:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.service-index article:nth-child(even) {
  padding-left: 2rem;
}

.service-index h3 {
  margin-top: 0.2rem;
}

.future-band {
  margin-top: 1.5rem;
  padding: 1.3rem 1.3rem 1.2rem;
  background: var(--sage);
  color: #f6f1e8;
}

.future-band .eyebrow,
.future-band a {
  color: #f0d2c2;
}

.future-band p:last-child {
  margin-bottom: 0;
}

.study-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.study-teasers picture {
  display: block;
}

.study-teasers img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.study-teasers a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.study-teasers h3 {
  font-size: 1.45rem;
  margin: 0.75rem 0 0.3rem;
}

.horizon {
  margin: 0;
  position: relative;
}

.horizon img {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 230px);
  object-fit: cover;
  object-position: center;
}

.horizon figcaption {
  width: min(var(--wide), calc(100% - 2.4rem));
  margin: 0.55rem auto 0;
}

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.quote-band {
  background: var(--ink);
  color: var(--paper);
}

.quote-band .eyebrow {
  color: #e7b89a;
}

.quote-band .button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.quote-band .button:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--sand);
  background-image:
    linear-gradient(135deg, rgba(111, 46, 20, 0.14) 25%, transparent 25%),
    linear-gradient(225deg, rgba(49, 64, 54, 0.12) 25%, transparent 25%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame.natural {
  aspect-ratio: auto;
  background: var(--sand);
}

.frame.natural img {
  height: auto;
  object-fit: contain;
}

.ratio-landscape { aspect-ratio: 4 / 3; }
.ratio-wide { aspect-ratio: 3 / 2; }
.ratio-tall { aspect-ratio: 3 / 4; }
.ratio-square { aspect-ratio: 1 / 1; }
.pos-cliffs { object-position: center 68%; }
.pos-houses { object-position: center 28%; }
.pos-shed { object-position: center 82%; }
.pos-gable { object-position: center 55%; }
.pos-rollup { object-position: center 58%; }
.pos-boards { object-position: 30% 40%; }
.pos-door { object-position: center 45%; }

.frame.is-fallback {
  display: grid;
  place-items: end start;
  min-height: 12rem;
}

.frame-fallback {
  margin: 0;
  padding: 0.8rem 1rem;
  background: rgba(251, 247, 241, 0.9);
  font-size: 0.9rem;
}

figcaption,
.caption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.page-intro {
  padding: clamp(2rem, 5vw, 3.6rem) 0 1rem;
}

.page-intro h1 {
  max-width: 14ch;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}

.service-list .service-block:nth-child(even):not(.is-future) .service-copy {
  order: 2;
}

.service-block ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.service-block li + li {
  margin-top: 0.35rem;
}

.is-future {
  background: var(--cream);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  margin: 1rem 0 3rem;
  border-top: 0;
  align-items: start;
}

.badge {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid currentColor;
  color: var(--clay-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge.quiet {
  color: var(--sage);
}

.filters {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.filter-block {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.filter-block legend {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-row button {
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sand-deep);
  background: transparent;
  cursor: pointer;
}

.filter-row button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.study-tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.study-card .study-kicker,
.study-body .study-kicker {
  margin-top: 0.75rem;
}

.study-title {
  display: block;
  font-size: 1.55rem;
  margin-top: 0.15rem;
}

.study-tease {
  display: block;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.study[hidden] {
  display: none;
}

.empty-state {
  padding: 1.4rem;
  background: var(--cream);
  margin-bottom: 1rem;
}

.empty-state[hidden] {
  display: none;
}

.study-body[hidden] {
  display: none;
}

dialog.study-dialog {
  width: min(880px, calc(100vw - 1.5rem));
  max-height: min(88vh, 860px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}

dialog.study-dialog::backdrop {
  background: rgba(28, 20, 14, 0.72);
}

.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.dialog-slot {
  padding: 1rem 1.1rem 1.4rem;
}

.study-body h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.study-body ul {
  padding-left: 1.1rem;
}

.disclaimer {
  padding: 0.9rem 1rem;
  background: var(--cream);
  border-left: 3px solid var(--clay);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.callout {
  padding: 1.1rem 1.15rem;
  background: var(--cream);
  border-top: 3px solid var(--clay-deep);
}

.callout h2 {
  font-size: 1.7rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.45rem;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: 4rem;
}

.quote-aside {
  position: sticky;
  top: calc(var(--header) + 1rem);
}

form {
  display: grid;
  gap: 1.3rem;
}

fieldset.group {
  margin: 0;
  padding: 1.1rem 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
}

fieldset.group > legend {
  padding: 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

#preference-group {
  border: 0;
  margin: 0.9rem 0 0;
  padding: 0;
  min-width: 0;
}

#preference-group > legend {
  padding: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.field:first-of-type {
  margin-top: 0.2rem;
}

.field label,
.choice {
  font-weight: 500;
}

.req,
.opt {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.35rem;
}

.help,
.error {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
}

.help {
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--sand-deep);
  border-radius: 2px;
  background: var(--paper);
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
  background: var(--danger-bg);
}

.choices {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.35rem 0;
  font-weight: 400;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--clay-deep);
  flex: none;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
}

.form-errors {
  padding: 0.9rem 1rem;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
}

.form-errors[hidden] {
  display: none;
}

.form-errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.result {
  padding: 1.3rem 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--ink);
}

.result[hidden] {
  display: none;
}

.result.is-failed {
  border-color: var(--danger);
}

.quote-dock {
  display: none;
}

.gallery-wrap {
  width: min(1500px, calc(100% - 1rem));
  margin-inline: auto;
}

.work-grid {
  display: block;
  column-count: 2;
  column-gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work {
  break-inside: avoid;
  page-break-inside: avoid;
  width: 100%;
  margin: 0 0 0.55rem;
}

.work-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.step-list li,
.step-list > h3 {
  margin: 0;
}

.step-list h3 {
  font-size: 1.35rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.project-facts {
  margin: 0.4rem 0 0;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.review-card {
  margin: 0;
  padding: 1rem 1rem 0.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
}

.review-card blockquote {
  margin: 0;
}

.review-by {
  color: var(--muted);
  font-size: 0.92rem;
}

.work-card picture,
.work-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#work-dialog picture,
#work-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 4.5rem);
  margin-inline: auto;
  object-fit: contain;
}

.work-card figcaption,
.work figcaption {
  padding: 0.7rem 0.15rem 0;
  color: var(--ink-soft);
}

.work[hidden] {
  display: none;
}

#work-dialog {
  width: min(1480px, calc(100vw - 0.6rem));
  max-height: calc(100dvh - 0.6rem);
  margin: auto;
  padding: 0.35rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

#work-dialog::backdrop {
  background: rgba(28, 20, 14, 0.78);
}

.dialog-nav {
  display: flex;
  gap: 0.4rem;
}

#work-dialog figcaption {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.adobe-process {
  margin-top: 1.5rem;
}

.adobe-process summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.result h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 12ch;
}

.result dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.45rem 1rem;
  margin: 1rem 0;
}

.result dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result dd {
  margin: 0;
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.credits-table th,
.credits-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.7rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.credits-table th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.credits-table a {
  text-underline-offset: 0.15em;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

@media (max-width: 980px) {
  .match-grid,
  .study-grid,
  .study-teasers {
    grid-template-columns: 1fr 1fr;
  }

  .section-head,
  .place-grid,
  .about-grid,
  .quote-layout,
  .service-block,
  .footer-grid,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero img {
    max-width: 100%;
    max-height: min(92vh, 980px);
    margin-inline: auto;
  }

  .service-list .service-block:nth-child(even):not(.is-future) .service-copy {
    order: 0;
  }

  .quote-aside {
    position: static;
  }

  .service-index article:nth-child(odd),
  .service-index article:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    background: var(--cream);
    z-index: 70;
  }

  .brand,
  .nav-toggle {
    position: relative;
    z-index: 80;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
  }

  .header-bar,
  .contact-bar {
    position: relative;
    z-index: 80;
    background: var(--cream);
  }

  .site-header:has(.site-nav.is-open)::before {
    content: "";
    position: fixed;
    z-index: 75;
    top: 0;
    right: 0;
    left: 0;
    height: 16.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--cream);
    padding: 17.2rem 1.4rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    overflow: auto;
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav a {
    font-size: 1.55rem;
    font-family: "Fraunces", Georgia, serif;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.8rem;
    justify-content: center;
    border-bottom: 0;
    min-height: 52px;
  }

  body {
    padding-bottom: 5.2rem;
  }

  .quote-dock {
    display: flex;
    position: fixed;
    z-index: 25;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--clay-deep);
    color: #fffaf5;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #5c2410;
  }

  body.nav-open .quote-dock {
    display: none;
  }
}

@media (max-width: 680px) {
  .gallery-wrap {
    width: calc(100% - 0.5rem);
  }

  .work-grid {
    column-count: 1;
  }

  .work,
  .work figure,
  .work-card,
  .study-teasers a,
  .study-teasers picture,
  .study-teasers img,
  .work-card img {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .step-list,
  .service-index,
  .study-teasers,
  .work-grid,
  .match-grid,
  .pair,
  .study-grid,
  .study-teasers,
  .check-grid,
  .result dl,
  .site-footer ul,
  .credits-table,
  .credits-table tbody,
  .credits-table tr,
  .credits-table th,
  .credits-table td {
    display: block;
  }

  .credits-table th {
    display: none;
  }

  .credits-table td {
    padding: 0.25rem 0;
  }

  .credits-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.45rem;
  }

  .credits-table tr {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .wrap,
  .wrap-wide,
  .header-bar,
  .horizon figcaption {
    width: min(100% - 1.5rem, var(--wide));
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  dialog.study-dialog {
    width: calc(100vw - 0.6rem);
    max-height: calc(100vh - 0.6rem);
    max-height: calc(100dvh - 0.6rem);
  }
}

@media (max-width: 380px) {
  .brand-sub {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
