/* Lakelight: Marion County, Arkansas. Bull Shoals Lake at dusk.
   Display: Archivo (variable width 62–125%). Text: Atkinson Hyperlegible Next. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Lake */
  --lake: #113a40;          /* page */
  --lake-dusk: #0e3238;     /* lower water */
  --lake-raised: #17464d;   /* raised panel */
  --lake-deep: #0b2a2f;     /* bands, footer, menu */
  --line: rgba(181, 205, 198, 0.24);
  --line-strong: rgba(181, 205, 198, 0.45);
  /* Moonlight */
  --moon: #e8f0ea;          /* 10.6:1 on lake */
  --moon-read: #dce7e1;     /* long text, 9.7:1 on lake */
  --mist: #b5cdc6;          /* secondary, 7.3:1 on lake */
  /* Courthouse brick */
  --brick: #a8432f;         /* fills: white on brick 6.0:1 */
  --brick-hover: #b24b36;   /* white 5.3:1 */
  --ember: #f2a58c;         /* brick in lamplight: text accent 6.2:1, focus ring */

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1360px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--lake-deep);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--lake) 0, var(--lake) 1400px, var(--lake-dusk) 60%, #0d2f35 100%);
  color: var(--moon);
  font-family: var(--font-text);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a {
  color: var(--moon);
  text-decoration-line: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--ember); }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--moon);
  color: var(--lake-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline-color: var(--brick); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 12px 26px;
  background: var(--brick);
  color: #fff;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(242, 165, 140, 0.55);
  transition: background-color 0.2s;
}
.button:hover { background: var(--brick-hover); color: #fff; }

/* ---------- Header ---------- */

.site-header {
  background: var(--lake-deep);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--moon);
  line-height: 1;
  margin-right: auto;
}
.wordmark__name {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.wordmark__state {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.0625rem; /* 17px */
  color: var(--mist);
  margin-top: 3px;
}
.wordmark:hover .wordmark__name { color: var(--ember); }

.quick-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.quick-links a {
  display: block;
  padding: 10px 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.quick-links a:hover { color: var(--ember); }
.quick-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
@media (min-width: 900px) {
  .quick-links { display: flex; }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 20px 8px 16px;
  background: rgba(11, 42, 47, 0.55);
  color: var(--moon);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--ember); }
.menu-toggle__icon {
  position: relative;
  width: 22px;
  height: 12px;
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), width 0.3s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 10px; width: 64%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; width: 100%; transform: rotate(-45deg); }

/* The menu without JavaScript: a plain list under the header. */
.site-menu__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter) 32px;
}
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ember);
  margin: 0 0 14px;
}
.site-menu__offices a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 650;
  font-size: clamp(1.625rem, 2.6vw, 2.5rem);
  line-height: 1.05;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-menu__offices a:hover { color: var(--ember); }
.site-menu a[aria-current="page"] { color: var(--ember); }
.site-menu__site a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 1.375rem;
  text-decoration: none;
}
.site-menu__site a:hover { color: var(--ember); }
.site-menu__note {
  margin-top: 28px;
  color: var(--mist);
  font-size: 1.0625rem;
  max-width: 28ch;
}

