:root {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --ink: #151515;
  --muted: #5d5a52;
  --soft: #ece5d8;
  --line: #d9d1c3;
  --accent: #234d44;
  --accent-soft: #e0ebe6;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 28px 80px rgba(28, 26, 22, 0.09);
  --shell: min(1120px, calc(100vw - 40px));
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(224, 235, 230, 0.62), transparent 34rem),
    linear-gradient(180deg, var(--bg), #fbf7ef 52%, var(--bg));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p, h1, h2, h3 { margin-top: 0; }
p { line-height: 1.65; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-160%); background: var(--ink); color: white; padding: 10px 14px; border-radius: 999px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 238, 0.84); border-bottom: 1px solid rgba(217, 209, 195, 0.72); backdrop-filter: blur(18px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .nav-links, .footer-grid nav { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 760; letter-spacing: -0.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--surface); font-weight: 800; }
.nav-links { gap: 26px; color: var(--muted); font-size: 0.95rem; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.hero { padding-top: clamp(80px, 10vw, 148px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(42px, 7vw, 92px); align-items: center; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1 { max-width: 820px; margin-bottom: 26px; font-family: var(--serif); font-size: clamp(4.2rem, 9vw, 8.4rem); line-height: 0.9; letter-spacing: -0.075em; }
h2 { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.055em; }
h3 { margin-bottom: 14px; font-size: 1.5rem; letter-spacing: -0.045em; }
.hero-text { max-width: 650px; color: var(--muted); font-size: clamp(1.16rem, 2vw, 1.36rem); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 760; cursor: pointer; }
.button.primary { background: var(--ink); color: var(--surface); box-shadow: 0 12px 30px rgba(21, 21, 21, 0.15); }
.button.primary:hover { background: #34302a; color: white; }
.button.secondary { border-color: var(--line); background: rgba(255, 253, 248, 0.75); }
.mission-card, .system-card, .callout-panel, .contact-panel, .paper-card, .legal-panel { border: 1px solid rgba(217, 209, 195, 0.9); background: rgba(255, 253, 248, 0.76); box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.mission-card { padding: 28px; }
.card-label { margin-bottom: 18px; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.stack-line { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--muted); font-weight: 720; }
.stack-line.strong { color: var(--ink); background: var(--accent-soft); border-color: rgba(35, 77, 68, 0.18); }
.connector { width: 1px; height: 24px; margin: 8px auto; background: var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 92px); align-items: start; }
.copy-block { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.copy-block p:last-child { margin-bottom: 0; }
.section-head { max-width: 860px; margin-bottom: 42px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; }
.system-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.system-card { min-height: 250px; padding: 28px; }
.system-card.featured { background: linear-gradient(180deg, rgba(224, 235, 230, 0.72), rgba(255, 253, 248, 0.88)); }
.system-card p:not(.card-label) { color: var(--muted); font-size: 1.02rem; }
.callout-panel, .contact-panel { padding: clamp(28px, 5vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.callout-panel p { max-width: 620px; color: var(--muted); }
.contact-panel { align-items: start; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr); }
.text-link { color: var(--accent); font-weight: 780; }
.contact-form { display: grid; gap: 10px; }
label { font-weight: 740; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font: inherit; padding: 13px 14px; }
textarea { resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.site-footer { padding: 34px 0 46px; color: var(--muted); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-grid p { margin: 0; }
.footer-grid nav { gap: 18px; flex-wrap: wrap; font-size: 0.93rem; }
.page-hero { padding-top: clamp(72px, 9vw, 118px); padding-bottom: clamp(42px, 7vw, 80px); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.2rem; }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paper-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.paper-card p { color: var(--muted); }
.paper-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-panel { padding: clamp(28px, 6vw, 72px); }
.legal-panel h2 { margin-top: 46px; font-size: clamp(2rem, 4vw, 3.4rem); }
.legal-panel h2:first-child { margin-top: 0; }
.legal-panel p, .legal-panel li { color: var(--muted); line-height: 1.7; }
.legal-panel ul { padding-left: 22px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .two-col, .system-grid, .contact-panel, .paper-grid { grid-template-columns: 1fr; }
  .callout-panel, .footer-grid { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --shell: min(100vw - 28px, 1120px); }
  h1 { font-size: clamp(3.55rem, 18vw, 5.2rem); }
  .hero-actions, .paper-actions { flex-direction: column; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
