/* =============================================================
   VITAL POLYMERS — BOLD CORPORATE STYLESHEET
   Huge type · Electric blue · Soft warm whites · Big presence
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* LOGO-MATCHED COLORS
     Navy arc  #1B3A6B  — dark navy (logo swoosh)
     Steel V   #6B9EC9  — mid steel blue (logo V)
     Red 'c'   #C8281A  — red accent (logo tagline)
  */

  /* Navy — logo arc color */
  --navy-50:  #EBF0F8;
  --navy-100: #CDDAEE;
  --navy-200: #9BB5DC;
  --navy-300: #6990CA;
  --navy-400: #3B6BB3;
  --navy-500: #1B3A6B;
  --navy-600: #162F58;
  --navy-700: #102445;
  --navy-800: #0B1A32;
  --navy-900: #06101F;

  /* Steel blue — logo V color */
  --steel-50:  #EEF4FA;
  --steel-100: #D4E5F3;
  --steel-200: #A9CBE7;
  --steel-300: #7FB1DA;
  --steel-400: #6B9EC9;
  --steel-500: #5187B5;
  --steel-600: #3D6F9E;
  --steel-700: #2D5580;
  --steel-800: #1E3D60;
  --steel-900: #102540;

  /* Aliases so all existing var(--blue-*) still resolve */
  --blue-50:  var(--steel-50);
  --blue-100: var(--steel-100);
  --blue-200: var(--steel-200);
  --blue-300: var(--steel-300);
  --blue-400: var(--steel-400);
  --blue-500: var(--navy-500);
  --blue-600: var(--navy-600);
  --blue-700: var(--navy-700);
  --blue-800: var(--navy-800);
  --blue-900: var(--navy-900);

  /* Red accent — logo 'c' */
  --red-accent: #C8281A;
  --sky:        var(--steel-400);
  --sky-mid:    var(--steel-500);

  /* Neutrals */
  --ink-950: #0A0D14;
  --ink-900: #141928;
  --ink-800: #1F2640;
  --ink-700: #2E3858;
  --ink-600: #4A5470;
  --ink-500: #6E7A90;
  --ink-400: #9DA8B8;
  --ink-300: #C4CCD8;
  --ink-200: #DDE3EB;
  --ink-100: #EDF0F5;
  --ink-50:  #F6F8FA;

  /* Pure white — matches logo background exactly */
  --paper:  #FFFFFF;
  --cream:  #F0F5FB;   /* very light steel-tinted for alt sections */
  --white:  #FFFFFF;

  /* Semantic */
  --bg:            var(--paper);
  --text:          var(--ink-900);
  --text-mid:      var(--ink-600);
  --text-mute:     var(--ink-400);
  --border:        var(--ink-200);
  --border-mid:    var(--ink-300);
  --primary:       var(--navy-500);
  --primary-hover: var(--navy-600);
  --accent:        var(--steel-400);

  /* Typography — BIG */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container:     1400px;
  --container-pad: 48px;
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Motion */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  150ms;
  --t-med:   260ms;
  --t-slow:  480ms;

  /* Header */
  --topbar-h: 40px;
  --header-h: 114px;

  /* Header nav + button */
  --nav-fs: 22px;
  --nav-pad-y: 15px;
  --nav-pad-x: 18px;
  --hdr-btn-fs: 20px;
  --hdr-btn-pad-y: 19px;
  --hdr-btn-pad-x: 30px;

  /* Hero stats box */
  --stats-w: 83%;
  --stats-pad-y: 20px;
  --stats-pad-x: 60px;
  --stats-radius: 22px;

  /* Hero carousel boundary */
  --carousel-w: 100%;
  --carousel-h: 680px;
  --carousel-radius: 30px;

  /* Hero top gap */
  --hero-pad-top: 44px;

  /* Logo size + horizontal nudge */
  --logo-size: 147px;      /* KNOB: logo image size (height) */
  --logo-x: -52px;         /* KNOB: move the logo image left (–) / right (+) */
  --logo-y: -2px;          /* KNOB: move the logo image up (–) / down (+) */
  --logo-name-x: -254px;   /* KNOB: move the "Vital Polymers" text left (–) / right (+) */
  --logo-name-y: 21px;     /* KNOB: move the "Vital Polymers" text up (–) / down (+) */
  --logo-name-size: 17px;  /* KNOB: "Vital Polymers" text size */

  /* Header buttons horizontal move */
  --nav-x: -34px;          /* KNOB: move the nav links (About … TDS Library) left (–) / right (+) */
  --actions-x: -15px;      /* KNOB: move the "Get in touch" button left (–) / right (+) */
  --nav-group-x: -104px;   /* KNOB: move the WHOLE right group (links + EN/中文 + button) left (–) / right (+) */
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
::selection { background: var(--sky); color: var(--white); }