/* The menu with JavaScript: a full-screen overlay opened by the Menu button. */
.js .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(rgba(8, 31, 35, 0.72), rgba(8, 31, 35, 0));
  border-bottom-color: transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.js .site-header.is-solid {
  background: rgba(11, 42, 47, 0.96);
  border-bottom-color: var(--line);
}
.js .menu-toggle { display: inline-flex; }
.js .site-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 60% 50% at 88% 0%, rgba(232, 240, 234, 0.09), transparent 70%),
    linear-gradient(180deg, var(--lake-deep) 0%, var(--lake-deep) 62%, rgba(11, 42, 47, 0.8) 100%),
    url("img/courthouse-lake-1100.jpg") 50% 78% / cover no-repeat var(--lake-deep);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.js .site-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease), visibility 0s;
}
.js .site-menu__inner {
  display: grid;
  gap: 40px;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 56px;
}
@media (min-width: 900px) {
  .site-menu__inner {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 64px;
  }
  .js .site-menu__inner { padding-top: calc(var(--header-h) + 56px); }
  .site-menu__offices {
    columns: 2;
    column-gap: 48px;
  }
  .site-menu__offices li { break-inside: avoid; }
}
.js .site-menu.is-open .site-menu__offices li {
  animation: menu-in 0.5s var(--ease) both;
}
.js .site-menu.is-open .site-menu__offices li:nth-child(n+5) { animation-delay: 0.04s; }
.js .site-menu.is-open .site-menu__offices li:nth-child(n+9) { animation-delay: 0.08s; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(14px); }
}
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; border-bottom-color: transparent; }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100svh, 1040px);
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(28px, 4vw, 56px);
  background: var(--lake-deep);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform-origin: 50% 30%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 31, 35, 0.78) 0%,
      rgba(8, 31, 35, 0.2) 20%,
      rgba(17, 58, 64, 0) 36%,
      rgba(17, 58, 64, 0.42) 54%,
      rgba(17, 58, 64, 0.9) 74%,
      var(--lake) 100%),
    radial-gradient(ellipse 70% 40% at 78% 8%, rgba(232, 240, 234, 0.16), transparent 70%);
}
.hero__body {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__title {
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.005em;
  margin: 0;
}
.hero__line {
  display: block;
  white-space: nowrap;
  font-size: min(14.4vw, 212px);
  color: var(--moon);
  /* Moonlight on the water: the headline reflected on the lake surface. */
  -webkit-box-reflect: below 0.02em linear-gradient(transparent 62%, rgba(0, 0, 0, 0.07) 80%, rgba(0, 0, 0, 0.3));
}
.hero__word { display: inline-block; }
.hero__state {
  display: block;
  margin-top: 0.42em;
  font-size: clamp(1.25rem, 2.1vw, 1.875rem);
  font-stretch: 125%;
  font-weight: 500;
  text-transform: none;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ember);
  text-align: right;
}
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin-top: clamp(20px, 3vw, 40px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line-strong);
}
.hero__intro {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--moon);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.hero__link {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.1875rem;
  padding: 10px 0;
}

@media (max-width: 700px) {
  .hero {
    min-height: 92svh;
    padding-bottom: 28px;
  }
  .hero__media img { object-position: 38% 20%; }
  .hero__media::after {
    background:
      linear-gradient(180deg,
        rgba(8, 31, 35, 0.8) 0%,
        rgba(8, 31, 35, 0.38) 13%,
        rgba(17, 58, 64, 0.5) 26%,
        rgba(17, 58, 64, 0.66) 40%,
        rgba(17, 58, 64, 0.9) 53%,
        var(--lake) 70%);
  }
  .hero__line { font-size: 27.5vw; line-height: 0.82; white-space: normal; }
  .hero__word { display: block; }
  .hero__state { text-align: left; margin-top: 0.5em; }
  .hero__foot { grid-template-columns: 1fr; }
}

/* ---------- Notices ticker ---------- */

.notices {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  background: var(--lake-deep);
  border-block: 1px solid var(--line);
}
.notices__title {
  padding: 0 24px 0 var(--gutter);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ember);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
.notices__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
}
.notices__track {
  display: flex;
  width: max-content;
}
.notices__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 14px 0 14px 24px;
  gap: 4px 0;
}
.notices__list li {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
}
.notices__list li::after {
  content: "";
  flex: none;
  width: 30px;
  height: 10px;
  margin: 0 22px;
  background: url("img/wave.svg") center / contain no-repeat;
}
.notices__list a {
  display: inline-block;
  padding: 6px 0;
  text-decoration-color: rgba(242, 165, 140, 0.6);
}
.notices__pause {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px var(--gutter) 8px 16px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  background: transparent;
  color: var(--moon);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
}
.notices__pause[hidden] { display: none; }
.notices__pause:hover { border-color: var(--ember); }
.notices__pause-icon {
  position: relative;
  width: 12px;
  height: 14px;
}
.notices__pause-icon::before,
.notices__pause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  background: currentColor;
  border-radius: 1px;
}
.notices__pause-icon::before { left: 0; }
.notices__pause-icon::after { right: 0; }
.notices.is-paused .notices__pause-icon::after { display: none; }
.notices.is-paused .notices__pause-icon::before {
  width: 0;
  height: 0;
  left: 1px;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
  border-radius: 0;
}

