/* ==========================================================================
   COPDC Design System: core.css
   Shared by every COPDC Group site and variation. Maps 1:1 to the future
   WordPress theme (theme.css) + Elementor add-on widget styles.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand (exact values from the logo vector file; never alter) */
  --c-blue: #2D94D6;
  --c-red: #BB0004;
  --c-ink: #272727;            /* text only */

  /* Derived interaction shades (UI states only, never in the logo) */
  --c-blue-600: #1F7DBB;
  --c-red-700: #970003;

  /* Neutrals */
  --c-night: #0A121C;          /* deep blue-black for dark sections */
  --c-night-2: #101B28;
  --c-night-3: #18263A;
  --c-white: #FFFFFF;
  --c-paper: #F5F7FA;
  --c-mist: #EAEEF3;
  --c-line: rgba(39, 39, 39, .12);
  --c-line-light: rgba(255, 255, 255, .14);
  --c-muted: #5E6672;
  --c-muted-light: rgba(255, 255, 255, .68);

  /* Type */
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1.02rem;
  --fs-lg: 1.18rem;
  --fs-xl: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  --fs-h4: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4vw, 5.6rem);
  --fs-display: clamp(3rem, 1.6rem + 6vw, 8rem);

  /* Layout */
  --container: 1320px;
  --container-wide: 1600px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 140px);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --header-h: 88px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --t-fast: .25s;
  --t: .5s;

  --shadow-sm: 0 2px 10px rgba(10, 18, 28, .06);
  --shadow: 0 18px 50px -18px rgba(10, 18, 28, .28);
  --shadow-lg: 0 40px 90px -30px rgba(10, 18, 28, .45);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .display {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.035em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.18; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lg); line-height: 1.7; color: var(--c-muted); }
.on-dark .lead, .lead.on-dark { color: var(--c-muted-light); }
.muted { color: var(--c-muted); }
.text-blue { color: var(--c-blue); }
.text-red { color: var(--c-red); }
.text-white { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--f-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--c-blue) 0 50%, var(--c-red) 50% 100%);
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: #fff; }

