/* sahalovy:file-metric build-id=SAHALOVY-FILE-METRIC-2026-06-22-1529-EEST; built-at=2026-06-22T15:29:42+03:00; file=assets/style.css; source=sahalovy_ch_www_LAUNCH_POLISHED_2026_VERSIONED_FINAL.zip */

:root {
 --bg: #f6f4ef;
 --paper: #ffffff;
 --ink: #101820;
 --muted: #5f6670;
 --line: #dedbd2;
 --accent: #19324a;
 --accent2: #c8a35f;
 --blue: #3b6f8f;
 --soft: #eef1f1;
 --dark: #0f1d2a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 font-family: Arial, Helvetica, sans-serif;
 color: var(--ink);
 background: var(--bg);
 line-height: 1.58;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrapper { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
header {
 background: rgba(255,255,255,0.96);
 border-bottom: 1px solid var(--line);
 position: sticky;
 top: 0;
 z-index: 20;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand span { display: block; color: var(--muted); font-weight: 400; font-size: 0.86rem; letter-spacing: 0; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
nav a { color: var(--ink); font-size: 0.90rem; }
nav a[aria-current="page"] { font-weight: 800; border-bottom: 2px solid var(--accent2); }
.hero {
 background: radial-gradient(circle at top right, #d9e2e6 0, rgba(217,226,230,0) 34%),
       linear-gradient(135deg, #ffffff 0%, #f7f4ec 100%);
 border-bottom: 1px solid var(--line);
 padding: 58px 0 42px;
}
.logo-full { width: min(520px, 100%); height: auto; margin-bottom: 28px; display: block; }
.eyebrow {
 color: #7a5a22;
 font-weight: 800;
 text-transform: uppercase;
 letter-spacing: 0.12em;
 font-size: 0.76rem;
}
h1 {
 margin: 14px 0 20px;
 max-width: 1000px;
 font-size: clamp(2.1rem, 4.8vw, 4.75rem);
 line-height: 1.03;
 letter-spacing: -0.055em;
}
h2 {
 margin: 46px 0 16px;
 font-size: clamp(1.56rem, 2.4vw, 2.35rem);
 line-height: 1.12;
 letter-spacing: -0.025em;
}
h3 { margin: 0 0 10px; font-size: 1.14rem; }
.lead { max-width: 920px; font-size: 1.18rem; color: #2b2d31; }
.small { color: var(--muted); font-size: 0.94rem; }
main { padding: 34px 0 68px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 18px;
 padding: 22px;
 box-shadow: 0 10px 26px rgba(30, 39, 46, 0.04);
}
.card.feature { border-top: 4px solid var(--accent2); }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 28px 0 12px; }
.metric {
 background: var(--dark);
 color: white;
 border-radius: 18px;
 padding: 18px;
 min-height: 124px;
}
.metric strong { display: block; font-size: 1.65rem; line-height: 1; margin-bottom: 8px; }
.metric span { color: #d8dde3; font-size: 0.88rem; }
.kickers { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.kickers span {
 background: white;
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 8px 12px;
 font-size: 0.91rem;
}
.table {
 width: 100%;
 border-collapse: collapse;
 background: white;
 border: 1px solid var(--line);
 border-radius: 14px;
 overflow: hidden;
 display: table;
 margin: 22px 0;
}
.table th,.table td {
 padding: 13px 14px;
 border-bottom: 1px solid var(--line);
 text-align: left;
 vertical-align: top;
}
.table th { background: #f1f1ed; }
.callout {
 background: #eef1f1;
 border-left: 5px solid var(--accent2);
 padding: 20px 24px;
 border-radius: 12px;
 margin: 30px 0;
}
.timeline { border-left: 3px solid var(--accent2); margin: 28px 0; padding-left: 20px; }
.timeline-item { margin: 0 0 22px; }
.timeline-item strong { display: block; color: #7a5a22; }
.flow {
 display: grid;
 grid-template-columns: repeat(6, 1fr);
 gap: 10px;
 margin: 28px 0;
}
.flow.step {
 background: white;
 border: 1px solid var(--line);
 border-radius: 16px;
 padding: 16px;
 position: relative;
 min-height: 148px;
}
.flow.step::after {
 content: "→";
 position: absolute;
 right: -12px;
 top: 44%;
 color: #7a5a22;
 font-weight: 800;
}
.flow.step:last-child::after { content: ""; }
.num {
 display: inline-block;
 background: var(--accent);
 color: white;
 border-radius: 999px;
 font-weight: 700;
 font-size: 0.78rem;
 padding: 3px 8px;
 margin-bottom: 10px;
}
.badge {
 display: inline-block;
 background: #efe7d6;
 color: #382a10;
 border: 1px solid #d8c89f;
 border-radius: 999px;
 padding: 4px 9px;
 font-size: 0.78rem;
 font-weight: 700;
 margin: 0 6px 10px 0;
}
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.toc {
 position: sticky;
 top: 92px;
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 16px;
 padding: 18px;
 font-size: 0.93rem;
}
.toc a { display: block; margin: 8px 0; }
.article-body {
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 18px;
 padding: 30px;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.article-meta span {
 background: #eef1f1;
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 6px 10px;
 font-size: 0.84rem;
 color: var(--muted);
}
.equation-like {
 font-family: "Courier New", monospace;
 background: #f5f5f1;
 border: 1px solid var(--line);
 border-radius: 12px;
 padding: 14px 16px;
 overflow-x: auto;
}
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.qr-box img { width: 100%; max-width: 260px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
 display: inline-block;
 border: 1px solid var(--accent);
 border-radius: 999px;
 padding: 10px 16px;
 font-weight: 800;
}
.button.primary { background: var(--accent); color: white; }
footer {
 border-top: 1px solid var(--line);
 color: var(--muted);
 padding: 30px 0;
 font-size: 0.92rem;
}
footer strong { color: var(--ink); }
footer.footer-logo { width: 240px; max-width: 100%; margin: 0 0 16px; }
@media (max-width: 980px) {
.metric-grid { grid-template-columns: repeat(2, 1fr); }
.flow { grid-template-columns: 1fr; }
.flow.step::after { content: "↓"; right: 18px; top: auto; bottom: -18px; }
.flow.step:last-child::after { content: ""; }
.article-layout { grid-template-columns: 1fr; }
.toc { position: static; }
.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
.topbar { flex-direction: column; align-items: flex-start; }
 nav { justify-content: flex-start; }
.grid,.grid.two { grid-template-columns: 1fr; }
.metric-grid { grid-template-columns: 1fr; }
.hero { padding: 42px 0 34px; }
}


/* User-provided NTC / Sahalovy.ch logo */
.brand img {
 width: 62px;
 height: 42px;
 object-fit: contain;
 background: #ffffff;
 border-radius: 0;
}
.logo-full {
 width: min(320px, 100%);
 height: auto;
 object-fit: contain;
 background: #ffffff;
 border-radius: 0;
 padding: 0;
 box-shadow: none;
}
.footer-logo {
 width: 180px;
 height: auto;
 object-fit: contain;
 background: #ffffff;
}
.hero.logo-caption {
 font-weight: 800;
 font-size: clamp(2.0rem, 4vw, 4.1rem);
 line-height: 1.04;
 letter-spacing: -0.05em;
 margin: 4px 0 18px;
}
.hero.logo-caption span {
 color: #3b6f8f;
}


/* Better top menu: compact sticky navigation, closer to the earlier single-page version */
header {
 background: rgba(255, 255, 255, 0.975);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid rgba(222, 219, 210, 0.95);
 box-shadow: 0 6px 24px rgba(16, 24, 32, 0.045);
}
.topbar {
 min-height: 74px;
 padding: 10px 0;
 gap: 18px;
}
.brand {
 min-width: 218px;
 gap: 12px;
 white-space: nowrap;
 line-height: 1.05;
}
.brand img {
 width: 74px !important;
 height: 46px !important;
 object-fit: contain;
 border-radius: 0;
 background: transparent;
 flex: 0 0 auto;
}
.brand > span,
.brand span {
 line-height: 1.15;
}
.brand span {
 font-size: 0.82rem;
 margin-top: 3px;
}
nav {
 flex: 1 1 auto;
 display: flex;
 flex-wrap: nowrap;
 justify-content: flex-end;
 align-items: center;
 gap: 6px;
 overflow-x: auto;
 scrollbar-width: thin;
 padding: 4px 0 5px;
}
nav a {
 flex: 0 0 auto;
 color: var(--ink);
 font-size: 0.84rem;
 font-weight: 700;
 line-height: 1;
 padding: 9px 11px;
 border: 1px solid transparent;
 border-radius: 999px;
 transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
nav a:hover {
 text-decoration: none;
 background: #f4f1e8;
 border-color: #e2d8bd;
}
nav a[aria-current="page"] {
 border-bottom: 0;
 background: var(--accent);
 color: #ffffff;
 border-color: var(--accent);
}
.hero {
 padding-top: 48px;
}
@media (max-width: 980px) {
.topbar {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
 }
 nav {
  width: 100%;
  justify-content: flex-start;
  padding-bottom: 9px;
 }
}
@media (max-width: 760px) {
.topbar {
  min-height: auto;
 }
.brand {
  min-width: 0;
 }
.brand img {
  width: 66px !important;
  height: 42px !important;
 }
 nav a {
  font-size: 0.82rem;
  padding: 8px 10px;
 }
}


.brand strong {
 display: block;
 font-size: 1.02rem;
 letter-spacing: -0.02em;
}


.brand-copy {
 display: block;
}
.brand-copy span {
 display: block;
}


.source-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}
.source-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.source-item strong {
  display: block;
  margin-bottom: 6px;
}
.source-item a {
  word-break: break-word;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}
@media (max-width: 760px) {
  .link-grid { grid-template-columns: 1fr; }
}


.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  border-top: 4px solid var(--accent2);
}
.case-card dl {
  margin: 0;
}
.case-card dt {
  font-weight: 800;
  color: var(--accent);
  margin-top: 10px;
}
.case-card dd {
  margin: 4px 0 10px 0;
}
.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.evidence-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.evidence-item strong {
  display: block;
  margin-bottom: 6px;
}
.service-lane {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
}
.service-lane h3 {
  color: var(--accent);
}
.note-box {
  background: #fffaf0;
  border: 1px solid #e8d8a8;
  border-left: 5px solid var(--accent2);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 22px 0;
}
@media (max-width: 760px) {
  .case-grid, .evidence-list { grid-template-columns: 1fr; }
}


/* Launch pack additions */
.download-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.launch-file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.launch-file {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  border-top: 4px solid var(--accent2);
}
.launch-file strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}
.code-block {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Courier New", monospace;
  background: #f5f5f1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
@media (max-width: 760px) {
  .launch-file-grid { grid-template-columns: 1fr; }
}


.visual-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.visual-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(30, 39, 46, 0.04);
}
.visual-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #fff;
}
.visual-card .visual-copy {
  padding: 14px 16px;
}
.visual-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.visual-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.figure-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 24px 0;
}
.figure-block img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 10px;
}
.figure-block figcaption {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.visual-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 36px;
}
.visual-gallery .visual-card img {
  height: 210px;
}
.credit {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 980px) {
  .visual-strip, .visual-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .visual-strip, .visual-gallery { grid-template-columns: 1fr; }
  .visual-card img { height: 220px; }
}


.source-role {
  display: inline-block;
  background: #eef1f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  margin: 0 6px 8px 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.monograph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.monograph-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  border-top: 4px solid var(--accent);
}
.monograph-card .year {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
@media (max-width: 980px) {
  .monograph-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  
}


/* Editorial polish layer */
:root {
  --shadow-soft: 0 16px 38px rgba(16, 24, 32, 0.065);
}
header {
  backdrop-filter: blur(12px);
}
nav a {
  font-size: 0.82rem;
  padding: 9px 10px;
}
.hero {
  padding-top: 44px;
  padding-bottom: 36px;
}
.logo-full {
  width: min(300px, 100%);
}
.hero-visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.hero-panel {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.hero-panel img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.section-kicker {
  color: #7a5a22;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 8px;
}
.page-intro {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent2);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0 26px;
}
.compact-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.compact-link-row a {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}
.source-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 34px;
}
.source-hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.source-hero-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.source-hero-card h3 {
  margin-top: 14px;
}
.publisher-note {
  background: #fff7e8;
  border: 1px solid #e8d2a4;
  border-left: 5px solid var(--accent2);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 22px 0;
}
.monograph-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin: 18px 0;
  box-shadow: var(--shadow-soft);
}
.monograph-feature img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.monograph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.monograph-meta span {
  background: #eef1f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.84rem;
}
.visual-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.visual-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.visual-card img {
  background: #fff;
}
.credit a {
  font-weight: 700;
}
.home-focus-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin: 28px 0;
}
.home-focus-grid .card {
  min-height: 100%;
}
@media (max-width: 980px) {
  .hero-visual, .home-focus-grid, .monograph-feature { grid-template-columns: 1fr; }
  .source-hero-grid { grid-template-columns: 1fr; }
}


/* LPC / Space infrastructure expansion */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.activity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  border-top: 4px solid var(--accent2);
  box-shadow: var(--shadow-soft);
}
.activity-card h3 {
  margin-bottom: 10px;
}
.tech-stack-table td:first-child {
  font-weight: 800;
  color: var(--accent);
}
.diagram-feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}
.diagram-feature img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.crosslink-panel {
  background: #eef1f1;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent2);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 24px 0;
}
@media (max-width: 980px) {
  .activity-grid { grid-template-columns: 1fr; }
}


/* Clear direction release */
.clear-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center;padding:22px 0 18px}.clear-hero h1{font-size:clamp(2.45rem,5vw,4.8rem);line-height:.95;margin-bottom:20px}.clear-statement{font-size:1.25rem;line-height:1.55;color:#33414f;max-width:880px}.identity-card{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow-soft,0 16px 38px rgba(16,24,32,.065))}.identity-card img{width:100%;max-height:220px;object-fit:contain;background:#fff;border-radius:18px;border:1px solid var(--line);padding:14px}.identity-lines{margin-top:18px}.identity-lines p{margin:6px 0}.direction-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:30px 0}.direction-item{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px;border-top:4px solid var(--accent2)}.direction-item strong{display:block;color:var(--accent);margin-bottom:8px;font-size:1.05rem}.path-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:26px 0}.path-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow-soft,0 16px 38px rgba(16,24,32,.065))}.path-card h3{margin-top:0;color:var(--accent)}.proof-ladder{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:24px 0}.proof-step{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;text-align:center}.proof-step span{display:inline-flex;width:34px;height:34px;border-radius:999px;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-weight:900;margin-bottom:8px}.clean-note{background:#f8f6f0;border:1px solid var(--line);border-left:5px solid var(--accent2);border-radius:18px;padding:20px 22px;margin:24px 0}.secondary-map{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.secondary-map a{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;font-weight:800}@media(max-width:980px){.clear-hero,.path-grid{grid-template-columns:1fr}.direction-strip{grid-template-columns:repeat(2,1fr)}.proof-ladder,.secondary-map{grid-template-columns:1fr}}@media(max-width:640px){.direction-strip{grid-template-columns:1fr}}


/* Colorized palette refresh */
:root {
  --bg: #f4f1e8;
  --paper: #fffdf9;
  --ink: #13202d;
  --muted: #54606d;
  --line: #ddd4c5;
  --accent: #1f4060;
  --accent2: #b88638;
  --accent3: #2d6a6d;
  --accent4: #7a5c9e;
  --accent5: #8b4d3a;
  --soft: #edf3f2;
  --soft2: #f7efe1;
  --soft3: #eef0f7;
}
body {
  background:
    radial-gradient(circle at 0% 0%, rgba(45,106,109,0.08), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(184,134,56,0.10), transparent 28%),
    linear-gradient(180deg, #f7f3eb 0%, #f3efe5 100%);
}
header {
  background: rgba(255,252,246,0.94);
  box-shadow: 0 6px 18px rgba(19,32,45,0.04);
}
nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
nav a:hover {
  background: #eef3f7;
  text-decoration: none;
}
nav a[aria-current="page"] {
  background: rgba(184,134,56,0.12);
  border-bottom: 0;
  color: var(--accent);
}
.hero {
  background:
    radial-gradient(circle at top right, rgba(45,106,109,0.15) 0, rgba(45,106,109,0) 28%),
    radial-gradient(circle at left center, rgba(122,92,158,0.10) 0, rgba(122,92,158,0) 26%),
    linear-gradient(135deg, #fffdf8 0%, #f4eee2 100%);
  padding-top: 64px;
  padding-bottom: 48px;
}
.lead, .clear-statement { color: #2c3d4a; }
.identity-card,
.path-card,
.direction-item,
.card,
.visual-card,
.activity-card,
.monograph-card,
.source-hero-card,
.proof-step,
.secondary-map a,
.launch-file,
.figure-block,
.diagram-feature,
.service-lane,
.note-box,
.callout,
.clean-note,
.publisher-note,
.monograph-feature {
  box-shadow: 0 14px 34px rgba(19,32,45,0.06);
}
.button {
  background: #fffaf1;
  border-color: var(--accent2);
  color: var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(19,32,45,0.08);
  background: #fff4db;
}
.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #315d86 100%);
  border-color: var(--accent);
  color: #fff;
}
.button.primary:hover {
  background: linear-gradient(135deg, #18324b 0%, #244e75 100%);
}
.direction-item:nth-child(1), .path-card:nth-child(1), .activity-card:nth-child(1) { border-top-color: var(--accent2); }
.direction-item:nth-child(2), .path-card:nth-child(2), .activity-card:nth-child(2) { border-top: 4px solid var(--accent3); }
.direction-item:nth-child(3), .path-card:nth-child(3), .activity-card:nth-child(3) { border-top: 4px solid var(--accent4); }
.direction-item:nth-child(4), .path-card:nth-child(4), .activity-card:nth-child(4) { border-top: 4px solid var(--accent5); }
.direction-item:nth-child(5), .path-card:nth-child(5), .activity-card:nth-child(5) { border-top: 4px solid var(--accent2); }
.direction-item:nth-child(6), .path-card:nth-child(6), .activity-card:nth-child(6) { border-top: 4px solid var(--accent3); }
.path-card h3,
.direction-item strong,
.activity-card h3,
.card.feature h3,
.source-hero-card h3,
.monograph-card h3,
.monograph-feature h3 { color: var(--accent); }
.clean-note {
  background: linear-gradient(135deg, #fffaf0 0%, #f7efe0 100%);
}
.note-box {
  background: linear-gradient(135deg, #fffaf0 0%, #fff5df 100%);
}
.callout, .publisher-note {
  background: linear-gradient(135deg, #eef5f4 0%, #f6fbfb 100%);
  border-left-color: var(--accent3);
}
.table th {
  background: linear-gradient(180deg, #f0ece3 0%, #ece7db 100%);
}
.metric {
  background: linear-gradient(135deg, #18324b 0%, #295275 70%, #356a73 100%);
}
.proof-step span {
  background: linear-gradient(135deg, var(--accent) 0%, #315d86 100%);
}
.secondary-map a:hover,
.path-card:hover,
.direction-item:hover,
.activity-card:hover,
.visual-card:hover,
.card:hover,
.source-hero-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.secondary-map a {
  background: linear-gradient(180deg, #fffdf9 0%, #fbf7f0 100%);
}
.secondary-map a:nth-child(3n+1) { border-left: 4px solid var(--accent2); }
.secondary-map a:nth-child(3n+2) { border-left: 4px solid var(--accent3); }
.secondary-map a:nth-child(3n+3) { border-left: 4px solid var(--accent4); }
.identity-card {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f2e7 100%);
}
footer {
  background: rgba(255,250,242,0.72);
}
/* Make the logo sit nicely on warmer palette */
.brand img, .logo-full, .footer-logo {
  filter: saturate(1.03) contrast(1.02);
}


/* Tech-consulting brand theme */
:root {
  --bg: #f3f6f8;
  --paper: #ffffff;
  --ink: #101c2b;
  --muted: #566473;
  --line: #d9e0e6;
  --accent: #163a5b;
  --accent2: #c6933d;
  --accent3: #1f7a83;
  --accent4: #536d9b;
  --accent5: #8f5c3f;
  --soft: #eef5f7;
  --soft2: #fff7e8;
  --soft3: #edf1f8;
  --dark: #0d1d2e;
  --shadow-soft: 0 18px 42px rgba(13, 29, 46, 0.075);
}
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(31,122,131,0.10), transparent 26%),
    radial-gradient(circle at 92% 5%, rgba(198,147,61,0.12), transparent 25%),
    linear-gradient(180deg, #f7fafb 0%, #edf2f5 100%);
}
header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(22,58,91,0.12);
  box-shadow: 0 8px 24px rgba(13,29,46,0.055);
}
.brand strong {
  color: var(--accent);
}
.brand span {
  color: #64717f;
}
nav a {
  color: #1d2f43;
  border: 1px solid transparent;
}
nav a:hover {
  background: #edf5f7;
  border-color: #d5e6ea;
}
nav a[aria-current="page"] {
  background: linear-gradient(135deg, #173b5c 0%, #24577d 100%);
  color: #fff;
  border: 1px solid #173b5c;
  box-shadow: 0 8px 18px rgba(22,58,91,0.17);
}
.hero {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.95) 0%, rgba(246,250,251,0.96) 44%, rgba(231,242,245,0.98) 100%),
    radial-gradient(circle at 88% 18%, rgba(31,122,131,0.22), transparent 26%),
    radial-gradient(circle at 3% 6%, rgba(198,147,61,0.18), transparent 28%);
  border-bottom: 1px solid rgba(22,58,91,0.12);
}
.eyebrow,
.section-kicker {
  color: #9b6f29;
}
.clear-hero h1 {
  color: #0d1d2e;
}
.clear-statement,
.lead {
  color: #263a4e;
}
.identity-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f8fa 62%, #fff8ea 100%);
  border: 1px solid rgba(22,58,91,0.12);
}
.identity-lines p:first-child {
  color: var(--accent);
}
.card,
.path-card,
.direction-item,
.activity-card,
.source-hero-card,
.visual-card,
.proof-step,
.secondary-map a,
.service-lane,
.monograph-feature,
.figure-block,
.diagram-feature {
  border-color: rgba(22,58,91,0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}
.path-card,
.activity-card,
.direction-item {
  position: relative;
  overflow: hidden;
}
.path-card::before,
.activity-card::before,
.direction-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent2), var(--accent3));
}
.path-card h3,
.activity-card h3,
.direction-item strong,
.card.feature h3 {
  color: #163a5b;
}
.path-card:nth-child(2)::before,
.activity-card:nth-child(2)::before,
.direction-item:nth-child(2)::before {
  background: linear-gradient(180deg, var(--accent3), #41a3ad);
}
.path-card:nth-child(3)::before,
.activity-card:nth-child(3)::before,
.direction-item:nth-child(3)::before {
  background: linear-gradient(180deg, var(--accent4), #7f91bd);
}
.path-card:nth-child(4)::before,
.activity-card:nth-child(4)::before,
.direction-item:nth-child(4)::before {
  background: linear-gradient(180deg, var(--accent5), #c6933d);
}
.button {
  background: #ffffff;
  border: 1px solid #b8c8d6;
  color: #163a5b;
}
.button:hover {
  background: #eef7f9;
  border-color: #86b8c0;
}
.button.primary {
  background: linear-gradient(135deg, #163a5b 0%, #1f7a83 100%);
  border-color: #163a5b;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(22,58,91,0.18);
}
.button.primary:hover {
  background: linear-gradient(135deg, #102a43 0%, #17656d 100%);
}
.clean-note {
  background: linear-gradient(135deg, #ffffff 0%, #eef7f9 100%);
  border-left-color: var(--accent3);
}
.note-box,
.publisher-note {
  background: linear-gradient(135deg, #fffaf0 0%, #fff3d9 100%);
  border-left-color: var(--accent2);
}
.callout {
  background: linear-gradient(135deg, #edf5f7 0%, #ffffff 100%);
  border-left-color: var(--accent3);
}
.proof-step span {
  background: linear-gradient(135deg, #163a5b 0%, #1f7a83 100%);
}
.secondary-map a {
  background: #ffffff;
}
.secondary-map a:nth-child(3n+1) { border-left: 5px solid var(--accent2); }
.secondary-map a:nth-child(3n+2) { border-left: 5px solid var(--accent3); }
.secondary-map a:nth-child(3n+3) { border-left: 5px solid var(--accent4); }
.metric {
  background: linear-gradient(135deg, #0d1d2e 0%, #163a5b 55%, #1f7a83 100%);
}
.table th {
  background: #edf3f6;
  color: #163a5b;
}
footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.70) 0%, rgba(237,244,247,0.90) 100%);
}
.brand img,
.logo-full,
.footer-logo {
  filter: saturate(1.08) contrast(1.03);
}


/* Single visible logo rule */
.logo-full {
  display: none !important;
}
.hero {
  padding-top: 46px;
}
.identity-card img {
  object-fit: cover;
}


/* Evidence-driven visual logic */
.evidence-chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.evidence-claim {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.evidence-claim img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #fff;
  display: block;
}
.evidence-claim .claim-copy {
  padding: 18px 20px 20px;
}
.evidence-claim h3 {
  color: var(--accent);
  margin: 0 0 8px;
}
.evidence-claim .claim-label {
  display: inline-block;
  background: #eef7f9;
  border: 1px solid #d5e6ea;
  color: #163a5b;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.source-proof-table td:first-child {
  font-weight: 800;
  color: var(--accent);
}
.source-proof-table td:nth-child(2) {
  color: #263a4e;
}
.use-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.use-badge-row span {
  background: #fff7e8;
  border: 1px solid #ead6ae;
  color: #684a17;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}
.evidence-route {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin: 26px 0;
  align-items: start;
}
.evidence-route img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.evidence-route .route-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.evidence-route h3 {
  color: var(--accent);
}
.evidence-route ol {
  margin-left: 18px;
}
.visual-use-note {
  background: linear-gradient(135deg, #eef7f9 0%, #fffdf9 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent3);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 24px 0;
}
@media (max-width: 980px) {
  .evidence-chain, .evidence-route { grid-template-columns: 1fr; }
}


/* Real monograph cover previews */
.real-cover-note {
  background: linear-gradient(135deg, #eef7f9 0%, #fffdf9 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent3);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 24px 0;
}
.monograph-feature.real-cover img {
  max-height: 460px;
  object-fit: contain;
  background: #fdfbf7;
  padding: 10px;
}
.cover-source-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}
.cover-source-line strong { color: var(--accent); }


/* Deeper engineering content */
.deep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}
.deep-aside {
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.deep-aside a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.deep-aside a:last-child { border-bottom: 0; }
.deep-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  margin: 22px 0;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.deep-section h2 { margin-top: 0; }
.parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.parameter {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.parameter strong {
  display: block;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.method-chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.method-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-height: 140px;
}
.method-step strong {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.deliverable {
  background: linear-gradient(135deg, #fffdf9 0%, #eef7f9 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent3);
  border-radius: 16px;
  padding: 16px;
}
.deliverable strong { color: var(--accent); display: block; margin-bottom: 6px; }
.risk-table td:first-child {
  font-weight: 800;
  color: var(--accent);
}
.tech-equation {
  background: #101c2b;
  color: #ffffff;
  border-radius: 18px;
  padding: 18px 22px;
  font-family: "Courier New", monospace;
  overflow-x: auto;
  margin: 18px 0;
}
.deep-visual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin: 18px 0;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.deep-visual img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
}
.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.badge-line span {
  background: #fff7e8;
  border: 1px solid #ead6ae;
  color: #684a17;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 0.82rem;
}
@media (max-width: 980px) {
  .deep-layout { grid-template-columns: 1fr; }
  .deep-aside { position: static; }
  .parameter-grid, .deliverable-grid { grid-template-columns: 1fr; }
  .method-chain { grid-template-columns: 1fr; }
}


/* Clear homepage identity card without decorative image */
.identity-card-clear {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.identity-card-clear .identity-lines {
  margin-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.identity-card-clear .identity-lines p:first-child {
  font-size: 1.28rem;
}
.focus-list {
  background: linear-gradient(135deg, #ffffff 0%, #eef7f9 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent3);
  border-radius: 16px;
  padding: 16px 18px;
}
.focus-list strong {
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.focus-list ul {
  margin: 0;
  padding-left: 18px;
}
.focus-list li {
  margin: 6px 0;
}


/* Lean text cleanup */
.hero { padding-top: 38px; padding-bottom: 34px; }
.lead { max-width: 820px; }
.lean-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.lean-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent3);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.lean-card h3 { color: var(--accent); margin-top: 0; }
.lean-card ul { margin: 8px 0 0; padding-left: 18px; }
.lean-card li { margin: 5px 0; }
.lean-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.lean-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.lean-item strong { display: block; color: var(--accent); margin-bottom: 6px; }
.compact-table td, .compact-table th { padding: 10px 12px; }
.compact-table td:first-child { font-weight: 800; color: var(--accent); }
.short-list { margin: 14px 0; padding-left: 18px; }
.short-list li { margin: 6px 0; }
@media (max-width: 980px) {
  .lean-grid, .lean-strip { grid-template-columns: 1fr; }
}


/* Library cleanup */
.library-section {
  margin: 28px 0 34px;
}
.library-section h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.library-entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.library-entry h3 {
  margin: 0 0 8px;
}
.library-entry p {
  margin: 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.article-meta span {
  background: #fff7e8;
  border: 1px solid #ead6ae;
  color: #684a17;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}
@media (max-width: 900px) {
  .library-list { grid-template-columns: 1fr; }
}


/* Photo integration */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}
.photo-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.photo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #fff;
}
.photo-card div {
  padding: 14px 16px 16px;
}
.photo-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
}
.photo-card p {
  margin: 0;
}
.photo-source {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 8px !important;
}
.photo-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin: 24px 0;
  align-items: stretch;
}
.photo-hero-grid .photo-card:first-child img {
  aspect-ratio: 16 / 9;
}
@media (max-width: 980px) {
  .photo-grid, .photo-grid.two, .photo-hero-grid { grid-template-columns: 1fr; }
}


/* Visible profile links */
.profile-links-block {
  margin: 26px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.profile-links-block h2 {
  margin-top: 0;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}
.profile-links a:hover {
  border-color: var(--accent);
}


/* Final public refactor */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.reference-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.reference-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.reference-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.reference-card li {
  margin: 5px 0;
}
.clean-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.clean-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
@media (max-width: 900px) {
  .reference-grid { grid-template-columns: 1fr; }
}


/* Visitor style pass */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.download-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.download-card h3 { margin-top: 0; color: var(--accent); }
.download-card a { font-weight: 800; }
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }


/* Depth, photo and readiness pass */
.decision-table td:first-child,
.decision-table td:nth-child(2) { font-weight: 700; }
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.route-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  border-left: 5px solid var(--accent3);
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.route-card h3 { margin-top: 0; color: var(--accent); }
.application-group {
  margin: 34px 0;
}
.application-group h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.profile-work-list {
  columns: 2;
  margin: 16px 0;
  padding-left: 20px;
}
.profile-work-list li { margin: 7px 0; }
@media (max-width: 980px) {
  .route-grid { grid-template-columns: 1fr; }
  .profile-work-list { columns: 1; }
}


/* Technical complexity pass */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.model-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.model-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.equation-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 15px 17px;
  margin: 16px 0;
  overflow-x: auto;
  line-height: 1.65;
}
.parameter-table td:first-child {
  font-weight: 800;
  color: var(--ink);
}
.validation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.validation-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}
.validation-item strong {
  color: var(--accent);
}
@media (max-width: 900px) {
  .model-grid,
  .validation-list {
    grid-template-columns: 1fr;
  }
}


/* Engineer-to-engineer authority pass */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.authority-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.authority-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.flag-table td:first-child {
  font-weight: 800;
  color: #8b1e1e;
}
.green-table td:first-child {
  font-weight: 800;
  color: var(--accent);
}
.route-matrix td:first-child,
.route-matrix td:nth-child(2) {
  font-weight: 800;
}
.tech-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.tech-flow div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  font-weight: 800;
}
@media (max-width: 980px) {
  .authority-grid,
  .tech-flow {
    grid-template-columns: 1fr;
  }
}


/* Editorial and publication context */
.public-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.public-record-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.public-record-card h3 {
  margin-top: 0;
  color: var(--accent);
}
@media (max-width: 900px) {
  .public-record-grid { grid-template-columns: 1fr; }
}


/* Patent families */
.family-table td:first-child {
  font-weight: 800;
  color: var(--accent);
}
.family-note {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
}


/* Application map */
.app-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.app-cluster-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.app-cluster-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.application-matrix td:first-child,
.application-matrix td:nth-child(2) {
  font-weight: 800;
}
.application-matrix .records {
  color: var(--muted);
}
@media (max-width: 900px) {
  .app-cluster-grid { grid-template-columns: 1fr; }
}


/* Deep application matrix */
.app-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.app-path-grid a {
  display: block;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
}
.deep-application-matrix {
  font-size: 0.92rem;
}
.deep-application-matrix td,
.deep-application-matrix th {
  vertical-align: top;
}
.deep-application-matrix td:first-child,
.deep-application-matrix td:nth-child(2) {
  font-weight: 800;
}
.deep-application-matrix .risk {
  color: #7a1f1f;
}
.deep-application-matrix .uncertainty {
  color: #5b4a13;
}
.deep-application-matrix .measure {
  color: var(--accent);
  font-weight: 800;
}
@media (max-width: 1100px) {
  .app-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deep-application-matrix { font-size: 0.86rem; }
}
@media (max-width: 760px) {
  .app-path-grid { grid-template-columns: 1fr; }
}


/* Engineering practice cases */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.case-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.case-card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
  margin: 14px 0 0;
}
.case-card dt {
  font-weight: 800;
  color: var(--ink);
}
.case-card dd {
  margin: 0;
  color: var(--muted);
}
.case-card .reject {
  color: #7a1f1f;
}
.practice-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.practice-chain div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  text-align: center;
  font-weight: 800;
}
@media (max-width: 1100px) {
  .practice-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .practice-chain { grid-template-columns: 1fr; }
}


/* Polished section cards and mobile navigation */
.topbar nav {
  flex-wrap: wrap;
  row-gap: 8px;
}
.section-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 18px 0;
  padding: 0;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
  overflow: hidden;
}
.section-card > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.section-card > summary::-webkit-details-marker {
  display: none;
}
.section-card > summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--muted);
}
.section-card[open] > summary::after {
  content: "−";
}
.section-card .section-card-body {
  padding: 0 22px 22px;
}
.compact-note {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
}
.case-card .numeric {
  color: var(--accent);
  font-weight: 800;
}
.case-card .unknown {
  color: #5b4a13;
}
.case-card .decision {
  color: var(--ink);
  font-weight: 800;
}
.matrix-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.matrix-mini-grid a,
.matrix-mini-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
}
@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .topbar nav a {
    white-space: nowrap;
  }
  .matrix-mini-grid {
    grid-template-columns: 1fr;
  }
  .section-card > summary {
    padding: 16px 18px;
  }
  .section-card .section-card-body {
    padding: 0 18px 18px;
  }
}


/* Visual/mobile QA final fixes */
.topbar nav {
  flex-wrap: wrap;
  row-gap: 8px;
}
@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .topbar nav a {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th,
  .table td {
    min-width: 140px;
  }
  .deep-application-matrix th,
  .deep-application-matrix td {
    min-width: 170px;
  }
  .case-card dl {
    grid-template-columns: 1fr !important;
  }
  .case-card dt {
    margin-top: 8px;
  }
  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
  .lead {
    font-size: 1rem;
  }
}
@media (max-width: 520px) {
  .wrapper {
    width: min(100% - 24px, var(--max));
  }
  .brand-copy span {
    display: none;
  }
  .topbar nav a {
    padding: 8px 10px;
  }
}


/* Stabilized navigation and content depth */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin: 10px 0 8px;
}
.footer-links a {
  font-weight: 800;
}
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}
.scenario-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.scenario-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.scenario-card table {
  margin-top: 12px;
}
.path-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}
.path-strip a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  font-weight: 800;
}
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }
  .scenario-card {
    padding: 16px;
  }
  .footer-links {
    justify-content: flex-start;
  }
}


/* Final launch stabilization */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin: 10px 0 8px;
}
.footer-links a {
  font-weight: 800;
}
.path-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}
.path-strip a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  font-weight: 800;
}
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}
.scenario-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.scenario-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.scenario-card table {
  margin-top: 12px;
}
@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .topbar nav a {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }
  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th,
  .table td {
    min-width: 140px;
  }
  .deep-application-matrix th,
  .deep-application-matrix td {
    min-width: 170px;
  }
  .case-card dl {
    grid-template-columns: 1fr !important;
  }
  .case-card dt {
    margin-top: 8px;
  }
  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
  .lead {
    font-size: 1rem;
  }
  .scenario-card {
    padding: 16px;
  }
  .footer-links {
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  .wrapper {
    width: min(100% - 24px, var(--max));
  }
  .brand-copy span {
    display: none;
  }
  .topbar nav a {
    padding: 8px 10px;
  }
}


