/* ============================================================
   CATINOX — shared stylesheet
   Theme: steel-cool dark; single warm "rouge" accent marks the threat.
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (utility)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-deep: #060e22;
  --navy:      #0a1530;
  --navy-mid:  #0d1f40;
  --panel:     #0c1832;
  --silver-lt: #e8eaf0;
  --silver:    #c8cad4;
  --silver-dim:#8a93a8;
  --accent:    #7a9cc8;   /* steel blue */
  --accent-lt: #a9c2e2;
  --rouge:     #b5683f;   /* the one warm color: the corrosion we remove */
  --rouge-soft:#c47f57;
  --line:      rgba(140,160,200,0.14);
  --line-soft: rgba(140,160,200,0.08);
  --maxw: 1140px;

  --nav-bg:    #1A366E;   /* logo/nav bar background — matches logo treatment */
  --page-bg:   #3B5998;   /* lighter royal blue page background */
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: var(--silver-lt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle fixed atmosphere */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 12%, rgba(90,120,180,0.30) 0%, transparent 68%),
    radial-gradient(ellipse 60% 70% at 85% 85%, rgba(30,55,110,0.30) 0%, transparent 70%),
    linear-gradient(165deg, #2c4a80 0%, #3b5998 45%, #32508c 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(120,150,200,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,200,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -1;
}

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; }

.eyebrow {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

h1, h2, h3 { font-family: "Archivo", system-ui, sans-serif; font-weight: 700; line-height: 1.08; color: var(--silver-lt); }

.section { padding: 5.5rem 0; position: relative; }
.section--tight { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.lead { font-size: 1.18rem; color: var(--silver); max-width: 60ch; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(26,54,110,0.92);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.9rem 1.6rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
@media (max-width: 820px) { .brand img { height: 36px; } }
.nav__links {
  display: flex; gap: 1.6rem; margin-left: auto; align-items: center;
  list-style: none;
}
.nav__links a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--silver);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav__links a:hover { color: var(--silver-lt); }
.nav__links a.active { color: var(--accent-lt); border-bottom-color: var(--accent); }

.lang {
  display: flex; gap: 2px; margin-left: 0.4rem;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.lang button {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.08em;
  background: transparent; color: var(--silver-dim);
  border: 0; padding: 0.32rem 0.5rem; cursor: pointer;
  transition: background .18s, color .18s;
}
.lang button.active { background: var(--accent); color: var(--navy-deep); font-weight: 600; }

.nav__toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: 4px;
  color: var(--silver-lt); padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1rem;
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(26,54,110,0.98);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__links.open { max-height: 420px; }
  .nav__links a { padding: 0.9rem 1.6rem; border-bottom: 1px solid var(--line-soft); }
  .nav__links li.lang-li { padding: 0.8rem 1.6rem; }
  .lang { margin-left: 0; width: max-content; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem; border-radius: 5px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .18s, border-color .18s, color .18s;
}
.btn--primary { background: var(--accent); color: var(--navy-deep); }
.btn--primary:hover { background: var(--accent-lt); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--silver-lt); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-lt); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 6.5rem 0 5rem; overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 1.3rem 0 1.4rem;
}
.hero h1 .em { color: var(--accent-lt); }
.hero__sub { font-size: 1.15rem; color: var(--silver); max-width: 54ch; }

/* signature: passive-layer surface with a rouge bloom that clears on load */
.passive-layer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-lt) 50%, var(--accent) 70%, transparent);
  opacity: 0.55;
}
.hero__bloom {
  position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 55% at 78% 60%, rgba(181,104,63,0.34) 0%, rgba(181,104,63,0.12) 40%, transparent 72%);
  animation: rougeClear 4.6s ease-out forwards;
}
@keyframes rougeClear {
  0%   { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0;   transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bloom { animation: none; opacity: 0; }
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
}
.pillar h3 { font-size: 1.18rem; margin-bottom: 0.7rem; }
.pillar p { font-size: 0.96rem; color: var(--silver); }
.pillar .tick { color: var(--accent-lt); font-family:"Archivo",sans-serif; font-weight:600; font-size:0.82rem; letter-spacing:0.08em; display:block; margin-bottom:0.9rem; text-transform:uppercase;}
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- section header ---------- */
.shead { max-width: 62ch; margin-bottom: 2.6rem; }
.shead h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.8rem 0 1rem; }
.shead p { color: var(--silver); font-size: 1.05rem; }

