/* ============================================================
   VICTORIA FORGINGS — Main Stylesheet
   Heritage British precision engineering since 1904
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;500;600;700;800&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-void:     #07090E;
  --bg-dark:     #0D1520;
  --bg-card:     #111D2C;
  --bg-elevated: #18273A;
  --bg-light:    #F2F5F8;
  --bg-lighter:  #FAFBFC;
  --bg-white:    #FFFFFF;

  /* Text on dark */
  --text-primary:   #E0E8F0;
  --text-secondary: #8A9BB0;
  --text-muted:     #4E6070;

  /* Text on light */
  --text-dark:  #0D1520;
  --text-mid:   #2E4055;
  --text-soft:  #5A7080;

  /* Brand — Brass/Gold (Primary accent) */
  --brass:        #C49A22;
  --brass-light:  #DDB840;
  --brass-dark:   #9A780F;
  --brass-ghost:  rgba(196, 154, 34, 0.10);
  --brass-border: rgba(196, 154, 34, 0.30);
  --brass-glow:   rgba(196, 154, 34, 0.20);

  /* Brand — Forge Fire (CTA / Action) */
  --fire:       #C94A15;
  --fire-light: #E05C22;
  --fire-dark:  #A33A0C;

  /* Legacy Teal (brand recognition) */
  --teal:       #17A688;
  --teal-light: #1ABC9C;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-mid:    rgba(255,255,255,0.12);
  --border-light:  rgba(0,0,0,0.08);
  --border-dark:   rgba(0,0,0,0.16);

  /* Fonts */
  --font-hero:    'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Typography scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  4rem;
  --text-hero: 9rem;

  /* Radius */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  180ms;
  --dur-base:  320ms;
  --dur-slow:  550ms;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-brass:0 0 40px rgba(196,154,34,0.18);

  /* Layout */
  --container: 1240px;
  --nav-h:     72px;

  /* Grain texture (SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::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: var(--text-base);
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section-dark  { background: var(--bg-dark);    color: var(--text-primary); }
.section-void  { background: var(--bg-void);    color: var(--text-primary); }
.section-light { background: var(--bg-light);   color: var(--text-dark); }
.section-white { background: var(--bg-white);   color: var(--text-dark); }

.section-pad { padding: var(--sp-24) 0; }
.section-pad-sm { padding: var(--sp-16) 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85em 2em;
  border-radius: var(--r-sm);
  transition: background var(--dur-base) var(--ease-spring),
              color var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-fire {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 4px 20px rgba(201,74,21,0.35);
}
.btn-fire:hover {
  background: var(--fire-light);
  box-shadow: 0 6px 28px rgba(201,74,21,0.5);
}
.btn-fire:focus-visible {
  outline: 2px solid var(--fire-light);
  outline-offset: 3px;
}

.btn-brass {
  background: var(--brass);
  color: #000;
  box-shadow: 0 4px 20px rgba(196,154,34,0.35);
}
.btn-brass:hover {
  background: var(--brass-light);
  box-shadow: 0 6px 28px rgba(196,154,34,0.5);
}
.btn-brass:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  background: var(--brass-ghost);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.btn-ghost-brass {
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--brass-border);
}
.btn-ghost-brass:hover {
  background: var(--brass-ghost);
  border-color: var(--brass);
  color: var(--brass-light);
}
.btn-ghost-brass:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
}
.btn-ghost-dark:hover {
  border-color: var(--fire);
  color: var(--fire);
  background: rgba(201,74,21,0.06);
  transform: translateY(-2px);
}

/* Arrow icon in button */
.btn-arrow {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-slow) var(--ease-smooth),
              box-shadow var(--dur-slow) var(--ease-smooth),
              border-color var(--dur-slow) var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(224,232,240,0.75);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: var(--sp-3); right: var(--sp-3);
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-spring);
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: var(--sp-4);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-spring),
              opacity var(--dur-base) var(--ease-smooth);
}

.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7,9,14,0.98);
  backdrop-filter: blur(16px);
  padding: var(--sp-8) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-spring),
              opacity var(--dur-base) var(--ease-smooth);
}

.nav-mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--dur-fast) var(--ease-smooth),
              padding-left var(--dur-base) var(--ease-spring);
}

.nav-mobile-menu a:hover { color: var(--brass); padding-left: var(--sp-3); }
.nav-mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-void);
}