/* Homepage refresh */
.home-hero-intro {
  max-width: 860px;
  margin: 8px 0 12px;
}
.home-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}
.home-kickers span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}
.home-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0 30px;
}
.home-signal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.home-signal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #fff;
}
.home-signal-body {
  padding: 16px 18px 18px;
}
.home-signal-body h3 {
  margin: 0 0 8px;
  color: var(--accent);
}
.home-signal-body p {
  margin: 0;
}
.home-start-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 30px;
}
.home-start-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.home-start-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.home-start-card p {
  margin-bottom: 0;
}
.home-source-note {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent2);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 16px 0 0;
}
.home-source-note ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
@media (max-width: 980px) {
  .home-signal-grid,
  .home-start-grid {
    grid-template-columns: 1fr;
  }
}


/* Homepage evolved gateway */
.home-gateway {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: center;
  margin: 10px 0 30px;
}
.home-gateway-text h2 {
  margin-top: 0;
}
.home-gateway-text p {
  font-size: 1.08rem;
  line-height: 1.55;
}
.home-gateway-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.home-gateway-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.home-gateway-caption {
  padding: 14px 16px 16px;
  font-size: .95rem;
  color: var(--muted);
}
.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 32px;
}
.home-entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.home-entry-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.home-entry-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.home-entry-card li {
  margin: 6px 0;
}
.home-visual-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 30px;
}
.home-visual-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 18px 42px rgba(13,29,46,0.075));
}
.home-visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.home-visual-card div {
  padding: 14px 16px 16px;
}
.home-visual-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
}
.home-visual-card p {
  margin: 0;
}
.home-decision-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 28px;
}
.home-decision-strip div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  text-align: center;
  font-weight: 800;
}
.home-minor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}
.home-minor-links a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}
@media (max-width: 980px) {
  .home-gateway,
  .home-entry-grid,
  .home-visual-row,
  .home-decision-strip {
    grid-template-columns: 1fr;
  }
}