/* ---------- services ---------- */
.track { margin-bottom: 3.4rem; }
.track__label {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-lt); margin-bottom: 0.4rem;
}
.track__title { font-size: 1.5rem; margin-bottom: 0.4rem; }
.track__intro { color: var(--silver); max-width: 60ch; margin-bottom: 1.6rem; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.svc {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.5rem 1.4rem;
}
.svc h4 { font-family:"Archivo",sans-serif; font-size: 1.1rem; font-weight:700; margin-bottom: 0.5rem; color: var(--silver-lt); }
.svc p { font-size: 0.93rem; color: var(--silver); }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

.access {
  margin-top: 1.4rem; padding: 1.4rem 1.5rem;
  border: 1px dashed var(--line); border-radius: 8px; background: rgba(122,156,200,0.04);
}
.access ul { list-style: none; display: grid; gap: 0.55rem; }
.access li { padding-left: 1.4rem; position: relative; color: var(--silver); font-size: 0.95rem; }
.access li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.continuity {
  text-align: center; margin-top: 1rem;
  font-family: "Archivo", sans-serif; font-size: clamp(1.2rem,2.6vw,1.7rem); font-weight: 600;
  color: var(--silver-lt); line-height: 1.3;
}
.continuity .em { color: var(--accent-lt); }

/* ---------- compliance program cycle ---------- */
.program { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.pstep {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.4rem 1.2rem;
}
.pstep .pnum {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--accent-lt); display: block; margin-bottom: 0.7rem;
}
.pstep h4 { font-family:"Archivo",sans-serif; font-size: 1.02rem; margin-bottom: 0.5rem; color: var(--silver-lt); }
.pstep p { font-size: 0.9rem; color: var(--silver); }
@media (max-width: 860px) { .program { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .program { grid-template-columns: 1fr; } }

/* ---------- compliance ---------- */
.iso-row { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.iso {
  flex: 1 1 240px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.6rem;
}
.iso .code { font-family:"IBM Plex Mono",monospace; font-size: 1.25rem; color: var(--accent-lt); letter-spacing:0.04em; }
.iso h4 { font-family:"Archivo",sans-serif; font-size: 1rem; margin: 0.5rem 0 0.6rem; color: var(--silver-lt); }
.iso p { font-size: 0.93rem; color: var(--silver); }

.doc-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.9rem 1.8rem; margin-top: 1.4rem; }
.doc-list li { list-style: none; padding-left: 1.5rem; position: relative; color: var(--silver); }
.doc-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
@media (max-width: 700px) { .doc-list { grid-template-columns: 1fr; } }

/* image placeholder */
.imgph {
  border: 1px dashed var(--line); border-radius: 8px;
  background: repeating-linear-gradient(45deg, rgba(122,156,200,0.04) 0 12px, transparent 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--silver-dim); font-family:"IBM Plex Mono",monospace; font-size: 0.78rem;
  letter-spacing: 0.06em; text-align: center; padding: 2rem; min-height: 180px;
}

/* ---------- leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.leader {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.7rem 1.5rem;
}
.leader .photoph {
  width: 100%; aspect-ratio: 1/1; border-radius: 6px; margin-bottom: 1.1rem;
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(45deg, rgba(122,156,200,0.04) 0 12px, transparent 12px 24px);
  display:flex; align-items:center; justify-content:center;
  color: var(--silver-dim); font-family:"IBM Plex Mono",monospace; font-size:0.72rem; letter-spacing:0.06em;
}
.leader .photo {
  width: 100%; aspect-ratio: 1/1; border-radius: 6px; margin-bottom: 1.1rem;
  object-fit: cover; display: block; border: 1px solid var(--line);
}
.leader h3 { font-size: 1.18rem; margin-bottom: 0.2rem; }
.leader .role {
  font-family:"Archivo",sans-serif; font-weight:600; font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--accent-lt); text-transform: uppercase; margin-bottom: 0.9rem; display:block;
}
.leader p { font-size: 0.92rem; color: var(--silver); }
@media (max-width: 820px) { .leaders { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.4rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
input, select, textarea {
  width: 100%; font-family: "IBM Plex Sans", sans-serif; font-size: 0.95rem;
  background: rgba(10,21,48,0.7); color: var(--silver-lt);
  border: 1px solid var(--line); border-radius: 5px; padding: 0.8rem 0.9rem;
  transition: border-color .18s;
}
input::placeholder, textarea::placeholder { color: var(--silver-dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; cursor: pointer; }
.contact-info h4 { font-family:"Archivo",sans-serif; font-size: 1rem; margin-bottom: 0.4rem; color: var(--silver-lt); }
.contact-info p, .contact-info a { color: var(--silver); font-size: 0.95rem; text-decoration: none; }
.contact-info a:hover { color: var(--accent-lt); }
.contact-block { margin-bottom: 1.6rem; }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy-mid); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.4rem 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer p, .footer a { font-size: 0.82rem; color: var(--silver-dim); text-decoration: none; }
.footer a:hover { color: var(--accent-lt); }
.footer .iso-mini { font-family:"IBM Plex Mono",monospace; letter-spacing: 0.08em; }
.footer .foot-legal a { color: var(--silver); }
.footer .foot-legal a:hover { color: var(--accent-lt); }

/* ---------- program cycle graphic ---------- */
.cycle-graphic { margin: 2rem 0 2.4rem; }
.cycle-graphic svg { width: 100%; height: auto; display: block; overflow: visible; }
.cycle-node-label { font-family:"Archivo",sans-serif; font-weight:700; font-size:15px; fill: var(--silver-lt); }
.cycle-node-num { font-family:"IBM Plex Mono",monospace; font-size:12px; letter-spacing:0.08em; fill: var(--accent-lt); }
.cycle-ring { fill:none; stroke: var(--line); stroke-width:1.5; }
.cycle-arrowline { stroke: var(--accent); stroke-width:2; fill:none; }
.cycle-dot-bg { fill: var(--panel); stroke: var(--accent); stroke-width:2; }
.cycle-center-txt { font-family:"Archivo",sans-serif; font-weight:700; fill: var(--silver); }
.cycle-center-sub { font-family:"IBM Plex Mono",monospace; fill: var(--accent-lt); letter-spacing:0.1em; }

/* ---------- science diagram (rouge vs passive layer) ---------- */
.sci-wrap { margin-top: 2.4rem; }
.sci-wrap svg { width:100%; height:auto; display:block; overflow:visible; }
.sci-cap { font-family:"IBM Plex Mono",monospace; font-size:13px; letter-spacing:0.02em; fill: var(--silver-dim); }
.sci-label { font-family:"Archivo",sans-serif; font-weight:600; font-size:14px; }

/* ---------- derouging process diagram ---------- */
.proc-wrap { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line-soft); }
.proc-wrap svg { width:100%; height:auto; display:block; overflow:visible; }
.proc-stage-l { font-family:"Archivo",sans-serif; font-weight:700; font-size:16px; fill: var(--silver-lt); }
.proc-stage-n { font-family:"IBM Plex Mono",monospace; font-size:13px; letter-spacing:0.08em; fill: var(--accent-lt); }
.proc-cap { font-family:"IBM Plex Sans",sans-serif; font-size:13px; fill: var(--silver); }
.proc-arrow { stroke: var(--accent); stroke-width:2; fill:none; }

/* ---------- diagram legends (captions live in HTML so they wrap + translate) ---------- */
.dgm { width:100%; height:auto; display:block; overflow:visible; }
.dgm-legend {
  /* gap must stay 0 so each column is exactly one third and lines up
     with the 01/02/03 zones in the diagram above; spacing comes from padding */
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:0; margin-top:1.4rem;
}
.dgm-legend > div {
  border-top:1px solid var(--line-soft);
  padding:0.8rem 1.6rem 0 1.5%;   /* 1.5% left inset matches the label inset inside the SVG */
}
.dgm-n {
  display:block; font-family:"IBM Plex Mono",monospace; font-size:0.7rem;
  letter-spacing:0.16em; color:var(--accent); margin-bottom:0.4rem;
}
.dgm-legend h4 {
  margin:0 0 0.3rem; font-family:"Archivo",sans-serif; font-weight:700;
  font-size:1rem; color:var(--silver-lt);
}
.dgm-legend p { margin:0; font-size:0.86rem; line-height:1.55; color:var(--silver-dim); }
@media (max-width: 720px) {
  .dgm-legend { grid-template-columns:1fr; gap:1rem; }
}

/* ---------- image slot (drop-in ready) ---------- */
.slot {
  position: relative; border: 1px dashed var(--line); border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(122,156,200,0.045) 0 14px, transparent 14px 28px);
  display:flex; align-items:center; justify-content:center; text-align:center;
  color: var(--silver-dim); font-family:"IBM Plex Mono",monospace; font-size:0.76rem; letter-spacing:0.04em;
  padding: 1.5rem;
}
.slot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.slot--hero { aspect-ratio: 16/7; min-height: 220px; }
.slot--track { aspect-ratio: 16/9; margin-top: 1.2rem; }
.slot--cert { aspect-ratio: 4/3; margin-top: 1rem; min-height: 150px; }

