/* ═══════════════════════════════════════════
   ARCUS DESIGN SYSTEM
   Shared styles for arcusx.ai
   ═══════════════════════════════════════════ */

:root {
  --ink: #0a0a0a;
  --paper: #f7f5f0;
  --paper-warm: #f0ece4;
  --stone: #8a8578;
  --stone-light: #b8b2a6;
  --accent: #1a4a3a;
  --accent-light: #2d7a5e;
  --accent-hover: #245e4a;
  --rule: #d4cfc5;
  --code-bg: #0d1117;
  --code-text: #c9d1d9;
  --code-keyword: #ff7b72;
  --code-string: #a5d6ff;
  --code-comment: #8b949e;
  --code-func: #d2a8ff;
  --code-type: #79c0ff;
  --serif: 'EB Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}


/* ═══ NAV ═══ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

nav.scrolled {
  border-bottom-color: var(--rule);
}

.nav-mark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-mark span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--stone);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.nav-cta {
  color: var(--accent);
  font-weight: 500;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-links a.nav-cta:hover {
  background: var(--accent);
  color: var(--paper);
}


/* ═══ FOOTER ═══ */

footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

footer .footer-mark {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--stone);
}

footer .footer-links {
  display: flex;
  gap: 2rem;
}

footer .footer-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--stone-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--ink);
}


/* ═══ SHARED LAYOUT ═══ */

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

section {
  padding: 6rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1100px;
}

section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

section h2 em {
  font-style: italic;
  color: var(--accent);
}

section p {
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
}

section p + p {
  margin-top: 1rem;
}


/* ═══ HERO ═══ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--stone);
  max-width: 640px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--stone-light);
  margin-top: 0.2rem;
}


/* ═══ GAP CONTRAST ═══ */

.gap-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 3rem;
  border-radius: 3px;
  overflow: hidden;
}

.gap-box {
  padding: 2.5rem;
  background: var(--paper-warm);
}

.gap-box.dark {
  background: var(--code-bg);
  color: var(--code-text);
}

.gap-box h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--stone);
}

.gap-box.dark h3 {
  color: var(--code-comment);
}

.gap-log {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--stone-light);
}

.gap-log .dim { opacity: 0.5; }

.gap-trace {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
}

.gap-trace .node-label { color: var(--code-func); }
.gap-trace .node-action { color: var(--code-text); }
.gap-trace .node-pass { color: #7ee787; }
.gap-trace .node-fail { color: var(--code-keyword); }
.gap-trace .node-score { color: var(--code-string); }


/* ═══ PROTOCOL STACK ═══ */

.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.stack-layer {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.stack-layer:last-child {
  border-bottom: 1px solid var(--rule);
}

.stack-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.15rem;
}

.stack-desc h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.stack-desc p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--stone);
  max-width: 580px;
}


/* ═══ CODE BLOCK ═══ */

.code-block {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: attr(data-label);
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--code-comment);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-block pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--code-text);
}

.kw { color: var(--code-keyword); }
.fn { color: var(--code-func); }
.st { color: var(--code-string); }
.cm { color: var(--code-comment); }
.tp { color: var(--code-type); }


/* ═══ REGULATORY ═══ */

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.reg-card {
  padding: 2rem;
  background: var(--paper-warm);
  border-radius: 3px;
  border-left: 2px solid var(--accent);
}

.reg-card h3 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.reg-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--stone);
}

.reg-card .reg-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}


/* ═══ ARCHITECTURE DIAGRAM ═══ */

.arch-diagram {
  margin-top: 3rem;
  padding: 3rem;
  background: var(--paper-warm);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  justify-content: center;
}

.arch-box {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 1rem 1.8rem;
  text-align: center;
  border-radius: 2px;
  flex: 1;
  max-width: 280px;
}

.arch-box.governance { background: var(--accent); color: var(--paper); font-weight: 500; }
.arch-box.model { background: var(--ink); color: var(--code-text); }
.arch-box.infra { background: var(--stone); color: var(--paper); }

.arch-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--stone-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 70px;
  text-align: right;
}

.arch-connector {
  width: 1px;
  height: 24px;
  background: var(--rule);
  margin: 0 auto;
}

.arch-feeds {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-feeds-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--stone-light);
  border-radius: 1px;
}


/* ═══ PAPER CALLOUT ═══ */

.paper-callout {
  margin-top: 3rem;
  padding: 2.5rem 3rem;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.paper-callout h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: #e6e1d6;
  margin-bottom: 0.5rem;
}

