/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #0B0B0B;
  --bg-2:          #111111;
  --bg-3:          #181818;
  --surface:       #1C1C1C;
  --surface-2:     #242424;
  --border:        rgba(255,255,255,0.07);
  --border-2:      rgba(255,255,255,0.12);
  --text:          #F0F0F0;
  --text-muted:    #888888;
  --text-dim:      #808080;   /* raised from #555 — passes 4.5:1 on #0B0B0B */
  --accent:        #D72638;
  --accent-hover:  #F02840;
  --accent-dim:    rgba(215,38,56,0.12);
  --color-success: #1a7a3c;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-w: 1200px;
  --section-py: 120px;
}

/* Smooth scroll only when user hasn't opted out */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 20px 20px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* =============================================
   FOCUS STYLES
   ============================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
/* Form inputs use box-shadow ring instead */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color var(--transition), box-shadow var(--transition),
              transform var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(215,38,56,0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(215,38,56,0.45);
  transform: translateY(-1px);
}
.btn--success {
  background: var(--color-success) !important;
  box-shadow: 0 4px 20px rgba(26,122,60,0.35) !important;
}
.btn--error {
  background: #7A0E1A !important;
  box-shadow: 0 4px 20px rgba(122,14,26,0.5) !important;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--full { width: 100%; }

/* =============================================
   BADGE
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(215,38,56,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-header--left {
  text-align: left;
  align-items: flex-start;
  max-width: 440px;
  margin: 0;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* =============================================
   GLASS CARD (retained for potential future use)
   ============================================= */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* =============================================
   INTRO OVERLAY
   ============================================= */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B0B0B;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
#intro-logo {
  width: 200px;
  max-width: 50vw;
  opacity: 0;
  filter: brightness(0) invert(1);
  will-change: opacity;
}

/* =============================================
   HERO CANVAS
   ============================================= */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  color: var(--text);
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
/* Header logo hidden for now — markup kept in place.
   Delete this rule to bring it back. Footer logo is unaffected. */
.nav .nav__logo { display: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 16px; }

/* Mobile CTA inside the open nav — hidden on desktop */
.nav__mobile-cta { display: none; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero__bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(26,10,10,0.72) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(215,38,56,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(215,38,56,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__headline {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__visual {
  position: relative;
}
.mockup-frame {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}
.mockup-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.mockup-bar span:first-child { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FEBC2E; }
.mockup-bar span:nth-child(3) { background: #28C840; }
.mockup-screen {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
}
.mockup-placeholder {
  text-align: center;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mockup-placeholder__icon { font-size: 40px; opacity: 0.4; }
.mockup-placeholder p { font-size: 14px; }
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.float-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.hero__float--1 { bottom: -16px; left: -24px; }
.hero__float--2 { top: -16px; right: -16px; }

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why {
  padding: var(--section-py) 0;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: visible;
  --shadow-opacity: 0;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 20px 56px rgba(0,0,0,0.55), 0 0 0 1px rgba(215,38,56,0.28);
  opacity: var(--shadow-opacity);
  pointer-events: none;
  z-index: -1;
}
.feature-card__icon { margin-bottom: 4px; }
.icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid rgba(215,38,56,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.icon-placeholder--lg {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card--featured {
  border-color: rgba(215,38,56,0.35);
  background: linear-gradient(160deg, rgba(215,38,56,0.06) 0%, var(--surface) 50%);
  box-shadow: 0 0 0 1px rgba(215,38,56,0.1);
}
.service-card--featured:hover {
  border-color: rgba(215,38,56,0.55);
  box-shadow: 0 8px 40px rgba(215,38,56,0.15);
}
.service-card__tag {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-card__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}
.service-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.service-card__list li::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D72638' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* =============================================
   PROCESS
   ============================================= */
.process {
  padding: var(--section-py) 0;
  overflow: hidden;
}
.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border-2) 60%, transparent 100%);
  z-index: 0;
}
.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
  position: relative;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.step__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step__card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step__card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.step__connector { display: none; }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }
.filter-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(215,38,56,0.3);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; }
.portfolio-card--wide { grid-column: span 2; }
.portfolio-card__img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.portfolio-card--wide .portfolio-card__img { aspect-ratio: 16/8; }
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .img-placeholder { transform: scale(1.03); }
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }

/* Always show overlay on touch devices — hover doesn't fire on mobile */
@media (hover: none) {
  .portfolio-card__overlay { opacity: 1; }
}

.portfolio-card__overlay h4 { font-size: 18px; font-weight: 700; }
.portfolio-card__cat {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.portfolio__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: var(--section-py) 0;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: visible;
  --shadow-opacity: 0;
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 20px 56px rgba(0,0,0,0.55), 0 0 0 1px rgba(215,38,56,0.22);
  opacity: var(--shadow-opacity);
  pointer-events: none;
  z-index: -1;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: #FEBC2E;
}
.testimonial-card__stars svg { flex-shrink: 0; }
.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  flex-grow: 1;
}
.testimonial-card blockquote p { margin: 0; }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.testimonial-card__author span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.client-strip {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.client-strip__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.client-strip__logos {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.client-logo {
  padding: 12px 32px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  margin: 6px;
  transition: border-color var(--transition), color var(--transition);
}
.client-logo:hover { border-color: var(--border-2); color: var(--text-muted); }

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--accent); }
.faq-item__question[aria-expanded="true"] { color: var(--accent); }
.faq-item__icon {
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item__answer.open { grid-template-rows: 1fr; }
.faq-item__answer > p {
  overflow: hidden;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(26,10,10,0.65) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(215,38,56,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__info h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.contact__info > p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.contact__alternatives {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.alt-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.alt-contact:hover { border-color: var(--accent); transform: translateX(4px); }
.alt-contact__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.alt-contact strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.alt-contact span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
/* Contact form — solid surface card (no glassmorphism) */
.contact__form {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
  min-height: 44px;   /* touch target compliance */
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215,38,56,0.1);
}
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--accent);
}
.form-error {
  font-size: 12px;
  color: var(--accent);
  margin-top: -4px;
  min-height: 16px;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Footer logo at 3x the base 36px. Scoped so it can't affect the header mark. */
.footer .nav__logo-img { height: 108px; }
.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}
.footer__socials {
  display: flex;
  gap: 8px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 13px;
  color: var(--text-dim);
}
.footer__bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-py: 88px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .process__timeline::before { display: none; }
  .faq__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 72px; }

  .nav__links, .nav__cta { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(11,11,11,0.97);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav__links.open + .nav__cta,
  .nav__links.open ~ .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Show Get a Quote inside mobile nav when open */
  .nav__links.open .nav__mobile-cta { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .hero__visual { order: -1; }
  .hero__float--1 { bottom: -12px; left: 0; }
  .hero__float--2 { top: -12px; right: 0; }

  .why__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }

  /* Process — single column with vertical connector */
  .process__timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process__timeline::before { display: none; }
  .process__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 0 0 32px 76px;
    gap: 0;
  }
  .process__step:last-child { padding-bottom: 0; }
  .step__number {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--bg);
    z-index: 1;
    flex-shrink: 0;
  }
  .step__card { gap: 6px; padding-top: 4px; }
  .process__step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 1px;
    background: var(--border-2);
    z-index: 0;
  }

  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio-card--wide { grid-column: span 1; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .section-header--left { max-width: 100%; }
}

