/* ==========================================================================
   SCALEXRS.COM — V1.1 design system (forked from XALPES.COM V3.1)
   XRS graphic system: graphite #23272C on white, one ink, trames for the bar.
   The XALPES red #CC0000 appears only in the publisher signature (footer).
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --x-red: #23272C;            /* accent = XRS graphite (variable name kept for the shared components) */
  --x-red-deep: #0B0C10;
  --x-red-tint: #E9EAEA;
  --xalpes-red: #CC0000;       /* publisher signature only */
  --x-ink: #0B0C10;
  --x-ink-2: #23272C;           /* = XRS graphite */
  --x-gray-900: #2E3238;
  --x-gray-700: #4E545C;
  --x-gray-500: #7A8089;
  --x-gray-300: #C9CDD3;
  --x-gray-200: #E3E6EA;
  --x-gray-100: #F3F4F6;
  --x-white: #FFFFFF;
  --x-grid: rgba(11, 12, 16, .06);
  --x-radius-sm: 6px;
  --x-radius: 12px;
  --x-radius-lg: 20px;
  --x-shadow: 0 10px 40px rgba(11, 12, 16, .08);
  --x-shadow-sm: 0 2px 10px rgba(11, 12, 16, .06);
  --x-max: 1240px;
  --x-gutter: clamp(16px, 4vw, 40px);
  --x-header: 76px;
  --x-font-sans: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --x-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --x-ease: cubic-bezier(.2, .7, .2, 1);
  --x-t: 180ms;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:not(.i18n-ready) body { visibility: hidden; }
