:root {
  color-scheme: light;
  --ink: #161514;
  --muted: #6f6a61;
  --paper: #f8f5ef;
  --panel: #fffdf8;
  --line: rgba(22, 21, 20, 0.12);
  --accent: #c85f34;
  --accent-dark: #8f3e24;
  --green: #2e7355;
  --shadow: 0 24px 70px rgba(31, 27, 21, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 95, 52, 0.12), transparent 32rem),
    linear-gradient(135deg, #fbf8f1 0%, #f2eee4 42%, #faf9f4 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 36px rgba(31, 27, 21, 0.08);
}

.brand,
.nav-links,
.hero-actions,
.panel-header,
.metric-grid,
.category-stack,
.contact-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 0.95rem;
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(22, 21, 20, 0.07);
  outline: none;
}

.section-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 72px 0 88px;
}

.hero-copy,
.hero-panel,
.about > *,
.contact > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 9vw, 8.8rem);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: normal;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-subtitle,
.section-text {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-subtitle {
  margin-bottom: 32px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

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

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.62);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(22, 21, 20, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fffdf8, #eee3d4);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: auto -20% -34% 12%;
  height: 180px;
  content: "";
  background: linear-gradient(90deg, rgba(46, 115, 85, 0.28), rgba(200, 95, 52, 0.24));
  transform: rotate(-8deg);
}

.panel-header {
  position: relative;
  gap: 10px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(46, 115, 85, 0.12);
}

.metric {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-label,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.92;
}

.metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.66);
}

.metric-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
}

.category-stack {
  position: relative;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-stack span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.74);
  font-size: 0.86rem;
  font-weight: 750;
}

.about {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 48px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.services {
  padding: 96px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(31, 27, 21, 0.1);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 80px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

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

.contact {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 42px;
  align-items: end;
  padding: 96px 0 112px;
  border-top: 1px solid var(--line);
}

.contact-card {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.contact-card a {
  padding: 17px 18px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 780;
  word-break: break-word;
  transition: background-color 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .nav-links {
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

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

  .service-card {
    min-height: 210px;
  }

  .service-icon {
    margin-bottom: 52px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  h1 {
    font-size: clamp(2.95rem, 14vw, 4rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

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

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}
