/* ============================================================
   AES COMMODITIES — GLOBAL STYLESHEET
   Design System: Luxury Industrial Dark
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Bebas+Neue&family=Lato:wght@300;400;700&display=swap');

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  /* Colors */
  --color-primary:      #0a0a0a;
  --color-secondary:    #111111;
  --color-surface:      #1a1a1a;
  --color-gold:         #C9A84C;
  --color-gold-light:   #E8C96A;
  --color-gold-dark:    #9A7A2E;
  --color-bronze:       #8B6914;
  --color-white:        #FFFFFF;
  --color-offwhite:     #F0EDE8;
  --color-muted:        #888880;
  --color-border:       #2a2a2a;
  --color-border-gold:  rgba(201, 168, 76, 0.3);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Lato', Helvetica, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  11rem;

  /* Layout */
  --container-max: 1280px;
  --nav-height:    80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.65s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-primary);
  color: var(--color-offwhite);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   GRAIN TEXTURE OVERLAY
   Subtle noise applied globally — references raw mineral surfaces
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.05;
  font-weight: 400;
}

/* Section title — Bebas Neue, oversized */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.section-title .gold {
  color: var(--color-gold);
}

/* Section subtitle — Cormorant italic */
.section-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  font-weight: 300;
  max-width: 580px;
  margin-top: var(--space-xs);
  line-height: 1.65;
}

/* Display quote — large, gold, italic */
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  color: var(--color-gold);
  font-weight: 300;
  line-height: 1.35;
}

/* Small label — uppercase, tracked */
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Gold accent underline beneath section title */
.title-accent {
  display: block;
  width: 52px;
  height: 2px;
  background: var(--color-gold);
  margin-top: 1rem;
  margin-bottom: var(--space-md);
}

/* ============================================================
   GOLD DIVIDERS
   ============================================================ */

/* Full-width centered diamond divider */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-gold);
}

.divider-diamond {
  color: var(--color-gold);
  font-size: 0.45rem;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}

/* Simple 1px gold line */
.divider-line {
  width: 100%;
  height: 1px;
  background: var(--color-border-gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-base);
  white-space: nowrap;
}

/* Gold wipe fill on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn > * {
  position: relative;
  z-index: 1;
}

/* Primary: gold outline, transparent fill → gold fill + dark text */
.btn-primary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-primary::after {
  background: var(--color-gold);
}

.btn-primary:hover {
  color: var(--color-primary);
}

/* Ghost: muted border, offwhite text → offwhite fill + dark text */
.btn-ghost {
  background: transparent;
  color: var(--color-offwhite);
  border: 1px solid var(--color-border);
}

.btn-ghost::after {
  background: var(--color-offwhite);
}

.btn-ghost:hover {
  color: var(--color-primary);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-gold);
  padding: var(--space-md) var(--space-md) calc(var(--space-md) + 0.5rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: 0.625rem;
  text-transform: uppercase;
}

.card-body {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.85;
  font-weight: 300;
}

/* ============================================================
   SECTIONS
   ============================================================ */

section {
  position: relative;
}

.section {
  padding: var(--space-xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

.section-dark {
  background-color: var(--color-primary);
}

.section-surface {
  background-color: var(--color-secondary);
}

.section-header {
  margin-bottom: var(--space-lg);
}

/* ============================================================
   PAGE HERO — inner pages (non-home)
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  background-color: var(--color-secondary);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url('../images/hero-mining.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-border-gold);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow — top-right */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse 80% 100% at 90% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--color-white);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--color-muted);
  max-width: 620px;
  margin-top: var(--space-sm);
  line-height: 1.6;
}

/* ============================================================
   HOME HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% 55%, rgba(201, 168, 76, 0.055) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 88% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 55%),
    var(--color-primary);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 13vw, 10rem);
  color: var(--color-white);
  letter-spacing: 0.015em;
  line-height: 0.92;
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================================
   INTRO STRIP — full-width philosophy banner
   ============================================================ */

.intro-strip {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border-gold);
  border-bottom: 1px solid var(--color-border-gold);
  padding: 2.5rem 0;
  text-align: center;
  overflow: hidden;
}

.intro-strip-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--color-gold);
  letter-spacing: 0.04em;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 130% at 50% -15%, rgba(201,168,76,0.10), transparent 60%),
    var(--color-surface);
  border-top: 1px solid var(--color-border-gold);
  border-bottom: 1px solid var(--color-border-gold);
  padding: var(--space-xl) 0;
  text-align: center;
}

/* Drifting, edge-masked gold grid — quiet premium texture */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 68% 72% at 50% 50%, #000 28%, transparent 80%);
  mask-image: radial-gradient(ellipse 68% 72% at 50% 50%, #000 28%, transparent 80%);
  animation: ctaGridDrift 36s linear infinite;
}
@keyframes ctaGridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 46px 46px, 46px 46px; }
}

/* Slow-breathing gold spotlight behind the headline */
.cta-banner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201,168,76,0.13), transparent 62%);
  animation: ctaGlow 7.5s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { opacity: 0.5;  transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.14); }
}

