/* ═══════════════════════════════════════════
   MESI — Shared Stylesheet
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --gold:        #C9941A;
  --gold-light:  #E8B030;
  --gold-dim:    #8A6412;
  --green:       #22A845;
  --green-dark:  #1A7A2E;
  --bg-deep:     #070A0D;
  --bg-base:     #0E1218;
  --bg-elevated: #161B23;
  --bg-floating: #1E242E;
  /* Text scale lifted for WCAG contrast on the near-black backgrounds —
     primary > muted > dim > faint must stay visually distinct */
  --text-primary:#F2EDE0;
  --text-muted:  #B3AB99;
  --text-dim:    #9A9181;
  --text-faint:  #837B6C;
  --font-display:'Rajdhani', sans-serif;
  --font-body:   'Inter', sans-serif;
  --nav-h:       68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(201,148,26,0.3); border-radius: 3px; }

/* ── Backgrounds ── */
.circuit-bg {
  background-image:
    linear-gradient(rgba(201,148,26,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,148,26,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
.grain-overlay::after {
  content: ''; position: absolute; inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}

/* ── Parallax ── */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Dividers ── */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,148,26,0.5) 30%, rgba(201,148,26,0.5) 70%, transparent);
}

/* ── Text utilities ── */
.text-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #F0C040 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Typography ── */
.display { font-family: var(--font-display); }
.label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.hero-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.025em;
}
.section-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.07; letter-spacing: -0.02em;
}
.page-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.02em;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 0.875rem 2.25rem; border-radius: 3px; border: none; cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 8px 24px rgba(201,148,26,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 16px 40px rgba(201,148,26,0.38), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-gold:active { transform: translateY(-1px); }
.btn-gold:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: #D4C8A8; background: transparent;
  padding: 0.875rem 2.25rem; border-radius: 3px;
  border: 1px solid rgba(212,200,168,0.22); cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover { transform: translateY(-3px); border-color: rgba(201,148,26,0.55); background: rgba(201,148,26,0.06); }
.btn-outline:active { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1.375rem; font-size: 0.8rem; }

/* ── Navigation ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,10,13,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,148,26,0.1);
  transition: box-shadow 0.3s ease;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 2px; }
.nav-wordmark { height: 24px; width: auto; display: block; }
.footer-wordmark { height: 30px; width: auto; display: block; }
.nav-brand-sub { font-size: 0.5rem; letter-spacing: 0.16em; color: var(--text-faint); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: 0.875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  position: relative; transition: color 0.2s ease;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--gold); transition: right 0.3s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--gold); }
.nav-link:focus-visible, .mobile-nav-link:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 2px;
}
.nav-link:active { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(201,148,26,0.2); border-radius: 4px;
  background: rgba(201,148,26,0.06); cursor: pointer; color: var(--gold);
  transition: background 0.2s ease;
}
.nav-hamburger:hover { background: rgba(201,148,26,0.12); }
.nav-hamburger:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.nav-hamburger:active { background: rgba(201,148,26,0.18); }
.nav-hamburger .ham-close { display: none; }
.nav-hamburger[aria-expanded="true"] .ham-open { display: none; }
.nav-hamburger[aria-expanded="true"] .ham-close { display: block; }
.mobile-menu {
  border-top: 1px solid rgba(201,148,26,0.08);
  padding: 1.25rem 1.5rem 1.5rem;
}
.mobile-menu:not([hidden]) { animation: menu-in 0.28s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu[hidden] { display: none; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--gold); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  position: relative; overflow: hidden;
  background: var(--bg-deep);
}

/* ── Stat Cards ── */
.stat-card {
  background: linear-gradient(145deg, #131820, #1A2030);
  border: 1px solid rgba(201,148,26,0.1); border-radius: 6px; padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ── Division Cards (Home — hover image reveal) ── */
.div-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #0C1016, #131820);
  border: 1px solid rgba(201,148,26,0.09); border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 12px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.div-card.green { border-color: rgba(34,168,69,0.09); }
.div-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  clip-path: inset(100% 0 0 0);    /* fully hidden — clipped from top */
  transform: scale(1.08);
  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1), transform 0.75s ease;
}
.div-card-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,10,13,0.25) 0%, rgba(7,10,13,0.85) 100%);
  transition: background 0.7s ease;
}
.div-card:hover .div-card-bg {
  clip-path: inset(0% 0 0 0);      /* wipe upward to reveal */
  transform: scale(1.02);
}
.div-card:hover .div-card-bg::after {
  background: linear-gradient(to bottom, rgba(7,10,13,0.55) 0%, rgba(7,10,13,0.96) 100%);
}
.div-card:hover { border-color: rgba(201,148,26,0.4); transform: translateY(-6px); box-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 24px 56px rgba(0,0,0,0.4), 0 0 48px rgba(201,148,26,0.08); }
.div-card.green:hover { border-color: rgba(34,168,69,0.4); }
.div-card-content {
  position: relative; z-index: 1; padding: 2.25rem;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.div-card:hover .div-card-content { transform: translateY(-4px); }
/* Hover text contrast — only activates on the card being hovered */
.div-card-content p { transition: color 0.55s ease; }
.div-card:hover .div-card-content p { color: #BDB5A4 !important; }
.div-card-content h3 { transition: color 0.4s ease; }
.div-card:hover .div-card-content h3 { color: #FFFFFF !important; }
.div-card-num {
  position: absolute; right: 1.25rem; top: 0.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: 5.5rem; line-height: 1;
  color: rgba(201,148,26,0.045); pointer-events: none; z-index: 0;
}
.div-card.green .div-card-num { color: rgba(34,168,69,0.045); }

/* ── Pillar Cards ── */
.pillar-card {
  background: linear-gradient(145deg, #0C1016, #131820);
  border: 1px solid rgba(26,122,46,0.12); border-radius: 6px; padding: 2.25rem 1.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease;
  text-align: center;
}
.pillar-card:hover { transform: translateY(-5px); border-color: rgba(34,168,69,0.35); }
.icon-circle-gold {
  width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201,148,26,0.18), rgba(201,148,26,0.06));
  border: 1px solid rgba(201,148,26,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.icon-circle-green {
  width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(34,168,69,0.18), rgba(34,168,69,0.06));
  border: 1px solid rgba(34,168,69,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ── Feature Items ── */
.feature-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(201,148,26,0.03); border: 1px solid rgba(201,148,26,0.09); border-radius: 5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature-item:hover { border-color: rgba(201,148,26,0.22); background: rgba(201,148,26,0.06); }
.icon-sm { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* ── Vision/Mission Cards ── */
.vm-card { border-radius: 8px; padding: 2.5rem; position: relative; overflow: hidden; }
.vm-card-gold { background: linear-gradient(145deg, #0F1218, #151C26); border: 1px solid rgba(201,148,26,0.18); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.vm-card-green { background: linear-gradient(145deg, #0A1210, #10201A); border: 1px solid rgba(34,168,69,0.18); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* ── Value Cards ── */
.value-card {
  background: linear-gradient(145deg, #0C1016, #131820);
  border: 1px solid rgba(201,148,26,0.08); border-radius: 6px; padding: 1.25rem 0.875rem; text-align: center;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.value-card:hover { border-color: rgba(201,148,26,0.3); transform: translateY(-3px); }

/* ── Icon Backgrounds ── */
.icon-bg-gold {
  width: 52px; height: 52px; border-radius: 8px;
  background: rgba(201,148,26,0.1); border: 1px solid rgba(201,148,26,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-bg-green {
  width: 52px; height: 52px; border-radius: 8px;
  background: rgba(34,168,69,0.1); border: 1px solid rgba(34,168,69,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Chips / Pills ── */
.chip {
  padding: 0.2rem 0.5rem;
  background: rgba(201,148,26,0.07); border: 1px solid rgba(201,148,26,0.14); border-radius: 3px;
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
  transition: color 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}
.chip-green { background: rgba(34,168,69,0.07); border-color: rgba(34,168,69,0.14); }
.div-card:hover .chip { color: var(--gold); background: rgba(201,148,26,0.13); border-color: rgba(201,148,26,0.32); }
.div-card.green:hover .chip-green { color: var(--green); background: rgba(34,168,69,0.13); border-color: rgba(34,168,69,0.32); }
.chip-lit { color: var(--gold); border-color: rgba(201,148,26,0.3); }
.chip-lit-green { color: var(--green); background: rgba(34,168,69,0.07); border-color: rgba(34,168,69,0.3); }
.pill {
  padding: 0.45rem 1.25rem; border: 1px solid rgba(201,148,26,0.14); border-radius: 100px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: rgba(201,148,26,0.4); color: var(--gold); }

/* ── Shine Border (conic-gradient ring, brand metallics) ──
   Adapted from the approved CodePen outline effect. Use .shine-border for
   gold, add .shine-border--green for metallic green, .shine-border--static
   to disable the rotation. Element needs position:relative + border-radius. */
@property --shine-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.shine-border { position: relative; }
.shine-border::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--shine-angle),
    rgba(201,148,26,0.10) 0%,
    rgba(201,148,26,0.55) 12%,
    #F5D678 18%,
    rgba(201,148,26,0.55) 24%,
    rgba(201,148,26,0.10) 38%,
    rgba(201,148,26,0.10) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: shine-rotate 7s linear infinite;
}
.shine-border--thick::before { padding: 2px; }
.shine-border--green::before {
  background: conic-gradient(from var(--shine-angle),
    rgba(34,168,69,0.10) 0%,
    rgba(34,168,69,0.55) 12%,
    #9FE8B4 18%,
    rgba(34,168,69,0.55) 24%,
    rgba(34,168,69,0.10) 38%,
    rgba(34,168,69,0.10) 100%);
}
.shine-border--static::before { animation: none; }
@keyframes shine-rotate { to { --shine-angle: 360deg; } }
/* Browsers without @property support get a static gradient ring — fine. */
@media (prefers-reduced-motion: reduce) {
  .shine-border::before { animation: none; }
}

/* ── Misc ── */
.dot-gold { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: gap 0.2s ease; margin-top: 1.5rem;
}
.learn-more:hover { gap: 10px; }
.learn-more-gold { color: var(--gold); }
.learn-more-green { color: var(--green); }

/* ── Division Panels (Divisions page) ── */
.div-panel {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.div-panel-img {
  position: relative; overflow: hidden; min-height: 560px;
}
.div-panel-img img {
  /* absolute fill — guarantees the image matches panel height regardless of content length */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.8s ease;
  display: block;
}
.div-panel:hover .div-panel-img img { transform: scale(1.04); }
.div-panel-img-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, transparent 55%, var(--bg-deep) 100%),
    linear-gradient(to top, rgba(7,10,13,0.6) 0%, rgba(7,10,13,0.15) 12%, transparent 28%);
}
.div-panel.reverse .div-panel-img-overlay {
  background:
    linear-gradient(to left, transparent 55%, var(--bg-deep) 100%),
    linear-gradient(to top, rgba(7,10,13,0.6) 0%, rgba(7,10,13,0.15) 12%, transparent 28%);
}
.div-panel-content {
  padding: 4.5rem 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-deep);
}
.div-panel.reverse .div-panel-img { order: 2; }
.div-panel.reverse .div-panel-content { order: 1; }
.div-services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem; margin-top: 1.25rem;
}
.div-service-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--text-muted);
}

/* ── BEE / Transformation (About page) ── */
.bee-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center;
}
.bee-badge {
  border-radius: 10px;
  padding: 2rem 2.25rem;
  background: linear-gradient(145deg, #10141B, #181F2A);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 1.5rem;
}
.bee-badge-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.25rem; line-height: 1; white-space: nowrap;
}
.bee-badge-caption {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  line-height: 1.5;
}
.bee-pillar {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201,148,26,0.08);
}
.bee-pillar:last-child { border-bottom: none; }
.bee-pillar-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary);
}
@media (max-width: 900px) {
  .bee-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Contact Form ── */
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(201,148,26,0.15); border-radius: 4px;
  padding: 0.875rem 1rem; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color 0.2s ease, background 0.2s ease; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(201,148,26,0.45); background: rgba(201,148,26,0.03);
}
.form-select option { background: #0E1218; }
.form-textarea { resize: vertical; min-height: 130px; }

/* ── Legal Pages (Privacy / Terms) ── */
.legal-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 4.5rem;
  align-items: start;
}
.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 2rem);
  display: flex; flex-direction: column; gap: 2px;
  padding: 1.25rem 1rem 1.375rem;
  background: linear-gradient(145deg, #0C1016, #131820);
  border: 1px solid rgba(201,148,26,0.09); border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.25);
}
.legal-toc-label {
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
  padding: 0 0.625rem; margin-bottom: 0.75rem;
}
.legal-toc-link {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--text-dim); text-decoration: none;
  padding: 0.4rem 0.625rem; border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.legal-toc-link:hover { color: var(--gold-light); background: rgba(201,148,26,0.05); }
.legal-toc-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.legal-toc-link:active { color: var(--gold); }
.legal-toc-link.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,148,26,0.06); }
.legal-section {
  padding: 2.25rem 0; border-bottom: 1px solid rgba(201,148,26,0.07);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child { border-bottom: none; padding-bottom: 0; }
.legal-h2 {
  display: flex; align-items: baseline; gap: 0.875rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  letter-spacing: 0.01em; color: var(--text-primary); margin-bottom: 1.125rem;
}
.legal-num {
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.1em; flex-shrink: 0;
}
.legal-body p {
  color: var(--text-dim); font-size: 0.925rem; line-height: 1.8;
  font-weight: 300; margin-bottom: 1rem; max-width: 72ch;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--text-muted); font-weight: 500; }
