/* ==========================================================================
   CPHS.group — site stylesheet
   Design "2a": dark, sober, photo hero, red accent, hairlines instead of
   boxes. Fonts: Sora + IBM Plex Mono.
   ========================================================================== */

:root {
  --bg: #0d0e12;
  --line: #26272e;
  --text: #eceae7;
  --body: #c9c6c0;
  --muted: #85827c;
  --faint: #55535c;
  --red: #d12d40;
  --font-sans: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad-x: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* mono eyebrow labels */
.kicker {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.kicker-red { color: var(--red); }

.section-title {
  font-size: clamp(30px, 3.6vw, 38px);
  margin-bottom: 18px;
}

.lead {
  color: var(--body);
  max-width: 740px;
}

/* ------------------------------------------------------------ navigation */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 14, 18, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 32px; width: auto; }
.nav-brand span { font-weight: 600; font-size: 16px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 400;
  color: #d5d2cd;
  flex-wrap: wrap;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #c90035; }

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

.hero {
  position: relative;
  min-height: clamp(560px, 96svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 14, 18, 0.45) 0%,
    rgba(13, 14, 18, 0.05) 38%,
    rgba(13, 14, 18, 0.6) 64%,
    var(--bg) 100%
  );
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(40px, 7vh, 64px);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.08;
}
.hero p {
  margin-top: 24px;
  font-size: clamp(15.5px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--body);
  max-width: 640px;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(48px, 7vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

/* intro: text | guiding questions */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 72px);
}
.intro-grid > div > p:not(.kicker) { color: var(--body); }

.question {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.question:last-child { border-bottom: none; }
.question p { font-weight: 400; font-size: 14.5px; line-height: 1.55; }
.q-icon {
  flex: none;              /* don't shrink when the text needs room */
  align-self: center;      /* don't stretch to the row height */
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* focus: two columns split by a hairline */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(28px, 4.5vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
}
.focus-divider { background: var(--line); }
.focus-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 10px;
}
.focus-col h3 { font-size: 23px; margin-bottom: 14px; }
.focus-col > p { font-size: 14px; color: var(--body); margin-bottom: 22px; }
.focus-img {
  float: left;
  width: 40%;
  max-width: 240px;
  margin: 4px 18px 10px 0;
}
.focus-label {
  clear: both;           /* list starts below the image if it is taller than the text */
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.dash-list { display: flex; flex-direction: column; gap: 10px; }
.dash-list li {
  display: flex;
  gap: 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
}
.dash-list li::before { content: "—"; color: var(--red); flex: none; }

/* ---------------------------------------------------------------- people */

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 48px;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.person img,
.person .person-initials {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  filter: grayscale(0.35);
  transition: filter 0.3s ease;
}
.person:hover img { filter: grayscale(0); }
.person .person-initials {
  background: #1c1d24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 30px;
  color: var(--muted);
  filter: none;
}
.person h3 { font-weight: 400; font-size: 16px; letter-spacing: 0; }
.person .person-role {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.person.is-lead img {
  box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px var(--red);
}
.person.is-lead h3 { font-weight: 600; }
.person.is-lead .person-role {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------------------------------------------------------- publications */

.pub-year {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 48px;
}
.pub-year + .pub-year { margin-top: 32px; }
.pub-year-label {
  font-weight: 600;
  font-size: 22px;
  color: var(--red);
  letter-spacing: 0;
}
.pub {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.pub:first-child { padding-top: 0; }
.pub-title {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.pub-meta {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: break-word;
}
.pub-meta a { color: var(--body); text-decoration: underline; }
.pub-empty {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  padding: 6px 0 22px;
}

/* ------------------------------------------------------------ contact */

.contact-lead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  font-weight: 300;
  max-width: 720px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--red);
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  background: none;
  font-family: var(--font-sans);
}
.btn:hover { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- footer */

.footer { padding-top: 56px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-h {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-address {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 340px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-weight: 400;
  font-size: 13px;
  color: var(--body);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 22px;
}
.footer-partners img {
  width: 140px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-partners a:hover img { opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

/* ------------------------------------------------------ reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------- contact page */

.page-head {
  padding: 140px 0 20px;
}
.form-panel { max-width: 680px; margin-top: 28px; }
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: none;
  border: 1px solid var(--line);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15.5px;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.legal-block { max-width: 680px; color: var(--body); }
.legal-block a { color: var(--text); text-decoration: underline; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-divider { height: 1px; width: 100%; margin: 40px 0; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .pub-year { grid-template-columns: 1fr; gap: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-partners { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .nav-inner { padding-top: 14px; padding-bottom: 14px; }
  .nav-links { font-size: 13px; gap: 14px; }
  .people-grid { grid-template-columns: 1fr; }
  .person { flex-direction: row; text-align: left; }
  .person img, .person .person-initials { width: 84px; height: 84px; }
}