.cta-banner .section-title {
  margin-bottom: var(--space-sm);
}

/* Liquid-gold sheen sweeping across the accent word */
.cta-banner .section-title .gold {
  background-image: linear-gradient(
    100deg,
    var(--color-gold-dark) 0%,
    var(--color-gold) 38%,
    #fff4d6 50%,
    var(--color-gold) 62%,
    var(--color-gold-dark) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ctaSheen 6.5s linear infinite;
}
@keyframes ctaSheen {
  from { background-position: 150% 0; }
  to   { background-position: -150% 0; }
}

.cta-banner p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner::before,
  .cta-banner::after,
  .cta-banner .section-title .gold {
    animation: none !important;
  }
}

/* ============================================================
   MACHINE LINE-ART ACCENTS
   Gold-on-black mining vignettes. mix-blend-mode: screen drops
   the pure-black background so only the gold glows out of the dark.
   ============================================================ */

.machine-accent {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--space-lg) auto 0;
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 60%, transparent 100%);
}

/* Square-ish single-machine vignettes (truck, loader, pit) */
.machine-accent--square { max-width: 300px; }

/* Wide scene vignettes (excavator, plant, conveyor) */
.machine-accent--wide { max-width: 460px; }

/* Side-by-side: image sits beside text on wider screens */
.machine-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.machine-aside .machine-accent { margin-top: 0; }

@media (min-width: 860px) {
  .machine-aside {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .machine-aside > * { flex: 1 1 0; }
  .machine-aside .machine-accent { margin: 0; }
}

/* ============================================================
   PHILOSOPHY QUOTE SECTION
   ============================================================ */

.philosophy-section {
  background: var(--color-secondary);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.philosophy-section .divider {
  max-width: 420px;
  margin: var(--space-md) auto;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-gold);
  opacity: 0.35;
  line-height: 1;
  letter-spacing: 0.04em;
  padding-top: 0.1em;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.process-step-body {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.85;
  max-width: 560px;
}

/* ============================================================
   COMPARISON TABLE (Why AESC)
   ============================================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-gold);
}

.comparison-table th:first-child {
  color: var(--color-muted);
}

.comparison-table th:last-child {
  color: var(--color-gold);
}

.comparison-table td {
  padding: 1rem 1.5rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.7;
  vertical-align: top;
}

.comparison-table td:last-child {
  color: var(--color-offwhite);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(201, 168, 76, 0.03);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.form-label .required-mark {
  color: var(--color-gold);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-offwhite);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.9rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(136, 136, 128, 0.45);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--space-md);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.form-success-icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  margin: 0 auto var(--space-sm);
}

.form-success-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-white);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.form-success-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* ============================================================
   SCROLL ANIMATIONS — Intersection Observer targets
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay variants */
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }
.fade-up[data-delay="6"] { transition-delay: 0.6s; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

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

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 3rem;
  }
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  line-height: 1;
}

.nav-logo-sep {
  width: 1px;
  height: 22px;
  background: var(--color-border);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-name {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-offwhite);
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1;
}

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2.75rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a:not(.btn) {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--color-offwhite);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

/* Nav CTA button */
.nav-cta {
  padding: 0.6rem 1.4rem !important;
  font-size: 0.65rem !important;
}

/* Hamburger button */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-hamburger {
    display: none;
  }
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--color-offwhite);
  transition: all var(--transition-base);
  transform-origin: center;
  width: 100%;
}

.nav-hamburger span:nth-child(3) {
  width: 60%;
  margin-left: auto;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  width: 100%;
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0 1.5rem var(--space-lg);
  border-top: 1px solid var(--color-border-gold);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-offwhite);
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
  display: block;
  width: 100%;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-gold);
}

.nav-mobile-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 1rem 0;
}

.nav-mobile-contact {
  font-size: 0.7rem !important;
  font-family: var(--font-body) !important;
  letter-spacing: 0.2em !important;
  font-weight: 700 !important;
  color: var(--color-gold) !important;
  text-transform: uppercase !important;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--color-secondary);
  border-top: 1px solid var(--color-border-gold);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 2fr 2fr;
    gap: var(--space-md);
  }
}

/* Brand column */
.footer-brand {}

.footer-logo-mark {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  line-height: 1;
}

.footer-logo-name {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--color-muted);
  max-width: 300px;
  line-height: 1.7;
}

/* Nav & contact columns */
.footer-col-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

.footer-links a:hover {
  color: var(--color-offwhite);
}

.footer-contact-item {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-contact-item a {
  color: var(--color-gold);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-gold-light);
}

/* Bottom bar */
.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.footer-honour {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-gold);
  opacity: 0.65;
  letter-spacing: 0.04em;
}

/* ============================================================
   GRID UTILITIES
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-muted); }
.text-white   { color: var(--color-white); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.italic       { font-style: italic; }
.uppercase    { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.12em; }

.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

.max-w-prose { max-width: 680px; }
.max-w-sm    { max-width: 480px; }

.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;
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ============================================================
   DECORATIVE MOTIFS — animated SVG / canvas space fillers
   ============================================================ */

