:root {
  --ink: #070b09;
  --ink-soft: #0c1210;
  --panel: #101814;
  --panel-2: #131d18;
  --line: #26342d;
  --line-bright: #3f5d4e;
  --paper: #f2f5f3;
  --muted: #a7b2ac;
  --muted-2: #7e8a84;
  --emerald: #44b887;
  --emerald-dark: #176444;
  --emerald-pale: #b7e8d1;
  --max: 1200px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(68,184,135,.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(68,184,135,.025) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--emerald-pale); }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(63,93,78,.55);
  background: rgba(7,11,9,.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  color: var(--emerald);
  font-family: var(--serif);
  font-size: .9rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--paper); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: .55rem .75rem;
  font: inherit;
}

.shell { width: min(calc(100% - 2.5rem), var(--max)); margin: 0 auto; }

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--emerald);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2.75rem, 6.5vw, 6.5rem); font-weight: 620; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3.6vw, 3.7rem); font-weight: 600; }
h3 { margin-bottom: .7rem; font-size: 1.2rem; font-weight: 620; }
.lede { max-width: 720px; color: #c0c9c4; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 8rem 0 6rem;
}

.hero h1 { max-width: 930px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.35rem;
  border: 1px solid var(--emerald-dark);
  background: var(--emerald-dark);
  color: white;
  text-decoration: none;
  font-weight: 650;
}
.button:hover { background: #1c7650; color: white; }
.button.secondary { border-color: var(--line-bright); background: transparent; color: var(--paper); }
.button.secondary:hover { border-color: var(--emerald); color: var(--emerald-pale); }

.research-brief {
  position: relative;
  border-top: 2px solid var(--emerald);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(25,45,35,.8), rgba(12,18,16,.72));
  padding: 2rem;
}
.research-brief::before {
  content: "01";
  position: absolute;
  top: -1.15rem;
  right: 1.2rem;
  color: rgba(183,232,209,.12);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}
.brief-meta { color: var(--muted-2); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.research-brief h2 { max-width: 11ch; margin: 2rem 0 1rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.research-brief p { color: var(--muted); }
.text-link { color: var(--emerald-pale); font-weight: 650; text-decoration: none; }
.text-link::after { content: "  →"; }

.signal-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal { min-height: 138px; padding: 1.75rem 2rem; border-right: 1px solid var(--line); }
.signal:first-child { border-left: 1px solid var(--line); }
.signal span { display: block; margin-bottom: .55rem; color: var(--muted-2); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.signal strong { font-size: 1.05rem; font-weight: 580; }

.section { padding: 8rem 0; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; margin-bottom: 4rem; }
.section-heading p { max-width: 680px; color: var(--muted); font-size: 1.1rem; }

.project-feature {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  border: 1px solid var(--line);
  background: rgba(12,18,16,.82);
}
.project-index { padding: 2rem; border-right: 1px solid var(--line); }
.project-index strong { display: block; color: var(--emerald); font-family: var(--serif); font-size: 4.5rem; font-weight: 400; line-height: 1; }
.project-index span { display: block; margin-top: 8rem; color: var(--muted-2); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.project-body { padding: clamp(2rem, 5vw, 4rem); }
.project-body h3 { max-width: 18ch; font-size: clamp(1.8rem, 3.3vw, 3.2rem); }
.project-body p { max-width: 720px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0; }
.tag { border: 1px solid var(--line); padding: .35rem .7rem; color: #bac6bf; font-size: .76rem; }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area { min-height: 320px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area-number { color: var(--emerald); font-family: var(--serif); font-size: 1.2rem; }
.area h3 { margin-top: 5rem; font-size: 1.55rem; }
.area p { color: var(--muted); }

.page-hero { padding: 8rem 0 5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1050px; font-size: clamp(2.7rem, 5.8vw, 5.6rem); }
.page-hero .lede { max-width: 820px; }
.status-line { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; color: var(--muted-2); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.status-line span { border-left: 2px solid var(--emerald-dark); padding-left: .7rem; }

.content-grid { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: clamp(3rem, 8vw, 7rem); padding: 6rem 0 9rem; }
.contents { position: sticky; top: 116px; align-self: start; }
.contents p { color: var(--muted-2); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contents a { display: block; padding: .45rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.article section { scroll-margin-top: 110px; margin-bottom: 5rem; }
.article p, .article li { color: #b8c2bd; }
.article strong { color: var(--paper); }
.article ul { padding-left: 1.25rem; }
.article blockquote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-left: 3px solid var(--emerald); background: var(--panel); color: #d4ddd8; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2rem 0; background: var(--line); border: 1px solid var(--line); }
.metric { padding: 1.4rem; background: var(--panel); }
.metric strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.metric span { color: var(--muted-2); font-size: .78rem; }

.notice { margin: 2rem 0; padding: 1.4rem 1.5rem; border: 1px solid var(--line-bright); background: rgba(23,100,68,.12); }
.notice strong { display: block; margin-bottom: .4rem; color: var(--emerald-pale); }

table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .85rem 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--paper); background: var(--panel-2); }
td { color: var(--muted); }

.publication-list { border-top: 1px solid var(--line); }
.publication-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 2rem; align-items: start; padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.publication-item .meta { color: var(--muted-2); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.publication-item h2 { margin: 0 0 .65rem; font-size: 1.55rem; }
.publication-item p { margin: 0; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 240px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle span { color: var(--emerald); font-family: var(--serif); }
.principle h3 { margin-top: 3rem; }
.principle p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #050806; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; padding: 4rem 0; }
.footer-brand { max-width: 520px; }
.footer-brand p { color: var(--muted-2); }
.footer-contact { margin: 1.5rem 0 0; }
.footer-contact span {
  display: block;
  color: var(--muted-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-contact a {
  color: var(--paper);
  text-decoration-color: var(--line-bright);
  text-underline-offset: .28em;
}
.footer-contact a:hover { color: var(--emerald-pale); text-decoration-color: var(--emerald); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: start; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.copyright { padding: 1.25rem 0; border-top: 1px solid var(--line); color: #69756f; font-size: .78rem; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 6rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .research-brief { max-width: 600px; }
  .section-heading, .project-feature, .content-grid { grid-template-columns: 1fr; }
  .project-index { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-index span { margin-top: 2rem; }
  .area-grid { grid-template-columns: 1fr; }
  .area { min-height: 250px; }
  .area h3 { margin-top: 3rem; }
  .contents { position: static; }
  .publication-item { grid-template-columns: 130px 1fr; }
  .publication-item .text-link { grid-column: 2; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 66px; }
  .wordmark { font-size: .74rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
    background: #080d0b;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .shell, .header-inner { width: min(calc(100% - 2rem), var(--max)); }
  .hero { padding: 5rem 0 4rem; }
  .signal-grid, .metric-grid, .principles { grid-template-columns: 1fr; }
  .signal { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .signal:last-child { border-bottom: 0; }
  .section { padding: 5.5rem 0; }
  .section-heading { margin-bottom: 2.5rem; }
  .page-hero { padding: 5.5rem 0 3.5rem; }
  .content-grid { padding: 4rem 0 6rem; }
  .publication-item { grid-template-columns: 1fr; gap: .8rem; }
  .publication-item .text-link { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
