:root {
  --ink: #17201c;
  --muted: #5f6863;
  --line: #d8ddd7;
  --paper: #f7f7f2;
  --white: #ffffff;
  --forest: #173f35;
  --moss: #6d7f4f;
  --gold: #b99552;
  --clay: #bc6c3d;
  --sky: #d9e6e0;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.11);
  --shadow-strong: 0 28px 80px rgba(10, 24, 20, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 242, 0.88);
  border-bottom: 1px solid rgba(216, 221, 215, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border: 1px solid rgba(185, 149, 82, 0.55);
  font-family: Georgia, serif;
  font-size: 18px;
}

.brand-text {
  display: grid;
  line-height: 1.16;
}

.brand-text small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(109, 127, 79, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button.secondary {
  color: var(--forest);
  background: transparent;
  border-color: rgba(23, 63, 53, 0.32);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
  background: #10231d;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(12, 26, 22, 0.9), rgba(12, 26, 22, 0.62), rgba(12, 26, 22, 0.28)),
    linear-gradient(0deg, rgba(12, 26, 22, 0.62), rgba(12, 26, 22, 0.06) 50%, rgba(12, 26, 22, 0.34));
  z-index: 1;
}

.hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 64%);
  z-index: 2;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  animation: heroFade 24s infinite;
}

.hero-slide:nth-child(2) {
  animation-delay: 8s;
}

.hero-slide:nth-child(3) {
  animation-delay: 16s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  8%,
  33% {
    opacity: 1;
  }
  43%,
  100% {
    opacity: 0;
    transform: scale(1.01);
  }
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 118px 0 86px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Work Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(42px, 6.6vw, 82px);
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.7vw, 22px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}

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

.hero .button {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.hero .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.hero-note {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(217, 230, 224, 0.42), rgba(255, 255, 255, 0) 280px),
    var(--white);
}

.section.deep {
  color: var(--white);
  background: var(--forest);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.deep .section-heading p,
.deep .muted {
  color: rgba(255, 255, 255, 0.74);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 149, 82, 0.55);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.deep .card {
  color: var(--ink);
}

.service-strip {
  counter-reset: service;
}

.service-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
  border-radius: 8px;
  background: var(--forest);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(10, 25, 21, 0.86), rgba(10, 25, 21, 0.36) 52%, rgba(10, 25, 21, 0.08)),
    linear-gradient(90deg, rgba(10, 25, 21, 0.4), transparent);
}

.service-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms ease;
}

.service-panel:hover img {
  transform: scale(1.06);
}

.service-panel .card-kicker {
  position: static;
  margin-bottom: 14px;
  color: var(--gold);
}

.service-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
}

.service-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.service-card {
  padding-top: 58px;
  background:
    linear-gradient(135deg, rgba(217, 230, 224, 0.46), rgba(255, 255, 255, 0) 52%),
    var(--white);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--moss), var(--clay));
}

.card-kicker {
  position: absolute;
  top: 22px;
  left: 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
}

.feature-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  background: var(--forest);
}

.feature-image.wide {
  aspect-ratio: 16 / 10;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms ease;
}

.feature-image:hover img {
  transform: scale(1.045);
}

.layered-image::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: min(46%, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(23, 63, 53, 0.92), rgba(185, 149, 82, 0.78));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.layered-image::before {
  content: "ECG";
  position: absolute;
  right: 52px;
  bottom: 82px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px 24px 24px 74px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.step:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.12);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.quote {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: var(--forest);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  font-size: 18px;
}

.quote cite {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font: inherit;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.text-page {
  max-width: 880px;
}

.text-page h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
}

.text-page h2 {
  margin-top: 38px;
  font-size: 26px;
}

.text-page p,
.text-page li {
  color: var(--muted);
}

.empty-state {
  padding: 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 28, 23, 0.9), rgba(11, 28, 23, 0.44)),
    var(--page-hero-image) center / cover;
  transform: scale(1.02);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 28, 23, 0.76), transparent);
}

.page-hero .section-inner {
  padding: 96px 0 58px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 76px);
}

.page-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.service-page-hero {
  --page-hero-image: url("https://images.unsplash.com/photo-1551135049-8a33b5883817?auto=format&fit=crop&w=1600&h=900");
}

.about-page-hero {
  --page-hero-image: url("https://images.unsplash.com/photo-1484828635873-66079d28ba10?auto=format&fit=crop&w=1600&h=900");
}

.site-footer {
  color: var(--ink);
  background: var(--gold);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 800;
}

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

.fine-print {
  margin: 12px 0 0;
  color: rgba(23, 32, 28, 0.78);
  font-size: 13px;
}

@media (max-width: 840px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-inner {
    padding: 78px 0 96px;
  }

  .hero-note {
    left: 16px;
    right: auto;
    bottom: 26px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .feature-row,
  .contact,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .service-overview {
    grid-template-columns: 1fr;
  }

  .service-panel {
    min-height: 330px;
  }

  .page-hero {
    min-height: 390px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero-slide:first-child {
    opacity: 1;
  }
}