.paper-callout p {
  font-size: 0.88rem;
  color: var(--code-comment);
  line-height: 1.7;
  max-width: 500px;
}

.paper-callout a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.paper-callout a:hover {
  background: var(--accent-light);
  color: var(--code-bg);
}


/* ═══ QUOTE ═══ */

.section-quote {
  padding: 5rem 3rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-quote blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.8;
}

.section-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--stone);
  letter-spacing: 0.04em;
}


/* ═══ CONTACT ═══ */

.contact {
  text-align: center;
  padding: 8rem 3rem;
}

.contact h2 { margin-bottom: 1rem; }

.contact p {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--accent);
  text-decoration: none;
  padding: 0.8rem 2.5rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.contact-cta:hover { background: var(--accent-light); }

.contact-email {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--stone);
}

.contact-email a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}

.contact-email a:hover { color: var(--accent); }


/* ═══ BLOG INDEX ═══ */

.blog-header {
  padding: 8rem 3rem 3rem;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.blog-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-header h1 em { font-style: italic; color: var(--accent); }

.blog-header p {
  font-size: 1.05rem;
  color: var(--stone);
  line-height: 1.8;
  max-width: 580px;
}

.blog-list {
  padding: 2rem 3rem 6rem;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.blog-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  transition: background 0.2s;
}

.blog-post-card:last-child { border-bottom: 1px solid var(--rule); }
.blog-post-card:hover .blog-post-title { color: var(--accent); }

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.blog-post-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--stone-light);
  letter-spacing: 0.04em;
}

