/* Airborne Interactive — static site stylesheet */

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/source-sans-pro-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/source-sans-pro-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-pro-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f0f4f4;
  --text: #263333;
  --muted: rgba(38, 51, 51, 0.8);
  --heading: rgba(38, 51, 51, 0.75);
  --accent: #9534bc;
  --max: 1100px;
  --gutter: 34px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.wrap {
  max-width: calc(var(--max) + 2 * 17px);
  margin: 0 auto;
  padding: 0 17px;
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 70px;
  padding-bottom: 0;
}

.site-header .inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 101px;
  border-bottom: 2px solid var(--accent);
}

.logo { display: block; line-height: 0; }
.logo img { width: 161px; height: 39px; }

.main-nav ul {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 20px;
}

.main-nav a {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.menu-toggle { display: none; }

/* ---------- Main content ---------- */

main.wrap { padding-top: 100px; padding-bottom: 98px; }

main p { margin: 0 0 25.6px; }
main p:last-child { margin-bottom: 0; }

.section-title {
  margin: 0 0 8px;
  font-size: 27.2px;
  font-weight: 700;
  line-height: 40.8px;
  letter-spacing: 1px;
  color: var(--heading);
}

.subtitle { margin-bottom: 25.6px; }

.hero { width: 100%; height: auto; aspect-ratio: 1100 / 359; object-fit: cover; margin-bottom: 112px; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}

.cols-center { align-items: center; margin-top: 7px; margin-bottom: 120px; }

/* People */
.people { display: grid; gap: 34px; padding-left: 94px; }
.person {
  display: grid;
  grid-template-columns: 344px 1fr;
  gap: 34px;
  align-items: start;
}
.person img { width: 344px; height: 413px; object-fit: cover; }
.person h2 {
  margin: 0 0 8px;
  font-size: 27.2px;
  font-weight: 300;
  line-height: 40.8px;
  letter-spacing: 1px;
  color: var(--heading);
}
.person p { font-size: 15px; }

/* Contact */
.office + .office { margin-top: 85px; }
.office .cols { grid-template-columns: 440px 1fr; margin-top: 24px; }
.office .cols p { margin-top: 12px; font-size: 15px; }
.map {
  width: 100%;
  height: 234px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Slideshow ---------- */

.slideshow { position: relative; }

.slides {
  position: relative;
  overflow: hidden;
  background: #dfe5e5;
}
.slides.ratio-16-9 { aspect-ratio: 16 / 9; }
.slides.ratio-5-3 { aspect-ratio: 5 / 3; }

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.is-active { opacity: 1; }

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.slide-nav svg { width: 14px; height: 26px; }
.slide-nav.prev { left: 0; }
.slide-nav.next { right: 0; }
.slideshow:hover .slide-nav,
.slide-nav:focus-visible { opacity: 1; }
.slide-nav:hover { background: rgba(0, 0, 0, 0.35); }

.thumbs {
  display: flex;
  gap: 5px;
  margin-top: 15px;
  padding: 5px 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 auto;
  height: 80px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.thumb img { height: 80px; width: auto; }
.thumb:hover, .thumb.is-active { opacity: 1; }

/* ---------- Footer ---------- */

.site-footer .inner {
  border-top: 2px solid var(--accent);
  padding: 60px 0;
}
.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer strong { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .people { padding-left: 0; }
  .office .cols { grid-template-columns: 1fr 1.4fr; }
}

@media (max-width: 640px) {
  .site-header .wrap { padding-top: 0; display: block; }

  .menu-toggle {
    display: block;
    width: 100%;
    padding: 12px 0 10px;
    border: 0;
    border-bottom: 2px solid var(--accent);
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .site-header .inner {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 30px 0;
  }
  .logo { order: 2; }

  .main-nav { order: 0; width: 100%; display: none; }
  .main-nav.is-open { display: block; margin-bottom: 24px; }
  .main-nav ul { margin: 0; flex-direction: column; align-items: center; gap: 10px; }

  main.wrap { padding-top: 15px; padding-bottom: 60px; }
  .hero { margin-bottom: 60px; }
  .subtitle { margin-bottom: 30px; }

  .cols,
  .office .cols { grid-template-columns: 1fr; gap: 30px; }

  .cols .slideshow { order: -1; }
  .cols-center { margin-bottom: 0; }

  .person { grid-template-columns: 1fr; gap: 16px; }
  .person img { width: 100%; height: auto; aspect-ratio: 344 / 413; }

  .slide-nav { opacity: 1; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
