/* Heartwood Earthworx — static site styles. Mobile first. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --charcoal: #1a1a1a;
  --charcoal-deep: #111111;
  --panel: #242424;
  --cream: #f4f4f4;
  --paper: #fafafa;
  --sand: #ececec;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.28);
  --muted: #555555;
  --soil: #2a2a2a;
  --amber: #c4c4c8;
  --amber-hot: #d8d8dc;
  --clay: #8a8a8e;
  --on-dark: #f5f5f5;
  --on-dark-muted: #c4c4c8;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --header-h: 68px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 0.9rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--soil);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

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

.site-header :focus-visible,
.hero :focus-visible,
.page-head :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-dark);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.strata {
  display: flex;
  flex-direction: column;
  height: 14px;
}

.strata span {
  flex: 1;
  display: block;
}

.strata span:nth-child(1) { background: #f5f5f5; }
.strata span:nth-child(2) { background: #c4c4c8; }
.strata span:nth-child(3) { background: #8a8a8e; }
.strata span:nth-child(4) { background: #1a1a1a; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand picture {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-mark,
.brand picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.14rem;
  min-width: 0;
  line-height: 1;
}

.brand-name,
.brand-sub {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-dark);
}

.brand-name {
  font-size: 1.15rem;
}

.brand-sub {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(245, 245, 245, 0.45);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 959px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(245, 245, 245, 0.16);
    padding: 0.4rem 1rem 1rem;
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .nav-cta {
    margin-top: 0.35rem;
  }


  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 960px) {
  .brand picture {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.15rem;
  }

  .site-nav li a {
    padding: 0.35rem 0;
  }

  .site-nav a:hover {
    color: var(--amber);
  }


  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--amber);
  }
}


@media (min-width: 960px) and (max-width: 1120px) {
  .site-nav {
    gap: 0.7rem;
  }

  .site-nav ul {
    gap: 0.7rem;
  }

  .nav-cta {
    padding-inline: 0.75rem;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--panel);
  border-color: var(--panel);
  color: var(--on-dark);
}

.hero .btn-primary,
.page-head .btn-primary,
.cta-band .btn-primary,
.site-header .btn-primary,
.site-nav .btn-primary {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}

.hero .btn-primary:hover,
.page-head .btn-primary:hover,
.cta-band .btn-primary:hover,
.site-header .btn-primary:hover,
.site-nav .btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(245, 245, 245, 0.55);
}

.btn-ghost:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--on-dark);
}

/* Hero and page heads */

.hero,
.page-head {
  background: var(--charcoal);
  color: var(--on-dark);
}

.hero {
  padding: 1.75rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.kicker,
.section-kicker,
.footer-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.hero .kicker,
.page-head .kicker,
.footer-label,
.crumbs [aria-current="page"] {
  color: var(--amber);
}

.section-kicker {
  color: var(--soil);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.45rem, 4.7vw, 3.75rem);
  line-height: 0.9;
  text-transform: uppercase;
  max-width: 12em;
}

.lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero .lede {
  color: var(--on-dark);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.trust {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--on-dark-muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}

.chip-list li {
  border: 1px solid rgba(245, 245, 245, 0.32);
  padding: 0.35rem 0.55rem;
  font-size: 0.92rem;
  color: var(--on-dark);
}

.page-head {
  padding: 1.35rem 0 1.8rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.35rem, 6vw, 3.8rem);
  max-width: 18ch;
}

.page-head .lede {
  color: var(--on-dark-muted);
  font-size: 1.15rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crumbs a {
  color: var(--on-dark);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--amber);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--on-dark-muted);
}

/* Docket specimen */

.docket {
  background: var(--paper);
  color: var(--ink);
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border-top: 4px solid var(--amber);
  max-width: 420px;
}

.docket-flag {
  display: inline-block;
  margin: 0 0 0.7rem;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}

.docket-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docket-head span:last-child {
  color: var(--soil);
}

.docket dl {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  margin: 0;
}

.docket dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.docket dd {
  margin: 0;
  font-weight: 600;
}

.docket-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.docket-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-shot {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.42), rgba(17, 17, 17, 0) 34%);
}

.hero-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 768;
  object-fit: cover;
  display: block;
}