/* Brand accent line: the logo's blue/red pairing */
.brand-rule { display: block; width: 64px; height: 4px; background: linear-gradient(90deg, var(--c-blue) 0 50%, var(--c-red) 50% 100%); border-radius: 2px; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--dark { background: var(--c-night); color: #fff; }
.section--paper { background: var(--c-paper); }
.on-dark { color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--stack, 1.25rem); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head > * + * { margin-top: 1.1rem; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.split-head .section-head { margin-bottom: 0; }

/* ---------- 5. Buttons & links ---------- */
.btn {
  --btn-bg: var(--c-red); --btn-fg: #fff; --btn-bd: var(--c-red);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .8em;
  padding: 1.05em 1.9em;
  font-family: var(--f-head); font-size: .86rem; font-weight: 600; letter-spacing: .04em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  transition: color var(--t) var(--ease-out), border-color var(--t) var(--ease-out); /* no transform transition: GSAP reveals animate transform */
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--c-ink));
  transform: translateY(101%); border-radius: inherit;
  transition: transform var(--t) var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--btn-hover, var(--c-ink)); color: var(--btn-hover-fg, #fff); }
.btn .ico { width: 1.1em; height: 1.1em; transition: transform var(--t) var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn--blue { --btn-bg: var(--c-blue); --btn-bd: var(--c-blue); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); --btn-hover: #fff; --btn-hover-fg: var(--c-ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; --btn-hover: var(--c-red); }
.btn--square { border-radius: var(--radius-sm); }
.btn--lg { padding: 1.25em 2.3em; font-size: .92rem; }
.btn--sm { padding: .8em 1.4em; font-size: .78rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-head); font-weight: 600; font-size: .88rem; letter-spacing: .03em;
  color: var(--c-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size var(--t) var(--ease-out), color var(--t-fast);
}
.link-arrow:hover { background-size: 100% 1.5px; color: var(--c-red); }
.link-arrow .ico { width: 1em; height: 1em; transition: transform var(--t) var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }
.on-dark .link-arrow, .link-arrow.light { color: #fff; }
.on-dark .link-arrow:hover { color: var(--c-blue); }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Header ---------- */
.topbar {
  position: relative; z-index: 60;
  font-size: var(--fs-xs); font-family: var(--f-head); font-weight: 500; letter-spacing: .04em;
  background: var(--c-night); color: rgba(255,255,255,.78);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar a { color: #fff; transition: color var(--t-fast); }
.topbar a:hover { color: var(--c-blue); }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar__group img { height: 18px; width: auto; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-red); display: inline-block; margin-right: 8px; }
@media (max-width: 760px) { .topbar__hide-sm { display: none !important; } }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background var(--t) var(--ease-out), box-shadow var(--t), height var(--t) var(--ease-out), transform .45s var(--ease-out), top var(--t);
}
.has-topbar .site-header { top: 42px; }
.has-topbar .site-header.is-scrolled { top: 0; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-header.is-scrolled { --header-h: 74px; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--c-line), var(--shadow-sm); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header--solid { background: #fff; box-shadow: 0 1px 0 var(--c-line); }
.site-header--dark.is-scrolled { background: rgba(10,18,28,.92); box-shadow: 0 1px 0 var(--c-line-light); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: height var(--t) var(--ease-out); }
.site-header.is-scrolled .brand img { height: 40px; }
.brand .logo-light { display: none; }
/* Transparent header over dark hero: show inverse logo until scrolled */
.site-header--over-dark:not(.is-scrolled) .brand .logo-dark { display: none; }
.site-header--over-dark:not(.is-scrolled) .brand .logo-light { display: block; }
.site-header--dark .brand .logo-dark { display: none; }
.site-header--dark .brand .logo-light { display: block; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 32px); }
.nav > li { position: relative; }
.nav a.nav__link {
  position: relative; display: inline-block; padding: 10px 0; white-space: nowrap;
  font-family: var(--f-head); font-size: .86rem; font-weight: 600; letter-spacing: .02em;
  color: var(--c-ink); transition: color var(--t-fast);
}
.nav a.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--c-red); transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease-out);
}
.nav a.nav__link:hover::after, .nav a.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-header--over-dark:not(.is-scrolled) .nav a.nav__link,
.site-header--dark .nav a.nav__link { color: #fff; }

.nav .has-sub > a.nav__link { padding-right: 16px; }
.nav .has-sub > a.nav__link::before { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-75%) rotate(45deg); }
.nav .sub {
  position: absolute; top: calc(100% + 14px); left: -24px; min-width: 300px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-fast), transform var(--t) var(--ease-out), visibility var(--t-fast);
}
.nav .sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--c-ink); transition: background var(--t-fast); }
.nav .sub a:hover { background: var(--c-paper); }
.nav .sub strong { display: block; font-family: var(--f-head); font-size: .88rem; }
.nav .sub span { display: block; font-size: .8rem; color: var(--c-muted); line-height: 1.4; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; border: 1.5px solid var(--c-line); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--c-ink); transition: transform var(--t) var(--ease-out), opacity var(--t-fast); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.site-header--over-dark:not(.is-scrolled) .burger, .site-header--dark .burger { border-color: rgba(255,255,255,.35); }
.site-header--over-dark:not(.is-scrolled) .burger span, .site-header--dark .burger span { background: #fff; }
@media (max-width: 1240px) {
  .site-header .nav { display: none; }
  .burger { display: block; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,18,28,.55); opacity: 0; transition: opacity var(--t); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--c-night); color: #fff; padding: 28px var(--gutter) 40px;
  transform: translateX(100%); transition: transform .6s var(--ease-out);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer__top img { height: 40px; width: auto; }
.drawer__close { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); position: relative; }
.drawer__close::before, .drawer__close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 22px; height: 2px; background: #fff; transform: rotate(45deg); }
.drawer__close::after { transform: rotate(-45deg); }
.drawer__nav a { display: block; padding: 14px 0; font-family: var(--f-head); font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--c-line-light); }
.drawer__nav a:hover { color: var(--c-blue); }
.drawer__foot { margin-top: auto; padding-top: 32px; font-size: var(--fs-sm); color: var(--c-muted-light); }
.drawer__foot .btn { margin-bottom: 24px; }

