/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   Rules in this file
   01. Root & variables
   02. Reset & global styles
   03. Typography & text elements
   04. Buttons & global links
   06. Main navigation & header — css/site-header.css
   07. Home industrial hero (base typography; carousel in css/home/home-hero-horizon.css)
   16. Investors & news bands (home #investors, #news)
   19. Footer
   22. Inner pages — dark surface tokens & shared chrome

   External stylesheets (no rules in this file)
   Fonts — css/fonts.css
   11. Focus areas — css/home/home-focus.css
   12. Enterprise impact — css/home/home-light.css
   13. About / who we are — css/home/home-light.css
   14. Markets carousel — css/home/home-markets.css
   15. Product directory — css/pages/product-directory.css (products.html)
   Divisions — css/home/home-divisions.css
   News — css/home/home-news.css
   Investors layout — css/home/home-investors.css (index #investors)
   17. Mission, vision & values — css/pages/about.css
   18. Contact — index #contact band: css/home/home-light.css only (no contact.css); contact.html: css/pages/contact.css
   20. Site header — css/site-header.css; framed hero — css/pages/hero-page.css
   --------------------------------------------------------------------------
   Home CSS bundles load after this file on index.html only.
========================================================================== */


/* ==========================================================================
   01. ROOT & VARIABLES
   ========================================================================== */
:root {
  /* Theme tokens — light base (:root) for home. Inner pages: body:not(.page-home) at end of this file. */
  /* Light: --cyan-primary #008f80, --blue-deep #0044b3, --paper #f0f4f8, --text-main #0f172a */
  --cyan-primary: #008f80;
  --blue-deep: #0044b3;
  --blue-navy: #0a5fb0;
  --black-void: #020407;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --border-fine: rgba(15, 23, 42, 0.08);
  --border-active: rgba(0, 143, 128, 0.3);
  --text-main: #0f172a;
  --text-muted: #475569;

  --void: #e2e8f0;
  --navy: #ffffff;
  --navy-mid: #ffffff;
  --navy-soft: #f8fafc;
  --adipec-black: #000f30;
  --adipec-light: #d3d3d3;

  --ion: var(--cyan-primary);
  --ion-dim: rgba(0, 143, 128, 0.16);

  --paper: #f0f4f8;
  --section-band: #f2f2f2;
  --graphite: #e2e8f0;
  --white: #ffffff;
  --ink: var(--text-main);
  --muted: var(--text-muted);
  --line: var(--border-fine);
  --line-dark: var(--border-fine);

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --container: 1280px;
  /* Site header row + wordmark (home + inner pages) */
  --rc-header-home-row-h: 88px;
  --rc-header-mobile-row-h: 72px;
  --rc-header-wordmark-h: 61px;
  --rc-header-wordmark-max-w: 273px;
  --rc-header-control-h: 40px;
  --rc-header-cta-h: 36px;
  --rc-header-cta-pad-x: clamp(10px, 1.1vw, 16px);
  --rc-header-lang-globe-size: 26px;
  --rc-header-logo-pad: 0 0 0 4px;
  --rc-header-top-accent-h: 3px;
  /* Scrolled bar — shared by home + inner pages (home-light scroll chrome) */
  --rc-header-scrolled-bg: rgba(245, 244, 242, 0.72);
  /* Home .header--home glass (::after) — frosted at rest; slightly denser when scrolled */
  --rc-header-home-glass-bg: rgba(245, 244, 242, 0.72);
  --rc-header-home-glass-bg-scrolled: rgba(245, 244, 242, 0.88);
  --rc-header-scrolled-blur: blur(20px);
  --rc-header-scrolled-border: rgba(15, 23, 42, 0.04);
  --rc-header-scrolled-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  --rc-header-glass-highlight: rgba(255, 255, 255, 0.55);
  --rc-header-glass-highlight-scrolled: rgba(255, 255, 255, 0.72);
  /* Home top bar — horizontal inset for glass capsule (::after in home-light.css) */
  --rc-header-home-capsule-inset-x: clamp(16px, 3vw, 40px);
  /* Pre-scroll top gap only; scrolled bar is flush (site-header.css) */
  --rc-header-home-capsule-inset-top-rest: 0px;
  --rc-header-home-capsule-pad-x: clamp(12px, 1.8vw, 20px);
  /* Header + mega menu accent (not inner §22 --cyan-primary #00d9c2) */
  --rc-header-nav-hover: #008f80;
  --rc-header-nav-hover-glow: 0 0 10px rgba(0, 143, 128, 0.35);
  --section-pad-y: clamp(72px, 8vw, 112px);
  --section-pad-x: max(4%, 36px);
  --section-pad-left: max(18px, calc(var(--section-pad-x) - 16px));
  /* Home hero .wrap gutters — keep header nav in sync (css/site-header.css) */
  --home-hero-gutter-x: 36px;

  /* Inner framed hero — css/pages/hero-page.css */
  --page-hero-pad-top: calc(var(--rc-header-home-row-h, 68px) + clamp(10px, 1.8vh, 18px));
  --page-hero-pad-bottom: clamp(18px, 2.8vw, 32px);
  --page-hero-pad-inline: clamp(14px, 2.4vw, 28px);
  --page-hero-radius: clamp(22px, 3.2vw, 36px);
  --page-hero-radius-sm: 20px;
  --page-hero-shade-peak: 50%;
  --page-hero-shade-mid: 32%;

  /* Footer — same in light and dark (bg #050A15; text-white / slate-400) */
  --footer-bg: #050a15;
  --footer-heading: #ffffff;
  --footer-muted: #94a3b8;
  --footer-border: #1a3b5c;
}

/* ==========================================================================
   02. RESET & GLOBAL STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--section-pad-left);
  padding-right: var(--section-pad-x);
}

/* Home index — full container column (no .wrap side inset); same as #who */
body.page-home #who > .wrap.who-grid:not(:has(.who-media)),
body.page-home #sectors > .wrap,
body.page-home #products > .wrap,
body.page-home #investors > .wrap {
  --home-hero-gutter-x: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 640px) {
  :root {
    --section-pad-x: 20px;
  }
}

/* Home hero — full container column (same inset as header nav + #who / #sectors) */
body.page-home .industrial-hero .wrap {
  --home-hero-gutter-x: 0;
  padding-left: var(--home-hero-gutter-x);
  padding-right: var(--home-hero-gutter-x);
}

@media (max-width: 720px) {
  body.page-home .industrial-hero .wrap,
  body.page-home footer > .wrap {
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }
}

section.block {
  padding: 110px 0;
}

section.block.alt {
  background: var(--graphite);
}

section.block.dark {
  background: var(--navy);
}

#investors,
#news {
  padding: var(--section-pad-y) 0;
  background: var(--section-band);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head p {
  margin-top: 14px;
  font-size: 15px;
}

/* ==========================================================================
   03. TYPOGRAPHY & TEXT ELEMENTS
   ========================================================================== */
.eyebrow,
.eyebrow.on-light {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-primary) !important;
  font-weight: 600;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.15);
}