body {
  margin: 0;
  font-family: var(--x-font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--x-ink);
  background: var(--x-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--x-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--x-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .6;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0, rgba(0,0,0,.25) 60vh, transparent 140vh);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0, rgba(0,0,0,.25) 60vh, transparent 140vh);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, dd a, .prose a { color: var(--x-red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, li a:hover, td a:hover, dd a:hover, .prose a:hover { color: var(--x-red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--x-red); color: var(--x-white); }
:focus-visible { outline: 2px solid var(--x-red); outline-offset: 3px; border-radius: 3px; }
.band--graphite :focus-visible, .xrs-hero :focus-visible { outline-color: var(--x-white); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.mono { font-family: var(--x-font-mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
sup { font-size: .6em; line-height: 0; vertical-align: super; }

/* ---------- 3. Typography ----------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--x-ink); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
h4 { font-size: 1.05rem; line-height: 1.35; letter-spacing: 0; font-weight: 700; }
h1 .accent, h2 .accent { color: var(--x-red); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--x-gray-900); max-width: 62ch; }
.muted { color: var(--x-gray-700); }
.small { font-size: .9rem; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  color: var(--x-red);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--x-red); flex: none; }
.eyebrow--graphite, .band--graphite .eyebrow { color: var(--x-gray-300); }
.eyebrow--graphite::before, .band--graphite .eyebrow::before { background: var(--x-gray-300); }
.section-heading { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-heading h2 { margin-bottom: 14px; }
.section-heading .lead { margin-top: 12px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--x-gray-200); margin: 2.5rem 0; }

/* Chinese typography */
html[lang="zh-Hans"] body { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; line-height: 1.75; letter-spacing: 0; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] .eyebrow, html[lang="zh-Hans"] .btn, html[lang="zh-Hans"] .nav-link { letter-spacing: 0; text-transform: none; }
html[lang="zh-Hans"] h1 { line-height: 1.2; }
html[lang="zh-Hans"] h2 { line-height: 1.25; }
/* Indonesian / long words */
.btn, .tag, .nav-link, .card-tags span { overflow-wrap: anywhere; }

/* ---------- 4. Layout --------------------------------------------------- */
.wrap { width: min(var(--x-max), calc(100% - 2 * var(--x-gutter))); margin: 0 auto; }
.wrap--narrow { width: min(880px, calc(100% - 2 * var(--x-gutter))); margin: 0 auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--flush-top { padding-top: 0; }
.section + .section { border-top: 1px solid var(--x-gray-200); }
.section--no-rule { border-top: 0 !important; }
main { position: relative; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--sticky > :first-child { position: sticky; top: calc(var(--x-header) + 24px); }
.stack > * + * { margin-top: 1rem; }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--x-radius-sm);
  border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-align: center;
  transition: transform var(--x-t) var(--x-ease), background var(--x-t), border-color var(--x-t), color var(--x-t), box-shadow var(--x-t);
}
.btn .icon { width: 1.05em; height: 1.05em; }
p a.btn, li a.btn, dd a.btn, .prose a.btn { text-decoration: none; }   /* a button inside a paragraph is not an inline link */
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--x-red); border-color: var(--x-red); color: var(--x-white); box-shadow: 0 8px 22px rgba(35, 39, 44, .18); }
.btn-primary:hover { background: var(--x-red-deep); border-color: var(--x-red-deep); }
.btn-secondary { background: transparent; border-color: var(--x-ink); color: var(--x-ink); }
.btn-secondary:hover { background: var(--x-ink); color: var(--x-white); }
.btn-ghost { background: transparent; padding: 0 4px; min-height: 40px; color: var(--x-ink); border-color: transparent; }
.btn-ghost .icon { transition: transform var(--x-t) var(--x-ease); }
.btn-ghost:hover { color: var(--x-red); transform: none; }
.btn-ghost:hover .icon { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
/* buttons on graphite */
.band--graphite .btn-primary, .xrs-hero .btn-primary { background: var(--x-white); border-color: var(--x-white); color: var(--x-ink-2); box-shadow: none; }
.band--graphite .btn-primary:hover, .xrs-hero .btn-primary:hover { background: var(--x-gray-200); border-color: var(--x-gray-200); }
.band--graphite .btn-secondary, .xrs-hero .btn-secondary { border-color: var(--x-gray-300); color: var(--x-white); }
.band--graphite .btn-secondary:hover, .xrs-hero .btn-secondary:hover { background: var(--x-white); color: var(--x-ink-2); border-color: var(--x-white); }
.band--graphite .btn-ghost, .xrs-hero .btn-ghost { color: var(--x-white); }
.band--graphite .btn-ghost:hover, .xrs-hero .btn-ghost:hover { color: var(--x-gray-300); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 6. Skip link, header, navigation ---------------------------- */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; background: var(--x-red); color: var(--x-white); border-radius: var(--x-radius-sm); transform: translateY(-160%); transition: transform var(--x-t); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--x-red);
}
.header-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--x-header); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: clamp(150px, 16vw, 210px); height: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--x-radius-sm);
  font-size: .93rem; font-weight: 500; color: var(--x-gray-900);
  background: none; border: 0;
  transition: color var(--x-t), background var(--x-t);
  white-space: nowrap;
}
.nav-link .icon { width: .9em; height: .9em; transition: transform var(--x-t); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--x-red); background: var(--x-gray-100); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-link[aria-current="page"], .nav-link[data-current="true"] { color: var(--x-red); box-shadow: inset 0 -2px 0 var(--x-red); border-radius: var(--x-radius-sm) var(--x-radius-sm) 0 0; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header-social { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--x-radius-sm); border: 0; background: none; color: var(--x-gray-900);
  transition: color var(--x-t), background var(--x-t);
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--x-red); background: var(--x-gray-100); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px);
  width: min(900px, calc(100vw - 2 * var(--x-gutter)));
  transform: translateX(-50%);
  background: var(--x-white);
  border: 1px solid var(--x-gray-200);
  border-top: 2px solid var(--x-red);
  border-radius: var(--x-radius);
  box-shadow: var(--x-shadow);
  padding: 22px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--x-t), transform var(--x-t), visibility 0s linear var(--x-t);
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-col h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-gray-500); font-weight: 600; margin: 0 0 10px 12px; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col--divisions .mega-list { grid-template-columns: 1fr; }
.mega-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--x-radius-sm); transition: background var(--x-t); }
.mega-item:hover, .mega-item:focus-visible { background: var(--x-gray-100); }
.mega-item .icon { width: 22px; height: 22px; color: var(--x-red); margin-top: 3px; }
.mega-item strong { display: block; font-size: .96rem; color: var(--x-ink); }
.mega-item span { display: block; font-size: .85rem; line-height: 1.45; color: var(--x-gray-700); }
.mega-aside { border-left: 1px solid var(--x-gray-200); padding-left: 22px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 10px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lang-btn .icon-chevron { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  min-width: 190px; padding: 6px; margin: 0; list-style: none;
  background: var(--x-white); border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm);
  box-shadow: var(--x-shadow);
}
.lang-menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border: 0; background: none; border-radius: 4px; text-align: left; font-size: .93rem; }
.lang-menu button:hover { background: var(--x-gray-100); }
.lang-menu button[aria-pressed="true"] { color: var(--x-red); font-weight: 600; }
.lang-menu button[aria-pressed="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-red); }
.lang-menu code { font-family: var(--x-font-mono); font-size: .75rem; color: var(--x-gray-500); }

/* Mobile drawer */
.menu-scrim { position: fixed; inset: 0; z-index: 290; background: rgba(11, 12, 16, .35); }
.menu-drawer {
  position: fixed; inset: 0; z-index: 300; overflow-y: auto;
  background: var(--x-white); padding: 18px var(--x-gutter) 40px;
}
.menu-drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 8px; }
.menu-drawer .menu-list { list-style: none; margin: 0; padding: 0; }
.menu-drawer .menu-list > li { border-bottom: 1px solid var(--x-gray-200); }
.menu-drawer .menu-list a, .menu-drawer .menu-list .menu-group-title { display: block; padding: 16px 0; font-size: 1.15rem; font-weight: 600; color: var(--x-ink); }
.menu-drawer .menu-list a[aria-current="page"] { color: var(--x-red); }
.menu-group-title { color: var(--x-gray-500) !important; font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px !important; }
.menu-sub { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; border-left: 2px solid var(--x-red); }
.menu-sub a { padding: 10px 0 !important; font-size: 1rem !important; font-weight: 500 !important; }
.menu-lang { margin-top: 26px; }
.menu-lang p { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-gray-500); font-weight: 600; margin-bottom: 10px; }
.menu-lang .lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.menu-lang button { min-height: 46px; border: 1px solid var(--x-gray-300); border-radius: var(--x-radius-sm); background: var(--x-white); font-weight: 500; }
.menu-lang button[aria-pressed="true"] { border-color: var(--x-red); color: var(--x-red); background: var(--x-red-tint); }
.menu-social { display: flex; gap: 8px; margin-top: 26px; }
body.menu-open { overflow: hidden; }

/* ---------- 7. Breadcrumb ---------------------------------------------- */
.breadcrumb { font-size: .86rem; color: var(--x-gray-700); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--x-gray-500); }
.breadcrumb a:hover { color: var(--x-red); }
.breadcrumb [aria-current="page"] { color: var(--x-ink); font-weight: 500; }

/* ---------- 8. Heroes --------------------------------------------------- */
.hero--home { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 56px); }
.hero--home .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero--home h1 { max-width: 14ch; }
.hero--home .lead { margin-top: 22px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-left: auto; }
.hero-orbit { position: absolute; inset: 4%; border: 1px solid var(--x-gray-300); border-radius: 50%; animation: orbit 60s linear infinite; }
.hero-orbit:nth-child(2) { inset: 18%; border-color: rgba(35, 39, 44, .45); border-style: dashed; animation-duration: 90s; animation-direction: reverse; }
.hero-orbit:nth-child(3) { inset: 32%; border-color: var(--x-gray-200); animation-duration: 45s; }
.hero-orbit::before { content: ""; position: absolute; top: 10%; left: 14%; width: 8px; height: 8px; border-radius: 50%; background: var(--x-red); }
.hero-orbit:nth-child(3)::before { background: var(--x-ink); }
.hero-core { position: absolute; inset: 41%; border-radius: 50%; background: var(--x-white); border: 1px solid var(--x-gray-300); display: grid; place-items: center; font-family: var(--x-font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--x-gray-700); box-shadow: var(--x-shadow-sm); }
.hero-crosshair::before, .hero-crosshair::after { content: ""; position: absolute; background: var(--x-gray-200); }
.hero-crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero-crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }
@keyframes orbit { to { transform: rotate(1turn); } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--x-gray-200); font-family: var(--x-font-mono); font-size: .8rem; color: var(--x-gray-700); letter-spacing: .02em; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--x-red); flex: none; }

