/* Knox Roofing & Construction — site styles. Strictly #000 / #fff. */

/* ---------- Fonts (self-hosted, latin) ----------
   Source Serif 4 roman keeps its optical-size axis for 16-20px (the only
   sizes the site sets it at) so it renders like the design's Google font;
   the italic is the opsz 16 instance (used at 16px only). */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/oswald.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/instrument-sans.woff2) format('woff2');
}

/* Metric-matched fallbacks: same advance width and line box as the web font,
   so the swap does not move anything. Values computed from the woff2 files
   (typo metrics + average advance of the site's own copy). Two per family
   because Arial Narrow / Georgia are not on every device. */
@font-face {
  font-family: 'Oswald Fallback';
  font-weight: 400 700;
  src: local('Arial Narrow Bold'), local('ArialNarrow-Bold');
  size-adjust: 95.05%;
  ascent-override: 125.51%;
  descent-override: 30.40%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Oswald Fallback Arial';
  font-weight: 400 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 77.94%;
  ascent-override: 153.06%;
  descent-override: 37.08%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Serif Fallback';
  font-style: normal;
  font-weight: 200 900;
  src: local('Georgia');
  size-adjust: 105.13%;
  ascent-override: 98.54%;
  descent-override: 31.86%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Serif Fallback';
  font-style: italic;
  font-weight: 200 900;
  src: local('Georgia Italic'), local('Georgia-Italic');
  size-adjust: 95.60%;
  ascent-override: 108.37%;
  descent-override: 35.04%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Serif Fallback TNR';
  font-style: normal;
  font-weight: 200 900;
  src: local('Times New Roman'), local('TimesNewRomanPSMT');
  size-adjust: 115.24%;
  ascent-override: 89.90%;
  descent-override: 29.07%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Serif Fallback TNR';
  font-style: italic;
  font-weight: 200 900;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 106.25%;
  ascent-override: 97.51%;
  descent-override: 31.53%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sans Fallback';
  font-weight: 400 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 105.71%;
  ascent-override: 91.76%;
  descent-override: 23.65%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sans Fallback';
  font-weight: 600 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 97.75%;
  ascent-override: 99.23%;
  descent-override: 25.57%;
  line-gap-override: 0%;
}

