/* ═══════════════════════════════════════════════════════════
   Noygear · Copper · landing + thesis
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  background: #fdf6ec; color: #2d1c09;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Focus ─────────────────────────────────────────────── */
/* One ring for everything focusable, rather than a rule per component. The
   colour follows the convention the site already uses for accents: copper on
   the light surfaces, amber on the dark ones. Copper cannot carry it alone,
   because #a8471a against #2d1c09 measures 2.79:1, under the 3:1 WCAG 2.2
   non-text contrast minimum. Measured: copper on cream 5.46:1, on white
   5.86:1, on peach 5.02:1; amber #f5b870 on #2d1c09 9.34:1.
   The offset keeps the ring clear of the copper CTA fills, so what it is
   measured against is the page behind them and not the button itself.
   No border-radius here on purpose: outline already follows each element's own
   radius, and setting one would reshape the element it is drawn around. */
:root { --focus-ring: #a8471a; }
.mission, .criteria, .thesis-cta { --focus-ring: #f5b870; }

:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
/* Browsers that understand :focus-visible drop the ring for pointer focus and
   take it back for keyboard focus. Browsers that do not understand the
   selector discard both rules as invalid and keep the plain :focus ring. */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
/* The skip-link target is focused programmatically, never by tabbing, so it
   takes no ring of its own. */
main[tabindex="-1"]:focus,
main[tabindex="-1"]:focus-visible { outline: none; }

/* ── Skip to content ───────────────────────────────────── */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 12px 22px;
  background: #2d1c09; color: #fdf6ec;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ── Layout shell ──────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 64px; }

/* ── Top nav ───────────────────────────────────────────── */
nav.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 64px; border-bottom: 1px solid #e8d8c0;
  background: #fdf6ec;
}
.logo {
  font-family: 'Playfair Display', serif; font-size: 24px;
  font-weight: 600; letter-spacing: -0.01em; color: #2d1c09;
  text-decoration: none;
}
.navlinks { display: flex; gap: 26px; }
.navlinks a {
  color: #6b4c2a; text-decoration: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  letter-spacing: 0.04em; transition: color 0.15s;
}
.navlinks a:hover { color: #a8471a; }

/* ── Hero ──────────────────────────────────────────────── */
/* The h1 comes first in the DOM on every hero so that the main landmark opens
   on the page heading, which is where a screen reader's heading shortcut lands.
   The eyebrow above it is a label for the page, not content that has to precede
   the title, so it is lifted back into place with order and the rendering is
   unchanged. Same treatment on .thesis-hero further down. */
.hero {
  padding: 80px 0 60px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: start;
}
.hero-text { display: flex; flex-direction: column; }
.hero-text .kicker {
  order: -1;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a8471a; margin-bottom: 24px;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif; font-size: 74px; font-weight: 400;
  line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 28px;
}
.hero-text h1 em { font-style: italic; color: #a8471a; }
.hero-text p {
  font-size: 19px; line-height: 1.65; color: #4a2f17;
  margin-bottom: 28px; max-width: 560px;
}
.cta-copper {
  display: inline-block; padding: 14px 26px;
  background: #a8471a; color: #fdf6ec; border-radius: 2px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: background 0.15s;
}
.cta-copper:hover { background: #8a3e14; }

.hero-right { display: flex; flex-direction: column; gap: 16px; }
.copper-card {
  padding: 22px 26px; background: #ffffff; border: 1px solid #e8d8c0;
  border-radius: 2px;
}
.copper-card h2 {
  font-family: 'Playfair Display', serif; font-size: 18px;
  font-weight: 600; margin-bottom: 8px; color: #2d1c09;
}
.copper-card p {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  line-height: 1.6; color: #6b4c2a;
}

/* ── Credentials strip ─────────────────────────────────── */
.credentials-strip {
  padding: 40px 48px; background: #fcebd5; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: 24px;
  border: 1px solid #e8d8c0; border-radius: 2px;
}
.credentials-strip .n {
  font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 500;
  color: #2d1c09; line-height: 1;
}
.credentials-strip .l {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: #7d5f40; margin-top: 10px; line-height: 1.5; letter-spacing: 0.04em;
}

/* ── Universities ──────────────────────────────────────── */
.unis {
  margin-top: 32px; padding: 28px 48px;
  background: #fff; border: 1px solid #e8d8c0; border-radius: 2px;
}
.unis-label, .awards-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a8471a; margin-bottom: 16px;
}
.unis-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.uni {
  font-family: 'EB Garamond', serif; font-size: 22px; font-weight: 600;
  color: #2d1c09; text-align: center;
}
.uni .uni-sub {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  letter-spacing: 0.12em; color: #7d5f40; margin-top: 6px; text-transform: uppercase;
  font-weight: 400;
}

/* ── Awards (1MWTT) ────────────────────────────────────── */
.awards {
  margin-top: 32px; padding: 32px 48px;
  background: #fff; border: 1px solid #e8d8c0; border-radius: 2px;
}
.awards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.award {
  padding: 14px 18px; border-left: 3px solid #a8471a;
}
.award .a-src {
  font-family: 'Playfair Display', serif; font-size: 18px;
  font-weight: 600; color: #2d1c09; margin-bottom: 4px;
}
.award .a-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 10.5px;
  color: #7d5f40; line-height: 1.5; letter-spacing: 0.02em;
}

/* ── Section head ──────────────────────────────────────── */
.section-head {
  margin-top: 80px; padding-bottom: 18px;
  border-bottom: 1px solid #e8d8c0;
}
.section-head .eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a8471a; margin-bottom: 12px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif; font-size: 42px;
  font-weight: 400; letter-spacing: -0.01em;
}
.section-head h2 em { color: #a8471a; font-style: italic; }

/* ── Thesis teaser (landing) ───────────────────────────── */
.thesis-teaser {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 42px;
}
.thesis-teaser .thesis-left p {
  font-size: 18px; line-height: 1.7; color: #4a2f17; margin-bottom: 16px;
}
.thesis-teaser .thesis-left .cta-mission { margin-top: 12px; }
.thesis-formula {
  display: inline-block; font-family: 'Space Mono', monospace;
  font-size: 14px; color: #2d1c09; background: #fcebd5;
  padding: 14px 22px; border-radius: 2px; border: 1px solid #e8d8c0;
  margin: 12px 0 20px;
}
.thesis-formula .eq { color: #a8471a; }
.thesis-teaser .pillars { display: flex; flex-direction: column; gap: 18px; }
.thesis-teaser .pillar {
  padding: 22px 26px; background: #fff; border: 1px solid #e8d8c0; border-radius: 2px;
}
.thesis-teaser .pillar .p-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  letter-spacing: 0.16em; color: #a8471a; margin-bottom: 10px; text-transform: uppercase;
}
.thesis-teaser .pillar h3 {
  font-family: 'Playfair Display', serif; font-size: 20px;
  font-weight: 600; margin-bottom: 6px; color: #2d1c09;
}
.thesis-teaser .pillar p {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  line-height: 1.65; color: #6b4c2a;
}

/* ── Portfolio ─────────────────────────────────────────── */
.pc-grid {
  margin-top: 28px; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.pc-card {
  border: 1px solid #e8d8c0; padding: 28px;
  background: #fff; transition: all 0.2s;
}
.pc-card:hover { border-color: #a8471a; }
.pc-card .pc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.pc-card h3 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 500;
}
.pc-card h3 .stealth-tag {
  color: #7d5f40; font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 400;
}
.pc-card .pc-status {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #a8471a;
}
.pc-card p {
  font-family: 'Space Grotesk', sans-serif; font-size: 13.5px;
  line-height: 1.7; color: #6b4c2a;
}
.pc-card .pc-sector {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  letter-spacing: 0.12em; color: #7d5f40; margin-top: 14px; text-transform: uppercase;
}

/* ── Founder ───────────────────────────────────────────── */
.founder {
  margin-top: 36px; padding: 44px 48px;
  background: #fff; border: 1px solid #e8d8c0;
  display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start;
}
.founder-avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, #a8471a, #8a3e14);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 60px; color: #fdf6ec;
  overflow: hidden; flex-shrink: 0;
}
.founder-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; display: block;
}
.founder h3 {
  font-family: 'Playfair Display', serif; font-size: 34px;
  font-weight: 500; margin-bottom: 4px; color: #2d1c09;
}
.founder-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  color: #a8471a; margin-bottom: 20px; letter-spacing: 0.03em;
}
.founder p {
  font-size: 15.5px; line-height: 1.75; color: #4a2f17; margin-bottom: 12px;
}
.founder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  padding: 5px 12px; border: 1px solid #a8471a; color: #a8471a;
  border-radius: 999px; letter-spacing: 0.02em;
}

