/* ================================================================
   Asquare AI Digital Labs — Global Stylesheet
   Brand: Deep Midnight Navy + Rose Gold | Premium Agency Design
================================================================ */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --navy-darkest: #020810;
  --navy-dark:    #060E1C;
  --navy:         #0A1628;
  --navy-mid:     #0F1D35;
  --navy-light:   #162540;
  --gold-light:   #E8C4A0;
  --gold:         #C4956A;
  --gold-dark:    #A0724A;
  --gold-glow:    rgba(196,149,106,0.35);
  --white:        #ffffff;
  --white-90:     rgba(255,255,255,0.9);
  --white-70:     rgba(255,255,255,0.7);
  --white-40:     rgba(255,255,255,0.55);
  --white-15:     rgba(255,255,255,0.15);
  --white-08:     rgba(255,255,255,0.08);
  --white-04:     rgba(255,255,255,0.04);
  --gradient:     linear-gradient(135deg, #E8C4A0 0%, #C4956A 55%, #A0724A 100%);
  --gradient-text:linear-gradient(135deg, #E8C4A0 0%, #C4956A 60%, #d4a070 100%);
  --gradient-blue:linear-gradient(135deg, #0A1628, #162540);
  --radius-xl:    16px;
  --radius-lg:    12px;
  --radius-md:    12px;
  --radius-sm:    8px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; /* scroll-behavior:smooth removed — Lenis handles desktop, native handles mobile */ }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-darkest);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* Keyboard focus ring — visible for keyboard nav, hidden for mouse/touch */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }
