:root {
  --brand: #45030f;
  --brand-hover: #6b0f22;
  --cream: #fcf3e4;
  --ink: #1d1d1d;
  --grey: #8d8d8d;
  --line: #e6e4e1;
  --tint: #f3f2f0;
  --stripe: #f8eeed;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --nav-h: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--nav-h);
  background: #fff;
  color: var(--ink);
  font: 18px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(250, 250, 250, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { width: auto; height: 30px; }
.nav nav { display: flex; gap: 30px; }
.nav nav a { text-decoration: none; font-size: 16px; color: #222; }
.nav nav a:hover { color: var(--brand); }
.nav nav a[aria-current="page"] { font-weight: 700; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  min-height: 520px;
  overflow: hidden;
  background: #222;
  color: #fff;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 65%);
}
.hero-text { position: absolute; left: 60px; right: 60px; bottom: 60px; z-index: 1; }
.hero h1 { margin: 0 0 14px; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; }
.hero p { margin: 0; max-width: 1080px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }

.photo-credit { position: absolute; z-index: 1; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.6); text-decoration: none; }
.photo-credit:hover { color: #fff; }

/* Stand-in until real photos arrive */
.photo-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #2a2a2a 0 22px, #303030 22px 44px);
  color: rgba(255,255,255,.45);
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
}
.photo-placeholder span { transform: translateY(-80px); }

/* ---------- Home intro ---------- */
.intro { max-width: 960px; margin: 96px auto 110px; padding: 0 24px; }
.intro .mission {
  margin: 0 0 56px; text-align: center;
  font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35;
  color: var(--grey);
}
.intro h2 { margin: 0 0 10px; font-size: 32px; }
.intro p { margin: 0; font-size: 20px; }

/* ---------- Generic sections ---------- */
.section { max-width: 1040px; margin: 0 auto; padding: 72px 24px; }
.section-title { margin: 0 0 44px; text-align: center; font-size: clamp(28px, 3vw, 38px); color: #2a2a2a; }

/* ---------- Accordion (About) ---------- */
.accordion { max-width: 920px; margin: 0 auto; }
.accordion details { background: var(--tint); margin-bottom: 14px; }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 36px; cursor: pointer; list-style: none;
  font-size: clamp(20px, 2vw, 24px); font-weight: 700;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .panel { padding: 0 36px 28px; font-size: 18px; }
.accordion .panel p { margin: 0 0 12px; }
.accordion .panel p:last-child { margin: 0; }

/* ---------- "What we do" scroll slides ---------- */
.slides { position: relative; height: calc(var(--count, 2) * 100vh); background: #0e1014; color: #fff; }
.slides-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide-media { position: absolute; inset: 64px 0; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s ease; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,.82) 0%, rgba(10,12,16,.5) 45%, rgba(10,12,16,.15) 100%);
}
.slide-text { position: absolute; z-index: 1; left: 80px; top: 50%; transform: translateY(-50%); max-width: 440px; }
.slide-kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.slide-text h2 { margin: 0 0 18px; font-size: clamp(36px, 4vw, 52px); font-weight: 400; line-height: 1.08; }
.slide-text p { margin: 0; font-size: 16px; line-height: 1.6; opacity: .85; }
.slides-progress {
  position: absolute; z-index: 2; top: 24px; left: 64px;
  display: flex; align-items: center; gap: 14px; font-size: 13px;
}
.slides-progress span { opacity: .5; transition: opacity .4s; }
.slides-progress span.is-active { opacity: 1; font-weight: 700; }
.slides-progress i { position: relative; width: 120px; height: 1px; background: rgba(255,255,255,.25); }
.slides-progress b { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .55;
}

/* ---------- People ---------- */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 64px; max-width: 728px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.people li { width: 200px; }
.people img { width: 200px; height: 200px; object-fit: cover; }
.people h3 { margin: 14px 0 2px; font-size: 18px; }
.people p { margin: 0; font-size: 14px; line-height: 1.35; }

.people-sm { max-width: 784px; gap: 36px 48px; }
.people-sm li { width: 160px; }
.people-sm img { width: 160px; height: 160px; }

/* ---------- Recruitment ---------- */
.pathways { max-width: 860px; margin: 0 auto; }
.pathways p { margin: 0; font-size: 20px; }
.btn {
  display: block; width: 420px; max-width: 100%;
  margin: 34px auto 56px; padding: 15px 20px;
  background: var(--brand); color: var(--cream); text-align: center; text-decoration: none;
  font-size: 15px; font-weight: 700;
  transition: background .2s;
}
.btn:hover { background: var(--brand-hover); }

.schedule { width: 100%; max-width: 780px; margin: 0 auto; border-collapse: collapse; font-size: 15px; font-weight: 700; }
.schedule td { padding: 12px 16px; }
.schedule tr:nth-child(even) { background: var(--stripe); }
.note { max-width: 640px; margin: 28px auto 0; font-size: 14px; font-style: italic; color: #444; }

/* ---------- Alumni ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin: 0 0 80px; padding: 0; list-style: none; }
.logo-grid li {
  aspect-ratio: 5 / 3; display: grid; place-items: center;
  border: 1px dashed #cfcac3; background: #faf9f7;
  color: #a9a39a; font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer { background: var(--brand); color: var(--cream); padding: 56px 64px 40px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: 20px; font-weight: 700; line-height: 1.1; }
.footer-brand img { width: auto; height: 40px; }
.footer-links { display: flex; flex: 1; justify-content: space-between; max-width: 900px; }
.footer-links > a, .footer-col a:first-child { font-weight: 700; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 56px; font-size: 14px; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .nav { padding: 0 16px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: #222; transition: transform .2s, opacity .2s; }
  .nav nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fafafa; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .nav-open .nav nav { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-text { left: 16px; right: 16px; bottom: 36px; }
  .intro { margin: 64px auto 72px; padding: 0 16px; }
  .section { padding: 56px 16px; }
  .accordion summary { padding: 20px; }
  .accordion .panel { padding: 0 20px 22px; }

  .slide-media { inset: 56px 0; }
  .slide-text { left: 16px; right: 16px; }
  .slides-progress { left: 16px; }

  .people { gap: 32px 20px; }
  .people li { width: calc(50% - 10px); max-width: 160px; }
  .people img { width: 100%; height: auto; aspect-ratio: 1; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .footer { padding: 44px 16px 32px; }
  .footer-top { flex-direction: column; }
  .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-col { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 40px; }
}

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