/* McNamara Group — design system
   Dark, editorial, image-led. Inspired by nasa.gov: black chrome,
   full-bleed hero, tile grids, mono eyebrows, generous scale. */

:root {
  --black: #06080c;
  --carbon: #0f1218;
  --slate: #171b23;
  --slate-2: #222733;
  --white: #ffffff;
  --paper: #f3f4f6;
  --paper-2: #e6e8ec;
  --ink: #0f1218;
  --ink-2: #4a5160;
  --ink-3: #656c79;
  --mist: #c9cfd9;
  --grey: #9aa2b0;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(15, 18, 24, 0.12);
  --blue: #4e90c3;
  --blue-bright: #7cc0ee;
  --blue-deep: #1f5f8f;
  --btn: #3576ab;

  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header: 4.5rem;
  --radius: 0.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 60;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--mist);
  max-width: 40rem;
}

.light .lede,
.light p {
  color: var(--ink-2);
}

.arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s var(--ease);
}

a:hover .arrow::after,
.arrow:hover::after {
  transform: translateX(4px);
}

/* Header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  background: rgba(6, 8, 12, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.solid,
body.nav-open .site-header {
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark b {
  color: var(--blue);
  font-weight: 800;
}

.wordmark span {
  font-weight: 500;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--blue);
}

.nav .btn {
  border-bottom: 0;
}

.menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn span:nth-child(1) { top: 1.05rem; }
.menu-btn span:nth-child(2) { top: 1.65rem; }

body.nav-open .menu-btn span:nth-child(1) { transform: translateY(0.3rem) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { transform: translateY(-0.3rem) rotate(-45deg); }

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--btn);
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.light .btn-outline {
  color: var(--ink);
  border-color: rgba(15, 18, 24, 0.4);
}

.light .btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header) + 4rem) 0 clamp(3rem, 8vh, 6rem);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.55) 0%, rgba(6, 8, 12, 0.1) 35%, rgba(6, 8, 12, 0.75) 80%, var(--black) 100%),
    linear-gradient(90deg, rgba(6, 8, 12, 0.55) 0%, rgba(6, 8, 12, 0) 60%);
}

.hero-content {
  max-width: 52rem;
}

.hero h1 {
  max-width: 12ch;
}

.hero .lede {
  margin-top: 1.5rem;
}

.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(var(--grey), transparent);
  animation: drip 2.2s var(--ease) infinite;
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Sections ---------------------------------------------------------- */
.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section.tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.dark {
  background: var(--black);
  color: var(--white);
}

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

.light {
  background: var(--paper);
  color: var(--ink);
}

.light .eyebrow {
  color: var(--blue-deep);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head > div {
  max-width: 44rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 1.1rem;
}

.light .section-head p {
  color: var(--ink-2);
}

.section-head .link {
  flex: none;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--blue-bright);
  padding-bottom: 0.4rem;
}

.light .section-head .link {
  color: var(--blue-deep);
}