/* certificate images (language-swapped) */
.cert-img { margin-top: 1.1rem; }
.cert-img img {
  width: 100%; height: auto; display: block; border-radius: 6px;
  border: 1px solid var(--line); background: #fff;
}
.cert-img [data-lang-img] { display: none; }
.cert-img [data-lang-img].show { display: block; }

/* legal pages */
.legal h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0.8rem 0 1.6rem; }
.legal h3 { font-family:"Archivo",sans-serif; font-size: 1.15rem; margin: 2rem 0 0.6rem; color: var(--silver-lt); }
.legal p { color: var(--silver); margin-bottom: 0.9rem; }
.legal a { color: var(--accent-lt); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .placeholder {
  display: block; border: 1px dashed var(--rouge); border-radius: 6px;
  background: rgba(181,104,63,0.06); color: var(--rouge-soft);
  padding: 0.9rem 1rem; margin: 0.6rem 0 1.4rem; font-size: 0.88rem;
  font-family: "IBM Plex Mono", monospace; line-height: 1.5;
}
.legal .legal-lede {
  color: var(--silver-dim); font-size: 0.95rem;
  margin: -0.8rem 0 1.6rem;
}
.legal ul { color: var(--silver); margin: 0 0 0.9rem 1.1rem; padding: 0; }
.legal li { margin-bottom: 0.4rem; line-height: 1.6; }
.legal .legal-note {
  margin-top: 2.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--silver-dim); font-size: 0.86rem;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 2px solid var(--accent-lt); outline-offset: 2px; border-radius: 3px; }