/* Shared gold-dust particle canvas */
.motif-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── About: two partners converging into one ── */
.motif-converge {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  margin: 0 auto var(--space-md);
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border-gold);
  background: var(--color-secondary);
  overflow: hidden;
}
.motif-converge svg { position: relative; z-index: 1; width: 78%; height: auto; }
.mc-ring-l { animation: mcConvergeL 9s ease-in-out infinite; transform-origin: center; }
.mc-ring-r { animation: mcConvergeR 9s ease-in-out infinite; transform-origin: center; }
.mc-core   { animation: mcCorePulse 9s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mcConvergeL { 0%, 100% { transform: translateX(-14px); } 50% { transform: translateX(4px); } }
@keyframes mcConvergeR { 0%, 100% { transform: translateX(14px); }  50% { transform: translateX(-4px); } }
@keyframes mcCorePulse { 0%, 100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1); } }
.mc-label { font-family: var(--font-body); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--color-muted); }

/* ── Services: drifting hexagonal lattice watermark ── */
/* The element clips to the section; an oversized SVG drifts by exactly one
   tile period (56 × 96) and loops seamlessly. Pure GPU transform — smooth,
   and gap-free at any section height (no rotation, no corner exposure). */
.motif-hex {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: var(--color-gold);
  opacity: 0.14;
  pointer-events: none;
}
.motif-hex svg {
  position: absolute;
  top: -96px;
  left: -56px;
  width: calc(100% + 112px);
  height: calc(100% + 192px);
  will-change: transform;
  animation: hexDrift 11s linear infinite;
}
@keyframes hexDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(56px, 96px, 0); }
}

/* ── Draw-in supply-chain line ── */
.motif-supply { position: relative; padding: var(--space-md) 0; }
.motif-supply svg { width: 100%; height: auto; display: block; overflow: visible; }
.draw-path {
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.8s ease;
}
.in-view .draw-path { stroke-dashoffset: 0; }
.supply-node { fill: var(--color-primary); stroke: var(--color-gold); stroke-width: 1.5; opacity: 0; transition: opacity 0.5s ease; }
.in-view .supply-node { opacity: 1; }
.supply-node.lit { fill: var(--color-gold); }
.supply-label { font-family: var(--font-body); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--color-muted); opacity: 0; transition: opacity 0.6s ease; }
.in-view .supply-label { opacity: 1; }

/* ── Process: drawing spine + igniting nodes ── */
.process-list { position: relative; }
.proc-spine { position: absolute; left: 34px; top: 0; bottom: 0; width: 1px; background: var(--color-border); overflow: hidden; display: none; }
.proc-spine-fill { position: absolute; inset: 0; background: var(--color-gold); transform: scaleY(0); transform-origin: top; transition: transform 1.6s ease; }
.process-list.in-view .proc-spine-fill { transform: scaleY(1); }
.process-step::before {
  content: '';
  position: absolute;
  left: 34px;
  top: var(--space-lg);
  width: 11px;
  height: 11px;
  transform: translate(-50%, 0) rotate(45deg);
  background: var(--color-primary);
  border: 1px solid var(--color-gold);
  transition: background 0.4s ease;
  display: none;
  z-index: 1;
}
.process-step.is-visible::before { background: var(--color-gold); }
@media (min-width: 640px) {
  .proc-spine { display: block; }
  .process-step::before { display: block; }
  .reveal-trigger.process-list .process-step { padding-left: 68px; }
}

/* ── Why AESC: radiating rings behind the numbers ── */
.motif-rings { position: relative; display: inline-grid; place-items: center; }
.motif-rings .differentiator-number { position: relative; z-index: 1; }
.mr-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  transform: scale(0.5);
  opacity: 0;
  animation: mrPulse 4.5s ease-out infinite;
  pointer-events: none;
}
.mr-pulse:nth-child(2) { animation-delay: 1.5s; }
.mr-pulse:nth-child(3) { animation-delay: 3s; }
@keyframes mrPulse { 0% { transform: scale(0.5); opacity: 0; } 18% { opacity: 0.5; } 100% { transform: scale(2.6); opacity: 0; } }

/* ── Contact: drifting masked grid field ── */
.motif-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 78%);
  animation: gridDrift 32s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 48px 48px, 48px 48px; } }

/* ── Divider diamond — gentle site-wide pulse ── */
.divider-diamond { animation: diaPulse 3.4s ease-in-out infinite; }
@keyframes diaPulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

/* ── Reduced motion — freeze all motif animation ── */
@media (prefers-reduced-motion: reduce) {
  .mc-ring-l, .mc-ring-r, .mc-core, .motif-hex svg, .mr-pulse, .motif-grid, .divider-diamond { animation: none !important; }
  .mc-core { opacity: 1 !important; transform: scale(1) !important; }
  .draw-path { stroke-dashoffset: 0 !important; transition: none !important; }
  .supply-node, .supply-label { opacity: 1 !important; }
  .proc-spine-fill { transform: scaleY(1) !important; transition: none !important; }
}
