:root {
  color-scheme: dark;
  --background: #090c11;
  --panel: #10151e;
  --line: #262e3b;
  --text: #f4f7fb;
  --muted: #b5bfce;
  --red: #e33847;
  --blue: #72d3ff;
  font: 16px/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 10px; background: var(--panel); translate: 0 -200%; }
.skip:focus { translate: 0; }
.top { background: #050608; border-bottom: 1px solid #6a2430; }
.nav, .brand, nav, .actions, .footer { display: flex; align-items: center; }
.nav { min-height: 81px; justify-content: space-between; gap: 24px; }
.brand { gap: 8px; line-height: 1.08; text-decoration: none; }
.brand strong { display: block; font-size: 1.55rem; font-style: italic; letter-spacing: -.045em; }
.brand small { color: var(--muted); font-size: .71rem; font-weight: 650; }
.brand-location { display: block; margin-top: 4px; }
nav { gap: clamp(18px, 3vw, 40px); }
nav a { color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 600; }
nav a:hover, .email:hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 5px; background: #bc2536; color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #a41e2d; }
.button.small { min-height: 40px; font-size: .88rem; white-space: nowrap; }
.button.secondary { background: #101722; border-color: #354354; }
.button.secondary:hover { background: #1d2b3d; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #6a2430;
  background: radial-gradient(ellipse at 50% 25%, #102234, #07090d 63%);
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: 38%;
  content: "";
  opacity: .63;
  background-size: cover;
}
.hero::before {
  left: 0;
  background-image: linear-gradient(90deg, transparent, #07090d 96%),
    linear-gradient(0deg, #07090d, transparent 63%), url("assets/hero-treatment.webp");
  background-position: left center;
}
.hero::after {
  right: 0;
  background-image: linear-gradient(270deg, transparent, #07090d 96%),
    linear-gradient(0deg, #07090d, transparent 63%), url("assets/hero-controls.webp");
  background-position: right center;
}
.hero-content { display: grid; justify-items: center; padding-block: 30px 41px; text-align: center; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
.hero h1 { width: min(100%, 500px); mix-blend-mode: screen; }
.hero h1 img { width: 100%; height: auto; }
.eyebrow { margin-top: 8px; color: var(--blue); font-weight: 700; font-size: .79rem; letter-spacing: .105em; text-transform: uppercase; }
.lead { max-width: 525px; margin-top: 9px; color: var(--muted); font-size: 1.05rem; }
.actions { flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 21px; }
.section { padding-block: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -.05em; }
.section-head p, .card-copy p, .project-grid p, .contact p { color: var(--muted); }
.service-grid, .project-grid { display: grid; gap: 16px; }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-grid article { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.service-grid img { width: 100%; height: 114px; object-fit: cover; border-bottom: 2px solid #a62a38; }
.service-grid article:nth-child(2) img { object-position: center 40%; }
.card-copy { padding: 18px; }
h3 { font-size: 1.08rem; }
.card-copy p, .project-grid p { margin-top: 9px; font-size: .91rem; }
.projects { border-block: 1px solid var(--line); background: #0d121a; }
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-grid article { padding: 16px 20px; border-left: 2px solid #3184ad; background: #121923; }
.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 32px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 7px; background: linear-gradient(115deg,#141c28,#0b111a); }
.contact p { margin-top: 10px; }
.contact-links { display: grid; gap: 9px; text-align: center; }
.email { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer { justify-content: space-between; gap: 12px; padding-block: 22px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 690px) {
  .nav { display: grid; grid-template-columns: 1fr auto; min-height: unset; padding-block: 12px; gap: 12px; }
  .nav nav { grid-row: 2; grid-column: 1 / -1; }
  .brand img { width: 48px; height: auto; }
  .brand strong { font-size: 1.3rem; }
  .brand small { font-size: .64rem; }
  .button.small { padding-inline: 8px; font-size: .79rem; }
  .contact { grid-template-columns: 1fr; }
  .hero-content { padding-block: 25px 32px; }
  .hero::before, .hero::after { opacity: .31; }
  .section { padding-block: 39px; }
  .section-head { align-items: start; flex-direction: column; gap: 7px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact { padding: 22px; }
  .contact-links { justify-items: start; text-align: left; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .service-grid { grid-template-columns: 1fr; }
  .footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