/* ---------- 3. Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section { padding: 140px 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--steel-400);
}

.section-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy-500);
  line-height: 1.0;
  margin-bottom: 28px;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--steel-400);
}
.section-title .outline {
  -webkit-text-stroke: 2px var(--primary);
  color: transparent;
}

.section-sub {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 640px;
}

.section-head { margin-bottom: 80px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(0, 87, 224, 0.5);
}
.btn-white {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--ink-50);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.15);
}
.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--border-mid);
}
.btn-outline:hover {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
.btn-frosted {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-frosted:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
}
.btn-xl  { padding: 20px 44px; font-size: 17px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 17px 36px; font-size: 16px; }
.btn-sm  { padding: 11px 20px; font-size: 13px; }
.btn-arrow::after {
  content: '→';
  transition: transform var(--t-fast) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(5px); }

/* ---------- 5. Topbar ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--ink-900);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-left {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  text-transform: uppercase;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar-right a {
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.topbar-right a:hover { color: var(--white); }
.topbar-divider { width: 1px; height: 14px; background: var(--ink-700); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-500);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background var(--t-slow) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.site-header.scrolled {
  background: #2A4F8C;  /* a touch lighter blue when scrolled */
  box-shadow: 0 6px 28px -10px rgba(0,0,0,0.3);
}
/* Scroll progress bar — subtle steel line along the header's bottom edge */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--steel-300);
  z-index: 3;
  pointer-events: none;
  transition: width 90ms linear;
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 200px;            /* fixed reserve — nav never moves horizontally */
  height: var(--header-h); /* fixed — nav stays vertically centered */
  overflow: visible;       /* logo can grow past the box without resizing it */
  text-decoration: none;
}
/* Logo — original colors preserved, white backing on navy header */
.logo-img {
  height: var(--logo-size);
  width: auto;
  display: block;
  object-fit: contain;
  background: none;
  padding: 0;
  transform: translate(var(--logo-x), var(--logo-y, 0px));
}
.logo-img-footer {
  height: 92px;
  width: auto;
  filter: brightness(0) invert(1);
  background: none;
  padding: 0;
}
/* Footer brand lockup */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  text-decoration: none;
}
.footer-logo-name {
  font-family: 'Poppins', var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: translateX(var(--footer-name-x, -39px));  /* KNOB: move footer wordmark left (–) / right (+) */
}
.footer-logo-name .fl-vital { color: var(--steel-400); }
.footer-logo-name .fl-poly { color: #fff; }
/* Company name beside the logo — matches .hero-headline em (steel-400) */
.logo-name {
  font-family: 'Poppins', var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: var(--logo-name-size, 26px);
  letter-spacing: -0.02em;
  color: var(--steel-400);
  white-space: nowrap;
  transform: translate(var(--logo-name-x), var(--logo-name-y, 0px));
}
.logo-name .ln-vital   { color: var(--steel-400); }
.logo-name .ln-polymers { color: #FFFFFF; }
.logo-name .ln-suffix  { color: var(--steel-400); font-weight: 500; }

/* Nav */
.primary-nav { transform: translateX(calc(var(--nav-x) + var(--nav-group-x, 0px))); }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block;
  white-space: nowrap;
  padding: var(--nav-pad-y) var(--nav-pad-x);
  font-size: var(--nav-fs);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
  position: relative;
}
.primary-nav a:hover { color: var(--white); background: transparent; }
.primary-nav a.active { color: var(--steel-300); background: transparent; font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  transform: translateX(calc(var(--actions-x) + var(--nav-group-x, 0px)));
}
.header-actions .btn {
  font-size: var(--hdr-btn-fs);
  padding: var(--hdr-btn-pad-y) var(--hdr-btn-pad-x);
}
.header-tel {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  transition: color var(--t-fast);
}
.header-tel:hover { color: var(--white); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 26px;
  transform: translateX(var(--lang-x, -37px));  /* KNOB: slide EN/中文 left (–) / right (+) */
}
.lang-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  padding: 4px 2px;
  transition: color var(--t-fast);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active { color: var(--steel-300); font-weight: 700; }
.lang-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.25); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast), width var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO MOLECULES ---------- */
.hero-molecules {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.mol-svg {
  position: absolute;
  right: 0; top: 0;
  width: 100%; height: 100%;
}
.mol-group-1 {
  animation: molFloat1 8s ease-in-out infinite;
  transform-origin: 510px 85px;
}
.mol-group-2 {
  animation: molFloat2 11s ease-in-out infinite;
  transform-origin: 90px 400px;
}
.mol-hex {
  animation: molFloat3 13s ease-in-out infinite;
  transform-origin: 575px 180px;
}
.mol-ring {
  animation: molSpin 20s linear infinite;
  transform-origin: 420px 320px;
}
@keyframes molFloat1 {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}
@keyframes molFloat2 {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(10px) rotate(-3deg); }
}
@keyframes molFloat3 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes molSpin {
  to { transform: rotate(360deg); }
}

/* ---------- STATEMENT BAND ---------- */
.statement-band {
  background: var(--navy-500);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.statement-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 20% 50%, rgba(107,158,201,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(107,158,201,0.12) 0%, transparent 60%);
}
.statement-text {
  position: relative;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 1150px;
  margin: 0 auto;
  font-style: italic;
  text-wrap: balance;
}
.statement-text::before {
  content: '\201C';
  color: var(--steel-300);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 6px;
  font-style: normal;
}
.statement-text::after {
  content: '\201D';
  color: var(--steel-300);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.35em;
  margin-left: 6px;
  font-style: normal;
}

/* ---------- HERO STATS refined ---------- */
.hero-stats {
  display: flex;
  gap: 0;
  padding-top: 0;
  border-top: none;
  background: var(--cream);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 32px;
  border-right: 1px solid var(--ink-200);
  flex: 1;
  transition: background var(--t-fast);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--steel-50); }
.hero-stat-num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy-500);
  line-height: 1;
}
.hero-stat-num sup { font-size: 0.45em; color: var(--steel-400); vertical-align: super; }
.hero-stat-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- PILLAR hover flip ---------- */
.pillar {
  background: var(--white);
  padding: 44px 36px;
  transition: background var(--t-med), transform var(--t-med);
  position: relative;
  cursor: default;
}
.pillar:hover {
  background: var(--navy-500);
  transform: scale(1.02);
  z-index: 1;
}
.pillar h3, .pillar p, .pillar-num { transition: color var(--t-med); }
.pillar:hover h3 { color: var(--white); }
.pillar:hover p  { color: rgba(255,255,255,0.7); }
.pillar:hover .pillar-num { color: var(--steel-300); }
.pillar:hover::after { transform: scaleX(0); }