/* Stats strip ------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats > div {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--line);
}

.stats > div + div {
  padding-left: 1.5rem;
}

.stats > div:last-child {
  border-right: 0;
}

.stats .num {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}

.stats .cap {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--grey);
}

/* Tiles ------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  isolation: isolate;
  background: var(--slate);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.9) brightness(0.85);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.05) 30%, rgba(6, 8, 12, 0.85) 100%);
}

.tile:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.tile .eyebrow {
  margin-bottom: 0.8rem;
}

.tile h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.tile p {
  color: var(--mist);
  font-size: 0.98rem;
  margin-bottom: 1rem;
  max-width: 28rem;
}

.tile .arrow {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Statement --------------------------------------------------------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.statement h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: -0.035em;
}

.statement p {
  color: var(--mist);
  font-size: 1.15rem;
}

.statement .rule {
  width: 4rem;
  height: 2px;
  background: var(--blue);
  margin-bottom: 1.5rem;
}

/* Cards (research) ------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px -22px rgba(15, 18, 24, 0.35);
}

.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 1.4rem;
}

.card .meta time {
  color: var(--ink-3);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  flex: 1;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.card .arrow {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-deep);
}

/* Team -------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.person {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.light .person {
  border-top-color: var(--line-dark);
}

.person .portrait {
  width: min(100%, 260px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(78, 144, 195, 0.28), transparent 62%),
    linear-gradient(180deg, var(--slate-2), var(--carbon));
  margin-bottom: 1.4rem;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--black);
  outline: 1px solid var(--line);
  outline-offset: 6px;
}

.light .person .portrait {
  box-shadow: 0 0 0 1px var(--line-dark), 0 0 0 6px var(--paper);
  outline-color: var(--line-dark);
}

.person .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1s var(--ease);
}

.person:hover .portrait img {
  transform: scale(1.04);
}

.person h3 {
  font-size: 1.35rem;
}

.person .role {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0.4rem 0 0.8rem;
}

.light .person .role {
  color: var(--blue-deep);
}

.person p {
  font-size: 0.95rem;
  color: var(--mist);
}

.light .person p {
  color: var(--ink-2);
}

.person .links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.person .links a {
  text-decoration: none;
  color: var(--blue-bright);
}

.light .person .links a {
  color: var(--blue-deep);
}

.note {
  margin-top: 2rem;
  color: var(--grey);
  font-size: 0.95rem;
}

.note a {
  color: var(--blue-bright);
}

/* Steps ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}

.step .n {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--blue-deep);
  margin-bottom: 1.4rem;
}

.step h3 {
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* CTA band ---------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
}

.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.55);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(6, 8, 12, 0.1), rgba(6, 8, 12, 0.85));
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: var(--mist);
  font-size: 1.1rem;
}

.cta .actions {
  justify-content: center;
}

/* Inner pages ------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header) + clamp(4rem, 10vw, 7rem)) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.5);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.55) 60%, rgba(6, 8, 12, 0.35) 100%),
              linear-gradient(0deg, var(--black) 0%, rgba(6, 8, 12, 0) 40%);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 1.4rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 22rem);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 2.6rem 0 0.9rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-2);
  font-size: 1.08rem;
}

.prose a {
  color: var(--blue-deep);
}

.prose ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.prose li {
  counter-increment: item;
  position: relative;
  padding: 0.9rem 0 0.9rem 2.6rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line-dark);
}

.prose li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.prose li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--blue-deep);
}

.rail {
  position: sticky;
  top: calc(var(--header) + 1.5rem);
  background: var(--carbon);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}

.rail .eyebrow {
  margin-bottom: 0.9rem;
}

.rail h2 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.rail p {
  color: var(--mist);
  font-size: 0.95rem;
}

.rail .btn {
  width: 100%;
  margin-top: 1.4rem;
}

.rail .rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rail .rail-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.rail .rail-list a {
  text-decoration: none;
  color: var(--white);
}

.rail .rail-list a:hover {
  color: var(--blue-bright);
}

.board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}

.board-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-dark);
  color: var(--ink);
  font-weight: 500;
}

/* Research list ----------------------------------------------------- */
.paper-group {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.paper-group h2 {
  font-size: 1.1rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}

.paper-entry {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.paper-entry time,
.paper-entry .year {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 0.4rem;
}

.paper-entry h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.paper-entry .authors {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.paper-entry p {
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 40rem;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 18, 24, 0.3);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Forms ------------------------------------------------------------- */
form {
  display: grid;
  gap: 1.1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 18, 24, 0.25);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(78, 144, 195, 0.25);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

form .btn {
  justify-self: start;
}

.form-status {
  color: var(--ink-3);
  font-size: 0.9rem;
}

.email-block {
  font-size: 1.15rem;
  font-weight: 600;
}

.email-block a {
  text-decoration: none;
  color: var(--white);
}

.email-block a:hover {
  color: var(--blue-bright);
}

/* Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--black);
  color: var(--grey);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .wordmark {
  font-size: 1.4rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--grey);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Utility variants (replace former inline styles) ------------------- */
.section.alt {
  background: var(--paper-2);
}

.cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eyebrow.center {
  justify-content: center;
}

.light .note {
  color: var(--ink-3);
}

.light .note a {
  color: var(--blue-deep);
}

.rail-list.spaced {
  margin-top: 1.4rem;
}

.rail h2.email-block {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

/* Reveal ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  .tile img, .person .portrait img { transition: none; }
}

/* Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .cards, .cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 22rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.5rem; }
  .stats > div:nth-child(even) { padding-left: 1.5rem; }
  .stats > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }

  .nav {
    display: none;
    position: absolute;
    inset: var(--header) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.5rem;
    background: var(--black);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: flex; }

  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
  .nav .btn { margin-top: 1rem; justify-content: center; }

  .hero { min-height: 92svh; }
  .hero-scroll { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .statement, .team, .steps, .two-col, .board-list { grid-template-columns: 1fr; }
  .cards, .cards.cols-3 { grid-template-columns: 1fr; }
  .rail { position: static; }
  .paper-entry { grid-template-columns: 1fr; gap: 0.6rem; }
  .paper-entry time,
.paper-entry .year { padding-top: 0; }
  .paper-actions { padding-top: 0.6rem; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div,
  .stats > div:nth-child(odd),
  .stats > div:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Scholar page ------------------------------------------------------ */
.paper-entry .pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.92rem;
}

.pub-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  border: 1px solid rgba(31, 95, 143, 0.35);
  border-radius: var(--radius);
  padding: 0.15rem 0.45rem;
}

.cites {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.chip-ghost {
  border-color: rgba(15, 18, 24, 0.14);
  color: var(--ink-3);
}

.notice {
  max-width: 44rem;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.notice .eyebrow {
  margin-bottom: 0.6rem;
}

.notice p {
  font-size: 0.95rem;
  color: var(--ink-2);
}
