:root {
  --bg: #f2f0e9;
  --surface: #fbfaf6;
  --ink: #111512;
  --muted: #626962;
  --line: #cfd2ca;
  --dark: #0a0d0c;
  --dark-surface: #121714;
  --dark-line: #29312b;
  --light: #f6f5ef;
  --signal: #b8ff5a;
  --signal-dark: #81c72e;
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; }
button, a { -webkit-tap-highlight-color: transparent; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .92em; }
strong { font-weight: 690; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 14px; background: var(--signal); color: #071006; text-decoration: none; border-radius: 10px; font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: .95rem; font-weight: 760; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .72rem; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: .91rem; }
.site-nav a { color: #303631; text-decoration: none; }
.site-nav a:hover { color: #000; }
.site-nav .nav-cta { padding: 9px 14px; border: 1px solid #232823; border-radius: 999px; color: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; }

.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr); align-items: center; gap: clamp(44px, 7vw, 100px); padding-block: clamp(80px, 10vw, 145px); }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: .76rem; line-height: 1.2; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 7.6rem); line-height: .92; letter-spacing: -.065em; font-weight: 640; }
.hero-lede { max-width: 740px; margin: 34px 0 0; color: #3c433d; font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid var(--ink); border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--light); }
.button-secondary { background: transparent; color: var(--ink); }

.hero-model { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.25); }
.model-node { min-height: 98px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.model-node span { color: var(--muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.model-node strong { font-size: 1.03rem; }
.model-core { min-height: 128px; border-color: #94a281; background: var(--signal); }
.model-core span { color: #344421; }
.model-core strong { font-size: 1.45rem; }
.model-line { width: 1px; height: 34px; margin: 0 auto; background: var(--line); }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.statement { padding-block: clamp(65px, 8vw, 100px); border-block: 1px solid var(--line); background: var(--surface); }
.statement-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; align-items: start; }
.statement-kicker { margin: 8px 0 0; color: var(--muted); font-size: .77rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.statement-text { max-width: 980px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; }

.section { padding-block: clamp(92px, 12vw, 155px); scroll-margin-top: 80px; }
.section-heading { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(330px, 1.2fr); column-gap: 70px; align-items: start; margin-bottom: 65px; }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 2; grid-row: 1 / span 2; margin: -9px 0 18px; font-size: clamp(3rem, 6vw, 6.6rem); line-height: .94; letter-spacing: -.055em; font-weight: 620; }
.section-heading > p:last-child { grid-column: 2; margin: 0; max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { min-height: 330px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-index { color: var(--muted); font-size: .78rem; font-weight: 760; }
.feature-card h3 { margin: auto 0 10px; font-size: 1.45rem; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); }
.release-strip { display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 30px; align-items: center; margin-top: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.release-strip > div { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal-dark); box-shadow: 0 0 0 5px rgba(129,199,46,.13); }
.release-strip p { margin: 0; color: var(--muted); font-size: .92rem; }
.release-strip a { font-size: .9rem; font-weight: 720; white-space: nowrap; }

.section-dark { background: var(--dark); color: var(--light); }
.section-heading-light > p:last-child, .section-dark .eyebrow { color: #9aa39c; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); }
.project-card { min-height: 340px; display: flex; flex-direction: column; padding: clamp(25px, 3vw, 38px); border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); background: var(--dark); }
.project-card-featured { grid-column: 1 / -1; min-height: 390px; background: var(--signal); color: #0d140a; }
.project-meta { display: flex; justify-content: space-between; gap: 20px; color: #8e9991; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.project-card-featured .project-meta { color: #486329; }
.project-card h3 { margin: auto 0 14px; font-size: clamp(2rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.045em; font-weight: 590; }
.project-card:not(.project-card-featured) h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.project-card p { max-width: 680px; margin: 0 0 25px; color: #acb4ae; }
.project-card-featured p { color: #30421e; }
.project-card a { width: fit-content; margin-top: 3px; font-size: .9rem; font-weight: 720; }

.principles-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles-list li { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 31px 0 34px; border-bottom: 1px solid var(--line); }
.principles-list > li > span { color: var(--muted); font-size: .77rem; font-weight: 760; letter-spacing: .08em; }
.principles-list h3 { margin: 0 0 5px; font-size: clamp(1.55rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.principles-list p { max-width: 770px; margin: 0; color: var(--muted); }

.identity-section { border-block: 1px solid var(--line); background: #dfe2d6; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.identity-grid h2 { max-width: 650px; margin: 0; font-size: clamp(3.2rem, 6vw, 6.5rem); line-height: .93; letter-spacing: -.055em; font-weight: 620; }
.identity-copy { padding-top: 37px; font-size: 1.08rem; }
.identity-copy p { margin: 0 0 18px; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 740; }

.contribute { padding-block: clamp(70px, 9vw, 115px); }
.contribute-panel { display: grid; grid-template-columns: 1.5fr .8fr; gap: 70px; padding: clamp(34px, 5vw, 64px); border-radius: 28px; background: var(--signal); }
.contribute-panel h2 { max-width: 790px; margin: 0 0 17px; font-size: clamp(2.8rem, 5vw, 5.8rem); line-height: .94; letter-spacing: -.055em; font-weight: 620; }
.contribute-panel p:not(.eyebrow) { max-width: 700px; margin: 0; color: #334523; }
.contribute-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 10px; }
.contribute-actions .button { width: 100%; }

.site-footer { padding-block: 70px 30px; background: var(--dark); color: var(--light); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; padding-bottom: 70px; }
.brand-footer { margin-bottom: 18px; }
.footer-grid p { max-width: 430px; margin: 0; color: #929b94; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 8px 30px; align-content: start; }
.footer-links a { color: #c8cec9; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid var(--dark-line); color: #7f8982; font-size: .78rem; }

@media (max-width: 960px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-model { max-width: 650px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow, .section-heading h2, .section-heading > p:last-child { grid-column: 1; grid-row: auto; }
  .section-heading h2 { margin-top: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 235px; }
  .release-strip { grid-template-columns: 1fr; gap: 12px; }
  .identity-grid, .contribute-panel { grid-template-columns: 1fr; gap: 40px; }
  .identity-copy { padding-top: 0; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 66px; flex-wrap: wrap; }

  /* Baseline: links remain visible and usable when JavaScript is unavailable. */
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; padding-bottom: 10px; }
  .site-nav a { padding: 6px 0; }

  /* Progressive enhancement: collapse only after site.js has loaded. */
  .js .nav-toggle { display: block; }
  .js .site-nav { position: absolute; inset: 66px 15px auto; width: auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.08); }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 12px; }
  .js .site-nav .nav-cta {
    margin-top: 6px;
    padding-top: 13px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 760;
  }
  .js .site-nav .nav-cta::after {
    content: "↗";
    float: right;
    color: var(--muted);
    font-weight: 600;
  }

  h1 { font-size: clamp(3.3rem, 16vw, 5.6rem); }
  .hero { padding-block: 78px 90px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .model-grid { grid-template-columns: 1fr; }
  .statement-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: 1; }
  .project-card { min-height: 310px; }
  .principles-list li { grid-template-columns: 55px 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

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