.hero--page { padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--x-gray-200); background: linear-gradient(180deg, var(--x-gray-100), var(--x-white)); }
.hero--page .breadcrumb { margin-bottom: 28px; }
.hero--page h1 { max-width: 22ch; }
.hero--page .lead { margin-top: 20px; }
.hero--page .actions { margin-top: 28px; }

/* ---------- 9. Cards ---------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; background: var(--x-white);
  border: 1px solid var(--x-gray-200); border-radius: var(--x-radius);
  box-shadow: var(--x-shadow-sm);
  transition: transform var(--x-t) var(--x-ease), box-shadow var(--x-t), border-color var(--x-t);
}
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--x-red); border-radius: var(--x-radius) var(--x-radius) 0 0; opacity: 0; transition: opacity var(--x-t); }
.card:hover { transform: translateY(-3px); box-shadow: var(--x-shadow); }
.card:hover::before { opacity: 1; }
.card--static:hover { transform: none; box-shadow: var(--x-shadow-sm); }
.card--static:hover::before { opacity: 0; }
.card h3 { margin-top: 4px; }
.card p { color: var(--x-gray-700); font-size: .97rem; }
.card-number { font-family: var(--x-font-mono); font-size: .8rem; font-weight: 600; color: var(--x-red); letter-spacing: .06em; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--x-radius-sm); background: var(--x-red-tint); color: var(--x-red); }
.card-icon .icon { width: 22px; height: 22px; }
.card--link { padding-bottom: 54px; color: inherit; }
.card--link .card-arrow { position: absolute; right: 22px; bottom: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--x-gray-300); color: var(--x-ink); transition: background var(--x-t), color var(--x-t), border-color var(--x-t), transform var(--x-t); }
.card--link:hover .card-arrow { background: var(--x-red); border-color: var(--x-red); color: var(--x-white); transform: translateX(3px); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.card-tags span, .tag { display: inline-block; padding: 4px 9px; border: 1px solid var(--x-gray-200); border-radius: 999px; background: var(--x-gray-100); font-size: .76rem; font-weight: 500; color: var(--x-gray-700); letter-spacing: .02em; }
.card--stat { gap: 4px; padding: 22px 24px; }
.card--stat .stat-value { font-family: var(--x-font-mono); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; color: var(--x-ink); line-height: 1.1; }
.card--stat .stat-label { font-size: .88rem; color: var(--x-gray-700); }
.card--program { padding-top: 22px; }
.program-code { font-family: var(--x-font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--x-white); background: var(--x-ink); padding: 5px 9px; border-radius: 4px; align-self: flex-start; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.badge--red { background: var(--x-red-tint); color: var(--x-red-deep); }
.badge--gray { background: var(--x-gray-100); color: var(--x-gray-700); border: 1px solid var(--x-gray-200); }
.badge--ink { background: var(--x-ink-2); color: var(--x-white); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card-cover { margin: -26px -26px 12px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--x-radius) var(--x-radius) 0 0; background: var(--x-gray-100); border-bottom: 1px solid var(--x-gray-200); }
.card-cover img, .card-cover svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 10. Panels, callouts, figures ------------------------------- */
.panel { background: var(--x-white); border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--x-shadow-sm); }
.panel--tint { background: var(--x-gray-100); box-shadow: none; }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--x-radius); font-size: .95rem; line-height: 1.6; }
.callout .icon { width: 22px; height: 22px; margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .5em; }
.callout--notice { background: var(--x-gray-100); border: 1px solid var(--x-gray-200); color: var(--x-gray-900); }
.callout--notice .icon { color: var(--x-gray-700); }
.callout--confidential { background: var(--x-white); border: 1px solid var(--x-gray-200); border-left: 3px solid var(--x-red); color: var(--x-gray-900); }
.callout--confidential .icon { color: var(--x-red); }
.callout--graphite { background: var(--x-ink-2); color: var(--x-gray-200); border: 1px solid var(--x-gray-900); }
.callout--graphite .icon { color: var(--x-gray-300); }
.callout--graphite strong { color: var(--x-white); }
.figure { margin: 0; }
.figure-frame { border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); background: var(--x-white); padding: clamp(14px, 2.5vw, 28px); overflow: hidden; }
.figure-frame--flush { padding: 0; }
.figure figcaption { margin-top: 12px; font-size: .86rem; color: var(--x-gray-700); }
.figure figcaption .fig-no { font-family: var(--x-font-mono); font-weight: 600; color: var(--x-ink); margin-right: 6px; }
.media { position: relative; border-radius: var(--x-radius-lg); overflow: hidden; border: 1px solid var(--x-gray-200); box-shadow: var(--x-shadow); background: var(--x-gray-100); }
.media img { width: 100%; height: auto; }
.media-caption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; background: rgba(255, 255, 255, .92); font-family: var(--x-font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--x-gray-900); border-top-right-radius: var(--x-radius-sm); }
.media-caption .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--x-red); margin-right: 8px; vertical-align: middle; }
.strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--x-gray-200); }
.strip span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--x-gray-200); border-radius: 999px; color: var(--x-gray-700); background: var(--x-gray-100); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--x-gray-500); font-weight: 500; }
.kv dd { margin: 0; color: var(--x-ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--x-gray-900); font-size: .97rem; }
.checks .icon { width: 18px; height: 18px; color: var(--x-red); margin-top: 4px; }
.band--graphite .checks .icon, .xrs-hero .checks .icon { color: var(--x-gray-300); }
.two-col { columns: 2; column-gap: 40px; }
.two-col > * { break-inside: avoid; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--x-gray-200); }
.offer:last-child { border-bottom: 1px solid var(--x-gray-200); }
.offer-head { grid-column: 1 / -1; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline; }
.offer-head .card-number { font-size: 1.1rem; }
.offer-head p { color: var(--x-gray-700); margin-top: 6px; }
.offer-box { background: var(--x-gray-100); border-radius: var(--x-radius); padding: 18px 20px; }
.offer-box h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-gray-500); margin-bottom: 10px; }
.offer-box ul { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--x-gray-900); }
.offer-box li + li { margin-top: 4px; }