/* ---------- INDUSTRY CARD num badge ---------- */
.industry-num {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy-500);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  grid-column: 2; grid-row: 1;
  justify-self: end;
  margin-bottom: 0;
}

/* ---------- POLYMER CARD ---------- */
.polymer-code { color: var(--navy-500); }
.polymer-card:hover .polymer-code { color: var(--steel-400); }
.polymer-link { color: var(--navy-500); font-family: var(--font-sans); }


/* ---------- 7. HERO — massive, full-bleed LIGHT ---------- */
.hero {
  background: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--ink-200);
}

/* Background layers */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-grid { display: none; }
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-bg-blob-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(107,158,201,0.18) 0%, transparent 60%);
  top: -300px; right: -200px;
}
.hero-bg-blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,58,107,0.08) 0%, transparent 60%);
  bottom: -100px; left: 5%;
}
.hero-bg-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,158,201,0.1) 0%, transparent 60%);
  top: 40%; left: 40%;
}

/* Hero body */
.hero-body {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: var(--hero-pad-top) 0 100px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 28px;
  text-align: center;
}

.hero-headline {
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--navy-500);
  margin-bottom: 36px;
}
.hero-headline em {
  font-style: normal;
  color: var(--steel-400);
  display: block;
}
.hero-headline .chem-c {
  font-style: italic;
  color: var(--steel-400);
  text-transform: uppercase;

}

.hero-sub {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 52px;
  max-width: 520px;
}

.hero-actions {
  --hero-btn-x: -48px;   /* KNOB: move Explore portfolio left (–) / right (+) */
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 72px;
  transform: translateX(var(--hero-btn-x, 0px));
}

.hero-stats {
  display: flex;
  gap: 40px;
  max-width: 100%;
  padding: var(--stats-pad-y) var(--stats-pad-x);
  border: 1px solid var(--ink-200);
  border-radius: var(--stats-radius);
}
.hero-stats > div { min-width: 0; }
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.hero-stat-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
}
.hero-stat-num sup { font-size: 0.45em; color: var(--steel-400); vertical-align: super; }
.hero-stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Hero right: image carousel */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-carousel {
  position: relative;
  width: var(--carousel-w);
  max-width: 100%;
  height: var(--carousel-h);
  margin-left: auto;
  border-radius: var(--carousel-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(27,58,107,0.35);
  background: var(--steel-50);
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide.is-active { opacity: 1; }

/* Frosted-glass caption, top-left of each slide */
.hero-carousel {
  /* ============================================================
     HERO CAPTION KNOBS — tweak these, then send me the finals
     ============================================================ */
  --caption-top:        518px;  /* vertical position: move box DOWN (bigger) / UP (smaller / negative) */
  --caption-width:      92%;    /* width of the box behind the text */
  --caption-pad-y:      22px;   /* box padding — top/bottom */
  --caption-pad-x:      48px;   /* box padding — left/right */
  --caption-title-size: 25px;   /* heading font size */
  --caption-sub-size:   14px;   /* sub-text font size */
  --caption-bg-opacity: 0.55;   /* box transparency (0 = clear, 1 = solid) */
}
.hero-caption {
  position: absolute;
  top: var(--caption-top, 18px);
  left: 50%;
  transform: translateX(-50%);
  width: var(--caption-width, 88%);
  max-width: calc(100% - 36px);
  text-align: center;
  padding: var(--caption-pad-y, 16px) var(--caption-pad-x, 20px);
  border-radius: 14px;
  background: rgba(235, 240, 248, var(--caption-bg-opacity));
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 34px -14px rgba(11, 26, 50, 0.45);
  color: var(--navy-500);
  z-index: 2;
}
.hero-caption-title {
  font-family: var(--font-sans);
  font-size: var(--caption-title-size, 17px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--navy-500);
}
.hero-caption-sub {
  font-family: var(--font-sans);
  font-size: var(--caption-sub-size, 12.5px);
  line-height: 1.5;
  margin: 0;
  color: var(--navy-700);
  text-align: left;
}
.hero-carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hero-carousel-dots button.is-active {
  background: #fff;
  transform: scale(1.25);
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--navy-500);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 2px 20px rgba(27,58,107,0.06);
  transition: all var(--t-med) var(--ease);
}
.hero-card:hover {
  background: var(--steel-50);
  border-color: var(--steel-200);
  border-left-color: var(--steel-400);
  transform: translateX(6px);
  box-shadow: 0 8px 40px rgba(27,58,107,0.12);
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero-card-badge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--steel-50);
  color: var(--navy-500);
  border: 1px solid var(--steel-200);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
}
.hero-card-grade {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.04em;
}
.hero-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--ink-100);
  padding-top: 16px;
}
.hero-spec-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  display: block;
  margin-bottom: 4px;
}
.hero-spec-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* Marquee */
.hero-marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--ink-200);
  background: var(--cream);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.marquee-track .mhigh { color: var(--primary); }
