:root {
  color-scheme: light dark;
  --site-bg: #f4eee5;
  --site-bg-top: #fdfaf5;
  --site-surface: rgba(255, 252, 247, 0.82);
  --site-surface-solid: #fffcf7;
  --site-ink: #0b3028;
  --site-muted: #5d685f;
  --site-line: rgba(11, 48, 40, 0.11);
  --site-accent: #c45b35;
  --site-accent-deep: #963c22;
  --site-cream: #f7f3ec;
  --site-shadow: 0 24px 70px rgba(42, 36, 27, 0.12);
  --site-radius-xl: 34px;
  --site-radius-lg: 24px;
  --site-radius-md: 18px;
  --site-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --site-sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 154px;
  background: var(--site-bg);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--site-ink);
  font-family: var(--site-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 8% 4%, rgba(196, 91, 53, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 14%, rgba(32, 76, 65, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--site-bg-top) 0%, var(--site-bg) 60%, #f8f3eb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 48, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 48, 40, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.34) 62%, transparent 94%);
}

::selection {
  color: #fffaf4;
  background: var(--site-accent-deep);
}

a {
  color: inherit;
}

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

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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--site-accent);
  outline-offset: 3px;
}

main[tabindex="-1"]:focus {
  outline: none;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--site-ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-170%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 13px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 251, 245, 0.91);
  box-shadow: 0 18px 50px rgba(31, 35, 27, 0.12);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand picture {
  display: block;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 420px;
  height: auto;
  max-width: 100%;
}

.brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--site-muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav a {
  padding: 10px 11px;
  border-radius: 999px;
  color: #4f5d56;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--site-ink);
  background: rgba(11, 48, 40, 0.08);
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  color: var(--site-ink);
  background: rgba(11, 48, 40, 0.1);
}

.nav a[href="/login"],
.nav a[href="./login.html"] {
  padding-inline: 15px;
  color: #fffaf4;
  background: var(--site-ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 10px;
  color: #657067;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #904128;
  font-weight: 750;
  text-underline-offset: 3px;
}

.hero,
.section,
.contact {
  position: relative;
  min-width: 0;
  scroll-margin-top: 0;
  overflow: clip;
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius-xl);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 4vw, 58px);
  min-height: 650px;
  padding: clamp(40px, 4.8vw, 64px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -150px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 91, 53, 0.17), transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: 38%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 76, 65, 0.13), transparent 68%);
  pointer-events: none;
}

.hero-copy,
.hero-card,
.section-heading,
.feature-card,
.project-card,
.audience-card,
.timeline article,
.content-card,
.content-copy {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a44728;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--site-ink);
  font-kerning: normal;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--site-serif);
  font-weight: 600;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  max-width: 15ch;
  font-size: clamp(3.45rem, 5.25vw, 5rem);
  line-height: 1.055;
  letter-spacing: -0.026em;
}

h2 {
  max-width: 22ch;
  font-size: clamp(2.5rem, 3.65vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
}

h3 {
  font-family: var(--site-sans);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.018em;
  overflow-wrap: break-word;
}

.lead {
  max-width: 61ch;
  margin: 24px 0 0;
  color: var(--site-muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.lead.compact {
  max-width: 48ch;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #c8542e 0%, var(--site-accent-deep) 100%);
  box-shadow: 0 12px 26px rgba(150, 60, 34, 0.2);
}

.button-secondary {
  color: var(--site-ink);
  background: rgba(11, 48, 40, 0.075);
}

.hero-card {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px;
  border: 1px solid var(--site-line);
  border-radius: 27px;
  background: rgba(250, 247, 239, 0.88);
}

.card-label,
.project-tag {
  margin: 0 0 20px;
  color: #a44728;
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid article {
  display: grid;
  min-width: 0;
  min-height: 170px;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--site-line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.93);
}

.stat-value {
  margin: 0;
  font-size: clamp(1.16rem, 1.2vw, 1.38rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
}

.stat-label {
  margin: 0;
  color: #647067;
  font-size: 0.98rem;
  line-height: 1.56;
  hyphens: auto;
}

.section,
.contact {
  margin-top: 22px;
  padding: clamp(36px, 4vw, 52px);
}

.section-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 30px;
}

.feature-grid,
.project-list,
.timeline,
.audience-grid,
.content-grid {
  display: grid;
  gap: 14px;
}

.feature-grid,
.project-list,
.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card,
.audience-card,
.timeline article,
.content-card,
.legal-grid section,
.access-list article {
  padding: 26px;
  border: 1px solid var(--site-line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.8);
}

.feature-card p,
.project-card p,
.timeline p,
.audience-card p,
.content-card p,
.content-card li,
.content-copy p,
.content-copy li {
  color: #606b63;
  line-height: 1.7;
  hyphens: auto;
}

.feature-card p,
.project-card p,
.timeline p,
.audience-card p,
.content-card p {
  margin: 14px 0 0;
}

.card-heading-link {
  color: inherit;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.card-heading-link:hover,
.card-heading-link:focus-visible {
  color: #9e3f23;
  text-decoration-color: currentColor;
}

.project-accent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(196, 91, 53, 0.13), rgba(255, 253, 248, 0.93));
}

.project-accent::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 91, 53, 0.18), transparent 68%);
  pointer-events: none;
}

