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

:root {
  --bg: #0A0908;
  --bg2: #0F0D0C;
  --bg3: #141210;
  --border: rgba(255,255,255,0.08);
  --red: #C8321C;
  --red2: #E8472E;
  --red-glow: rgba(200,50,28,0.28);
  --gold: #BF9A52;
  --white: #F5F0EB;
  --muted: rgba(245,240,235,0.48);
  --dim: rgba(245,240,235,0.2);
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Outfit', Arial, sans-serif;
  --font-num: var(--font-b);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  overflow-x: hidden;
  cursor: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9900;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

main {
  position: relative;
  z-index: auto;
}

a {
  color: inherit;
}

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

.container {
  width: min(1180px, calc(100% - 10vw));
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

/* SHARED CURSOR AND BACKGROUND EFFECTS */
#c-dot,
#c-ring {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#c-dot {
  z-index: 9999;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red2);
  transition: width .2s, height .2s, background .2s, box-shadow .2s;
}

#c-ring {
  z-index: 9998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200,50,28,.5);
  transition: width .25s, height .25s, border-color .25s;
}

body.cursor-hover #c-dot {
  width: 13px;
  height: 13px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(191,154,82,.6);
}

body.cursor-hover #c-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(191,154,82,.5);
}

#sparks-layer {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
}

.spark {
  position: absolute;
  border-radius: 50%;
  animation: sparkFloat linear infinite;
  opacity: 0;
  box-shadow: 0 0 10px currentColor;
}

@keyframes sparkFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: .7; }
  100% { transform: translateY(-110vh) translateX(var(--dx)) scale(.3); opacity: 0; }
}

#wave-canvas {
  position: fixed;
  inset: 0;
  z-index: 11;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
}