/* ---------- 7. Media & cards ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-mist); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--zoom img { transition: transform 1.2s var(--ease-out); }
.media--zoom:hover img, a:hover .media--zoom img { transform: scale(1.06); }
.ratio-16x9 { aspect-ratio: 16/9; } .ratio-4x3 { aspect-ratio: 4/3; } .ratio-3x4 { aspect-ratio: 3/4; } .ratio-1 { aspect-ratio: 1; } .ratio-21x9 { aspect-ratio: 21/9; }

.card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform var(--t) var(--ease-out), box-shadow var(--t); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.icon-box { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(45,148,214,.1); color: var(--c-blue); }
.icon-box svg { width: 30px; height: 30px; }
.icon-box--red { background: rgba(187,0,4,.08); color: var(--c-red); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-family: var(--f-head); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(45,148,214,.1); color: var(--c-blue); }
.tag--red { background: rgba(187,0,4,.08); color: var(--c-red); }
.tag--light { background: rgba(255,255,255,.12); color: #fff; }

/* Stat */
.stat__num { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2.5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; }
.stat__num sup { font-size: .45em; vertical-align: top; position: relative; top: .2em; color: var(--c-red); }
.stat__label { margin-top: 10px; font-size: var(--fs-sm); color: var(--c-muted); }
.on-dark .stat__label { color: var(--c-muted-light); }