:root {
  --oswald: 'Oswald', 'Oswald Fallback', 'Oswald Fallback Arial', sans-serif;
  --serif: 'Source Serif 4', 'Serif Fallback', 'Serif Fallback TNR', serif;
  --sans: 'Instrument Sans', 'Sans Fallback', sans-serif;
  --px: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --gap: clamp(48px, 6vw, 80px); /* space between the black sections (no dividers) */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: #fff; color: #000; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

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

.eyebrow {
  font: 600 13px var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.label {
  font: 600 12px var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.h2 {
  font: 700 clamp(31px, 4vw, 50px)/1 var(--oswald);
  text-transform: uppercase;
}
.wrap { max-width: 1240px; margin: 0 auto; }
.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
}

/* Below-the-fold sections skip rendering until near the viewport.
   Intrinsic sizes are close to the real heights per breakpoint; "auto"
   remembers the real size once rendered. Anchor glides re-read the target
   every frame, so a size change while scrolling cannot misplace them. */
.cv { content-visibility: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5.5vw, 56px);
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  background: #000;
  border-bottom: 1px solid #fff;
  font: 600 clamp(13px, 1.4vw, 15px) var(--oswald);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow .2s;
}
/* Invisible 48px+ tap area without moving the underline */
.nav a::before { content: ''; position: absolute; inset: -6px -10px; }

/* ---------- Buttons ---------- */
.btn {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
  padding: 12px 18px;
  border: 2px solid #fff;
  font: 600 18px var(--oswald);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.btn--fill { background: #fff; color: #000; }
.btn--line { background: #000; color: #fff; }
.btn--fill:focus-visible, .submit:focus-visible { outline-offset: 4px; }

/* ---------- 1. Logo & intro ---------- */
.intro__logo {
  display: flex;
  justify-content: center;
  padding: clamp(48px, 7vw, 88px) var(--px) clamp(8px, 2vw, 24px);
  background: #000;
}
.intro__logo img {
  display: block;
  width: min(680px, 86vw);
  height: auto;
  aspect-ratio: 1659 / 948;
}
.intro__main { padding: clamp(44px, 6vw, 72px) var(--px) var(--gap); }
.intro__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
.intro__title { display: flex; flex-direction: column; gap: 16px; }
.intro h1 {
  font: 700 clamp(34px, 4.4vw, 56px)/1 var(--oswald);
  text-transform: uppercase;
  text-wrap: balance;
}
.intro__text { display: flex; flex-direction: column; gap: 26px; }
.intro__text p {
  font: 400 clamp(17px, 1.8vw, 19px)/1.6 var(--serif);
  text-wrap: pretty;
}
.intro__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 2. Services ---------- */
.svc {
  scroll-margin-top: calc(60px + clamp(28px, 4vw, 48px)); /* nav + breathing room (no top padding) */
  padding: 0 var(--px) var(--gap);
  background: #000;
  color: #fff;
  contain-intrinsic-size: auto 4300px;
}
.svc .head { margin-bottom: 16px; } /* same label-to-grid gap as the service areas */
.svc__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
}
.svc__grid { --cols: 1; }
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: clamp(28px, 2.8vw, 36px) clamp(24px, 2.5vw, 32px) clamp(32px, 3.2vw, 40px);
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transition: background-color .2s, color .2s;
}
.card__t { display: flex; flex-direction: column; gap: 8px; }
.card h3 {
  font: 700 clamp(26px, 2.4vw, 30px)/1.02 var(--oswald);
  text-transform: uppercase;
  text-wrap: balance;
}
.card__t p { font: italic 400 16px/1.4 var(--serif); text-wrap: balance; }
.card ul {
  margin: 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card li { font: 500 14px/1.45 var(--sans); letter-spacing: .04em; padding-left: .15em; } /* same type as the footer address */

/* ---------- 3. Portfolio ---------- */
.pf {
  scroll-margin-top: calc(60px + clamp(28px, 4vw, 48px)); /* nav + breathing room (no top padding) */
  padding: 0 var(--px) var(--gap);
  contain-intrinsic-size: auto 720px;
}
.pf__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: stretch;
}
.pf__text { display: flex; flex-direction: column; gap: 20px; }
.pf__h2 { text-wrap: balance; }
.pf__lead {
  margin-top: auto;
  padding-top: 8px;
  font: 400 clamp(18px, 1.9vw, 20px)/1.55 var(--serif);
  text-wrap: pretty;
}
.pf__body {
  font: 400 clamp(17px, 1.8vw, 18px)/1.6 var(--serif);
  text-wrap: pretty;
}

/* Project galleries: stacked hairline list (right column on desktop) */
.pf__projects { display: flex; flex-direction: column; gap: 14px; }
.pf__list {
  --pcols: 1;
  display: grid;
  grid-template-columns: repeat(var(--pcols), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
}
.pf__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 22px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  font: 700 clamp(17px, 1.5vw, 19px)/1.15 var(--oswald);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.pf__list .nw { white-space: nowrap; }
.pf__go { flex: none; font: 400 22px/1 var(--sans); }

/* ---------- 4. Areas ---------- */
.areas {
  padding: 0 var(--px) var(--gap);
  background: #000;
  color: #fff;
  contain-intrinsic-size: auto 1000px;
}
/* Label + town list + contact link left, map right; phones: label, map, list, link. Map and list highlight each other (site.js). */
.areas__wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "map" "list" "more";
  row-gap: 20px;
}
.areas__label { grid-area: label; }
.areas__map { grid-area: map; width: 100%; max-width: 600px; justify-self: center; }
.areas__map svg { display: block; width: 100%; height: auto; }
.areas__list {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
}
/* 21 towns: 3 columns fill evenly; on 2-column phones an empty cell closes the last row */
.areas__list::after { content: ""; border-right: 1px solid #fff; border-bottom: 1px solid #fff; }
@media (min-width: 560px) {
  .areas__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .areas__list::after { content: none; }
}
.knox-sa__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.knox-sa__item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.knox-sa__item.is-on { background: #fff; color: #000; }
.knox-sa__item.is-on:focus-visible { box-shadow: inset 0 0 0 2px #000; }
.knox-sa__name { font: 600 16px var(--oswald); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.knox-sa__state { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.areas__more { grid-area: more; }
/* Map highlight */
.knox-sa__map g[data-city] { transition: opacity .2s, transform .25s cubic-bezier(.3, .7, .3, 1.3); }
.knox-sa__map.is-hl g[data-city] { opacity: .3; }
.knox-sa__map.is-hl g[data-city].is-on { opacity: 1; transform: scale(1.45); }
.knox-sa__map g.is-link { cursor: pointer; }
.knox-sa__ring {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: knox-sa-pulse 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes knox-sa-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .knox-sa__ring { animation: none; } }
.areas__more {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 6px 0;
  margin: -6px 0;
  font: 400 18px/1.5 var(--serif);
}
.areas__more > span {
  padding-bottom: 2px;
  font: 600 16px var(--oswald);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 #fff;
}

.areas__more .nw { white-space: nowrap; }

/* Drawn arrow: the web fonts have no → glyph, and the borrowed one sits low */
.arr {
  display: inline-block;
  width: .95em;
  height: .55em;
  vertical-align: .1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  overflow: visible;
}
.arr--lg { width: 22px; height: 13px; vertical-align: middle; stroke-width: 1.8; }

/* ---------- 5. Request form ---------- */
.req {
  scroll-margin-top: 60px;
  padding: clamp(64px, 9vw, 104px) var(--px);
}
.req__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.req__aside { display: flex; flex-direction: column; gap: 22px; top: 96px; }
.req__h2 {
  font: 700 clamp(31px, 4vw, 50px)/1 var(--oswald);
  text-transform: uppercase;
  text-wrap: balance;
}
.req__body { min-width: 0; }

.form { position: relative; display: flex; flex-direction: column; gap: 30px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 30px 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--area { gap: 10px; }
.field input,
.field textarea {
  width: 100%;
  margin: 0;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  padding: 10px 0;
  font: 400 20px var(--serif);
}
.field input { min-height: 48px; }
.field textarea {
  display: block;
  min-height: 150px;
  resize: vertical;
  border: 2px solid #fff;
  padding: 14px 16px;
  font: 400 19px/1.5 var(--serif);
}
.field input::placeholder,
.field textarea::placeholder { color: #fff; opacity: .45; }
.field input:focus { outline: none; box-shadow: 0 2px 0 #fff; }
.field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px #fff; }

.alert {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  font: 400 17px/1.5 var(--serif);
}
.alert[hidden]:not(:target) { display: none; }
.alert__mark { flex: none; font: 700 17px var(--oswald); }

.submit {
  width: 100%;
  min-height: 66px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  border-radius: 0;
  cursor: pointer;
  font: 600 clamp(18px, 1.9vw, 20px) var(--oswald);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
  touch-action: manipulation;
}
.submit:disabled { cursor: progress; }

.sent {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: clamp(30px, 4vw, 48px);
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  scroll-margin-top: 80px;
}
.sent:target,
.sent.is-shown { display: flex; }
.req__body:has(.sent:target) .form,
.form.is-done { display: none; }
.sent__mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font: 700 22px var(--sans);
}
.sent__title {
  font: 700 clamp(26px, 3vw, 36px)/1.1 var(--oswald);
  text-transform: uppercase;
  text-wrap: balance;
}
.sent__msg { font: 400 19px/1.55 var(--serif); }

/* ---------- Request form on white (inverted so it stands out) ---------- */
.req { background: #fff; color: #000; }
.req ::selection { background: #000; color: #fff; }
.req :focus-visible { outline-color: #000; }
.req .field input,
.req .field textarea { color: #000; border-color: #000; }
.req .field input::placeholder,
.req .field textarea::placeholder { color: #000; }
.req .field input:focus { box-shadow: 0 2px 0 #000; }
.req .field textarea:focus { box-shadow: inset 0 0 0 1px #000; }
.req .alert,
.req .sent { background: #000; color: #fff; border-color: #000; }
.req .sent ::selection { background: #fff; color: #000; }
.req .submit { background: #000; color: #fff; border-color: #000; }
@media (hover: hover) {
  .req .submit:not(:disabled):hover { background: #fff; color: #000; }
}
@media (hover: none) {
  .req .submit:not(:disabled):active { background: #fff; color: #000; }
}

/* ---------- 6. Footer ---------- */
.ft {
  --fpad: 84px; /* room for the mobile action bar */
  padding: clamp(48px, 6vw, 72px) var(--px) calc(clamp(24px, 3vw, 28px) + var(--fpad) + env(safe-area-inset-bottom));
  background: #000;
  color: #fff;
}
.ft__wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.ft__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
}
.ft__brand { display: flex; flex-direction: column; gap: 6px; }
.ft__name { font: 700 clamp(22px, 2.4vw, 26px)/1.1 var(--oswald); text-transform: uppercase; }
.ft__addr { font: 500 14px/1.5 var(--sans); font-style: normal; letter-spacing: .04em; }
.ft__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  font: 700 22px var(--oswald);
  letter-spacing: .04em;
  transition: background-color .2s, color .2s;
}
.ft__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid #fff;
  font: 500 14px var(--sans);
  letter-spacing: .04em;
}
.ft__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
/* Touch screens: 48px tap rows (the design's 12px row gap folds into them) */
@media (max-width: 999px), (pointer: coarse) {
  .ft__links { row-gap: 0; }
  .ft__links a { display: inline-flex; align-items: center; min-height: 48px; }
}
.ft__email { overflow-wrap: anywhere; }

/* ---------- Mobile floating action bar ---------- */
.fab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 8px;
  padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: #000;
  border-top: 1px solid #fff;
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.fab.is-on {
  transform: none;
  visibility: visible;
  transition: transform .35s var(--ease), visibility 0s;
}
.fab__btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 6px 8px;
  border: 2px solid #fff;
  font: 600 15px/1.1 var(--oswald);
  letter-spacing: .06em;
  text-transform: uppercase;
  touch-action: manipulation;
}
.fab__btn--white { background: #fff; color: #000; }
.fab__btn--black { background: #000; color: #fff; }
.fab :focus-visible { outline-offset: -6px; }
.fab__btn--white:focus-visible { outline-color: #000; }

/* ---------- Hover (real pointers only, so taps never stick) ---------- */
@media (hover: hover) {
  .nav a:hover { box-shadow: inset 0 -2px 0 #fff; }
  .btn--fill:hover, .submit:not(:disabled):hover { background: #000; color: #fff; }
  .btn--line:hover { background: #fff; color: #000; }
  .card:hover { background: #fff; color: #000; }
  .card:hover ::selection { background: #000; color: #fff; }
  .pf__list a:hover { background: #fff; color: #000; }
  .ft__links a:hover { text-decoration: underline; }
  .ft__phone:hover { background: #000; color: #fff; }
}
/* Touch feedback */
@media (hover: none) {
  .btn--line:active, .fab__btn--black:active, .pf__list a:active { background: #fff; color: #000; }
  .btn--fill:active, .submit:not(:disabled):active, .fab__btn--white:active, .ft__phone:active { background: #000; color: #fff; }
}

/* ---------- Tablet: 640–999px ---------- */
@media (min-width: 640px) {
  .svc__grid { --cols: 2; }
  .svc { contain-intrinsic-size: auto 2500px; }
  .areas { contain-intrinsic-size: auto 1150px; }
  .pf { contain-intrinsic-size: auto 560px; }
  .ft { --fpad: 0px; }
  .fab { display: none; }
}

/* ---------- Desktop: 1000px+ ---------- */
@media (min-width: 1000px) {
  .svc__grid { --cols: 3; }
  .svc { contain-intrinsic-size: auto 1900px; }
  .req__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .req__aside { position: sticky; }
}

/* Two columns once the portfolio above is two columns (its 440px auto-fit tracks fit) */
@media (min-width: 1050px) {
  .areas__wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". map" "label map" "list map" "more map" ". map";
    column-gap: clamp(36px, 5vw, 64px);
    row-gap: 16px;
  }
  .areas { contain-intrinsic-size: auto 660px; }
}
/* Narrow two-column desktops: a little more room beside the longest names */
@media (min-width: 1050px) and (max-width: 1199px) {
  .knox-sa__item { padding-left: 11px; padding-right: 11px; }
}

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