:root {
  --bg: #0c1118;
  --bg-alt: #121a24;
  --surface: #1a2433;
  --surface-elevated: #223044;
  --text: #e8edf4;
  --text-muted: #9aa8bc;
  --accent: #3b9eff;
  --accent-soft: rgba(59, 158, 255, 0.15);
  --accent-glow: rgba(59, 158, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #6cb8ff;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #051018;
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  display: block;
  width: auto;
  height: 2.35rem;
  max-width: min(260px, 58vw);
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(99, 102, 241, 0.2), transparent 50%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #061018;
}

.btn-primary:hover {
  background: #6cb8ff;
  color: #061018;
}

.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);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 42rem;
}

.hero-highlights li {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(26, 36, 51, 0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-intro {
  max-width: 40rem;
}

.card {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-highlight {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-elevated) 100%);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-note {
  font-size: 0.875rem;
}

.focus-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--text-muted);
}

.focus-list li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.focus-list li::marker {
  color: var(--accent);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro {
    grid-column: 1 / -1;
  }
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(59, 158, 255, 0.35);
  transform: translateY(-2px);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-block {
  font-style: normal;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-block p {
  margin: 0;
  line-height: 1.7;
}

.contact-meta {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-meta dd {
  margin: 0;
  font-weight: 500;
}

.map-link {
  margin-top: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem !important;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(59, 158, 255, 0.08), transparent 55%),
    #080b10;
}

.footer-main {
  display: grid;
  gap: 2rem 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.4fr 0.7fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  max-width: 22rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.footer-logo-link:hover {
  opacity: 1;
}

.footer-logo {
  display: block;
  height: 2.1rem;
  width: auto;
  max-width: 100%;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-location address {
  margin: 0 0 0.75rem;
  font-style: normal;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-map {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-map::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.2s;
}

.footer-map:hover::after {
  transform: translateX(3px);
}

.footer-bar {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-bar-inner {
  padding: 1rem 0 1.35rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copy {
    text-align: left;
  }
}