/* Ticking (set by script.js only when motion is welcome). */
.notices.is-ticking .notices__list { flex-wrap: nowrap; white-space: nowrap; }
.notices.is-ticking .notices__track {
  animation: ticker var(--ticker-duration, 60s) linear infinite;
}
.notices.is-paused .notices__track,
.notices.is-ticking:hover .notices__track,
.notices.is-ticking:focus-within .notices__track {
  animation-play-state: paused;
}
/* A keyboard user inside the ticker gets it still and in reading order. */
.notices.is-ticking .notices__viewport:focus-within .notices__track { animation: none; }
@keyframes ticker {
  to { transform: translateX(var(--ticker-shift, -50%)); }
}

@media (max-width: 700px) {
  .notices { grid-template-columns: 1fr auto; }
  .notices__title { border-right: 0; padding: 12px 0 0 var(--gutter); }
  .notices__pause { grid-row: 1; grid-column: 2; margin: 10px var(--gutter) 0 0; justify-self: end; }
  .notices__viewport { grid-column: 1 / -1; }
  .notices__list { padding-top: 8px; padding-left: var(--gutter); }
}

/* ---------- Sections ---------- */

.tasks, .offices, .visit__inner, .story__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 64px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-stretch: 70%;
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0;
  color: var(--mist);
  max-width: 44ch;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Tasks: a ledger of what people come for */

.tasks { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(48px, 7vw, 96px); }
.tasks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.task {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 11ch;
  gap: 8px 48px;
  align-items: baseline;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}
.task::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(232, 240, 234, 0.09), rgba(232, 240, 234, 0.025) 65%, transparent);
  box-shadow: inset 3px 0 0 var(--ember);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.task:hover::before,
.task:focus-within::before { transform: scaleX(1); }
.task__name {
  font-size: clamp(1.875rem, 3.5vw, 3.25rem);
  font-stretch: 72%;
  font-weight: 700;
  line-height: 1;
}
.task__name a {
  display: inline-block;
  text-decoration: none;
  color: var(--moon);
  transition: transform 0.4s var(--ease);
}
.task:hover .task__name a,
.task:focus-within .task__name a { transform: translateX(18px); }
.task__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.task__name a:focus-visible { outline: none; }
.task:has(.task__name a:focus-visible) { outline: 3px solid var(--ember); outline-offset: 4px; }
.task:hover .task__name a { color: var(--ember); }
.task__detail, .task__call {
  margin: 0;
  position: relative;
  z-index: 1;
}
.task__detail { color: var(--moon-read); max-width: 46ch; }
.task__call {
  justify-self: end;
  text-align: right;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.task__call a { color: var(--ember); text-decoration-color: rgba(242, 165, 140, 0.5); }
.task__call a:hover { color: var(--moon); }
@media (max-width: 900px) {
  .task { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; }
  .task__name { grid-column: 1 / -1; }
  .task__call { align-self: end; }
}
@media (max-width: 480px) {
  .task { grid-template-columns: 1fr; padding: 22px 0; }
  .task__call { justify-self: start; text-align: left; }
}

/* Offices: the directory */

.offices {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.offices__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 64px;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 960px) {
  .offices__list {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, auto);
  }
}
.office {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name tel" "who tel";
  align-items: center;
  gap: 2px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.office__name {
  grid-area: name;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 650;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.1;
  text-decoration: none;
  justify-self: start;
}
.office__name:hover { color: var(--ember); text-decoration: underline; text-decoration-color: var(--ember); }
.office__who {
  grid-area: who;
  color: var(--mist);
  font-size: 1.0625rem;
}
.office__tel {
  grid-area: tel;
  justify-self: end;
  text-align: right;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ember);
  text-decoration-color: rgba(242, 165, 140, 0.5);
}
span.office__tel { color: var(--mist); font-weight: 500; }
a.office__tel:hover { color: var(--moon); }
@media (max-width: 359px) {
  .office { grid-template-columns: 1fr; grid-template-areas: "name" "who" "tel"; }
  .office__tel { justify-self: start; text-align: left; margin-top: 4px; }
  span.office__tel:empty { display: none; }
}