/* ---------- 11. Timeline ------------------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: var(--x-red); opacity: .35; }
.timeline li { position: relative; padding-top: 52px; }
.timeline li::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--x-red); color: var(--x-white); font-family: var(--x-font-mono); font-size: .8rem; font-weight: 600; box-shadow: 0 0 0 6px var(--x-white); }
.timeline h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline p { font-size: .9rem; color: var(--x-gray-700); }
.timeline--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 12. Work-with-us block -------------------------------------- */
.work-with { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-with .card { padding: 30px; }
.work-with h3 { font-size: 1.3rem; }
.work-with .checks { margin: 14px 0 22px; }
.work-with .btn { align-self: flex-start; }

/* ---------- 13. Tables -------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); background: var(--x-white); }
.table--tech { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.table--tech caption { caption-side: top; text-align: left; padding: 14px 16px; font-weight: 600; font-size: .9rem; color: var(--x-ink); border-bottom: 1px solid var(--x-gray-200); background: var(--x-white); }
.table--tech th, .table--tech td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--x-gray-200); }
.table--tech thead th { background: var(--x-gray-100); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--x-gray-700); font-weight: 600; white-space: nowrap; }
.table--tech tbody tr:nth-child(even) td { background: rgba(243, 244, 246, .45); }
.table--tech tbody tr:last-child td { border-bottom: 0; }
.table--tech .num, .table--tech td.mono { font-family: var(--x-font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.table--tech th.num { text-align: right; }
.table--tech .lvl { font-family: var(--x-font-mono); font-weight: 700; color: var(--x-ink-2); white-space: nowrap; }
.table--tech tbody tr.is-active td { background: var(--x-gray-200) !important; }
.table--tech .short { font-weight: 700; letter-spacing: .04em; color: var(--x-ink-2); }
.table-note { font-size: .84rem; color: var(--x-gray-700); margin-top: 10px; }
.table-note + .table-note { margin-top: 6px; }

/* ---------- 14. XRS system (graphite only — no red) --------------------- */
.band--graphite { background: var(--x-ink-2); color: var(--x-gray-200); }
.band--graphite h1, .band--graphite h2, .band--graphite h3, .band--graphite h4, .band--graphite strong { color: var(--x-white); }
.band--graphite .lead { color: var(--x-gray-300); }
.band--graphite p a, .band--graphite li a { color: var(--x-white); text-decoration-color: var(--x-gray-500); }
.band--graphite .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); box-shadow: none; color: var(--x-gray-200); }
.band--graphite .card::before { display: none; }
.band--graphite .card p, .band--graphite .card--stat .stat-label { color: var(--x-gray-300); }
.band--graphite .card--stat .stat-value { color: var(--x-white); }
.band--graphite .card:hover { transform: none; border-color: rgba(255, 255, 255, .3); }
.band--graphite .section + .section { border-top-color: rgba(255, 255, 255, .12); }
.band--graphite .callout--notice { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--x-gray-200); }
.band--graphite .callout--notice .icon { color: var(--x-gray-300); }
.band--graphite .table-wrap { border-color: rgba(255, 255, 255, .16); background: transparent; }
.band--graphite .table--tech thead th { background: rgba(255, 255, 255, .08); color: var(--x-gray-300); }
.band--graphite .table--tech th, .band--graphite .table--tech td { border-bottom-color: rgba(255, 255, 255, .12); }
.band--graphite .table--tech tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.band--graphite .table--tech tbody tr.is-active td { background: rgba(255, 255, 255, .16) !important; }
.band--graphite .table--tech .lvl, .band--graphite .table--tech .short { color: var(--x-white); }
.band--graphite .table--tech caption { color: var(--x-white); background: transparent; border-bottom-color: rgba(255, 255, 255, .12); }
.band--graphite .table-note { color: var(--x-gray-300); }
.band--graphite .badge--gray { background: rgba(255, 255, 255, .1); color: var(--x-gray-200); border-color: transparent; }
.band--graphite .facts { border-top-color: rgba(255, 255, 255, .16); color: var(--x-gray-300); }
.band--graphite .facts li::before { background: var(--x-gray-300); }
.band--graphite .kv dt { color: var(--x-gray-500); }
.band--graphite .kv dd { color: var(--x-white); }

.xrs-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.xrs-hero .breadcrumb { color: var(--x-gray-300); margin-bottom: 30px; }
.xrs-hero .breadcrumb [aria-current="page"] { color: var(--x-white); }
.xrs-hero .breadcrumb li + li::before { color: var(--x-gray-500); }
.xrs-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.xrs-hero h1 { max-width: 20ch; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.xrs-hero .lead { margin-top: 18px; }
.xrs-ref { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--x-font-mono); font-size: .8rem; color: var(--x-gray-300); }
.xrs-ref li + li::before { content: "·"; margin-right: 18px; color: var(--x-gray-500); }
.xrs-logotype { width: 100%; max-width: 420px; margin-left: auto; }
.xrs-logotype img { width: 100%; height: auto; }
.xrs-wordmark { font-weight: 800; font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: -.04em; color: var(--x-white); line-height: 1; }
.xrs-wordmark small { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--x-gray-300); margin-top: 8px; }
.xrs-logo-inline { height: 44px; width: auto; }

