/* =============================================
   WALCHAND HIRACHAND – LEGACY EXPERIENCE PLATFORM
   Design System: Industrial Blueprint + Futuristic Legacy
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  /* Primary Palette – Industrial Navy & Steel */
  --navy-900: #0a0e1a;
  --navy-800: #0f1628;
  --navy-700: #141d36;
  --navy-600: #1a2544;
  --navy-500: #1e2d52;
  --steel-400: #3a4a6b;
  --steel-300: #5a6f94;
  --steel-200: #7e92b5;
  --steel-100: #a8b8d4;

  /* Accent – Copper & Gold */
  --copper-600: #8b4513;
  --copper-500: #b8622d;
  --copper: #c97d3c;
  --gold: #d4a854;
  --gold-light: #e8c882;
  --gold-glow: #f0d890;

  /* Blueprint – Cyan Grid */
  --blueprint: #1a3a5c;
  --blueprint-line: rgba(78, 175, 230, 0.15);
  --blueprint-accent: #4eafe6;
  --blueprint-glow: rgba(78, 175, 230, 0.3);

  /* Sepia Warmth */
  --sepia-warm: #d4b896;
  --sepia-light: #f0e6d6;
  --sepia-dark: #8b7355;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f5f0e8;
  --text-primary: #e8e0d4;
  --text-secondary: #b8a890;
  --text-muted: #7a6e60;

  /* Functional */
  --success: #4caf50;
  --error: #e74c3c;
  --warning: #f39c12;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mechanical: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(212, 168, 84, 0.3);
  --shadow-copper: 0 0 30px rgba(201, 125, 60, 0.25);

  /* Z-index layers */
  --z-base: 1;
  --z-overlay: 10;
  --z-nav: 100;
  --z-modal: 1000;
  --z-gate: 9999;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

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

ul, ol {
  list-style: none;
}

/* ── Blueprint Grid Background ── */
.blueprint-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

/* ── Typography ── */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--off-white);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--off-white);
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--off-white);
}

.heading-sm {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--off-white);
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blueprint-accent);
}

.text-gold {
  color: var(--gold);
}

.text-copper {
  color: var(--copper);
}

/* ── Gold Accent Line ── */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: var(--space-md) 0;
}

.gold-line-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Section Layout ── */
.section {
  position: relative;
  z-index: var(--z-base);
  padding: var(--space-5xl) var(--space-xl);
}

.section-dark {
  background: var(--navy-900);
}

.section-darker {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.section-blueprint {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--blueprint) 50%, var(--navy-800) 100%);
}

.section-copper {
  background: linear-gradient(180deg, var(--navy-900) 0%, rgba(139, 69, 19, 0.08) 50%, var(--navy-900) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .text-mono {
  display: block;
  margin-bottom: var(--space-sm);
}

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

.section-header .text-lg {
  max-width: 700px;
  margin: 0 auto;
}

/* ── Navigation ── */
.main-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: var(--space-md) var(--space-xl);
  transition: all var(--transition-medium);
  background: transparent;
}

.main-nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 84, 0.15);
  padding: var(--space-sm) var(--space-xl);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::before {
  content: 'WH';
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--off-white);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--steel-100);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  transition: width var(--transition-medium);
}

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

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 125, 60, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(78, 175, 230, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1000px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blueprint-accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--blueprint-accent);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--off-white);
  margin-bottom: var(--space-lg);
}

.hero-title .gold-text {
  background: linear-gradient(135deg, var(--copper), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: linear-gradient(135deg, var(--copper), var(--gold));
  color: var(--navy-900);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212, 168, 84, 0.5);
  color: var(--navy-900);
}

/* ── Gear Decorations ── */
.gear {
  position: absolute;
  border: 3px solid rgba(212, 168, 84, 0.12);
  border-radius: 50%;
  animation: gear-rotate 30s linear infinite;
}

.gear::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  border: 2px solid rgba(212, 168, 84, 0.15);
  border-radius: 50%;
}

.gear-1 {
  width: 200px; height: 200px;
  top: 10%; right: -60px;
  opacity: 0.3;
}

.gear-2 {
  width: 150px; height: 150px;
  bottom: 15%; left: -40px;
  opacity: 0.25;
  animation-direction: reverse;
  animation-duration: 25s;
}

.gear-3 {
  width: 100px; height: 100px;
  top: 35%; left: 10%;
  opacity: 0.2;
  animation-duration: 20s;
}

@keyframes gear-rotate {
  to { transform: rotate(360deg); }
}

/* ── Cards ── */
.card {
  background: linear-gradient(145deg, rgba(20, 29, 54, 0.9) 0%, rgba(15, 22, 40, 0.95) 100%);
  border: 1px solid rgba(212, 168, 84, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--copper), var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.card:hover {
  border-color: rgba(212, 168, 84, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-copper);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--copper);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--gold);
  font-size: 1.5rem;
  background: rgba(201, 125, 60, 0.08);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
  border-right: 1px solid rgba(212, 168, 84, 0.15);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--copper), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-200);
  margin-top: var(--space-sm);
}