/* Premium editorial pass */
.premium-hero {
  padding: 54px 0 30px;
}
.premium-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  align-items: center;
}
.premium-eyebrow {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 16px;
}
.premium-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: .88;
  letter-spacing: -.06em;
  margin: 0 0 22px;
}
.premium-subtitle {
  max-width: 760px;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.45;
  color: #273441;
  margin: 0 0 22px;
}
.premium-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.premium-cta-row a {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
}
.premium-cta-row a.primary {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.premium-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(10, 22, 34, .12);
}
.premium-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.premium-visual-caption {
  padding: 16px 18px 18px;
  font-size: .95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.premium-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 46px;
}
.premium-route-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  min-height: 260px;
  box-shadow: 0 16px 44px rgba(10, 22, 34, .06);
}
.premium-route-card h3 {
  font-size: 1.28rem;
  margin: 0 0 12px;
  color: var(--accent);
}
.premium-route-card p {
  color: #31404d;
  margin-bottom: 16px;
}
.premium-route-card ul {
  margin: 0;
  padding-left: 18px;
}
.premium-route-card li {
  margin: 7px 0;
}
.premium-record-strip {
  background: var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  margin: 36px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}
.premium-record-strip h2 {
  color: #fff;
  margin: 0 0 12px;
}
.premium-record-strip p {
  color: #dce3ea;
  margin: 0;
}
.premium-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.premium-record-links a {
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
}
.premium-method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0 22px;
}
.premium-method div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 12px;
  text-align: center;
  font-weight: 900;
}
.premium-intro-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  margin: 10px 0 34px;
  box-shadow: 0 22px 60px rgba(10, 22, 34, .08);
}
.premium-intro-panel h2 {
  margin-top: 0;
}
.premium-intro-panel p {
  font-size: 1.08rem;
  line-height: 1.58;
  max-width: 920px;
}
.premium-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 12px;
}
.premium-mini-card {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.premium-mini-card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}
.premium-page-lead {
  font-size: 1.12rem;
  line-height: 1.58;
  max-width: 900px;
  color: #2e3c48;
}
@media (max-width: 980px) {
  .premium-hero-grid,
  .premium-routes,
  .premium-record-strip,
  .premium-method,
  .premium-mini-grid {
    grid-template-columns: 1fr;
  }
  .premium-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }
  .premium-visual img {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 640px) {
  .premium-hero {
    padding-top: 32px;
  }
  .premium-hero-grid {
    gap: 26px;
  }
  .premium-route-card,
  .premium-record-strip,
  .premium-intro-panel {
    border-radius: 22px;
    padding: 22px;
  }
}