/* Story: the county, scroll-told */

.story {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(232, 240, 234, 0.07), transparent 70%),
    linear-gradient(180deg, var(--lake-dusk), var(--lake-deep));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(64px, 9vw, 140px);
  padding-bottom: clamp(64px, 9vw, 140px);
}
.story__aside { position: relative; }
.postcard {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  margin: 0;
  max-width: 360px;
}
.postcard img {
  width: 100%;
  border: 1px solid var(--line-strong);
  box-shadow: 18px 18px 0 -1px var(--lake-raised);
}
.postcard figcaption {
  margin-top: 26px;
  font-size: 1.0625rem;
  color: var(--mist);
  max-width: 30ch;
}
.story__title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-stretch: 70%;
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.story__lede {
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  line-height: 1.6;
  color: var(--moon-read);
  max-width: 40em;
}
.figures {
  margin: clamp(32px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-strong);
}
.figure {
  display: flex;
  flex-direction: column-reverse;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 1000px) {
  .figure {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    align-items: end;
    gap: 32px;
  }
  .figure dd { grid-column: 1; grid-row: 1; }
  .figure dt { grid-column: 2; grid-row: 1; margin: 0 0 0.35em; }
}
.figure dd {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  line-height: 0.86;
  color: var(--moon);
  font-variant-numeric: lining-nums;
}
.figure dt {
  margin-top: 10px;
  color: var(--moon-read);
  font-size: 1.1875rem;
  line-height: 1.4;
  max-width: 24ch;
}
.story__more { color: var(--moon-read); max-width: 40em; }
@media (max-width: 800px) {
  .story__inner { grid-template-columns: 1fr; }
  .story__aside { order: 2; }
  .postcard { position: static; max-width: 250px; }
}

/* Visit: the courthouse again, now at night */

.visit { padding: 0 0 clamp(64px, 8vw, 112px); }
.visit__scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 52vw, 640px);
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.visit__media { position: absolute; inset: 0; z-index: -1; }
.visit__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  filter: brightness(0.62) saturate(0.85);
}
.visit__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 42, 47, 0.97) 0%, rgba(11, 42, 47, 0.9) 34%, rgba(11, 42, 47, 0.35) 62%, rgba(11, 42, 47, 0.15) 100%),
    linear-gradient(180deg, var(--lake-deep) 0%, rgba(11, 42, 47, 0) 22%, rgba(11, 42, 47, 0) 70%, var(--lake-deep) 100%);
}
.visit__main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.visit h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-stretch: 70%;
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 9ch;
}
.visit__address {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.visit__hours { color: var(--moon-read); max-width: 34ch; margin: 0; }
.visit__hours strong { color: var(--ember); font-weight: 700; }
.visit__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
}
.visit h3 {
  font-size: 1.375rem;
  font-stretch: 100%;
  font-weight: 650;
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; color: var(--moon-read); }
@media (max-width: 900px) {
  .visit__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .visit__scene { align-items: flex-end; min-height: 560px; }
  .visit__media img { object-position: 30% 40%; }
  .visit__media::after {
    background: linear-gradient(180deg, var(--lake-deep) 0%, rgba(11, 42, 47, 0.35) 28%, rgba(11, 42, 47, 0.88) 58%, var(--lake-deep) 100%);
  }
}
@media (max-width: 560px) {
  .visit__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--lake-deep);
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 1.0625rem;
}
.site-footer__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter) 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 48px;
  align-items: start;
}
.site-footer p { margin: 0; }
.site-footer__name {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--moon);
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: flex-end;
}
.site-footer__links a { display: inline-block; padding: 6px 0; }
.site-footer__copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
}