/* Placeholder note for client-pending facts ("TO CONFIRM") */
.tbc { display: inline-block; padding: 2px 8px; border: 1px dashed currentColor; border-radius: 4px; font-size: .72rem; font-family: var(--f-head); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* ---------- 8. Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 60px; animation: marquee 40s linear infinite; padding-right: 60px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--c-night); color: rgba(255,255,255,.72); padding-top: clamp(70px, 8vw, 120px); font-size: var(--fs-sm); position: relative; overflow: hidden; }
.site-footer a { transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer__brand img { height: 48px; width: auto; margin-bottom: 24px; }
.footer__brand p { max-width: 360px; }
.footer__title { font-family: var(--f-head); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.footer__links li + li { margin-top: 12px; }
.footer__addr p + p { margin-top: 14px; }
.footer__addr strong { color: #fff; font-weight: 600; display: block; font-size: .82rem; }
.footer__bottom { border-top: 1px solid var(--c-line-light); padding-block: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: var(--fs-xs); }
.footer__companies { display: flex; flex-wrap: wrap; gap: 10px 26px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 10. Forms ---------- */
.field { display: block; }
.field label { display: block; font-family: var(--f-head); font-size: .78rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: 10px; background: #fff; transition: border-color var(--t-fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--c-blue); }

/* ---------- 11. Reveal (scroll animation hooks, driven by core.js) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal="none"] { opacity: 1; }
.reveal-mask { overflow: hidden; }
.img-reveal { position: relative; overflow: hidden; }
.js .img-reveal { clip-path: inset(0 0 100% 0); }

/* ---------- 12. Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--c-night); display: grid; place-items: center; }
.preloader img { width: 92px; height: auto; }
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--c-blue) 0 50%, var(--c-red) 50% 100%); transform-origin: left; transform: scaleX(0); }

/* ---------- 13. Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--c-night); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: opacity var(--t), transform var(--t) var(--ease-out), background var(--t-fast); }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--c-red); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 14. Utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.relative { position: relative; } .z-1 { z-index: 1; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.overlay-grad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,28,0) 30%, rgba(10,18,28,.85) 100%); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1 !important; }
  .js .img-reveal { clip-path: none !important; }
}

/* ---------- 15. Icons (icons.js) ---------- */
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-box .ico { width: 30px; height: 30px; }

/* ---------- 16. QA snapshot mode (?snapshot) ---------- */
.is-snapshot [data-reveal] { opacity: 1 !important; visibility: visible !important; }
.is-snapshot .img-reveal { clip-path: none !important; }
.is-snapshot .site-header { position: absolute; }

/* ---------- 17. Small phones ---------- */
@media (max-width: 420px) {
  .site-header .container { gap: 12px; }
  .brand img, .site-header.is-scrolled .brand img { height: 36px; }
  .burger { width: 44px; height: 44px; } /* keep the 44px tap target */
  .burger span { left: 12px; right: 12px; }
  .burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
}

/* ---------- 18. Subsidiary top bar adjustments ---------- */
.topbar a, .topbar span { white-space: nowrap; }
.has-topbar .cs--fullscreen { height: calc(100vh - 42px); height: calc(100svh - 42px); }

/* ---------- 19. Type readability ----------
   SplitText wraps each animated line/word in a mask with overflow: clip whose
   height equals the line-height. With tight display line-heights this cut off
   descenders (g, y, p) and tall caps. Padding enlarges the clip box; the
   negative margin keeps the layout unchanged. */
[class*="word-mask"], [class*="char-mask"] {
  padding-top: .12em; padding-bottom: .2em;
  margin-top: -.12em; margin-bottom: -.2em;
}
/* Line masks stack vertically, and adjacent negative margins would collapse
   (adding ~.12em per line). Put all compensation on one side so no two
   negative margins meet: each line pulls the next up by the full padding. */
[class*="line-mask"] { padding-top: .12em; padding-bottom: .2em; margin: 0 0 -.32em; }
[class*="line-mask"]:first-child { margin-top: -.12em; }
[class*="line-mask"]:last-child { margin-bottom: -.2em; }
/* Balanced headline wrapping (no single orphan word), nicer paragraph rag */
h1, h2, h3, .h1, .h2, .h3, .display { text-wrap: balance; }
p, .lead { text-wrap: pretty; }

/* ---------- 20. Mobile menu (drawer) v2 ----------
   Full-screen on phones, 460px panel on tablets. Numbered links, accordion
   sub-menus (auto-built by core.js from the desktop dropdown), CTA + contact. */
.drawer { z-index: 120; }
.drawer__scrim { background: rgba(6, 12, 20, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.drawer__panel {
  width: min(460px, 100%);
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 100% 0%, rgba(45,148,214,.16) 0%, rgba(45,148,214,0) 60%), var(--c-night);
  transition: transform .7s var(--ease-out);
  overflow-x: hidden;
}
.drawer__panel::before { /* brand accent bar */
  content: ""; position: sticky; top: 0; display: block; height: 3px; flex-shrink: 0; z-index: 2;
  background: linear-gradient(90deg, var(--c-blue) 0 50%, var(--c-red) 50% 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .25s;
}
.drawer.is-open .drawer__panel::before { transform: scaleX(1); }
.drawer__panel::after { /* logo-mark watermark */
  content: ""; position: absolute; right: -90px; bottom: -40px; width: 340px; height: 260px; pointer-events: none;
  background: url("../logo/mark.svg") center / contain no-repeat; opacity: .02; /* almost not there (readability rule) */
}
.drawer__top { position: relative; z-index: 1; margin: 0; padding: 18px var(--gutter); min-height: 76px; border-bottom: 1px solid var(--c-line-light); }
.drawer__top img { height: 38px; }
.drawer__close { width: 48px; height: 48px; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease-out); }
.drawer__close::before, .drawer__close::after { left: 14px; right: 14px; top: 22.5px; }
.drawer__close:hover { background: #fff; border-color: #fff; transform: rotate(90deg); }
.drawer__close:hover::before, .drawer__close:hover::after { background: var(--c-ink); }

.drawer__nav { position: relative; z-index: 1; padding: 14px var(--gutter) 8px; counter-reset: dnav; }
.drawer__nav > a, .drawer__item > a {
  counter-increment: dnav;
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 17px 44px 17px 0; min-height: 60px;
  font-family: var(--f-head); font-size: clamp(1.25rem, 1rem + 1.6vw, 1.55rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
  color: #fff; border-bottom: 1px solid var(--c-line-light);
  transition: color var(--t-fast), padding var(--t) var(--ease-out);
}
.drawer__nav > a::before, .drawer__item > a::before {
  content: counter(dnav, decimal-leading-zero);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--c-blue); min-width: 22px;
}
.drawer__nav > a::after { /* arrow cue */
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg); opacity: .35; transition: opacity var(--t-fast), right var(--t) var(--ease-out);
}
.drawer__nav > a:hover, .drawer__nav > a:focus-visible, .drawer__item > a:hover { color: var(--c-blue); padding-left: 6px; }
.drawer__nav > a:hover::after { opacity: 1; right: 2px; }
.drawer__nav a.is-current { color: #fff; }
.drawer__nav a.is-current::before { color: var(--c-red); }
.drawer__nav a.is-current { box-shadow: inset 3px 0 0 var(--c-red); padding-left: 14px; }

/* Accordion item (auto-built) */
.drawer__item { position: relative; border-bottom: 1px solid var(--c-line-light); }
.drawer__item > a { border-bottom: 0; }
.drawer__toggle { position: absolute; right: 0; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t) var(--ease-out), border-color var(--t-fast); }
.drawer__toggle::before, .drawer__toggle::after { content: ""; position: absolute; width: 14px; height: 2px; background: #fff; transition: transform var(--t) var(--ease-out); }
.drawer__toggle::after { transform: rotate(90deg); }
.drawer__item.is-expanded .drawer__toggle { background: var(--c-blue); border-color: var(--c-blue); }
.drawer__item.is-expanded .drawer__toggle::after { transform: rotate(0deg); }
.drawer__subwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.drawer__item.is-expanded .drawer__subwrap { grid-template-rows: 1fr; }
.drawer__sublist { overflow: hidden; }
.drawer__sublist a { display: block; border: 0 !important; min-height: 0; padding: 12px 0 12px 38px; color: rgba(255,255,255,.78); font-family: var(--f-head); font-size: .95rem; font-weight: 600; line-height: 1.3; transition: color var(--t-fast); }
.drawer__sublist a span { display: block; margin-top: 2px; font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: rgba(255,255,255,.5); }
.drawer__sublist a:hover { color: var(--c-blue); }
.drawer__sublist a:last-child { margin-bottom: 14px; }

.drawer__foot { position: relative; z-index: 1; margin-top: auto; padding: 28px var(--gutter) 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-muted-light); }
.drawer__foot .btn { display: flex; justify-content: center; width: 100%; margin-bottom: 22px; padding-block: 1.15em; }
.drawer__foot p + p { margin-top: 10px; }
.drawer__foot a:not(.btn) { color: #fff; }

/* Burger: consistent, tappable */
.burger { flex-shrink: 0; }
.burger span { border-radius: 2px; }
.burger:hover span:nth-child(2) { transform: scaleX(.6); transform-origin: right; }
body.drawer-open { overflow: hidden; }
@media (min-width: 461px) { .drawer__panel { border-left: 1px solid var(--c-line-light); } }

/* Header CTA stays visible on tablets (burger mode); hidden on phones where the drawer carries it */
@media (max-width: 767px) { .site-header .header-actions .btn { display: none; } }

/* ---------- 21. Header logo sizing ----------
   Single-line COPDC wordmark is ~5.9:1, stacked subsidiary logos ~3.2:1,
   so they get different heights to read at a similar optical weight. */
.brand img { height: 38px; }
.site-header.is-scrolled .brand img { height: 34px; }
.brand img[src$="/copdc.svg"], .brand img[src$="/copdc-inverse.svg"] { height: 32px; }
.site-header.is-scrolled .brand img[src$="/copdc.svg"], .site-header.is-scrolled .brand img[src$="/copdc-inverse.svg"] { height: 28px; }
.drawer__top img { height: 34px; }
.drawer__top img[src$="/copdc.svg"], .drawer__top img[src$="/copdc-inverse.svg"] { height: 28px; }
@media (max-width: 420px) {
  .brand img, .site-header.is-scrolled .brand img { height: 34px; }
  .brand img[src$="/copdc.svg"], .brand img[src$="/copdc-inverse.svg"],
  .site-header.is-scrolled .brand img[src$="/copdc.svg"], .site-header.is-scrolled .brand img[src$="/copdc-inverse.svg"] { height: 26px; }
}

/* ---------- 22. Preloader failsafe ----------
   If scripts are slow or blocked, the preloader still fades out on its own
   after 4s (core.js normally removes it much earlier). */
.preloader { animation: copdc-pre-failsafe .6s ease 4s forwards; }
@keyframes copdc-pre-failsafe { to { opacity: 0; visibility: hidden; } }
