/* ══════════════════════════════════════════════════
   TOKENS
   ══════════════════════════════════════════════════ */
:root {
  --ink:       #101516;
  --ink-soft:  #273132;
  --muted:     #5c6869;
  --line:      #dce4e3;
  --line-dark: rgba(255, 255, 255, 0.10);
  --paper:     #f5f7f7;
  --white:     #ffffff;
  --panel:     #eef3f2;
  --teal:      #009f98;
  --teal-dark: #006f6b;
  --cyan:      #35c9c1;
  --graphite:  #172021;
  --graphite-2:#202b2c;
  --shadow:    0 22px 70px rgba(18, 31, 32, 0.12);
}

/* ══════════════════════════════════════════════════
   RESET + BASE
   ══════════════════════════════════════════════════ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ══════════════════════════════════════════════════
   TYPE SCALE
   ══════════════════════════════════════════════════ */
h1, h2, h3, p, dl, dd { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  max-width: 820px;
  font-size: clamp(3.1rem, 6vw, 6.3rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.18;
}

/* ══════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════ */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--graphite);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-wordmark {
  height: 46px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a {
  padding: 8px 0;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--white);
}

.header-contact {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.header-contact:hover {
  color: rgba(255, 255, 255, 0.82);
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  display: grid;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 52px 36px 80px;
}

.hero--institutional {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 56px;
  min-height: 600px;
}

.hero-copy { max-width: 840px; }

.hero-discipline {
  margin: 0 0 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.5;
}

.discipline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.discipline-tags span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-ecosystem {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-flow-diagram {
  width: 90%;
  height: auto;
  display: block;
  filter: contrast(1.22) saturate(1.1);
}

/* ══════════════════════════════════════════════════
   ÁREAS DE ATUAÇÃO
   ══════════════════════════════════════════════════ */
.areas-section {
  background: var(--graphite);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 60px 36px;
}

.areas-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.areas-wrap > .eyebrow {
  margin-bottom: 28px;
  color: var(--cyan);
}

.areas-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.area-col {
  padding: 32px 40px 32px 0;
  border-right: 1px solid var(--line-dark);
}

.area-col + .area-col {
  padding-left: 40px;
}

.area-col:last-child {
  border-right: none;
  padding-right: 0;
}

.area-col-title {
  display: block;
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.area-col p {
  margin: 0;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.62;
}

/* ══════════════════════════════════════════════════
   METODOLOGIA
   ══════════════════════════════════════════════════ */
.methodology-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 80px 36px;
}

.method-heading {
  width: min(640px, 100%);
  margin: 0 auto 52px;
  text-align: center;
}

.method-heading .eyebrow { margin-bottom: 16px; }

.method-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  margin-bottom: 16px;
}

.method-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: min(1180px, 100%);
  border: 1px solid var(--line);
  background: var(--line);
}

.method-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.method-flow li:last-child { border-right: 0; }

.method-flow li::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -9px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-top: 1px solid #9babab;
  border-right: 1px solid #9babab;
  background: var(--white);
  transform: rotate(45deg);
}

.method-flow li:last-child::after { display: none; }

.method-step {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
}