/* Trust architecture pass */
.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.evidence-tags span {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 900;
  color: var(--accent);
}
.record-use-block {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent2);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 28px 0 16px;
}
.record-use-block h2,
.record-use-block h3 {
  margin-top: 0;
}
.record-use-block dl {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 16px;
  margin: 0;
}
.record-use-block dt {
  font-weight: 900;
  color: var(--accent);
}
.record-use-block dd {
  margin: 0;
}
.trust-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 32px;
}
.trust-hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(10, 22, 34, .06);
}
.trust-hub-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.trust-hub-card p {
  margin-bottom: 0;
}
.trust-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 22px 0 30px;
}
.trust-flow div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  font-weight: 900;
}
.trust-table td:first-child,
.trust-table th:first-child {
  min-width: 170px;
}
@media (max-width: 900px) {
  .trust-hub-grid,
  .trust-flow,
  .record-use-block dl {
    grid-template-columns: 1fr;
  }
}


/* Scientific deepening pass */
.science-map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 34px;
}
.science-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(10, 22, 34, .06);
}
.science-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.science-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.science-card li {
  margin: 6px 0;
}
.equation-box {
  background: #0f1b2a;
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 14px 0;
  font-family: "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace;
  overflow-x: auto;
}
.science-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 26px;
}
.science-chain div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  text-align: center;
  font-weight: 900;
}
.science-note {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent2);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 18px 0;
}
.science-note strong {
  color: var(--accent);
}
@media (max-width: 900px) {
  .science-map-grid,
  .science-chain {
    grid-template-columns: 1fr;
  }
}


