@font-face {
  font-family: "Avenir Next WT77";
  src: url("assets/Avenir Next/AvenirNextLTPro-lt.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next WT77";
  src: url("assets/Avenir Next/AvenirNextLTPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next WT77";
  src: url("assets/Avenir Next/AvenirNextLTPro-Demi.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next WT77";
  src: url("assets/Avenir Next/AvenirNextLTPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mercy WT77";
  src: url("assets/Mercy/Mercy.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand: #02c3dc;
  --brand-strong: #00e1ff;
  --bg: #333333;
  --bg-soft: #404040;
  --surface: #4a4a4a;
  --surface-strong: #565656;
  --line: rgba(217, 217, 217, 0.18);
  --line-strong: rgba(197, 213, 53, 0.52);
  --text: #d9d9d9;
  --text-strong: #f0f0f0;
  --text-muted: #b3b3b3;
  --shadow: 0 20px 64px rgba(0, 0, 0, 0.22);
  --page-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next WT77", "Avenir Next", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #202020;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(51, 51, 51, 0.4);
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: min(100% - 40px, var(--page-width));
  min-height: 88px;
  margin: 0 auto;
  /* gap: 28px; */
}

.brand {
  min-width: max-content;
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  margin: 16px 0 8px;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
}

.brand-logo-neutral {
  color: var(---text-strong);
}

.brand-logo-accent {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.nav-links a {
  min-height: 36px;
  padding-top: 7px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--brand);
  color: var(--text-strong);
  outline: 0;
}

.section {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 92px;
}

.hero {
  padding-top: 64px;
  padding-bottom: 72px;
  text-align: center;
}

.hero .card.info {
  margin-top: 96px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 64px;
}

h1 {
  color: var(--text-strong);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
}

h2 {
  color: var(--text-strong);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
}

h3 {
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

h4 {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card {
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: rgba(74, 74, 74, 0.74);
  padding: 24px;
  margin: 12px;
  max-width: 350px;
  display: inline-block;
}

.ul {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
}

li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.note {
  margin-top: 36px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  background: rgba(197, 213, 53, 0.08);
  color: var(--text-strong);
  font-style: italic;
}

.legal-section {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  padding: 100px 0 0;
}

.legal-divider {
  display: block;
  border-top: 1px solid var(--line);
  height: 0;
}

.legal-block {
  max-width: 880px;
  color: var(--text);
  font-size: 0.96rem;
  padding-top: 48px;
  padding-bottom: 64px;
  opacity: 0.6;
}

.legal-block + .legal-block {
  margin-top: 60px;
}

.legal-block h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.legal-block h3 {
  margin-top: 26px;
  font-size: 1rem;
}

.legal-block p + p,
.legal-block h3 + p {
  margin-top: 12px;
}

.legal-block a {
  color: var(--brand);
  text-decoration: none;
}

.contact-reveal {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
}

.legal-block a:hover,
.contact-reveal:hover {
  text-decoration: underline;
}

@media (max-width: 1150px) {
  h1 {
    font-size: 3.6rem;
  }
}

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

  .brand-wordmark {
    font-size: 3rem;
    margin-bottom: 0px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
    margin-bottom: 8px;
  }

  .hero,
  .profile-section {
    grid-template-columns: 1fr;
  }

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

  .profile-facts {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .focus-list {
    margin: 0px 0 60px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .section,
  .legal-section,
  .site-footer {
    width: min(100% - 28px, var(--page-width));
  }

  .brand-name {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .eyebrow {
    font-size: 2.4rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.2rem;
  }

  .focus-list {
    grid-template-columns: 1fr 1fr;
  }

  .profile-facts,
  .tag-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .nav-links a:first-child {
    display: none;
  } 
  
  .focus-list,
  .profile-facts,
  .tag-groups {
    grid-template-columns: 1fr;
  }
}