button { font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.gradient-text {
  color: var(--gold-light);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(196,149,106,0.3);
  padding: 0 0 8px 0;
  border-radius: 0;
  margin-bottom: 20px;
}
.section-tag::before {
  display: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(32px, calc(var(--sal) + 12px));
}
.section { padding: 130px 0; }
.section-sm { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.section-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--white-40);
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: var(--gradient);
  color: var(--navy-darkest);
  box-shadow: 0 4px 24px rgba(196,149,106,0.3);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196,149,106,0.45);
  }
}
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white-15);
  backdrop-filter: blur(10px);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196,149,106,0.15);
  }
}
.btn-outline:active { transform: scale(0.97); }
.btn-ghost {
  background: var(--white-08);
  color: var(--white);
  border: 1px solid var(--white-15);
}
.btn-ghost:hover {
  background: var(--white-15);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: scale(0.97); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ===== SAFE AREA INSETS (Dynamic Island / notch devices) ===== */
/* viewport-fit=cover is set on every page; these env() values provide the padding. */
:root {
  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  /* Push content below Dynamic Island / status bar */
  padding: max(24px, var(--sat)) 0 16px;
  transition: padding 300ms var(--ease-out), background 300ms, border-color 200ms, box-shadow 300ms;
}
.navbar.scrolled {
  padding: max(14px, var(--sat)) 0 10px;
  background: rgba(2,8,16,0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--white-08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  /* Honour side safe areas (landscape notch on iPhone) */
  padding: 0 max(32px, calc(var(--sal) + 16px)) 0 max(32px, calc(var(--sar) + 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  z-index: 901;
}
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-70);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  background: rgba(8,9,26,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-size: 0.875rem;
  color: var(--white-70);
}
.dropdown-item:hover {
  background: var(--white-08);
  color: var(--white);
}
.dropdown-icon {
  width: 32px; height: 32px;
  background: var(--white-08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.dropdown-item span { font-size: 0.8rem; color: var(--white-40); display: block; }

.nav-cta-wrap { display: flex; align-items: center; gap: 16px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  z-index: 901;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(4,5,15,0.98);
  z-index: 899;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  /* safe area padding so content clears the Dynamic Island and home bar */
  padding-top:    max(40px, var(--sat));
  padding-bottom: max(40px, var(--sab));
  padding-left:   max(24px, var(--sal));
  padding-right:  max(24px, var(--sar));
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-link { font-size: 1.4rem; }
.mobile-menu .nav-cta-wrap { flex-direction: column; margin-top: 16px; }

/* Mobile services accordion */
.mob-svc-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }
.mob-svc-toggle { cursor: pointer; }
.mob-svc-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.mob-svc-arrow { font-size: 0.85rem; color: var(--gold); transition: transform 0.3s; }
.mob-svc-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mob-svc-sub.open { max-height: 500px; }
.mob-sub-link {
  font-size: 1rem !important;
  color: var(--white-40) !important;
  padding: 2px 0;
}
.mob-sub-link:hover { color: var(--gold) !important; }

/* ===== HERO BASE ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(232,196,160,0.08);
  border: 1px solid rgba(232,196,160,0.2);
  padding: 9px 18px;
  border-radius: 100px;
  margin-bottom: 36px;
}
.live-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
}

.hero-h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 900px;
}
.hero-h1 .word { display: inline-block; overflow: hidden; }
.hero-h1 .word span { display: inline-block; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white-40);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--white-40);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-mouse::after {
  content: '';
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* ===== TICKER ===== */
.ticker-section {
  overflow: hidden;
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
  background: var(--navy-mid);
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 35s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  white-space: nowrap;
}
.ticker-item span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-40);
}
.ticker-sep {
  color: var(--gold);
  font-size: 0.6rem;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 250ms var(--ease-out), border-color 200ms, box-shadow 250ms var(--ease-out);
  transform-style: preserve-3d;
  cursor: auto;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(196,149,106,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: rgba(196,149,106,0.25);
  transform: translateY(-8px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  border-color: rgba(196,149,106,0.35);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.card-num {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white-15);
  letter-spacing: 0.1em;
}
.card-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--white-40);
  line-height: 1.75;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.card-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--white-08);
  color: var(--white-40);
  border: 1px solid var(--white-08);
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  transition: gap 0.25s;
  position: relative;
  z-index: 1;
}
.card-cta:hover { gap: 12px; }
.card-cta svg { width: 16px; height: 16px; }

/* ===== STATS ===== */
.stats-band {
  background: var(--navy-mid);
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--white-08);
}
.stat-box {
  padding: 60px 40px;
  text-align: center;
  border-right: 1px solid var(--white-08);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.stat-box:last-child { border-right: none; }
.stat-box:hover { background: var(--white-04); }
.stat-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}
.stat-box:hover::before { transform: scaleX(1); }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.stat-value .unit {
  font-size: 1.6rem;
  margin-top: 8px;
  -webkit-text-fill-color: var(--gold);
  color: var(--gold);
  background: none;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--white-40);
  margin-top: 10px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::after {
  content: '';
  position: absolute;
  top: 42px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--navy-mid), var(--gold) 30%, var(--gold) 70%, var(--navy-mid));
  opacity: 0.3;
}
.process-item {
  padding: 0 32px;
  text-align: center;
}
.process-num {
  width: 84px; height: 84px;
  margin: 0 auto 32px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy-darkest);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px var(--gold-glow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.process-item:hover .process-num {
  transform: scale(1.08);
  box-shadow: 0 16px 48px var(--gold-glow);
}
.process-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.process-item p { font-size: 0.875rem; color: var(--white-40); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s var(--ease-out);
}
.testi-card:hover {
  border-color: rgba(196,149,106,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.testi-card.featured {
  background: var(--navy);
  border-color: rgba(196,149,106,0.25);
  box-shadow: 0 0 0 1px rgba(196,149,106,0.08);
}
.testi-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 20px; }
.testi-quote { font-size: 0.95rem; color: var(--white-70); line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-name { font-size: 0.9rem; font-weight: 700; }
.testi-role { font-size: 0.78rem; color: var(--white-40); margin-top: 2px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0D1F38 100%);
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(196,149,106,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
}
.cta-inner p {
  font-size: 1.1rem;
  color: var(--white-40);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT FORM ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.contact-info > p { color: var(--white-40); line-height: 1.8; margin-bottom: 48px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--white-08);
  border: 1px solid var(--white-08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-detail-text strong { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 3px; color: var(--white-70); letter-spacing: 0.04em; }
.contact-detail-text a, .contact-detail-text span { font-size: 0.9rem; color: var(--white-40); transition: color 0.2s; }
.contact-detail-text a:hover { color: var(--gold-light); }

.form-box {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 52px;
  position: relative;
  overflow: hidden;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-40);
}
.form-input, .form-select, .form-textarea {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: color 200ms, background 200ms, border-color 200ms;
  width: 100%;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-select { }
.form-select option { background: var(--navy-dark); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(196,149,106,0.05);
  box-shadow: 0 0 0 3px rgba(196,149,106,0.1);
}
.checkbox-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--white-70);
  transition: color 180ms, background 180ms;
  user-select: none;
}
.check-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(196,149,106,0.08);
  color: var(--white);
}
.check-option input { accent-color: var(--gold); width: 14px; height: 14px; }
.form-note { font-size: 0.75rem; color: var(--white-15); text-align: center; }
.form-success {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: flex; }
.success-check {
  width: 64px; height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--navy-darkest);
}
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--white-40); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-darkest);
  border-top: 1px solid var(--white-08);
  padding: 90px 0 max(40px, calc(var(--sab) + 24px));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 70px;
}
.footer-brand .nav-logo { margin-bottom: 22px; }
.footer-about {
  font-size: 0.875rem;
  color: var(--white-40);
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 16px;
}
.footer-legal { font-size: 0.72rem; color: var(--white-15); margin-top: 12px; }
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--white-40);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col > p { font-size: 0.875rem; color: var(--white-40); line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 42px; height: 42px;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
  transition: color 200ms, background 200ms, border-color 200ms;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover {
  background: var(--gradient);
  color: var(--navy-darkest);
  border-color: transparent;
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--white-08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--white-15);
}
.footer-bottom a { color: var(--gold); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* delay helpers */
.delay-1 { transition-delay: 0.06s !important; }
.delay-2 { transition-delay: 0.12s !important; }
.delay-3 { transition-delay: 0.18s !important; }
.delay-4 { transition-delay: 0.24s !important; }
.delay-5 { transition-delay: 0.30s !important; }
.delay-6 { transition-delay: 0.36s !important; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  position: relative;
  /* 160px clears the tallest navbar state; safe-area pushes further on notch devices */
  padding: max(160px, calc(120px + var(--sat))) 0 100px;
  overflow: hidden;
  background: var(--navy-darkest);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(10,22,40,0.9) 0%, transparent 100%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(196,149,106,0.07) 0%, transparent 100%);
}
.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 30%, transparent 100%);
}
.page-header-inner { position: relative; z-index: 1; }
/* Optional photo texture behind page-header — set background-image inline */
.page-header-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--white-40);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--white-40); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--white-15); }
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  max-width: 800px;
  margin-bottom: 24px;
}
.page-header p {
  font-size: 1.15rem;
  color: var(--white-40);
  max-width: 600px;
  line-height: 1.75;
}