/* Homepage hero title above image */
.home-title-above-visual .premium-hero-grid {
  display: block;
}
.home-title-above-visual .premium-hero-grid > div:first-child {
  max-width: 980px;
}
.home-title-above-visual .premium-visual {
  margin-top: 34px;
  max-width: 1120px;
}
.home-title-above-visual .premium-visual img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
@media (max-width: 760px) {
  .home-title-above-visual .premium-visual {
    margin-top: 24px;
  }
  .home-title-above-visual .premium-visual img {
    aspect-ratio: 16 / 10;
  }
}


/* Homepage H1 and plunger visual refinement */
.home-title-above-visual h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
@media (min-width: 980px) {
  .home-title-above-visual h1 {
    white-space: nowrap;
  }
}
.home-title-above-visual .premium-subtitle {
  max-width: 900px;
}
.home-title-above-visual .premium-visual img {
  aspect-ratio: 16 / 6.8;
  object-position: center center;
}


/* Homepage sharper plunger-head visual */
.home-title-above-visual .premium-visual img[src*="home-hero-coated-plunger-head"] {
  background: #f2f4f7;
  object-fit: cover;
  object-position: center center;
}


/* Homepage practical entry block */
.home-practical-entry {
  margin-top: -14px;
  margin-bottom: 34px;
}
.home-practical-entry .section-head {
  max-width: 820px;
  margin-bottom: 18px;
}
.home-practical-entry .section-head h2 {
  margin-bottom: 8px;
}
.home-practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.home-practical-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(10, 22, 34, .06);
}
.home-practical-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.home-practical-card p {
  margin-bottom: 0;
}
.home-practical-card .small-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2);
}
@media (max-width: 900px) {
  .home-practical-grid {
    grid-template-columns: 1fr;
  }
  .home-practical-entry {
    margin-top: 0;
  }
}


