:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #edf2ed;
  --ink: #17211f;
  --muted: #5f6965;
  --border: #d9dfd9;
  --accent: #1f6b5c;
  --accent-strong: #164c43;
  --copper: #b75d3a;
  --focus: #0f7a68;
  --shadow: 0 18px 44px rgba(23, 33, 31, 0.1);
  --radius: 8px;
  --container: 1120px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(31, 107, 92, 0.35);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(15, 122, 104, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 14px max(20px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(217, 223, 217, 0.85);
  background: rgba(246, 247, 243, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand__mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 50%;
  background: #07131f;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(8, 24, 38, 0.18);
}

.brand__text {
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(31, 107, 92, 0.08);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

body[data-nav-open="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body[data-nav-open="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body[data-nav-open="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 780px);
  isolation: isolate;
  overflow: hidden;
}

.hero--image {
  display: grid;
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/hero-stability.jpg");
  background-position: center;
  background-size: cover;
}

.hero--image::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(246, 247, 243, 0.94) 0%, rgba(246, 247, 243, 0.82) 38%, rgba(246, 247, 243, 0.2) 72%), linear-gradient(0deg, rgba(246, 247, 243, 0.86) 0%, rgba(246, 247, 243, 0) 38%);
}

.hero__content {
  padding: 88px 0 118px;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lead,
.page-hero p {
  max-width: 660px;
  margin: 26px 0 0;
  color: #33403c;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.36;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 740;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--secondary {
  border-color: rgba(23, 33, 31, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.button--full {
  width: 100%;
}

.section {
  padding: clamp(44px, 6vw, 72px) 0;
}

.home-page .hero {
  min-height: clamp(460px, 64vh, 600px);
}

.home-page .hero__content {
  padding: 58px 0 64px;
}

.home-page .section {
  padding: clamp(30px, 4.2vw, 52px) 0;
}

.home-page .section--intro {
  padding-bottom: clamp(26px, 3.8vw, 44px);
}

.home-page .section--intro + .section {
  padding-top: clamp(30px, 4vw, 48px);
}

.home-page .intro-grid,
.home-page .split-layout {
  gap: clamp(24px, 3.8vw, 46px);
}

.home-page .action-panel {
  gap: 10px;
}

.home-page .route-link {
  padding: 16px 20px;
}

.section--intro {
  background: var(--surface);
}

.section--soft {
  background: var(--surface-soft);
}

.section--narrow .container {
  max-width: 780px;
}

.page-hero + .section {
  padding-top: clamp(28px, 3.8vw, 44px);
}

.intro-grid,
.split-layout,
.form-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin: 18px 0 0;
}

.section p,
.prose p,
.form-copy p,
.contact-grid p {
  color: var(--muted);
  font-size: 18px;
}

.signal-list,
.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li,
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #33403c;
  font-weight: 620;
}

.signal-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(31, 107, 92, 0.25);
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.action-panel,
.contact-list {
  display: grid;
  gap: 12px;
}

.route-link,
.contact-item,
.content-card,
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.03);
}

.route-link,
.contact-item {
  display: grid;
  gap: 4px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.route-link:hover,
.contact-item:hover,
.content-card:hover {
  border-color: rgba(31, 107, 92, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.route-link span,
.contact-item span {
  font-size: 18px;
  font-weight: 760;
}

.route-link small,
.contact-item small {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(30px, 4.5vw, 52px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  position: relative;
}

.page-hero__inner > div:first-child::after {
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--copper);
  content: "";
}

.page-hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.page-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.96);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, rgba(0, 0, 0, 0.76) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 52%, rgba(0, 0, 0, 0.76) 70%, transparent 100%);
}

.page-hero__visual::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 54%, rgba(246, 247, 243, 0.34) 74%, var(--surface) 100%);
  content: "";
  pointer-events: none;
}

.prose h2 {
  margin-top: 34px;
  font-size: clamp(26px, 3.2vw, 38px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 24px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
}

.prose li + li {
  margin-top: 10px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

.content-card {
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.content-card p {
  font-size: 16px;
}

.empty-state,
.resource-callout {
  max-width: 760px;
  text-align: left;
}

.empty-state .button,
.resource-callout .button {
  margin-top: 20px;
}

.resource-callout__eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 760;
}

.form-card {
  padding: clamp(22px, 4vw, 34px);
}

.field,
.field-group {
  margin: 0 0 18px;
}

.field label,
.field-group legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.field input {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  padding: 12px 14px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(31, 107, 92, 0.6);
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 107, 92, 0.1);
}

.field--trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-group {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.field-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #33403c;
}

.field-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(31, 107, 92, 0.08);
  color: var(--accent-strong);
  font-weight: 650;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status[data-tone="error"] {
  background: rgba(183, 93, 58, 0.12);
  color: #82391d;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

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

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--container));
  min-height: 96px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  body[data-nav-open="true"] .site-nav {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 46px;
  }

  .hero {
    min-height: auto;
  }

  .home-page .hero {
    min-height: auto;
  }

  .hero--image::after {
    background: linear-gradient(180deg, rgba(246, 247, 243, 0.96) 0%, rgba(246, 247, 243, 0.82) 48%, rgba(246, 247, 243, 0.7) 100%);
  }

  .hero__media {
    background-position: 62% center;
  }

  .hero__content {
    padding: 68px 0 78px;
  }

  .home-page .hero__content {
    padding: 44px 0 42px;
  }

  .home-page .section {
    padding: 34px 0;
  }

  .home-page .section--intro {
    padding-bottom: 30px;
  }

  .home-page .section--intro + .section {
    padding-top: 32px;
  }

  .intro-grid,
  .split-layout,
  .form-layout,
  .contact-grid,
  .card-grid--three {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 46px 0 30px;
  }

  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero__visual {
    justify-self: start;
    width: min(100%, 320px);
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand__text {
    font-size: 15px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero__lead,
  .page-hero p,
  .section p,
  .prose p,
  .form-copy p,
  .contact-grid p {
    font-size: 17px;
  }

  .hero__actions,
  .site-footer__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer__inner {
    padding: 24px 0;
  }

  .page-hero {
    padding: 38px 0 26px;
  }

  .page-hero__inner > div:first-child::after {
    margin-top: 22px;
  }

  .section {
    padding: 34px 0;
  }

  .home-page .hero__content {
    padding: 40px 0 38px;
  }

  .home-page .section {
    padding: 30px 0;
  }

  .home-page .section--intro {
    padding-bottom: 26px;
  }

  .home-page .section--intro + .section {
    padding-top: 28px;
  }
}

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


/* Defensive mobile refinements */
body {
  overflow-x: hidden;
}

.site-header,
.brand {
  min-width: 0;
}

.brand__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  flex: 0 0 44px;
}

.hero h1,
.page-hero h1,
h2 {
  overflow-wrap: break-word;
}

.button {
  text-align: center;
  white-space: normal;
}

@media (max-width: 860px) {
  .site-header {
    gap: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 560px) {
  .brand__text {
    max-width: calc(100vw - 122px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 11.8vw, 50px);
    line-height: 1.02;
  }
}

