/*
  RDCYBER — site stylesheet
  ---------------------------------------------------------------
  Tokens
    paper  #F7F8FA  page background (cool, not cream)
    white  #FFFFFF  alternate bands, header
    ink    #0E1A2B  text
    steel  #4F5F74  secondary text (6.1:1 on paper)
    rule   #D6DDE6  hairlines
    navy   #0B2F5B  brand: links, dark bands, buttons
    amber  #F0A500  signal accent, used ONLY on navy surfaces
                    (diagram, focus ring on dark) and the logo cell
  Type
    IBM Plex Serif 500/600  headings
    IBM Plex Sans 400/600   text and interface
  Layout
    Left-aligned; 12-column feel via a 5/7 "split" for heading + body.
  Motion
    One moment only: the containment line in the hero diagram draws once.
*/

/* ---------- Fonts (self-hosted, SIL OFL; see /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --ink: #0E1A2B;
  --steel: #4F5F74;
  --rule: #D6DDE6;
  --field: #7B8A9C;
  --navy: #0B2F5B;
  --navy-deep: #08244A;
  --amber: #F0A500;
  --on-navy: #FFFFFF;
  --on-navy-soft: #C9D4E3;
  --on-navy-rule: rgba(255, 255, 255, 0.18);

  --sans: "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Plex Serif", "IBM Plex Serif", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(56px, 7vw, 104px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.band--navy :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--amber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 20px; height: 20px; fill: var(--navy); }
.brand__mark .brand__cell { fill: var(--amber); }
.brand__name { font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.08em; }

.site-nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.site-nav ul { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 4px 0; }
.site-nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-nav .lang { color: var(--steel); padding-left: 24px; border-left: 1px solid var(--rule); }

@media (max-width: 720px) {
  .site-header__inner { position: relative; padding-top: 14px; padding-bottom: 10px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 4px 18px; }
  .site-nav .lang { position: absolute; top: 14px; right: var(--gutter); padding: 0; border-left: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--rule); }
.hero__grid {
  display: grid; gap: 40px; align-items: center;
  padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px);
}
@media (min-width: 960px) { .hero__grid { grid-template-columns: 7fr 6fr; gap: 64px; } }
.hero__title {
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.02em; max-width: 17ch;
}
.hero__lede { margin-top: 24px; font-size: 1.1875rem; color: var(--steel); max-width: 52ch; }
.hero__text > p:last-child { margin-top: 28px; }
.link-strong { font-weight: 600; }

/* Network diagram */
.netmap { margin: 0; background: var(--navy); border-radius: 4px; padding: clamp(16px, 3vw, 28px); }
.netmap svg { width: 100%; height: auto; font-family: var(--sans); }
.netmap figcaption { margin-top: 14px; color: var(--on-navy-soft); font-size: 0.9375rem; }
.nm-node { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.25; }
.nm-policy { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.25; }
.nm-link { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.25; }
.nm-link--cut { stroke: rgba(240, 165, 0, 0.7); stroke-dasharray: 3 4; }
.nm-deny { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.nm-zone { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.nm-dev { fill: rgba(255, 255, 255, 0.26); }
.nm-dev--hit { fill: var(--amber); }
.nm-label { fill: var(--on-navy); font-size: 15px; font-weight: 600; }
.nm-center { text-anchor: middle; }
.nm-note { fill: var(--amber); font-size: 13px; font-weight: 600; }
.nm-contain { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; }
@media (max-width: 560px) {
  .nm-label { font-size: 18px; }
  .nm-note { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nm-contain { animation: nm-draw 1.6s 0.5s cubic-bezier(0.65, 0, 0.25, 1) both; }
  @keyframes nm-draw { from { stroke-dashoffset: 100; } }
}

/* ---------- Bands and section layout ---------- */
.band { padding: var(--band) 0; }
.band--white { background: var(--white); }
.band + .band--white, .band--white + .band { border-top: 1px solid var(--rule); }
.band--navy { background: var(--navy); color: var(--on-navy); border-top: 0 !important; }
.band--navy + .band { border-top: 0; }

.section-title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); max-width: 26ch; margin-bottom: clamp(28px, 3.5vw, 44px); }

.split { display: grid; gap: 20px 64px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }
.split__head { font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem); max-width: 18ch; }
.band--navy .split__head h2, .band--navy h2 { color: var(--on-navy); font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.125rem); }

.prose > * + * { margin-top: 1em; }
.prose { max-width: 64ch; }
.prose h3 { margin-top: 2em; }

/* "What we bring", scope and experience: a two-column ledger, not cards */
.ledger { border-top: 2px solid var(--navy); }
.ledger thead th {
  text-align: left; font-weight: 600; font-size: 0.9375rem; color: var(--steel);
  padding: 14px 24px 14px 0; border-bottom: 1px solid var(--rule);
}
.ledger tbody th, .ledger tbody td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.ledger tbody th { font-weight: 600; width: 34%; }
.ledger tbody td { color: var(--steel); }
.ledger--three tbody th { width: 24%; }
.ledger--three tbody td:nth-child(2) { width: 38%; }
@media (max-width: 640px) {
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .ledger tbody th, .ledger tbody td { display: block; width: auto !important; padding: 0; border: 0; }
  .ledger tbody td { margin-top: 6px; }
}

/* Service index: rows that read like a table of contents */
.index { border-top: 2px solid var(--navy); }
.index li { border-bottom: 1px solid var(--rule); }
.index__row {
  display: grid; gap: 6px 48px; padding: 22px 0; text-decoration: none; color: var(--ink);
}
@media (min-width: 900px) { .index__row { grid-template-columns: 5fr 7fr; align-items: baseline; } }
.index__name { font-family: var(--serif); font-weight: 500; font-size: 1.375rem; line-height: 1.25; color: var(--navy); }
.index__desc { color: var(--steel); }
.index__row:hover .index__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.index__row:focus-visible { outline-offset: 4px; }

