/* 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: #f6f7fb;
  --surface: #ffffff;
  --text: #18202e;
  --muted: #5a6376;
  --line: #e3e6ee;
  --accent: #9534bc;
  --accent-strong: #7b2a9e;
  --accent-soft: #f3e9f8;
  --ink: #111726;
  --ink-text: #c9cede;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 23, 38, .06), 0 8px 24px rgba(17, 23, 38, .06);
  --shadow-lg: 0 2px 4px rgba(17, 23, 38, .06), 0 20px 48px rgba(17, 23, 38, .12);

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
strong { font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo { display: block; line-height: 0; flex: none; }
.logo img { width: 132px; height: auto; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(17, 23, 38, .05); }
.main-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }

.main-nav .nav-cta { margin-left: 8px; }
.main-nav .nav-cta a {
  color: #fff;
  background: var(--text);
}
.main-nav .nav-cta a:hover { background: var(--accent-strong); color: #fff; }

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; transition: margin .15s ease; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Typography helpers ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 46ch; }

.section-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; margin-bottom: 12px; }

/* ---------- Layout ---------- */

main { padding-bottom: clamp(64px, 8vw, 112px); }

.section { margin-top: clamp(56px, 8vw, 104px); }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 60ch; }

.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); font-weight: 700; margin-bottom: 16px; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.prose p { font-size: 1.1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  margin-top: clamp(16px, 3vw, 32px);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  min-height: clamp(440px, 62vh, 600px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 23, 38, .92) 0%, rgba(17, 23, 38, .7) 40%, rgba(17, 23, 38, .1) 75%),
    linear-gradient(0deg, rgba(56, 20, 74, .45) 0%, rgba(56, 20, 74, 0) 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 64px);
  max-width: 680px;
}
.hero .eyebrow { color: #e0b9f2; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.25rem); font-weight: 700; margin-bottom: 18px; }
.hero .lede { color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Statement */
.statement {
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 34ch;
  color: var(--text);
}
.statement strong { font-weight: 600; color: var(--accent-strong); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature { padding: 24px; }
.feature .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* Locations */
.locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.location { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.location .tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.location h3 { font-size: 1.5rem; font-weight: 700; }
.location .where { color: var(--muted); margin-bottom: 12px; }
.location p:not(.where) { margin-top: auto; }

/* ---------- People ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 820px;
}
.person { overflow: hidden; }
.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
}
.person .meta { padding: 20px 24px 24px; }
.person h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.person .role { color: var(--accent-strong); font-weight: 600; margin: 0; }
.person .place { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.office { overflow: hidden; display: flex; flex-direction: column; }
.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border: 0;
  display: block;
  filter: grayscale(.6) contrast(1.05);
  background: var(--line);
}
.office .meta { padding: 24px 28px 28px; }
.office h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 12px; }

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

.slideshow { position: relative; }
.slideshow:focus-visible { outline-offset: 6px; border-radius: var(--radius); }

.slides {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe3ea;
  box-shadow: var(--shadow-lg);
}
.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 .6s ease;
}
.slide.is-active { opacity: 1; }

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(17, 23, 38, .2);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.slide-nav svg { width: 9px; height: 16px; }
.slide-nav svg path { stroke-width: 2.5; }
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }
.slideshow:hover .slide-nav,
.slide-nav:focus-visible { opacity: 1; }
.slide-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 auto;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, border-color .2s ease;
}
.thumb img { height: 100%; width: auto; }
.thumb:hover { opacity: .9; }
.thumb.is-active { opacity: 1; border-color: var(--accent); }

.slideshow-wide { max-width: 980px; }

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

.site-footer {
  background: var(--ink);
  color: var(--ink-text);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer p { color: var(--ink-text); max-width: 36ch; }
.site-footer h2 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8d95aa;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  padding-bottom: 28px;
  font-size: .85rem;
  color: #8d95aa;
}
.footer-base p { color: inherit; max-width: none; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; }

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

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .cols .slideshow { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .header-bar { flex-wrap: wrap; gap: 0; }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before,
  .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

  .main-nav { display: none; width: 100%; padding: 4px 0 16px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
  .main-nav .nav-cta { margin: 8px 0 0; }
  .main-nav .nav-cta a { text-align: center; }

  .hero { min-height: 520px; border-radius: var(--radius); }
  .hero::before {
    background: linear-gradient(0deg, rgba(17, 23, 38, .95) 0%, rgba(17, 23, 38, .75) 50%, rgba(17, 23, 38, .2) 100%);
  }

  .locations,
  .offices { grid-template-columns: 1fr; }

  .slide-nav { opacity: 1; width: 38px; height: 38px; }
  .thumb { height: 52px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

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