/* ============================================
   F&G Underground Brand Styles
   Modern, cutting-edge, professional.
   Palette: deep navy + white + safety-amber.
   ============================================ */

:root {
  --navy-950: #03061C;
  --navy-900: #050A2A;
  --navy-800: #0B1340;
  --navy-700: #131C56;
  --navy-600: #1E296F;
  --navy-500: #2D3A8C;
  --navy-400: #4A5BC2;
  --amber: #F5B800;
  --amber-light: #FFD24A;
  --amber-dark: #C99500;
  --white: #FFFFFF;
  --gray-50: #F7F8FB;
  --gray-100: #ECEEF4;
  --gray-200: #DDE1EC;
  --gray-300: #C8CDDC;
  --gray-500: #6B7392;
  --gray-700: #3A4163;
  --gray-900: #1A1F3A;

  --shadow-sm: 0 2px 8px rgba(5, 10, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(5, 10, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(5, 10, 42, 0.25);
  --shadow-glow: 0 0 60px rgba(245, 184, 0, 0.25);

  --radius: 8px;
  --radius-lg: 16px;
  --max-w: 1280px;
  --header-h: 80px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-700); text-decoration: none; transition: color .25s var(--ease-out); }
a:hover { color: var(--amber-dark); }

::selection { background: var(--amber); color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--navy-900);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(2.125rem, 4.5vw, 3.75rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: 1rem; }

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

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(3, 6, 28, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(3, 6, 28, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  transition: transform .3s var(--ease-out);
}
.nav-logo:hover { transform: scale(1.04); }

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: transform .3s var(--ease-out), opacity .2s linear;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .35s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s var(--ease-out);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn .arrow {
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--amber);
  color: var(--navy-900);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--navy-900);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-dark {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.btn-dark:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  color: var(--white);
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient mesh */
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 15% 20%, rgba(30, 41, 111, 0.65) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(245, 184, 0, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(45, 58, 140, 0.55) 0%, transparent 55%);
  filter: blur(60px);
  z-index: -2;
  animation: meshDrift 22s var(--ease-in-out) infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -3%) scale(1.02); }
}

/* Blueprint grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 90%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(245, 184, 0, 0.12);
  color: var(--amber);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 2rem;
  border: 1px solid rgba(245, 184, 0, 0.25);
  backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.75rem;
  max-width: 1100px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 700;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) .line-inner { animation-delay: 0.24s; }

@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--gray-200);
  margin-bottom: 2.5rem;
  max-width: 680px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.75s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.2s forwards;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ MARQUEE STRIP ============ */
.marquee {
  background: var(--navy-900);
  color: var(--white);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-200);
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ PAGE HERO ============ */
.page-hero {
  background: var(--navy-950);
  color: var(--white);
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(245, 184, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(30, 41, 111, 0.5) 0%, transparent 70%);
  z-index: -2;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 85%);
  z-index: -1;
}

.page-hero h1 { color: var(--white); }
.page-hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--gray-200);
  max-width: 720px;
  margin: 1.5rem auto 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 184, 0, 0.12);
  color: var(--amber);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(245, 184, 0, 0.25);
  font-weight: 600;
}

/* ============ SECTIONS ============ */
section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-block;
  color: var(--amber-dark);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: var(--amber);
}

.section-header p {
  color: var(--gray-700);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.dark-section .section-eyebrow { color: var(--amber); }
.dark-section .section-header p { color: var(--gray-200); }
.dark-section h2 { color: var(--white); }

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(245, 184, 0, 0.08) 0%, transparent 50%);
  z-index: -1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: left;
  border-left: 2px solid rgba(245, 184, 0, 0.3);
  padding-left: 1.5rem;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.stat-num .suffix { color: var(--amber); font-size: 0.7em; }

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-200);
}

/* ============ ABOUT GRID ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(5, 10, 42, 0.45) 0%, rgba(5, 10, 42, 0.10) 100%),
    url('../assets/hero-hdd.jpg') center/cover;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 6, 28, 0.6) 100%);
}

.about-image-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.about-image-tag::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--amber);
}

.about-image-badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 130px;
  height: 130px;
  background: var(--amber);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--navy-900);
  line-height: 1.2;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  rotate: -6deg;
  z-index: 2;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content .lead {
  font-size: 1.2rem;
  color: var(--navy-700);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.about-content p { color: var(--gray-700); margin-bottom: 1.25rem; }

.about-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--navy-900);
  font-weight: 500;
}
.about-list li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23050A2A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0.05rem;
}

/* ============ MVV CARDS ============ */
.mvv {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.mvv::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.mvv-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--amber);
  transition: width .4s var(--ease-out);
}
.mvv-card:hover::before { width: 100%; }
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.mvv-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--amber-dark);
  margin-bottom: 1.5rem;
  display: block;
}