.audience {
  color: var(--site-cream);
  background:
    radial-gradient(circle at 95% 8%, rgba(224, 107, 61, 0.19), transparent 24rem),
    linear-gradient(145deg, #17453a 0%, #092b24 100%);
}

.audience h2,
.audience h3 {
  color: var(--site-cream);
}

.audience .eyebrow {
  color: #e9855e;
}

.audience-card {
  border-color: rgba(247, 243, 236, 0.16);
  background: rgba(247, 243, 236, 0.075);
}

.audience-card p {
  color: rgba(247, 243, 236, 0.76);
}

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

.timeline span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--site-accent);
  font-family: var(--site-serif);
  font-size: 2.35rem;
  line-height: 1;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(circle at 92% 30%, rgba(196, 91, 53, 0.17), transparent 20rem),
    linear-gradient(135deg, rgba(11, 48, 40, 0.075), rgba(255, 252, 247, 0.84));
}

.contact > div {
  min-width: 0;
}

.contact .button {
  flex: 0 0 auto;
}

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

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

.content-card .spaced-heading {
  margin-top: 26px;
}

.content-card ul,
.content-copy ul {
  margin: 16px 0 0;
  padding-left: 1.2rem;
}

.content-copy {
  max-width: 76ch;
}

.content-copy p {
  margin: 0 0 18px;
}

.content-copy p:last-child {
  margin-bottom: 0;
}

.signal-list {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding-left: 1.2rem;
  color: #435047;
  line-height: 1.62;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 22px;
  background: rgba(11, 48, 40, 0.1);
}

.fact-strip > div {
  padding: 25px;
  background: rgba(255, 253, 248, 0.94);
}

.fact-strip strong,
.fact-strip span {
  display: block;
}

.fact-strip strong {
  color: var(--site-ink);
  font-size: 1.18rem;
  line-height: 1.3;
}

.fact-strip span {
  margin-top: 8px;
  color: #667168;
  line-height: 1.58;
}

.text-link {
  color: #934229;
  font-weight: 800;
  text-underline-offset: 4px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-list details {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.8);
}

.faq-list summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--site-ink);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.38;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: #a44728;
  background: rgba(196, 91, 53, 0.1);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-icon::before {
  content: "+";
}

.faq-list details[open] .faq-icon::before {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: #606b63;
  line-height: 1.7;
}

.service-hero {
  align-items: stretch;
}

.service-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.5rem, 5.35vw, 5.45rem);
}

.service-hero .hero-card {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
}