.marquee-track .mdot  { color: var(--blue-300); font-size: 7px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. ABOUT ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}
.about-lede {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-500);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.about-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.about-body em {
  font-style: normal;
  color: var(--navy-500);
  font-weight: 700;
}
.about-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: 44px 36px;
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              transform var(--t-med) var(--ease);
  position: relative;
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--steel-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.pillar:hover {
  background: linear-gradient(150deg, var(--navy-500) 0%, var(--steel-600) 100%);
  box-shadow: 0 26px 54px -22px rgba(27, 58, 107, 0.6);
}
.pillar:hover::after { transform: scaleX(1); }
.pillar-num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}
.pillar h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---------- 9. CAPABILITIES — light, airy ---------- */
.capabilities {
  background: var(--steel-100);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.capabilities::before { display: none; }
.capabilities .section-label { color: var(--navy-500); }
.capabilities .section-label::before { background: var(--navy-500); }
.capabilities .section-title { color: var(--navy-500); }
.capabilities .section-sub { color: var(--text-mid); font-size: 20px; }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-200);
  gap: 1px;
  margin-top: 80px;
}
.capability {
  background: var(--white);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--t-med);
  overflow: hidden;
}
.capability::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.capability:hover { background: var(--blue-50); }
.capability:hover::before { transform: scaleX(1); }
.capability-num {
  font-family: var(--font-sans);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(27,58,107,0.05);
  margin-bottom: 0;
  position: absolute;
  top: 24px; right: 20px;
}
.capability-icon {
  width: 52px; height: 52px;
  color: var(--navy-500);
  margin-bottom: 28px;
}
.capability-icon svg { width: 100%; height: 100%; }
.capability h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.capability p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ---------- 10. BIG NUMBERS STRIP — vivid sky blue ---------- */
.stats-strip {
  background: var(--navy-500);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 32px 32px;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
}
.stat-block {
  background: var(--navy-500);
  padding: 56px 40px;
  text-align: center;
  transition: background var(--t-fast);
}
.stat-block:hover { background: var(--navy-600); }
.stat-big {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-big sup { font-size: 0.45em; color: rgba(255,255,255,0.65); vertical-align: super; }
.stat-label-big {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---------- 11. INDUSTRIES ---------- */
.industries { background: var(--cream); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}
/* Bento mosaic — varied sizes that tile the whole section */
.industries-grid .industry-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; } /* Automotive — feature */
.industries-grid .industry-card:nth-child(2) { grid-column: 3;          grid-row: 1 / span 2; } /* White Goods — tall */
.industries-grid .industry-card:nth-child(3) { grid-column: 4;          grid-row: 1; }          /* Electrical */
.industries-grid .industry-card:nth-child(4) { grid-column: 4;          grid-row: 2; }          /* Medical */
.industries-grid .industry-card:nth-child(5) { grid-column: 1;          grid-row: 3 / span 2; } /* Sports — tall */
.industries-grid .industry-card:nth-child(6) { grid-column: 2 / span 2; grid-row: 3; }          /* Power — wide */
.industries-grid .industry-card:nth-child(7) { grid-column: 4;          grid-row: 3 / span 2; } /* Composites — tall */
.industries-grid .industry-card:nth-child(8) { grid-column: 2 / span 2; grid-row: 4; }          /* Specialty — wide */
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.industry-card { cursor: pointer; }
.industry-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px -16px rgba(0,87,224,0.2);
  transform: translateY(-6px);
}
.industry-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.industry-visual {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-50);
  border-bottom: 1px solid var(--border);
}
/* 3-image collage: tall image left, two stacked right */
.industry-collage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--ink-100);
}
.industry-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.03) brightness(0.97);
  transition: filter var(--t-med) var(--ease), transform var(--t-slow) var(--ease);
}
.industry-collage img:nth-child(1) { grid-row: 1 / 3; }
.industry-card:hover .industry-collage img { filter: grayscale(0) contrast(1.04) brightness(1); }
.industry-card:hover .industry-collage img:nth-child(1) { transform: scale(1.04); }
/* "View" affordance */
.industry-expand {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(27, 58, 107, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 9px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.industry-card:hover .industry-expand,
.industry-card:focus-visible .industry-expand { opacity: 1; transform: translateY(0); }

/* ---------- INDUSTRY LIGHTBOX ---------- */
.industry-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  background: transparent;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.industry-lightbox.open { opacity: 1; pointer-events: auto; }
.industry-lightbox-panel {
  width: 100%; max-width: 1320px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -24px rgba(11, 26, 50, 0.55);
  padding: 24px;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) ease;
}
.industry-lightbox.open .industry-lightbox-panel { transform: none; opacity: 1; }
.industry-lightbox-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 18px; margin-bottom: 20px;
}
.industry-lightbox-meta { display: flex; align-items: baseline; gap: 16px; }
.industry-lightbox-num {
  font-size: 13px; font-weight: 700; color: var(--steel-500);
  letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
}
.industry-lightbox-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-500);
}
.industry-lightbox-close {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--ink-200); background: var(--ink-50);
  border-radius: 50%;
  color: var(--navy-500); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.industry-lightbox-close:hover { background: var(--navy-500); border-color: var(--navy-500); color: var(--white); }
.industry-lightbox-images {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--ink-200); border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm); overflow: hidden;
}
.industry-lightbox-images figure {
  position: relative; overflow: hidden; background: var(--ink-100);
  aspect-ratio: 3 / 2;   /* matches the 3:2 source — full image, no cropping */
}
.industry-lightbox-images img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  opacity: 0; transform: scale(1.06);
  transition: opacity var(--t-slow) ease, transform 0.65s var(--ease);
}
.industry-lightbox.open .industry-lightbox-images img { opacity: 1; transform: none; }
.industry-lightbox.open .industry-lightbox-images figure:nth-child(1) img { transition-delay: 0.14s; }
.industry-lightbox.open .industry-lightbox-images figure:nth-child(2) img { transition-delay: 0.22s; }
.industry-lightbox.open .industry-lightbox-images figure:nth-child(3) img { transition-delay: 0.30s; }
.industry-lightbox-images figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 10px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--white);
  background: linear-gradient(to top, rgba(11, 26, 50, 0.85), transparent);
}
@media (max-width: 760px) {
  .industry-lightbox { padding: 28px 18px; }
  .industry-lightbox-images { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .industry-collage img,
  .industry-lightbox-panel,
  .industry-lightbox-images img { transition: none !important; }
}
.industry-body {
  padding: 14px 18px 16px; flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
}
.industry-card h3 {
  grid-column: 1; grid-row: 1;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0;
  letter-spacing: -0.015em;
}
.industry-card p {
  grid-column: 1 / -1; grid-row: 2;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-mid);
}

