/* ================================================================
   KTC GROUP LTD — SHARED STYLESHEET
   Used across all pages. Edit here to update the entire site.
   ================================================================ */

/* ============ DESIGN TOKENS ============ */
:root {
  --ink: #0A0A0A;
  --charcoal: #2A2A2A;
  --graphite: #5C5C5C;
  --fog: #9A9A9A;
  --cloud: #E8E8E8;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --electric: #0066FF;
  --electric-dk: #0047B3;
  --electric-lt: #E5EFFF;
  --signal: #00B86B;
  --amber: #F5A623;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* spring for delightful micro-interactions */

  /* "Moving Signal" bold system */
  --grid-ink: rgba(10, 10, 10, 0.045);
  --grid-light: rgba(255, 255, 255, 0.06);
  --electric-glow: rgba(0, 102, 255, 0.18);

  /* ui-ux-pro-max: Spacing scale (8-point grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ui-ux-pro-max: Shadow scale */
  --shadow-sm: 0 1px 3px rgba(10,10,10,0.06), 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 4px 16px -4px rgba(10,10,10,0.10), 0 2px 6px -2px rgba(10,10,10,0.06);
  --shadow-lg: 0 12px 40px -8px rgba(10,10,10,0.14), 0 4px 12px -4px rgba(10,10,10,0.08);
  --shadow-xl: 0 24px 64px -12px rgba(10,10,10,0.18), 0 8px 24px -8px rgba(10,10,10,0.10);
  --shadow-electric: 0 8px 32px -8px rgba(0,102,255,0.32);

  /* ui-ux-pro-max: Min touch target */
  --touch-target: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ SKIP TO CONTENT — accessibility best practice ============ */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  background: var(--electric);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--electric), #4DA3FF);
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============ "MOVING SIGNAL" GLOBAL TEXTURE & FOCUS ============ */
::selection { background: var(--electric); color: #fff; text-shadow: none; }
::-moz-selection { background: var(--electric); color: #fff; text-shadow: none; }

/* Filmic grain — sits above everything, never intercepts clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Keyboard focus ring (mouse users unaffected) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Coordinate-grid texture — the recurring "network" motif */
.bg-grid {
  background-image:
    linear-gradient(var(--grid-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 64px 64px;
}
.section-dark.bg-grid,
.bg-grid--light {
  background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(44px, 8.6vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variation-settings: 'opsz' 144, 'wght' 460, 'SOFT' 0, 'WONK' 1;
}
.display em, h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  color: var(--electric);
  font-variation-settings: 'opsz' 120, 'wght' 420, 'SOFT' 45, 'WONK' 0;
}
h1 { font-size: clamp(38px, 6.2vw, 82px); font-variation-settings: 'opsz' 130, 'wght' 470, 'SOFT' 0, 'WONK' 1; }
h2 { font-size: clamp(30px, 4.8vw, 60px); font-variation-settings: 'opsz' 110, 'wght' 480, 'SOFT' 0, 'WONK' 1; }
h3 { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.15; }
h4 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; }
p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--graphite);
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
.lead {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--charcoal);
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  p, .lead {
    text-align: left;
  }
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(64px, 10vw, 140px) 0; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--cloud);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}
.nav-logo img { height: 38px; width: auto; flex-shrink: 0; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}
.nav-logo-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-logo-text .tag {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a.active { color: var(--electric); }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--electric);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--electric); transform: translateY(-1px); box-shadow: var(--shadow-electric); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta::after { display: none !important; }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--cloud);
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  align-items: center;
  gap: 6px;
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cloud);
}
.mobile-menu-close {
  background: var(--paper);
  border: none;
  border-radius: 100px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}
.mobile-menu ul {
  list-style: none;
  margin-bottom: auto;
}
.mobile-menu li {
  border-bottom: 1px solid var(--cloud);
}
.mobile-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-menu li a.active { color: var(--electric); }
.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  min-height: 54px;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.15s var(--ease);
}
.mobile-menu-cta:hover { background: var(--electric); }
.mobile-menu-cta:active { transform: scale(0.98); }
.mobile-menu-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cloud);
}
.mobile-menu-footer a {
  font-size: 14px;
  color: var(--graphite);
  display: block;
  margin-bottom: 8px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  min-height: var(--touch-target);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: center;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97) translateY(0) !important; }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--electric);
  transform: translateY(-2px);
  box-shadow: var(--shadow-electric);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  box-shadow: var(--shadow-electric);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--cloud);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--electric);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-electric);
}
.btn-light:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-outline-light:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}

