:root {
  --bg: #f7f4ec;
  --bg-soft: #f0ebdf;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #7a7568;
  --rule: rgba(26, 26, 26, 0.12);
  --accent: #1a1a1a;
  --max-width: 1100px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.brand__name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 12vh, 9rem) 0 clamp(4rem, 10vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__content {
  max-width: 38em;
}

.hero__viz {
  display: flex;
  justify-content: center;
  align-items: center;
}

.viz {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  overflow: visible;
  animation: viz-fade-in 1.4s ease-out both;
}

@keyframes viz-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.viz__dot {
  fill: var(--ink-mute);
  opacity: 0.3;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 1.4s ease, fill 1.4s ease, transform 1.4s ease;
}

.viz__dot.is-sampled {
  fill: var(--ink);
  opacity: 1;
  transform: scale(1.7);
}

.viz__line {
  stroke: var(--ink);
  stroke-width: 0.6;
  stroke-linecap: round;
  opacity: 0.42;
}

@media (prefers-reduced-motion: reduce) {
  .viz__dot,
  .viz__line {
    transition: none;
    animation: none;
  }
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.75rem;
}

.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 9vh, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.section__head {
  margin-bottom: 3rem;
}

.section__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}

.section__title--wide {
  max-width: none;
}

/* ---------- Approach grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
}

.card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ---------- Section lede (shared) ---------- */
.section__lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: -1.5rem 0 3rem;
}

/* ---------- Publications ---------- */
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem 2.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}

.pub:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.pub__year {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.92rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  padding-top: 0.2rem;
}

.pub__body {
  min-width: 0;
}

.pub__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
  max-width: 56ch;
}

.pub__authors {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pub__authors strong {
  font-weight: 500;
  color: var(--ink);
}

.pub__venue {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.pub__venue a {
  color: inherit;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.pub__venue a:hover {
  border-color: var(--ink);
}

.pubs__more {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pubs__more a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.pubs__more a:hover {
  border-color: var(--ink);
}

/* ---------- Founder bio ---------- */
.bio {
  max-width: 60ch;
}

.bio p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

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

/* ---------- Contact ---------- */
.contact__lede {
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.contact__email {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
  transition: border-color 0.2s ease;
}

.contact__email:hover {
  border-color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
}

.site-footer__meta {
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: clamp(3rem, 8vh, 5rem);
  }

  .hero__content {
    max-width: none;
    order: 2;
  }

  .hero__viz {
    order: 1;
    max-width: 280px;
    margin: 0 auto;
  }

  .viz {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .site-nav {
    gap: 1.25rem;
    font-size: 0.85rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pub {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.75rem 0;
  }

  .pub__year {
    padding-top: 0;
  }

  .section__lede {
    margin-top: -1rem;
  }
}