/* ---------- Department page ---------- */

.dept-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(400px, 64vh, 640px);
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(120px, 12vw, 168px);
  background: var(--lake-deep);
}
.dept-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.dept-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 58%;
  transform: scale(1.45);
  transform-origin: 16% 58%;
}
.dept-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 31, 35, 0.7) 0%, rgba(17, 58, 64, 0.1) 30%, rgba(17, 58, 64, 0.65) 70%, var(--lake) 100%),
    linear-gradient(90deg, rgba(11, 42, 47, 0.2) 0%, rgba(11, 42, 47, 0.55) 45%, rgba(11, 42, 47, 0.86) 100%);
}
.dept-hero__body {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 1.0625rem;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 12px;
  color: var(--mist);
}
.breadcrumb a { color: var(--moon); }
.breadcrumb a[aria-current="page"] { text-decoration: none; color: var(--mist); }
.dept-hero__title {
  font-size: min(17vw, 240px);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
/* Long office names ("Transfer Station & Recycling") step down a size; script.js marks them. */
.dept-hero__title.is-long { font-size: min(10vw, 148px); line-height: 0.86; }
@media (max-width: 700px) {
  .dept-hero__title { font-size: 19.5vw; }
  .dept-hero__title.is-long { font-size: 14vw; }
}
.dept-hero__summary {
  margin: 0.9em 0 0;
  max-width: 36ch;
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  line-height: 1.45;
  color: var(--moon);
  position: relative;
}

/* Contact card: rises out of the photo like the courthouse out of the water */

.contact-card {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: calc(-1 * clamp(88px, 9vw, 128px)) auto 0;
  padding: 0 var(--gutter);
}
.contact-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.4fr);
  gap: 32px clamp(32px, 5vw, 72px);
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--lake-raised);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--brick);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(3, 16, 19, 0.9);
}
.contact-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 750;
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  line-height: 1;
}
.contact-card__role {
  margin: 8px 0 24px;
  color: var(--ember);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.0625rem;
}
.contact-card__action { margin: 0; }
.contact-card__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 32px;
  margin: 0;
}
.contact-card__item { min-width: 0; }
.contact-card__item dt {
  font-size: 1.0625rem;
  color: var(--mist);
  margin-bottom: 2px;
}
.contact-card__item dd {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.contact-card__item dd a[href^="tel"] {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.375rem;
  color: var(--moon);
}
.contact-card__item--wide { grid-column: span 2; }
@media (max-width: 980px) {
  .contact-card__inner { grid-template-columns: 1fr; }
  .contact-card__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card__item--wide { grid-column: 1 / -1; }
  .contact-card__role { margin-bottom: 20px; }
}
@media (max-width: 420px) {
  .contact-card__list { grid-template-columns: 1fr; }
}

/* Department body: generic prose the county edits */

.dept-body {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 1080px) {
  .dept-body.has-toc { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); }
}
.dept-toc { display: none; }
@media (min-width: 1080px) {
  .dept-toc:not([hidden]) {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
  }
}
.dept-toc__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ember);
}
.dept-toc ul { list-style: none; margin: 0; padding: 0; }
.dept-toc a {
  display: block;
  padding: 8px 0 8px 16px;
  margin-left: -16px;
  border-left: 2px solid transparent;
  font-size: 1.0625rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--mist);
}
.dept-toc a:hover { color: var(--moon); }
.dept-toc a.is-current { color: var(--moon); border-left-color: var(--ember); }