.method-flow strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.method-tags {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.method-tags li {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════
   REFERÊNCIAS
   ══════════════════════════════════════════════════ */
.foundation-section {
  color: var(--white);
  background: var(--graphite);
}

.references-section {
  padding: 100px 36px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading.inverted { color: var(--white); }

.section-heading.inverted .eyebrow { color: var(--cyan); }

.section-heading.inverted > div > h2 { margin-bottom: 20px; }

.section-heading.inverted > div > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 580px;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ref-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}

.ref-item:nth-child(2n)        { border-right: none; }
.ref-item:nth-last-child(-n+2) { border-bottom: none; }

.ref-code {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  white-space: nowrap;
}

.ref-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════
   PLATAFORMA
   ══════════════════════════════════════════════════ */
.platform-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 80px 36px;
}

.platform-wrap {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 72px;
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.platform-heading .eyebrow { margin-bottom: 16px; }

.platform-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  margin-bottom: 16px;
}

.platform-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.platform-stack {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.platform-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

.platform-row:last-child { border-bottom: none; }

.platform-row:hover { background: var(--paper); }

.platform-row--suite { background: #f8fbfb; }
.platform-row--suite:hover { background: #f2f7f6; }

.platform-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  white-space: nowrap;
}

.platform-row--suite .platform-name { color: var(--ink); }

.platform-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.platform-output {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════
   HERO STATS
   ══════════════════════════════════════════════════ */
.hero-stats {
  margin: 24px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   ENTREGÁVEIS
   ══════════════════════════════════════════════════ */
.deliverables-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 80px 36px;
}

.deliverables-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.deliverables-heading {
  width: min(640px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.deliverables-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  margin-bottom: 16px;
}

.deliverables-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  gap: 1px;
  background: var(--line);
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--white);
}

.deliverable-dot {
  width: 6px;
  height: 6px;
  background: var(--teal-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

.deliverable-label {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════
   CASOS REAIS
   ══════════════════════════════════════════════════ */
.cases-section {
  background: var(--graphite);
  padding: 80px 36px;
}

.cases-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.cases-heading { margin-bottom: 48px; }

.cases-heading .eyebrow {
  color: var(--cyan);
  margin-bottom: 14px;
}

.cases-heading h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0;
}

.cases-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
}

.case-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.12s;
}

.case-row:last-child { border-bottom: none; }

.case-row:hover { background: rgba(255, 255, 255, 0.03); }

.case-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-domain {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.case-type {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

.case-scenario {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.case-output {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  text-align: right;
}

/* ══════════════════════════════════════════════════
   CONTATO
   ══════════════════════════════════════════════════ */
.contact-section {
  padding: 100px 36px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-inner {
  width: min(640px, 100%);
  margin: 0 auto;
}

.contact-inner .eyebrow { margin-bottom: 18px; }

.contact-inner h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  margin-bottom: 16px;
}

.contact-inner > p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 32px;
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--teal-dark);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.contact-email:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  padding: 28px 36px 36px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-brand span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

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

.footer-email {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  transition: opacity 0.15s;
}

.footer-email:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════
   NAV HIGHLIGHT
   ══════════════════════════════════════════════════ */
.nav-highlight {
  color: var(--cyan) !important;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   NOTAS TÉCNICAS — INDEX
   ══════════════════════════════════════════════════ */
.page-hero {
  background: var(--graphite);
  padding: 64px 36px 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 60px;
  align-items: end;
}

.page-hero .eyebrow {
  color: var(--cyan);
  margin-bottom: 16px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 5rem);
  margin-bottom: 0;
  max-width: none;
}

.page-hero-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1.65;
  align-self: end;
  padding-bottom: 6px;
}

.notes-section {
  background: var(--white);
  padding: 72px 36px;
}

.notes-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.notes-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 64px 90px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.note-row:last-child { border-bottom: none; }

.note-row:hover { background: var(--paper); }

.note-code {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.note-domain {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(0, 159, 152, 0.07);
  border: 1px solid rgba(0, 159, 152, 0.2);
  padding: 3px 8px;
  white-space: nowrap;
}

.note-body { min-width: 0; }

.note-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.note-abstract {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.note-date {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.note-readtime {
  font-size: 0.62rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════
   NOTAS TÉCNICAS — ARTIGO
   ══════════════════════════════════════════════════ */
.article-hero {
  background: var(--graphite);
  padding: 60px 36px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-hero-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.article-hero .eyebrow {
  color: var(--cyan);
  margin-bottom: 20px;
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: none;
  margin-bottom: 28px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-byline-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.article-byline-item strong {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  margin-bottom: 2px;
}

.article-body-section {
  background: var(--white);
  padding: 72px 36px 100px;
}

.article-body {
  width: min(720px, 100%);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.article-body h2 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--ink);
  letter-spacing: -0.015em;
}

.article-body h3 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article-body p { margin-bottom: 24px; }

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body .note-callout {
  margin: 36px 0;
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--teal-dark);
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.65;
}

.article-body .note-callout p { margin: 0; }

.article-ref-section {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-ref-section h2 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  margin-top: 0;
}

.article-ref-section ol {
  padding-left: 20px;
  margin: 0;
}

.article-ref-section li {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.55;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}

.article-back:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════
   ARTICLE — WRAPPER & HEADER (NT.19+ template)
   ══════════════════════════════════════════════════ */
.article-wrap {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 64px 36px 100px;
}

.article-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 14px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 16px;
  max-width: none;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.70rem;
  color: var(--muted);
}

.article-code {
  margin: 28px 0 32px;
  background: var(--graphite);
  border-radius: 4px;
  overflow-x: auto;
}

.article-code pre {
  margin: 0;
  padding: 20px 22px;
  font-size: 0.76rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0 32px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table caption {
  text-align: left;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.data-table th {
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.data-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
  vertical-align: top;
}

.fig-caption {
  display: block;
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ══════════════════════════════════════════════════
   ARTICLE FIGURES & CHARTS
   ══════════════════════════════════════════════════ */
.article-figure {
  margin: 40px 0 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.fig-label {
  display: block;
  padding: 12px 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}

.fig-note {
  display: block;
  padding: 12px 20px;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  line-height: 1.55;
  letter-spacing: 0;
  font-weight: 400;
}

/* Availability heatmap table */
.avail-table-wrap {
  overflow-x: auto;
  padding: 20px;
}

.avail-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.avail-table th {
  padding: 6px 10px;
  text-align: center;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.avail-table th:first-child { text-align: left; }

.avail-height {
  padding: 8px 10px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.avail-table td {
  padding: 6px 10px;
  text-align: center;
  font-size: 0.70rem;
  border-bottom: 1px solid var(--paper);
}

.avail-ok   { background: #d4edda; color: #1a6630; font-weight: 500; }
.avail-warn { background: #fff3cd; color: #7d5a00; font-weight: 500; }
.avail-bad  { background: #f8d7da; color: #7b1f28; font-weight: 500; }

/* Legend */
.avail-legend {
  display: flex;
  gap: 24px;
  padding: 10px 20px 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.swatch-ok   { background: #d4edda; border: 1px solid #1a6630; }
.swatch-warn { background: #fff3cd; border: 1px solid #7d5a00; }
.swatch-bad  { background: #f8d7da; border: 1px solid #7b1f28; }

/* Gap timeline SVG */
.gap-timeline {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 12px auto;
}

/* Weibull chart SVG */
.weibull-chart {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 12px auto;
}

/* SVG text helpers */
.svg-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  fill: var(--muted);
}

.svg-amber { fill: #a16b0a; }
.svg-teal  { fill: var(--teal-dark); }

/* Article reference list */
.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.55;
  align-items: baseline;
}

.ref-list li:last-child { border-bottom: none; }

.ref-code {
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1120px) {
  .method-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-flow li:nth-child(3) { border-right: 0; }
  .method-flow li:nth-child(3)::after { display: none; }

  .platform-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .platform-row {
    grid-template-columns: 120px 1fr;
    gap: 20px;
  }

  .platform-output { display: none; }

  .references-grid { grid-template-columns: 1fr; }

  .ref-item { border-right: none; }

  .ref-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .ref-item:last-child { border-bottom: none; }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 18px 22px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    order: 3;
  }

  .hero--institutional {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 22px 64px;
    min-height: auto;
  }

  .methodology-section,
  .references-section,
  .platform-section,
  .deliverables-section,
  .cases-section,
  .contact-section,
  .areas-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ══════════════════════════════════════════════════
   RELATED NOTES — cross-links between articles
   ══════════════════════════════════════════════════ */
.related-notes {
  margin: 48px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related-notes h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.related-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-note-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: border-color 0.15s, background 0.15s;
}

.related-note-card:hover {
  border-color: var(--teal);
  background: var(--paper);
}

.rn-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.05em;
}

.rn-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.rn-meta {
  font-size: 0.70rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Inline cross-reference links within article body */
.article-body a.xref {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}

.article-body a.xref:hover {
  color: var(--teal);
}

/* ── NOTES PREVIEW (home page) ── */
.notes-preview-section {
  background: var(--paper);
  padding: 80px 24px;
}

.notes-preview-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.notes-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.notes-preview-heading h2 {
  margin: 0;
}

.notes-preview-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}

.notes-preview-all:hover { color: var(--teal); }

.notes-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.notes-preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notes-preview-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 10px rgba(0,159,152,0.09);
}

.npc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.npc-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.05em;
}

.npc-domain {
  font-size: 0.70rem;
  color: var(--muted);
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.npc-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.npc-abstract {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.npc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    display: block;
    padding: 16px 22px;
  }

  .site-nav {
    margin-top: 14px;
    gap: 12px 16px;
  }

  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }

  .areas-cols { grid-template-columns: 1fr; }

  .area-col,
  .area-col + .area-col {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
  }

  .area-col:last-child { border-bottom: none; }

  .method-flow { grid-template-columns: 1fr; }

  .method-flow li {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .method-flow li:last-child { border-bottom: none; }
  .method-flow li::after { display: none; }

  .notes-preview-section { padding: 48px 20px; }

  .notes-preview-heading { flex-direction: column; gap: 14px; }

  .notes-preview-grid { grid-template-columns: 1fr; }

  .deliverables-grid { grid-template-columns: 1fr; }

  .case-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-output { text-align: left; }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}
