@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=DM+Serif+Display&display=swap');

:root {
  --bg: #070b12;
  --bg2: #0a1220;
  --text: #e8efff;
  --muted: #98a9cc;
  --line: rgba(130, 166, 255, 0.22);
  --card: rgba(8, 16, 30, 0.68);
  --accent: #9cc8ff;
  --accent-2: #77ffd6;
}

.theme-light {
  --bg: #f5f7fb;
  --bg2: #edf2fa;
  --text: #17233b;
  --muted: #5b6f92;
  --line: rgba(70, 94, 140, 0.24);
  --card: rgba(255, 255, 255, 0.86);
  --accent: #2d5dcc;
  --accent-2: #006f64;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(122, 179, 255, 0.24), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(119, 255, 214, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.55;
}

.shell { width: min(1180px, 92vw); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
}
.brand-wordmark { display: block; height: auto; max-width: 100%; }
.brand-wordmark-light { display: none; }
.theme-light .brand-wordmark-dark { display: none; }
.theme-light .brand-wordmark-light { display: block; }

#primary-nav {
  justify-self: end;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
#primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
#primary-nav a:hover { color: var(--text); }

.header-actions { display: flex; gap: 0.55rem; }
.icon-btn {
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card) 78%, transparent);
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.icon-btn svg { width: 17px; height: 17px; }
.nav-toggle span { font-size: 0.82rem; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.3rem;
  padding: 4rem 0 2rem;
}
.eyebrow {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
}
.hero h1 {
  margin: 0.75rem 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  font-weight: 400;
}
.lede {
  margin: 1.1rem 0 0;
  max-width: 60ch;
  color: var(--muted);
}
.hero-cta {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.66rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.btn-primary {
  color: #031022;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 0;
  font-weight: 700;
}
.btn-ghost { color: var(--text); }

.pill-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.pill-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 88%, transparent), color-mix(in oklab, var(--card) 94%, transparent));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.26);
}
.hero-panel h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-panel dl {
  margin: 0.7rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.hero-panel dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.hero-panel dd {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
}

.section { padding: 2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.95rem;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
}
.section-head p { margin: 0; color: var(--muted); }
.section-head a { color: var(--accent); text-decoration: none; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.timeline article,
.service-grid article,
.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0.9rem;
}
.timeline h3,
.service-grid h3,
.product-card h3 { margin: 0; font-size: 1rem; }
.timeline p,
.service-grid p,
.product-card p { margin: 0.55rem 0 0; color: var(--muted); }

blockquote {
  margin: 1rem 0 0;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in oklab, var(--card) 85%, transparent);
  border-radius: 8px;
  color: color-mix(in oklab, var(--text) 85%, var(--accent) 15%);
}

.product-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.product-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.6rem;
}
.product-card span {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.54rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.contact p { margin: 0.3rem 0; color: var(--muted); }
.contact a { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.2rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.footer-grid p { margin: 0.6rem 0 0; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: end;
}
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero,
  .timeline,
  .product-wall,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-grid {
    grid-template-columns: 1fr auto auto;
  }

  #primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    padding: 0.8rem 4vw;
    background: color-mix(in oklab, var(--bg) 90%, transparent);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-open #primary-nav { display: flex; }
}
