/* ===========================
   VANGUARD AEGIS — Design Tokens & Styles
   Dark, authoritative, discreet.
   =========================== */

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
}

/* ===========================
   DARK MODE (Default)
   =========================== */
:root,
[data-theme='dark'] {
  --color-bg: #08080c;
  --color-surface: #0e0e14;
  --color-surface-2: #14141c;
  --color-surface-offset: #111118;
  --color-surface-dynamic: #1a1a24;
  --color-divider: #1e1e28;
  --color-border: #28283a;

  --color-text: #d4d4dc;
  --color-text-muted: #8a8a9a;
  --color-text-faint: #55556a;
  --color-text-inverse: #08080c;

  /* Primary Accent — Deep Gold */
  --color-primary: #c9a55c;
  --color-primary-hover: #dab96e;
  --color-primary-active: #b8943f;
  --color-primary-highlight: #1f1c14;

  /* Error */
  --color-error: #c44;
  --color-error-hover: #a33;

  /* Success */
  --color-success: #4a8;
  --color-success-hover: #397;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}

/* ===========================
   LIGHT MODE
   =========================== */
[data-theme='light'] {
  --color-bg: #b5b0a6;
  --color-surface: #a8a49a;
  --color-surface-2: #b0aca4;
  --color-surface-offset: #aaa69e;
  --color-surface-dynamic: #9e9a90;
  --color-divider: #928e84;
  --color-border: #868278;

  --color-text: #1a1a1f;
  --color-text-muted: #3a3a42;
  --color-text-faint: #5a5a62;
  --color-text-inverse: #b5b0a6;

  --color-primary: #7a6028;
  --color-primary-hover: #5d4a1c;
  --color-primary-active: #8c7032;
  --color-primary-highlight: #9e9888;

  --color-error: #a33;
  --color-success: #2a7;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f5f3ef;
    --color-surface: #ffffff;
    --color-surface-2: #faf9f7;
    --color-surface-offset: #edeae4;
    --color-surface-dynamic: #e4e0d8;
    --color-divider: #d8d4cc;
    --color-border: #c8c4ba;
    --color-text: #1a1a1f;
    --color-text-muted: #6a6a72;
    --color-text-faint: #a0a0a8;
    --color-text-inverse: #f5f3ef;
    --color-primary: #8a6d2f;
    --color-primary-hover: #6d5522;
    --color-primary-active: #9c7d3a;
    --color-primary-highlight: #f0eadc;
    --color-error: #a33;
    --color-success: #2a7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  }
}

/* ===========================
   GLOBAL LAYOUT
   =========================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ===========================
   SKIP LINK
   =========================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ===========================
   HEADER / NAV
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 2px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  transform: scale(1.25);
}
.logo__mark-wrap {
  position: relative;
  display: inline-block;
  border-radius: 2px;
  transform-style: preserve-3d;
}
.logo__mark-wrap:hover .logo__mark {
  animation: shieldSpin 1s ease-in-out 1;
}
@keyframes shieldSpin {
  0% { transform: scale(1.25) rotateY(0deg); }
  100% { transform: scale(1.25) rotateY(360deg); }
}
.logo__wordmark {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

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

.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
  position: relative;
}
/* Ghost echo on hover — faint duplicate shifts up */
.nav__link::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: -1;
}
.nav__link:hover::before {
  opacity: 0.25;
  transform: translateY(-3px);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}
/* Active page underline */
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-primary);
  animation: underlineDraw 0.6s ease both;
}
@keyframes underlineDraw {
  from { right: 100%; }
  to { right: 0; }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-dynamic);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 90;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.nav__mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile-menu a {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
}
.nav__mobile-menu a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .theme-toggle {
    order: -1;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__mobile-menu {
    display: flex;
  }
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
.hero__tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-primary);
}

