:root {
  --rust: #ad4714;
  --ink: #3e3739;
  --muted: #7a7173;
  --line: #e7e1dd;
  --bg: #fff;
  --max: 1100px;
  --read: 760px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.65 "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; color: var(--rust); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; color: var(--ink); font-weight: 400; }
p { margin: 0 0 1em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--max); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 36px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--rust); }
.nav .logo { border: 0; padding: 0; }
.nav .logo img { width: 64px; height: 64px; border-radius: 50%; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
  .nav .logo { order: -1; flex-basis: 100%; display: flex; justify-content: center; }
  .nav .logo img { width: 52px; height: 52px; }
}

main { min-height: 60vh; }

/* home */
.slideshow { position: relative; max-width: var(--max); margin: 28px auto 0; padding: 0 20px; aspect-ratio: 16/9; max-height: 68vh; }
.slide { position: absolute; inset: 0 20px; margin: 0; opacity: 0; transition: opacity .7s; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 16px; color: #fff; font-size: 15px; line-height: 1.4;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.slideshow button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(255,255,255,.55); color: #333; font-size: 30px; cursor: pointer; }
.slideshow .prev { left: 20px; } .slideshow .next { right: 20px; }
.slideshow button:hover { background: rgba(255,255,255,.9); }
.tagline { text-align: center; max-width: var(--max); margin: 48px auto 36px; padding: 0 20px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cards { max-width: var(--max); margin: 0 auto 64px; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { text-decoration: none; color: var(--ink); text-align: center; }
.card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; margin-bottom: 10px; transition: opacity .2s; }
.card:hover img { opacity: .85; }
.card span { display: block; color: var(--rust); font-size: 1.15rem; }
.card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 4px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }

/* inner pages */
.page { max-width: var(--read); margin: 0 auto; padding: 40px 20px 72px; }
.page-title { text-align: center; margin-bottom: 1em; }
.hero { max-width: none; margin: 0 -20px 40px; position: relative; }
.page.has-hero { padding-top: 0; }
.hero-img img { width: 100%; height: 38vh; min-height: 220px; object-fit: cover; }
.hero h1 { position: absolute; inset: auto 0 0 0; margin: 0; padding: 40px 24px 20px; color: #fff; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.page > .hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.text h3 { margin-top: 1.2em; }
.text h3 strong { font-weight: 600; }
.text + .text, .text + figure, figure + .text { margin-top: 0; }
.page > .text:first-child h1 { margin-bottom: .4em; }
.page > .text, .page > .gallery, .page > figure, .page > .video, .page > .video-grid, .page > .logos, .page > .person { margin-bottom: 1.6em; }
.back { text-align: right; font-size: 16px; }
figure { margin: 0 0 1.4em; }
figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 8px; }
.page > figure img, .text figure img { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; max-width: var(--max); margin-left: 50%; transform: translateX(-50%); width: min(var(--max), 100vw - 40px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.video { position: relative; aspect-ratio: 16/9; margin-bottom: 1.4em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: 16px; }
.video-grid .video { margin: 0; }

/* team */
.person { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.person figure { margin: 0; }
.person img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; }
.person .text p, .person .text h3 { margin-bottom: .5em; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; text-align: center; } .person img { margin: 0 auto; } }

/* partners */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 24px; align-items: center; max-width: var(--max); width: min(var(--max), 100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
.logos figure { margin: 0; background: #fff; padding: 8px; }
.logos img { max-height: 90px; width: 100%; object-fit: contain; }

/* footer */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 36px 20px 48px; font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--rust); }
.join, .fine { color: var(--muted); margin: 0 0 6px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; flex-direction: column; }
.lb.open { display: flex; }
.lb img { max-height: 84vh; max-width: 94vw; object-fit: contain; }
.lb p { color: #ddd; font-size: 14px; margin: 12px 0 0; text-align: center; }
