/* ==========================================================================
   Yingdong International Trade - Global Stylesheet (Dark Immersive Skeleton)
   Brand: Navy Blue #1B2C7C + Lime Green #B5D432
   Structure: Dark immersive skeleton (header/hero/footer) + light content areas
   ========================================================================== */

:root {
  /* Brand Colors */
  --brand-primary: #1B2C7C;
  --brand-primary-dark: #0F1A4A;
  --brand-primary-deep: #0A1230;
  --brand-primary-light: #2E45A8;
  --brand-accent: #B5D432;
  --brand-accent-dark: #9BB82A;
  --brand-accent-light: #D4E97A;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F7FB;
  --color-bg-muted: #EAEFF6;
  --color-border: #E2E7F0;
  --color-text: #1A1F36;
  --color-text-secondary: #4A5578;
  --color-text-muted: #8892A8;

  /* Dark surfaces */
  --dark-bg: #0A1230;
  --dark-bg-2: #0F1A4A;
  --dark-surface: #152157;
  --dark-border: rgba(255, 255, 255, 0.10);
  --dark-text: rgba(255, 255, 255, 0.72);
  --dark-text-strong: #FFFFFF;

  /* Typography */
  --font-display: 'Oswald', 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(10, 18, 48, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 18, 48, 0.12);
  --shadow-lg: 0 30px 60px rgba(10, 18, 48, 0.20);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease);

  /* ---------- Motion: durations ---------- */
  --dur-instant:  90ms;   --dur-fast:   180ms;  --dur-base:    320ms;
  --dur-slow:    560ms;   --dur-slower: 820ms;  --dur-counter:1100ms;
  --dur-marquee:  42s;

  /* ---------- Motion: easing ---------- */
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.30, 1);
  --ease-out-quart:    cubic-bezier(0.25, 1, 0.50, 1);
  --ease-in-out-steel: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-mechanical:   cubic-bezier(0.83, 0, 0.17, 1);
  --ease-in-quart:     cubic-bezier(0.50, 0, 0.75, 0);
  --ease-linear:       linear;

  /* ---------- Motion: stagger ---------- */
  --stagger-tight: 40ms;  --stagger-base: 80ms;  --stagger-loose: 120ms;
  --stagger-cap: 480ms;

  /* ---------- Motion: distance ---------- */
  --shift-xs:  6px;  --shift-sm: 14px;  --shift-md: 24px;  --shift-lg: 40px;
  --lift-btn: -2px; --lift-card: -6px;

  /* ---------- Motion: parallax ---------- */
  --parallax-back: 0.12;  --parallax-mid: 0.06;  --parallax-max: 64px;

  /* ---------- Motion: pointer physics ---------- */
  --lerp-cursor-dot:  1.00;  --lerp-lattice:    0.10;

  /* ---------- Motion: pointer physics ---------- */
  --transition-fast: var(--dur-fast) var(--ease-out-quart);
  --transition-mech: var(--dur-base) var(--ease-mechanical);
}

/* 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-body);
  font-size: 16px; line-height: 1.65;
  color: var(--color-text); background: var(--color-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Display type: Oswald condensed. Tuned for uppercase impact and tight vertical rhythm. */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.08; color: var(--color-text);
  letter-spacing: 0.005em; text-transform: uppercase;
}
h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); font-weight: 700; line-height: 1.02; }
h2 { font-size: clamp(2.05rem, 3.7vw, 3.1rem); font-weight: 700; line-height: 1.06; }
h3 { font-size: clamp(1.4rem, 2.05vw, 1.72rem); }
h4 { font-size: 1.22rem; }
h5, h6 { font-size: 1.05rem; }
p { color: var(--color-text-secondary); line-height: 1.7; }

/* Sentence-case escape hatch for long prose headings */
.tt-none { text-transform: none; letter-spacing: -0.005em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-tight { padding: 64px 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-primary);
  margin-bottom: 16px; padding: 7px 16px; background: rgba(181, 212, 50, 0.16);
  border-radius: 999px;
}
.section-title { margin-bottom: 18px; }
.section-subtitle { max-width: 720px; font-size: 1.0625rem; color: var(--color-text-secondary); }
.section-dark .section-eyebrow { color: var(--brand-accent); background: rgba(181, 212, 50, 0.16); }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Eyebrow readability on dark sections without the .section-dark class */
.hero .section-eyebrow,
.page-hero .section-eyebrow,
.viewer-section .section-eyebrow { color: var(--brand-accent); }
.section-dark p { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius-md); transition: all var(--transition); white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--brand-accent); color: var(--brand-primary-dark); }
.btn-accent:hover { background: var(--brand-accent-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(181,212,50,0.4); }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: var(--brand-accent); }
.btn-lg { padding: 18px 38px; font-size: 1rem; }

