*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0e1210;
  --bg-elevated: #151c18;
  --text: #e6e2d8;
  --text-muted: #8f9a90;
  --green: #3d5248;
  --green-dark: #2a3d34;
  --green-light: #4d6358;
  --green-rgb: 61, 82, 72;
  --green-soft: rgba(61, 82, 72, 0.14);
  --burgundy: #8b3350;
  --burgundy-dark: #6b2840;
  --burgundy-light: #a34462;
  --burgundy-rgb: 139, 51, 80;
  --burgundy-soft: rgba(139, 51, 80, 0.12);
  --accent: var(--burgundy);
  --accent-rgb: var(--burgundy-rgb);
  --accent-soft: var(--burgundy-soft);
  --accent-dark: var(--burgundy-dark);
  --border: rgba(255, 255, 255, 0.07);
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
  --leading: 1.65;
  --leading-tight: 1.2;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: var(--leading);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(var(--green-rgb), 0.025) 48px,
      rgba(var(--green-rgb), 0.025) 49px
    ),
    radial-gradient(ellipse 65% 50% at 12% -5%, var(--burgundy-soft), transparent 55%),
    radial-gradient(ellipse 55% 40% at 88% 100%, var(--green-soft), transparent 50%);
}

::selection {
  background: rgba(var(--burgundy-rgb), 0.4);
  color: var(--text);
}

.grain { display: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--burgundy) 0,
    var(--burgundy) 8px,
    var(--green) 8px,
    var(--green) 16px
  );
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

.cursor-glow { display: none; }

a { color: inherit; text-decoration: none; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

.logo-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--green-light);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover { color: var(--burgundy-light); }

.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-services {
  background: var(--bg-elevated);
  border: 1px solid rgba(var(--green-rgb), 0.25);
  border-left: 4px solid var(--burgundy);
  border-radius: 4px;
  padding: 1.25rem 1.35rem;
  box-shadow: none;
}

.hero-services-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.hero-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .hero-service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.hero-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.hero-service-list li:first-child .hero-service-link,
.hero-service-list li:last-child .hero-service-link {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.hero-service-link:hover {
  color: var(--text);
  padding-left: 0.75rem;
  border-color: rgba(var(--burgundy-rgb), 0.4);
  background: rgba(var(--burgundy-rgb), 0.06);
}

.hero-service-name {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.hero-service-arrow {
  flex-shrink: 0;
  color: var(--green-light);
  font-size: 0.75rem;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.hero-service-link:hover .hero-service-arrow {
  transform: translateX(3px);
  color: var(--burgundy-light);
}

.scroll-hint {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.5s var(--ease);
}

.scroll-hint.is-hidden { opacity: 0; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible .reveal-item,
.hero .reveal-item {
  animation: fade-up 0.75s var(--ease) both;
}

.hero-copy .reveal-item:nth-child(1) { animation-delay: 0.05s; }
.hero-copy .reveal-item:nth-child(2) { animation-delay: 0.12s; }
.hero-copy .reveal-item:nth-child(3) { animation-delay: 0.2s; }
.hero-copy .reveal-item:nth-child(4) { animation-delay: 0.28s; }
.hero-services.reveal-item { animation-delay: 0.35s; }

.reveal.is-visible .service-grid .reveal-item:nth-child(1) { animation-delay: 0.05s; }
.reveal.is-visible .service-grid .reveal-item:nth-child(2) { animation-delay: 0.1s; }
.reveal.is-visible .service-grid .reveal-item:nth-child(3) { animation-delay: 0.15s; }
.reveal.is-visible .service-grid .reveal-item:nth-child(4) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; animation: none !important; }
  .scroll-hint { display: none; }
  .type-word { border-right: none; animation: none; }
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
  margin: 0 0 1.25rem;
}

.hero h1,
.hero-eyebrow,
.hero-lead,
.hero-actions,
.hero-services {
  will-change: transform;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: var(--leading-tight);
  margin: 0 0 1.25rem;
  text-wrap: pretty;
  letter-spacing: -0.02em;
}

.type-wrap {
  display: inline-block;
  vertical-align: baseline;
  min-width: 9ch;
}

.type-word {
  display: inline;
  border-right: 3px solid var(--burgundy);
  padding-right: 2px;
  animation: cursor-blink 0.9s step-end infinite;
}

.accent { color: var(--burgundy-light); }

@keyframes cursor-blink {
  0%, 45% { border-right-color: var(--burgundy); }
  50%, 100% { border-right-color: transparent; }
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: var(--leading);
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 40rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--burgundy);
  color: var(--text);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-light);
  border-color: var(--burgundy-light);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(var(--green-rgb), 0.45);
}

.btn-outline:hover {
  border-color: var(--green-light);
  background: rgba(var(--green-rgb), 0.1);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.steps {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.steps h2,
.services h2,
.regions h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  margin: 0 0 1.75rem;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 4px;
}

.step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  background: var(--burgundy);
  border-radius: 4px;
}

.step-list h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.step-list p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: var(--leading);
}

.services {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.service-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.service-card {
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(var(--green-rgb), 0.5);
  border-radius: 4px;
  scroll-margin-top: 5.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover {
  border-left-color: var(--burgundy);
  transform: translateX(4px);
  box-shadow: none;
}

.service-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: var(--leading-tight);
  margin: 0 0 0.6rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: var(--leading);
}

.philosophy {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  max-width: 36rem;
}

.philosophy blockquote { margin: 0; }

.regions {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.regions h2 {
  margin: 0 0 0.75rem;
}

.regions-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: var(--leading);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.region-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.region-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: border-color 0.2s, color 0.2s;
}

.region-list li:hover {
  border-color: rgba(var(--burgundy-rgb), 0.45);
  color: var(--text);
  background: rgba(var(--burgundy-rgb), 0.06);
}

.philosophy blockquote p {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}

.philosophy-note {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.glow-word {
  display: inline-block;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease), transform 0.3s var(--ease-dramatic);
  cursor: default;
}

.glow-word:hover {
  color: var(--burgundy-light);
  text-shadow: none;
  transform: none;
}

.contact {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.contact-phone { max-width: 32rem; }

.contact-phone h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  margin: 0 0 0.75rem;
}

.contact-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: var(--leading);
  margin: 0 0 1.5rem;
}

.phone-display {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--burgundy-light);
  margin: 0 0 1.25rem;
  transition: color 0.25s var(--ease);
}

.phone-display:hover {
  color: var(--burgundy);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.contact-text-tip {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: var(--leading);
}

.contact-text-tip em {
  font-style: normal;
  color: var(--text);
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer-brand { margin: 0; color: var(--text); }
.footer-copy { margin: 0; }

.footer-link {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--burgundy-light); }
