:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #fff;
  --surface-soft: #eaf0f1;
  --ink: #1e2d36;
  --muted: #60727a;
  --line: #dce5e8;
  --accent: #4a7c89;
  --accent-dark: #345e69;
  --accent-soft: #d9e9ec;
  --shadow: 0 18px 50px rgba(30, 45, 54, 0.09);
  --radius: 18px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #142126;
  --surface: #1b2d33;
  --surface-soft: #223a41;
  --ink: #edf4f4;
  --muted: #b2c2c4;
  --line: #365159;
  --accent: #9bd0d6;
  --accent-dark: #c1e6e9;
  --accent-soft: #294c54;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus {
  left: 10px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav-shell,
.footer-shell,
.page-width,
.section-width {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
  font-size: 0.82rem;
}
.brand img {
  object-fit: contain;
}
.nav-shell nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link,
.theme-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  padding: 9px 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent-dark);
  background: var(--surface-soft);
  border-color: var(--line);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.theme-toggle span:first-child {
  font-size: 1rem;
}
.hero {
  padding: clamp(92px, 15vw, 180px) 0 132px;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero h1,
.intro h1,
.contact-intro h1,
.empty-state h1 {
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.075em;
  margin: 0;
}
.hero h1 em,
.intro h1 em,
.contact-intro h1 em,
.empty-state h1 em,
.section-heading h2 em,
.focus-band h2 em {
  font-style: normal;
  color: var(--accent);
}
.accent-rule {
  height: 4px;
  width: 58px;
  background: var(--accent);
  border-radius: 99px;
  margin: 31px 0;
}
.hero-copy,
.lead {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 21px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 25%, transparent);
}
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  color: var(--bg);
}
.text-link {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 750;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.home-note {
  border-top: 1px solid var(--line);
  padding: 29px 0 82px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.home-note h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 420px;
}
.home-note p {
  color: var(--muted);
  max-width: 450px;
  margin: 0;
}
.note-number,
.card-index {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.15em;
}
.intro {
  padding: 112px 0 90px;
}
.intro .lead {
  margin-top: 0;
}
.heritage {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(36px, 9vw, 130px);
  align-items: center;
  padding-bottom: 120px;
}
.heritage-mark img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 7px solid var(--accent-soft);
}
.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(25px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.surface-card h2,
.section-heading h2,
.focus-band h2 {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 0 0 23px;
}
.surface-card p,
.service-card p,
.focus-grid > p {
  color: var(--muted);
  margin: 0;
}
.content-section {
  border-top: 1px solid var(--line);
  padding: 82px 0 128px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}
.section-heading .eyebrow {
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 220px;
  background: var(--surface);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card h3 {
  font-size: 1.45rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin: 42px 0 10px;
}
.focus-band {
  background: var(--accent);
  color: #fff;
  padding: 94px 0;
}
.focus-band .eyebrow,
.focus-band h2 em {
  color: inherit;
}
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.focus-grid > p {
  color: color-mix(in srgb, #fff 78%, var(--accent));
  font-size: 1.1rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 9vw, 130px);
  padding-top: 112px;
  padding-bottom: 130px;
  align-items: start;
}
.contact-intro .lead {
  margin: 0;
}
.contact-details {
  border-top: 1px solid var(--line);
  margin-top: 52px;
  padding-top: 24px;
  display: grid;
  gap: 18px;
}
.contact-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-details span {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-details a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.contact-form {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-weight: 700;
  font-size: 0.88rem;
}
.field small,
.form-privacy {
  color: var(--muted);
  font-size: 0.76rem;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-message {
  margin: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.87rem;
}
.form-error {
  background: #fbe8e5;
  color: #9c3c2f;
}
.form-success {
  background: #e1f1e9;
  color: #276746;
}
.form-submit {
  justify-self: start;
}
.form-privacy {
  margin: 0;
}
.empty-state {
  text-align: center;
  padding: 150px 0;
}
.empty-state .lead {
  margin: 26px auto;
}
.empty-state .button {
  margin-top: 12px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer-shell {
  text-align: center;
  padding: 36px 0 40px;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-shell img {
  object-fit: contain;
  margin: 0 auto 9px;
}
.footer-shell p {
  margin: 0 auto 8px;
}
.footer-shell small {
  font-size: 0.72rem;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .nav-shell,
  .footer-shell,
  .page-width,
  .section-width {
    width: min(100% - 32px, 1120px);
  }
  .nav-shell {
    min-height: 70px;
  }
  .brand span {
    display: none;
  }
  .nav-shell nav {
    gap: 0;
  }
  .nav-link,
  .theme-toggle {
    padding: 8px 9px;
    font-size: 0.77rem;
  }
  .theme-label {
    display: none;
  }
  .hero {
    padding: 92px 0 98px;
  }
  .hero h1,
  .intro h1,
  .contact-intro h1,
  .empty-state h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }
  .hero-copy,
  .lead {
    font-size: 1rem;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .home-note,
  .heritage,
  .focus-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-note {
    padding-bottom: 70px;
  }
  .intro {
    padding: 82px 0 72px;
  }
  .heritage {
    padding-bottom: 80px;
  }
  .heritage-mark {
    order: 0;
    justify-self: center;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    margin-top: 12px;
  }
  .content-section {
    padding: 68px 0 86px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .focus-band {
    padding: 72px 0;
  }
  .contact-layout {
    padding-top: 82px;
    padding-bottom: 90px;
  }
  .surface-card {
    padding: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}