/* ---------- Header (dark immersive) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-height);
  background: rgba(10, 18, 48, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.site-header.scrolled { background: rgba(10, 18, 48, 0.94); border-bottom-color: rgba(255,255,255,0.10); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: 0.01em; }
.nav-logo img { height: 64px; width: auto; max-width: 320px; object-fit: contain; border-radius: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  display: inline-block; padding: 10px 18px; font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); border-radius: var(--radius-md); position: relative; transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a.active::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 22px; height: 2px; border-radius: 2px; background: var(--brand-accent); }
.nav-cta { margin-left: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-height); left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--dark-bg-2); padding: 22px; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1); transform: translateY(-130%); opacity: 0;
    pointer-events: none; transition: all var(--transition); box-shadow: var(--shadow-md);
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px 18px; font-size: 1rem; color: #fff; }
  .nav-menu a.active::after { display: none; }
  .nav-cta { margin: 14px 0 0 0; }
}

/* ---------- Hero (dark immersive) ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-height) + 80px) 0 90px; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 10%, #1B2C7C 0%, #0F1A4A 45%, #0A1230 100%);
}
.hero::before { content: ''; position: absolute; top: -15%; right: -8%; width: 720px; height: 720px; background: radial-gradient(circle, rgba(181,212,50,0.22) 0%, transparent 68%); border-radius: 50%; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(46,69,168,0.45) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { color: #fff; margin-bottom: 22px; font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: 1.05; }
.hero-content h1 .accent { color: var(--brand-accent); position: relative; display: inline; }
.hero-content p { font-size: 1.15rem; margin-bottom: 38px; max-width: 540px; color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 36px; margin-top: 54px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero-trust-item strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.hero-trust-item span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-visual { position: relative; height: 560px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.12); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-overlay { position: absolute; bottom: 22px; left: 22px; right: 22px; background: rgba(10,18,48,0.72); backdrop-filter: blur(12px); padding: 18px 22px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,0.12); }
.hero-visual-overlay .badge { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-visual-overlay .badge svg { width: 22px; height: 22px; color: var(--brand-primary-dark); }
.hero-visual-overlay strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: #fff; letter-spacing: 0.02em; }
.hero-visual-overlay span { font-size: 0.78rem; color: rgba(255,255,255,0.65); }

@media (max-width: 1024px) {
  .hero { min-height: auto; padding: calc(var(--header-height) + 56px) 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { height: 400px; }
  .hero-trust { gap: 20px; flex-wrap: wrap; }
}

/* ---------- Trust bar (dark) ---------- */
.trust-bar { background: var(--brand-primary-dark); color: #fff; padding: 46px 0; }
.trust-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.trust-stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--brand-accent); line-height: 1; letter-spacing: -0.01em; }
.trust-stat .label { margin-top: 10px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.82); }
@media (max-width: 768px) { .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* ---------- Section variants ---------- */
.section-light { background: var(--color-bg-soft); }
.section-dark { background: radial-gradient(120% 120% at 50% 0%, #1B2C7C 0%, #0F1A4A 50%, #0A1230 100%); color: #fff; }
.gradient-divider { height: 4px; background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.feature-card { background: #fff; padding: 38px 32px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); transition: all var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--brand-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(181,212,50,0.18) 0%, rgba(27,44,124,0.08) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--brand-primary); }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { font-size: 0.94rem; color: var(--color-text-secondary); }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); transition: all var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-muted); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); padding: 5px 12px; border-radius: 999px; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--brand-primary); letter-spacing: 0.06em; text-transform: uppercase; }
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 8px; line-height: 1.4; }
.product-body p { font-size: 0.86rem; color: var(--color-text-secondary); margin-bottom: 16px; flex: 1; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--brand-primary); }
.product-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.product-link:hover svg { transform: translateX(4px); }

/* ---------- Category filter ---------- */
.category-filter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 44px 0 0; }
.category-btn { padding: 11px 24px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); background: #fff; border: 1px solid var(--color-border); border-radius: 999px; transition: all var(--transition); }
.category-btn:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.category-btn.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-floating { position: absolute; bottom: -22px; right: -22px; background: var(--brand-accent); padding: 22px 26px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.about-image-floating strong { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; color: var(--brand-primary-dark); line-height: 1; }
.about-image-floating span { font-size: 0.82rem; color: var(--brand-primary-dark); font-weight: 600; }
.about-content h2 { margin-bottom: 22px; }
.about-content > p { margin-bottom: 22px; font-size: 1.05rem; }
.about-checks { list-style: none; margin: 22px 0; }
.about-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 0.94rem; color: var(--color-text); }
.about-checks li svg { width: 20px; height: 20px; color: var(--brand-accent-dark); flex-shrink: 0; margin-top: 2px; }
.about-checks li strong { color: var(--color-text); font-weight: 600; }
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 56px; padding-left: 32px; border-left: 2px solid var(--color-border); }
.timeline-item { position: relative; padding-bottom: 38px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-accent); }
.timeline-year { display: inline-block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--brand-primary); letter-spacing: 0.08em; margin-bottom: 4px; }
.timeline-item h4 { margin-bottom: 6px; font-size: 1.1rem; }
.timeline-item p { font-size: 0.94rem; }

