/* =========================================================
   CTO Technical Overview — page styles
   Builds on colors_and_type.css tokens
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border-1); margin: 0; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.wrap--narrow { max-width: 880px; }
.wrap--mid    { max-width: 1080px; }

section { position: relative; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-1);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: 68px;
}
.topbar__brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.topbar__mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ica-slate-900);
  display: grid; place-items: center;
  color: var(--ica-copper-400);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.topbar__wm {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ica-slate-700);
}
.topbar__wm em {
  font-style: normal;
  color: var(--fg-accent);
}
.topbar__doc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}
.topbar__nav {
  display: flex; align-items: center; gap: var(--sp-6);
}
.topbar__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.topbar__nav a:hover { color: var(--fg-1); }
.topbar__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ica-slate-900);
  color: var(--ica-bg);
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-out);
}
.topbar__cta:hover { background: var(--ica-slate-700); }
.topbar__cta svg { width: 14px; height: 14px; }
@media (max-width: 880px) {
  .topbar__nav { display: none; }
  .topbar__doc { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 9vw, 132px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 420px at 88% 12%, rgba(166, 120, 98, 0.10), transparent 70%),
    radial-gradient(640px 360px at 6% 90%, rgba(63, 83, 97, 0.07), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,38,47,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,38,47,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(900px 600px at 100% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(900px 600px at 100% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-accent);
  padding: 7px 12px;
  border: 1px solid var(--ica-copper-300);
  background: var(--ica-copper-50);
  border-radius: var(--r-full);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-accent);
  box-shadow: 0 0 0 4px rgba(166,120,98,0.18);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ica-slate-900);
  margin: 28px 0 0;
  text-wrap: balance;
  max-width: 18ch;
}
.hero__title em {
  font-style: normal;
  color: var(--fg-accent);
  font-weight: 800;
}
.hero__lede {
  margin-top: 32px;
  max-width: 64ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.hero__meta {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.hero__meta > div {
  padding: 20px 24px;
  border-right: 1px solid var(--border-2);
}
.hero__meta > div:last-child { border-right: 0; }
.hero__meta .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero__meta .v {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ica-slate-900);
  letter-spacing: -0.01em;
}
@media (max-width: 760px) {
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .hero__meta > div:nth-child(2) { border-right: 0; }
  .hero__meta > div:nth-child(1),
  .hero__meta > div:nth-child(2) { border-bottom: 1px solid var(--border-2); }
}

/* ---------- Section scaffold ---------- */
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section--dark {
  background: var(--ica-slate-900);
  color: var(--ica-bg);
}
.section--paper { background: var(--ica-copper-50); }
.section--sunk  { background: var(--bg-3); }

.section__head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head .num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-accent);
  border-top: 2px solid var(--fg-accent);
  padding-top: 12px;
}
.section--dark .section__head .num {
  color: var(--fg-accent);
  border-top-color: var(--fg-accent);
}
.section__head .num small {
  display: block;
  margin-top: 6px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  font-size: 11px;
}
.section--dark .section__head .num small { color: var(--ica-slate-300); }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
  color: inherit;
}
.section__head p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.section--dark .section__head p { color: var(--ica-slate-200); }
@media (max-width: 880px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ica-slate-900);
  border-left: 2px solid var(--fg-accent);
  padding: 8px 0 8px 28px;
  margin: clamp(40px, 5vw, 64px) 0;
  max-width: 26ch;
}
.section--dark .pull {
  color: var(--ica-bg);
  border-left-color: var(--ica-copper-400);
}
.pull cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.section--dark .pull cite { color: var(--ica-slate-300); }

