/* site.css: shared styles for index.php, map.php, content.php and completeness.php.
   Colors live in :root. Blue (--native) marks content from the Internet, orange (--derived)
   marks content generated from it, brown (#8a3b05) marks second-level derived content. */
:root {
  --navy: #000080;
  --red: #cc0000;
  --amber: #d4600a;
  --orange: #FFC067;
  --blue: #68B6EF;
  --bg: #ffffff;
  --bg2: #f5f5f8;
  --text: #1a1a2e;
  --muted: #666680;
  --border: rgba(0,0,0,0.09);
  --native: #000080;
  --native-bg: rgba(0,0,128,0.06);
  --derived: #d4600a;
  --derived-bg: rgba(212,96,10,0.07);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  padding-top: 93px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--red); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-home { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 60px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-company { white-space: nowrap; font-size: 22.5px; font-weight: 500; color: #3a3a6e; letter-spacing: -0.01em; }
.nav-logo-credit { margin-top: 3px; font-size: 13.75px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-home:hover .nav-logo-company { color: var(--red); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-size: 17.5px; color: var(--muted); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-contact {
  color: var(--navy); border: 1.5px solid var(--navy); background: transparent;
  padding: 8.5px 22px; border-radius: 6px; font-size: 17.5px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-contact:hover { background: var(--navy); color: #fff; }
.nav-cta {
  white-space: nowrap;
  background: var(--red); color: #fff; padding: 10px 24px; border-radius: 6px;
  font-size: 17.5px; font-weight: 500; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── SHARED LAYOUT ── */
section { padding: 88px 48px; }
.inner { max-width: 1140px; margin: 0 auto; width: 100%; }
.label {
  display: inline-block; margin-bottom: 14px;
  font-size: 13.75px; font-weight: 700; color: var(--amber);
  letter-spacing: 0.14em; text-transform: uppercase;
}
h2 { font-size: 52.5px; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
h3.group-title {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 28px; font-weight: 700; margin: 0 0 6px;
}
.group-sub { font-size: 18.75px; color: var(--muted); margin-bottom: 22px; max-width: 760px; }
.sub { font-size: 22.5px; color: var(--muted); max-width: 680px; margin-bottom: 44px; }
.new-badge {
  display: inline-block; vertical-align: 3px; margin-left: 8px;
  background: var(--red); color: #fff; border-radius: 4px;
  padding: 2px 7px; font-size: 11.25px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.kind-tag {
  display: inline-block; border-radius: 4px; padding: 3px 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.kind-tag.native  { background: var(--native);  color: #fff; }
.kind-tag.derived { background: var(--derived); color: #fff; }

/* ── HERO ── */
.hero { padding: 64px 48px 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -220px; right: -120px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,0,128,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1140px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,128,0.07); border: 1px solid rgba(104,182,239,0.4);
  border-radius: 4px; padding: 6px 14px; margin-bottom: 22px;
  font-size: 13.75px; font-weight: 600; color: var(--amber);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
h1 { font-size: 72.5px; font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero-sub { font-size: 23.75px; color: var(--muted); margin-bottom: 34px; max-width: 540px; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 17.5px; color: var(--muted); max-width: 530px; }
.hero-note a { color: var(--red); font-weight: 600; }
.hero-note a:hover { text-decoration: underline; }
.btn-primary {
  background: var(--red); color: #fff; padding: 15px 32px; border-radius: 6px;
  font-size: 20px; font-weight: 600; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.87; }
.btn-secondary {
  color: var(--navy); border: 1.5px solid var(--navy); padding: 13.5px 30px;
  border-radius: 6px; font-size: 20px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ── PROOF CARD ── */
.proof-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 30px; box-shadow: 0 20px 50px rgba(0,0,64,0.08);
}
.proof-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
  font-size: 13.75px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.proof-badge { background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; }
.proof-group {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.proof-group.native  { color: var(--native); }
.proof-group.derived { color: var(--derived); }
.proof-group span:last-child { font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-size: 13.75px; }
.proof-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-top: 1px solid var(--border); font-size: 17.5px;
}
.proof-row span:last-child {
  color: var(--muted); font-size: 13.75px;
  letter-spacing: 0.05em; text-transform: uppercase; text-align: right;
}
.proof-row.derived span:first-child { color: #7a3a06; }
.proof-link { display: inline-block; margin-top: 16px; font-size: 17.5px; font-weight: 600; color: var(--red); }
.proof-link:hover { text-decoration: underline; }

/* ── NATIVE vs DERIVED CONTRAST ── */
.contrast {
  display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch;
  margin-bottom: 30px;
}
.contrast-col {
  border-radius: 12px; padding: 30px 30px 26px; border: 1px solid var(--border); background: #fff;
}
.contrast-col.native  { border-top: 5px solid var(--native); }
.contrast-col.derived { border-top: 5px solid var(--derived); }
.contrast-col h3 { font-size: 30px; line-height: 1.15; margin: 12px 0 10px; }
.contrast-col.native h3 { color: var(--native); }
.contrast-col.derived h3 { color: var(--derived); }
.contrast-col p.lead { font-size: 19.375px; color: var(--muted); margin-bottom: 16px; }
.contrast-col ul { list-style: none; }
.contrast-col li {
  position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--border);
  font-size: 17.5px; line-height: 1.5;
}
.contrast-col li::before { content: '◆'; position: absolute; left: 2px; top: 10px; font-size: 11px; }
.contrast-col.native li::before { color: var(--native); }
.contrast-col.derived li::before { color: var(--derived); }
.contrast-col li b { color: var(--text); }
.contrast-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.contrast-icons img {
  width: 38px; height: 38px; object-fit: contain; border-radius: 8px; padding: 4px;
  background: var(--bg2); border: 1px solid var(--border);
}
.contrast-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
}
.contrast-arrow .arr { font-size: 36px; color: var(--amber); line-height: 1; }

.universal {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 24px 28px; border-radius: 10px; background: #fff;
  border: 1px solid var(--border); border-left: 4px solid var(--red);
}
.universal-mark {
  width: 64px; height: 64px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px;
  background: var(--bg2); border: 1px solid var(--border);
}
.universal-mark i { display: block; border-radius: 3px; }
.universal h4 { font-size: 22.5px; margin-bottom: 4px; }
.universal p { font-size: 18.125px; color: var(--muted); }

.compare {
  width: 100%; border-collapse: collapse; margin-top: 30px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 17.5px;
}
.compare th, .compare td { padding: 12px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.compare thead th { border-top: none; font-size: 13.75px; letter-spacing: 0.1em; text-transform: uppercase; }
.compare thead th:nth-child(2) { color: var(--native); }
.compare thead th:nth-child(3) { color: var(--derived); }
.compare tbody th { font-weight: 700; color: var(--text); width: 24%; }
.compare td { color: var(--muted); }
.compare-wrap { overflow-x: auto; }

/* ── CONTENT GRID ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,64,0.09); border-color: rgba(104,182,239,0.6); }
.card.native  { border-top: 3px solid var(--native); }
.card.derived { border-top: 3px solid var(--derived); background: linear-gradient(180deg, var(--derived-bg), #fff 60%); }
.card-icon {
  display: block; width: 40px; height: 40px;
  margin-bottom: 14px; object-fit: contain;
}
.row-icon {
  width: 22px; height: 22px; object-fit: contain;
  margin-right: 10px; vertical-align: -6px;
}
.proof-row span:first-child { display: inline-flex; align-items: center; }
.card-name { font-size: 21.25px; font-weight: 700; margin-bottom: 7px; }
.card-desc { font-size: 18.125px; color: var(--muted); line-height: 1.55; }
.card-from {
  margin-top: 12px; font-size: 13.75px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--derived);
}
.group-gap { height: 44px; }
.group-gap.small { height: 34px; }
.kind-tag.derived.meta { background: #fff; color: var(--derived); border: 1.5px solid var(--derived); padding: 1.5px 8.5px; }
.card.derived.meta { border-top-style: dashed; background: #fff; }
.glyph {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px;
  color: var(--derived);
}
.glyph svg { width: 34px; height: 34px; }
.glyph.stars { width: auto; justify-content: flex-start; font-size: 22px; letter-spacing: 1px; color: #e3a008; }
.glyph.stars .off { color: #d9d9e3; }
.row-glyph { display: inline-flex; width: 22px; height: 22px; margin-right: 10px; color: var(--derived); align-items: center; justify-content: center; }
.row-glyph svg { width: 18px; height: 18px; }
.mix {
  margin-top: 22px; padding: 24px 26px; border-radius: 12px; border: 1px solid rgba(138,59,5,0.3);
  background: linear-gradient(180deg, rgba(138,59,5,0.06), #fff 70%);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: center;
}
.mix h4 { font-size: 22.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.mix h4 img { width: 32px; height: 32px; object-fit: contain; }
.mix p { font-size: 17.5px; color: var(--muted); }
.mix-stage { display: flex; flex-direction: column; gap: 12px; }
.mix-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mix-k { flex: 0 0 100%; margin-bottom: -4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mix-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--border); font-size: 16.25px; font-weight: 600;
}
.mix-pill img { width: 22px; height: 22px; object-fit: contain; }
.mix-pill small { font-size: 11.25px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; color: #fff; }
.mix-pill.n { border-color: rgba(0,0,128,0.35); } .mix-pill.n small { background: var(--native); }
.mix-pill.d { border-color: rgba(212,96,10,0.5); } .mix-pill.d small { background: var(--derived); }
.mix-pill.d2 { border-color: rgba(138,59,5,0.5); } .mix-pill.d2 small { background: #8a3b05; }
.mix-or { font-size: 13.75px; color: var(--muted); font-weight: 700; }
@media (max-width: 1100px) { .mix { grid-template-columns: 1fr; gap: 18px; } }
.mix.fws { border-color: rgba(204,0,0,0.3); background: linear-gradient(180deg, rgba(204,0,0,0.05), #fff 70%); margin-top: 26px; }
.mix.fws h4 svg { flex: 0 0 auto; }
.mix-pill.fws-go { background: var(--navy); color: #fff; border-color: var(--navy); padding-left: 14px; }
.mix.fws .mix-pill { font-size: 15px; }
.mini-stars { color: #e3a008; letter-spacing: 1px; margin-left: 6px; font-size: 13.75px; }
.mini-stars .off { color: #d0d0dc; }
.kind-tag.derived.l2 { background: #8a3b05; }
.card.derived.l2 { border-top-color: #8a3b05; }
.card.derived.l2 .card-from { color: #8a3b05; }
.proof-row.derived.l2 span:first-child { padding-left: 14px; }
.proof-row.derived.l2 span:first-child::before { content: '↳'; margin: 0 6px 0 -14px; color: var(--derived); }


/* derivation map */
.map-section { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map { margin-bottom: 30px; padding: 26px 28px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 18px; }
.map-head h4 { font-size: 22.5px; margin-bottom: 4px; }
.map-head p { font-size: 17.5px; color: var(--muted); max-width: 720px; }
.map-head p b { color: var(--text); }
.map-legend { list-style: none; display: grid; grid-template-columns: auto auto; gap: 8px 18px; flex: 0 0 auto;
  font-size: 13.75px; font-weight: 700; color: var(--muted); }
.map-legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lg { display: inline-block; width: 22px; height: 14px; border-radius: 4px; border: 1.5px solid; }
.lg.n { background: #eef0f9; border-color: var(--native); }
.lg.d1 { background: #fdf1e8; border-color: var(--derived); }
.lg.d2 { background: #f5ebe3; border-color: #8a3b05; }
.lg.in { background: #fff; border-color: var(--native); border-style: dashed; }
.lg.data { background: #fff; border-color: var(--derived); border-style: dashed; }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map.cycle { margin-bottom: 30px; }
.map-svg { display: block; width: 100%; min-width: 860px; height: auto; background: var(--bg2); border-radius: 10px; }
.map-hint { display: none; margin-top: 8px; font-size: 13.75px; color: var(--muted); text-align: center; }
@media (max-width: 960px) {
  .map { padding: 20px 16px 16px; }
  .map-head { flex-direction: column; gap: 14px; }
  .map-hint { display: block; }
}

/* derivation chain */
.chain {
  margin-bottom: 30px; padding: 26px 28px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
}
.chain-head h4 { font-size: 22.5px; margin-bottom: 4px; }
.chain-head p { font-size: 17.5px; color: var(--muted); margin-bottom: 20px; max-width: 820px; }
.chain-steps { list-style: none; display: flex; align-items: stretch; gap: 0; }
.chain-node {
  flex: 1 1 0; min-width: 0; border-radius: 10px; padding: 14px 16px; border: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.chain-node b { font-size: 19.375px; line-height: 1.25; }
.chain-k { font-size: 11.875px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.chain-s { font-size: 15px; color: var(--muted); line-height: 1.35; }
.chain-node.seed { background: var(--native-bg); border-color: rgba(0,0,128,0.25); }
.chain-node.seed .chain-k { color: var(--native); }
.chain-node.d1 { background: var(--derived-bg); border-color: rgba(212,96,10,0.35); }
.chain-node.d1 .chain-k { color: var(--derived); }
.chain-node.d2 { background: rgba(138,59,5,0.08); border-color: rgba(138,59,5,0.4); }
.chain-node.d2 .chain-k { color: #8a3b05; }
.chain-edge {
  flex: 0 0 116px; display: flex; align-items: center; justify-content: center; position: relative;
  padding: 0 8px;
}
.chain-edge::before {
  content: ''; position: absolute; left: 6px; right: 12px; top: 64%; border-top: 2px dashed rgba(212,96,10,0.55);
}
.chain-edge::after {
  content: ''; position: absolute; right: 4px; top: calc(64% - 5px);
  border-left: 9px solid var(--amber); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.chain-edge span {
  position: relative; padding: 0 4px; text-align: center; transform: translateY(-14px);
  font-size: 12.5px; font-weight: 700; color: var(--amber); line-height: 1.3;
}
@media (max-width: 1000px) {
  .chain-steps { flex-direction: column; }
  .chain-edge { flex: 0 0 auto; height: 52px; justify-content: flex-start; padding-left: calc(50% + 12px); }
  .chain-edge span { transform: none; text-align: left; }
  .chain-edge::before { left: 50%; right: auto; top: 4px; bottom: 10px; border-top: none; border-left: 2px dashed rgba(212,96,10,0.55); }
  .chain-edge::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 2px;
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--amber); border-bottom: none; }
}
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.card.wide .card-icon { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
.card.wide .card-name { margin: 0; }
@media (max-width: 560px) { .card.wide { display: block; } .card.wide .card-icon { margin-bottom: 14px; width: 40px; height: 40px; } }

/* ── COMPLETENESS LOOP ── */
.loop { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.loop-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px;
  display: flex; flex-direction: column;
}
.loop-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.loop-card h3 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.loop-card p { font-size: 17.5px; color: var(--muted); margin-bottom: 12px; }
.loop-card ul { list-style: none; margin-top: auto; }
.loop-card li { font-size: 16.25px; padding: 7px 0 7px 20px; border-top: 1px solid var(--border); position: relative; }
.loop-card li::before { content: '›'; position: absolute; left: 4px; top: 5px; color: var(--red); font-weight: 700; }
.loop-arrow { display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--amber); }
.loop-return {
  margin-top: 18px; text-align: center; font-size: 17.5px; color: var(--muted);
}
.loop-return b { color: var(--text); }
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.signal { padding: 20px 22px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); }
.signal h4 { font-size: 19.375px; margin-bottom: 4px; }
.signal p { font-size: 16.875px; color: var(--muted); }

.engine {
  display: grid; grid-template-columns: auto auto 1fr; gap: 22px; align-items: center;
  margin-bottom: 26px; padding: 18px 22px; border-radius: 12px; background: var(--navy); color: #fff;
}
.engine-l { display: flex; flex-direction: column; line-height: 1.25; }
.engine-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.engine-l b { font-size: 18.75px; }
.engine-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.engine-chips span { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.55); background: rgba(255,255,255,0.12); font-size: 15px; font-weight: 700; white-space: nowrap; }
.engine-chips i { font-style: normal; color: var(--orange); font-weight: 700; }
.engine p { font-size: 16.25px; color: rgba(255,255,255,0.85); }
@media (max-width: 1100px) { .engine { grid-template-columns: 1fr; gap: 12px; } }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18.75px; font-weight: 700; margin-bottom: 15px;
}
.step-title { font-size: 22.5px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 18.75px; color: var(--muted); }
.step-desc .q { color: var(--amber); font-style: italic; }

/* ── CTA ── */
.cta { background: var(--navy); color: #fff; text-align: center; padding: 92px 48px; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta em { color: var(--orange); }
.cta p { font-size: 22.5px; color: rgba(255,255,255,0.78); margin-bottom: 34px; }
.cta .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta .btn-secondary:hover { background: #fff; color: var(--navy); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin: 24px 0 0; font-size: 17.5px; color: rgba(255,255,255,0.7); }
.cta-note a { color: var(--orange); font-weight: 600; }
.cta-note a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  display: grid; grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 40px; align-items: center;
  padding: 52px 48px; background: var(--bg2); border-top: 1px solid var(--border);
}
.footer-contact { display: flex; flex-direction: column; gap: 3px; font-size: 16.25px; color: var(--muted); }
.footer-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.footer-name { font-size: 20px; font-weight: 700; color: var(--text); }
.footer-contact a:hover { color: var(--red); }
.footer-logo { display: flex; justify-content: center; width: 100%; }
.footer-logo a { display: block; width: 100%; max-width: 680px; }
.footer-logo img {
  display: block; width: 100%; height: auto;
  mix-blend-mode: multiply;
}
.footer-explore { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 16.25px; color: var(--muted); }
.footer-explore a:hover { color: var(--text); }
.footer-copy { margin-top: 10px; font-size: 13.75px; letter-spacing: 0.04em; }

/* ── MOTION ── */
/* Only hide for the fade-in when JavaScript is running, so content never stays invisible. */
.js .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-dot { animation: none; }
}
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 1440px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 16.25px; }
}
@media (max-width: 1240px) {
  .nav-links, .nav-contact { display: none; }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .grid.four { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); padding: 2px 0; }
  .signals { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  nav { padding: 12px 20px; }
  .nav-links, .nav-contact { display: none; }
  .nav-logo img { height: 46px; }
  body { padding-top: 75px; }
  section { padding: 60px 20px; }
  .hero { padding: 44px 20px 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  h1 { font-size: 50px; }
  h2 { font-size: 40px; }
  .hero-sub { font-size: 21.25px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .contrast { grid-template-columns: 1fr; gap: 6px; }
  .contrast-arrow { flex-direction: row; padding: 8px 0; }
  .contrast-arrow .arr { transform: rotate(90deg); }
  .cta { padding: 68px 20px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .footer-contact, .footer-explore { align-items: center; }
  .footer-logo a { max-width: 480px; }
}
@media (max-width: 560px) {
  .grid, .grid.four { grid-template-columns: 1fr; }
  .steps, .signals { grid-template-columns: 1fr; }
  h1 { font-size: 41.25px; }
  .contrast-col { padding: 24px 20px; }
  .universal { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 10px 12px; }
}

/* ── SIMPLIFIED SITE ── */
.nav-links a.on { color: var(--red); font-weight: 600; }
.subnav { background: var(--navy); }
.subnav .inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 48px; max-width: none; }
.subnav a { color: rgba(255,255,255,.82); font-size: 16.25px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; }
.subnav a:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.subnav a.on { color: var(--navy); background: #fff; }
.subnav a.home { color: var(--orange); margin-right: 10px; padding-left: 0; }
.page-intro { padding-bottom: 20px; }
.page-intro .sub { margin-bottom: 0; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.path:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,64,.09); border-color: rgba(104,182,239,.6); }
.path-icons { display: flex; gap: 6px; margin-bottom: 16px; }
.path-icons img { width: 32px; height: 32px; object-fit: contain; }
.path h3 { font-size: 25px; line-height: 1.2; margin-bottom: 8px; }
.path p { font-size: 17.5px; color: var(--muted); margin-bottom: 18px; }
.path-go { margin-top: auto; font-size: 17.5px; font-weight: 700; color: var(--red); }
.home-steps { margin-bottom: 52px; }
.next-page { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 36px 48px; border-top: 1px solid var(--border); }
.next-page a { font-size: 18.75px; font-weight: 700; color: var(--navy); }
.next-page a:hover { color: var(--red); }
@media (max-width: 960px) {
  .subnav .inner { padding: 10px 20px; }
  .paths { grid-template-columns: 1fr; }
  .next-page { padding: 28px 20px; }
}

/* The Graphic: caption under the derivation map */
.map-head.end { justify-content: flex-end; margin-bottom: 14px; }
.map-notes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 20px; }
.map-notes li { position: relative; padding-left: 24px; font-size: 16.875px; line-height: 1.5; color: var(--muted); }
.map-notes li b { color: var(--text); }
.map-notes li::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; }
.map-notes .k-in::before  { border-color: var(--native); border-style: dashed; background: #fff; }
.map-notes .k-n::before   { border-color: var(--native); background: #eef0f9; }
.map-notes .k-d1::before  { border-color: var(--derived); background: #fdf1e8; }
.map-notes .k-d2::before  { border-color: #8a3b05; background: #f5ebe3; }
.map-notes .k-fws::before { border-color: var(--derived); border-style: dashed; background: #fdf1e8; }
.map-notes .k-pub::before { border-color: var(--red); background: #fff5f5; }
.map-notes .k-eng::before { border-color: var(--navy); background: var(--navy); }
@media (max-width: 760px) { .map-notes { grid-template-columns: 1fr; } }

/* ── HOME: ARCHITECTURE (input layer → native → derived → next) ── */
.layers { display: grid; grid-template-columns: 0.85fr 28px 1fr 28px 1.15fr 28px 0.8fr; align-items: stretch; margin-bottom: 56px; }
.layer { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.layer.input   { border-top: 4px solid var(--navy); background: linear-gradient(180deg, var(--native-bg), #fff 55%); }
.layer.native  { border-top: 4px solid var(--native); }
.layer.derived { border-top: 4px solid var(--derived); background: linear-gradient(180deg, var(--derived-bg), #fff 55%); }
.layer.next    { border: 2px dashed var(--derived); background: #fff; }
.layer-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.layer.input .layer-k, .layer.native .layer-k { color: var(--native); }
.layer.derived .layer-k, .layer.next .layer-k { color: var(--derived); }
.layer h3 { font-size: 22.5px; line-height: 1.25; }
.layer p { font-size: 16.25px; color: var(--muted); line-height: 1.5; }
.layer-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.layer-pills span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--border); font-size: 14.375px; font-weight: 600; white-space: nowrap;
}
.layer-pills img { width: 18px; height: 18px; object-fit: contain; }
.layer.native .layer-pills span { border-color: rgba(0,0,128,0.3); }
.layer.derived .layer-pills span { border-color: rgba(212,96,10,0.45); }
.layer-pills span.l2 { border-color: rgba(138,59,5,0.5); color: #8a3b05; }
.layer-abc { display: grid; gap: 6px; }
.layer-abc div { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.layer-abc b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 12.5px; }
.layer-abc div.c b { background: var(--derived); }
.layer-traits { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: 14.375px; color: var(--muted); }
.layer-traits b { color: var(--text); }
.layer-arrow { display: grid; place-items: center; color: var(--amber); font-size: 22px; }
.layer.next .plus { width: 44px; height: 44px; }

.becomes { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.becomes-row { display: grid; grid-template-columns: 1.2fr 0.9fr 1.1fr 1.6fr; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--border); }
.becomes-row.head { border-top: none; background: var(--bg2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.becomes-row .via { font-size: 14.375px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.becomes-row .via::before { content: '➜'; color: var(--amber); font-size: 18px; }
.becomes-row .now { font-size: 16.25px; color: var(--muted); line-height: 1.45; }
.becomes-row .now b { color: var(--text); }
.becomes .mix-pill { font-size: 15px; padding: 5px 12px 5px 7px; }
.becomes .mix-pill.k { border-color: rgba(0,0,128,0.35); background: var(--native-bg); }
.becomes .mix-pill.k small { background: var(--navy); }
.becomes .from { display: flex; flex-wrap: wrap; gap: 6px; }
.becomes-row.next { background: linear-gradient(90deg, var(--derived-bg), #fff 70%); border-top: 2px dashed var(--derived); }
.becomes-row.next .mix-pill.d { border-style: dashed; }

@media (max-width: 1100px) {
  .layers { grid-template-columns: 1fr 1fr; gap: 16px; }
  .layer-arrow { display: none; }
}
@media (max-width: 860px) {
  .becomes-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .becomes-row.head { display: none; }
  .becomes-row .via::before { transform: rotate(90deg); display: inline-block; }
}
@media (max-width: 560px) {
  .layers { grid-template-columns: 1fr; }
}