.eyebrow::before,
.eyebrow.blue::before,
.eyebrow.on-light::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--cyan-primary) !important;
  box-shadow: 0 0 8px var(--cyan-primary);
}

.eyebrow.blue {
  color: var(--blue-deep) !important;
  text-shadow: 0 0 10px rgba(0, 144, 255, 0.15);
}

.eyebrow.blue::before {
  background: var(--blue-deep) !important;
  box-shadow: 0 0 8px var(--blue-deep);
}

/* Site breadcrumb — inner pages */
.site-crumb {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  border: none;
  background: color-mix(in srgb, var(--glass-bg) 18%, transparent);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.site-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--white) 92%, transparent);
}

.site-crumb li + li::before {
  content: "";
  width: 14px;
  height: 1px;
  flex-shrink: 0;
  background: var(--cyan-primary);
  opacity: 0.85;
}

.site-crumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-crumb a:hover,
.site-crumb a:focus-visible {
  color: var(--cyan-primary);
}

.site-crumb a:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-crumb li:has([aria-current="page"])::before {
  width: 26px;
  height: 1.5px;
  background: var(--blue-deep);
  box-shadow: 0 0 8px var(--blue-deep);
  opacity: 1;
}

.site-crumb [aria-current="page"] {
  color: var(--blue-deep);
  font-weight: 600;
  text-shadow: 0 0 10px color-mix(in srgb, var(--blue-deep) 45%, transparent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
}

p {
  color: var(--muted);
}

/* ==========================================================================
   04. BUTTONS & GLOBAL LINKS
   ========================================================================== */
.btn {
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 144, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--cyan-primary) 100%);
  box-shadow: 0 15px 35px rgba(0, 217, 194, 0.5);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 217, 194, 0.3);
  transition: all 0.3s ease;
  width: fit-content;
}

