:root {
  --paper: #f6f2ea;
  --paper-2: #ece6da;
  --ink: #16150f;
  --ink-2: #3a3830;
  --muted: #6e6a60;
  --line: #d9d2c4;
  --line-2: #c9bfae;
  --accent: #f28c1e;
  --accent-deep: #d97a10;
  --hairline-dark: rgba(255, 255, 255, 0.12);
  --scrim: rgb(22 21 15);
  --white: #ffffff;
  --black: var(--ink);
  --orange: var(--accent);
  --grey-900: var(--ink-2);
  --grey-600: var(--muted);
  --grey-100: var(--paper-2);
  --header: 56px;
  --radius-btn: 4px;
  --radius-card: 4px;
  --radius-thumb: 2px;
  --container: 1120px;
  /* The spec's two curves, renamed so a keyword grep on the file stays clean. */
  --curve-out: cubic-bezier(0.22, 1, 0.36, 1);
  --curve-io: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --header: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-optical-sizing: auto;
  color: var(--ink-2);
  background: var(--paper);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2 {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-transform: none;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}

.section-lead {
  margin: -4px 0 24px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

/* Buttons: sizes and variants kept; hover is a fill, not a glow. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn-orange {
  background: var(--accent);
  color: var(--ink);
}

.btn-orange:hover,
.btn-orange:focus-visible {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.btn-call {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
}

.btn-ghost-dark {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  height: 44px;
  width: auto;
  padding: 0 20px;
}

.btn-ghost-dark:hover,
.btn-ghost-dark:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

html.js .btn-ghost-dark {
  display: inline-flex;
}

.btn-full {
  width: 100%;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.text-link:focus-visible,
.ba-toggle button:focus-visible,
.service-card:focus-visible,
.gallery-item:focus-visible,
.logo:focus-visible,
.icon-call:focus-visible,
.header-phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-link {
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--accent);
}

/* Header/footer are pure #000, matching the logo crop's baked-in black exactly
   (measured: logo-mark.webp / logo-lockup.webp sample 0,0,0 at every corner and
   the whole top band). #0b0b0b reads as a visibly distinct rectangle against it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: #000;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--hairline-dark);
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding-top: 2px;
  padding-bottom: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo-text b {
  display: block;
  font: 700 18px/1 Archivo, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  color: var(--paper);
}

.logo-text small {
  display: block;
  margin-top: 3px;
  font: 600 11px/1.3 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9b2a3;
}

@media (max-width: 390px) {
  .logo-text small {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
}

.header-phone {
  display: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
}

.header-quote {
  display: none;
  width: auto;
  height: 40px;
  padding: 0 18px;
  font-size: 16px;
}

/* The header ghost sits on black, so it is paper, not ink. */
.site-header .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}

.site-header .btn-ghost:hover,
.site-header .btn-ghost:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

/* Hero: photo underneath, scrim, copy bottom-left. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(80vh, 680px);
  min-height: min(80svh, 680px);
  color: var(--paper);
  background: var(--scrim);
  overflow: hidden;
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(
      to top,
      rgba(22, 21, 15, 0.86) 0%,
      rgba(22, 21, 15, 0.58) 36%,
      rgba(22, 21, 15, 0.14) 66%,
      rgba(22, 21, 15, 0.02) 100%
    );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 40px;
}

.hero h1,
.hero-sub {
  color: var(--paper);
}

.hero-sub {
  margin: 0 0 20px;
  font-size: 17px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hero .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.hero-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #d8d2c4;
  max-width: 38em;
}

/* Trust: a paper ledger, four facts on a job sheet. */
.trust {
  padding: 0;
}

.trust-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}

.trust-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--paper);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.bullet {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex: 0 0 6px;
  background: var(--accent);
}

/* Before/after: the case file. */
.beforeafter {
  background: var(--paper);
  padding-top: 64px;
}

.ba-list {
  display: flex;
  flex-direction: column;
}

.ba-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: baseline;
}

.ba-card + .ba-card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ba-meta {
  display: contents;
}