/* ── Rotating background slides ─────────────────────────── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 20s ease-in-out infinite,
             heroZoom 20s ease-in-out infinite;
  will-change: opacity, transform;
}

/* Slide 1 starts immediately, others staggered */
.hero-slide:nth-child(1) { animation-delay: 0s,    0s;   }
.hero-slide:nth-child(2) { animation-delay: 5s,    5s;   }
.hero-slide:nth-child(3) { animation-delay: 10s,   10s;  }
.hero-slide:nth-child(4) { animation-delay: 15s,   15s;  }

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Subtle Ken Burns zoom-out on each slide */
@keyframes heroZoom {
  0%   { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}

/* ── Dark scrim + forge glow + grain (above slides, below text) ─── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Forge fire glow from below */
    radial-gradient(ellipse 110% 55% at 50% 115%,
      rgba(180, 65, 15, 0.45) 0%,
      rgba(120, 40, 8, 0.22) 35%,
      transparent 68%),
    /* Side brass glint */
    radial-gradient(ellipse 50% 40% at 15% 85%,
      rgba(196, 154, 34, 0.10) 0%,
      transparent 60%),
    /* Engineering grid lines */
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    /* Dark reading scrim */
    rgba(7, 9, 14, 0.52);
  background-size:
    100% 100%,
    100% 100%,
    72px 72px,
    72px 72px,
    100% 100%;
}

/* Grain texture on top of overlay */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + var(--sp-16)) var(--sp-6) var(--sp-24);
}

.hero-scroll-hint {
  z-index: 2;
}

.hero-inner {
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  animation: fadeUp 0.8s var(--ease-spring) 0.2s both;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1.5px;
  background: var(--brass);
}

.hero-headline {
  font-family: var(--font-hero);
  font-size: clamp(5rem, 12vw, var(--text-hero));
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  animation: fadeUp 0.9s var(--ease-spring) 0.35s both;
}

.hero-headline em {
  font-style: normal;
  color: var(--brass);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  animation: fadeUp 0.8s var(--ease-spring) 0.5s both;
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: var(--sp-10);
  animation: fadeUp 0.8s var(--ease-spring) 0.65s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-spring) 0.8s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: fadeUp 0.8s var(--ease-spring) 1.2s both;
}

.hero-scroll-hint span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--brass) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--sp-16)) 0 var(--sp-16);
  background-color: var(--bg-void);
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 120%, rgba(180,65,15,0.35) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.5;
}

.page-hero-content {
  position: relative; z-index: 2;
}

.breadcrumb {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb a { color: var(--text-secondary); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb-sep { color: var(--text-muted); }

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--sp-5);
}

.page-hero h1 span { color: var(--brass); }

.page-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-4) 0;
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  border-right: 1px solid var(--border-subtle);
}

.trust-item:last-child { border-right: none; }

.trust-item svg {
  width: 18px; height: 18px;
  color: var(--brass);
  flex-shrink: 0;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.divider {
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  border-radius: 2px;
  margin: var(--sp-5) 0;
}

.divider-centered {
  margin: var(--sp-5) auto;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat-item {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-spring);
}

.stat-item.in-view::before { transform: scaleX(1); }

.stat-number {
  font-family: var(--font-hero);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brass);
  display: block;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: var(--sp-2);
  display: block;
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-spring);
  cursor: default;
}

.industry-card:hover {
  border-color: var(--brass-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-brass);
  background: var(--bg-elevated);
}

.industry-icon {
  width: 48px; height: 48px;
  background: var(--brass-ghost);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  transition: background var(--dur-base) var(--ease-spring);
}

.industry-card:hover .industry-icon {
  background: rgba(196,154,34,0.20);
}

.industry-icon svg {
  width: 24px; height: 24px;
  color: var(--brass);
}

.industry-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.industry-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.capability-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: var(--sp-8);
  transition: border-color var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}

.capability-card:hover {
  border-color: rgba(201,74,21,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 24px rgba(201,74,21,0.06);
}

.cap-number {
  font-family: var(--font-hero);
  font-size: 3rem;
  color: rgba(201,74,21,0.15);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.capability-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: var(--sp-3);
}

.capability-card p {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.cap-spec {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fire);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), var(--border-mid), transparent);
}

.process-step {
  text-align: center;
  padding: 0 var(--sp-4);
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  font-family: var(--font-hero);
  font-size: 1.6rem;
  color: var(--brass);
  transition: border-color var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}

.process-step:hover .step-num {
  border-color: var(--brass);
  box-shadow: var(--shadow-brass);
}

.process-step h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   TIMELINE (History page)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--sp-16);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--brass), var(--brass-dark), transparent);
}

.timeline-entry {
  position: relative;
  margin-bottom: var(--sp-12);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--dur-slow) var(--ease-spring),
              transform var(--dur-slow) var(--ease-spring);
}

.timeline-entry.in-view {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--sp-16) + 12px);
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 4px var(--brass-ghost), var(--shadow-brass);
}

.timeline-year {
  font-family: var(--font-hero);
  font-size: 2.8rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.timeline-entry h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.timeline-entry p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
  margin-bottom: 0;
}