/* ============================================================
   LIGHT / DARK SECTION RHYTHM
   Navy for impact (nav, hero, diagrams, CTA, footer);
   white for reading. Replaces the former all-over royal blue.
   NOTE: any component with a dark --panel background must have a
   light-ground rule below, or its heading inherits dark ink on dark.
   ============================================================ */

:root {
  --ink:        #0d1f40;   /* headings on light */
  --ink-body:   #3b4759;   /* body copy on light */
  --ink-dim:    #5a6675;   /* secondary on light */
  --accent-ink: #3f5f8a;   /* steel blue darkened for AA on white */
  --paper:      #ffffff;
  --paper-alt:  #f7f8fa;
  --hair:       #e4e8ee;
}

/* kill the all-over royal blue + its atmosphere layers */
body { background: var(--paper); color: var(--ink-body); }
body::before, body::after { display: none !important; }

/* --- guard: any dark ground re-establishes light text so nothing inherits dark ink --- */
.nav, .hero, .cta-band, .footer,
.sci-wrap, .proc-wrap, .section--dark { color: var(--silver); }
.nav h1, .nav h2, .nav h3,
.hero h1, .hero h2, .hero h3,
.cta-band h1, .cta-band h2, .cta-band h3,
.footer h1, .footer h2, .footer h3,
.sci-wrap h3, .sci-wrap h4,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--silver-lt); }
.hero .eyebrow, .section--dark .eyebrow { color: var(--accent-lt); }

/* ---------- DARK SECTIONS ---------- */
.hero,
.cta-band,
.footer,
.section--dark {
  background: var(--panel);
  position: relative;
}
.hero { border-bottom: 0; }
.cta-band { background: var(--navy-mid); }
.footer { background: var(--panel); border-top: 1px solid var(--line); }

/* ---------- LIGHT SECTIONS ---------- */
.section--light { background: var(--paper); border-top: 0; }
.section--alt   { background: var(--paper-alt); border-top: 0; }
.section--light + .section--light { border-top: 1px solid var(--hair); }

.section--light h1, .section--light h2, .section--light h3, .section--light h4,
.section--alt  h1, .section--alt  h2, .section--alt  h3, .section--alt  h4 { color: var(--ink); }

.section--light p, .section--alt p,
.section--light .lead, .section--alt .lead,
.section--light .shead p, .section--alt .shead p { color: var(--ink-body); }

.section--light .eyebrow, .section--alt .eyebrow { color: var(--accent-ink); }

/* cards on light ground — every component that ships a dark --panel background
   must be listed here, or its heading inherits dark ink onto a dark card */