/* ===== Article inline images ===== */
.article-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(196,149,106,0.18);
  margin: 32px 0;
}
.article-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.5) saturate(0.4);
}
.article-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2,8,16,0.65) 100%);
  pointer-events: none;
}
.article-img-wrap figcaption {
  padding: 8px 14px;
  font-size: 0.72rem;
  color: rgba(240,236,230,0.22);
  text-align: right;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(2,8,16,0.5);
}

/* ===== SERP visualization card (service pages) ===== */
.serp-visual { max-width: 640px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.03); }
.serp-bar { background: rgba(255,255,255,.05); padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.serp-dots { display: flex; gap: 5px; }
.serp-dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.serp-search-box { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 6px; padding: 5px 12px; font-size: .78rem; color: rgba(240,236,230,.5); font-family: 'Space Grotesk', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.serp-result { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; }
.serp-result.r1 { background: rgba(196,149,106,.07); border-color: rgba(196,149,106,.18); }
.serp-pos { font-size: .7rem; font-weight: 800; color: rgba(240,236,230,.25); min-width: 14px; margin-top: 3px; flex-shrink: 0; }
.serp-result.r1 .serp-pos { color: var(--gold, #C4956A); }
.serp-domain { font-size: .7rem; color: #5fa85f; margin-bottom: 2px; line-height: 1.3; }
.serp-title { font-size: .84rem; font-weight: 600; color: rgba(240,236,230,.5); line-height: 1.3; margin-bottom: 3px; }
.serp-result.r1 .serp-title { color: #7ab3ff; }
.serp-snippet { font-size: .76rem; color: rgba(240,236,230,.35); line-height: 1.5; }
.serp-cap { font-size: .72rem; color: rgba(240,236,230,.2); padding: 8px 18px; text-align: center; border-top: 1px solid rgba(255,255,255,.05); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--white-08);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-light); }
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--white-15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--gold); color: var(--gold); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.3s;
  font-size: 0.925rem;
  color: var(--white-40);
  line-height: 1.8;
  padding-bottom: 0;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 24px;
}

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.bento-card {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.35s var(--ease-out);
}
.bento-card:hover {
  border-color: rgba(196,149,106,0.2);
  transform: scale(1.01);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-2-row { grid-row: span 2; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s;
}

/* ===== UTILITY ===== */
.text-gold { color: var(--gold-light); }
.text-muted { color: var(--white-40); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-darkest { background: var(--navy-darkest); }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-08), transparent);
  margin: 0;
}

/* ===== SERVICE PAGE SPECIFICS ===== */
.service-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(196,149,106,0.2);
  max-width: fit-content;
}
.service-hero-stat .val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.service-hero-stat .lbl {
  font-size: 0.8rem;
  color: var(--white-40);
  margin-top: 6px;
}