.btn .arrow { transition: transform 0.3s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(5px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link:hover { color: var(--electric); border-color: var(--electric); }
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ============ PAGE HEADER (used on inner pages) ============ */
.page-hero {
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 64px 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(0,102,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  position: relative;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--electric); }
.breadcrumb .sep { color: var(--fog); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lead { max-width: 50ch; }
.page-hero-meta {
  display: grid;
  gap: 16px;
}
.page-hero-meta-item {
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 12px;
}
.page-hero-meta-item .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 6px;
}
.page-hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

/* ============ STATS ============ */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--cloud);
  border-bottom: 1px solid var(--cloud);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 0 32px;
  border-right: 1px solid var(--cloud);
}
.stat:last-child { border-right: none; }
.stat:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 500;
  font-variation-settings: 'opsz' 120, 'wght' 500, 'SOFT' 0, 'WONK' 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-value .plus { color: var(--electric); font-size: 0.6em; }
.stat-label {
  font-size: 13px;
  color: var(--graphite);
  line-height: 1.4;
}

/* ============ FOOTER CONTACT CARDS ============ */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-contact-item:last-of-type { margin-bottom: 24px; }
.footer-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-contact-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.footer-contact-value {
  font-size: 13px;
  color: var(--graphite);
  line-height: 1.5;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.footer-contact-value:hover { color: var(--electric); }
.footer-social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s var(--ease);
}
.footer-social-icon:hover { background: var(--electric); }

/* ============ FOOTER ============ */
.footer {
  background: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand img { height: 50px; margin-bottom: 20px; }
.footer-brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 14px; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--graphite);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--electric); }
.footer-bottom {
  border-top: 1px solid var(--cloud);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--graphite);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal { display: flex; gap: 24px; }

/* ============ FINAL CTA BANNER ============ */
.cta-final {
  background: var(--ink);
  background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -55%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,102,255,0.28) 0%, rgba(0,102,255,0.06) 35%, transparent 62%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 2;
}
.cta-final h2 {
  color: var(--white);
  margin: 24px 0;
}
.cta-final .lead {
  color: rgba(255,255,255,0.8);
  margin: 0 auto 40px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FORM ELEMENTS ============ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  min-height: var(--touch-target);
  border: 1.5px solid var(--cloud);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fog); }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--graphite);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(0,102,255,0.12);
  background: var(--white);
}
.form-field input:valid:not(:placeholder-shown),
.form-field textarea:valid:not(:placeholder-shown) {
  border-color: var(--signal);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Respect reduced-motion — and guarantee content is visible without JS/animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 64px; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-region { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat { padding: 0 16px; border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--cloud); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } /* brand spans full on tablet */
  .page-hero-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  .nav-cta span { display: none; }
  .nav-logo-text .tag { display: none; }
  .nav-logo img { height: 30px; }
  .nav-logo-text .name { font-size: 15px; }
  .nav-inner { gap: 10px; }
  .btn { padding: 14px 22px; font-size: 14px; }
  section { padding: 56px 0; }
  /* Stats: 2×2 grid on mobile — halves the vertical space vs single column */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat { padding: 0 12px; border-right: none; padding-bottom: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--cloud); padding-left: 0; }
  .stat-value { font-size: clamp(28px, 8vw, 48px); }
  .stat-label { font-size: 12px; }
}
@media (max-width: 430px) {
  /* Very small screens: drop the icon CTA (Contact lives in the menu drawer) so the
     Menu button is never crowded off-screen */
  .nav-cta { display: none; }
}


/* ============ REGION DROPDOWN ============ */
.nav-region-wrap {
  position: relative;
}
.nav-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cloud);
  padding: 7px 10px 7px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  background: transparent;
  font-family: inherit;
}
.nav-region:hover,
.nav-region[aria-expanded="true"] {
  border-color: var(--ink);
  color: var(--ink);
}
.nav-region-flag {
  font-size: 14px;
  line-height: 1;
}
.nav-region-code {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-region-chevron {
  transition: transform 0.25s var(--ease);
}
.nav-region[aria-expanded="true"] .nav-region-chevron {
  transform: rotate(180deg);
}

.nav-region-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px -8px rgba(10,10,10,0.12), 0 4px 12px -4px rgba(10,10,10,0.06);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 110;
}
.nav-region-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-region-menu-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  padding: 10px 12px 8px;
}
.nav-region-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--charcoal);
  text-align: left;
  transition: background 0.15s var(--ease);
}
.nav-region-option:hover {
  background: var(--paper);
}
.nav-region-option-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-region-option-name {
  flex: 1;
  font-weight: 500;
  color: var(--ink);
}
.nav-region-option-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--graphite);
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 100px;
}
.nav-region-option-check {
  color: var(--electric);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s var(--ease);
}
.nav-region-option.selected .nav-region-option-check {
  opacity: 1;
}
.nav-region-option.selected .nav-region-option-name {
  color: var(--electric);
}
.nav-region-option.selected .nav-region-option-code {
  background: var(--electric-lt);
  color: var(--electric);
}

/* Mobile: show region selector inside the mobile menu */
@media (max-width: 960px) {
  .nav-region-wrap {
    display: none;
  }
}