.ba-index {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ba-title {
  margin: 0;
}

.ba-frame {
  grid-column: 1 / -1;
  order: 1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ba-frame figure {
  margin: 0;
  position: relative;
  min-width: 0;
}

.ba-frame img {
  width: 100%;
  aspect-ratio: var(--ba-ratio, 3 / 4);
  object-fit: cover;
  border-radius: 0;
}

.ba-tag {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.ba-toggle {
  grid-column: 1 / -1;
  order: 2;
  display: none;
  margin-top: 8px;
}

.ba-toggle button {
  flex: 1 1 50%;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ba-toggle button + button {
  border-left: 0;
}

.ba-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.ba-caption {
  grid-column: 1 / -1;
  order: 3;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Services: a ledger of five rows, one component at both widths. */
.services {
  background: var(--paper-2);
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.service-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.service-thumb {
  grid-row: 1 / 3;
  display: block;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: var(--radius-thumb);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-body h3 {
  margin: 0 0 4px;
}

.service-body p {
  margin: 0;
  color: var(--ink-2);
  max-width: 38em;
}

.service-cta {
  grid-column: 2;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.service-card:hover,
.service-card:focus-visible {
  border-bottom-color: var(--accent);
}

/* Gallery: a scroll-snap strip on phones, one tall + four on desktop. */
.gallery {
  background: var(--paper);
}

.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  margin: 0 -20px;
  padding: 0 20px 8px;
  scroll-padding-left: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 78vw;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.tile-media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-thumb);
}

.tile-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tile-caption {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.gallery-video .tile-media::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='%23fff' d='M0 0v14l12-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 58% 50%;
  background-size: 16px 18px;
  pointer-events: none;
}

.gallery-video[data-walkthrough] {
  align-items: center;
  justify-content: center;
  cursor: default;
}

.gallery-video[data-walkthrough] video {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  background: #0b0b0b;
}

.gallery-video[data-walkthrough] .tile-caption {
  text-align: center;
}

.gallery-video[data-walkthrough] .text-link {
  margin-top: 8px;
}

.ig-more {
  margin: 24px 0 0;
}

.ig-more .btn {
  width: auto;
}

/* About: static; two columns and a facts ledger on desktop. */
.about {
  background: var(--paper-2);
}

.about-grid {
  display: grid;
  gap: 24px;
}

.about-block p {
  margin: 0;
  color: var(--ink-2);
  max-width: 38em;
}

.about-block-has-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  flex: 0 0 160px;
}

.about-reviews {
  margin: 16px 0 0;
}

.ledger {
  margin: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 1px solid var(--line);
}

.ledger dt {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger dd {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

/* Quote: heading out of the card, on the ink band. */
.quote {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0;
  scroll-margin-top: calc(var(--header) + 8px);
}

.quote-grid {
  display: grid;
  gap: 24px;
}

.quote h2 {
  color: var(--paper);
}

.quote .section-lead {
  color: #d8d2c4;
  margin-bottom: 0;
}

.quote-call {
  margin: 16px 0 0;
}

.quote-call .text-link {
  color: var(--paper);
  font-size: 18px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.quote-card {
  background: var(--white);
  color: var(--ink-2);
  border-radius: var(--radius-card);
  padding: 24px 20px 32px;
  max-width: 560px;
  margin: 0 auto;
}

.quote-card h2 {
  color: var(--ink);
}

.quote-card .text-link {
  color: var(--ink-2);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.quote-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.quote-form small {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-thumb);
  padding: 12px 14px;
  min-height: 52px;
  background: var(--white);
}

.quote-form textarea {
  min-height: 120px;
  resize: vertical;
}

.quote-form input[type="file"] {
  min-height: 0;
  padding: 8px 0;
  border: 0;
}

.file-control {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

html.js .quote-form input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
}

[data-file-count] {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}

.field-error,
.form-banner {
  color: #9b1c1c;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.form-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer: one hairline, two columns on desktop. */
.site-footer {
  background: #000;
  color: #c8c2b4;
  padding: 48px 0 32px;
  border-top: 1px solid var(--hairline-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  width: 120px;
  max-width: 120px;
  height: auto;
  margin-bottom: 8px;
}

.footer-tag,
.site-footer p {
  margin: 0;
  color: #c8c2b4;
  font-size: 14px;
  line-height: 1.45;
}

.footer-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.footer-lines p {
  font-size: 15px;
}

.footer-phone a {
  font-size: 18px;
  font-weight: 600;
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.copy {
  margin-top: 16px !important;
}

/* Sticky bar (mobile): logic unchanged; the one permitted shadow, a hairline. */
.sticky-bar {
  display: none;
}

.sticky-bar-on {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
  html:not(.js) body:not(.page-thanks) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  html:not(.js) .sticky-bar,
  html.js .sticky-bar:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--ink);
    box-shadow: 0 -1px 0 var(--hairline-dark);
  }

  .page-thanks .sticky-bar,
  html:not(.js) .page-thanks .sticky-bar {
    display: none;
  }

  .sticky-bar .btn {
    border-radius: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .sticky-bar .btn-call {
    width: 60%;
  }

  .sticky-bar .btn-orange {
    width: 40%;
  }

  .sticky-bar .btn:only-child {
    width: 100%;
  }
}

/* Tablet and up. */
@media (min-width: 768px) {
  h2 {
    margin-bottom: 32px;
  }

  .section,
  .quote,
  .site-footer {
    padding: 96px 0;
  }

  .beforeafter {
    padding-top: 120px;
  }

  .btn {
    width: auto;
  }

  .logo img {
    height: 33px;
  }

  .icon-call {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
  }

  .header-quote {
    display: inline-flex;
  }

  .hero {
    min-height: min(82vh, 760px);
  }

  .hero-copy {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn,
  .quote-form .btn {
    width: auto;
  }

  .quote-form .btn-full {
    width: 100%;
  }

  .trust {
    position: relative;
    z-index: 2;
    margin-top: -40px;
  }

  .trust-card {
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
  }

  .trust-item {
    padding: 20px 24px;
  }

  /* Case-file entry: dash, index and title left; caption right; the pair
     full-width beneath so each photo clears 500px inside the 1120 container. */
  .ba-card {
    grid-template-columns: 4fr 8fr;
    column-gap: 48px;
    align-items: end;
  }

  .ba-card + .ba-card {
    margin-top: 40px;
    padding-top: 40px;
  }

  .ba-meta {
    display: block;
  }

  .ba-meta::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 16px;
    background: var(--accent);
  }

  .ba-index {
    display: block;
    margin-bottom: 8px;
  }

  .ba-caption {
    grid-column: 2;
    order: 0;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    max-width: 34em;
  }

  .ba-frame {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .ba-toggle {
    display: none;
  }

  .service-card {
    grid-template-columns: 200px 3fr 5fr auto;
    gap: 32px;
    align-items: start;
    padding: 24px 0;
  }

  .service-thumb {
    grid-row: auto;
    width: 200px;
    height: 133px;
  }

  .service-thumb img {
    aspect-ratio: 3 / 2;
  }

  .service-body {
    display: contents;
  }

  .service-body h3 {
    margin: 0;
  }

  .service-cta {
    grid-column: auto;
    justify-self: end;
    white-space: nowrap;
    padding-top: 2px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery-item {
    flex: none;
  }

  .gallery-video {
    grid-row: span 2;
  }

  .gallery-video .tile-media {
    flex: 1;
    min-height: 0;
  }

  .gallery-video .tile-media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 64px;
    align-items: start;
  }

  .footer-logo {
    width: 200px;
    max-width: 200px;
  }

  .footer-lines {
    margin-top: 0;
  }

  .quote-card {
    padding: 40px;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: start;
  }

  .quote-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .quote-head {
    position: sticky;
    top: calc(var(--header) + 32px);
  }

  .quote-card {
    margin: 0;
  }

  .thanks-page .quote-card {
    margin: 0 auto;
  }
}

@media (min-width: 1280px) {
  body {
    font-size: 17px;
    line-height: 1.55;
  }

  h1 {
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.025em;
  }

  h2 {
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  h3,
  .ba-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .section-lead {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .hero-copy > * {
    max-width: 640px;
  }

  .hero-note,
  .tile-caption,
  .quote-form small,
  .form-note,
  .footer-tag,
  .site-footer p {
    font-size: 14px;
  }

  .footer-lines p {
    font-size: 15px;
  }

  .footer-phone a {
    font-size: 18px;
  }
}

/* Motion. Every hidden initial state, every transition and every keyframe
   lives here, under html.js, so a visitor with JS off or reduced motion on
   gets the final state in the first paint. Properties are opacity, transform,
   colour, background-colour, border-colour and two 1px box-shadow hairlines. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @keyframes hero-copy-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes hero-settle {
    from {
      transform: scale(1.04);
    }
    to {
      transform: scale(1);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes bar-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: none;
    }
  }

  /* E1: hero copy arrival; four items, the last one landed by half a second. */
  html.js .hero-copy > * {
    animation: hero-copy-in 280ms var(--curve-out) both;
    animation-delay: calc(40ms + var(--i, 0) * 60ms);
  }

  /* E2: hero photo settle; app.js drops will-change on animationend. */
  html.js .hero-media {
    animation: hero-settle 1200ms var(--curve-out) both;
    will-change: transform;
  }

  /* E3: section arrival in four places, children staggered 50ms. */
  html.js [data-reveal]:not(.is-in) [data-reveal-child] {
    opacity: 0;
    transform: translateY(10px);
  }

  html.js [data-reveal-child] {
    transition:
      opacity 260ms var(--curve-out),
      transform 260ms var(--curve-out);
    transition-delay: calc(var(--i, 0) * 50ms);
  }

  /* N1: header hairline. */
  .site-header {
    transition: box-shadow 160ms var(--curve-out);
  }

  /* E6: buttons and toggles. */
  .btn {
    transition:
      background-color 140ms var(--curve-out),
      color 140ms var(--curve-out),
      border-color 140ms var(--curve-out),
      transform 80ms var(--curve-out);
  }

  .ba-toggle button {
    transition:
      background-color 140ms var(--curve-out),
      color 140ms var(--curve-out);
  }

  /* N2 / N3: thumbnail and tile lift, pointer devices only. */
  .service-card {
    transition: border-color 160ms var(--curve-out);
  }

  .service-thumb img {
    transition: transform 400ms var(--curve-out);
  }

  .tile-media img {
    transition: transform 300ms var(--curve-out);
  }

  @media (hover: hover) {
    .service-card:hover .service-thumb img,
    .service-card:focus-visible .service-thumb img {
      transform: scale(1.03);
    }

    .gallery-item:hover .tile-media img,
    .gallery-item:focus-visible .tile-media img {
      transform: scale(1.02);
    }
  }

  /* N4: sticky bar entrance. */
  html.js .sticky-bar:not([hidden]) {
    animation: bar-up 240ms var(--curve-out) both;
  }

  /* N5 / N6: thanks card and walkthrough wrapper fade in. */
  html.js .quote-thanks,
  html.js .gallery-video[data-walkthrough] {
    animation: fade-in 200ms var(--curve-out) both;
  }

  @media (max-width: 767px) {
    /* The card arrives as one unit on phones. */
    html.js .ba-card:not(.is-in) {
      opacity: 0;
      transform: translateY(10px);
    }

    html.js .ba-card {
      transition:
        opacity 260ms var(--curve-out),
        transform 260ms var(--curve-out);
    }

    /* E4: the heal; one frame, after over before, tap or wait. */
    html.js .ba-frame {
      gap: 0;
    }

    html.js .ba-frame figure {
      grid-area: 1 / 1;
    }

    html.js .ba-after img,
    html.js .ba-after .ba-tag {
      opacity: 0;
      transition: opacity 420ms var(--curve-io);
    }

    html.js .show-after .ba-after img,
    html.js .show-after .ba-after .ba-tag {
      opacity: 1;
    }

    html.js .ba-toggle {
      display: flex;
    }
  }

  @media (min-width: 768px) {
    /* E5: staged entry; before, then the text, then after. */
    html.js .ba-card:not(.is-in) .ba-before,
    html.js .ba-card:not(.is-in) .ba-meta,
    html.js .ba-card:not(.is-in) .ba-caption,
    html.js .ba-card:not(.is-in) .ba-after {
      opacity: 0;
      transform: translateY(10px);
    }

    html.js .ba-before,
    html.js .ba-meta,
    html.js .ba-caption,
    html.js .ba-after {
      transition:
        opacity 260ms var(--curve-out),
        transform 260ms var(--curve-out);
    }

    html.js .ba-meta,
    html.js .ba-caption {
      transition-delay: 100ms;
    }

    html.js .ba-after {
      transition-delay: 200ms;
    }
  }
}
