:root {
  --bg: #FDFCF8;
  --bg-alt: #F6F2E7;
  --text: #23261F;
  --text-muted: #5B5F55;
  --forest: #2F5233;
  --forest-dark: #203A24;
  --amber: #C08A3E;
  --line: #E3DDCC;
  --max-w: 880px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 82, 51, 0.35);
}

a:hover { border-bottom-color: var(--forest); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border-bottom: none;
}

.brand-icon { height: 32px; width: auto; display: block; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
}

nav.main-nav a {
  margin-left: 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-bottom: none;
}

nav.main-nav a:hover { color: var(--forest); }

h1 {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--text);
  max-width: 720px;
}

blockquote.mission {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border-left: 3px solid var(--forest);
  background: var(--bg-alt);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}

/* Generic section kicker (reused everywhere: About, Research cards, Applications) */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}

#about .kicker { margin: 32px 0 10px; }
#about .kicker:first-child { margin-top: 0; }

.pull-line {
  font-size: 18px;
  color: var(--forest-dark);
  padding: 4px 0;
  margin: 18px 0 0;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 780px) {
  .framework-grid { grid-template-columns: 1fr; }
}

.framework-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.framework-card h3 { margin: 0 0 10px; font-size: 18px; }
.framework-card p { margin: 0; font-size: 15.5px; color: var(--text-muted); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: none;
}

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-secondary:hover { background: var(--bg-alt); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section#about,
section#applications-intro { border-top: none; padding-top: 56px; }

section#applications-intro { padding-bottom: 0; }
section#applications { padding-top: 40px; }

/* Applications page showcases */
.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.showcase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
}

.showcase-card h3 { margin: 0 0 20px; font-size: 22px; }

.showcase-figure {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.showcase-caption {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 640px;
  margin: 0 auto;
}

h2 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 700;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 16.5px;
}

/* Research section: each act is a full-width row, text left / featured studies right.
   Uses the same container width as every other section (var(--max-w)) so
   all section edges line up down the page. */
.research-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.research-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 720px) {
  .research-card { flex-direction: column; }
}

.research-content { flex: 1 1 auto; min-width: 0; }

.research-figure-wrap {
  flex: 0 0 280px;
  width: 280px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

@media (max-width: 720px) {
  .research-figure-wrap {
    width: 100%;
    flex-basis: auto;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
}

.research-card .kicker { margin-bottom: 6px; }

.research-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.research-card p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0 0 14px;
}

.research-card .featured {
  font-size: 13px;
  color: var(--text-muted);
}

.featured-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.research-card .featured ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.research-card .featured li {
  margin-bottom: 8px;
  line-height: 1.45;
}
.research-card .featured li:last-child { margin-bottom: 0; }

.research-card .featured a { color: var(--forest); font-weight: 600; border-bottom-color: rgba(47,82,51,0.3); }

/* People */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.person {
  text-align: left;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 12px;
}

.person .name { font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.person .role { font-size: 13.5px; color: var(--text-muted); }

/* Networks */
.network-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

@media (max-width: 780px) {
  .network-list { grid-template-columns: 1fr; }
}

.network-item { padding-bottom: 4px; }
.network-item .net-name { font-weight: 600; font-size: 16px; }
.network-item p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }

/* Closing / Dell alignment */
section.closing {
  background: var(--forest);
  color: #fff;
}

section.closing h2 { color: #fff; }
section.closing p { color: rgba(255,255,255,0.88); font-size: 17px; }
section.closing a { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
section.closing .btn-primary { background: var(--amber); }
section.closing .btn-primary:hover { background: #a8752f; }

/* Footer */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}

footer .foot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