.mvv-card h3 {
  margin-bottom: 1rem;
  font-size: 1.65rem;
}
.mvv-card p { color: var(--gray-700); margin-bottom: 0; }

.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
  list-style: none;
}
.values-list li {
  background: var(--navy-900);
  color: var(--white);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* ============ BENTO SERVICES ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.25rem;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  will-change: transform;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(245, 184, 0, 0.07) 0%, transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 184, 0, 0.4);
}

.bento-card.featured {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-color: transparent;
  isolation: isolate;
  min-height: 460px;
}
.bento-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 184, 0, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
  z-index: -1;
}
.bento-card.featured h3 { color: var(--white); font-size: 2rem; }
.bento-card.featured p { color: var(--gray-200); }

.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-4 { grid-column: span 4; }

.bento-icon {
  width: 56px;
  height: 56px;
  background: var(--amber);
  color: var(--navy-900);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform .35s var(--ease-out), rotate .35s var(--ease-out);
}
.bento-card:hover .bento-icon {
  transform: scale(1.08);
  rotate: -6deg;
}
.bento-card.featured .bento-icon {
  background: var(--amber);
  width: 72px;
  height: 72px;
  font-size: 1.85rem;
}

.bento-card h3 { margin-bottom: 0.75rem; }
.bento-card p { color: var(--gray-700); margin-bottom: 0; }

.bento-tag {
  display: inline-block;
  background: rgba(245, 184, 0, 0.15);
  color: var(--amber-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.bento-card.featured .bento-tag {
  background: rgba(245, 184, 0, 0.2);
  color: var(--amber-light);
}

/* ============ ROLE SPLIT (Prime / Sub) ============ */
.roles {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.roles::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(30, 41, 111, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(245, 184, 0, 0.08) 0%, transparent 60%);
  z-index: -1;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.role-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  transition: transform .4s var(--ease-out), background .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 184, 0, 0.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.role-card:hover::before { opacity: 1; }
.role-card:hover {
  background: rgba(245, 184, 0, 0.04);
  border-color: rgba(245, 184, 0, 0.4);
  transform: translateY(-4px);
}

.role-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 184, 0, 0.5);
  margin-bottom: 1rem;
  display: block;
}

.role-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.role-card h3 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.role-card p {
  color: var(--gray-200);
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ============ PROCESS TIMELINE ============ */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
  margin-top: 2rem;
}

.process-step {
  padding: 2rem 1.5rem;
  position: relative;
  border-left: 1px solid var(--gray-200);
}
.process-step:first-child { border-left: none; }

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-900);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
}
.process-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 184, 0, 0.4);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============ LICENSE BANNER ============ */
.license {
  background: var(--gray-50);
}

.license-card {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  border-left: 4px solid var(--amber);
  position: relative;
  overflow: hidden;
}
.license-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(245, 184, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.license-icon {
  width: 88px;
  height: 88px;
  background: var(--navy-900);
  color: var(--amber);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.license-text h3 { margin-bottom: 0.5rem; font-size: 1.65rem; }
.license-text p { color: var(--gray-700); margin-bottom: 0; }

/* ============ CTA STRIP ============ */
.cta {
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 184, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(30, 41, 111, 0.6) 0%, transparent 60%);
  z-index: -1;
}

.cta h2 { color: var(--white); margin-bottom: 1.25rem; }
.cta p {
  font-size: 1.15rem;
  color: var(--gray-200);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; font-size: 1.75rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-100);
}
.contact-detail:last-child { border-bottom: none; }

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-900);
  color: var(--amber);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform .3s var(--ease-out);
}
.contact-detail:hover .contact-detail-icon {
  transform: scale(1.08) rotate(-5deg);
}

.contact-detail .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-detail .value {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 1.05rem;
}
.contact-detail .value a { color: inherit; }