/* Expanded applications map */
.application-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0 34px;
}
.application-cluster-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(10, 22, 34, .06);
}
.application-cluster-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.application-cluster-card p {
  margin-bottom: 12px;
}
.application-cluster-card ul {
  margin: 0;
  padding-left: 18px;
}
.application-cluster-card li {
  margin: 6px 0;
}
.application-cluster-card .cluster-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
}
.application-path-table td:first-child,
.application-path-table th:first-child {
  min-width: 190px;
}
@media (max-width: 900px) {
  .application-cluster-grid {
    grid-template-columns: 1fr;
  }
}


/* Full industrial application map */
.application-cluster-grid.application-cluster-grid-wide {
  grid-template-columns: repeat(3, 1fr);
}
.application-cluster-card.compact-application-card {
  padding: 20px;
}
.application-cluster-card.compact-application-card p {
  font-size: .94rem;
}
@media (max-width: 1100px) {
  .application-cluster-grid.application-cluster-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .application-cluster-grid.application-cluster-grid-wide {
    grid-template-columns: 1fr;
  }
}


/* Restored engineering context maps */
.restored-context-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 34px;
}
.restored-context-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 44px rgba(10,22,34,.06);
}
.restored-context-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.restored-context-card p {
  font-size: .94rem;
  margin-bottom: 10px;
}
.restored-context-card ul {
  margin: 0;
  padding-left: 18px;
}
.restored-context-card li {
  margin: 5px 0;
}
.restored-context-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
}
.priority-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 30px;
}
.priority-strip span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 99, 164, .08);
  border: 1px solid rgba(22, 99, 164, .16);
  font-weight: 800;
  font-size: .86rem;
}
@media (max-width: 1100px) {
  .restored-context-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .restored-context-grid { grid-template-columns: 1fr; }
}


/* External profile additions */
.identity-line {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--accent2);
  margin: 12px 0 0;
}
.identity-alias-note {
  font-size: .96rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.identity-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0 34px;
}
.identity-hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(10,22,34,.06);
}
.identity-hub-card h3 { margin-top: 0; color: var(--accent); }
.identity-hub-card ul { margin: 0; padding-left: 18px; }
.identity-hub-card li { margin: 6px 0; }
.identity-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.identity-badge-row span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22,99,164,.08);
  border: 1px solid rgba(22,99,164,.16);
  font-weight: 800;
  font-size: .86rem;
}
@media (max-width: 860px) {
  .identity-hub-grid { grid-template-columns: 1fr; }
}


/* Diffusion modelling and glass-melting evidence restoration */
.evidence-restore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0 34px;
}
.evidence-restore-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(10,22,34,.06);
}
.evidence-restore-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.evidence-restore-card p {
  font-size: .95rem;
  margin-bottom: 10px;
}
.evidence-restore-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
}
@media (max-width: 820px) {
  .evidence-restore-grid { grid-template-columns: 1fr; }
}