/* ---------- Certification grid ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.cert-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; transition: all var(--transition); }
.cert-card:hover { border-color: var(--brand-accent); transform: translateY(-4px); background: rgba(255,255,255,0.07); }
.cert-badge { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: rgba(181,212,50,0.14); border-radius: 50%; font-family: var(--font-display); font-weight: 700; color: var(--brand-accent); font-size: 0.82rem; letter-spacing: 0.04em; }
.cert-card h4 { font-size: 0.98rem; margin-bottom: 4px; color: #fff; }
.cert-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ---------- Stats split (cases) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: all var(--transition); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-accent); }
.stat-card .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--brand-primary); line-height: 1; }
.stat-card .label { margin-top: 10px; font-size: 0.92rem; color: var(--color-text-secondary); }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.region-card { background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px 24px; transition: all var(--transition); }
.region-card:hover { border-color: var(--brand-primary); background: #fff; box-shadow: var(--shadow-sm); }
.region-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.region-card p { font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: all var(--transition); }
.contact-info-item:hover { border-color: var(--brand-accent); box-shadow: var(--shadow-sm); }
.contact-info-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(181,212,50,0.18) 0%, rgba(27,44,124,0.08) 100%); display: flex; align-items: center; justify-content: center; color: var(--brand-primary); }
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; font-weight: 600; }
.contact-info-item p { font-size: 0.92rem; color: var(--color-text-secondary); line-height: 1.5; }
.contact-info-item a { color: var(--brand-primary); font-weight: 500; }
.contact-info-item a:hover { color: var(--brand-accent-dark); text-decoration: underline; }

.contact-form { background: #fff; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { margin-bottom: 24px; font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; font-family: inherit; font-size: 0.94rem; color: var(--color-text); background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: all var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 4px rgba(27,44,124,0.08); }
.form-group textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.form-success { display: none; padding: 16px; background: rgba(181,212,50,0.16); border: 1px solid var(--brand-accent); border-radius: var(--radius-sm); color: var(--brand-primary-dark); font-size: 0.92rem; margin-bottom: 16px; }
.form-success.show { display: block; }
.form-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.form-tab { flex: 1; padding: 12px; text-align: center; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.form-tab.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.form-pane { display: none; }
.form-pane.active { display: block; }

@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-form { padding: 28px 20px; } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 50px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; transition: all var(--transition); }
.faq-item[open] { border-color: var(--brand-accent); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-size: 1.02rem; font-weight: 600; color: var(--color-text); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand-primary); transition: transform var(--transition); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .answer { padding: 0 26px 24px; font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.75; }

/* ---------- 3D viewer ---------- */
.viewer-section { background: var(--dark-bg); padding: 100px 0; position: relative; overflow: hidden; }
.viewer-section::before { content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(181,212,50,0.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.viewer-wrap { position: relative; z-index: 1; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(27,44,124,0.12); background: #0c1330; box-shadow: 0 30px 60px -20px rgba(10,18,48,0.45); }
.viewer-video { width: 100%; height: auto; display: block; background: #000; }
.viewer-overlay { position: absolute; top: 22px; left: 22px; z-index: 2; }
.viewer-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(14,20,48,0.82); backdrop-filter: blur(10px); padding: 9px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,0.14); }
.viewer-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 10px var(--brand-accent); }

/* ---------- Product spec modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,18,48,0.7); backdrop-filter: blur(6px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity var(--transition); }
.modal-backdrop.show { display: flex; opacity: 1; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform var(--transition); }
.modal-backdrop.show .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; border-bottom: 1px solid var(--color-border); }
.modal-header h3 { font-size: 1.3rem; }
.modal-close { width: 38px; height: 38px; border-radius: 10px; background: var(--color-bg-soft); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); transition: all var(--transition); }
.modal-close:hover { background: var(--brand-primary); color: #fff; }
.modal-body { padding: 28px 30px; }
.modal-body img { width: 100%; border-radius: var(--radius-md); margin-bottom: 22px; aspect-ratio: 16/9; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; font-size: 0.9rem; border-bottom: 1px solid var(--color-border); }
.spec-table th { color: var(--color-text-muted); font-weight: 600; width: 40%; background: var(--color-bg-soft); }
.spec-table td { color: var(--color-text); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-main { width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(37,211,102,0.45); transition: all var(--transition); cursor: pointer; border: none; }
.wa-main:hover { transform: scale(1.08); }
.wa-main svg { width: 32px; height: 32px; color: #fff; }
.wa-pop { background: #fff; border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-lg); max-width: 250px; display: none; border: 1px solid var(--color-border); }
.wa-pop.show { display: block; animation: fadeUp 0.3s var(--ease); }
.wa-pop p { font-size: 0.86rem; margin-bottom: 10px; color: var(--color-text-secondary); }
.wa-pop a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: #25D366; }
@media (max-width: 640px) { .wa-float { bottom: 18px; right: 18px; } .wa-main { width: 54px; height: 54px; } }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%); border-radius: var(--radius-lg); padding: 48px; text-align: center; margin-top: 60px; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(181,212,50,0.2) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.newsletter h3 { color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
.newsletter p { color: rgba(255,255,255,0.8); margin-bottom: 26px; position: relative; z-index: 1; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: var(--radius-md); border: none; font-family: inherit; font-size: 0.94rem; }
.newsletter-form input:focus { outline: 3px solid var(--brand-accent); }
@media (max-width: 560px) { .newsletter { padding: 32px 22px; } .newsletter-form { flex-direction: column; } }

/* ---------- Layout regularization: fixed columns, no broken rows ---------- */
.cases-page .feature-grid { grid-template-columns: repeat(2, 1fr); }
.product-card--cta { border-color: var(--brand-accent); background: linear-gradient(160deg, rgba(27,44,124,0.04) 0%, rgba(181,212,50,0.10) 100%); }
.product-image--cta { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%); position: relative; }
.product-image--cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(181,212,50,0.28) 0%, transparent 60%); }
.product-card--cta .product-body h3 { color: var(--brand-primary); }
.product-card--cta .product-link { color: var(--brand-primary); }

