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

:root {
  --bg: #06100e;
  --bg-deep: #09091a;
  --surface: rgba(255,255,255,0.075);
  --surface-strong: rgba(255,255,255,0.11);
  --border: rgba(255,255,255,0.13);
  --border-strong: rgba(0,189,143,0.42);
  --text-1: rgba(255,255,255,0.96);
  --text-2: rgba(255,255,255,0.66);
  --text-3: rgba(255,255,255,0.38);
  --accent: #00bd8f;
  --accent-dark: #002c28;
  --accent-soft: rgba(0,189,143,0.12);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --shadow: 0 24px 60px rgba(0,0,0,0.3);
  --blur: 18px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(125deg, rgba(0,189,143,0.18) 0%, rgba(0,189,143,0.04) 26%, transparent 46%),
    linear-gradient(235deg, rgba(34,211,238,0.11) 0%, transparent 38%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 58%, #080b14 100%);
  color: var(--text-1);
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--text-1); }

b,
strong {
  color: var(--text-1);
  font-weight: 700;
}

.color-dark,
.color-light,
.color-tandem { color: var(--accent) !important; }

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  background: rgba(6,16,14,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  min-height: 64px;
  padding: 0.7rem 1.25rem;
  width: min(1120px, 100%);
}

.brand-link {
  align-items: center;
  color: var(--text-1);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.7rem;
}

.brand-link img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,189,143,0.3);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-2);
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.36rem 0.7rem;
  transition: background .15s, border-color .15s, color .15s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-soft);
  border-color: rgba(0,189,143,0.2);
  color: var(--text-1);
}

main {
  flex: 1;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  width: min(1120px, 100%);
}

.page-section {
  scroll-margin-top: 86px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 180px 1fr;
  min-height: 520px;
  padding: 4.5rem 0 4rem;
}

.hero-mark {
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  height: 180px;
  justify-content: center;
  overflow: hidden;
  width: 180px;
}

.hero-mark img {
  display: block;
  height: 156px;
  width: 156px;
}

.hero-copy {
  max-width: 780px;
}

.site-label {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

h1 {
  color: var(--text-1);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 1.1rem;
}

.hero-description {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 760px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.hero-pills span {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
}

.section-header {
  margin-bottom: 1.4rem;
  max-width: 760px;
}

h2 {
  color: var(--text-1);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

h3 {
  color: var(--text-1);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.section-intro:empty { display: none; }

.services-section,
.tandem-section,
.contact-section {
  padding: 3rem 0;
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.person-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.service-card {
  min-width: 0;
  padding: 1.25rem;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  transform: translateY(-3px);
}

.card-index {
  color: var(--accent);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
}

.service-card p,
.vision-section p,
.contact-card p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.vision-section {
  align-items: start;
  background: rgba(0,189,143,0.08);
  border: 1px solid rgba(0,189,143,0.2);
  border-radius: 8px;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(180px, 0.38fr) 1fr;
  margin: 2rem 0 1rem;
  padding: 1.6rem;
}

.vision-section p {
  font-size: 1rem;
  max-width: 700px;
}

.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-card {
  align-items: center;
  color: var(--text-1);
  display: grid;
  gap: 1rem;
  grid-template-columns: 96px 1fr;
  min-width: 0;
  padding: 1rem;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.person-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  transform: translateY(-3px);
}

.person-card img {
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: block;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.person-card strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  min-width: 0;
  padding: 1.1rem 1.2rem;
}

.contact-kicker {
  color: var(--accent);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.contact-link a {
  color: var(--text-2);
  display: inline-block;
  overflow-wrap: anywhere;
}

.contact-link a:hover { color: var(--text-1); }

.contact-link span {
  color: var(--text-1);
  font-weight: 700;
}

footer {
  align-items: center;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  padding: 1.5rem;
}

footer nav {
  display: flex;
  gap: 0.8rem;
}

footer a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 3px;
}

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

@media (max-width: 860px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-mark {
    height: 132px;
    width: 132px;
  }

  .hero-mark img {
    height: 114px;
    width: 114px;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }

  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .vision-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 620px) {
  main {
    padding: 0 0.85rem 3rem;
  }

  .site-nav {
    padding: 0.65rem 0.85rem;
  }

  .brand-link span {
    font-size: 0.84rem;
  }

  .nav-link {
    font-size: 0.76rem;
    padding: 0.32rem 0.55rem;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-description,
  .vision-section p {
    font-size: 0.94rem;
  }

  .services-section,
  .tandem-section,
  .contact-section {
    padding: 2.25rem 0;
  }

  .service-card,
  .contact-card,
  .vision-section {
    padding: 1rem;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    grid-template-columns: 76px 1fr;
  }

  .person-card img {
    height: 76px;
    width: 76px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