.service-hero .hero-card h2 {
  max-width: 17ch;
  font-family: var(--site-sans);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.service-hero .hero-card p {
  margin: 16px 0 0;
  color: #606b63;
  line-height: 1.7;
}

.legal-shell {
  padding-bottom: 44px;
}

.legal-shell .topbar {
  margin-bottom: 22px;
}

.legal-shell .brand-logo {
  width: 390px;
}

.legal-card {
  margin-top: 0;
  padding: clamp(36px, 4.5vw, 58px);
}

.legal-card h1 {
  max-width: 20ch;
  font-size: clamp(3.05rem, 4.8vw, 4.7rem);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-grid p {
  margin: 14px 0 0;
  color: #5f6a62;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal-grid h2 {
  max-width: none;
  font-family: var(--site-sans);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.018em;
}

.legal-grid a {
  color: #9e3f23;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 22px;
}

.login-layout > .section {
  margin-top: 0;
}

.login-panel,
.access-panel {
  min-height: 100%;
}

.login-panel h1 {
  max-width: 14ch;
  font-size: clamp(3.05rem, 4.45vw, 4.45rem);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.flash {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.flash.success {
  color: #155f45;
  border-color: rgba(21, 95, 69, 0.24);
  background: rgba(56, 150, 112, 0.12);
}

.flash.error {
  color: #8a2f1e;
  border-color: rgba(165, 54, 31, 0.28);
  background: rgba(196, 91, 53, 0.12);
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--site-ink);
  font-weight: 750;
}

.login-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  color: var(--site-ink);
  background: rgba(255, 255, 255, 0.82);
}

.form-note {
  margin: 18px 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.access-list {
  display: grid;
  gap: 16px;
}

.access-list p {
  margin: 12px 0 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  margin-top: 22px;
  padding: 34px 40px;
  border: 1px solid rgba(247, 243, 236, 0.08);
  border-radius: 28px;
  color: rgba(247, 243, 236, 0.72);
  background: linear-gradient(145deg, #17453a, #082820);
  box-shadow: 0 22px 62px rgba(24, 37, 31, 0.14);
}

.footer-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(247, 243, 236, 0.68);
  line-height: 1.65;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--site-cream);
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  column-gap: 30px;
  align-self: stretch;
}

@supports not (backdrop-filter: blur(1px)) {
  .topbar,
  .hero,
  .section,
  .contact {
    background: var(--site-surface-solid);
  }
}

@keyframes site-enter {
  from {
    transform: translateY(12px);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .topbar {
    animation: site-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero,
  .legal-card,
  .login-layout {
    animation: site-enter 600ms 70ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero h1 {
    max-width: 17ch;
  }

  .hero-card {
    align-self: stretch;
  }

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

  .stat-grid article {
    min-height: 0;
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 32px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-logo,
  .legal-shell .brand-logo {
    width: min(100%, 420px);
  }

  .nav {
    justify-content: flex-start;
  }

  .feature-grid,
  .project-list,
  .audience-grid,
  .content-grid.three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 2px 0 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    gap: 30px;
    padding: 36px 26px;
  }

  h1,
  .login-panel h1,
  .legal-card h1,
  .service-hero h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 10.8vw, 4.15rem);
    line-height: 1.065;
    letter-spacing: -0.022em;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(2.25rem, 8.7vw, 3.25rem);
    line-height: 1.09;
  }

  h1,
  h2 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .lead {
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .timeline,
  .faq-list,
  .content-grid,
  .content-grid.three-columns,
  .fact-strip {
    grid-template-columns: 1fr;
  }

  .contact,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact .button {
    flex: initial;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 18px);
    padding-top: 9px;
  }

  .topbar {
    padding: 13px;
    border-radius: 22px;
  }

  .brand-logo,
  .legal-shell .brand-logo {
    width: min(100%, 340px);
  }

  .nav a {
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  .hero,
  .section,
  .contact {
    border-radius: 24px;
  }

  .hero {
    padding: 31px 21px;
  }

  h1,
  .login-panel h1,
  .legal-card h1,
  .service-hero h1 {
    font-size: clamp(2.55rem, 12.4vw, 3.55rem);
    line-height: 1.075;
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    line-height: 1.1;
  }

  h3 {
    line-height: 1.2;
  }

  .hero-actions,
  .section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-card,
  .section,
  .contact,
  .legal-card {
    padding: 25px 20px;
  }

  .feature-grid,
  .project-list,
  .audience-grid,
  .content-grid.three-columns,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .project-card,
  .audience-card,
  .timeline article,
  .content-card,
  .legal-grid section {
    padding: 22px;
  }

  .site-footer {
    padding: 27px 22px;
    border-radius: 24px;
  }

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

  .footer-logo {
    width: min(100%, 350px);
  }

  .contact .button,
  .site-footer a,
  .legal-grid a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .hero,
  .section,
  .contact,
  .legal-card,
  .hero-card {
    padding-inline: 18px;
  }

  h1,
  .login-panel h1,
  .legal-card h1,
  .service-hero h1 {
    font-size: clamp(2.3rem, 12vw, 2.75rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --site-bg: #061d19;
    --site-bg-top: #0a2822;
    --site-surface: rgba(9, 36, 30, 0.84);
    --site-surface-solid: #09241e;
    --site-ink: #f7f3ec;
    --site-muted: #b9c2bb;
    --site-line: rgba(247, 243, 236, 0.12);
    --site-shadow: 0 24px 68px rgba(0, 0, 0, 0.29);
  }

  body {
    color-scheme: dark;
    background:
      radial-gradient(circle at 8% 5%, rgba(196, 91, 53, 0.2), transparent 30rem),
      radial-gradient(circle at 92% 14%, rgba(50, 111, 95, 0.19), transparent 32rem),
      linear-gradient(180deg, #0a2822 0%, #061d19 60%, #09241f 100%);
  }

  body::before {
    background-image:
      linear-gradient(rgba(247, 243, 236, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(247, 243, 236, 0.045) 1px, transparent 1px);
  }

  .topbar {
    border-color: rgba(247, 243, 236, 0.1);
    background: rgba(7, 31, 26, 0.91);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
  }

  .nav a {
    color: #bfc8c1;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a[aria-current="page"] {
    color: #fffaf4;
    background: rgba(247, 243, 236, 0.1);
  }

  .nav a[href="/login"],
  .nav a[href="./login.html"] {
    color: #fffaf4;
    background: #b84d2b;
  }

  .hero,
  .section,
  .contact {
    border-color: var(--site-line);
    background: var(--site-surface);
  }

  .hero-card,
  .feature-card,
  .project-card,
  .timeline article,
  .content-card,
  .legal-grid section,
  .access-list article,
  .faq-list details,
  .stat-grid article {
    border-color: var(--site-line);
    background: rgba(247, 243, 236, 0.06);
  }

  .lead,
  .feature-card p,
  .project-card p,
  .timeline p,
  .audience-card p,
  .content-card p,
  .content-card li,
  .content-copy p,
  .content-copy li,
  .legal-grid p,
  .access-list p,
  .form-note,
  .service-hero .hero-card p,
  .signal-list,
  .stat-label,
  .faq-list details p,
  .breadcrumb,
  .fact-strip span {
    color: #b9c2bb;
  }

  .eyebrow,
  .card-label,
  .project-tag {
    color: #e77b50;
  }

  .button-secondary {
    color: var(--site-cream);
    background: rgba(247, 243, 236, 0.1);
  }

  .project-accent {
    background: linear-gradient(145deg, rgba(196, 91, 53, 0.22), rgba(247, 243, 236, 0.055));
  }

  .audience {
    border-color: rgba(247, 243, 236, 0.13);
    background:
      radial-gradient(circle at 95% 8%, rgba(224, 107, 61, 0.2), transparent 24rem),
      linear-gradient(145deg, #16473b 0%, #061f1a 100%);
  }

  .audience-card {
    border-color: rgba(247, 243, 236, 0.13);
    background: rgba(247, 243, 236, 0.075);
  }

  .contact {
    background:
      radial-gradient(circle at 92% 30%, rgba(224, 107, 61, 0.18), transparent 20rem),
      linear-gradient(135deg, rgba(41, 91, 77, 0.25), rgba(8, 31, 27, 0.91));
  }

  .fact-strip {
    border-color: var(--site-line);
    background: rgba(247, 243, 236, 0.12);
  }

  .fact-strip > div {
    background: rgba(247, 243, 236, 0.06);
  }

  .fact-strip strong,
  .faq-list summary,
  .login-form label {
    color: var(--site-cream);
  }

  .breadcrumb a,
  .text-link,
  .legal-grid a,
  .card-heading-link:hover,
  .card-heading-link:focus-visible {
    color: #f09a75;
  }

  .login-form input {
    border-color: rgba(247, 243, 236, 0.14);
    color: var(--site-cream);
    background: rgba(247, 243, 236, 0.07);
  }

  .login-form input::placeholder {
    color: #9ba69f;
  }

  .flash.success {
    color: #a9dec9;
  }

  .flash.error {
    color: #ffc0aa;
  }
}

@media (forced-colors: active) {
  .skip-link,
  .button,
  .nav a[aria-current="page"],
  .faq-list details {
    border: 1px solid CanvasText;
  }

  :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid Highlight;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  body::before,
  .topbar,
  .site-footer,
  .hero-actions,
  .section-actions,
  .contact .button {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .section,
  .contact,
  .legal-card {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid #bbb;
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  h1,
  h2,
  h3,
  p,
  li {
    color: #000 !important;
  }
}