@media (max-width: 1024px) {
  .feature-grid, .product-grid, .cert-grid, .region-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-page .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid, .product-grid, .cert-grid, .region-grid, .stat-grid { grid-template-columns: 1fr; }
  .cases-page .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta-section { background: radial-gradient(120% 120% at 50% 0%, #1B2C7C 0%, #0F1A4A 50%, #0A1230 100%); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(181,212,50,0.18) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 18px; }
.cta-inner p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 34px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--brand-accent) 50%, transparent 100%); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num { width: 64px; height: 64px; margin: 0 auto 18px; background: #fff; border: 2px solid var(--brand-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: var(--brand-primary); }
.process-step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.process-step p { font-size: 0.86rem; color: var(--color-text-secondary); }
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, 1fr); } .process-grid::before { display: none; } }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--dark-bg); color: rgba(255,255,255,0.7); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { height: 88px; width: auto; max-width: 360px; object-fit: contain; border-radius: 0; }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.55); max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: #fff; transition: all var(--transition); }
.footer-social a:hover { background: var(--brand-accent); color: var(--brand-primary-dark); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: var(--brand-accent); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Page hero (dark) ---------- */
.page-hero { padding: calc(var(--header-height) + 96px) 0 80px; background: radial-gradient(120% 120% at 80% 0%, #1B2C7C 0%, #0F1A4A 50%, #0A1230 100%); position: relative; overflow: hidden; text-align: center; }
.page-hero::before { content: ''; position: absolute; top: -30%; right: -20%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(181,212,50,0.14) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.page-hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.page-hero h1 { color: #fff; margin-bottom: 18px; }
.page-hero p { font-size: 1.1rem; max-width: 620px; margin: 0 auto; color: rgba(255,255,255,0.8); }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 22px; }
.breadcrumb a { color: var(--brand-accent); font-weight: 500; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Tier 1 Motion — E01 Gate · E02 Reveal v2 · E03 Choreography · E10 Load Seq
   ========================================================================== */

/* E01 — Reveals are VISIBLE by default. JS adds .is-offscreen only to
   reveals that are below the fold when motion is enabled. Observer then
   removes .is-offscreen as they scroll in. If JS never runs → all visible. */
.reveal {
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
.reveal.is-offscreen {
  opacity: 0; transform: translateY(var(--shift-md));
}
.reveal.is-offscreen.in-view { opacity: 1; transform: translateY(0); }

/* E02 — Group-driven staggered reveals. --i and --step set by JS per child.  */
[data-reveal-group] .reveal {
  transition-delay: calc(var(--i, 0) * var(--step, 80ms));
}
.reveal--left  { transform: translate3d(calc(var(--shift-md) * -1), 0, 0); }
.reveal--right { transform: translate3d(var(--shift-md), 0, 0); }

/* E03 — Section header lead-in                                          */
[data-reveal-group].section-header { --step: var(--stagger-loose); }

/* ---- E10 Page-Load Sequence: "Power-Up" — LCP image is NEVER animated. ---- */
/* Defect B removed: hero-visual animation DELETED. LCP now paints instantly. */
@keyframes headerSlide { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes riseFade { from { opacity: 0; transform: translateY(var(--shift-sm)); } to { opacity: 1; transform: translateY(0); } }
@keyframes ruleDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.js-motion.motion-ok .site-header { animation: headerSlide 520ms var(--ease-out-expo) both; }
.js-motion.motion-ok .hero .section-eyebrow { animation: riseFade var(--dur-slower) var(--ease-out-expo) 0.08s both; }
.js-motion.motion-ok .hero-content h1        { animation: riseFade var(--dur-slower) var(--ease-out-expo) 0.16s both; }
.js-motion.motion-ok .hero-actions           { animation: riseFade var(--dur-slower) var(--ease-out-expo) 0.6s both; }
.js-motion.motion-ok .hero-visual::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand-accent); transform-origin: left;
  animation: ruleDraw 480ms var(--ease-mechanical) 0.6s both; z-index: 2;
}
.js-motion.motion-ok .hero-visual-overlay { animation: riseFade var(--dur-slower) var(--ease-out-expo) 0.7s both; }
.js-motion.motion-ok .hero-trust           { animation: riseFade var(--dur-slower) var(--ease-out-expo) 0.76s both; }

/* ---- E05 Machined-type pre-split state —— js-motion gate prevents FOUC ---- */
.js-motion.motion-ok [data-split] .w > *,
.js-motion.motion-ok [data-split] .w:not(:has(.c)) {
  opacity: 0; transform: translateY(var(--shift-sm));
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: calc(var(--i) * var(--step));
}
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .c { display: inline-block; }
[data-split].in-view .w > *,
[data-split].in-view .w:not(:has(.c)) { opacity: 1; transform: translateY(0); }

/* ---- E07 Capability Rail ---- */
.rail {
  position: relative; overflow: hidden; height: 56px;
  background: var(--brand-primary-deep);
  border-block: 1px solid var(--dark-border);
}
.rail-inner  { display: flex; width: max-content; height: 100%; }
.rail-track  {
  display: flex; align-items: center; flex: none;
  animation: rail var(--dur-marquee) var(--ease-linear) infinite;
  will-change: transform;
}
.rail:hover .rail-track,
.rail:not(.is-live) .rail-track { animation-play-state: paused; }
.rail-item {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.90); white-space: nowrap;
  padding: 0 16px;
}
.rail-sep { display: inline-block; width: 6px; height: 6px; background: var(--brand-accent); margin: 0 16px; flex-shrink: 0; }
@keyframes rail { to { transform: translate3d(-100%, 0, 0); } }

/* ---- E08 Card Hover + Pointer Sheen ---- */
.product-card:hover .product-image img { transform: scale(1.04) translateY(-1.5%); transition: transform var(--dur-base) var(--ease-out-quart); }
.product-card .product-image::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--brand-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-mechanical);
}
.product-card:hover .product-image::after { transform: scaleX(1); }

.ptr-fine .feature-card::after, .ptr-fine .serve-card::after, .ptr-fine .product-card::after,
.ptr-fine .commit-card::after, .ptr-fine .cert-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-quart); z-index: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(181,212,50,0.10), transparent 62%);
}
.section-dark .commit-card::after, .cert-card::after {
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%),
              rgba(181,212,50,0.14), transparent 62%);
}
.ptr-fine .feature-card:hover::after, .ptr-fine .serve-card:hover::after,
.ptr-fine .product-card:hover::after, .ptr-fine .commit-card:hover::after,
.ptr-fine .cert-card:hover::after { opacity: 1; }

