:root {
  --bg: #f6f5f2;
  --text: #191816;
  --muted: #656159;
  --line: #dad4c9;
  --accent: #0e756c;
  --max-width: min(1040px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf8f4 0%, var(--bg) 32%, var(--bg) 100%);
  line-height: 1.6;
}

.hero {
  min-height: 72vh;
  padding: clamp(1.1rem, 2vw, 2rem) 0 clamp(2.6rem, 6vw, 5.2rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-content {
  margin-top: clamp(2rem, 8vh, 5.6rem);
  max-width: 1000px;
  animation: rise 600ms ease-out both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: start;
}

.hero-grid > div {
  max-width: 62ch;
  margin: 0;
  text-align: left;
}

.brand-mark {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  justify-self: end;
}

.brand-mark img {
  display: block;
  width: clamp(220px, 30vw, 360px);
  height: auto;
  filter: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.15;
}

h1 {
  margin: 0.7rem 0 0.95rem;
  font-size: clamp(2rem, 5vw, 3.95rem);
  font-weight: 600;
}

h1 span {
  color: var(--accent);
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  margin-bottom: clamp(1.1rem, 2.3vw, 1.7rem);
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line) 65%);
  padding: 0.62rem 0.92rem;
  transition: transform 180ms ease, background-color 180ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  background-color: rgba(14, 117, 108, 0.06);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.7rem) 0;
}

.section + .section .section-head {
  padding-top: 0.5rem;
}

.section-head h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.section p {
  max-width: 68ch;
  color: #292722;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.2rem);
  margin-top: 1rem;
}

.card {
  border-left: 2px solid color-mix(in oklab, var(--accent) 40%, var(--line) 60%);
  padding: 0.15rem 0 0.15rem 0.9rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.contact p {
  margin: 0.32rem 0;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}


.footer {
  border-top: 1px solid color-mix(in oklab, var(--line) 65%, transparent 35%);
  text-align: center;
  padding: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.to-top {
  position: fixed;
  right: clamp(0.8rem, 2.2vw, 1.2rem);
  bottom: clamp(0.8rem, 2.2vw, 1.2rem);
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklab, var(--accent) 32%, var(--line) 68%);
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(25, 24, 22, 0.12);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease;
}

.to-top:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.96);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    margin-top: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .brand-mark {
    justify-self: start;
    order: -1;
  }

  .brand-mark img {
    width: min(72vw, 300px);
  }

  .cards {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .hero,
  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .to-top {
    width: 2.15rem;
    height: 2.15rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .brand-mark img {
    width: min(76vw, 290px);
  }
}