/* Industries on navy */
.lede-inverse { color: var(--on-navy-soft); font-size: 1.1875rem; max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.tags li { border: 1px solid var(--on-navy-rule); border-radius: 3px; padding: 6px 12px; font-size: 0.9375rem; color: var(--on-navy); }
.link-inverse { color: var(--on-navy); font-weight: 600; }

/* Approach: a real sequence, so it is numbered */
.steps { display: grid; gap: 28px 32px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--serif); font-weight: 500;
  font-size: 2rem; line-height: 1; color: var(--navy); margin-bottom: 14px;
}
.steps p { margin-top: 6px; color: var(--steel); }

/* What to expect */
.expect { display: grid; gap: 28px 32px; }
@media (min-width: 720px) { .expect { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .expect { grid-template-columns: repeat(4, 1fr); } }
.expect > div { border-top: 1px solid var(--rule); padding-top: 18px; }
.expect dt { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--navy); }
.expect dd { margin-top: 10px; color: var(--steel); }
.commitment { margin-top: clamp(32px, 4vw, 48px); max-width: 70ch; padding-left: 20px; border-left: 3px solid var(--navy); }

/* Principles, outcomes, FAQ */
.principles { display: grid; gap: 28px 40px; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principles dt, .faq dt { font-weight: 600; }
.principles dd, .faq dd { margin-top: 6px; color: var(--steel); }
.faq { display: grid; gap: 28px; max-width: 64ch; }

.person strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.375rem; }
.person span { display: block; color: var(--steel); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.page-head__lede { margin-top: 18px; font-size: 1.1875rem; color: var(--steel); max-width: 60ch; }
.page-head__meta { margin-top: 14px; color: var(--steel); font-size: 0.9375rem; }
.page-head--tall { padding-bottom: clamp(80px, 12vw, 160px); }
.page-head .plain-links { margin-top: 28px; }

.crumbs { margin-bottom: 20px; font-size: 0.9375rem; color: var(--steel); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule); }
.crumbs a { color: var(--steel); }

/* Value block (service pages) */
.value h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.value__list { border-top: 1px solid var(--on-navy-rule); }
.value__item { display: grid; gap: 4px 48px; padding: 18px 0; border-bottom: 1px solid var(--on-navy-rule); }
@media (min-width: 900px) { .value__item { grid-template-columns: 5fr 7fr; } }
.value__item dt { font-weight: 600; color: var(--on-navy); }
.value__item dd { color: var(--on-navy-soft); max-width: 62ch; }

.checklist li { position: relative; padding-left: 22px; }
.checklist li + li { margin-top: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--navy); }
.aside-note { margin-top: 24px; color: var(--steel); max-width: 64ch; }
.aside-note strong { color: var(--ink); font-weight: 600; }
.plain-links li + li { margin-top: 8px; }
.svc-contact { margin-top: 28px; }
.inline-links li + li { margin-top: 4px; }

.legal { max-width: 68ch; }
.legal h2 { font-size: 1.375rem; margin-top: 2em; }
.legal ul li { list-style: disc; margin-left: 1.25em; }
.legal ul li + li { margin-top: 6px; }
.legal__intro { font-size: 1.125rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px 72px; }
@media (min-width: 960px) { .contact { grid-template-columns: 7fr 4fr; } }
.contact h2 { font-size: 1.625rem; margin-bottom: 24px; }
.contact__direct dl > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact__direct dl > div:first-child { border-top: 2px solid var(--navy); }
.contact__direct dt { font-size: 0.9375rem; color: var(--steel); }
.contact__direct dd { margin-top: 2px; overflow-wrap: anywhere; }

form { display: grid; gap: 22px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field__opt { font-weight: 400; color: var(--steel); }
.field__hint { font-size: 0.9375rem; color: var(--steel); margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--field); border-radius: 3px; padding: 11px 12px; min-height: 48px;
}
textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B42318; border-width: 2px; }
.field__error { margin-top: 6px; color: #B42318; font-size: 0.9375rem; font-weight: 600; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--navy); }
.field--check label { font-weight: 400; font-size: 1rem; margin: 0; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button {
  justify-self: start; font: inherit; font-weight: 600; font-size: 1rem; color: var(--on-navy);
  background: var(--navy); border: 0; border-radius: 3px; padding: 14px 24px; cursor: pointer;
}
.button:hover { background: var(--navy-deep); }

.notice { padding: 16px 20px; border-left: 4px solid; margin-bottom: 28px; }
.notice__h { font-weight: 600; }
.notice--ok { border-color: #1E7B4F; background: #EEF7F1; }
.notice--error { border-color: #B42318; background: #FDF1F0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); font-size: 0.9375rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px 48px; padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .site-footer__grid { grid-template-columns: 4fr 4fr 2fr 3fr; } }
.site-footer__name { color: var(--on-navy); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 10px; }
.site-footer__brand p + p { margin-top: 6px; }
.site-footer__h { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; color: var(--on-navy); margin-bottom: 12px; }
.site-footer li + li { margin-top: 8px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--on-navy-rule);
}
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__base li + li { margin-top: 0; }

/* ---------- Print ---------- */
@media print {
  .site-header nav, .site-footer, .skip, .hp, form { display: none; }
  body { background: #fff; }
  .band--navy { background: #fff; color: #000; }
}
.nowrap { white-space: nowrap; }