.legal-body a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
.legal-body a:hover { color: var(--gold-light); }
.legal-body a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; border-radius: 2px; }
.legal-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.625rem;
  margin: 0 0 1rem; padding: 0;
}
.legal-list:last-child { margin-bottom: 0; }
.legal-list li {
  position: relative; padding-left: 1.375rem;
  color: var(--text-dim); font-size: 0.925rem; line-height: 1.7;
  font-weight: 300; max-width: 70ch;
}
.legal-list li::before {
  content: ''; position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.65;
}
.legal-list--green li::before { background: var(--green); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.375rem; padding: 1rem; }
  .legal-toc-label { width: 100%; margin-bottom: 0.5rem; }
  .legal-toc-link {
    border-left: none; border: 1px solid rgba(201,148,26,0.14);
    border-radius: 100px; padding: 0.3rem 0.875rem; font-size: 0.75rem;
  }
  .legal-toc-link.active { border-color: rgba(201,148,26,0.45); }
}
@media (max-width: 767px) {
  /* The global mobile `section` padding rule would inflate every legal
     sub-section — these are in-page articles, not full-bleed sections */
  section.legal-section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* ── Tilt Cards ── */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ── Footer ── */
footer { background: #040608; border-top: 1px solid rgba(201,148,26,0.08); padding: 3.5rem 0 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-link { color: var(--text-dim); font-size: 0.875rem; text-decoration: none; transition: color 0.2s ease; display: block; }
.footer-link:hover { color: var(--gold); }
.footer-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }
.contact-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.anim-0 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) both; }
.anim-1 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
.anim-2 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.24s both; }
.anim-3 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.36s both; }
.anim-4 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.48s both; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 40s linear infinite; }
@keyframes pulse-orb { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.pulse-orb { animation: pulse-orb 8s ease-in-out infinite; }

/* ── MESI Symbol Decoration (Divisions hero) ──
   Large symbol with a layered gold/green glow behind it, no ring.
   Desktop only (≥900px). */
.mesi-symbol-wrap {
  display: none;
  position: absolute;
  pointer-events: none;
  z-index: 3;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
}
.mesi-symbol-ring {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.mesi-symbol-img {
  display: block;
  width: 76%; height: 76%;
  object-fit: contain;
  opacity: 0.95;
  filter:
    drop-shadow(0 0 70px rgba(201,148,26,0.32))
    drop-shadow(0 0 130px rgba(201,148,26,0.16))
    drop-shadow(0 0 60px rgba(34,168,69,0.14))
    drop-shadow(0 10px 24px rgba(0,0,0,0.6))
    brightness(1.12)
    saturate(1.3);
}
@media (min-width: 900px) {
  .mesi-symbol-wrap { display: block; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .div-panel { grid-template-columns: 1fr; }
  .div-panel-img { min-height: 300px; order: 0 !important; }
  .div-panel-content { order: 1 !important; padding: 2.5rem 2rem; }
  .div-panel-img-overlay, .div-panel.reverse .div-panel-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, var(--bg-deep) 100%);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  html { overflow-x: hidden; }
  section { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  .parallax-section { background-attachment: scroll; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { display: block; }
  .footer-col { margin-bottom: 2rem; }
  .page-hero { padding-top: calc(var(--nav-h) + 3rem) !important; padding-bottom: 3rem !important; }
  .hse-flex { gap: 2rem !important; }
  .div-services-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 1.25rem 0.875rem; }
  .pillar-word { font-size: 1.1rem !important; }
  .pillar-card p { font-size: 0.72rem !important; }
  .icon-circle-gold, .icon-circle-green { width: 48px !important; height: 48px !important; margin-bottom: 0.875rem !important; }
}

/* ════════════════════════════════════════
   MOBILE DIVISIONS CAROUSEL
   ════════════════════════════════════════ */
.div-carousel-wrap { display: none; }

@media (max-width: 767px) {
  .div-grid-desktop { display: none !important; }
  .div-carousel-wrap {
    display: block;
    margin: 0 -1.5rem;      /* escape parent padding — full bleed */
    padding-bottom: 2.5rem;
  }
}

/* ── track ── */
.dcc-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.dcc-track {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.34, 1.4, 0.64, 1);
}
/* suppress transitions during init */
.dcc-notrans,
.dcc-notrans .dcc-card { transition: none !important; }

/* ── perspective wrapper per slide ── */
.dcc-persp {
  perspective: 900px;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── card ── */
.dcc-card {
  width: 220px;
  height: 310px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201,148,26,0.12);
  background: #0C1016;
  cursor: pointer;
  will-change: transform;
  transition:
    transform 0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.dcc-card.dcc-card--green { border-color: rgba(34,168,69,0.12); }

/* active card glow */
.dcc-persp.is-active .dcc-card {
  border-color: rgba(201,148,26,0.38);
  box-shadow: 0 0 32px rgba(201,148,26,0.09), 0 14px 48px rgba(0,0,0,0.55);
}
.dcc-persp.is-active .dcc-card.dcc-card--green {
  border-color: rgba(34,168,69,0.38);
  box-shadow: 0 0 32px rgba(34,168,69,0.09), 0 14px 48px rgba(0,0,0,0.55);
}

/* ── background image — hidden until active ── */
.dcc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.dcc-persp.is-active .dcc-bg { opacity: 1; }

/* gradient overlay (always present for text legibility) */
.dcc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,10,13,0.97) 0%,
    rgba(7,10,13,0.72) 55%,
    rgba(7,10,13,0.28) 100%
  );
  z-index: 1;
}