.section--light .pillar, .section--alt .pillar,
.section--light .svc,    .section--alt .svc,
.section--light .leader, .section--alt .leader,
.section--light .track,  .section--alt .track,
.section--light .pstep,  .section--alt .pstep,
.section--light .iso,    .section--alt .iso {
  background: var(--paper);
  border: 1px solid var(--hair);
}
.section--light .pillar h3, .section--alt .pillar h3,
.section--light .svc h4,    .section--alt .svc h4,
.section--light .leader h3, .section--alt .leader h3,
.section--light .track h3,  .section--alt .track h3,
.section--light .pstep h3,  .section--alt .pstep h3,
.section--light .pstep h4,  .section--alt .pstep h4,
.section--light .iso h3,    .section--alt .iso h3,
.section--light .iso h4,    .section--alt .iso h4 { color: var(--ink); }
.section--light .pillar p, .section--alt .pillar p,
.section--light .svc p,    .section--alt .svc p,
.section--light .leader p, .section--alt .leader p,
.section--light .pstep p,  .section--alt .pstep p,
.section--light .iso p,    .section--alt .iso p { color: var(--ink-dim); }
.section--light .pillar .tick, .section--alt .pillar .tick { color: #9c5330; }
.section--light .leader .role, .section--alt .leader .role { color: var(--accent-ink); }

/* the science block keeps its dark ground so the diagrams still read */
.sci-wrap {
  background: var(--panel);
  border-radius: 10px;
  padding: 2.4rem 2rem 2rem;
  margin-top: 2.6rem;
}
.sci-wrap h3 { color: var(--silver-lt) !important; }
.sci-wrap > p, .proc-wrap > p { color: var(--silver) !important; }
.dgm-legend h4 { color: var(--silver-lt); }
.dgm-legend p  { color: var(--silver-dim); }
.proc-wrap { border-top: 1px solid var(--line-soft); }

/* buttons on light */
.section--light .btn--ghost, .section--alt .btn--ghost {
  color: var(--ink); border-color: #c9d2de;
}
.section--light .btn--ghost:hover, .section--alt .btn--ghost:hover {
  border-color: var(--accent-ink); color: var(--accent-ink);
}
.section--light .btn--primary, .section--alt .btn--primary {
  background: var(--ink); color: #fff;
}
.section--light .btn--primary:hover, .section--alt .btn--primary:hover { background: #16305c; }

/* misc light-ground bits */
.section--light .track__label, .section--alt .track__label { color: var(--accent-ink); }
.section--light .track__intro, .section--alt .track__intro { color: var(--ink-body); }
.section--light .continuity, .section--alt .continuity { color: var(--ink); }
.section--light .access, .section--alt .access {
  background: #eef2f7; border: 1px solid var(--hair); border-radius: 8px; padding: 1.4rem 1.5rem;
}
.section--light .access h4, .section--alt .access h4 { color: var(--ink) !important; }
.section--light .access li, .section--alt .access li { color: var(--ink-body); }

/* ---- form controls on a light ground ---- */
.section--light input, .section--light select, .section--light textarea,
.section--alt   input, .section--alt   select, .section--alt   textarea {
  background: var(--paper);
  border: 1px solid #c9d2de;
  color: var(--ink);
}
.section--light input::placeholder, .section--light textarea::placeholder,
.section--alt   input::placeholder, .section--alt   textarea::placeholder { color: #6b7686; }
.section--light select, .section--alt select { color: var(--ink); }
.section--light input:focus, .section--light select:focus, .section--light textarea:focus,
.section--alt   input:focus, .section--alt   select:focus, .section--alt   textarea:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(63,95,138,0.14);
}
.section--light select option, .section--alt select option { color: var(--ink); background: var(--paper); }

/* ---- remaining light-ground text bits ---- */
.section--light .shead p, .section--alt .shead p { color: var(--ink-body); }
.section--light .contact-info h4, .section--alt .contact-info h4 { color: var(--ink); }
.section--light .contact-info p, .section--light .contact-info a,
.section--alt   .contact-info p, .section--alt   .contact-info a { color: var(--ink-body); }
.section--light .contact-info a:hover, .section--alt .contact-info a:hover { color: var(--accent-ink); }
.section--light .iso .code, .section--alt .iso .code { color: var(--accent-ink); }
.section--light .pstep .pnum, .section--alt .pstep .pnum { color: #9c5330; }
.section--light .continuity .em, .section--alt .continuity .em { color: var(--accent-ink); }
.section--light .access li, .section--alt .access li { color: var(--ink-body); }
.section--light .access li::before, .section--alt .access li::before { color: #9c5330; }
.section--light .track__title, .section--alt .track__title { color: var(--ink); }

/* ---- track differentiation: accent rail (both tracks light) ---- */
.section--light .track--rail, .section--alt .track--rail,
.section--light .track--rail-2, .section--alt .track--rail-2 {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: 1.8rem 1.7rem;
}
.section--light .track--rail,   .section--alt .track--rail   { border-left: 4px solid var(--ink); }
.section--light .track--rail-2, .section--alt .track--rail-2 { border-left: 4px solid var(--accent-lt); }

.section--light .track--rail .track__label, .section--alt .track--rail .track__label,
.section--light .track--rail-2 .track__label, .section--alt .track--rail-2 .track__label { color: var(--accent-ink); }
.section--light .track--rail .track__title, .section--alt .track--rail .track__title,
.section--light .track--rail-2 .track__title, .section--alt .track--rail-2 .track__title { color: var(--ink); }
.section--light .track--rail .track__intro, .section--alt .track--rail .track__intro,
.section--light .track--rail-2 .track__intro, .section--alt .track--rail-2 .track__intro { color: var(--ink-body); }

/* content blocks inside either track */
.section--light .track--rail .svc, .section--alt .track--rail .svc,
.section--light .track--rail-2 .svc, .section--alt .track--rail-2 .svc {
  background: var(--paper-alt);
  border: 1px solid var(--hair);
  border-radius: 0;
}
.section--light .track--rail .svc h4, .section--alt .track--rail .svc h4,
.section--light .track--rail-2 .svc h4, .section--alt .track--rail-2 .svc h4 { color: var(--ink); }
.section--light .track--rail .svc p, .section--alt .track--rail .svc p,
.section--light .track--rail-2 .svc p, .section--alt .track--rail-2 .svc p { color: var(--ink-dim); }
.section--light .track--rail .access, .section--alt .track--rail .access,
.section--light .track--rail-2 .access, .section--alt .track--rail-2 .access {
  background: #eef2f7; border: 1px solid var(--hair); border-radius: 0;
}
.section--light .track--rail .access h4, .section--alt .track--rail .access h4,
.section--light .track--rail-2 .access h4, .section--alt .track--rail-2 .access h4 { color: var(--ink) !important; }
.section--light .track--rail .access li, .section--alt .track--rail .access li,
.section--light .track--rail-2 .access li, .section--alt .track--rail-2 .access li { color: var(--ink-body); }
.section--light .track--rail .access li::before, .section--alt .track--rail .access li::before,
.section--light .track--rail-2 .access li::before, .section--alt .track--rail-2 .access li::before { color: #9c5330; }

/* "Start here" keeps the navy treatment so it still reads as the entry point */
.section--light .track--entry, .section--alt .track--entry {
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rouge);
  border-radius: 0;
  color: var(--silver);
}
.section--light .track--entry .track__title, .section--alt .track--entry .track__title { color: var(--silver-lt); }
.section--light .track--entry .track__label, .section--alt .track--entry .track__label { color: var(--rouge-soft); }
.section--light .track--entry .track__intro, .section--alt .track--entry .track__intro { color: var(--silver); }

/* ---- compliance: same rail treatment as the service tracks ---- */
.section--light .pstep, .section--alt .pstep,
.section--light .iso,   .section--alt .iso {
  border-radius: 0;
  border-left: 4px solid var(--ink);
}
.section--light .iso .code, .section--alt .iso .code { color: var(--ink); }
.section--light .cert-img img, .section--alt .cert-img img {
  border-radius: 0; border: 1px solid #d5dce6;
}
/* documentation list on a light ground */
.section--light .doc-list li, .section--alt .doc-list li { color: var(--ink-body); }
.section--light .doc-list li::before, .section--alt .doc-list li::before { background: #9c5330; }
.section--light .prog-intro, .section--alt .prog-intro { color: var(--ink-body); }

/* ---- legal pages (Impressum / Datenschutz / AGB) on the light ground ---- */
.legal h2, .legal h3 { color: var(--ink); }
.legal p, .legal ul, .legal li { color: var(--ink-body); }
.legal a { color: var(--accent-ink); }
.legal a:hover { color: var(--ink); text-decoration: underline; }
.legal .eyebrow { color: var(--accent-ink); }
.legal .legal-lede { color: var(--ink-dim); }
.legal .legal-note { color: var(--ink-dim); border-top: 1px solid var(--hair); }
.legal .placeholder {
  border: 1px dashed #9c5330; background: rgba(156,83,48,0.06); color: #7d4224;
}