.prose {
  max-width: 68ch;
  color: var(--moon-read);
  font-size: 1.1875rem;
  line-height: 1.72;
  letter-spacing: 0.003em;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 1.8em 0 0.6em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-stretch: 72%;
  font-weight: 750;
  line-height: 1.02;
  color: var(--moon);
}
.prose h2:first-child { padding-top: 0.6em; }
.prose h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.5rem;
  font-stretch: 90%;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ember);
}
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--ember); }
.prose strong { color: var(--moon); }
.prose img { margin: 1.6em 0; border-radius: 4px; }
.prose .button { margin: 0.2em 0; }
.prose a:not(.button) { color: var(--moon); }
.prose a:not(.button):hover { color: var(--ember); }
.prose table {
  width: 100%;
  margin: 1.6em 0 2em;
  border-collapse: collapse;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.prose caption {
  text-align: left;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--moon);
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.prose thead th {
  font-weight: 600;
  color: var(--mist);
  border-bottom: 2px solid var(--line-strong);
  padding-top: 0;
}
.prose tbody th { color: var(--moon); font-weight: 700; width: 38%; }
.prose tbody tr:nth-child(odd) { background: rgba(232, 240, 234, 0.035); }
.prose th:first-child, .prose td:first-child { padding-left: 12px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Sections rise like the lake surface as they arrive (script.js marks the ones not yet seen). */
  .reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal.is-pending { opacity: 0; transform: translateY(32px); }
  .reveal .section-head h2,
  .reveal.story__title,
  .reveal.visit__main h2 {
    transition: clip-path 1s var(--ease) 0.1s, transform 1s var(--ease) 0.1s;
    clip-path: inset(-0.2em -0.2em -0.3em -0.2em);
  }
  .reveal.is-pending .section-head h2,
  .reveal.is-pending.story__title,
  .reveal.is-pending.visit__main h2 {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.35em);
  }
  .reveal .task, .reveal .office { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-pending .task, .reveal.is-pending .office { opacity: 0; transform: translateY(18px); }
  .reveal .task:nth-child(2), .reveal .office:nth-child(2) { transition-delay: 0.05s; }
  .reveal .task:nth-child(3), .reveal .office:nth-child(3) { transition-delay: 0.1s; }
  .reveal .task:nth-child(4), .reveal .office:nth-child(4) { transition-delay: 0.15s; }
  .reveal .task:nth-child(5), .reveal .office:nth-child(5) { transition-delay: 0.2s; }
  .reveal .task:nth-child(6), .reveal .office:nth-child(6) { transition-delay: 0.25s; }
  .reveal .task:nth-child(n+7), .reveal .office:nth-child(n+7) { transition-delay: 0.3s; }

  /* Kinetic headline: as the hero scrolls away, the words part and widen like
     ripples, the photo sinks into the dusk. Only where scroll timelines exist. */
  @supports (animation-timeline: scroll()) {
    .hero__word,
    .hero__media img,
    .hero__state,
    .dept-hero__title,
    .dept-hero__media img {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }
    .hero__word--a { animation-name: part-left; }
    .hero__word--b { animation-name: part-right; }
    .hero__state { animation-name: drift-state; }
    .hero__media img { animation-name: sink; }
    .dept-hero__title { animation-name: part-left; animation-range: 0 70vh; }
    .dept-hero__media img { animation-name: sink-detail; animation-range: 0 70vh; }

    /* Big figures arrive wide and settle condensed. */
    .figure dd {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
}

@keyframes part-left {
  to { transform: translateX(-14vw); font-stretch: 100%; opacity: 0.25; }
}
@keyframes part-right {
  to { transform: translateX(10vw); font-stretch: 100%; opacity: 0.25; }
}
@keyframes drift-state {
  to { transform: translateX(-6vw); opacity: 0; }
}
@keyframes sink {
  to { transform: scale(1.14) translateY(7%); opacity: 0.55; }
}
@keyframes sink-detail {
  to { transform: scale(1.6) translateY(6%); opacity: 0.6; }
}
@keyframes settle {
  from { font-stretch: 125%; letter-spacing: 0.04em; opacity: 0.2; }
  to { font-stretch: 62%; letter-spacing: 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