/* ---------- 12. PRINCIPALS ---------- */
.principals { background: var(--white); border-top: 1px solid var(--border); }
.principals-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.principals-intro { display: flex; flex-direction: column; gap: 28px; }
.principals-stats {
  display: flex;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pstat { display: flex; flex-direction: column; gap: 6px; }
.pstat-num {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy-500);
  font-variant-numeric: tabular-nums;
}
.pstat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.principals-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
}
.principal-tile {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  gap: 12px;
  transition: background var(--t-fast);
  position: relative;
}
.principal-tile:nth-child(5n)  { border-right: none; }
.principal-tile:nth-last-child(-n+5) { border-bottom: none; }
.principal-tile:hover { background: var(--white); z-index: 2; }
.principal-placeholder {
  width: 96px;
  height: 32px;
  background: repeating-linear-gradient(
    90deg, var(--border) 0, var(--border) 1px,
    transparent 1px, transparent 10px
  );
  border-radius: 3px;
  opacity: 0.5;
}
/* Logos arrive in mixed sizes — contain + cap so every tile reads uniform */
.principal-logo {
  max-width: 90%;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--t-med) var(--ease);
}
.principal-tile:hover .principal-logo { transform: scale(1.14); }
/* Kingfa logo is wider — tighter cap so it never touches the tile edges */
.principal-logo[src*="kingfa"] { max-width: 80%; max-height: 78px; }
/* Both Sinochem logos are the same artwork but ship at different sizes —
   pin both to one width so they render identically */
.principal-logo[src*="sinochem"] {
  width: 168px;
  height: auto;
  max-width: 88%;
  max-height: none;
}
.principal-tile-name {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-500);
  text-align: center;
}
.principals-note {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ---------- 13. PRODUCTS ---------- */
.products { background: var(--cream); border-top: 1px solid var(--border); }
.polymer-group {
  margin-bottom: 56px;
}
.polymer-group:last-child {
  margin-bottom: 0;
}
.polymer-group-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-500);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.polymer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.polymer-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 34px 32px;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.polymer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.polymer-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(0,87,224,0.18);
}
.polymer-card:hover::before { transform: scaleX(1); }
.polymer-code-bg {
  position: absolute;
  right: -12px; top: -8px;
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color var(--t-fast);
}
.polymer-card:hover .polymer-code-bg { color: var(--blue-100); }
.polymer-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-500);
  line-height: 1;
  margin-bottom: 16px;
  padding: 6px 11px;
  border: 1px solid var(--navy-100);
  background: var(--navy-50);
  border-radius: var(--radius-sm);
  position: relative;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.polymer-card:hover .polymer-code {
  background: var(--navy-500);
  border-color: var(--navy-500);
  color: #fff;
}
.polymer-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-500);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  position: relative;
}
.polymer-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0;
  position: relative;
}
.polymer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-sans);
  position: relative;
  transition: gap var(--t-fast);
}
.polymer-card:hover .polymer-link { gap: 12px; }

/* ---------- 14. TECHNICAL LIBRARY (glossary) ---------- */
.techlib { background: var(--white); border-top: 1px solid var(--border); padding: 96px 0; }
.techlib-head {
  text-align: center;
  margin-bottom: 30px;
  --lib-title-lh: 0.95;  /* KNOB: line-height (height) of "The language of material data" */
  --lib-label-x: 0px;  --lib-label-y: 0px;   --lib-label-size: 110px;
  --lib-title-x: 0px;  --lib-title-y: -28px; --lib-title-size: 43px;
}
.techlib-head .section-label {
  display: block;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--lib-label-size, 44px);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--navy-500);
  margin-bottom: 8px;
  transform: translate(var(--lib-label-x, 0px), var(--lib-label-y, 0px));
}
.techlib-head .section-label::before { display: none; }
.techlib-head .section-label .hl { color: var(--navy-500); }
.techlib-head .section-title {
  font-size: var(--lib-title-size, 24px);
  font-weight: 600;
  line-height: var(--lib-title-lh, 0.95);
  letter-spacing: -0.01em;
  color: var(--steel-600);
  margin-bottom: 16px;
  transform: translate(var(--lib-title-x, 0px), var(--lib-title-y, 0px));
}
.techlib-head .section-sub { margin: 0 auto; }

.techlib-search { position: relative; max-width: 540px; margin: 0 auto 42px; }
.techlib-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); pointer-events: none;
}
.techlib-search input {
  width: 100%;
  padding: 15px 20px 15px 48px;
  font-size: 15px;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 14px 38px -16px rgba(27, 58, 107, 0.22);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.techlib-search input:focus {
  border-color: var(--steel-400);
  box-shadow: 0 14px 40px -14px rgba(27, 58, 107, 0.3);
}

.techlib-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.techlib-col {        /* columns built by script.js (balanced masonry) */
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.glos-cat {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-top: 2px solid var(--navy-500);
  border-radius: 0;
  padding: 22px 22px 18px;
  transition: opacity var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.glos-cat:hover { box-shadow: 0 18px 44px -22px rgba(27, 58, 107, 0.28); }
.glos-cat.is-empty { opacity: 0.28; }
.glos-cat-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-500);
  flex: 0 0 auto;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-100);
}
.glos-cat ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.glos-term {
  position: relative;
  font-size: 13.5px;
  line-height: 1.2;
  padding: 8px 13px;
  border-radius: 2px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  color: var(--navy-700);
  cursor: help;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), opacity var(--t-med);
}
.glos-term:hover { background: var(--navy-500); color: #fff; border-color: var(--navy-500); }
.glos-term.is-dim { opacity: 0.22; }
.glos-term.is-hit { border-color: var(--steel-400); background: var(--steel-50); }
/* Tooltip — floating element positioned by JS (so it is never clipped by the
   scrollable category boxes). See script.js §8g. */
.glos-tip {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
  color: #fff;
  background: var(--navy-700);
  padding: 12px 15px;
  border-radius: 3px;
  box-shadow: 0 18px 42px -12px rgba(11, 26, 50, 0.55);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease);
}
.glos-tip.show { opacity: 1; visibility: visible; }
.glos-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--tip-arrow-x, 50%);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy-700);
}
.glos-tip.below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--navy-700);
}
.techlib-note {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.products-note {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}

/* ---------- 14b. (legacy) TDS LIBRARY ---------- */
.tds-section { background: var(--white); border-top: 1px solid var(--border); }
.tds-toolbar {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tds-search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tds-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,87,224,0.08);
}
.tds-search svg { color: var(--text-mute); flex-shrink: 0; }
.tds-search input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink-900);
}
.tds-search input::placeholder { color: var(--text-mute); }