/* Réglette XRS — six cases identiques (gabarit 30×34, intervalle 3), chiffres 1–6,
   trames graphite 10/22/37/55/76/100 %, case atteinte évidée en blanc, filet graphite,
   débord vertical 5,44/34 (= ×1,32). Aucune autre couleur. */
.xrs-bar { --cell-h: 68px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 6px; align-items: center; margin: 0; padding: 11px 0; list-style: none; }
.xrs-bar li { position: relative; display: flex; align-items: center; justify-content: center; }
.xrs-cell {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: var(--cell-h); padding: 0;
  border: 0; border-radius: 4px;
  color: var(--x-white); font-family: var(--x-font-mono); font-weight: 800; font-size: 1.5rem;
  background: var(--x-ink-2); cursor: default;
  transition: height var(--x-t) var(--x-ease), box-shadow var(--x-t);
}
button.xrs-cell { cursor: pointer; }
/* cells that are links: neutralise the generic "li a" rule (underline, ink colour) — the numeral stays white */
.xrs-bar li a.xrs-cell, .band--graphite .xrs-bar li a.xrs-cell { color: var(--x-white); text-decoration: none; }
.xrs-bar li a.xrs-cell:hover { color: var(--x-white); }
/* XRS 004 : le chiffre est blanc sur les six cases, quelle que soit la trame. Sur les trames claires (1 à 3)
   un filet graphite 1 px délimite la case à l'écran — seule adaptation admise, la couleur du chiffre ne change pas. */