/* SHARED HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: rgba(10,9,8,.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: box-shadow .25s;
}

.site-header.scrolled {
  box-shadow: 0 4px 50px rgba(0,0,0,.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
}

.brand-text {
  font-family: var(--font-d);
  font-size: clamp(1.2rem, 2.1vw, 1.52rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.1rem, 2.5vw, 2.5rem);
  min-width: 0;
}

.nav-link,
.nav-cta {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: clamp(.68rem, .85vw, .78rem);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background .2s, box-shadow .2s;
}

.nav-link:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.25rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 28px var(--red-glow);
}

.nav-cta:hover {
  background: var(--red2);
  box-shadow: 0 0 44px var(--red-glow);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 292px;
  padding: .6rem 0;
  background: rgba(12,10,9,.98);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  gap: .75rem;
  padding: .62rem 1.15rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .76rem;
  line-height: 1.35;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(200,50,28,.08);
}

.dropdown-menu span {
  color: var(--red2);
  font-family: var(--font-d);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  cursor: none;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 540;
  background: rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 550;
  width: min(360px, 86vw);
  height: 100vh;
  padding: 92px 2rem 3rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(10,9,8,.99);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(28px);
  transition: right .32s cubic-bezier(.25,1,.5,1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  padding: .82rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
}

.mobile-menu .mobile-sub {
  padding-left: 1rem;
  color: var(--dim);
  font-size: .74rem;
  text-transform: none;
  letter-spacing: .03em;
}

.mobile-cta {
  margin-top: 1.5rem;
  text-align: center;
  background: var(--red);
  color: #fff !important;
}

/* SHARED PAGE STRUCTURE */
.page-hero {
  min-height: 72vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 90px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 78% 22%, rgba(200,50,28,.24), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(191,154,82,.10), transparent 32%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  animation: gridPulse 6s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--red2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow span,
.section-label::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

h1,
.display {
  color: var(--white);
  font-family: var(--font-d);
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  line-height: .86;
  font-weight: 400;
  letter-spacing: 0;
}

.display {
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
}

/* Keep numeric UI readable and consistent across the site. */
:where(
  .dd-n,
  .service-tile > span,
  .hstat-num,
  .sstat-num,
  .pstep-num,
  .svc-num,
  .plan-amount,
  .plan-amount sup,
  .plan-amount span,
  .metric-item strong,
  .capability-item > span,
  .approach-step > span,
  .language-count,
  .service-selector-number,
  .outcome-strip strong,
  .axis-item > span,
  .seo-score strong,
  .engagement-row span,
  .orbit-badge,
  .dashboard-pulse strong,
  .dashboard-metrics i,
  .value-item > span,
  .offshore-item span,
  .capability-meter span,
  .testimonial-card span
) {
  font-family: var(--font-num) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

h1 em,
.display em {
  color: var(--gold);
  font-style: italic;
}

.page-hero p,
.body-panel p {
  max-width: 650px;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.85;
}

.section {
  padding: 7rem 0;
  position: relative;
  z-index: 5;
  background: var(--bg);
}

.section:nth-of-type(even) {
  background: var(--bg2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.body-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.body-panel p {
  font-size: 1rem;
  margin-top: 0;
}

.body-panel p + p {
  margin-top: 1rem;
}

.body-panel label {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.body-panel input,
.body-panel textarea {
  width: 100%;
  min-height: 48px;
  margin-top: .45rem;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255,255,255,.035);
  color: var(--white);
  font: inherit;
  outline: none;
}

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

.body-panel input:focus,
.body-panel textarea:focus {
  border-color: rgba(200,50,28,.55);
  box-shadow: 0 0 0 3px rgba(200,50,28,.12);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.service-tile {
  min-height: 220px;
  padding: 2rem;
  background: var(--bg2);
  text-decoration: none;
  transition: background .25s, transform .25s;
}

.service-tile:hover {
  background: var(--bg3);
  transform: translateY(-3px);
}

.service-tile span {
  color: var(--red2);
  font-family: var(--font-d);
  font-size: 1.4rem;
}

.service-tile h3 {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.service-tile p {
  margin-top: .9rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: .94rem;
}

/* SHARED BUTTONS */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.2rem;
}

.btn,
.btn-red,
.btn-ghost {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: .95rem 2rem;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: none;
  transition: border-color .25s, background .25s, box-shadow .25s, color .25s, transform .2s;
}

.btn-red {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 48px var(--red-glow);
}

.btn-red::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s;
}

.btn-red:hover::after {
  transform: translateX(100%);
}

.btn-red:hover {
  background: var(--red2);
  transform: translateY(-2px);
}

.btn-ghost:hover,
.btn:hover {
  border-color: rgba(255,255,255,.3);
  color: var(--white);
  transform: translateY(-2px);
}

/* SHARED CONTACT STRIP AND FOOTER */
.contact-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 5rem 5vw;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.contact-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
}

.contact-kicker {
  color: var(--red2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
}

.contact-card a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 5rem 5vw 2.5rem;
  background: #060504;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.15fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 1.25rem;
}

.footer-grid p {
  max-width: 310px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-grid h2 {
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.footer-grid a:not(.brand) {
  display: block;
  margin: .7rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  transition: color .2s, padding-left .2s;
}

.footer-grid a:not(.brand):hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-social {
  display: flex;
  gap: .55rem;
  margin-top: 1.5rem;
}

.fsoc {
  width: 26px;
  height: 26px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 50%;
  border: 1px solid rgba(232,71,46,.45);
  background: rgba(200,50,28,.08);
  color: var(--red2) !important;
  font-size: 0 !important;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.fsoc svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.fsoc:hover {
  padding-left: 0 !important;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  color: #fff !important;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  color: var(--dim);
  font-size: .78rem;
}

.footer-bottom a {
  color: var(--red2);
  text-decoration: none;
}

/* SHARED ANIMATION HELPERS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .85s cubic-bezier(.25,1,.5,1), transform .85s cubic-bezier(.25,1,.5,1);
}

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

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .45s; }

@media (max-width: 1180px) {
  .brand-text { font-size: 1.12rem; }
  .desktop-nav { gap: 1rem; }
  .nav-cta { padding-inline: 1rem; }
}

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { min-height: 72px; }
}

@media (max-width: 900px) {
  .two-col,
  .contact-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    padding-top: 120px;
  }
}

@media (max-width: 640px) {
  body {
    cursor: auto;
  }

  .container {
    width: min(100% - 40px, 1180px);
  }

  .site-header {
    min-height: 74px;
    padding-inline: 20px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    max-width: 230px;
    white-space: normal;
    line-height: 1;
  }

  .menu-toggle,
  .btn,
  .btn-red,
  .btn-ghost {
    cursor: pointer;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-red,
  .btn-ghost {
    width: 100%;
  }

  #c-dot,
  #c-ring {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-text {
    max-width: 190px;
    font-size: 1.05rem;
  }
}
