:root {
  --ink: #18201e;
  --ink-soft: #4a5551;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --line: #d9d5c8;
  --cedar: #8a5539;
  --moss: #3e6654;
  --steel: #376b7b;
  --clay: #c47a58;
  --shadow: 0 20px 60px rgba(24, 32, 30, 0.16);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(24, 32, 30, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text span {
  font-size: 0.78rem;
  color: currentColor;
  opacity: 0.74;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 32, 30, 0.9) 0%, rgba(24, 32, 30, 0.7) 38%, rgba(24, 32, 30, 0.2) 100%),
    linear-gradient(0deg, rgba(24, 32, 30, 0.58) 0%, rgba(24, 32, 30, 0.04) 48%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 40px));
  margin: 0 0 clamp(42px, 8vw, 92px) clamp(20px, 6vw, 86px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro-grid h2,
.split-grid h2,
.contact-grid h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 7.2rem);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  font-weight: 800;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.button.secondary {
  color: var(--white);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section,
.content-section,
.contact-section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.intro-grid,
.split-grid,
.contact-grid,
.writing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 8vw, 96px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.split-grid h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.intro-copy p,
.section-heading p,
.publication-list h3,
.timeline-item p,
.research-item p,
.branch-grid h3 {
  color: var(--ink-soft);
  font-size: 1rem;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.quick-facts div {
  min-height: 128px;
  padding: 20px;
  background: var(--white);
}

.quick-facts span,
.publication-list span,
.timeline-item span,
.branch-grid span,
.work-card-body p {
  display: block;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.muted {
  background: var(--white);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 44px;
}

.section-heading.compact {
  max-width: 780px;
}

.section-heading.flush {
  margin-bottom: 0;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.research-item {
  min-height: 292px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.research-item span {
  color: var(--cedar);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 650;
}

.research-item h3,
.work-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  line-height: 1.22;
}

.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.work-image {
  min-height: 230px;
  aspect-ratio: 4 / 3;
}

.image-model {
  background:
    linear-gradient(135deg, rgba(196, 122, 88, 0.26), transparent 42%),
    repeating-linear-gradient(90deg, rgba(24, 32, 30, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #f4efe5, #d7e0d8);
}

.image-map {
  background:
    radial-gradient(circle at 28% 38%, rgba(55, 107, 123, 0.45) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 62%, rgba(62, 102, 84, 0.35) 0 13%, transparent 14%),
    repeating-linear-gradient(45deg, rgba(24, 32, 30, 0.1) 0 1px, transparent 1px 18px),
    #f2f0e8;
}

.image-classroom {
  background:
    linear-gradient(90deg, rgba(138, 85, 57, 0.3), transparent 45%),
    repeating-linear-gradient(0deg, rgba(24, 32, 30, 0.14) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #ece7db, #d8e1e0);
}

.work-card-body {
  padding: 22px;
}

.work-card-body span {
  color: var(--ink-soft);
}

.split-section {
  background:
    linear-gradient(90deg, rgba(62, 102, 84, 0.12), transparent 58%),
    var(--paper);
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline-item {
  padding: 24px;
  background: var(--white);
}

.timeline-item p {
  margin: 0;
}

.publication-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.publication-list article {
  padding: 26px;
  background: var(--paper);
}

.publication-list h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.branches {
  background: var(--ink);
  color: var(--white);
}

.branches .section-kicker {
  color: #e6ad8a;
}

.branches .section-heading h2 {
  color: var(--white);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.branch-grid article {
  min-height: 190px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.06);
}

.branch-grid h3 {
  color: rgba(255, 253, 248, 0.84);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 650;
  line-height: 1.16;
}

.contact-section {
  background: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-panel a,
.contact-panel span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  border-color: var(--moss);
  color: var(--moss);
}

.contact-panel span {
  color: var(--ink-soft);
  background: rgba(217, 213, 200, 0.3);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 16px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    gap: 12px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(24, 32, 30, 0.9), rgba(24, 32, 30, 0.45)),
      linear-gradient(0deg, rgba(24, 32, 30, 0.62), rgba(24, 32, 30, 0.08));
  }

  .intro-grid,
  .split-grid,
  .contact-grid,
  .writing-grid,
  .research-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts,
  .branch-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text span {
    display: none;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    margin-left: 16px;
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .intro-section,
  .content-section,
  .contact-section {
    padding: 56px 0;
  }

  .quick-facts div,
  .research-item {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
