/* TECHECOHOME INC. — static site stylesheet. Generated by tools/build-site.mjs */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #0c0d10;
  --surface: #16181c;
  --surface-2: #1c1f24;
  --secondary: #27292d;
  --border: #303337;
  --border-strong: #63686f; /* 3.46:1 on --bg — WCAG 1.4.11 for control edges */
  --input-border: #63686f;
  --fg: #f0f2f4;
  --muted: #a2a5aa;
  --accent: #f9a200;
  --accent-hover: #ffb73e;
  --accent-fg: #160d07;
  --destructive: #ef6159; /* 6:1 on --bg for small error text */
  --ok: #6fcf6b;
  --radius: 0.25rem;
  --container: 80rem;
  --pad: 1.25rem;
  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps the page from jumping sideways when body scrolling is locked. */
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

/* The `hidden` attribute must win over any component display rule
   (`.card { display: flex }` would otherwise keep filtered cards on screen). */
[hidden] {
  display: none !important;
}

img {
  height: auto;
}

/* Photographic content keeps a neutral plate while it loads; logos must not. */
.card__media,
.hero__media img,
.gallery__item img {
  background-color: var(--surface-2);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

/* <main tabindex="-1"> receives focus from the skip link without a focus ring
   being drawn around the whole page. */
main:focus {
  outline: none;
}

main {
  /* The sticky header would otherwise cover the top of the skipped-to content. */
  scroll-margin-top: 5.5rem;
}

/* --------------------------------------------------------------- utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 5rem);
}

.section--surface {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent);
}

.lede {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--muted);
}

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

.h1 {
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Panel-level heading: the right-hand column should sit below the page h2. */
.h2--panel {
  font-size: clamp(1.375rem, 2.5vw, 1.5rem);
}

/* The CTA heading is deliberately sentence case. */
.h2--sentence {
  text-transform: none;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

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

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-align: center;
}

.btn--accent {
  background-color: var(--accent);
  color: var(--accent-fg);
}

.btn--accent:hover {
  background-color: var(--accent-hover);
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--fg);
  background-color: transparent;
}

.btn--outline:hover {
  background-color: var(--secondary);
  border-color: var(--muted);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
}

.link-quiet {
  color: var(--muted);
  transition: color 0.2s ease;
}

/* Standalone quiet links (phone, email, "all projects") need a 24px target. */
a.link-quiet {
  display: inline-block;
  padding-block: 0.25rem;
}

.link-quiet:hover {
  color: var(--fg);
}

.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
  padding-block: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.link-accent:hover {
  color: var(--accent-hover);
}

.link-accent .arrow {
  transition: transform 0.2s ease;
}