/* Touch press state — site currently lacks any tactile feedback on tap    */
@media (hover: none) and (pointer: coarse) {
  .product-card:active, .feature-card:active, .serve-card:active,
  .commit-card:active, .cert-card:active { transform: scale(0.985); }
  .product-card:active .product-image::after { transform: scaleX(1); }
}

/* ---- E09 Counter — tabular-nums prevents intra-animation width jitter ---- */
.hero-trust-item strong, .trust-stat .num { font-variant-numeric: tabular-nums; }
.counter-tick {
  display: block; width: 0; height: 2px; background: var(--brand-accent);
  transition: width 160ms var(--ease-mechanical); margin-top: 4px;
}
.counter-tick.done { width: 100%; }

/* ---- E12 Micro-interactions ---- */
.btn {
  transition: all var(--transition-fast), transform var(--transition-fast);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--brand-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-mechanical);
}
.btn:hover::after { transform: scaleX(1); }

.nav-menu a::before {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 22px; height: 2px; border-radius: 2px; background: var(--brand-accent);
  transition: transform 220ms var(--ease-mechanical);
}
.nav-menu a:hover::before { transform: translateX(-50%) scaleX(1); }
.nav-menu a.active::before { transform: translateX(-50%) scaleX(1); }

.faq-item .answer-wrap {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-in-out-steel);
}
.faq-item .answer-wrap > div { overflow: hidden; }
.faq-item[open] .answer-wrap { grid-template-rows: 1fr; }

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(181,212,50,0.18);
  transition: border-color var(--dur-fast) var(--ease-in-out-steel),
              box-shadow var(--dur-fast) var(--ease-in-out-steel);
}