/* ---------- Cards & grids ---------- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .cards--5 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards--5, .cards--4, .cards--3, .cards--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  position: relative;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover {
  border-color: var(--ica-copper-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.section--dark .card {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.08);
}
.section--dark .card:hover {
  border-color: var(--fg-accent);
  background: rgba(255,255,255,0.04);
}
.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-accent);
}
.section--dark .card__num { color: var(--ica-copper-400); }
.card__title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: inherit;
}
.card__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.section--dark .card__body { color: var(--ica-slate-200); }

/* ---------- Big stat / metric ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
}
.section--dark .stats {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
}
.stats > div {
  padding: 32px 28px;
  border-right: 1px solid var(--border-2);
}
.section--dark .stats > div { border-right-color: rgba(255,255,255,0.08); }
.stats > div:last-child { border-right: 0; }
.stats .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.section--dark .stats .k { color: var(--ica-slate-300); }
.stats .v {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ica-slate-900);
}
.section--dark .stats .v { color: var(--ica-bg); }
.stats .v em { font-style: normal; color: var(--fg-accent); }
.section--dark .stats .v em { color: var(--ica-copper-400); }
.stats .s { margin-top: 8px; font-size: 13px; color: var(--fg-3); line-height: 1.4; }
.section--dark .stats .s { color: var(--ica-slate-300); }
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--border-2); }
}

/* ---------- Code block ---------- */
.code {
  background: var(--ica-slate-900);
  color: var(--ica-bg);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid rgba(255,255,255,0.06);
}
.code .c-key { color: #DDB9A8; }
.code .c-com { color: var(--ica-slate-400); }
.code .c-str { color: #9FB99D; }
.code .c-fn  { color: #9CC4E4; }

.code--light {
  background: var(--bg-2);
  color: var(--ica-slate-900);
  border-color: var(--border-2);
}
.code--light .c-com { color: var(--fg-3); }

/* ---------- Diagrams ---------- */
.fabric {
  display: grid;
  gap: 12px;
}
.fabric__row {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 24px;
}
.section--dark .fabric__row {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.fabric__row .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-accent);
}
.section--dark .fabric__row .lbl { color: var(--ica-copper-400); }
.fabric__row .ct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ica-slate-900);
}
.section--dark .fabric__row .ct { color: var(--ica-bg); }
.fabric__row .ct small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-3);
}
.section--dark .fabric__row .ct small { color: var(--ica-slate-300); }
.fabric__row--accent { border-color: var(--ica-copper-400); background: var(--ica-copper-50); }
.fabric__row--accent .ct { color: var(--ica-slate-900); }
.fabric__arrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-accent);
  padding: 2px 0;
}
.section--dark .fabric__arrow { color: var(--ica-copper-400); }

/* ---------- Hub / Spoke diagram ---------- */
.canopy {
  display: grid;
  gap: 32px;
  align-items: stretch;
}
.canopy__hub {
  background: var(--ica-slate-900);
  color: var(--ica-bg);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.section--dark .canopy__hub {
  background: rgba(255,255,255,0.04);
}
.canopy__hub .lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ica-copper-400);
}
.canopy__hub h4 {
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.canopy__hub ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
  font-size: 14px;
  color: var(--ica-slate-200);
}
.canopy__hub ul li::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ica-copper-400);
  margin-right: 10px; vertical-align: middle;
}
.canopy__connector {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-accent);
  position: relative;
}
.canopy__connector::before,
.canopy__connector::after {
  content: "";
  display: block;
  height: 16px;
  width: 1px;
  background: var(--ica-copper-400);
  margin: 0 auto;
}
.canopy__connector::before { margin-bottom: 8px; }
.canopy__connector::after  { margin-top: 8px; }
.section--dark .canopy__connector { color: var(--ica-copper-300); }
.canopy__spokes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.canopy__node {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 24px 22px;
}
.section--dark .canopy__node {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.08);
}
.canopy__node h5 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ica-slate-900);
}
.section--dark .canopy__node h5 { color: var(--ica-bg); }
.canopy__node .cloud {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-accent);
  margin-bottom: 16px;
}
.section--dark .canopy__node .cloud { color: var(--ica-copper-400); }
.canopy__node ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
}
.section--dark .canopy__node ul { color: var(--ica-slate-300); }
.canopy__node ul li {
  display: flex; gap: 8px; align-items: baseline;
}
.canopy__node ul li::before {
  content: "•"; color: var(--fg-accent); font-weight: 700;
}
@media (max-width: 880px) {
  .canopy__spokes { grid-template-columns: 1fr; }
  .canopy__hub ul { grid-template-columns: 1fr; }
}

/* ---------- Table ---------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
  font-size: 15px;
}
.section--dark .tbl {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}
.tbl thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 16px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-2);
}
.section--dark .tbl thead th {
  background: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.08);
  color: var(--ica-slate-300);
}
.tbl tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-1);
  vertical-align: top;
  color: var(--fg-2);
  line-height: 1.55;
}
.section--dark .tbl tbody td {
  border-bottom-color: rgba(255,255,255,0.06);
  color: var(--ica-slate-200);
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ica-slate-900);
  font-size: 16px;
}
.section--dark .tbl td.strong { color: var(--ica-bg); }
.tbl td.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-accent);
}
.section--dark .tbl td.mono { color: var(--ica-copper-300); }

/* ---------- Five gates ---------- */
.gates {
  counter-reset: gate;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.gates::before {
  content: ""; position: absolute;
  left: 32px; right: 32px; top: 28px;
  border-top: 1px dashed var(--ica-copper-400);
  z-index: 0;
}
.gate {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: center;
}
.section--dark .gate {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.gate__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fg-accent);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  margin: -38px auto 14px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-1);
}
.section--dark .gate__num { box-shadow: 0 0 0 6px var(--ica-slate-900); }
.gate__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ica-slate-900);
  margin-bottom: 6px;
}
.section--dark .gate__t { color: var(--ica-bg); }
.gate__d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-3);
}
.section--dark .gate__d { color: var(--ica-slate-300); }
@media (max-width: 880px) {
  .gates { grid-template-columns: repeat(2, 1fr); }
  .gates::before { display: none; }
  .gate__num { margin-top: 0; box-shadow: none; }
}