@media (max-width: 480px) {
  :root { --section-py: 56px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .contact__form { padding: 28px 20px; }
}

/* =============================================
   BACKGROUND ORBS
   ============================================= */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  /* No will-change — these animate slowly via CSS, promoting layers wastes VRAM */
}
.bg-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(139,20,30,0.2) 0%, transparent 70%);
  top: -15%;
  right: -15%;
  animation: orbDrift1 28s ease-in-out infinite;
}
.bg-orb--2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at center, rgba(80,10,15,0.14) 0%, transparent 70%);
  top: 45%;
  left: -12%;
  animation: orbDrift2 22s ease-in-out infinite;
  animation-delay: -9s;
}
.bg-orb--3 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(100,12,18,0.11) 0%, transparent 70%);
  top: 28%;
  right: -10%;
  animation: orbDrift3 35s ease-in-out infinite;
  animation-delay: -17s;
}
@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0)       scale(1);    }
  33%      { transform: translate(-50px,-40px) scale(1.07); }
  66%      { transform: translate(30px,50px)  scale(0.93); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0)       scale(1);    }
  33%      { transform: translate(60px,-30px)  scale(0.95); }
  66%      { transform: translate(-40px,40px) scale(1.06); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0)        scale(1);    }
  25%      { transform: translate(-30px,60px)  scale(1.04); }
  50%      { transform: translate(50px,-50px)  scale(0.96); }
  75%      { transform: translate(-20px,-30px) scale(1.02); }
}

/* =============================================
   NOISE OVERLAY
   ============================================= */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 600;
  pointer-events: none;
  opacity: 0.038;
}

/* =============================================
   HERO THREE.JS CONTAINER
   ============================================= */
.hero__three-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
#hero-three {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  /* Stop all CSS keyframe animations */
  .bg-orb { animation: none; }

  /* Kill intro overlay immediately — JS skips it, but guard here too */
  #intro { display: none !important; }

  /* Instant transitions site-wide */
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  /* Keep FAQ accordion functional — just make it instant */
  .faq-item__answer {
    transition: none;
  }
}