.hero__heading {
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  line-height: 1.08;
}
.hero__heading strong {
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero__bg-element {
  position: absolute;
  top: 50%;
  right: -5%;
  width: 600px;
  height: 600px;
  transform: translateY(-50%);
  opacity: 0.04;
  z-index: 1;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn__arrow {
  transition: transform var(--transition-interactive);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ===========================
   SECTION UTILITIES
   =========================== */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section__label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--color-primary);
}

.section__heading {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.section__heading strong {
  font-weight: 600;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

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

/* ===========================
   SERVICE CARDS (Home + Services page)
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 92, 0.06), transparent);
  transition: none;
  z-index: 0;
}
.service-card:hover::before {
  animation: shimmer 0.8s ease forwards;
}
@keyframes shimmer {
  to { left: 100%; }
}
.service-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}
.service-card:hover .service-card__cta {
  color: var(--color-primary);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  transition: color var(--transition-interactive);
}
.service-card__cta svg {
  transition: transform var(--transition-interactive);
}
.service-card:hover .service-card__cta svg {
  transform: translateX(3px);
}

.service-card__number {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, transparent 60%);
  opacity: 0.04;
  border-radius: 0 var(--radius-lg) 0 0;
}

/* ===========================
   PROCESS STEPS (Home page)
   =========================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 960px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  padding: var(--space-6);
  border-left: 1px solid var(--color-divider);
}
.process-step__number {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.process-step__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===========================
   SERVICES PAGE — Detailed
   =========================== */
.service-detail {
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}
.service-detail:last-child {
  border-bottom: none;
}

.service-detail__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.service-detail__number {
  font-size: var(--text-2xl);
  font-weight: 200;
  color: var(--color-primary);
  opacity: 0.5;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 60px;
}
.service-detail__title {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}

.service-detail__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding-left: calc(60px + var(--space-6));
}
@media (max-width: 768px) {
  .service-detail__content {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .service-detail__header {
    flex-direction: column;
    gap: var(--space-3);
  }
}

.service-detail__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-detail__capabilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-detail__capabilities li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.service-detail__capabilities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--color-primary);
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.about__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.about__text p + p {
  margin-top: var(--space-4);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.value-item__icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.value-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.value-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info__item {
  margin-bottom: var(--space-6);
}
.contact-info__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.contact-info__value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.contact-info__value a:hover {
  color: var(--color-primary);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form__input,
.form__textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-faint);
}
.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
}
.footer__links a:hover {
  color: var(--color-primary);
}

/* ===========================
   CTA BAND
   =========================== */
.cta-band {
  padding-block: var(--space-16);
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.cta-band__heading {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.cta-band__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  margin-inline: auto;
  max-width: 480px;
}

/* ===========================
   PAGE HERO (interior pages)
   =========================== */
.page-hero {
  padding-top: clamp(var(--space-16), 10vw, var(--space-24));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero__heading {
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.page-hero__heading strong {
  font-weight: 600;
}
.page-hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ===========================
   STAT ROW (About page)
   =========================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
.stat__number {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}
.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* JS fallback for browsers without scroll-driven animations */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   PRIVACY PAGE
   =========================== */
.privacy-section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
.privacy-section:last-child {
  border-bottom: none;
}
.privacy-section__heading {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.privacy-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.privacy-section p:last-child {
  margin-bottom: 0;
}
.privacy-section a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.privacy-section a:hover {
  color: var(--color-primary-hover);
}
.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-left: 0;
}
.privacy-list li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.privacy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--color-primary);
}

/* ===========================
   GEOMETRIC DECORATION
   =========================== */
.geo-line {
  stroke: var(--color-primary);
  stroke-width: 0.5;
  opacity: 0.12;
}
.geo-line--faint {
  opacity: 0.06;
}

/* ===========================
   ANIMATED RADAR (Contact)
   =========================== */
.radar-container {
  width: 220px;
  margin-top: var(--space-8);
  opacity: 0.12;
}
.radar {
  width: 100%;
  height: auto;
}
.radar__sweep {
  transform-origin: 100px 100px;
  animation: radarSweep 4s linear infinite;
}
@keyframes radarSweep {
  to { transform: rotate(360deg); }
}
.radar__blip {
  opacity: 0;
  animation: radarBlip 4s ease-in-out infinite;
}
.radar__blip--1 { animation-delay: 0.5s; }
.radar__blip--2 { animation-delay: 1.8s; }
.radar__blip--3 { animation-delay: 2.6s; }
.radar__blip--4 { animation-delay: 3.4s; }
@keyframes radarBlip {
  0%, 100% { opacity: 0; }
  15% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===========================
   ANIMATED HEX BG (Services)
   =========================== */
.hex-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: monospace;
  font-size: 13px;
  line-height: 2.2;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  word-break: break-all;
  text-align: justify;
  padding: 1rem;
}
.hex-bg span {
  opacity: 0.07;
  transition: opacity 0.8s ease, text-shadow 0.8s ease;
}
.hex-bg span.hex-flash {
  opacity: 0.4;
  text-shadow: 0 0 12px var(--color-primary), 0 0 4px var(--color-primary);
}

/* ===========================
   MGS2 WIREFRAME WAVE GRID (About)
   =========================== */
.wave-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.wave-grid-bg canvas {
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

/* ===========================
   SCROLL PROGRESS BAR
   =========================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #e8c96d);
  z-index: 9999;
  transition: none;
  box-shadow: 0 0 8px var(--color-primary);
}

/* ===========================
   CURSOR GLOW
   =========================== */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 165, 92, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
}

/* ===========================
   3D TILT SERVICE CARDS
   =========================== */
.service-card {
  transform-style: preserve-3d;
  perspective: 800px;
}
.service-card.tilting {
  transition: none;
}

/* ===========================
   HERO TEXT DECODE
   =========================== */
.hero__heading .decode-char {
  display: inline-block;
  transition: none;
}
.hero__heading .decode-char.scrambling {
  color: var(--color-primary);
  opacity: 0.5;
}
.hero__heading .decode-char.resolved {
  opacity: 1;
}

/* ===========================
   SMOOTH PAGE TRANSITIONS
   =========================== */
body {
  animation: pageIn 0.5s ease both;
}
body.page-exit {
  animation: pageOut 0.35s ease both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pageOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ===========================
   FOOTER DUBAI PULSE
   =========================== */
.footer__dubai {
  position: relative;
  color: var(--color-primary);
  font-weight: 500;
}
.footer__dubai::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
  animation: dubaiPing 3s ease-out infinite;
  z-index: -1;
}
@keyframes dubaiPing {
  0% {
    width: 6px;
    height: 6px;
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(201, 165, 92, 0.6);
  }
  70% {
    width: 6px;
    height: 6px;
    opacity: 0;
    box-shadow: 0 0 0 20px rgba(201, 165, 92, 0);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(201, 165, 92, 0);
  }
}

/* ===========================
   PARALLAX HERO
   =========================== */
.hero {
  will-change: transform;
}

/* ===========================
   BLUEPRINT GRID (Homepage)
   =========================== */
.blueprint {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, rgba(0,0,0,1) 0%, transparent 100%);
  mask-image: radial-gradient(circle 0px at 50% 50%, rgba(0,0,0,1) 0%, transparent 100%);
}
.blueprint__svg {
  width: 100%;
  height: 100%;
}
.bp-line {
  stroke: var(--color-primary);
  stroke-width: 0.5;
  fill: none;
}
.bp-line--diag {
  stroke-dasharray: 6 8;
  stroke-width: 0.3;
}
.bp-line--tick {
  stroke-width: 1.5;
}
.bp-line--corner {
  stroke-width: 1;
}
.bp-text {
  font-family: monospace;
  font-size: 10px;
  fill: var(--color-primary);
  letter-spacing: 0.1em;
}

/* ===========================
   TOPOGRAPHIC CONTOURS (Contact)
   =========================== */
.topo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, rgba(0,0,0,1) 0%, transparent 100%);
  mask-image: radial-gradient(circle 0px at 50% 50%, rgba(0,0,0,1) 0%, transparent 100%);
}
.topo__svg {
  width: 100%;
  height: 100%;
}
.topo-line {
  stroke: var(--color-primary);
  stroke-width: 0.6;
  fill: none;
}
.topo-line--ridge {
  stroke-dasharray: 4 6;
  stroke-width: 0.4;
}
.topo-text {
  font-family: monospace;
  font-size: 9px;
  fill: var(--color-primary);
  letter-spacing: 0.08em;
}

/* ===========================
   CTA BUTTON PULSE RING
   =========================== */
.btn--primary {
  position: relative;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary);
  opacity: 0;
  animation: ctaPulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0% { inset: -4px; opacity: 0.6; }
  70% { inset: -16px; opacity: 0; }
  100% { inset: -16px; opacity: 0; }
}

/* ===========================
   HERO TYPING CURSOR
   =========================== */
.hero__tag[data-typing] {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-primary);
  width: 0;
  animation: typing 1.5s steps(26) 0.3s forwards, blink 0.6s step-end 0.3s 5;
}
@keyframes typing {
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* ===========================
   SCROLL TO TOP
   =========================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
  z-index: 100;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(201, 165, 92, 0.3);
}