.tds-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.tds-filter {
  appearance: none; -webkit-appearance: none;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 11px 40px 11px 16px;
  font-size: 14px;
  color: var(--ink-900);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%234A5270' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--t-fast);
  font-weight: 500;
}
.tds-filter:hover, .tds-filter:focus { border-color: var(--primary); outline: none; }
.tds-clear {
  margin-left: auto; font-size: 14px; font-weight: 600;
  color: var(--text-mute); padding: 11px 16px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: all var(--t-fast);
}
.tds-clear:hover { color: var(--ink-900); background: var(--border); }

.tds-status {
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 24px;
}
.tds-status strong { color: var(--primary); font-weight: 700; }

.tds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tds-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med) var(--ease);
}
.tds-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -16px rgba(0,87,224,0.16);
}
.tds-card.is-hidden { display: none; }
.tds-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 18px;
}
.tds-polymer-badge {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; background: var(--steel-50);
  color: var(--navy-500); border: 1px solid var(--steel-200);
  padding: 4px 12px; border-radius: var(--radius-xs);
}
.tds-principal-badge {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.04em; color: var(--text-mute); text-transform: uppercase;
}
.tds-name {
  font-size: 19px; font-weight: 800;
  color: var(--ink-900); letter-spacing: -0.015em; margin-bottom: 10px;
}
.tds-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--text-mid); margin-bottom: 18px; flex: 1;
}
.tds-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tds-tag {
  font-family: var(--font-sans); font-size: 10.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--ink-100); color: var(--ink-600);
  padding: 4px 10px; border-radius: var(--radius-xs);
  font-weight: 600;
}
.tds-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--border); margin-top: auto;
}
.tds-download {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  transition: gap var(--t-fast), color var(--t-fast);
}
.tds-download:hover { color: var(--primary-hover); gap: 12px; }
.tds-filesize {
  font-family: var(--font-sans); font-size: 11px; color: var(--text-mute);
}
.tds-empty {
  grid-column: 1 / -1; background: var(--cream);
  border: 1px dashed var(--border-mid); border-radius: var(--radius-lg);
  padding: 80px; text-align: center;
}
.tds-empty p { font-size: 18px; color: var(--text-mid); margin-bottom: 20px; }
.tds-note {
  margin-top: 32px; font-family: var(--font-sans); font-size: 12px;
  color: var(--text-mute); text-align: center; letter-spacing: 0.04em;
}

/* ---------- 15. CONTACT — light version ---------- */
.contact {
  background: var(--cream);
  color: var(--ink-900);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ink-200);
}
.contact::before { display: none; }
.contact-blob {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(107,158,201,0.12) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(80px);
  top: -200px; right: -100px;
  pointer-events: none;
}
.contact .container { position: relative; }
.contact .section-label { color: var(--navy-500); }
.contact .section-label::before { background: var(--navy-500); }
.contact .section-title { color: var(--navy-500); }
.contact .section-sub { color: var(--text-mid); font-size: 20px; }

/* ============================================================
   CONTACT SPACING KNOBS — tweak these, then send me the finals
   ============================================================ */
.contact-grid {
  --contact-col-gap:     100px;  /* space between info column and the form */
  --contact-blocks-gap:  52px;   /* space above the email/phone block */
  --contact-quick-gap:   18px;   /* space above Email/Call/WhatsApp buttons */
  --contact-pledge-gap:  18px;   /* space above the 24h response badge */
  --contact-offices-gap: 33px;   /* space above the "Our offices" block */
  --office-card-gap:     20px;   /* space between each office (vertical gap) */

  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--contact-col-gap, 100px);
  align-items: stretch;
}
.contact-info-blocks {
  margin-top: var(--contact-blocks-gap, 52px);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.contact-block {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--ink-100);
  transition: background var(--t-fast);
}
.contact-block:last-child { border-bottom: none; }
.contact-block:hover { background: var(--blue-50); }
.contact-block-label {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400);
}
.contact-block-value { font-size: 18px; font-weight: 600; color: var(--ink-900); }
a.contact-block-value:hover { color: var(--primary); }

/* 24h response pledge — minimal */
.contact-pledge {
  margin-top: var(--contact-pledge-gap, 18px);
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-200);
}
.contact-pledge-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-500);
}
.contact-pledge-text { display: flex; flex-direction: column; gap: 2px; }
.contact-pledge-text strong {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-500);
}
.contact-pledge-text span { font-size: 12.5px; line-height: 1.45; color: var(--text-mid); }