/* ============================================================
   QUALITY / CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.cert-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: border-color var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring);
}

.cert-card:hover {
  border-color: var(--brass-border);
  transform: translateY(-3px);
}

.cert-badge {
  font-family: var(--font-hero);
  font-size: 2.4rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: var(--sp-3);
  display: block;
}

.cert-card h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.cert-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   QUOTE / PULL QUOTE
   ============================================================ */
.pull-quote {
  position: relative;
  padding: var(--sp-12) var(--sp-16);
  background: var(--bg-elevated);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0;
}

/* Pull-quote on a light/white background — override to dark text */
.pull-quote--light p {
  color: var(--text-dark);
}

/* Stat labels and numbers inherit dark-bg colours by default.
   Override when used inside light/white sections. */
.section-white .stat-label,
.section-light .stat-label {
  color: var(--text-mid);
}

.section-white .stat-number,
.section-light .stat-number {
  color: var(--brass-dark);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  padding: var(--sp-24) 0;
  background: var(--bg-void);
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 72px 72px;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%,
    rgba(180,65,15,0.25) 0%,
    rgba(120,40,8,0.12) 40%,
    transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.cta-band p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.cta-band .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-6);
}

.contact-detail {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--brass-ghost);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; color: var(--brass); }

.contact-detail-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.contact-detail-body span,
.contact-detail-body a {
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
}

.contact-detail-body a:hover { color: var(--brass); }

/* Contact Form */
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 0.75em 1em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-ghost);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

.form-group select option { background: var(--bg-card); }

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
}

.footer-main {
  padding: var(--sp-16) 0 var(--sp-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-12);
}

.footer-brand img {
  height: 36px; width: auto;
  margin-bottom: var(--sp-5);
  opacity: 0.85;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-smooth),
              padding-left var(--dur-base) var(--ease-spring);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: var(--sp-2);
}

.footer-contact-item {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 14px; height: 14px;
  color: var(--brass);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a { color: var(--text-secondary); }
.footer-contact-item a:hover { color: var(--brass); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-6) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-secondary); }

.footer-accred {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.accred-badge {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: var(--sp-1) var(--sp-3);
}

/* ============================================================
   ABOUT SECTION (homepage)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,154,34,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.about-image-label {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  background: var(--brass);
  color: #000;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
}

/* Flag cards inner grid (International section on homepage) */
.flags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* Two-column layout — collapses to 1 col on mobile */
.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Three-column stat/info row */
.three-col-stat {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-6);
}

/* Four-column stat row */
.four-col-stat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

/* Three-column card grid (contact quick-links etc.) */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* Section heading row: title left, action right */
.section-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: flex-end;
  margin-bottom: var(--sp-12);
}

/* CTA strip: content left, buttons right */
.cta-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: center;
}

/* ============================================================
   INTERNATIONAL
   ============================================================ */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-spring);
}

.market-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.market-flag {
  display: block;
  margin-bottom: var(--sp-3);
}

.market-flag img {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.market-flag svg {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.market-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.market-card p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}

.product-card:hover {
  border-color: var(--brass-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-brass);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-card);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-label {
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  line-height: 1.4;
}

/* Interactive product card */
.product-card--interactive {
  cursor: pointer;
}

.product-card--interactive:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.product-codes-hint {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: var(--sp-1);
  transition: color var(--dur-fast) var(--ease-smooth);
}

.product-card--interactive:hover .product-codes-hint {
  color: var(--brass-light);
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.product-modal[hidden] { display: none; }

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), var(--shadow-brass);
  animation: modalIn 0.25s var(--ease-spring);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.product-modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.product-modal-close:hover {
  background: var(--bg-card);
  border-color: var(--brass-border);
}

.product-modal-close svg {
  width: 16px; height: 16px;
  color: var(--text-secondary);
}

.product-modal-img {
  overflow: hidden;
  background: var(--bg-card);
}

.product-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal-body {
  padding: var(--sp-8) var(--sp-8) var(--sp-8);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.product-modal-body h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: var(--sp-1) 0 0;
}

.product-modal-intro {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.product-modal-codes-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  flex: 1;
}

.product-modal-codes-wrap h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-4);
}

.product-codes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-4);
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

.product-codes-list li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.product-codes-list .code {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
}

