:root {
  --bg: #0e0f11;
  --band-alt: #141518;
  --text: #edebe6;
  --text-secondary: #a8adb5;
  --accent: #7fa3c7;
  --border: #2e3136;
  --border-hover: #454a52;
  --focus: #7fa3c7;
  --btn-text: #0e0f11;
  --wrap: min(1120px, calc(100% - 3rem));
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.band-dark {
  background: var(--bg);
}

.band-alt {
  background: var(--band-alt);
}

.text-secondary {
  color: var(--text-secondary);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--btn-text);
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* Header */
.site-header {
  padding: 1.25rem 0 0.5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand__wordmark {
  letter-spacing: -0.01em;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 2rem 0 5rem;
}

.hero--grid {
  background-image: radial-gradient(circle at center, rgba(237, 235, 230, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 820px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero__content h1 {
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--text);
  color: var(--btn-text);
}

.btn--primary:hover {
  background: #fff;
  color: var(--btn-text);
}

.hero__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-hub {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-draw 1.2s ease-out forwards;
}

.hero-path:nth-child(8) { animation-delay: 0.05s; }
.hero-path:nth-child(9) { animation-delay: 0.1s; }
.hero-path:nth-child(10) { animation-delay: 0.15s; }
.hero-path:nth-child(11) { animation-delay: 0.08s; }
.hero-path:nth-child(12) { animation-delay: 0.12s; }
.hero-path:nth-child(13) { animation-delay: 0.18s; }
.hero-path:nth-child(14) { animation-delay: 0.14s; }
.hero-path:nth-child(15) { animation-delay: 0.2s; }

@keyframes hero-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-pulse {
  opacity: 0;
}

/* Services */
.services {
  padding: 5rem 0;
}

.services-stage {
  position: relative;
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.connectors--desktop {
  display: none;
  overflow: visible;
}

.connectors--tablet {
  display: none;
}

.connectors--mobile {
  display: block;
}

@media (min-width: 820px) {
  .connectors--mobile {
    display: none;
  }
  .connectors--tablet {
    display: block;
  }
}

@media (min-width: 1100px) {
  .connectors--tablet {
    display: none;
  }
  .connectors--desktop {
    display: block;
  }
}

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 1.75rem;
  }

  .services-grid .service-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .services-grid .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .services-grid .service-card:nth-child(5) {
    grid-column: 4 / span 2;
    max-width: none;
    justify-self: stretch;
  }
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.service-icon {
  display: block;
  margin-bottom: 1.25rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* How we work */
.how {
  padding: 5rem 0;
}

.how-intro {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 820px) {
  .how-intro {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  position: relative;
}

@media (max-width: 819px) {
  .timeline li {
    padding-left: 1.75rem;
  }

  .timeline__node {
    margin-left: -1.75rem;
  }

  .timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3.5px;
    width: 1px;
    background: var(--border);
    top: calc(0.5rem + 2.5rem + 1rem + 4px);
    bottom: calc(-2.5rem - (0.5rem + 2.5rem + 1rem + 4px));
  }
}

@media (min-width: 820px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    --timeline-rail: 3.75rem;
  }

  .timeline::before {
    content: "";
    position: absolute;
    top: var(--timeline-rail);
    left: 4px;
    right: calc((100% - 4rem) / 3 - 4px);
    height: 1px;
    background: var(--border);
  }
}

.timeline li {
  position: relative;
  padding-top: 0.5rem;
}

.timeline__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  color: #6d737c;
  line-height: 1;
  margin-bottom: 1rem;
}

@media (min-width: 820px) {
  .timeline__num {
    margin-bottom: 0.75rem;
  }

  .timeline li h3 {
    margin-top: 2rem;
  }
}

.timeline__node {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 1rem;
}

@media (min-width: 820px) {
  .timeline__node {
    position: absolute;
    top: calc(var(--timeline-rail) - 3.5px);
    left: 0;
    margin-bottom: 0;
  }
}

.phone-nowrap {
  white-space: nowrap;
}

/* Contact */
.contact {
  padding: 5rem 0;
}

.contact__layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 820px) {
  .contact__layout {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }

  .contact__heading h2 {
    margin-bottom: 0;
  }
}

.contact-list {
  margin: 0;
}

.contact-list__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.contact-list__row:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-list dd {
  margin: 0;
}

address {
  font-style: normal;
}

address a {
  text-decoration: none;
}

address a:hover {
  text-decoration: underline;
  color: var(--text);
}

.contact-list a {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-footer a {
  text-decoration: none;
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

/* Privacy page */
.page-main {
  padding: 3rem 0 5rem;
}

.page-main h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.page-main h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal p {
  max-width: 42rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hero-pulse {
    display: none;
  }

  .btn,
  .service-card {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}