:root {
  --ink: #10201c;
  --ink-soft: #19312b;
  --paper: #f5f3ea;
  --paper-deep: #e9e5d9;
  --white: #fffef8;
  --mint: #baf8ce;
  --mint-strong: #86e5aa;
  --sage: #9cb7a9;
  --line: rgba(16, 32, 28, 0.16);
  --light-line: rgba(255, 255, 255, 0.18);
  --muted: #64736d;
  --max: 1240px;
  --shadow: 0 24px 70px rgba(7, 24, 19, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--mint); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 234, 0.94);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0;
}
.main-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.8vw, 2.5rem); }
.main-nav a, .header-link {
  position: relative;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-link { justify-self: end; }
.header-link span { color: var(--muted); }
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(5rem, 8vw, 8.5rem) 4vw; }
.section-dark { background: var(--ink); color: var(--white); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(3rem, 7vw, 8rem);
  min-height: calc(100vh - 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) max(4vw, calc((100vw - var(--max)) / 2 + 4vw));
}
.hero::before {
  position: absolute;
  top: -25vw;
  right: -16vw;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(186, 248, 206, 0.18);
  border-radius: 50%;
  content: "";
}
.hero::after {
  position: absolute;
  right: 10vw;
  bottom: -32vw;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(186, 248, 206, 0.1);
  border-radius: 50%;
  content: "";
}
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow span { width: 2.5rem; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--mint); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
h1 { max-width: 820px; font-size: clamp(3.5rem, 7.5vw, 7.4rem); }
h2 { font-size: clamp(2.6rem, 5vw, 5.1rem); }
h1 em, h2 em { color: var(--mint-strong); font-weight: 400; }
.hero-lead { max-width: 690px; color: rgba(255,255,255,0.72); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-mint { background: var(--mint); color: var(--ink); }
.button-mint:hover, .button-mint:focus-visible { background: var(--mint-strong); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
  text-transform: uppercase;
}
.light-link { color: var(--white); }
.hero-note { margin: 1.6rem 0 0; color: rgba(255,255,255,0.48); font-size: 0.78rem; }
.hero-card { border: 1px solid var(--light-line); background: rgba(255,255,255,0.035); box-shadow: var(--shadow); }
.hero-card-head { display: flex; justify-content: space-between; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--light-line); color: var(--mint); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.13em; }
.hero-card article { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.25rem; border-bottom: 1px solid var(--light-line); }
.hero-card article:last-child { border-bottom: 0; }
.hero-card strong { display: block; margin-bottom: 0.25rem; font-size: 0.96rem; }
.hero-card small { display: block; color: rgba(255,255,255,0.52); line-height: 1.45; }
.step-number { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgba(186,248,206,0.45); border-radius: 50%; color: var(--mint); font-size: 0.65rem; font-weight: 900; }

