*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0a0e14;
  --bg-elevated: #121820;
  --text: #eef4f8;
  --text-muted: #8fa3b3;
  --accent: #5eb8e8;
  --accent-rgb: 94, 184, 232;
  --accent-soft: rgba(94, 184, 232, 0.12);
  --accent-hot: #e85d4a;
  --border: rgba(255, 255, 255, 0.09);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
  --leading: 1.7;
  --leading-tight: 1.25;
}

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:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(var(--accent-rgb), 0.05), transparent 40%),
    radial-gradient(circle at 5% 70%, rgba(var(--accent-rgb), 0.04), transparent 35%);
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.05) translateY(-1.5%); }
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
  animation: float-particle 14s var(--ease) infinite;
  opacity: 0;
}

.particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 30%; top: 65%; animation-delay: 1.5s; }
.particles span:nth-child(3) { left: 55%; top: 30%; animation-delay: 3s; }
.particles span:nth-child(4) { left: 78%; top: 15%; animation-delay: 0.8s; }
.particles span:nth-child(5) { left: 85%; top: 70%; animation-delay: 2.2s; }
.particles span:nth-child(6) { left: 45%; top: 85%; animation-delay: 4s; }
.particles span:nth-child(7) { left: 15%; top: 45%; animation-delay: 1s; }
.particles span:nth-child(8) { left: 92%; top: 40%; animation-delay: 2.8s; }

@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-35px); }
  80% { opacity: 0.5; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.4));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}

.cursor-glow-outer {
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
}

.cursor-glow.is-active { opacity: 1; }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow, .particles, .grain { display: none; }
  body::before { animation: none; }
}

a { color: inherit; text-decoration: none; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 1;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover { color: var(--text); }

.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(--accent-rgb), 0.22);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--accent-rgb), 0.06) inset;
  will-change: transform;
}

.hero-services-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.hero-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.hero-service-list li:first-child .hero-service-link { padding-top: 0; }
.hero-service-list li:last-child .hero-service-link {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-service-link:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}

.hero-service-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.hero-service-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s, transform 0.2s var(--ease);
}

.hero-service-link:hover .hero-service-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.hero-service-link-emergency .hero-service-name {
  color: var(--accent-hot);
}

.hero-service-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(232, 93, 74, 0.12);
  color: var(--accent-hot);
  border: 1px solid rgba(232, 93, 74, 0.35);
}

.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; }
.reveal.is-visible .service-grid .reveal-item:nth-child(5) { animation-delay: 0.25s; }
.reveal.is-visible .service-grid .reveal-item:nth-child(6) { animation-delay: 0.3s; }

@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(--accent);
  margin: 0 0 1.25rem;
}

.hero h1,
.hero-eyebrow,
.hero-lead,
.hero-actions,
.hero-services {
  will-change: transform;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}

.type-wrap {
  display: inline-block;
  vertical-align: baseline;
  min-width: 10ch;
}

.type-word {
  display: inline;
  border-right: 3px solid var(--accent);
  padding-right: 2px;
  box-shadow: 3px 0 10px rgba(var(--accent-rgb), 0.35);
  animation: cursor-blink 0.9s step-end infinite;
}

.accent { color: var(--accent); }

@keyframes cursor-blink {
  0%, 45% {
    border-right-color: var(--accent);
    box-shadow: 3px 0 10px rgba(var(--accent-rgb), 0.35);
  }
  50%, 100% {
    border-right-color: transparent;
    box-shadow: none;
  }
}

.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.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.35);
  filter: brightness(1.08);
}

.btn-emergency {
  background: transparent;
  color: var(--accent-hot);
  border-color: rgba(232, 93, 74, 0.45);
}

.btn-emergency:hover {
  background: rgba(232, 93, 74, 0.1);
  border-color: var(--accent-hot);
}

.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);
}

.services {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.services h2,
.industries h2,
.regions h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: var(--leading-tight);
  margin: 0 0 2rem;
}

.service-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  scroll-margin-top: 5.5rem;
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease-dramatic), box-shadow 0.35s var(--ease-dramatic);
}

.service-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 32px rgba(var(--accent-rgb), 0.06);
}

.service-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  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);
}

.industries {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.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.65rem;
}

.region-list li {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.region-list li:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.industry-list li {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.industry-list li:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.philosophy {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  max-width: 36rem;
}

.philosophy blockquote { margin: 0; }

.philosophy blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 2.5vw, 1.5rem);
  line-height: 1.55;
  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(--accent);
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.4);
  transform: scale(1.04);
}

.contact {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.contact-phone {
  max-width: 28rem;
}

.contact-phone h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  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-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 1.5rem;
  transition: text-shadow 0.25s var(--ease);
}

.phone-display:hover {
  text-shadow: 0 0 32px rgba(var(--accent-rgb), 0.4);
}

.contact-phone .btn {
  margin-bottom: 1rem;
}

.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(--accent); }
