/* Professor Peter Barlow — "Modern Royal" design
   Navy + antique gold from the name logo, on white and warm stone. */
:root {
  --white: #ffffff;
  --stone: #f4f2ee;
  --navy: #0b1257;
  --navy-deep: #070b3a;
  --ink: #111426;
  --muted: #62657a;
  --gold: #a87717;
  --gold-soft: #e2c27f;
  --line: #e7e4dd;
  --radius: 22px;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --accent: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lbl { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.h2 { font-family: var(--caps); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; color: var(--navy); margin-top: 12px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav .ext span { color: var(--gold); font-size: 12px; margin-left: 2px; }
.nav .pill { background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 999px; }
.nav .pill:hover { background: var(--navy-deep); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Home hero (split) ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.hero-text { padding: 96px 64px 88px max(20px, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-family: var(--caps); font-weight: 500; font-size: clamp(40px, 4.6vw, 62px); line-height: 1.08; letter-spacing: .01em; margin: 18px 0 18px; }
.hero h1 small { display: block; font-family: var(--accent); font-style: italic; font-weight: 500; font-size: .48em; color: var(--gold); letter-spacing: 0; margin-top: 10px; }
.hero .lead { font-size: 18.5px; font-weight: 300; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-pic { position: relative; background: var(--navy); overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.05); }
.badge { position: absolute; left: 36px; bottom: 36px; right: 36px; max-width: 380px; background: #fff; padding: 18px 24px; border-left: 3px solid var(--gold); }
.badge b { display: block; color: var(--navy); font-weight: 600; }
.badge span { font-size: 14px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 38px 28px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--caps); font-weight: 500; font-size: 38px; line-height: 1.1; color: var(--navy); }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding-top: 0; }
.section-stone { background: var(--stone); }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; }
.sec-top p { max-width: 460px; color: var(--muted); margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--stone); border-radius: var(--radius); padding: 34px; }
.section-stone .card { background: #fff; }
.card .n { font-family: var(--caps); color: var(--gold); font-size: 15px; }
.card h3 { font-size: 21px; font-weight: 600; line-height: 1.35; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- News list ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news li { display: grid; grid-template-columns: 150px 1fr 120px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time { color: var(--gold); font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }
.news h3 { font-size: 21px; font-weight: 500; line-height: 1.35; }
.news p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.news .src { font-size: 14px; color: var(--muted); text-decoration: none; text-align: right; white-space: nowrap; }
.news .src:hover { color: var(--navy); }

/* ---------- Media row (home) ---------- */
.mrow { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.mrow > * { border-radius: 18px; overflow: hidden; position: relative; display: block; }
.mrow img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.mrow .v img { aspect-ratio: auto; object-position: left center; }
.mrow a:hover img { transform: scale(1.03); }
.mrow .play { position: absolute; left: 22px; top: 22px; background: #fff; color: var(--navy); padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* ---------- Alumni ---------- */
.alumni-band { background: var(--navy); color: #fff; padding: 92px 0; }
.alumni-band .h2 { color: #fff; }
.alumni-band .lbl { color: var(--gold-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; list-style: none; padding: 0; }
.chips li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 20px; font-size: 15px; }
.chips b { color: var(--gold-soft); font-weight: 500; }

/* ---------- Library panel ---------- */
.panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; background: var(--stone); border-radius: 28px; padding: 56px 60px; }
.panel .h2 { margin-bottom: 8px; }
.panel p { color: var(--muted); margin: 0; }

/* ---------- Page header ---------- */
.page-head { padding: 92px 0 72px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--caps); font-weight: 500; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; margin-top: 14px; }
.page-head p { font-family: var(--accent); font-style: italic; font-size: 26px; color: var(--gold); margin: 10px 0 0; }

/* ---------- About ---------- */
.bio { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: start; }
.bio img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); filter: grayscale(.15); position: sticky; top: 120px; }
.bio-text p { font-size: 19px; line-height: 1.75; color: var(--ink); font-weight: 300; }
.bio-text p:first-of-type { font-family: var(--accent); font-size: 28px; line-height: 1.4; color: var(--navy); font-weight: 500; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.roles li { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.roles b { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
.alumni-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.alumni-list li { background: #fff; border-radius: 16px; padding: 20px 22px; }
.alumni-list b { display: block; color: var(--navy); font-weight: 600; font-size: 16.5px; }
.alumni-list span { font-size: 14px; color: var(--muted); }

/* ---------- Media page ---------- */
.video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { cursor: pointer; padding: 0; background: #000 center/cover no-repeat; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 56% 50%/38px no-repeat;
  box-shadow: 0 0 0 8px rgba(255,255,255,.35); transition: transform .2s;
}
.video button:hover::after { transform: scale(1.06); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; cursor: zoom-in; background: var(--navy); }
.gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 3; }
.gallery figure:nth-child(n+3) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; background: rgba(255,255,255,.95); color: var(--navy); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.lightbox { position: fixed; inset: 0; background: rgba(7,11,58,.95); display: none; place-items: center; z-index: 100; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; font-size: 16px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 34px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer img { height: 58px; width: auto; margin-bottom: 14px; }
.site-footer p { color: var(--muted); max-width: 340px; }
.site-footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.social { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 18px; height: 18px; fill: var(--navy); }
.copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--muted); font-size: 13px; }

/* ---------- Small layout helpers (kept out of HTML for a strict CSP) ---------- */
.alumni-band .more { margin: 34px 0 0; }
.roles-grid { gap: 0 48px; }
.page-head.notfound { padding: 130px 0; border: 0; }
.btn-row.spaced { margin-top: 34px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 72px 20px 64px; }
  .hero-pic { height: 520px; }
  .bio { grid-template-columns: 1fr; gap: 48px; }
  .bio img { position: static; max-width: 420px; }
  .alumni-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .pill { margin-top: 14px; text-align: center; border-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid3, .grid2, .mrow { grid-template-columns: 1fr; }
  .mrow img { aspect-ratio: 4/3; }
  .sec-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .news li { grid-template-columns: 1fr; gap: 4px; }
  .news .src { text-align: left; margin-top: 6px; }
  .panel { grid-template-columns: 1fr; padding: 36px 28px; }
  .roles li { grid-template-columns: 1fr; gap: 2px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(n) { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .header-inner { height: 74px; }
  .brand img { height: 44px; }
  .section { padding: 76px 0; }
  .section-tight { padding-top: 0; }
  .hero-pic { height: 420px; }
  .badge { left: 16px; right: 16px; bottom: 16px; }
  .stats div { padding: 26px 18px; }
  .stats strong { font-size: 28px; }
  .alumni-list { grid-template-columns: 1fr; }
  .bio-text p:first-of-type { font-size: 24px; }
  .video button::after { width: 72px; height: 72px; margin: -36px 0 0 -36px; background-size: 30px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