/* ── Fellowship ────────────────────────────────────────── */
.fellowship { margin-top: 36px; }
.fellow-bench {
  margin-top: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.fb-col {
  background: #fff; border: 1px solid #e8d8c0; padding: 22px;
}
.fb-col.mine { border-color: #a8471a; background: #fcebd5; }
.fb-name {
  font-family: 'Playfair Display', serif; font-size: 17px;
  font-weight: 600; color: #2d1c09; margin-bottom: 8px;
}
.fb-desc {
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px;
  color: #6b4c2a; line-height: 1.6;
}

/* ── Investment criteria ───────────────────────────────── */
.criteria {
  margin-top: 36px; padding: 40px 48px;
  background: #2d1c09; color: #fdf6ec;
}
.criteria h3 {
  font-family: 'Playfair Display', serif; font-size: 28px;
  font-weight: 500; margin-bottom: 24px; color: #fdf6ec;
}
.criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.crit .crit-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  letter-spacing: 0.16em; color: #f5b870; text-transform: uppercase; margin-bottom: 8px;
}
.crit .crit-value {
  font-family: 'Playfair Display', serif; font-size: 24px; color: #fdf6ec;
  margin-bottom: 6px; font-weight: 500;
}
.crit p {
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px;
  color: #d9bf96; line-height: 1.6;
}

/* ── Mission block (dark) with Read Our Thesis CTA ────── */
.mission {
  margin-top: 64px; padding: 88px 0;
  background: #2d1c09; color: #fdf6ec;
}
.mission-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 64px;
}
.mission h2 {
  font-family: 'Playfair Display', serif; font-size: 54px; font-weight: 400;
  line-height: 1.1; letter-spacing: -0.01em;
  max-width: 880px; margin-bottom: 28px;
}
.mission h2 em { color: #f5b870; font-style: italic; }
.mission p {
  font-family: 'EB Garamond', serif; font-size: 17px; line-height: 1.65;
  color: #d9bf96; max-width: 680px; margin-bottom: 36px;
}
.cta-mission {
  display: inline-block; padding: 14px 26px;
  background: #a8471a; color: #fdf6ec; border-radius: 2px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: background 0.15s;
}
.cta-mission:hover { background: #8a3e14; }

/* ── 3-row CTA (Apply / Inquire rows) ──────────────────── */
.roles {
  background: #fdf6ec;
}
.roles-inner {
  max-width: 1280px; margin: 0 auto; padding: 72px 64px 40px;
}
.roles .eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a8471a; margin-bottom: 18px;
}
.roles h3 {
  font-family: 'Playfair Display', serif; font-size: 36px;
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 32px;
  color: #2d1c09;
}
.role-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid #e8d8c0;
  gap: 24px;
}
.role-row:last-child { border-bottom: 1px solid #e8d8c0; }
.role-info h4 {
  font-family: 'Playfair Display', serif; font-size: 22px;
  font-weight: 500; color: #2d1c09; margin-bottom: 4px;
}
.role-info .r-meta {
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px;
  color: #7d5f40; letter-spacing: 0.02em;
}
.role-row a {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #a8471a; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid #a8471a;
  white-space: nowrap; transition: color 0.15s;
}
.role-row a:hover { color: #8a3e14; border-color: #8a3e14; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  max-width: 1280px; margin: 0 auto; padding: 30px 64px 50px;
  border-top: 1px solid #e8d8c0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; color: #7d5f40;
  letter-spacing: 0.04em; gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  color: #2d1c09; line-height: 1;
}
.footer-tag {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: #7d5f40; letter-spacing: 0.04em;
}
.footer-links {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.04em;
}
.footer-links a { color: #7d5f40; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #a8471a; }
.footer-meta {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: #a8471a; letter-spacing: 0.08em; text-transform: uppercase;
  max-width: 320px; text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   Thesis page
   ═══════════════════════════════════════════════════════════ */

.thesis-hero {
  padding: 80px 64px 40px;
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column;
}
/* align-self keeps the link shrink-to-fit: flex blockifies inline-block
   children, and a full-width link would drag the focus ring across the page. */
.thesis-hero .back {
  order: -2; align-self: flex-start;
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #a8471a; text-decoration: none; margin-bottom: 32px;
}
.thesis-hero .back:hover { color: #8a3e14; }
.thesis-hero .kicker {
  order: -1;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a8471a; margin-bottom: 20px;
}
.thesis-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 88px; font-weight: 400;
  line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 28px;
}
.thesis-hero h1 em { color: #a8471a; font-style: italic; }
.thesis-hero .lead {
  font-family: 'EB Garamond', serif; font-size: 22px; line-height: 1.5;
  color: #4a2f17; max-width: 780px;
}

.thesis-body {
  max-width: 1280px; margin: 0 auto; padding: 40px 64px 80px;
}

.thesis-chapter {
  display: grid; grid-template-columns: 260px 1fr; gap: 60px;
  padding: 60px 0; border-top: 1px solid #e8d8c0;
  align-items: start;
}
.thesis-chapter .ch-marker {
  position: sticky; top: 32px;
}
.thesis-chapter .ch-num {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; color: #a8471a; margin-bottom: 10px;
}
.thesis-chapter .ch-title {
  font-family: 'Playfair Display', serif; font-size: 24px;
  font-weight: 600; color: #2d1c09; line-height: 1.2;
}
.thesis-chapter .ch-body h2 {
  font-family: 'Playfair Display', serif; font-size: 32px;
  font-weight: 400; color: #2d1c09; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.thesis-chapter .ch-body h3 {
  font-family: 'Playfair Display', serif; font-size: 20px;
  font-weight: 600; color: #2d1c09; margin: 28px 0 10px;
}
.thesis-chapter .ch-body p {
  font-family: 'EB Garamond', serif; font-size: 18px; line-height: 1.7;
  color: #4a2f17; margin-bottom: 18px;
}
.thesis-chapter .ch-body strong { color: #2d1c09; }
.thesis-chapter .ch-body ul {
  margin: 14px 0 18px 0; padding-left: 0; list-style: none;
}
.thesis-chapter .ch-body ul li {
  font-family: 'EB Garamond', serif; font-size: 17px; line-height: 1.6;
  color: #4a2f17; padding-left: 24px; position: relative; margin-bottom: 10px;
}
.thesis-chapter .ch-body ul li::before {
  content: '→'; position: absolute; left: 0; color: #a8471a; font-weight: 700;
}
.thesis-chapter .ch-body .pullquote {
  border-left: 3px solid #a8471a; padding: 6px 0 6px 24px;
  margin: 24px 0; font-style: italic;
  font-family: 'Playfair Display', serif; font-size: 22px;
  line-height: 1.4; color: #2d1c09;
}

.thesis-body .thesis-formula {
  display: block; margin: 8px 0 20px;
  font-size: 15px; padding: 16px 24px;
}

.thesis-cta {
  margin-top: 72px; padding: 64px 48px;
  background: #2d1c09; color: #fdf6ec; text-align: center;
}
.thesis-cta h2 {
  font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 400;
  margin-bottom: 14px; line-height: 1.2;
}
.thesis-cta h2 em { color: #f5b870; font-style: italic; }
.thesis-cta p {
  font-family: 'EB Garamond', serif; font-size: 17px;
  color: #d9bf96; margin-bottom: 28px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.thesis-cta a.cta-copper { background: #a8471a; }
.thesis-cta a.cta-copper:hover { background: #f5b870; color: #2d1c09; }

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .container,
  .roles-inner,
  .mission-inner,
  .site-footer,
  .thesis-hero,
  .thesis-body { padding-left: 40px; padding-right: 40px; }
  nav.site-nav { padding: 24px 40px; }
  .hero-text h1 { font-size: 60px; }
  .thesis-hero h1 { font-size: 68px; }
  .mission h2 { font-size: 42px; }
  .thesis-chapter { grid-template-columns: 200px 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .container,
  .roles-inner,
  .mission-inner,
  .site-footer,
  .thesis-hero,
  .thesis-body { padding-left: 22px; padding-right: 22px; }
  nav.site-nav { padding: 18px 22px; flex-wrap: wrap; gap: 12px; }
  .navlinks { gap: 16px; flex-wrap: wrap; }

  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 40px; }
  .hero-text h1 { font-size: 42px; line-height: 1.08; }
  .hero-text p { font-size: 16px; }

  .credentials-strip,
  .pc-grid,
  .fellow-bench,
  .unis-row,
  .awards-row,
  .criteria-grid,
  .thesis-teaser { grid-template-columns: 1fr; gap: 14px; }

  .credentials-strip { padding: 28px 22px; }
  .unis, .awards, .criteria { padding: 26px 22px; }
  .section-head h2 { font-size: 30px; }
  .founder { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .founder-avatar { width: 100px; height: 100px; font-size: 38px; }
  .founder h3 { font-size: 28px; }

  .mission { padding: 56px 0; }
  .mission h2 { font-size: 30px; }

  .roles-inner { padding: 48px 22px 30px; }
  .roles h3 { font-size: 26px; }
  .role-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }

  .site-footer { flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 22px 40px; }
  .footer-meta { text-align: left; }

  .thesis-hero { padding: 48px 22px 24px; }
  .thesis-hero h1 { font-size: 46px; }
  .thesis-hero .lead { font-size: 18px; }
  .thesis-chapter { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .thesis-chapter .ch-marker { position: static; }
  .thesis-chapter .ch-body h2 { font-size: 26px; }
  .thesis-chapter .ch-body p { font-size: 16px; }
  .thesis-cta { padding: 48px 22px; }
  .thesis-cta h2 { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   Legal pages (terms + privacy)
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.legal-hero {
  max-width: 1180px; margin: 0 auto; padding: 60px 64px 28px;
}
.legal-hero .back {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #a8471a; text-decoration: none; margin-bottom: 30px;
}
.legal-hero .back:hover { color: #8a3e14; }
.legal-hero .kicker {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a8471a; margin-bottom: 18px;
}
.legal-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 58px; font-weight: 400;
  line-height: 1.03; letter-spacing: -0.02em; margin-bottom: 22px;
}
.legal-hero h1 em { color: #a8471a; font-style: italic; }
.legal-hero .lead {
  font-family: 'EB Garamond', serif; font-size: 20px; line-height: 1.55;
  color: #4a2f17; max-width: 760px;
}

/* Two-column layout: sticky TOC + content */
.legal-layout {
  max-width: 1180px; margin: 0 auto; padding: 40px 64px 64px;
  display: grid; grid-template-columns: 232px 1fr; gap: 56px; align-items: start;
}
.legal-toc { position: sticky; top: 24px; }
.legal-toc .toc-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #a8471a;
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 12.5px;
  line-height: 1.4; color: #6b4c2a; text-decoration: none;
  padding: 5px 0; transition: color 0.15s;
}
.legal-toc a::before {
  content: counter(toc) '. '; color: #a8471a; font-family: 'Space Mono', monospace;
  font-size: 11px;
}
.legal-toc a:hover { color: #a8471a; }

/* Content sections */
.legal-content { min-width: 0; }
.legal-section {
  padding: 30px 0; border-top: 1px solid #e8d8c0; scroll-margin-top: 24px;
}
.legal-content > .legal-section:first-child { border-top: none; padding-top: 0; }
.legal-section > h2 {
  font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 400;
  color: #2d1c09; letter-spacing: -0.01em; margin-bottom: 16px; line-height: 1.2;
}
.legal-section > h2 .s-num {
  font-family: 'Space Mono', monospace; font-size: 0.62em; color: #a8471a;
  margin-right: 12px; vertical-align: 0.12em;
}
.legal-section h3 {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600;
  color: #2d1c09; margin: 24px 0 8px;
}
.legal-section h3 .s-num {
  font-family: 'Space Mono', monospace; font-size: 0.72em; color: #a8471a;
  margin-right: 8px;
}
.legal-section p {
  font-family: 'EB Garamond', serif; font-size: 16.5px; line-height: 1.75;
  color: #4a2f17; margin-bottom: 14px;
}
.legal-section strong { color: #2d1c09; }
.legal-section a { color: #a8471a; text-decoration: underline; text-underline-offset: 2px; }
.legal-section ul { list-style: none; padding: 0; margin: 4px 0 16px; }
.legal-section ul li {
  font-family: 'EB Garamond', serif; font-size: 16px; line-height: 1.65;
  color: #4a2f17; padding-left: 24px; position: relative; margin-bottom: 9px;
}
.legal-section ul li::before {
  content: '→'; position: absolute; left: 0; color: #a8471a; font-weight: 700;
}
.legal-section ul li strong { color: #2d1c09; }

/* Operative clause callout */
.legal-clause {
  border-left: 3px solid #a8471a; background: #fff; border-radius: 2px;
  padding: 16px 22px; margin: 18px 0;
  font-family: 'EB Garamond', serif; font-size: 16px; line-height: 1.7;
  color: #2d1c09;
}

/* Tables */
.legal-table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px;
}
.legal-table th {
  text-align: left; background: #2d1c09; color: #fdf6ec;
  padding: 10px 12px; font-weight: 500; letter-spacing: 0.03em;
  vertical-align: top;
}
.legal-table td {
  padding: 10px 12px; border-bottom: 1px solid #e8d8c0; color: #4a2f17;
  vertical-align: top; line-height: 1.5;
}
.legal-table tr:nth-child(odd) td { background: #fff; }
.legal-table-wrap { overflow-x: auto; }

/* Cross-links between the two documents */
.legal-crosslink {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid #e8d8c0;
}
.legal-crosslink a {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #a8471a;
  text-decoration: none; border-bottom: 1px solid #a8471a; padding-bottom: 3px;
}
.legal-crosslink a:hover { color: #8a3e14; border-color: #8a3e14; }

@media (max-width: 1080px) {
  .legal-hero, .legal-layout {
    padding-left: 40px; padding-right: 40px;
  }
  .legal-hero h1 { font-size: 46px; }
  .legal-layout { grid-template-columns: 200px 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .legal-hero, .legal-layout {
    padding-left: 22px; padding-right: 22px;
  }
  .legal-hero { padding-top: 44px; }
  .legal-hero h1 { font-size: 36px; }
  .legal-hero .lead { font-size: 17px; }
  .legal-layout { grid-template-columns: 1fr; gap: 8px; padding-top: 28px; }
  .legal-toc {
    position: static; padding: 18px 20px; background: #fff;
    border: 1px solid #e8d8c0; border-radius: 2px; margin-bottom: 8px;
  }
  .legal-section > h2 { font-size: 23px; }
}