/* ---- E11-A Static SVG lattice ---- */
.hero-lattice {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 20% 50%, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 20% 50%, black 40%, transparent 75%);
}

/* ---- E04 Dumbbell Cursor — 8px lime dot + dumbbell icon, subtle lerp ---- */
.cursor-active, .cursor-active * { cursor: none !important; }
.cursor-active input, .cursor-active textarea, .cursor-active select { cursor: auto !important; }
.cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent);
  opacity: 0.9; transform: translate(-50%, -50%);
  transition: width 180ms var(--ease-mechanical),
              height 180ms var(--ease-mechanical);
}
.cursor-dot.on-interactive { width: 10px; height: 10px; opacity: 1; }
.cursor-dot.on-input { opacity: 0; }

.cursor-dumbbell {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  width: 36px; height: 18px; color: var(--brand-accent);
  filter: drop-shadow(0 0 6px rgba(181,212,50,0.35));
  transform: translate(-50%, -50%);
  transition: width 200ms var(--ease-mechanical),
              height 200ms var(--ease-mechanical),
              filter 200ms var(--ease-mechanical);
}
/* On light sections: navy dumbbell, subtler */
.section-light .cursor-dumbbell,
.section:not(.section-dark):not(.hero):not(.page-hero):not(.viewer-section) .cursor-dumbbell {
  color: var(--brand-primary);
  filter: drop-shadow(0 0 4px rgba(27,44,124,0.2));
}
.cursor-dumbbell.on-interactive {
  width: 42px; height: 21px;
  filter: drop-shadow(0 0 12px rgba(181,212,50,0.5));
}
.cursor-dumbbell.on-input { opacity: 0; }