.xrs-bar [data-level="1"] .xrs-cell { background: #E9EAEA; box-shadow: inset 0 0 0 1px var(--x-ink-2); }   /* 10 % */
.xrs-bar [data-level="2"] .xrs-cell { background: #CFD0D2; box-shadow: inset 0 0 0 1px var(--x-ink-2); }   /* 22 % */
.xrs-bar [data-level="3"] .xrs-cell { background: #ADAFB2; box-shadow: inset 0 0 0 1px var(--x-ink-2); }   /* 37 % */
.xrs-bar [data-level="4"] .xrs-cell { background: #858789; }                            /* 55 % */
.xrs-bar [data-level="5"] .xrs-cell { background: #5A5D60; }                            /* 76 % */
.xrs-bar [data-level="6"] .xrs-cell { background: #23272C; }                            /* 100 % */
.xrs-bar .is-active .xrs-cell, .xrs-cell[aria-pressed="true"] { background: var(--x-white) !important; color: var(--x-ink-2) !important; box-shadow: inset 0 0 0 2.4px var(--x-ink-2); height: calc(var(--cell-h) * 1.32); }
.band--graphite .xrs-bar [data-level="6"] .xrs-cell { box-shadow: inset 0 0 0 1px var(--x-gray-500); }
.xrs-bar--compact { --cell-h: 48px; }
.xrs-bar--compact .xrs-cell { font-size: 1.15rem; }
.xrs-bar-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 6px; margin-top: 4px; font-family: var(--x-font-mono); font-size: .72rem; color: var(--x-gray-500); text-align: center; }
.xrs-bar-scale strong { display: block; color: var(--x-ink-2); font-weight: 700; font-size: .8rem; }
.band--graphite .xrs-bar-scale strong { color: var(--x-white); }
.xrs-bar-scale small { display: block; font-family: var(--x-font-sans); font-size: .7rem; letter-spacing: .02em; color: var(--x-gray-700); }
.band--graphite .xrs-bar-scale small { color: var(--x-gray-300); }

/* Écusson de niveau — fichier maître XRS (PNG livré, jamais redessiné) */
.xrs-badge-img { width: 88px; height: 88px; flex: none; }

/* Formula box */
.formula { border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); padding: 22px 24px; background: var(--x-gray-100); }
.formula-main { font-family: var(--x-font-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--x-ink-2); letter-spacing: -.01em; margin-bottom: 12px; }
.formula .kv { font-size: .92rem; }
.band--graphite .formula { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.band--graphite .formula-main { color: var(--x-white); }

/* Threshold frieze (SVG inline) */
.xrs-frieze { width: 100%; height: auto; font-family: var(--x-font-mono); }
.xrs-frieze text { font-size: 12px; fill: var(--x-gray-900); }
.xrs-frieze .zone-label { font-family: var(--x-font-sans); font-weight: 700; font-size: 13px; }
.xrs-frieze .tick-label { font-weight: 600; }
.xrs-frieze .origin { font-family: var(--x-font-sans); font-size: 11px; fill: var(--x-gray-700); }
.threshold-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.threshold-list li { padding: 14px 16px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); background: var(--x-white); font-size: .9rem; color: var(--x-gray-900); }
.threshold-list .th-value { display: block; font-family: var(--x-font-mono); font-weight: 700; font-size: 1.25rem; color: var(--x-ink-2); }
.threshold-list .th-pair { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--x-gray-500); margin-bottom: 6px; }

/* Profile tabs */
.tabs { border-bottom: 1px solid var(--x-gray-200); display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.tab { padding: 12px 16px; border: 0; background: none; font-weight: 600; font-size: .93rem; color: var(--x-gray-700); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab .mono { display: block; font-weight: 500; font-size: .74rem; color: var(--x-gray-500); }
.tab:hover { color: var(--x-ink); }
.tab[aria-selected="true"] { color: var(--x-ink-2); border-bottom-color: var(--x-ink-2); }
.tab-panel + .tab-panel { margin-top: 28px; }
.js .tab-panel[hidden] { display: none; }
.tab-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.tab-panel-head h3 { font-size: 1.05rem; }
.tab-panel-head .mono { font-size: .82rem; color: var(--x-gray-700); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.calc-form { display: grid; gap: 14px; }
.calc-result { border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); padding: 22px; background: var(--x-white); display: grid; gap: 14px; align-content: start; }
.calc-result .result-row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 12px; align-items: center; }
.calc-result .result-big { display: flex; align-items: center; gap: 16px; }
.calc-result .result-value { font-family: var(--x-font-mono); font-size: 1.5rem; font-weight: 600; color: var(--x-ink-2); }
.calc-result .result-label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--x-gray-500); }
.calc-result .result-endurance { font-weight: 700; letter-spacing: .04em; color: var(--x-ink-2); }
.calc-result .overlap { font-size: .88rem; color: var(--x-gray-900); background: var(--x-gray-100); padding: 10px 12px; border-radius: var(--x-radius-sm); }
.calc-notice { font-size: .88rem; font-weight: 600; color: var(--x-ink-2); border-left: 3px solid var(--x-ink-2); padding: 6px 0 6px 14px; margin-bottom: 20px; }

/* Use-the-scale columns */
.use-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.use-cols .card { padding: 28px; }
.use-cols h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.use-cols .card-icon { background: var(--x-gray-100); color: var(--x-ink-2); }
.regime { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--x-gray-200); font-size: .92rem; }
.regime:last-child { border-bottom: 1px solid var(--x-gray-200); }
.regime .reg-letter { font-family: var(--x-font-mono); font-weight: 700; color: var(--x-ink-2); }
.regime strong { display: block; color: var(--x-ink); }
.regime span { color: var(--x-gray-700); }
.cite { font-family: var(--x-font-mono); font-size: .84rem; background: var(--x-gray-100); padding: 10px 12px; border-radius: var(--x-radius-sm); color: var(--x-ink-2); word-break: break-word; }

/* ---------- 15. Forms --------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--x-ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--x-gray-300); border-radius: var(--x-radius-sm); background: var(--x-white); min-height: 46px; transition: border-color var(--x-t), box-shadow var(--x-t); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--x-red); box-shadow: 0 0 0 3px rgba(35, 39, 44, .18); }
.field small { font-size: .8rem; color: var(--x-gray-700); }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--x-gray-700); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); }
.contact-card { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); background: var(--x-gray-100); }
.contact-card strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-gray-500); margin-bottom: 4px; }
.contact-card a { font-size: 1.1rem; font-weight: 600; color: var(--x-red-deep); }

/* ---------- 16. Footer -------------------------------------------------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 2px solid var(--x-red); background: var(--x-gray-100); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 32px; padding: clamp(36px, 5vw, 56px) 0 32px; }
.footer-col h2 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-red); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--x-gray-900); }
.footer-col a:hover { color: var(--x-red); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { color: var(--x-gray-900); line-height: 1.6; }
.footer-col address strong { color: var(--x-ink); }
.footer-col .brand img { width: 150px; margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 0 26px; border-top: 1px solid var(--x-gray-200); font-size: .82rem; color: var(--x-gray-700); }
.footer-bottom p { margin: 0; }

/* ---------- 17. Policy pages, 404 --------------------------------------- */
.policy { padding: clamp(28px, 4vw, 44px) 0 0; }
.policy article { margin-top: 32px; }
.policy article h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; }
.policy article h2:first-child { margin-top: 0; }
.policy article p, .policy article li { color: var(--x-gray-900); }
.notfound { padding: clamp(60px, 10vw, 120px) 0; text-align: center; }
.notfound .code { font-family: var(--x-font-mono); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: var(--x-gray-200); line-height: 1; }
.notfound h1 { margin-top: 8px; }
.notfound .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- 18. Reveal on scroll ---------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--x-ease), transform 400ms var(--x-ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav .nav-link { padding: 10px 9px; font-size: .88rem; }
  .header-cta { display: none; }
}
@media (max-width: 1024px) {
  .site-nav, .header-social { display: none; }
  .menu-toggle { display: inline-grid; }
  .lang--header { display: none; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .split, .split--even, .calc, .contact-panel, .xrs-hero .wrap { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
  .xrs-logotype { margin-left: 0; max-width: 340px; }
  .use-cols, .threshold-list { grid-template-columns: 1fr; }
  .hero--home .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { columns: 1; }
}
@media (max-width: 720px) {
  :root { --x-header: 64px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .work-with, .offer { grid-template-columns: 1fr; }
  .offer-head { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { padding: 0 0 0 54px; min-height: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .actions .btn { width: 100%; }
  .hero-visual { display: none; }
  .brand img { width: 140px; }
  .xrs-bar { --cell-h: 52px; column-gap: 4px; }
  .xrs-cell { font-size: 1.15rem; }
  .xrs-bar-scale small { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  /* Stacked tables (data-label filled by script.js from thead) */
  .table--tech.is-stacked { min-width: 0; }
  .table--tech.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--tech.is-stacked tr { display: block; padding: 10px 0; }
  .table--tech.is-stacked td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; border-bottom: 0; padding: 6px 14px; text-align: left !important; white-space: normal !important; }
  .table--tech.is-stacked td::before { content: attr(data-label); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--x-gray-500); font-weight: 600; font-family: var(--x-font-sans); }
  .table--tech.is-stacked tbody tr + tr { border-top: 1px solid var(--x-gray-200); }
}
@media (max-width: 400px) {
  .xrs-cell { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .menu-drawer, .menu-scrim, .skip-link, .actions { display: none !important; }
  body::before { display: none; }
  .band--graphite { background: none; color: var(--x-ink); }
  .band--graphite h1, .band--graphite h2, .band--graphite h3 { color: var(--x-ink); }
}

/* ==========================================================================
   SCALEXRS.COM — additions
   ========================================================================== */
.brand img.brand-xrs { width: clamp(88px, 9vw, 118px); }
.footer-col .brand img.brand-xrs { width: 110px; }
.publisher { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--x-gray-700); font-size: .86rem; }
.publisher img { width: 118px; height: auto; }
.publisher strong { color: var(--x-ink); }
.header-cta { background: var(--x-ink-2); border-color: var(--x-ink-2); }

/* Level hero (x1 … x6) */
.level-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.level-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.level-kicker { font-family: var(--x-font-mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-gray-300); margin: 0 0 12px; }
.level-endurance { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.03em; text-transform: uppercase; color: var(--x-white); margin: 0; }
.level-qual { font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--x-gray-200); margin: 16px 0 0; font-weight: 500; }
.level-sub { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: var(--x-gray-300); font-size: .95rem; }
.level-badge { width: min(260px, 60%); margin-left: auto; }
.level-badge img { width: 100%; height: auto; }
.level-bar { margin-top: 26px; }
.level-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.level-nav a { display: block; text-align: center; padding: 14px 6px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); font-family: var(--x-font-mono); font-weight: 700; color: var(--x-ink-2); background: var(--x-white); transition: background var(--x-t) var(--x-ease), border-color var(--x-t) var(--x-ease); }
.level-nav a:hover { border-color: var(--x-ink-2); background: var(--x-gray-100); }
.level-nav a[aria-current="page"] { background: var(--x-ink-2); color: var(--x-white); border-color: var(--x-ink-2); }
.level-nav small { display: block; font-family: var(--x-font-sans); font-weight: 500; font-size: .72rem; opacity: .8; margin-top: 4px; }
.level-nav a[aria-current="page"] small { opacity: .85; }

/* Home hero */
.home-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.home-hero .lead { margin-top: 20px; max-width: 54ch; }
.hero-panel { background: var(--x-white); border-radius: var(--x-radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--x-shadow); color: var(--x-ink); }
.hero-panel .xrs-bar-scale strong { color: var(--x-ink-2); }
.hero-panel .xrs-bar-scale small { color: var(--x-gray-700); }
.hero-panel-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-gray-700); font-weight: 600; margin: 0 0 6px; }
.hero-panel-caption { font-size: .9rem; color: var(--x-gray-700); margin: 14px 0 0; }
.band--graphite .hero-panel :focus-visible { outline-color: var(--x-ink-2); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 22px 24px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); background: var(--x-white); }
.stat-value { font-family: var(--x-font-mono); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; color: var(--x-ink-2); line-height: 1.1; }
.stat-label { margin-top: 8px; color: var(--x-gray-700); font-size: .92rem; }