/* ---------- Phase timeline ---------- */
.phases { display: grid; gap: 20px; }
.phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border-1);
}
.phase:first-child { border-top: 0; padding-top: 0; }
.phase__when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-accent);
}
.phase__when strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ica-slate-900);
  margin-top: 6px;
}
.phase__body h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ica-slate-900);
}
.phase__body p {
  font-size: 15px; line-height: 1.6;
  color: var(--fg-2); margin: 0 0 12px;
  max-width: 60ch;
}
.phase__body ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 8px;
}
.phase__body ul li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14px; color: var(--fg-2);
}
.phase__body ul li::before {
  content: ""; flex: 0 0 6px; height: 6px;
  border-radius: 50%; background: var(--fg-accent);
  transform: translateY(7px);
}
@media (max-width: 760px) {
  .phase { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Quick refs / Inline keys ---------- */
.kbd, .pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--ica-slate-700);
}
.section--dark .kbd, .section--dark .pill {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--ica-bg);
}
.pill--copper {
  background: var(--ica-copper-50);
  border-color: var(--ica-copper-300);
  color: var(--fg-accent);
}
.pill--success { color: var(--ica-success); border-color: rgba(79,122,92,0.4); background: rgba(79,122,92,0.08); }
.pill--warning { color: var(--ica-warning); border-color: rgba(181,135,58,0.4); background: rgba(181,135,58,0.08); }
.pill--danger  { color: var(--ica-danger);  border-color: rgba(168,68,58,0.4);  background: rgba(168,68,58,0.08); }

/* ---------- ROI ladder ---------- */
.roi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.roi__col {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 32px 28px;
}
.roi__col--1 { background: var(--bg-2); }
.roi__col--2 { background: var(--ica-copper-50); border-color: var(--ica-copper-200); }
.roi__col--3 { background: var(--ica-slate-900); color: var(--ica-bg); border-color: var(--ica-slate-800); }
.roi__horizon {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-accent);
}
.roi__col--3 .roi__horizon { color: var(--ica-copper-400); }
.roi__title {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ica-slate-900);
}
.roi__col--3 .roi__title { color: var(--ica-bg); }
.roi__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roi__col ul li {
  font-size: 14px; line-height: 1.55;
  display: grid; gap: 4px;
}
.roi__col ul li strong {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  color: var(--ica-slate-900);
}
.roi__col--3 ul li strong { color: var(--ica-bg); }
.roi__col ul li span { color: var(--fg-3); }
.roi__col--3 ul li span { color: var(--ica-slate-300); }
@media (max-width: 1000px) {
  .roi { grid-template-columns: 1fr; }
}

/* ---------- ECL chain visual ---------- */
.chain {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 28px 24px;
  background: var(--ica-slate-900);
  border-radius: var(--r-lg);
  color: var(--ica-bg);
  font-family: var(--font-mono);
  font-size: 12px;
}
.chain__block {
  flex: 1; min-width: 160px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
  border-radius: var(--r-md);
}
.chain__block .pos {
  color: var(--ica-copper-400);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.chain__block .hash {
  color: var(--ica-slate-300);
  word-break: break-all;
  font-size: 11px;
  line-height: 1.4;
}
.chain__block .hash span { color: var(--ica-bg); }
.chain__link {
  color: var(--ica-copper-400);
  font-size: 16px;
}

/* ---------- 5-min summary ---------- */
.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  counter-reset: sum;
}
.summary__item {
  position: relative;
  padding: 28px 28px 28px 80px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  counter-increment: sum;
}
.section--dark .summary__item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.summary__item::before {
  content: counter(sum, decimal-leading-zero);
  position: absolute; left: 26px; top: 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--fg-accent);
  letter-spacing: -0.02em;
}
.summary__item h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: inherit;
}
.summary__item p {
  margin: 0; font-size: 14.5px; line-height: 1.55;
  color: var(--fg-2);
}
.section--dark .summary__item p { color: var(--ica-slate-200); }
@media (max-width: 760px) { .summary { grid-template-columns: 1fr; } }