/* Offices */
.contact-offices { margin-top: var(--contact-offices-gap, 36px); }
.contact-offices-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--navy-500);
  margin-bottom: 18px;
}
.office-grid { display: flex; flex-direction: column; gap: var(--office-card-gap, 20px); }
.office-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  transition: transform var(--t-fast) var(--ease);
}
.office-card:hover { transform: translateX(2px); }
.office-pin {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy-500);
}
.office-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}
.office-city {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-500);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.office-addr { font-size: 13.5px; line-height: 1.5; color: var(--text-mid); }
.office-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-600);
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  padding: 3px 8px;
  border-radius: 999px;
}
.office-card-soon { opacity: 0.8; }
.office-card-soon .office-pin { background: var(--ink-100); color: var(--ink-400); }
.office-directions {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--steel-600);
}
.office-directions span { transition: transform var(--t-fast) var(--ease); display: inline-block; }
.office-card:hover .office-directions { color: var(--navy-500); }
.office-card:hover .office-directions span { transform: translateX(4px); }

/* Live local time chip */
.contact-localtime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--navy-600);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
}
.contact-localtime strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.contact-localtime-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22a45d;
  box-shadow: 0 0 0 0 rgba(34, 164, 93, 0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34, 164, 93, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 164, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 164, 93, 0); }
}
.contact-localtime.is-closed .contact-localtime-dot { background: var(--ink-400); animation: none; }

/* Trust strip */
.contact-trust {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--navy-50), var(--steel-50));
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
}
.contact-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  position: relative;
}
.contact-trust-item + .contact-trust-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 10%;
  height: 80%;
  width: 1px;
  background: var(--navy-100);
}
.contact-trust-num {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy-500);
  line-height: 1;
}
.contact-trust-num sup { font-size: 0.5em; color: var(--steel-500); vertical-align: super; }
.contact-trust-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Copy buttons */
.contact-block-row { display: flex; align-items: center; gap: 10px; }
.contact-block-row .contact-block-value { flex: 1; }
.contact-copy-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  color: var(--ink-500);
  transition: all var(--t-fast);
}
.contact-copy-btn:hover { color: var(--navy-500); border-color: var(--navy-200); background: var(--navy-50); }
.contact-copy-btn .icon-check { display: none; color: #22a45d; }
.contact-copy-btn[data-copied="true"] { color: #22a45d; border-color: #b7e3ca; background: #eafaf1; }
.contact-copy-btn[data-copied="true"] .icon-copy { display: none; }
.contact-copy-btn[data-copied="true"] .icon-check { display: block; }

/* Quick action buttons */
.contact-quick {
  display: flex;
  gap: 10px;
  margin-top: var(--contact-quick-gap, 18px);
  flex-wrap: wrap;
}
.contact-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-500);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast) var(--ease);
}
.contact-quick-btn:hover {
  border-color: var(--navy-500);
  color: var(--white);
  background: var(--navy-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(27, 58, 107, 0.5);
}
.contact-quick-wa:hover { background: #1f8a52; border-color: #1f8a52; box-shadow: 0 12px 26px -12px rgba(31, 138, 82, 0.5); }
.contact-quick-wc:hover { background: #2a9d4f; border-color: #2a9d4f; box-shadow: 0 12px 26px -12px rgba(42, 157, 79, 0.5); }

/* Copy toast */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--navy-500);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(27, 58, 107, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease);
  z-index: 2000;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 40px rgba(0,133,229,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
/* Enquiry field grows so the form fills the column height and the
   Send button sits at the bottom, level with the office list. */
.form-field:has(textarea) { flex: 1 1 auto; margin-bottom: 24px; }
.form-field:has(textarea) textarea { flex: 1 1 auto; resize: vertical; min-height: 120px; }
.form-field label {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500);
  font-weight: 600;
}
.form-field .req { color: var(--primary); }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink-900);
  font-size: 16px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,133,229,0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-400); }
.form-field textarea {
  resize: vertical; min-height: 120px;
  font-family: inherit; line-height: 1.6;
}
.form-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%237A8898' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: var(--ink-50);
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px; cursor: pointer;
}
.form-submit {
  width: 100%; justify-content: center;
  padding: 18px; font-size: 16px; letter-spacing: 0.02em;
}
.form-note { font-size: 13px; color: var(--ink-400); margin-top: 16px; line-height: 1.6; }
.form-result { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form-result.show { display: block; }
.form-result.success {
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-200);
}
.form-result.error {
  background: #FEF2F2; color: #B91C1C;
  border: 1px solid #FECACA;
}