.blog-post-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(26,74,58,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.blog-post-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.blog-post-excerpt {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.7;
  max-width: 600px;
}

.blog-post-read {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 0.8rem;
  display: inline-block;
  letter-spacing: 0.03em;
}


/* ═══ BLOG ARTICLE ═══ */

.article {
  padding: 8rem 3rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.article-back {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--stone-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.article-back:hover { color: var(--accent); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--stone-light);
  letter-spacing: 0.04em;
}

.article-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(26,74,58,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.article h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.article-tldr {
  padding: 1.5rem 2rem;
  background: var(--paper-warm);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
  margin-bottom: 3rem;
}

.article-tldr strong {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.article-tldr p {
  font-size: 1rem;
  color: var(--stone);
  line-height: 1.7;
}

.article-tldr a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.article-tldr a:hover { border-color: var(--accent); }

.article h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.article h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.article p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1rem;
}

.article ul, .article ol { margin: 1rem 0 1.5rem 1.2rem; }
.article li { font-size: 1rem; line-height: 1.8; color: var(--ink); margin-bottom: 0.4rem; padding-left: 0.3rem; }
.article ol { list-style: decimal; }

.article strong { font-weight: 600; }

.article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.article a:hover { border-color: var(--accent); }

.contrast-block { margin: 1.5rem 0; }
.contrast-today { font-family: var(--sans); font-size: 0.88rem; color: var(--stone); padding: 0.8rem 1.2rem; background: var(--paper-warm); border-radius: 3px 3px 0 0; }
.contrast-today strong { color: var(--stone); }
.contrast-irg { font-family: var(--sans); font-size: 0.88rem; color: var(--code-text); padding: 0.8rem 1.2rem; background: var(--code-bg); border-radius: 0 0 3px 3px; }
.contrast-irg strong { color: #7ee787; }

.spec-list { margin: 1.5rem 0 2rem; padding: 0; list-style: none; counter-reset: spec; }
.spec-list li { counter-increment: spec; font-size: 0.95rem; line-height: 1.8; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 0.8rem; }
.spec-list li::before { content: counter(spec); font-family: var(--mono); font-size: 0.72rem; color: var(--accent); background: rgba(26,74,58,0.08); min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 2px; margin-top: 0.2rem; flex-shrink: 0; }

.stressor-list { margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.stressor-list li { font-size: 0.95rem; line-height: 1.8; padding: 0.5rem 0 0.5rem 1rem; border-bottom: 1px solid var(--rule); position: relative; }
.stressor-list li::before { content: ''; position: absolute; left: 0; top: 0.95rem; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.dim-table { width: 100%; margin: 1.5rem 0 2rem; border-collapse: collapse; }
.dim-table th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); text-align: left; padding: 0.8rem 1rem; border-bottom: 2px solid var(--rule); }
.dim-table td { font-size: 0.92rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dim-table td:first-child { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); font-weight: 500; white-space: nowrap; }
.dim-table tr:last-child td { border-bottom: 2px solid var(--rule); }

.links-block { padding: 2rem; background: var(--code-bg); border-radius: 3px; margin: 2rem 0; }
.links-block h3 { font-family: var(--mono); font-size: 0.72rem; color: var(--stone-light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.links-block a { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--accent-light); text-decoration: none; padding: 0.4rem 0; border-bottom: none; transition: color 0.2s; }
.links-block a:hover { color: #7ee787; border-bottom: none; }

.article-closing { font-style: italic; color: var(--stone); border-left: 2px solid var(--accent); padding-left: 1.5rem; margin: 3rem 0 2rem; }
.article-closing p { color: var(--stone); }


/* ═══ SCHEDULE FORM ═══ */

.page-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 60px;
}

.context {
  padding: 6rem 4rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  margin-left: auto;
}

.context-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.context h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.context h1 em { font-style: italic; color: var(--accent); }

.context-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--stone);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.context-details { opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards; }

.context-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.context-detail:last-child { border-bottom: 1px solid var(--rule); }

.context-detail-icon {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(26,74,58,0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.context-detail-text { display: flex; flex-direction: column; }
.context-detail-text strong { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.context-detail-text span { font-family: var(--sans); font-size: 0.8rem; color: var(--stone); margin-top: 0.15rem; }

.context-alt { margin-top: 2.5rem; opacity: 0; animation: fadeUp 0.7s ease 0.65s forwards; }
.context-alt p { font-family: var(--sans); font-size: 0.82rem; color: var(--stone-light); line-height: 1.7; }
.context-alt a { color: var(--stone); text-decoration: none; border-bottom: 1px solid var(--rule); transition: color 0.2s, border-color 0.2s; }
.context-alt a:hover { color: var(--accent); border-color: var(--accent); }

.form-panel {
  padding: 6rem 3rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.form-card { background: var(--paper-warm); border-radius: 4px; padding: 2.5rem; }
.form-card h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 2rem; }

.field { margin-bottom: 1.5rem; }
.field label { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--stone); margin-bottom: 0.45rem; letter-spacing: 0.02em; }
.field label .req { color: var(--accent); margin-left: 2px; }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.88rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px; padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; -webkit-appearance: none; appearance: none;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,74,58,0.08);
}

.field input::placeholder, .field textarea::placeholder { color: var(--stone-light); font-size: 0.85rem; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8578' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn {
  width: 100%; font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  color: var(--paper); background: var(--accent); border: none; border-radius: 2px;
  padding: 0.85rem 2rem; cursor: pointer; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s; margin-top: 0.5rem;
}

.submit-btn:hover { background: var(--accent-hover); }
.submit-btn:active { transform: scale(0.995); }

.form-note { font-family: var(--sans); font-size: 0.72rem; color: var(--stone-light); text-align: center; margin-top: 1.2rem; line-height: 1.6; }

.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success.visible { display: block; }
.form-success .check-circle { width: 48px; height: 48px; border-radius: 50%; background: rgba(26,74,58,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.form-success .check-circle svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 2.5; fill: none; }
.form-success h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 0.6rem; }
.form-success p { font-family: var(--sans); font-size: 0.88rem; color: var(--stone); line-height: 1.7; }


/* ═══ ANIMATIONS ═══ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .nav-links .hide-mobile { display: none; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .gap-contrast { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .stack-layer { grid-template-columns: 1fr; gap: 0.5rem; }
  .paper-callout { grid-template-columns: 1fr; text-align: center; }
  .paper-callout a { justify-self: center; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .arch-row { flex-direction: column; }
  .arch-label { text-align: center; min-width: auto; }
  .contact { padding: 5rem 1.5rem; }
  .section-quote { padding: 3rem 1.5rem; }
  .code-block { padding: 1.5rem; }
  .code-block pre { font-size: 0.7rem; }
  .gap-box { padding: 1.5rem; }
  .blog-header { padding: 6rem 1.5rem 2rem; }
  .blog-header h1 { font-size: 1.8rem; }
  .blog-list { padding: 1rem 1.5rem 4rem; }
  .article { padding: 6rem 1.5rem 3rem; }
  .article h1 { font-size: 1.6rem; }
  .page-split { grid-template-columns: 1fr; }
  .context { padding: 5rem 2rem 2rem; max-width: 100%; margin: 0; }
  .form-panel { padding: 2rem; max-width: 100%; }
  .context h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}