/* Audience cards */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.audience article { padding: 26px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); background: var(--x-white); display: flex; flex-direction: column; gap: 10px; }
.audience h3 { font-size: 1.1rem; }
.audience p { color: var(--x-gray-900); font-size: .96rem; flex: 1; }
.audience a.more { font-weight: 600; color: var(--x-ink-2); display: inline-flex; align-items: center; gap: 6px; }
.audience a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Marking figure */
.marking-figure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.marking-figure img { width: 100%; max-width: 360px; height: auto; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); box-shadow: var(--x-shadow-sm); background: var(--x-white); }
.marking-zones { counter-reset: zone; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.marking-zones li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.marking-zones li::before { grid-row: 1 / span 2; }
.marking-zones li::before { counter-increment: zone; content: counter(zone); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--x-ink-2); color: var(--x-white); font-family: var(--x-font-mono); font-weight: 700; font-size: .85rem; }
.marking-zones strong, .marking-zones span { grid-column: 2; }
.marking-zones strong { display: block; }
.marking-zones span { color: var(--x-gray-900); font-size: .95rem; }
.marking-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.marking-gallery img { width: 100%; height: auto; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); background: var(--x-white); }
.forms-table td:first-child { font-weight: 600; }
.ok { color: #1F6A3A; font-weight: 600; }
.no { color: #8F0000; font-weight: 600; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price { border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); padding: 26px; background: var(--x-white); display: flex; flex-direction: column; gap: 8px; }
.price--featured { border-color: var(--x-ink-2); box-shadow: var(--x-shadow); }
.price .regime { font-family: var(--x-font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-gray-700); }
.price h3 { font-size: 1.15rem; }
.price .amount { font-family: var(--x-font-mono); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; color: var(--x-ink-2); margin-top: 8px; }
.price .amount small { font-family: var(--x-font-sans); font-weight: 500; font-size: .85rem; color: var(--x-gray-700); letter-spacing: 0; margin-left: 6px; }
.price ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; color: var(--x-gray-900); }
.price li { display: flex; gap: 8px; align-items: flex-start; }
.price li .icon { color: var(--x-ink-2); margin-top: .2em; }
.price .mention { margin-top: auto; padding-top: 14px; font-family: var(--x-font-mono); font-size: .8rem; color: var(--x-gray-700); }
.principle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle article { padding: 24px; border-left: 3px solid var(--x-ink-2); background: var(--x-gray-100); border-radius: 0 var(--x-radius-sm) var(--x-radius-sm) 0; }
.principle h3 { font-size: 1.05rem; margin-bottom: 8px; }
.principle p { font-size: .95rem; color: var(--x-gray-900); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 22px 18px 18px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius); background: var(--x-white); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--x-font-mono); font-weight: 700; color: var(--x-gray-500); font-size: .85rem; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 6px; }
.steps span { font-size: .92rem; color: var(--x-gray-900); }

/* Registry */
.reg-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 560px; }
.reg-search input { padding: 12px 14px; border: 1px solid var(--x-gray-300); border-radius: var(--x-radius-sm); font-family: var(--x-font-mono); }
.reg-search input:focus { border-color: var(--x-ink-2); outline: none; box-shadow: 0 0 0 3px rgba(35,39,44,.12); }
.reg-empty { padding: 28px; border: 1px dashed var(--x-gray-300); border-radius: var(--x-radius); color: var(--x-gray-700); background: var(--x-white); }
.reg-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.reg-status--valid { background: #E4F1E8; color: #1F6A3A; }
.reg-status--withdrawn { background: #F6E4E4; color: #8F0000; }
.reg-status--suspended { background: #F7EDDA; color: #7A4B00; }
.reg-format { font-family: var(--x-font-mono); font-size: 1.05rem; padding: 14px 18px; background: var(--x-gray-100); border-radius: var(--x-radius-sm); display: inline-block; }
.reg-format b { color: var(--x-ink-2); }

/* Documents */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); background: var(--x-white); }
.doc-list .lang { font-family: var(--x-font-mono); font-weight: 700; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--x-ink-2); color: var(--x-white); font-size: .85rem; }
.doc-list .lang--soon { background: var(--x-gray-200); color: var(--x-gray-700); }
.doc-list strong { display: block; }
.doc-list span.muted { font-size: .88rem; }
.cite { font-family: var(--x-font-mono); font-size: .92rem; padding: 16px 18px; background: var(--x-gray-100); border-left: 3px solid var(--x-ink-2); border-radius: 0 var(--x-radius-sm) var(--x-radius-sm) 0; }

