:root {
  --ink: #292522;
  --muted: #6c6762;
  --paper: #ffffff;
  --dark: #201a16;
  --teal: #23c6c6;
  --teal-dark: #0e8686;
  --header-height: 120px;
  --content-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Century Gothic", Futura, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(24px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(13, 12, 11, .62), transparent);
  transition: height .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  height: 82px;
  background: rgba(32, 26, 22, .96);
  box-shadow: 0 1px 0 rgba(255,255,255,.1);
}

.brand { position: relative; z-index: 102; flex: 0 0 auto; }
.brand img { width: 100px; height: 100px; object-fit: cover; transition: width .25s, height .25s; }
.site-header.is-scrolled .brand img { width: 64px; height: 64px; }

.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.site-nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--teal); border-color: currentColor; }

.menu-toggle { display: none; }

.site-section { background: var(--paper); }
.hero {
  position: relative;
  min-height: min(67vw, 680px);
  display: grid;
  place-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}
.hero--about { min-height: min(72vw, 760px); background-image: url("assets/hero-about.webp"); }
.hero--applications { background-image: url("assets/hero-applications.webp"); }
.hero--technology { background-image: url("assets/hero-technology.webp"); }
.hero--team { background-image: url("assets/hero-team.webp"); }
.hero--contact { background-image: url("assets/hero-contact.webp"); }

.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(11, 12, 12, .28);
}
.hero--about .hero__shade { background: rgba(12, 13, 14, .42); }

.hero__content { width: min(820px, calc(100% - 48px)); text-align: center; }
.hero__eyebrow, .hero__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__eyebrow { font-size: clamp(20px, 2.4vw, 32px); }
.hero__content h1 {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: .02em;
}
.hero__label { font-size: clamp(26px, 4vw, 50px); }

.content {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
  padding: 98px 0 112px;
}
.content--prose { max-width: 920px; }
.section-kicker {
  display: none;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 38px;
  color: var(--teal);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.content > p, .team-member p { color: #403c39; }
.content--prose > p:not(.section-kicker), .section-intro { margin: 0 0 22px; }
.section-intro { max-width: 820px; }

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 58px;
}
.application-card { min-width: 0; }
.application-card img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; }
.application-card h3, .team-member h3 {
  margin: 25px 0 8px;
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.application-card p { margin: 0; color: #4a4642; line-height: 1.6; }

.team-list { display: grid; gap: 52px; max-width: 900px; }
.team-member { padding-bottom: 50px; border-bottom: 1px solid #dedbd8; }
.team-member:last-child { padding-bottom: 0; border-bottom: 0; }
.team-member .role {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.team-member h3 { margin-top: 7px; font-size: 21px; }
.team-member p:not(.role) { margin: 12px 0 0; }

.content--contact { min-height: 440px; text-align: center; }
.content--contact h2 { margin-bottom: 24px; }
.content--contact p { margin: 0; }
.email-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  text-underline-offset: 5px;
}
.back-to-top {
  display: block;
  width: max-content;
  margin: 70px auto 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-to-top:hover, .back-to-top:focus-visible { color: var(--teal-dark); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 120px;
  padding: 32px clamp(24px, 5vw, 72px);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  :root { --header-height: 82px; }
  .site-header, .site-header.is-scrolled { height: 82px; padding: 8px 20px; background: rgba(32, 26, 22, .92); }
  .brand img, .site-header.is-scrolled .brand img { width: 66px; height: 66px; }
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: #fff; transition: transform .25s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 100px 30px 50px;
    background: rgba(32, 26, 22, .985);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { font-size: 17px; }
  .hero, .hero--about { min-height: 72vh; background-attachment: scroll; }
  .hero__content--intro { padding-top: 60px; }
  .hero__label { font-size: 29px; }
  .content { width: min(100% - 40px, 620px); padding: 66px 0 76px; }
  h2 { margin-bottom: 28px; }
  .application-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 44px; }
  .application-card h3 { margin-top: 19px; }
  .team-list { gap: 38px; }
  .team-member { padding-bottom: 37px; }
  .content--contact { min-height: 360px; }
  .site-footer { flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