.plate {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 0.4rem;
  background-color: #e8e8e8;
  background-image: repeating-linear-gradient(
    -45deg,
    #e8e8e8,
    #e8e8e8 6px,
    #f0f0f0 6px,
    #f0f0f0 12px
  );
  border: 1px solid #c8c8c8;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docket-foot {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.section-head h2,
.block-title {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.scope {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.scope a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  grid-template-areas:
    "num name"
    "num meta";
  gap: 0.1rem 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0.35rem;
  margin: 0 -0.35rem;
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
}

.scope a:hover {
  background: var(--sand);
  color: inherit;
}

.scope-num {
  grid-area: num;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.scope-name {
  grid-area: name;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.scope-meta {
  grid-area: meta;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-row li {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.7rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.split {
  display: grid;
  gap: 1.25rem;
}

.split article {
  border-top: 3px solid var(--ink);
  padding-top: 0.8rem;
}

.split h3 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-strong);
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--soil);
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
}

.check-list {
  margin: 0;
  padding-left: 1.15rem;
}

.check-list li {
  margin: 0.35rem 0;
}

.coverage {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
  border-left: 3px solid var(--ink);
}

.coverage > li {
  position: relative;
  padding: 0 0 1.4rem 1.2rem;
}

.coverage > li::before {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  left: -0.5rem;
  top: 0.35rem;
  background: var(--amber);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.coverage h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.coverage p {
  max-width: 42rem;
  margin: 0;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

.cta-band {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: 2.6rem 0;
}

.cta-band h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.15rem, 5vw, 3.3rem);
  max-width: 16ch;
}

.cta-band p {
  max-width: 38rem;
  color: var(--on-dark-muted);
  margin: 0;
}

/* Services layout */

.service-layout {
  display: block;
}

.jump {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  list-style: none;
  padding: 0 0 0.4rem;
  margin: 0 0 0.5rem;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.jump a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.service {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 5.4rem;
}

.service h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.service p {
  max-width: 46rem;
}

.service.has-photo {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.service-photo,
.service-photos figure {
  margin: 0;
}

.service-photo img,
.service-photos img,
.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-photo figcaption,
.service-photos figcaption,
.work-grid span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

.service-photos {
  display: grid;
  gap: 0.75rem;
}

.service-photo.is-wide img {
  aspect-ratio: 2.2 / 1;
}

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.6rem;
}

.work-grid a {
  color: inherit;
  text-decoration: none;
}

.work-grid a:hover span {
  color: var(--ink);
}

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

.photo-slot {
  margin: 0;
}

.photo-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0.55rem;
  background-color: #e8e8e8;
  background-image: repeating-linear-gradient(
    -45deg,
    #e8e8e8,
    #e8e8e8 8px,
    #f0f0f0 8px,
    #f0f0f0 16px
  );
  border: 1px solid #c8c8c8;
}

.photo-frame strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.25rem 0.4rem;
}

.photo-slot figcaption {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.photo-slot.has-photo .photo-frame {
  padding: 0;
  background: var(--charcoal);
}

.photo-slot.has-photo .photo-frame strong {
  display: none;
}

.photo-slot.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* About */

.about-grid,
.contact-layout,
.two-col {
  display: grid;
  gap: 1.75rem;
}

.facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

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

.facts th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 38%;
}

.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: 0;
}

/* Contact */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}

.field label,
.form-legend {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  padding: 0.7rem 0.75rem;
  min-height: 48px;
  width: 100%;
}

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

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #8c2f1b;
}

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

.form-note,
.form-status {
  font-size: 0.98rem;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
  margin: 0.75rem 0 0;
}

.form-status[data-state="error"] {
  color: #8c2f1b;
}

.form-success {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: 1.25rem;
}

.form-success h2 {
  margin: 0 0 0.4rem;
  font-size: 2.2rem;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 1rem 1rem 1.1rem;
}

.contact-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.8rem;
}

address {
  font-style: normal;
}

.contact-card a,
.contact-card .phone,
.site-footer address a,
.site-footer address .phone,
.site-footer address span {
  display: block;
  margin: 0.25rem 0;
}

.phone {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Footer */

.site-footer {
  background: var(--charcoal-deep);
  color: var(--on-dark);
  padding: 2.2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer .brand {
  margin-bottom: 0.8rem;
}

.site-footer .brand picture {
  width: 48px;
  height: 48px;
}

.footer-blurb {
  color: var(--on-dark-muted);
  max-width: 28rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.legal {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(245, 245, 245, 0.16);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.legal p {
  margin: 0.25rem 0;
}


/* Careers */

.page-head-job h1 {
  max-width: 22ch;
}

.job-apply p a {
  display: inline;
  margin: 0;
}

.job-layout .block-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  max-width: 28ch;
  line-height: 1.05;
}

.job-facts {
  margin: 1rem 0 1.4rem;
}

.job-section-title {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.7rem;
}

.job-apply .cta-actions {
  margin-top: 1rem;
}

.job-apply a.btn {
  display: inline-flex;
  color: var(--ink);
}

.job-apply a.btn:hover {
  color: var(--ink);
}

/* Wider layouts */

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 3rem));
  }

  .scope a {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    grid-template-areas: "num name meta";
    align-items: baseline;
  }

  .split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .section {
    padding: 4.25rem 0;
  }

  .hero {
    padding: 2.8rem 0 3.4rem;
  }
}

@media (min-width: 900px) {
  .about-grid,
  .contact-layout,
  .two-col {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }
}

@media (min-width: 800px) {
  .service.has-photo {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    grid-template-areas:
      "copy shot"
      "docket shot";
    gap: 1.25rem 2.5rem;
    align-items: stretch;
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero-shot {
    grid-area: shot;
    align-self: start;
    height: auto;
  }

  .hero-shot::after {
    background:
      linear-gradient(to right, rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0) 24%),
      linear-gradient(to top, rgba(17, 17, 17, 0.3), rgba(17, 17, 17, 0) 28%);
  }

  .hero-shot img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1600 / 768;
    object-position: center;
  }

  .hero .docket {
    grid-area: docket;
    max-width: none;
    width: 100%;
  }

  .service-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .jump {
    position: sticky;
    top: 5.4rem;
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .jump a {
    white-space: normal;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn,
  .cta-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .facts,
  .facts tbody,
  .facts tr,
  .facts th,
  .facts td {
    display: block;
    width: 100%;
  }

  .facts th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .facts td {
    padding-top: 0.15rem;
  }
}

@media (max-width: 380px) {
  .brand picture {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }
}

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

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

@media print {
  .site-header,
  .skip-link,
  .nav-toggle,
  .hero-actions,
  .cta-band,
  .jump {
    display: none !important;
  }

  body,
  .hero,
  .page-head,
  .site-footer {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