/* ---- E04b Sectional Spotlight — mix-blend-mode only on dark sections ---- */
.cursor-spotlight {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9997;
  width: 140px; height: 140px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  mix-blend-mode: overlay; transform: translate(-50%, -50%);
  transition: opacity 400ms var(--ease-out-quart);
}
.cursor-spotlight.show { opacity: 1; }

/* Dark sections where spotlight is active */
.section-dark .cursor-spotlight,
.hero .cursor-spotlight,
.page-hero .cursor-spotlight,
.viewer-section .cursor-spotlight { opacity: 1; }

/* On form fields, hide everything */
.cursor-spotlight.on-input { opacity: 0 !important; }

/* ---- E13 Scroll Progress Rail (Tier 2 but 0 KB on Chromium/Safari) ---- */
.scroll-rail {
  position: fixed; bottom: 0; left: 0; height: 2px; background: var(--brand-accent);
  transform-origin: left; transform: scaleX(0); z-index: 99;
  animation: rail-progress linear;
  animation-timeline: scroll(root block);
}
@keyframes rail-progress { to { transform: scaleX(1); } }

/* ---------- Utility ---------- */
::selection { background: var(--brand-accent); color: var(--brand-primary-dark); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-soft); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary-dark); }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--brand-primary); color: #fff; padding: 8px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; }

/* ==========================================================================
   P0 Modules - Trade Terms Bar / Who We Serve
   ========================================================================== */

/* ---------- Trade Terms At A Glance ---------- */
.terms-bar { background: var(--brand-primary-deep); border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border); padding: 32px 0; }
.terms-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.terms-head h2 { font-size: 1.02rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin: 0; }
.terms-head a { font-size: 0.84rem; font-weight: 600; color: var(--brand-accent); display: inline-flex; align-items: center; gap: 6px; }
.terms-head a:hover { color: var(--brand-accent-light); }
.terms-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--dark-border); border: 1px solid var(--dark-border); border-radius: var(--radius-md); overflow: hidden; }
.terms-item { background: var(--brand-primary-deep); padding: 20px 22px; transition: background var(--transition); }
.terms-item:hover { background: var(--dark-bg-2); }
.terms-item .k { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 9px; }
.terms-item .k svg { width: 14px; height: 14px; flex-shrink: 0; }
.terms-item .v { font-size: 0.95rem; font-weight: 600; color: #fff; line-height: 1.4; }
.terms-item .sub { display: block; margin-top: 5px; font-size: 0.79rem; font-weight: 400; color: rgba(255,255,255,0.55); line-height: 1.45; }
@media (max-width: 1024px) { .terms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .terms-grid { grid-template-columns: 1fr; } }

/* ---------- Who We Serve ---------- */
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.serve-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px 28px 28px; transition: all var(--transition); overflow: hidden; }
.serve-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.serve-card:hover { transform: translateY(-6px); border-color: var(--brand-primary-light); box-shadow: var(--shadow-md); }
.serve-card:hover::before { transform: scaleX(1); }
.serve-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 14px; }
.serve-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(27, 44, 124, 0.07); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.serve-icon svg { width: 23px; height: 23px; }
.serve-card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.serve-card > p { font-size: 0.89rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 18px; }
.serve-points { list-style: none; margin-bottom: 22px; }
.serve-points li { position: relative; padding-left: 18px; font-size: 0.84rem; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 8px; }
.serve-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); }
.serve-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 700; color: var(--brand-primary); }
.serve-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.serve-card:hover .serve-link svg { transform: translateX(4px); }
@media (max-width: 1024px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .serve-grid { grid-template-columns: 1fr; } }

/* ---------- Our Commitments ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.commit-card { display: flex; gap: 18px; align-items: flex-start; background: rgba(255,255,255,0.04); border: 1px solid var(--dark-border); border-radius: var(--radius-md); padding: 26px 24px; transition: all var(--transition); }
.commit-card:hover { background: rgba(181, 212, 50, 0.07); border-color: rgba(181, 212, 50, 0.35); transform: translateY(-4px); }
.commit-check { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(181, 212, 50, 0.14); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; }
.commit-check svg { width: 19px; height: 19px; }
.commit-card h4 { font-size: 0.99rem; font-weight: 700; color: #fff; margin-bottom: 7px; letter-spacing: -0.01em; }
.commit-card p { font-size: 0.86rem; color: rgba(255,255,255,0.62); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .commit-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Real Asset Galleries, Video & Certificate Modules
   ========================================================================== */