/* Details / FAQ */
details.faq { border-top: 1px solid var(--x-gray-200); padding: 14px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--x-gray-200); }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--x-font-mono); color: var(--x-gray-500); font-size: 1.2rem; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--x-gray-900); }

/* Consumer "what it does not say" list */
.ceilings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ceilings li { padding: 18px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); background: var(--x-white); font-size: .95rem; }
.ceilings li strong { display: block; margin-bottom: 4px; }
.ceilings li.is-xrs { border-color: var(--x-ink-2); background: var(--x-ink-2); color: var(--x-white); }
.ceilings li.is-xrs strong { color: var(--x-white); }

@media (max-width: 960px) {
  .stats, .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero .wrap, .level-hero .wrap, .marking-figure { grid-template-columns: 1fr; }
  .level-badge { margin-left: 0; }
  .price-grid, .principle, .ceilings, .marking-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats, .audience, .steps { grid-template-columns: 1fr; }
  .level-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-list li { grid-template-columns: auto 1fr; }
  .doc-list li > a.btn { grid-column: 1 / -1; }
  .reg-search { grid-template-columns: 1fr; }
}
.price .regime { white-space: nowrap; }
.callout--graphite .btn-primary { background: var(--x-white); border-color: var(--x-white); color: var(--x-ink-2); box-shadow: none; }
.callout--graphite .btn-primary:hover { background: var(--x-gray-200); border-color: var(--x-gray-200); color: var(--x-ink-2); }
.callout--graphite .btn-secondary { border-color: var(--x-gray-300); color: var(--x-white); }
.callout--graphite .btn-secondary:hover { background: var(--x-white); color: var(--x-ink-2); }

/* ==========================================================================
   V1.1 — Consumer level pages (/x1 … /x6, QR-code targets)
   One reading column (~560 px), 18 px body, big numerals, reduced header
   (logotype + language), standard footer. Graphite only.
   ========================================================================== */
.header--consumer .header-shell { min-height: 60px; }
.header--consumer .lang--header { display: block; }
.header--consumer .menu-toggle, .header--consumer .header-cta { display: none; }
.consumer { font-size: 1.125rem; line-height: 1.6; }
.consumer .wrap--reading { width: min(560px, calc(100% - 2 * var(--x-gutter))); margin: 0 auto; }
.consumer .section { padding: clamp(28px, 5vw, 44px) 0; }
.consumer .section + .section { border-top: 1px solid var(--x-gray-200); }
.consumer h1, .consumer h2 { letter-spacing: -.015em; }
.consumer h2 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 14px; }
.cons-open { text-align: center; padding-top: clamp(24px, 5vw, 40px); }
.cons-open .cons-badge { width: min(200px, 52vw); height: auto; margin: 0 auto; }
/* mono at weight 700 only on the consumer pages: one mono file to download instead of two (mobile network) */
.cons-open .cons-level { margin: 18px 0 0; font-family: var(--x-font-mono); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-gray-700); }
.cons-open h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.02em; margin: 8px 0 0; color: var(--x-ink-2); }
.cons-open .cons-plain { font-size: clamp(1.2rem, 4.8vw, 1.45rem); line-height: 1.35; color: var(--x-gray-900); margin: 14px auto 0; max-width: 24ch; }
.cons-bar .xrs-bar { --cell-h: 56px; padding: 12px 0; }
.cons-bar .xrs-cell { cursor: default; }
.cons-bar .is-active .xrs-cell { animation: cons-rise 300ms var(--x-ease) both; }
.cons-bar-caption { margin: 6px 0 0; text-align: center; font-size: .9rem; color: var(--x-gray-700); }
@keyframes cons-rise { from { height: var(--cell-h); } to { height: calc(var(--cell-h) * 1.32); } }
.cons-meaning { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cons-meaning li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.cons-meaning .icon { width: 40px; height: 40px; color: var(--x-ink-2); margin-top: 2px; }
.cons-meaning strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--x-gray-700); margin-bottom: 2px; }
.cons-meaning p { margin: 0; color: var(--x-ink); }
.cons-not { background: var(--x-ink-2); color: var(--x-gray-200); border-radius: var(--x-radius); padding: 22px 22px 24px; }
.cons-not h2 { color: var(--x-white); font-size: 1.2rem; margin-bottom: 10px; }
.cons-not p { margin: 0; color: var(--x-gray-200); }
.cons-measured .mono { font-size: 1.05em; color: var(--x-ink-2); font-weight: 600; white-space: nowrap; }
.cons-measured p a { font-weight: 600; }
.cons-verify .field { margin-top: 14px; }
.cons-verify input { font-family: var(--x-font-mono); font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.cons-verify input::placeholder { font-weight: 700; color: var(--x-gray-500); }
.cons-verify .btn { width: 100%; margin-top: 12px; }
.cons-verify .cons-hint { margin-top: 12px; font-size: .95rem; color: var(--x-gray-700); }
.cons-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cons-more a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--x-gray-200); border-radius: var(--x-radius-sm); background: var(--x-white); font-weight: 600; color: var(--x-ink); text-decoration: none; }
.cons-more a:hover { border-color: var(--x-ink-2); background: var(--x-gray-100); color: var(--x-ink); }
.cons-more .icon { color: var(--x-gray-700); }
.consumer + .site-footer { margin-top: clamp(28px, 5vw, 48px); }
@media (max-width: 400px) { .cons-bar .xrs-bar { --cell-h: 48px; column-gap: 4px; } }