/* ============ FORM ============ */
.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-light) 50%, var(--amber) 100%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group label .req { color: var(--amber-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--navy-900);
  background: var(--gray-50);
  transition: all .25s var(--ease-out);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--gray-300);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.12);
}

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

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  display: none;
  font-size: 0.95rem;
}
.form-status.success {
  background: #E6F7EE;
  color: #14532D;
  display: block;
}
.form-status.error {
  background: #FEE7E7;
  color: #7F1D1D;
  display: block;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-200);
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer-marquee {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.footer-marquee-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-marquee-text .star {
  color: var(--amber);
  -webkit-text-stroke: 0;
  font-size: 0.6em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--gray-300);
  font-size: 0.95rem;
  max-width: 360px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.85rem; }
.footer-col a {
  color: var(--gray-300);
  font-size: 0.95rem;
  transition: color .2s ease, padding-left .2s var(--ease-out);
  display: inline-block;
}
.footer-col a:hover { color: var(--amber); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-300);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-card.featured { grid-column: span 4; min-height: 360px; }
  .bento-card.span-3 { grid-column: span 4; }
  .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-2 { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all .35s var(--ease-out);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }

  .about-grid,
  .roles-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-badge { width: 110px; height: 110px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 1.25rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .license-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .license-icon { margin: 0 auto; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.featured,
  .bento-card.span-3,
  .bento-card.span-4,
  .bento-card.span-2 { grid-column: span 2; }

  .process-step { border-left: none; border-top: 1px solid var(--gray-200); padding-top: 2rem; }
  .process-step:first-child { border-top: none; padding-top: 0; }
}

@media (max-width: 540px) {
  section { padding: 3.5rem 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.featured,
  .bento-card.span-3,
  .bento-card.span-4,
  .bento-card.span-2 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding-left: 1rem; }
  .role-card { padding: 2rem 1.5rem; }
  .role-card h3 { font-size: 1.75rem; }
}

/* ============ MOTION PREFERENCES ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero h1 .line-inner { transform: none; }
  .marquee-track, .footer-marquee-track { animation: none; }
}

/* ============ MOBILE OPTIMIZATION (added) ============ */
/* Tablet / large phones */
@media (max-width: 768px) {
  /* Tighter hero, less visual heaviness on phones */
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 9.5vw, 3.75rem);
    margin-bottom: 1.25rem;
  }
  .hero-eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-scroll { display: none; }

  /* Calmer hero background on mobile (saves CPU, prevents jank) */
  .hero::before {
    animation: none;
    filter: blur(40px);
    opacity: 0.7;
  }
  .hero::after {
    background-size: 36px 36px;
    opacity: 0.55;
  }

  /* Tighter sections */
  section {
    padding: 3.5rem 0;
  }
  .section-header { margin-bottom: 2.5rem; }
  .section-eyebrow { padding-left: 1.5rem; font-size: 0.7rem; }

  /* Page hero (capabilities + contact) */
  .page-hero {
    padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  }

  /* Buttons: comfortable touch targets */
  .btn {
    min-height: 48px;
    padding: 0.95rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Marquee text size */
  .marquee-item { font-size: 1.2rem; gap: 0.8rem; }
  .marquee-track { gap: 2rem; }
  .footer-marquee-text { font-size: 1.75rem; }

  /* Form inputs: 16px font prevents iOS focus zoom */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
    min-height: 48px;
    padding: 0.85rem 1rem;
  }
  textarea { min-height: 140px; }

  /* Footer: better spacing on mobile */
  .footer-grid { gap: 2rem; }
  .footer-col h4 { margin-bottom: 0.85rem; }
  .footer-col li { margin-bottom: 0.5rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .container, .nav { padding: 0 1.25rem; }
  .nav-logo { height: 44px; }

  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
  .hero-sub { font-size: 0.95rem; }

  /* Stats stack to single column on smallest phones */
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-item { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }

  /* Footer marquee tighter */
  .footer-marquee-text { font-size: 1.5rem; }

  /* CTA section tighter */
  .cta { padding: 3rem 0; }
  .cta h2 { font-size: clamp(1.85rem, 7vw, 2.5rem); }

  /* Safe area for notched / rounded phones */
  .container, .nav {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

/* Landscape phone fixes (avoid full-height hero clipping) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 1.5rem) 0 2rem;
  }
  .hero h1 { font-size: 2.4rem; margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.25rem; }
  .hero-scroll { display: none; }
}