/* Generic photo gallery grid */
.gallery-grid { display: grid; gap: 16px; margin-top: 48px; }
.gallery-grid--5 { grid-template-columns: repeat(5, 1fr); }
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--color-bg-soft); position: relative; aspect-ratio: 4 / 3; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); display: block; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 0.82rem; font-weight: 600; color: #fff; background: linear-gradient(180deg, transparent 0%, rgba(10,18,48,0.82) 100%); letter-spacing: 0.01em; font-family: var(--font-display); text-transform: uppercase; }
@media (max-width: 1024px) {
  .gallery-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid--5, .gallery-grid--4, .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Featured production-line video */
.video-feature { margin-top: 48px; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.video-feature video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.video-feature .video-caption { position: absolute; left: 24px; bottom: 24px; right: 24px; color: #fff; padding: 14px 18px; background: rgba(10,18,48,0.78); backdrop-filter: blur(6px); border-radius: var(--radius-md); border-left: 3px solid var(--brand-accent); }
.video-feature .video-caption strong { display: block; font-size: 1rem; margin-bottom: 4px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.video-feature .video-caption span { font-size: 0.85rem; color: rgba(255,255,255,0.82); }

/* Real certificate documents gallery */
.cert-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.cert-doc { background: #fff; border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--color-border); transition: transform var(--transition), box-shadow var(--transition); }
.cert-doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-doc img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f5f8; border-radius: var(--radius-sm); padding: 12px; }
.cert-doc .cert-doc-icon { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(27,44,124,0.06) 0%, rgba(181,212,50,0.10) 100%); border-radius: var(--radius-sm); color: var(--brand-primary); }
.cert-doc .cert-doc-icon svg { width: 72px; height: 72px; }
.cert-doc .cert-doc-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cert-doc .cert-doc-label strong { font-size: 0.98rem; color: var(--brand-primary); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.cert-doc .cert-doc-label a { font-size: 0.82rem; font-weight: 700; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); background: rgba(27,44,124,0.08); transition: background var(--transition); }
.cert-doc .cert-doc-label a:hover { background: var(--brand-primary); color: #fff; }
.cert-doc p { font-size: 0.86rem; color: var(--color-text-secondary); line-height: 1.55; margin: 0; }
@media (max-width: 700px) { .cert-gallery { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reduced Motion — blanket zeroing via tokens + explicit fallbacks
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root {
    --dur-instant: 1ms; --dur-fast: 1ms; --dur-base: 1ms;
    --dur-slow: 1ms;    --dur-slower: 1ms; --dur-counter: 1ms;
    --transition: 1ms linear;
    --stagger-tight: 0ms; --stagger-base: 0ms; --stagger-loose: 0ms;
    --shift-xs: 0px; --shift-sm: 0px; --shift-md: 0px; --shift-lg: 0px;
    --lift-btn: 0px; --lift-card: 0px;
    --parallax-back: 0;  --parallax-mid: 0;
  }
  .reveal, .reveal.in-view                { opacity: 1 !important; transform: none !important; }
  .js-motion.motion-ok .site-header        { animation: none; }
  .hero-content > *,
  .js-motion.motion-ok .hero .section-eyebrow,
  .js-motion.motion-ok .hero-content h1,
  .js-motion.motion-ok .hero-actions,
  .js-motion.motion-ok .hero-visual-overlay,
  .js-motion.motion-ok .hero-trust          { animation: none; }
  .js-motion.motion-ok .hero-visual::after  { animation: none; }
  .rail-track                              { animation: none; transform: none; }
  .rail                                    { overflow: visible; }
  .rail-inner                              { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .rail-track[aria-hidden="true"]          { display: none; }
  .product-card:hover .product-image img,
  .product-card:active                     { transform: none; }
  .feature-card::after, .serve-card::after,
  .product-card::after, .commit-card::after,
  .cert-card::after                         { display: none; }
  .faq-item .answer-wrap                   { grid-template-rows: 1fr !important; }
  .scroll-rail                             { animation: none; }
  .cursor-active, .cursor-active *          { cursor: auto !important; }
  .cursor-dot, .cursor-dumbbell, .cursor-spotlight { display: none; }
}