.link-accent:hover .arrow {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(12, 13, 16, 0.94);
  backdrop-filter: blur(10px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand__mark {
  width: auto;
  height: 2.75rem;
}

.brand__tag {
  display: none;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

@media (min-width: 640px) {
  .brand__tag {
    display: block;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s ease;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:not(.btn):hover {
  color: var(--fg);
}

.nav-desktop a[aria-current="page"],
.nav-desktop a.is-section {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

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

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

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

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: block;
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 1024px) {
  .nav-mobile.is-open {
    display: none;
  }
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  padding-block: 1rem 1.5rem;
  gap: 0.25rem;
}

.nav-mobile__list a:not(.btn) {
  padding-block: 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.nav-mobile__list a[aria-current="page"],
.nav-mobile__list a.is-section {
  color: var(--accent);
}

.nav-mobile__list .btn {
  margin-top: 1rem;
}

.nav-mobile__phone {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      100deg,
      rgba(12, 13, 16, 0.95) 0%,
      rgba(12, 13, 16, 0.82) 45%,
      rgba(12, 13, 16, 0.42) 100%
    ),
    linear-gradient(to top, rgba(12, 13, 16, 0.85), rgba(12, 13, 16, 0) 55%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(80vh, 44rem);
  padding-block: clamp(4rem, 12vw, 6.5rem);
}

.hero__sectors {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero h1 {
  margin-top: 1.5rem;
  max-width: 22ch;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.hero__text {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.facts-line,
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero__facts {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(240, 242, 244, 0.14);
}

.facts-line {
  margin-top: 3.5rem;
}

/* ---------------------------------------------------------- page intro/bar */
.page-head {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.page-head__inner {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.page-head h1 {
  margin-top: 1rem;
  max-width: 20ch;
}

.page-head .lede {
  margin-top: 1.5rem;
  max-width: 62ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb a,
.breadcrumb span {
  display: inline-block;
  padding-block: 0.3rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.breadcrumb ol,
.breadcrumb ul {
  display: contents;
}

/* ------------------------------------------------------------------- grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .split--wide {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* ------------------------------------------------------------------- cards */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background-color: var(--bg);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  height: 100%;
}

.card--surface {
  background-color: var(--surface);
}

.card:hover {
  border-color: var(--accent);
}

a.card:hover {
  transform: translateY(-2px);
}

.card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.card__meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.card__body h3,
.card__body h2 {
  margin-top: 0.75rem;
}

.card__body > p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.card__cta {
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------- bullet list */
.bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  background-color: var(--accent);
}

.bullets--sm {
  font-size: 0.9rem;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bullets--flex {
  flex: 1;
}

/* ----------------------------------------------------------- feature block */
.feature {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.feature p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.tile {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 1.25rem;
  color: var(--muted);
}

/* -------------------------------------------------------- services details */
.service-row {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
}

/* Alternation is stamped on by the generator (.service-row--flip): sibling
   position would count the page header too and put the banding out of phase. */
.service-row--flip {
  background-color: var(--surface);
}

@media (min-width: 900px) {
  .service-row--flip .figure-4x3 {
    order: 2;
  }
}

/* Shared 4:3 photo frame (service rows, about). */
.figure-4x3 img,
img.figure-4x3 {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  background-color: var(--surface-2);
}

.service-row__body h2 {
  margin-bottom: 1rem;
}

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

/* ----------------------------------------------------------------- filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters button {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  padding: 0.6rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.filters button:hover {
  color: var(--fg);
}

.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--accent-fg);
}

.filter-status {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ----------------------------------------------------------------- gallery */
.gallery {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__item:first-child,
  .gallery__item--video {
    grid-column: 1 / -1;
  }
}

.gallery__item {
  border: 1px solid var(--border);
  background-color: var(--surface);
  transition: border-color 0.2s ease;
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Site clips are phone-shot and portrait: letterbox them on a dark plate at
   a fixed height instead of letting a 9:16 frame run the full column width. */
.gallery__item--video video {
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  background-color: #000;
}

.gallery__item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.gallery__item:hover {
  border-color: var(--accent);
}

.scope-aside {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 1.75rem;
  align-self: start;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.spec-note {
  margin-top: 1.75rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Editorial note under a service ("sealant systems are selected per ..."). */
.note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 9, 0.94);
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox[open],
.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  max-width: min(70rem, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.lightbox__figure img {
  /* Flex sizing rather than a vh cap: the caption and the overlay padding get
     their space first, so a two-line caption can never push the image out. */
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.lightbox__count {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-strong);
  background: rgba(22, 24, 28, 0.9);
  color: var(--fg);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox__btn--prev {
  left: clamp(0.5rem, 2vw, 2rem);
}

.lightbox__btn--next {
  right: clamp(0.5rem, 2vw, 2rem);
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.75rem);
  right: clamp(0.75rem, 2vw, 1.75rem);
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-strong);
  background: rgba(22, 24, 28, 0.9);
  color: var(--fg);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.no-scroll {
  overflow: hidden;
}

/* ------------------------------------------------------------------- forms */
.form {
  display: grid;
  gap: 1.5rem;
}

/* auto-fit tracks respond to the width of the form column itself, which is
   narrower than the viewport inside .split--wide. */
.form__row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.field-input {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  color: var(--fg);
  font-size: 1rem; /* < 16px makes iOS Safari zoom the page on focus */
  transition: border-color 0.2s ease;
}

.field-input:hover {
  border-color: var(--muted);
}

.field-input:focus {
  border-color: var(--accent);
}

textarea.field-input {
  resize: vertical;
  min-height: 8rem;
}

select.field-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) 1.15rem,
    calc(100% - 0.75rem) 1.15rem;
  background-size:
    0.35rem 0.35rem,
    0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

input[type="file"].field-input {
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  border: 1px solid var(--border-strong);
  background: var(--secondary);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.field-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.field-error {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--destructive);
}

.field-input[aria-invalid="true"] {
  border-color: var(--destructive);
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  font-size: 0.9rem;
}

.form-status[data-state="ok"] {
  color: var(--ok);
}

.form-status[data-state="error"] {
  color: var(--destructive);
}

.form-status[data-state="pending"] {
  color: var(--muted);
}

/* ------------------------------------------------------------------ prose */
.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.prose > p:first-of-type {
  margin-top: 2rem;
}

/* Inside running text a quiet link is the same colour as the prose, so it needs
   an underline to be identifiable as a link at all. */
.prose a,
.notice a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------------ cta */
.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: clamp(3rem, 7vw, 4rem);
}

@media (min-width: 900px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band p {
  margin-top: 0.75rem;
  max-width: 44ch;
  color: var(--muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand p {
  margin-top: 0.85rem;
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.panel-heading,
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* Keep every inline link at or above the 24x24 CSS px target minimum. */
.site-footer ul a,
.site-footer__contact a {
  display: inline-block;
  padding-block: 0.3rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
}

.site-footer__bottom > .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .site-footer__bottom > .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------- 404 */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding-block: 4rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  color: var(--accent);
}

/* ------------------------------------------------------------------ notice */
.notice {
  border: 1px dashed var(--border-strong);
  background-color: var(--surface);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------- motion / print */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  a.card:hover {
    transform: none;
  }
}

@media print {
  /* The whole palette has to flip, or token-coloured headings print white. */
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --secondary: #fff;
    --fg: #000;
    --muted: #333;
    --accent: #000;
    --accent-fg: #fff;
    --border: #999;
    --border-strong: #666;
    --input-border: #666;
  }
  .site-header,
  .cta-band,
  .nav-mobile,
  .lightbox,
  .skip-link,
  .gallery__item--video {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  .tile,
  .scope-aside,
  .gallery__item {
    break-inside: avoid;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
  }
}