/* ---------- 16. FOOTER ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--ink-400);
  padding: 80px 0 0;
  border-top: 1px solid var(--ink-800);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 72px;
  margin-bottom: 64px;
}
.footer-brand .logo { margin-bottom: 24px; }
.footer-brand p {
  font-size: 15px; line-height: 1.7;
  color: var(--ink-500); margin-bottom: 28px; max-width: 300px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--ink-400);
  transition: all var(--t-fast);
}
.footer-social-link:hover {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}
.footer-col h4 {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 24px; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a {
  font-size: 15px; color: var(--ink-500);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--ink-800);
  padding: 28px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-bottom-copy {
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-600);
}
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-links a { font-size: 13px; color: var(--ink-600); transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: var(--ink-300); }

/* ---------- 17. COOKIE ---------- */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 999;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: slideUp 0.4s var(--ease) both;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 22px 32px;
}
.cookie-banner p { font-size: 14px; color: var(--ink-300); line-height: 1.6; }
.cookie-banner a { color: var(--blue-300); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- 18. REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1280px) {
  :root {
    --container-pad: 32px;
    /* Drop the fine-tuned header nudges below desktop so nothing overlaps */
    --logo-x: 0px;  --logo-y: 0px;
    --logo-name-x: 0px; --logo-name-y: 0px;
    --nav-x: 0px;   --actions-x: 0px;
  }
  /* Let the logo box size to logo + wordmark so the flex gap keeps it
     clear of the nav at every width */
  .logo { width: auto; gap: 12px; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
}
@media (max-width: 1024px) {
  .hero-body { grid-template-columns: 1fr; gap: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
  .industries-grid .industry-card { grid-column: auto !important; grid-row: auto !important; }
  .polymer-grid { grid-template-columns: repeat(2, 1fr); }
  .tds-grid { grid-template-columns: repeat(2, 1fr); }
  .techlib-grid { column-count: 3; }
  .principals-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .principals-header { grid-template-columns: 1fr; gap: 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root {
    --container-pad: 20px; --header-h: 68px; --topbar-h: 0px;
    --logo-size: 46px;        /* fits the shorter mobile header */
    --logo-name-size: 16px;
  }
  .topbar { display: none; }
  .section { padding: 96px 0; }
  .section-title { font-size: clamp(36px, 9vw, 52px); }
  .section-sub { font-size: 17px; }

  .primary-nav, .header-tel, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav.open {
    display: flex; position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-500); flex-direction: column;
    padding: 36px 24px; border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 199; overflow-y: auto;
  }
  .primary-nav.open ul { flex-direction: column; gap: 0; }
  .primary-nav.open a {
    font-size: 20px; padding: 16px 0; color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.1); display: block;
  }
  .primary-nav.open a::after { display: none; }

  .hero-body { padding: 72px 0 72px; }
  .hero-headline { font-size: clamp(48px, 12vw, 72px); }
  .hero-stats { gap: 36px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 40px; }

  .capabilities-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  .principals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .polymer-grid { grid-template-columns: 1fr; }
  .tds-grid { grid-template-columns: 1fr; }
  .techlib-grid { column-count: 2; }
  .about-pillars { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .principals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* logo-tagline removed — using image logo */
  .industries-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .stats-grid { grid-template-columns: 1fr; }
  .techlib-grid { column-count: 1; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
@media print {
  .site-header, .site-footer, .cookie-banner, .hero-marquee, .topbar { display: none; }
  body { background: white; color: black; }
}

/* =============================================================
   18. LEGAL PAGES  (Privacy · Terms · Cookies)
   Standalone documents that reuse the site tokens + footer.
   ============================================================= */

/* --- Header (light, sticky) --- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.legal-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-logo { display: inline-flex; align-items: center; }
.legal-logo img { height: 52px; width: auto; }
.legal-header-actions { display: flex; align-items: center; gap: 24px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
  transition: color var(--t-fast);
}
.legal-back:hover { color: var(--navy-500); }
.legal-back svg { width: 16px; height: 16px; }
/* Re-skin the shared language switch for a light background */
.legal-lang { margin: 0; transform: none; }
.legal-lang .lang-btn { color: var(--ink-500); }
.legal-lang .lang-btn:hover { color: var(--navy-500); }
.legal-lang .lang-btn.is-active { color: var(--navy-500); font-weight: 700; }
.legal-lang .lang-sep { background: var(--border-mid); }

/* --- Hero band --- */
.legal-hero {
  background: linear-gradient(140deg, var(--navy-600) 0%, var(--navy-500) 55%, var(--steel-700) 100%);
  color: var(--white);
  padding: 72px 0 56px;
}
.legal-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.legal-breadcrumb {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--steel-200);
  margin-bottom: 22px;
}
.legal-breadcrumb a { color: var(--steel-200); transition: color var(--t-fast); }
.legal-breadcrumb a:hover { color: var(--white); }
.legal-breadcrumb span { color: rgba(255,255,255,0.6); }
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 16px;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel-200);
}

/* --- Body / prose --- */
.legal-main { background: var(--paper); }
.legal-prose {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px var(--container-pad) 88px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-700);
}
.legal-intro {
  font-size: 18px;
  color: var(--ink-800);
  margin-bottom: 8px;
}
.legal-prose h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-500);
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}
.legal-prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 26px 0 10px;
}
.legal-prose p { margin-bottom: 16px; }
.legal-prose ul, .legal-prose ol { margin: 0 0 18px 0; padding-left: 22px; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin-bottom: 8px; padding-left: 4px; }
.legal-prose a { color: var(--navy-400); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-prose a:hover { color: var(--navy-600); }
.legal-prose strong { color: var(--ink-900); font-weight: 700; }

/* TOC chip row */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

/* Definitions / cookie table */
.legal-table-wrap { overflow-x: auto; margin: 8px 0 22px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 540px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th {
  background: var(--ink-50);
  font-weight: 700;
  color: var(--ink-900);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.legal-table td code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-500);
}

/* Callout note */
.legal-note {
  background: var(--steel-50);
  border-left: 3px solid var(--steel-400);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 8px 0 22px;
  font-size: 15px;
  color: var(--ink-700);
}

/* Contact card */
.legal-contact {
  margin-top: 12px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}
.legal-contact strong { display: block; color: var(--navy-500); margin-bottom: 6px; }

/* Related-documents row */
.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal-related a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-500);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  transition: all var(--t-fast) var(--ease);
}
.legal-related a:hover { background: var(--navy-500); color: var(--white); border-color: var(--navy-500); }

/* Compact footer for legal pages */
.legal-footer { padding-top: 0; }
.legal-footer .footer-bottom { border-top: none; }

@media (max-width: 720px) {
  .legal-header-inner { padding: 12px 24px; }
  .legal-logo img { height: 44px; }
  .legal-back span.legal-back-text { display: none; }
  .legal-hero-inner, .legal-prose { padding-left: 24px; padding-right: 24px; }
  .legal-prose { padding-top: 40px; }
}
