/* Oxford Research: one dark page in the brand navy, gold for labels and
   numbers, serif headings to match the wordmark. */
:root {
  --navy: #0E1B31;
  --navy-deep: #091324;
  --ink: #EEF2F7;
  --muted: rgba(238, 242, 247, 0.64);
  --faint: rgba(238, 242, 247, 0.42);
  --rule: rgba(238, 242, 247, 0.13);
  --gold: #C9A04A;
  --max: 1080px;
  --gutter: clamp(20px, 5vw, 60px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

/* Header */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
}
.brand img { display: block; height: 44px; width: auto; }
.menu { display: flex; gap: 34px; }
.menu a { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); transition: color 0.2s ease; }
.menu a:hover, .menu a:focus-visible { color: var(--ink); }

/* Hero: the Radcliffe Camera at night under a navy shade, light over the dome
   and darkest at the foot where the text sits */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__art {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 19, 36, 0.70) 0%, rgba(9, 19, 36, 0.12) 24%, rgba(9, 19, 36, 0.30) 46%, rgba(9, 19, 36, 0.86) 74%, var(--navy) 100%),
    url("assets/radcliffe-night-1920.jpg") center 32% / cover no-repeat,
    var(--navy-deep);
}
.hero__inner {
  position: relative; width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 var(--gutter) clamp(118px, 17vh, 170px); text-align: center;
  text-shadow: 0 2px 22px rgba(9, 19, 36, 0.55);
}
.kicker {
  margin: 0 0 24px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
h1 {
  margin: 0 auto 24px; max-width: 18ch;
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance;
}
.hero__lede { margin: 0 auto; max-width: 56ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(238, 242, 247, 0.9); }
.cue {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}
.cue i { width: 1px; height: 46px; background: linear-gradient(var(--faint), transparent); }

/* Sections */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.block + .block { border-top: 1px solid var(--rule); }
.label { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0 0 40px; max-width: 24ch; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.14; letter-spacing: -0.005em; }
.lead { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
#about h2 { margin-bottom: 22px; }

/* Research: one row per project, the whole row a link */
.projects { display: grid; gap: 16px; }
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 56px; align-items: end;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--rule); border-left: 2px solid var(--gold);
  background: rgba(238, 242, 247, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.project:hover, .project:focus-visible { background: rgba(238, 242, 247, 0.06); border-color: rgba(201, 160, 74, 0.6); }
.project__tag { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.project h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.project__text { margin: 0; max-width: 60ch; font-size: 15.5px; color: var(--muted); }
.project__side { text-align: right; }
.project__stats { display: flex; justify-content: flex-end; gap: 32px; margin: 0 0 14px; }
.project__stats dt { font-size: 12.5px; color: var(--muted); }
.project__stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.project__more { font-size: 15px; font-weight: 600; color: var(--gold); }

/* Services: numbered rows */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li {
  display: grid; grid-template-columns: 56px minmax(200px, 310px) minmax(0, 1fr); gap: 8px 44px;
  padding: 30px 4px; border-bottom: 1px solid var(--rule);
  transition: padding-left 0.25s ease;
}
.services li:hover { padding-left: 14px; }
.services__n { padding-top: 6px; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); }
.services h3 { margin: 0; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.25; }
.services p { margin: 0; max-width: 54ch; font-size: 15.5px; color: var(--muted); }

/* Who we serve: three cells with hairline dividers */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid__cell { background: var(--navy); padding: 32px clamp(22px, 2.6vw, 40px); }
.grid__cell h3 { margin: 0 0 9px; font-size: 19px; }
.grid__cell p { margin: 0; max-width: 44ch; font-size: 15px; color: var(--muted); }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 30px var(--gutter); background: var(--navy-deep);
  font-size: 12.5px; color: var(--faint);
}
.foot img { display: block; border-radius: 5px; }
.foot__nav { display: flex; gap: 20px; margin-left: auto; }
.foot__nav a { color: var(--muted); transition: color 0.2s ease; }
.foot__nav a:hover, .foot__nav a:focus-visible, .foot__nav a[aria-current] { color: var(--ink); }

/* Text pages (disclaimer, terms, privacy): the header sits in the flow, not
   over a hero */
.top--page { position: static; }
.doc { min-height: calc(100vh - 210px); padding-top: clamp(24px, 4vw, 48px); }
.doc h1 { margin: 0 0 12px; max-width: none; font-size: clamp(32px, 4.4vw, 46px); }
.doc h2 { margin: 36px 0 10px; max-width: none; font-size: 21px; line-height: 1.3; }
.doc p { margin: 0 0 14px; max-width: 68ch; font-size: 16px; color: var(--muted); }
.doc a { color: var(--gold); border-bottom: 1px solid var(--rule); }
.doc a:hover { border-color: var(--gold); }

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 var(--gutter); text-align: center; }
.lost img { height: 52px; width: auto; }
.lost a { color: var(--gold); border-bottom: 1px solid var(--rule); }

@media (max-width: 760px) {
  .menu { display: none; }
  .brand img { height: 38px; }
  .services li { grid-template-columns: 1fr; gap: 4px; padding: 24px 4px; }
  .services li:hover { padding-left: 4px; }
  .services__n { padding-top: 0; }
  .services h3 { margin: 2px 0 6px; }
  .grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project__side { text-align: left; }
  .project__stats { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .services li, .services li:hover, .project { transition: none; }
}