.link-arrow:hover {
  color: #fff;
  border-bottom-color: var(--cyan-primary);
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.5);
  transform: translateX(4px);
}

.link-arrow .a {
  transition: transform 0.3s ease;
}

.link-arrow:hover .a {
  transform: translateX(5px);
}

/* ==========================================================================
   06. MAIN NAVIGATION & HEADER → css/site-header.css (load after this file)
   Markup: partials/site-header.fragment.html | JS: js/site-header.js
   ========================================================================== */

/* ==========================================================================
   07. HOME INDUSTRIAL HERO (index) — carousel layout in css/home/home-hero-horizon.css
   ========================================================================== */
.industrial-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #05080b;
}

.hero-text-col {
  width: 100%;
  max-width: 780px;
}

.hero-mega-title {
  margin: 30px 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.industrial-masked-text {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 5px;
  line-height: 1.1;
  background: linear-gradient(-45deg, #087fc1 0%, #00c7d9 30%, #087fc1 60%, #55c95a 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: liquidFlow 12s ease-in-out infinite;
}

.hero-mega-headlines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 100%;
  margin-top: 6px;
}

.hero-mega-headlines .industrial-masked-text {
  display: block;
  margin-top: 0;
  text-align: left;
  line-height: 1.05;
}

.hero-mega-headlines .saf-line-top {
  font-size: clamp(22px, 3.6vw, 56px);
}

@keyframes liquidFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.industrial-hero .hero-sub {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 28px;
  padding: 12px 0 14px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.25vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-sub__accent {
  flex-shrink: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan-primary) 0%, var(--blue-deep) 100%);
  box-shadow: 0 0 14px rgba(0, 217, 194, 0.4);
}

.hero-sub__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.75em;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(0, 217, 194, 0.06) 0%, transparent 100%);
}

.industrial-btn {
  background: #087fc1;
  color: #ffffff;
  border: 1px solid #087fc1;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.industrial-btn:hover {
  background: #00c7d9;
  border-color: #00c7d9;
  color: #05080b;
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.hero-scroll .line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--ion), transparent);
}

/* ==========================================================================
   16. INVESTORS
   ========================================================================== */

.invest-grid-pro {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 980px) {
  .invest-grid-pro {
    grid-template-columns: 1fr;
  }
}

.invest-card-small {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 144, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.invest-card-small:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 30px 60px rgba(0, 217, 194, 0.25);
  transform: translateY(-6px);
}

.invest-small-bg,
.invest-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.invest-small-bg img,
.invest-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.invest-card-small:hover .invest-small-bg img,
.invest-card-large:hover .invest-card-bg img {
  transform: scale(1.05);
}

.invest-small-bg::after,
.invest-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black-void) 0%, rgba(5, 10, 20, 0.9) 45%, rgba(0, 85, 255, 0.15) 100%);
}

.invest-small-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ic-invest {
  width: 44px;
  height: 44px;
  color: var(--cyan-primary);
  margin-bottom: 24px;
}

.invest-small-content h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.invest-small-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.invest-small-content .link-arrow {
  color: #fff;
  margin-top: auto;
}

.invest-card-large {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px 50px;
  border: 1px solid rgba(0, 144, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.invest-card-large:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 30px 60px rgba(0, 217, 194, 0.25);
  transform: translateY(-6px);
}

.invest-large-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.vip-tag {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 217, 194, 0.4);
  border-radius: 30px;
  background: rgba(0, 217, 194, 0.15);
}

.invest-large-content h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.invest-large-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-large {
  padding: 16px 32px !important;
  font-size: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 144, 255, 0.4) !important;
}

@media (max-width: 600px) {
  .invest-card-large {
    padding: 40px 30px;
  }

  .invest-small-bg::after,
  .invest-card-bg::after {
    background: linear-gradient(180deg, var(--black-void) 0%, rgba(5, 10, 20, 0.9) 60%, rgba(0, 85, 255, 0.2) 100%);
  }

  .invest-large-content h3 {
    font-size: 26px;
  }
}

.invest-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.if-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.if-item > div {
  flex: 1;
  min-width: 0;
}

.if-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--cyan-primary);
  background: rgba(0, 217, 194, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-top: 2px;
}

.if-item strong {
  display: block;
  font-size: 14px;
  color: #fff;
  font-family: var(--font-body);
  margin-bottom: 2px;
}

