/* =========================================================
   Valor Data Systems — Brochure site styles
   Tokens per build spec (navy / off-white / brass)
   ========================================================= */

/* Self-hosted fonts — latin subset only (see fonts/) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --color-bg:        #F7F5F0;
  --color-surface:   #FFFFFF;
  --color-primary:   #0F1E3A;
  --color-primary-hover: #1B2C50;
  --color-accent:    #B8894A;
  --color-accent-hover: #A37838;
  --color-slate:     #3A4B6B;
  --color-text:      #2A2D34;
  --color-muted:     #6B6F76;
  --color-border:    #E5E2DA;
  --color-border-strong: #D5D0C3;

  /* Type */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Geometry */
  --radius-sm:  6px;
  --radius-md:  10px;
  --space:      8px;
  --max-width:  1200px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 30, 58, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 30, 58, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--color-accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; }
p  { margin: 0 0 16px; text-wrap: pretty; }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-slate);
  max-width: 68ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--color-primary); }
.brand-mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--color-primary);
  margin: 3px 0;
}

@media (max-width: 820px) {
  .nav-primary { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-primary {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px 24px;
    gap: 16px;
  }
  .site-header.open .nav-links {
    flex-direction: column;
    gap: 8px;
  }
  .site-header.open .nav-links a { padding: 10px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 4px 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--color-accent-hover); }
.btn-ghost .arrow { transition: transform 160ms ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; font-size: 1.2rem; }
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .hero { padding: 56px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */
.section-head {
  max-width: 780px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}

.alt-bg {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.dark-bg {
  background: var(--color-primary);
  color: #E8EBF2;
}
.dark-bg h1, .dark-bg h2, .dark-bg h3 { color: #FFFFFF; }
.dark-bg .eyebrow { color: #D7B87C; }
.dark-bg .lede { color: #BFC7D8; }

/* ---------- Two-column layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card-link:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-text); margin-bottom: 20px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #FAF6EF;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #EEE3CF;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Feature list (bullets with icons) ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}
.feature-list .bullet {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FAF6EF;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  border: 1px solid #EEE3CF;
}
.feature-list .bullet svg { width: 12px; height: 12px; }
.feature-list strong { color: var(--color-primary); font-weight: 600; }

/* Plain bullet row (no icon) */
.plain-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plain-list li {
  padding-left: 20px;
  position: relative;
  margin: 0;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--color-accent);
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border-strong) 8%, var(--color-border-strong) 92%, transparent);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding-right: 12px;
}
.process-step .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 20px;
  border: 4px solid var(--color-bg);
  box-sizing: content-box;
  margin-left: -4px;
}
.alt-bg .process-step { background: var(--color-surface); }
.alt-bg .process-step .step-num { border-color: var(--color-surface); }
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.97rem; color: var(--color-slate); margin: 0; }

@media (max-width: 880px) {
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #E8EBF2;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.045;
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; max-width: 26ch; }
.cta-band p { color: #BFC7D8; margin: 0; max-width: 54ch; }
.cta-band .btn-primary { background: var(--color-accent); }
.cta-band .btn-primary:hover { background: var(--color-accent-hover); }

/* ---------- Service page blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .svc-label {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-block h2 { font-size: 1.7rem; margin-bottom: 0; }
.service-block h4 { margin-top: 24px; margin-bottom: 8px; color: var(--color-primary); }
@media (max-width: 880px) {
  .service-block { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
}

/* ---------- Patterns / example systems ---------- */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.pattern-grid > div {
  padding: 28px 32px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.pattern-grid > div:nth-child(2n) { border-right: 0; }
.pattern-grid > div:nth-last-child(-n+2):not(:nth-child(2n+1) ~ div:last-child) { /* noop */ }
.pattern-grid > div:nth-last-child(1), .pattern-grid > div:nth-last-child(2) { border-bottom: 0; }
.pattern-grid h4 { color: var(--color-primary); margin-bottom: 6px; font-family: var(--font-heading); font-weight: 600; }
.pattern-grid p { color: var(--color-slate); margin: 0; font-size: 0.97rem; }
@media (max-width: 680px) {
  .pattern-grid { grid-template-columns: 1fr; }
  .pattern-grid > div { border-right: 0; }
  .pattern-grid > div:not(:last-child) { border-bottom: 1px solid var(--color-border); }
}

/* ---------- Fit / not-fit ---------- */
.fit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.fit-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.15rem;
}
.fit-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.fit-good .tag { background: #EEF3E7; color: #4A6A2E; }
.fit-bad .tag { background: #F4EFE7; color: #8A6A2E; }
@media (max-width: 700px) {
  .fit-cols { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--color-border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--color-accent);
  transition: transform 200ms ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p {
  margin: 12px 0 0;
  color: var(--color-text);
  max-width: 70ch;
}

/* ---------- About page ---------- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.principle {
  border-left: 2px solid var(--color-accent);
  padding: 4px 0 4px 20px;
}
.principle h4 { margin: 0 0 6px; font-family: var(--font-heading); font-weight: 600; }
.principle p { color: var(--color-slate); margin: 0; }
@media (max-width: 700px) { .principle-grid { grid-template-columns: 1fr; } }

.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
}
.founder-portrait {
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.founder-portrait picture,
.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
}
.founder-portrait img {
  object-fit: cover;
}
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .founder-portrait { max-width: 160px; }
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}
.contact-aside h1 { margin-bottom: 20px; }
.contact-aside .lede { margin-bottom: 32px; }
.contact-aside .alt-contact {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-slate);
  font-size: 0.97rem;
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.field label .opt { color: var(--color-muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 11px 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #FEFDFB;
  color: var(--color-text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 30, 58, 0.08);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 180px;
  max-height: 420px;
  overflow-y: auto;
  line-height: 1.5;
}
.form .btn { width: 100%; padding: 14px 22px; }
.form-privacy {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}
@media (max-width: 560px) {
  .form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  padding: 88px 0 48px;
  border-bottom: 1px solid var(--color-border);
}
.page-head h1 { margin-bottom: 20px; }
.page-head .lede { max-width: 68ch; }
@media (max-width: 768px) { .page-head { padding: 56px 0 36px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #BFC7D8;
  padding: 56px 0 32px;
  margin-top: 0;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer .brand { color: #fff; }
.site-footer .brand .brand-mark { color: var(--color-accent); }
.site-footer p { color: #BFC7D8; margin: 14px 0 0; max-width: 40ch; font-size: 0.95rem; }
.site-footer h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8EBF2;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #BFC7D8; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8E97AB;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .site-footer .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Hero diagram (custom SVG-ish layout) ---------- */
.diagram {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diagram-row {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.sheet {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #FDFCF8;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.sheet::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 6px;
  width: 40%;
}
.sheet .grid-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.sheet .grid-lines div {
  height: 3px;
  background: #E8E4D7;
  border-radius: 1px;
}
.sheet .grid-lines div.alt { background: #F1ECDC; }
.sheet.faded { opacity: 0.5; }
.arrow-right {
  display: flex;
  align-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.system-card {
  flex: 2;
  background: var(--color-primary);
  color: #E8EBF2;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.system-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,137,74,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,137,74,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}
.system-card > * { position: relative; z-index: 1; }
.system-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #fff;
}
.system-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
}
.system-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.system-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #BFC7D8;
}
.system-tile .num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
}
.system-tile .bar {
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 6px;
  width: 70%;
}
.system-tile .bar.short { width: 40%; background: #7B8AA6; }

/* Subtle scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