/* ===== RESPONSIVE ===== */
/* ===================================================
   RESPONSIVE — 1280px (large laptop)
=================================================== */
@media (max-width: 1280px) {
  .hero-split-h1 { font-size: clamp(3rem, 6.5vw, 6rem); }
}

/* ===================================================
   RESPONSIVE — 1100px (small laptop / large tablet)
=================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner .stat-box:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: 1 / -1; }
  /* Homepage editorial list */
  .svc-row { grid-template-columns: 44px 1fr 30px !important; }
  .svc-desc { display: none !important; }
  /* Case study split */
  .case-split { gap: 48px; }
  .case-mega-num { font-size: clamp(4rem, 10vw, 8rem); }
}

/* ===================================================
   RESPONSIVE — 900px (tablet portrait)
=================================================== */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-grid::after { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
  .nav-menu { display: none; }
  .nav-cta-wrap .btn { display: none; }
  .hamburger { display: flex; }
  /* Homepage hero split → stacked */
  .hero-split { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-split-left { padding: 120px 28px 56px !important; }
  .hero-split-right { height: 65vw !important; min-height: 340px !important; }
  /* Case study */
  .case-split { grid-template-columns: 1fr !important; gap: 48px !important; }
  /* Stats */
  .stats-band { grid-template-columns: 1fr 1fr !important; }
  .stat-divider { display: none !important; }
  .stat-col { border-bottom: 1px solid var(--white-08) !important; padding: 44px 24px !important; }
  /* Process */
  .process-grid-v2 { grid-template-columns: 1fr 1fr !important; }
  .process-v2 { border-bottom: 1px solid var(--white-08) !important; }
  /* Why list */
  .why-row { gap: 24px !important; }
  /* Service list */
  .svc-row { grid-template-columns: 40px 1fr 24px !important; gap: 20px !important; }
  /* Sections */
  .ed-section { padding: 80px 0 !important; }
  /* Hero split actions stack on narrow */
  .hero-split-actions { flex-direction: column; gap: 12px; }
  .hero-split-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-trust-row { gap: 16px; }
}

/* ===================================================
   RESPONSIVE — 640px (mobile)
=================================================== */
@media (max-width: 640px) {
  .container { padding: 0 max(18px, calc(var(--sal) + 10px)); }
  .page-header { padding-top: max(130px, calc(100px + var(--sat))); padding-bottom: 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr !important; }
  .checkbox-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: auto; }
  .service-hero-stats { grid-template-columns: 1fr 1fr; }
  /* Homepage specifics */
  .hero-split-h1 { font-size: 2.8rem !important; }
  .hero-split-right { height: 85vw !important; }
  .stats-band { grid-template-columns: 1fr !important; }
  .process-grid-v2 { grid-template-columns: 1fr !important; }
  .why-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .why-num { font-size: 2rem !important; }
  .svc-row { grid-template-columns: 1fr 24px !important; gap: 16px !important; }
  .svc-num { display: none !important; }
  .ed-title { font-size: 2rem !important; }
  .ed-section { padding: 60px 0 !important; }
  /* Case metrics 2-col on mobile */
  .case-metric-grid { grid-template-columns: 1fr 1fr !important; }
  .case-mega-num { font-size: 4.5rem !important; }
  /* Footer mobile */
  .footer { padding: 60px 0 40px; }
  .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand .logo-mark { width: 56px; height: 56px; border-radius: 12px; }
  .footer-brand .logo-name { font-size: 1.3rem; }
  .footer-about { max-width: 100%; }
  .footer-col:last-child a[href*="contact"] { margin-top: 20px; }
  .footer-col:last-child { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-col:last-child .btn { align-self: flex-start; margin-top: 24px !important; }
  .footer-col:last-child a[href^="mailto"] { margin-top: 4px; display: block; }
  /* Page headers */
  .page-header-inner h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* ── PAGE HEADER — instant CSS animation, no JS glitch ── */
.page-header .reveal,
.page-header .reveal.delay-1,
.page-header .reveal.delay-2,
.page-header .reveal.delay-3 {
  animation: pageHeaderIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.page-header .reveal.delay-1 { animation-delay: 0.12s; }
.page-header .reveal.delay-2 { animation-delay: 0.24s; }
.page-header .reveal.delay-3 { animation-delay: 0.36s; }
@keyframes pageHeaderIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
