@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #192c26;
  --muted: #46564d;
  --green: #25453b;
  --deep: #172f28;
  --mist: #e6ebe2;
  --line: #cdd3c7;
  --white: #fffdf5;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[id] { scroll-margin-top: 1rem; }

.frame { width: min(calc(100% - 7rem), 82rem); margin-inline: auto; }
.section-space { padding-block: clamp(4.25rem, 8vw, 7.75rem); }
.eyebrow { color: var(--green); font-size: .875rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }

.skip-link { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .55rem .95rem; background: var(--deep); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.35rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; color: var(--green); text-decoration: none; }
.brand img { flex: none; }
.wordmark { font: 1.78rem/.86 var(--serif); white-space: nowrap; }
.wordmark span { display: block; margin-top: .42rem; padding-left: .12rem; font: 700 .68rem/1 var(--sans); letter-spacing: .27em; text-transform: uppercase; }
.header-inner nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.8rem); }
.header-inner nav a { padding-block: .5rem; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-inner nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.header-cta { justify-self: end; }

.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; width: fit-content; padding: .62rem 1.25rem; border: 1px solid transparent; border-radius: .16rem; font-size: .9375rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--deep); }
.button-primary:focus-visible { outline-color: var(--green); }
.button-outline { border-color: #84988b; color: var(--green); }
.button-outline:hover { background: var(--mist); }
.button-light { border-color: #8ca296; color: var(--white); }
.button-light:hover { background: var(--white); border-color: var(--white); color: var(--deep); }

.hero { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(2.25rem, 5vw, 5.5rem); padding-block: clamp(2.15rem, 4.7vw, 4.4rem); }
.hero h1 { margin-top: 1.1rem; font: clamp(5rem, 7.5vw, 8.25rem)/.83 var(--serif); letter-spacing: -.035em; }
.hero h1 em { display: block; color: var(--green); }
.hero-description { max-width: 27rem; margin-block: 1.55rem 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.27vw, 1.2rem); }
.hero-figure { background: #39534c; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1.27; object-fit: cover; object-position: 56% 50%; }

.work { color: var(--white); background: var(--deep); }
.work .eyebrow { color: #c3d5c6; }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 2rem; }
.work-heading h2 { margin-top: .35rem; font: clamp(4.35rem, 8vw, 8rem)/.87 var(--serif); letter-spacing: -.015em; }
.case-dot { color: #c6ac7c; }
.work-heading .button { margin-bottom: .25rem; flex: none; }
.feature-photo { position: relative; }
.feature-photo img { width: 100%; height: auto; aspect-ratio: 2.08; object-fit: cover; object-position: 50% 56%; }
.feature-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: .48rem .78rem; background: #172f28; color: var(--white); font-size: .875rem; line-height: 1.35; }
.work-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); margin-block: clamp(2.75rem, 5vw, 5.25rem) 2.85rem; }
.work-story h3 { max-width: 26rem; font: clamp(2.55rem, 4.2vw, 4.1rem)/.98 var(--serif); }
.work-story p, .case-card p { color: #d6e1d7; }
.work-story p + p { margin-top: .9rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.75rem); }
.case-card > img, .assistant-art { width: 100%; height: auto; aspect-ratio: 1.62; }
.case-card > img { object-fit: cover; }
.case-card h3 { margin-block: .85rem .3rem; font: 2.05rem/1.05 var(--serif); }
.assistant-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; background: #e6e4d7; color: var(--deep); }
.assistant-art img { width: clamp(3rem, 6vw, 5rem); height: auto; border: 2px solid #fffdf5; border-radius: 50%; }
.assistant-art span { font: 1.7rem/1 var(--serif); }

.section-intro h2 { margin-block: .6rem .85rem; font: clamp(3.3rem, 6.1vw, 6rem)/.94 var(--serif); letter-spacing: -.018em; }
.section-intro h2 em { color: var(--green); }
.section-intro > p:not(.eyebrow) { max-width: 37rem; color: var(--muted); font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 6vw, 6rem); margin-top: 2.55rem; }
.service-grid article { border-top: 1px solid var(--line); padding-block: 1.55rem 1.8rem; }
.service-grid article:nth-last-child(-n + 2) { padding-bottom: 0; }
.service-grid h3 { margin-bottom: .4rem; font: clamp(1.9rem, 3vw, 2.6rem)/1.05 var(--serif); }
.service-grid p, .monitoring-list dd, .owner-promise > p:last-child { max-width: 34rem; color: var(--muted); }

.monitoring { background: var(--mist); }
.monitoring-grid, .about { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.monitoring-list > div { padding-block: 1rem; border-top: 1px solid #b3c0b3; }
.monitoring-list > div:last-child { border-bottom: 1px solid #b3c0b3; }
.monitoring-list dt { margin-bottom: .2rem; font-weight: 700; }
.owner-promise { padding: clamp(1.6rem, 4vw, 3rem); border: 1px solid var(--line); }
.promise-text { margin-block: .7rem .85rem; font: clamp(2.85rem, 4.8vw, 4.5rem)/.92 var(--serif); }
.promise-text em { color: var(--green); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 7.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: 1.2rem; }
.footer-inner p, .text-link { font-size: .875rem; }
.footer-inner p { color: var(--muted); }
.text-link { font-weight: 600; text-underline-offset: .22em; white-space: nowrap; }

@media (max-width: 68rem) {
  .frame { width: calc(100% - 4.5rem); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(4.1rem, 8.5vw, 6.1rem); }
}

@media (max-width: 49rem) {
  .frame { width: calc(100% - 3rem); }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 3.25rem 2rem; }
  .hero h1 { font-size: clamp(4.5rem, 14vw, 7.5rem); }
  .hero-description { margin-block: 1.25rem 1.35rem; }
  .hero-figure img { aspect-ratio: 1.55; }
  .work-story, .monitoring-grid, .about { grid-template-columns: 1fr; gap: 1.45rem; }
  .work-story h3 { max-width: 31rem; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 34rem) {
  .frame { width: calc(100% - 2rem); }
  .header-inner { min-height: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding-block: .55rem .25rem; }
  .brand img { width: 40px; height: 40px; }
  .wordmark { font-size: 1.65rem; }
  .header-inner nav { margin-left: auto; gap: .95rem; }
  .header-inner nav a { font-size: .875rem; }
  .hero { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 5.5rem); }
  .work-heading { align-items: start; flex-direction: column; margin-bottom: 1.35rem; }
  .work-heading h2 { font-size: clamp(3.5rem, 14vw, 5.25rem); }
  .feature-photo img { aspect-ratio: 1.33; }
  .feature-photo figcaption { position: static; display: inline-block; max-width: 100%; padding: .5rem 0 0; }
  .case-grid, .service-grid { grid-template-columns: 1fr; }
  .assistant-art img { width: 4.5rem; }
  .service-grid article:nth-last-child(2) { padding-bottom: 1.8rem; }
  .footer-inner p { order: 1; flex-basis: 100%; }
}

@media (max-width: 26rem) {
  .header-inner nav { flex-basis: 100%; justify-content: flex-start; gap: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