.intro-strip {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.intro-strip div { padding: 2rem 4vw; border-right: 1px solid var(--line); }
.intro-strip div:last-child { border-right: 0; }
.intro-strip strong, .intro-strip span { display: block; }
.intro-strip strong { margin-bottom: 0.4rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 400; }
.intro-strip span { color: var(--muted); font-size: 0.86rem; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr); gap: clamp(2rem, 7vw, 8rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 530px; margin-bottom: 0.5rem; color: var(--muted); font-size: 1rem; }
.section-heading > p strong { color: var(--ink); }
.section-heading.compact { display: block; margin: 0; }

.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.research-card { display: flex; min-height: 500px; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.6rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.24); }
.research-card > span { color: var(--muted); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em; }
.research-card h3 { max-width: 310px; margin: 3rem 0 1.1rem; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; line-height: 1.05; }
.research-card p { color: var(--muted); }
.research-card ul { margin: 1.2rem 0 2rem; padding: 0; list-style: none; }
.research-card li { padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.research-card li:last-child { border-bottom: 1px solid var(--line); }
.research-card > strong { margin-top: auto; color: var(--ink); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

.workflow-section { width: 100%; max-width: none; background: var(--paper-deep); }
.workflow-section > * { width: min(100%, calc(var(--max) - 8vw)); margin-right: auto; margin-left: auto; }
.workflow-board { display: grid; grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.workflow-sidebar { display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 4rem); border-right: 1px solid var(--line); background: var(--ink); color: var(--white); }
.workflow-sidebar p { color: var(--mint); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em; }
.workflow-sidebar strong { max-width: 250px; margin: auto 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; line-height: 1.05; }
.workflow-sidebar span { color: rgba(255,255,255,0.55); font-size: 0.86rem; }
.workflow-list article { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.2rem; align-items: center; padding: 1.5rem 1.8rem; border-bottom: 1px solid var(--line); }
.workflow-list article:last-child { border-bottom: 0; }
.workflow-list b { color: var(--sage); font-size: 0.72rem; }
.workflow-list h3 { margin: 0 0 0.2rem; font-size: 0.98rem; }
.workflow-list p { max-width: 620px; margin: 0; color: var(--muted); font-size: 0.84rem; }
.workflow-list article > span { padding: 0.35rem 0.55rem; border: 1px solid var(--line); color: var(--muted); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle-card { min-height: 310px; padding: 1.8rem; background: var(--paper); }
.principle-card span { color: var(--sage); font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; font-style: italic; }
.principle-card h3 { margin-top: 4rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; font-weight: 400; }
.principle-card p { margin-bottom: 0; color: var(--muted); font-size: 0.87rem; }

.status-section { width: 100%; max-width: none; padding-top: 0; background: var(--paper); }
.status-panel { display: grid; width: min(100%, var(--max)); grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr); gap: clamp(2rem, 7vw, 8rem); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem); background: var(--ink-soft); color: var(--white); }
.status-panel h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.7rem); }
.status-copy p { color: rgba(255,255,255,0.66); }
.status-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }
.status-tags span { padding: 0.45rem 0.65rem; border: 1px solid rgba(186,248,206,0.3); color: var(--mint); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.about-copy { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.about-copy p { color: var(--muted); font-size: 1.02rem; }
.about-copy .text-link { margin-top: 1rem; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 2.4rem 4vw; border-top: 1px solid var(--line); background: var(--white); }
.footer-brand { font-size: 0.9rem; }
.site-footer p, .site-footer small { margin: 0; color: var(--muted); font-size: 0.76rem; }
.site-footer nav { display: flex; gap: 1rem; justify-self: end; }
.site-footer nav a { font-size: 0.72rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 0.3rem; }
.site-footer small { grid-column: 2 / 4; }

.legal-main { background: var(--paper); }
.legal-hero { padding: clamp(5rem, 9vw, 9rem) max(4vw, calc((100vw - var(--max)) / 2 + 4vw)); }
.legal-hero h1 { max-width: 960px; }
.legal-hero > p:last-child { max-width: 680px; color: rgba(255,255,255,0.65); font-size: 1.05rem; }
.legal-content { width: min(100%, var(--max)); margin: 0 auto; padding: 4rem 4vw 8rem; }
.legal-content article { display: grid; grid-template-columns: 4rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.legal-content article > span { color: var(--sage); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-style: italic; }
.legal-content h2 { margin: 0 0 0.8rem; font-family: inherit; font-size: 1.3rem; font-weight: 750; letter-spacing: 0; line-height: 1.2; }
.legal-content p { max-width: 800px; margin: 0; color: var(--muted); }

.not-found-body { min-height: 100vh; background: var(--ink); }
.not-found { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 4vw; }
.not-found .brand { color: var(--white); }
.not-found .brand-mark { background: var(--mint); color: var(--ink); }
.not-found > div { max-width: 760px; padding: 6rem 0; }
.not-found h1 { font-size: clamp(3rem, 8vw, 7rem); }
.not-found p { color: rgba(255,255,255,0.62); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 4vw 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .header-link { margin-left: 1rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 680px; }
  .section-heading, .status-panel, .about-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: auto; }
  .research-card h3 { margin-top: 2rem; }
  .research-card > strong { margin-top: 2rem; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / 3; }
  .site-footer small { grid-column: 1 / 3; }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 0 1rem; }
  .header-link { display: none; }
  .main-nav { top: 68px; padding-right: 1rem; padding-left: 1rem; }
  .hero { min-height: auto; padding: 5rem 1.2rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .section { padding: 4.5rem 1.2rem; }
  .intro-strip { grid-template-columns: 1fr; padding: 0; }
  .intro-strip div { padding: 1.5rem 1.2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-strip div:last-child { border-bottom: 0; }
  .workflow-section > * { width: 100%; }
  .workflow-board { grid-template-columns: 1fr; }
  .workflow-sidebar { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-list article { grid-template-columns: 2rem 1fr; padding: 1.25rem; }
  .workflow-list article > span { grid-column: 2; width: max-content; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 260px; }
  .status-section { padding-right: 0; padding-left: 0; }
  .status-panel { padding: 3rem 1.2rem; }
  .site-footer { grid-template-columns: 1fr; padding: 2rem 1.2rem; }
  .site-footer nav { justify-self: start; }
  .site-footer p, .site-footer small { grid-column: auto; }
  .legal-hero { padding: 5rem 1.2rem; }
  .legal-content { padding: 2rem 1.2rem 5rem; }
  .legal-content article { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
}