/* ── Timeline Component ── */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--copper), var(--gold), var(--copper), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-xl) var(--space-2xl);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: var(--space-4xl);
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--space-4xl);
}

.timeline-dot {
  position: absolute;
  top: var(--space-2xl);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--navy-900);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212, 168, 84, 0.5);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--blueprint-accent);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: var(--space-sm);
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Image with Overlay ── */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 168, 84, 0.15);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.img-frame:hover img {
  transform: scale(1.05);
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 26, 0.8) 100%);
  pointer-events: none;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: linear-gradient(135deg, var(--copper), var(--gold));
  color: var(--navy-900);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212, 168, 84, 0.5);
  color: var(--navy-900);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-medium);
}

.btn-outline:hover {
  background: rgba(212, 168, 84, 0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ── Page Header (inner pages) ── */
.page-header {
  position: relative;
  padding: 10rem var(--space-xl) var(--space-4xl);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 125, 60, 0.06) 0%, transparent 70%);
}

.page-header .text-mono {
  margin-bottom: var(--space-md);
}

.page-header .heading-xl {
  margin-bottom: var(--space-lg);
}

.page-header .text-lg {
  max-width: 700px;
  margin: 0 auto;
}

/* ── Content Blocks ── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-body .text-mono {
  margin-bottom: var(--space-sm);
}

.content-body .heading-md {
  margin-bottom: var(--space-md);
}

.content-body .text-body {
  margin-bottom: var(--space-lg);
}

.content-body ul {
  margin-bottom: var(--space-lg);
}

.content-body ul li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.content-body ul li::before {
  content: '⚙';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 0.85rem;
}

/* ── Quote Block ── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: var(--space-xl) var(--space-2xl);
  background: rgba(212, 168, 84, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-2xl) 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  color: var(--sepia-warm);
  line-height: 1.7;
}

.quote-block cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-200);
}

/* ── Footer ── */
.main-footer {
  position: relative;
  background: var(--navy-800);
  border-top: 1px solid rgba(212, 168, 84, 0.15);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
  z-index: var(--z-base);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-lg);
}

.footer-brand .text-body {
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  display: block;
  color: var(--steel-200);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--steel-200);
  margin-bottom: var(--space-sm);
}

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

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 168, 84, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-200);
  font-size: 0.9rem;
  transition: all var(--transition-medium);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(212, 168, 84, 0.4);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(212, 168, 84, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--gold);
  font-weight: 500;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── Mechanical Divider ── */
.mech-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.mech-divider::before,
.mech-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 84, 0.3), transparent);
}

.mech-divider-icon {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(212, 168, 84, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  animation: gear-rotate 15s linear infinite;
}

/* ── Contact Form ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-200);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(20, 29, 54, 0.8);
  border: 1px solid rgba(212, 168, 84, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 168, 84, 0.15);
}

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

/* ── Login Gate ── */
.gate-container {
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  overflow: hidden;
}

.gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201, 125, 60, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 175, 230, 0.04) 0%, transparent 50%);
}

.gate-box {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 90%;
  text-align: center;
  padding: var(--space-3xl);
}

.gate-vault-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-2xl);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: vault-pulse 3s ease-in-out infinite;
}

.gate-vault-icon::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 2px solid var(--copper);
  border-radius: 50%;
}

.gate-vault-icon::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
}

@keyframes vault-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 84, 0.2); }
  50% { box-shadow: 0 0 40px rgba(212, 168, 84, 0.4); }
}

.gate-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: var(--space-sm);
}

.gate-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: var(--space-2xl);
}

.gate-input-wrap {
  position: relative;
  margin-bottom: var(--space-lg);
}

.gate-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(20, 29, 54, 0.9);
  border: 2px solid rgba(212, 168, 84, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-align: center;
  outline: none;
  transition: all var(--transition-fast);
}

.gate-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 84, 0.2);
}

.gate-input.error {
  border-color: var(--error);
  animation: gate-shake 0.5s ease;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.gate-input.success {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.gate-btn {
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--copper), var(--gold));
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-glow);
}

.gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212, 168, 84, 0.5);
}

.gate-error-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--error);
  margin-top: var(--space-md);
  min-height: 1.5em;
  letter-spacing: 0.05em;
}

/* Gate transition */
.gate-container.unlocking {
  animation: gate-unlock 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes gate-unlock {
  0% { opacity: 1; clip-path: inset(0); }
  50% { opacity: 0.8; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(50% 50% 50% 50%); pointer-events: none; }
}

/* ── Floating Blueprint Annotations ── */
.bp-annotation {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(78, 175, 230, 0.3);
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .content-split.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) var(--space-md);
  }

  .container, .container-narrow, .container-wide {
    padding: 0 var(--space-md);
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(212, 168, 84, 0.1);
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-2xl);
    gap: var(--space-md);
    transition: right var(--transition-medium);
    border-left: 1px solid rgba(212, 168, 84, 0.15);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px !important;
    padding-right: var(--space-md) !important;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .page-header {
    padding: 8rem var(--space-md) var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 90vh;
  }
}