.if-item span {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* ==========================================================================
   19. FOOTER
   Markup source: partials/site-footer.fragment.html (scripts/sync-site-footer.py)
   ========================================================================== */
footer {
  background: var(--footer-bg);
  padding-top: var(--section-pad-y);
  padding-bottom: clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--footer-border);
}

/* Home: legacy footer horizontal gutters */
body.page-home footer > .wrap {
  padding-left: 36px;
  padding-right: 36px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  width: 100%;
}

@media (max-width: 1024px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.foot-brand.foot-brand--wordmark {
  gap: 0;
}

.foot-brand .foot-wordmark {
  max-height: 52px;
  max-width: min(300px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.foot-desc {
  font-size: 13.5px;
  max-width: 320px;
  line-height: 1.8;
  color: var(--footer-muted);
  margin-bottom: 0;
}

.foot-desc--tagline {
  max-width: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--footer-heading);
  line-height: 1.35;
  white-space: nowrap;
  margin-bottom: 10px;
}

.foot-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.foot-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--footer-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--footer-border);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.foot-social-link:hover {
  color: var(--cyan-primary);
  border-color: var(--border-active);
  background: rgba(0, 217, 194, 0.08);
  transform: translateY(-2px);
}

.foot-social-link svg {
  display: block;
}

footer h5 {
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--footer-heading);
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  font-size: 14px;
  color: var(--footer-muted);
  transition: color .3s ease, transform .3s ease;
  display: inline-block;
}

footer ul li a:hover {
  color: var(--cyan-primary);
  transform: translateX(4px);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: clamp(20px, 2.5vw, 26px);
  font-size: 12.5px;
  color: var(--footer-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--footer-border);
}

@media (max-width: 640px) {
  footer {
    padding-top: clamp(56px, 14vw, 72px);
    padding-bottom: 32px;
  }

  .foot-grid {
    gap: 32px;
  }
}

.foot-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em 0.5em;
}

.foot-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.foot-legal a:hover {
  color: var(--cyan-primary);
}

.foot-legal-sep {
  opacity: 0.55;
  user-select: none;
}

/* Back to top (js/common.js) */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(20px, 3.5vw, 32px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--footer-border);
  border-radius: 50%;
  color: var(--footer-heading);
  background: rgba(5, 10, 21, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--cyan-primary);
  border-color: var(--border-active, rgba(0, 217, 194, 0.35));
  background: rgba(5, 10, 21, 0.96);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 3px;
}

.back-to-top svg {
  display: block;
  flex-shrink: 0;
}

body.page-home:not(.dark-theme) .back-to-top {
  color: var(--text-main, #0f172a);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

body.page-home:not(.dark-theme) .back-to-top:hover {
  color: var(--cyan-primary);
  border-color: rgba(0, 143, 128, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* ==========================================================================
   22. INNER PAGES — DARK SURFACE TOKENS & SHARED CHROME
   Home stays on :root plus css/home/home-light.css. No theme switch.
   ========================================================================== */

body:not(.page-home) {
  background: #020407;
  --cyan-primary: #00d9c2;
  --blue-deep: #0090ff;
  --blue-navy: #0a5fb0;
  --black-void: #020407;
  --glass-bg: rgba(14, 24, 40, 0.45);
  --border-fine: rgba(255, 255, 255, 0.05);
  --border-active: rgba(0, 217, 194, 0.28);
  --text-main: #f3f6f9;
  --text-muted: #93a1b0;

  --void: var(--black-void);
  --navy: #050a14;
  --adipec-black: #000F30;
  --adipec-light: #D3D3D3;
  --navy-mid: #0e1626;
  --navy-soft: #111a2f;
  --graphite: #0b111e;
  --paper: var(--black-void);
  --white: #0e1626;
  --ink: var(--text-main);
  --muted: var(--text-muted);
  --line: var(--border-fine);
  --line-dark: var(--border-fine);
}

body:not(.page-home) .link-arrow:hover {
  color: #fff;
  border-bottom-color: var(--cyan-primary);
  text-shadow: 0 0 10px rgba(0, 217, 194, 0.5);
  transform: translateX(4px);
}

body:not(.page-home) section.block.dark {
  background: var(--navy);
}

/* Light content bands on inner pages — §01 :root values scoped locally */
body:not(.page-home) .surface-light {
  --cyan-primary: #008f80;
  --blue-deep: #0044b3;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-fine: rgba(15, 23, 42, 0.12);
  --white: #ffffff;
  --section-band: #f2f2f2;
  --paper: #f0f4f8;
  color-scheme: light;
}
