:root {
  --paper: #ffffff;
  --paper-deep: #f5f3ee;
  --ink: #1c1b18;
  --ink-soft: #55524c;
  --ink-faint: #8f8b82;
  --line: #e7e3d9;
  --accent: #8a6f3b;
  --maxw: 58rem;
  --gutter: clamp(1.5rem, 6vw, 4rem);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; border-radius: 2px; z-index: 10; }

/* Shared frame */
.topbar, .hero, .cohort-note, .section, .site-foot {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.9rem;
  padding-bottom: 1.9rem;
}
.brand {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}
.topnav { display: flex; gap: 1.7rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.topnav a { text-decoration: none; color: var(--ink-faint); transition: color 0.2s ease; }
.topnav a:hover { color: var(--ink); }
.topnav__login { color: var(--ink); }
@media (max-width: 40rem) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 0.9rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .topnav { gap: 1.2rem; flex-wrap: wrap; }
}

/* Hero / thesis */
.hero {
  padding-top: clamp(3rem, 12vh, 8rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.7rem;
}
.hero__thesis {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.7vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 1.8rem;
  max-width: 20ch;
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 2.2rem;
}
.textlink {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.textlink:hover { opacity: 0.55; }

/* Cohort note (slim, restrained) */
.cohort-note { padding-top: 0.5rem; padding-bottom: 1.6rem; }
.cohort-note__link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.cohort-note__link:hover { border-color: var(--ink); }
.cohort-note__tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.cohort-note__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cohort-note__body { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.cohort-note__title { font-family: var(--serif); font-size: 1.02rem; }
.cohort-note__sub { font-size: 0.8rem; color: var(--ink-faint); }
.cohort-note__arrow { color: var(--ink-faint); font-size: 1.05rem; transition: transform 0.2s ease, color 0.2s ease; }
.cohort-note__link:hover .cohort-note__arrow { transform: translateX(4px); color: var(--ink); }
@media (max-width: 30rem) { .cohort-note__tag { display: none; } }

/* Sections (two-column, report-like) */
.section {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem 2.5rem;
  padding-top: clamp(2.6rem, 6vh, 4.2rem);
  padding-bottom: clamp(2.6rem, 6vh, 4.2rem);
  border-top: 1px solid var(--line);
}
.section__label h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
@media (max-width: 40rem) { .section { grid-template-columns: 1fr; gap: 1.1rem; } }

/* Capabilities */
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.1rem; }
.cap-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.42rem; margin: 0 0 0.45rem; }
.cap-list p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.cap-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cap-list a:hover { border-bottom-color: var(--ink); }

/* Selected work */
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { border-top: 1px solid var(--line); }
.work-list li:first-child { border-top: 0; }
.work-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 0.2rem 1.5rem; padding: 1.2rem 0; text-decoration: none;
  transition: padding-left 0.2s ease;
}
.work-list a:hover { padding-left: 0.6rem; }
.work-name { font-family: var(--serif); font-size: 1.25rem; }
.work-desc { grid-column: 1; color: var(--ink-soft); font-size: 0.92rem; }
.work-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 30rem) { .work-list a { grid-template-columns: 1fr; } .work-meta { grid-row: auto; grid-column: 1; } }

/* Contact */
.contact-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30rem;
  margin: 0 0 2rem;
}
.contact-note { color: var(--ink-soft); max-width: 34rem; margin: 0 0 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* Footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: clamp(2rem, 6vh, 4rem);
  padding-top: 1.8rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.site-foot p { margin: 0; }
.brandline { font-family: var(--display); letter-spacing: 0.04em; color: var(--ink-soft); }
.brandline span { font-family: var(--sans); letter-spacing: 0; }
.foot-link {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot-nav { display: flex; gap: 1.4rem; }

/* Legal / privacy */
.legal {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: clamp(2.5rem, 9vh, 5.5rem);
  padding-bottom: 3rem;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  max-width: 22ch;
}
.legal .updated { font-size: 0.8rem; color: var(--ink-faint); margin: 0 0 2.2rem; }
.legal h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2.6rem 0 0.7rem;
}
.legal p { color: var(--ink-soft); max-width: 42rem; margin: 0 0 1rem; }
.legal a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