.product-codes-list .code-ref {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.product-codes-list .code-ref.code-type {
  color: var(--teal-light);
}

/* Wide modal for large part code lists */
.product-modal-panel--wide {
  max-width: 980px;
}

.product-codes-list--three-col {
  grid-template-columns: 1fr 1fr 1fr;
  max-height: 320px;
}

@media (max-width: 860px) {
  .product-codes-list--three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .product-codes-list--three-col { grid-template-columns: 1fr; }
  .product-modal-panel--wide { max-width: 100%; }
}

.product-modal-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

@media (max-width: 680px) {
  .product-modal-panel {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .product-modal-img {
    height: 200px;
  }
  .product-codes-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMATIONS / KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-spring),
              transform var(--dur-slow) var(--ease-spring);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-brass  { color: var(--brass); }
.text-fire   { color: var(--fire); }
.text-teal   { color: var(--teal-light); }
.text-center { text-align: center; }
.text-muted-dark { color: var(--text-soft); }

.mt-auto { margin-top: auto; }
.flex    { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.mb-0 { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   INDUSTRIES — SECTOR IMAGE GRID
   ============================================================ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.sector-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-spring), border-color var(--dur-base) var(--ease-spring);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-brass);
  border-color: var(--brass-border);
}

.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.sector-card:hover img {
  transform: scale(1.06);
}

.sector-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  background: linear-gradient(to top, rgba(7,9,14,0.92) 0%, rgba(7,9,14,0.6) 60%, transparent 100%);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ============================================================
   BLOG — LISTING & POST PAGES
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}

.blog-card:hover {
  border-color: var(--brass-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-brass);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.blog-tag {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  background: var(--brass-ghost);
  border: 1px solid var(--brass-border);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-2);
}

.blog-date {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}

.blog-card h2, .blog-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  flex: 1;
}

.blog-card .btn {
  align-self: flex-start;
  position: relative;
  z-index: 2; /* keep button above stretched link so it gets hover styles */
}

/* Stretched link — makes the entire card clickable */
.blog-card .btn-ghost-brass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Single post */
.post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  margin-bottom: var(--sp-10);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.post-content {
  max-width: 760px;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin: var(--sp-10) 0 var(--sp-4);
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin: var(--sp-8) 0 var(--sp-3);
}

.post-content p {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: var(--text-base);
  margin-bottom: var(--sp-5);
}

.post-content ul {
  margin: 0 0 var(--sp-5) var(--sp-6);
  color: var(--text-mid);
}

.post-content ul li {
  line-height: 1.8;
  margin-bottom: var(--sp-2);
  position: relative;
}

.post-content ul li::marker {
  color: var(--brass-dark);
}

.post-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-10);
  transition: gap var(--dur-base) var(--ease-spring);
}

.post-back:hover { gap: var(--sp-3); color: var(--brass-light); }

.post-back svg { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid       { grid-template-columns: repeat(3, 1fr); }
  .industries-grid   { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid     { grid-template-columns: repeat(2, 1fr); }
  .process-steps     { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .about-image { max-width: 600px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  :root {
    --nav-h: 64px;
    --sp-24: 4rem;
    --sp-32: 5rem;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-headline { font-size: clamp(4rem, 18vw, 7rem); }
  .hero-content  { padding-left: var(--sp-8); padding-right: var(--sp-8); }

  .two-col-split      { grid-template-columns: 1fr; gap: var(--sp-10); }
  .two-col-split .btn { margin-bottom: var(--sp-2); }
  .three-col-stat     { grid-template-columns: 1fr; gap: var(--sp-4); }
  .four-col-stat      { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .three-col-grid     { grid-template-columns: 1fr; gap: var(--sp-4); }
  .section-header-row { grid-template-columns: 1fr; gap: var(--sp-4); margin-bottom: var(--sp-8); }
  .cta-strip          { grid-template-columns: 1fr; gap: var(--sp-6); }
  .sector-grid       { grid-template-columns: repeat(2, 1fr); }
  .industries-grid   { grid-template-columns: 1fr 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .process-steps     { grid-template-columns: 1fr; }
  .certs-grid        { grid-template-columns: 1fr 1fr; }

  .trust-bar-inner   { gap: 0; justify-content: flex-start; overflow-x: auto; }
  .trust-item        { flex-shrink: 0; }

  .footer-grid       { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item { border-top: 1px solid var(--border-subtle); }
  .stat-item:nth-child(-n+2) { border-top: none; }

  .pull-quote { padding: var(--sp-8); }
  .contact-form { padding: var(--sp-6); }

  .page-hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }

  .markets-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .sector-grid     { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: 1fr; }
  .certs-grid      { grid-template-columns: 1fr; }
  .markets-grid    { grid-template-columns: 1fr; }
  .flags-grid      { grid-template-columns: 1fr; }
  .four-col-stat   { grid-template-columns: 1fr; }
  .stats-row       { grid-template-columns: 1fr; }
  .stat-item       { border-right: none !important; border-top: 1px solid var(--border-subtle); }
  .stat-item:first-child { border-top: none; }
  .hero-actions    { flex-direction: column; align-items: flex-start; }
}