/* ---------- CTA block ---------- */
.cta {
  background: linear-gradient(180deg, var(--ica-slate-900) 0%, #0e1820 100%);
  color: var(--ica-bg);
  border-radius: 0;
  padding: clamp(72px, 9vw, 128px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 360px at 50% 0%, rgba(166,120,98,0.18), transparent 70%),
    radial-gradient(1100px 600px at 50% 120%, rgba(166,120,98,0.10), transparent 70%);
}
.cta__inner { position: relative; max-width: 800px; margin: 0 auto; padding: 0 24px; }
.cta__eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ica-copper-300);
}
.cta h2 {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.cta h2 em { font-style: normal; color: var(--ica-copper-400); }
.cta p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ica-slate-200);
  max-width: 56ch; margin: 0 auto;
}
.cta__buttons {
  margin-top: 40px;
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn--primary {
  background: var(--fg-accent);
  color: white;
}
.btn--primary:hover { background: color-mix(in srgb, var(--fg-accent) 85%, white); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ica-bg);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); }

/* ---------- Footer ---------- */
footer.site {
  background: #0a1117;
  color: var(--ica-slate-300);
  padding: 56px 0 40px;
  font-size: 13px;
}
footer.site .row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer.site .meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ica-slate-400);
}
footer.site a { color: var(--ica-copper-300); }

/* ---------- Three-Layer Architecture (canonical model) ---------- */
.tla {
  display: grid;
  gap: 0;
}
.tla__layer {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 280px 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}
.tla__layer--control {
  background: rgba(166, 120, 98, 0.08);
  border-color: rgba(166, 120, 98, 0.35);
}
.tla__layer--core {
  background: rgba(166, 120, 98, 0.12);
  border-color: rgba(166, 120, 98, 0.45);
}
.tla__rail {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tla__rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 36px;
  background: repeating-linear-gradient(180deg, var(--ica-copper-400) 0 6px, transparent 6px 10px);
}
.tla__rail span {
  position: relative;
  background: var(--ica-slate-900);
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ica-copper-400);
  border: 1px solid rgba(166, 120, 98, 0.45);
  border-radius: 999px;
}
.tla__lead {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tla__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ica-copper-400);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tla__num::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ica-copper-400);
}
.tla__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ica-bg);
}
.tla__cisco {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 239, 225, 0.55);
  margin-top: 4px;
}
.tla__cisco::before {
  content: "≈ ";
  color: var(--ica-copper-400);
}
.tla__body h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ica-bg);
}
.tla__body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(246, 239, 225, 0.78);
}
.tla__body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ica-copper-300);
}
.tla__components {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  align-self: start;
}
.tla__components li {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--ica-copper-400);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ica-bg);
}
.tla__components li small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(246, 239, 225, 0.6);
}
.tla__phrase {
  margin-top: 40px;
  padding: 26px 32px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(166, 120, 98, 0.35);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.tla__phrase__cell {
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.tla__phrase__cell:last-child {
  border-right: 0;
}
.tla__phrase__cell .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ica-copper-400);
}
.tla__phrase__cell h5 {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ica-bg);
  letter-spacing: -0.015em;
}
.tla__phrase__cell p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(246, 239, 225, 0.7);
}
@media (max-width: 1080px) {
  .tla__layer { grid-template-columns: 1fr; gap: 24px; }
  .tla__lead {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 20px 0;
  }
  .tla__phrase { grid-template-columns: 1fr; gap: 16px; }
  .tla__phrase__cell {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 16px;
  }
  .tla__phrase__cell:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .tla__components { grid-template-columns: 1fr; }
}

/* Layer tag — small badge to mark which canonical layer a deep-dive section sits in */
.layer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ica-copper-50);
  border: 1px solid var(--ica-copper-300);
  color: var(--fg-accent);
  border-radius: 999px;
}
.layer-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-accent);
}
.section--dark .layer-tag {
  background: rgba(166, 120, 98, 0.12);
  border-color: rgba(166, 120, 98, 0.4);
  color: var(--ica-copper-300);
}
.section--dark .layer-tag::before { background: var(--ica-copper-400); }
  background: var(--bg-3);
  padding: 22px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.divider-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
}
.divider-band .wrap strong { color: var(--ica-slate-700); font-weight: 600; }

.lead-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .lead-cluster { grid-template-columns: 1fr; } }
.lead-cluster p {
  font-size: 16px; line-height: 1.65; color: var(--fg-2); margin: 0 0 14px;
}
.section--dark .lead-cluster p { color: var(--ica-slate-200); }

.callout {
  margin-top: 32px;
  padding: 22px 26px;
  border-left: 3px solid var(--fg-accent);
  background: var(--ica-copper-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px; line-height: 1.6;
}
.section--dark .callout {
  background: rgba(166,120,98,0.08);
  border-left-color: var(--ica-copper-400);
  color: var(--ica-bg);
}
.callout strong { color: var(--ica-slate-900); }
.section--dark .callout strong { color: var(--ica-bg); }