/* ── card body ── */
.dcc-body {
  position: absolute;
  inset: 0;
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.dcc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* division number */
.dcc-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9941A;
  transition: opacity 0.3s ease;
}
.dcc-num--green { color: #22A845; }
.dcc-persp:not(.is-active) .dcc-num { opacity: 0.5; }

/* icon badge */
.dcc-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  transition: opacity 0.35s ease;
}
.dcc-persp:not(.is-active) .dcc-icon { opacity: 0; }

/* title */
.dcc-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.22;
  color: #F2EDE0;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}
.dcc-persp:not(.is-active) .dcc-title { opacity: 0.45; }

/* description + link — blur-fade on inactive */
.dcc-meta {
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.dcc-persp.is-active .dcc-meta {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}
.dcc-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  line-height: 1.62;
  color: var(--text-dim);
  font-weight: 300;
  margin: 0 0 0.625rem;
}
.dcc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9941A;
  text-decoration: none;
}
.dcc-link--green { color: #22A845; }

/* ── controls bar ── */
.dcc-controls {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.35rem 1rem;
  background: rgba(12,16,22,0.8);
  border-radius: 100px;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(201,148,26,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dcc-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dcc-btn:active { color: #C9941A; }
.dcc-btn:disabled { opacity: 0.28; cursor: default; }
.dcc-dots { display: flex; align-items: center; gap: 5px; }
.dcc-dot {
  height: 6px;
  width: 6px;
  border-radius: 100px;
  cursor: pointer;
  background: rgba(201,148,26,0.22);
  transition: width 0.3s ease, background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.dcc-dot.is-active { width: 22px; background: #C9941A; }
