/* =============================================================================
   FABRI-TECH ENGINEERING — styles.css
   Production Build | Industrial Luxury
   Fonts: Sora (headings) + Inter (body) + JetBrains Mono (labels)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@200;300;400;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void:      #07090C;
  --bg-base:      #0A0D10;
  --bg-surface:   #0F1318;
  --bg-raised:    #141920;
  --bg-elevated:  #1A2028;

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.04);
  --border-dim:     rgba(255,255,255,0.07);
  --border-mid:     rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.16);

  /* Typography */
  --text-white:    #F2F5F8;
  --text-primary:  #D8DDE4;
  --text-secondary:#9AA3AE;
  --text-muted:    #5A6370;
  --text-faint:    #3A4048;

  /* Accent — Red-Oxide / Crimson */
  --red:           #BF3B2C;
  --red-hover:     #D44E3E;
  --red-dim:       #9A2E21;
  --red-glow:      rgba(191,59,44,0.18);
  --red-tint:      rgba(191,59,44,0.06);

  /* Typography families */
  --f-head: 'Sora', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Easing */
  --ease:    cubic-bezier(0.22, 1.0, 0.36, 1.0);
  --ease-in: cubic-bezier(0.4, 0.0, 1.0, 1.0);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1.0);

  /* Layout */
  --nav-h:    100px;
  --gutter:   clamp(24px, 5vw, 80px);
  --max-w:    1440px;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Lenis smooth scroll integration */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body, p {
  background-color: var(--bg-base);
  color: #f1f5f9;
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 1.125rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide default cursor on desktop (custom cursor replaces it) */
@media (pointer: fine) {
  body, body * {
    cursor: none !important;
  }
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: var(--f-body);
  color: var(--text-primary);
  border-radius: 0;
}

/* Scrollbar */
::-webkit-scrollbar              { width: 3px; }
::-webkit-scrollbar-track        { background: var(--bg-void); }
::-webkit-scrollbar-thumb        { background: var(--red-dim); }
::-webkit-scrollbar-thumb:hover  { background: var(--red); }

/* Selection */
::selection {
  background: var(--red);
  color: var(--text-white);
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────────────────────── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

#cursor-dot {
  will-change: transform;
  transform: translateZ(0);
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#cursor-ring {
  will-change: transform;
  transform: translateZ(0);
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(191,59,44,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width  0.35s var(--ease),
    height 0.35s var(--ease),
    background 0.3s,
    opacity 0.3s,
    border-color 0.3s;
}

#cursor-ring.is-hovered {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.92);
  border-color: transparent;
  mix-blend-mode: difference;
}

#cursor-ring.is-clicking {
  width: 18px;
  height: 18px;
  mix-blend-mode: normal;
}

@media (hover: none) or (pointer: coarse) {
  #cursor { display: none; }
}

/* ── NAVIGATION ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  /* start transparent */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    backdrop-filter 0.5s;
}

.nav.is-scrolled {
  background: rgba(10, 13, 16, 0.82);
  border-bottom-color: var(--border-dim);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 1px 32px rgba(0,0,0,0.28);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ═══ MAGIC LOGO FIX ═══
   Inverts the white background JPEG so it renders as transparent-black on dark UI.
   mix-blend-mode: screen eliminates any remaining white. */
.nav-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: invert(1) contrast(1.1) brightness(1.2);
  mix-blend-mode: screen;
}

.footer-brand-logo {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  filter: invert(1) contrast(1.1) brightness(1.2);
  mix-blend-mode: screen;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-white);
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--f-mono);
  font-size: 0.50rem;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--f-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
  flex-shrink: 0;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
}

.nav-cta:hover {
  color: var(--text-white);
}

.nav-cta:hover::before {
  transform: translateY(0);
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999 !important;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 9999 !important;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 60px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav-mobile.is-open {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
  display: flex;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.nav-mobile-links a {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.25s;
}

.nav-mobile-links a:hover,
.nav-mobile-links a[aria-current="page"] {
  color: var(--red);
}

.nav-mobile-footer {
  margin-top: 48px;
}

.nav-mobile-contact {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.nav-mobile-contact a {
  color: var(--text-secondary);
  transition: color 0.25s;
}

.nav-mobile-contact a:hover {
  color: var(--red);
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s, transform 0.2s;
  will-change: transform;
  white-space: nowrap;
}

/* Primary */
.btn-primary {
  background: var(--red);
  color: var(--text-white);
  border: 1px solid var(--red);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-hover);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
}

.btn-primary:hover { color: var(--text-white); }
.btn-primary:hover::before { transform: translateY(0); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-raised);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
}

.btn-ghost:hover {
  color: var(--text-white);
  border-color: var(--border-strong);
}

.btn-ghost:hover::before { transform: translateY(0); }

/* Shared inner span keeps text above ::before */
.btn > span,
.btn > svg {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Full-bleed background image — cinematic slow zoom */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  will-change: transform;
  transform: translateZ(0);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  animation: heroPan 24s ease-in-out infinite alternate;
}

@keyframes heroPan {
  from { transform: scale(1.10) translateX(-1.5%); }
  to   { transform: scale(1.00) translateX(0); }
}

/* Multi-layer dark vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* bottom heavy gradient — main content area */
    linear-gradient(to top,
      rgba(7,9,12,0.97) 0%,
      rgba(7,9,12,0.75) 28%,
      rgba(7,9,12,0.30) 55%,
      rgba(7,9,12,0.55) 100%),
    /* left edge vignette */
    radial-gradient(ellipse 55% 100% at 0% 50%,
      rgba(7,9,12,0.65) 0%,
      transparent 70%),
    /* top film-burn */
    linear-gradient(to bottom,
      rgba(7,9,12,0.55) 0%,
      transparent 22%);
}

/* Hero content */
.hero-body {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 0;
  max-width: var(--max-w);
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.10s forwards;
}

.hero-eyebrow-bar {
  width: 36px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-eyebrow-text {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-headline {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 8.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.22s forwards;
}

.hero-headline em {
  font-style: normal;
  /* outline text — premium touch */
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,245,248,0.30);
}

.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.40s forwards;
}

.hero-desc {
  font-size: 1.125rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.2s forwards;
}

.hero-scroll-label {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--red) 0%, transparent 100%);
  animation: scrollPulse 2.6s ease-in-out infinite;
}

/* Stats bar — bottom of hero */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-dim);
  background: rgba(7,9,12,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-stat {
  padding: 22px 32px;
  border-right: 1px solid var(--border-dim);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 2.0rem;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-value sup {
  font-size: 1rem;
  color: var(--red);
  vertical-align: super;
  line-height: 0;
}

.hero-stat-label {
  font-family: var(--f-body);
  font-size: 0.70rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── TICKER ────────────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 14px 0;
  position: relative;
}

/* Fade edges */
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.ticker-track {
  will-change: transform;
  transform: translateZ(0);
  display: flex;
  width: max-content;
  animation: tickerScroll 34s linear infinite;
  gap: 0;
}

.ticker:hover .ticker-track {
  will-change: transform;
  transform: translateZ(0);
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 38px;
  font-family: var(--f-body);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.25s;
}

.ticker-item:hover {
  color: var(--text-muted);
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── SECTION UTILITIES ─────────────────────────────────────────────────────── */
.section {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
}

.section--void     { background: var(--bg-void); }
.section--surface  { background: var(--bg-surface); }
.section--raised   { background: var(--bg-raised); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-tag-bar {
  width: 28px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.section-tag-text {
  font-family: var(--f-mono);
  font-size: 0.60rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--red);
}

.section-headline {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 26px;
}

.section-headline em {
  font-style: normal;
  color: var(--red);
}

.section-body {
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.88;
}

/* ── ABOUT SPLIT (homepage) ─────────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
}

.about-split-media {
  position: relative;
  /* Bulletproof image container */
  overflow: hidden;
}

.about-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.72) saturate(0.65);
  transition: transform 1.2s var(--ease), filter 0.9s;
}

.about-split-media:hover img {
  transform: scale(1.04);
  filter: brightness(0.82) saturate(0.78);
}

/* Right-side gradient bleed */
.about-split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, var(--bg-surface) 100%);
  pointer-events: none;
}

.about-split-content {
  background: var(--bg-surface);
  padding: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-split-content .section-body {
  margin-bottom: 20px;
  max-width: 480px;
}

/* Metric grid — sits inside about-split-content */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-dim);
  margin-top: 44px;
}

.metric-cell {
  padding: 24px 28px;
  border-right: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s;
}

/* Remove double-borders */
.metric-cell:nth-child(2n)    { border-right: none; }
.metric-cell:nth-child(n + 3) { border-bottom: none; }

.metric-cell:hover {
  background: var(--bg-elevated);
}

.metric-value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1;
  margin: 0 0 6px 0;
  padding: 0;
}

.metric-value .counter {
  display: inline-block;
  min-width: 1.2ch; /* prevent layout shift during count */
  font-variant-numeric: tabular-nums;
}

.text-red {
  color: var(--red);
  font-size: 1.1rem;
  vertical-align: super;
  line-height: 0;
}

.metric-label {
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── SERVICES LIST (homepage) ───────────────────────────────────────────────── */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 72px;
}

.services-list-wrap {
  display: block;
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  transition: padding-left 0.4s var(--ease);
}

.service-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

/* Left accent bar */
.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.42s var(--ease);
}

.service-row:hover {
  padding-left: 18px;
}

.service-row:hover::before {
  transform: scaleY(1);
}

.service-row-num {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.service-row-info {
  flex: 1;
}

.service-row-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 6px;
  transition: color 0.3s;
}

.service-row:hover .service-row-title {
  color: var(--red);
}

.service-row-desc {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 400px;
}

.service-row-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  flex-shrink: 0;
}

.service-row:hover .service-row-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── PROJECT CARDS — HOMEPAGE ───────────────────────────────────────────────── */
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

/* ─ Featured grid — 2 columns, 2 rows ─ */
.featured-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto;
  gap: 14px;
  /* ── BULLETPROOF: all cards same height ── */
  align-items: stretch;
}

.feat-card {
  position: relative;
  overflow: hidden; /* ── contains image ── */
  cursor: pointer;
  /* height: 100% is implicit in grid stretch */
}

.feat-card-a {
  grid-row: span 2;
  min-height: 560px;
}

.feat-card-b,
.feat-card-c {
  min-height: 270px;
}

/* Bulletproof image inside card */
.feat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.60) saturate(0.65);
  transition: transform 0.95s var(--ease), filter 0.8s;
}

.feat-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.78) saturate(0.85);
}

.feat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,9,12,0.92) 0%,
    rgba(7,9,12,0.15) 50%,
    transparent 75%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px;
  transition: background 0.5s;
}

.feat-card:hover .feat-card-overlay {
  background: linear-gradient(
    to top,
    rgba(7,9,12,0.97) 0%,
    rgba(7,9,12,0.35) 55%,
    transparent 78%
  );
}

.feat-tag {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.feat-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text-white);
}

.feat-card-a .feat-title {
  font-size: 1.55rem;
}

/* ── CTA BAND ──────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 110px) var(--gutter);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Left accent */
.cta-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}

/* Ghost watermark text */
.cta-bg-text {
  position: absolute;
  right: calc(var(--gutter) - 20px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(100px, 18vw, 220px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(26, 32, 40, 0.55);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.cta-band-headline {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.98;
  color: var(--text-white);
  position: relative;
  z-index: 1;
}

.cta-band-headline em {
  font-style: normal;
  color: var(--red);
}

.cta-band-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── PAGE HERO (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 44px) var(--gutter) 44px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}

/* Subtle red radial */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 90% 50%, rgba(191,59,44,0.07), transparent 70%);
  pointer-events: none;
}

.page-hero-index {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.60rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.page-hero-headline {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.94;
  color: var(--text-white);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.page-hero-headline em {
  font-style: normal;
  color: var(--red);
}

.page-hero-sub {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.80;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

/* Large background number */
.page-hero-num {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(150px, 22vw, 300px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(20,25,32,0.7);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── SERVICES PAGE ─────────────────────────────────────────────────────────── */

/* Full-width accordion list wrapper */
.services-full-list {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  background: var(--bg-void);
}

.service-accordion-row {
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s;
}

.service-accordion-row:first-child {
  border-top: 1px solid var(--border-dim);
}

.service-accordion-header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0;
  cursor: pointer;
}

.service-accordion-num {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.service-accordion-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-white);
  transition: color 0.3s;
}

.service-accordion-row:hover .service-accordion-name,
.service-accordion-row.open .service-accordion-name {
  color: var(--red);
}

.service-accordion-tag {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding: 5px 14px;
  border: 1px solid rgba(191,59,44,0.35);
  background: var(--red-tint);
  white-space: nowrap;
}

.service-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.60s var(--ease);
}

.service-accordion-row.open .service-accordion-body {
  max-height: 500px;
}

.service-accordion-inner {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding-bottom: 40px;
}

.service-accordion-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 22px;
}

.service-accordion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-pill {
  padding: 5px 14px;
  border: 1px solid var(--border-mid);
  font-family: var(--f-body);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Capability section wrapper */
.capability-section {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  background: var(--bg-surface);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-label-dash {
  width: 28px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.section-label-text {
  font-family: var(--f-mono);
  font-size: 0.60rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--red);
}

.cap-desc {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.72;
  flex-grow: 1;
}

/* Background number alias for services page hero */
.page-hero-bg-num {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(150px, 22vw, 300px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(20,25,32,0.7);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Legacy accordion classes (general) */
.accordion {
  display: block;
}

.accordion-row {
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s;
}

.accordion-row:first-child {
  border-top: 1px solid var(--border-dim);
}

.accordion-header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0;
  cursor: pointer;
}

.accordion-num {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.accordion-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-white);
  transition: color 0.3s;
}

.accordion-row:hover .accordion-title,
.accordion-row.is-open .accordion-title {
  color: var(--red);
}

.accordion-tag {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding: 5px 14px;
  border: 1px solid rgba(191,59,44,0.35);
  background: var(--red-tint);
  white-space: nowrap;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.60s var(--ease);
}

.accordion-row.is-open .accordion-body {
  max-height: 500px;
}

.accordion-inner {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding-bottom: 40px;
}

.accordion-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 22px;
}

.accordion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 5px 14px;
  border: 1px solid var(--border-mid);
  font-family: var(--f-body);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Capability Grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Proper borders — no gap trick */
  border: 1px solid var(--border-dim);
  margin-top: 60px;
}

.cap-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border-dim);
  /* Cards must stretch */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.3s;
}

.cap-card:last-child {
  border-right: none;
}

.cap-card:hover {
  background: var(--bg-elevated);
}

.cap-icon {
  width: 38px;
  height: 38px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.cap-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 12px;
}

.cap-body {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.72;
  /* Pushes content flush, optional */
  flex-grow: 1;
}

/* ── PROJECTS PAGE ─────────────────────────────────────────────────────────── */
.projects-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-tint);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECT CARD GRID
   ▸ align-items: stretch   → cards fill row height equally
   ▸ Cards use height:100%, display:flex, flex-direction:column
   ▸ Image wrappers use overflow:hidden + absolute-fill img
───────────────────────────────────────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch; /* ← strict requirement */
}

.proj-card {
  position: relative;
  overflow: hidden; /* ← strict: contains image */
  cursor: pointer;
  /* Full flex column so overlay fills card */
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  background: var(--bg-raised);
}

.proj-card.wide {
  grid-column: span 2;
}

.proj-card.tall {
  grid-row: span 2;
}

/* Bulletproof image fill */
.proj-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.58) saturate(0.60);
  transition: transform 0.9s var(--ease), filter 0.7s;
}

.proj-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.76) saturate(0.85);
}

.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,9,12,0.92) 0%,
    rgba(7,9,12,0.10) 50%,
    transparent 72%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
  transition: background 0.5s;
}

.proj-card:hover .proj-card-overlay {
  background: linear-gradient(
    to top,
    rgba(7,9,12,0.97) 0%,
    rgba(7,9,12,0.30) 55%,
    transparent 76%
  );
}

.proj-cat {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 7px;
}

.proj-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.18;
  color: var(--text-white);
  margin-bottom: 8px;
}

.proj-card.wide .proj-name {
  font-size: 1.35rem;
}

.proj-detail {
  font-size: 0.80rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.4s;
}

.proj-card:hover .proj-detail {
  max-height: 80px;
  opacity: 1;
}

.proj-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.proj-card:hover .proj-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── LIGHTBOX ──────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(7,9,12,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 1080px;
  width: 100%;
}

/* Bulletproof lightbox image */
.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  object-position: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.lightbox-close:hover {
  border-color: var(--red);
  color: var(--red);
}

.lightbox-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lightbox-cat {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}

.lightbox-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-white);
}

.lightbox-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.lightbox-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.lightbox-nav-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── ABOUT PAGE ────────────────────────────────────────────────────────────── */
.about-story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
  margin-top: 72px;
}

.about-media-wrap {
  position: relative;
}

.about-media-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.78) saturate(0.60);
  border: 1px solid var(--border-dim);
}

.about-media-accent {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 88px;
  height: 88px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  pointer-events: none;
}

.about-text p {
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.84;
  margin-bottom: 22px;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-dim);
  margin-top: 64px;
  /* Equal card heights */
  align-items: stretch;
}

.value-card {
  padding: 44px 36px;
  border-right: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  /* Full flex column */
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.3s;
  overflow: hidden;
}

.value-card:nth-child(3n) { border-right: none; }
.value-card:nth-child(n + 4) { border-bottom: none; }

.value-card:hover { background: var(--bg-elevated); }

/* Left accent on hover */
.value-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.value-card:hover::before { transform: scaleY(1); }

.value-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.value-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.10rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 14px;
}

.value-body {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.76;
  flex-grow: 1;
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-dim);
  align-items: stretch;
}

.stat-cell {
  padding: 40px 36px;
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.3s;
}

.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--bg-elevated); }

.stat-value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
}

/* ── CONTACT PAGE ──────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
  margin-top: 72px;
}

/* Form */
.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 0.93rem;
  font-weight: 400;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  transition: border-color 0.3s, background 0.3s;
}

.form-control::placeholder { color: var(--text-faint); }

.form-control:focus {
  border-color: var(--red);
  background: var(--bg-elevated);
}

textarea.form-control {
  resize: vertical;
  min-height: 136px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 15px 28px;
  background: var(--red);
  color: var(--text-white);
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
  margin-top: 10px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-dim);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
}

.form-submit:hover::before { transform: translateY(0); }
.form-submit > span { position: relative; z-index: 1; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(191,59,44,0.35);
  background: var(--red-tint);
  font-family: var(--f-mono);
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  color: var(--text-secondary);
}

/* Contact info */
.contact-info-item {
  margin-bottom: 40px;
}

.contact-info-label {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 9px;
}

.contact-info-value {
  font-size: 1.0rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-info-value a {
  color: var(--text-secondary);
  transition: color 0.25s;
}

.contact-info-value a:hover { color: var(--red); }

.contact-divider {
  width: 100%;
  height: 1px;
  background: var(--border-dim);
  margin: 40px 0;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-top: 20px;
  filter: grayscale(1) invert(1) contrast(1.2);
}

.process-step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.process-step:last-child { border-bottom: none; }

.process-num {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--red);
  white-space: nowrap;
  padding-top: 4px;
  flex-shrink: 0;
}

.process-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 5px;
}

.process-body {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-dim);
  padding: clamp(60px, 8vw, 88px) var(--gutter) 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 34px;
}

/* Logo fix applied at top of stylesheet */
.footer-brand-logo {
  height: 54px;
  max-width: 200px;
  margin-bottom: 18px;
}

.footer-brand-desc {
  font-size: 0.86rem;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-heading {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-nav li a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.footer-nav li a:hover { color: var(--text-white); }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  width: 15px;
  height: 15px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.60;
}

.footer-contact-text a {
  color: var(--text-secondary);
  transition: color 0.25s;
}

.footer-contact-text a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.28s, background 0.28s;
}

.footer-social:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
}

/* ── SCROLL REVEAL ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.is-visible,
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy stagger delays */
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }
.reveal-d5 { transition-delay: 0.36s; }

/* Stagger delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── HOVER PHYSICS ────────────────────────────────────────────────────────── */

/* Project card lift on hover */
.proj-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

/* Featured card lift */
.feat-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

/* Button subtle lift */
.btn {
  transition: color 0.35s, border-color 0.35s,
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ── KEYFRAMES ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.65); transform-origin: top; }
  50%       { opacity: 1.00; transform: scaleY(1.00); }
}

@keyframes tickerScroll {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

/* ─── 1200px ─── */
@media (max-width: 1200px) {
  :root { --gutter: clamp(24px, 4vw, 56px); }

  .about-split { grid-template-columns: 1fr; }
  .about-split-media { min-height: 440px; }
  .about-split-media::after { display: none; }

  .services-intro { grid-template-columns: 1fr; gap: 36px; }

  .featured-grid { grid-template-columns: 1fr; }
  .feat-card-a { min-height: 440px; grid-row: auto; }
  .feat-card-b, .feat-card-c { min-height: 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }


  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card:nth-child(even) { border-right: none; }
  .cap-card:nth-child(n+3) { border-top: 1px solid var(--border-dim); }

  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card.wide { grid-column: span 2; }
  .proj-card.tall { grid-row: auto; }

  .about-story-grid { grid-template-columns: 1fr; gap: 56px; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card:nth-child(3n)  { border-right: 1px solid var(--border-dim); }
  .value-card:nth-child(2n)  { border-right: none; }

  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2)  { border-right: none; }
  .stat-cell:nth-child(3)  { border-right: 1px solid var(--border-dim); border-top: 1px solid var(--border-dim); }
  .stat-cell:nth-child(4)  { border-right: none; border-top: 1px solid var(--border-dim); }

  .contact-grid { grid-template-columns: 1fr; gap: 64px; }

  .cta-band { flex-direction: column; align-items: flex-start; gap: 40px; }
}

/* ─── 768px ─── */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta     { display: none; }
  .nav-hamburger { display: flex; }

  .page-hero-num { display: none; }

  .hero-sub-row { flex-direction: column; gap: 28px; align-items: flex-start; }
  .hero-actions { flex-wrap: wrap; }
  .hero-scroll  { display: none; }

  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.wide { grid-column: span 1; }

  .values-grid { grid-template-columns: 1fr; }
  .value-card  { border-right: none !important; }

  .stats-band  { grid-template-columns: 1fr 1fr; }

  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }

  .capability-grid { grid-template-columns: 1fr; }
  .cap-card { border-right: none; border-bottom: 1px solid var(--border-dim); }
  .cap-card:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }

  .accordion-header { grid-template-columns: 40px 1fr; }
  .accordion-tag    { display: none; }
  .accordion-inner  { grid-template-columns: 40px 1fr; }

  .service-accordion-header { grid-template-columns: 40px 1fr; }
  .service-accordion-tag    { display: none; }
  .service-accordion-inner  { grid-template-columns: 40px 1fr; }
}

/* ── UNIFORM PROJECT GRID (White Card Layout — Projects Page Rework) ──────── */

.proj-grid--uniform {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

/* White card overrides transformed to dark theme */
.proj-card--white {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #111111;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1),
              box-shadow 0.4s cubic-bezier(0.25,1,0.5,1);
}

.proj-card--white:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

/* Remove default dark overlay behaviour on white cards */
.proj-card--white .proj-card-overlay { display: none; }

.proj-card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.proj-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25,1,0.5,1);
}

.proj-card--white:hover .proj-card-img-wrap img {
  transform: scale(1.04);
}

.proj-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-card--white .proj-cat {
  color: #bf3b2c;
  margin-bottom: 8px;
}

.proj-card--white .proj-name {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.proj-card--white .proj-detail,
.proj-card--white .project-desc {
  color: #f8fafc;
  font-size: 0.86rem;
  max-height: none;
  opacity: 1;
  overflow: visible;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 18px;
}

.proj-card--white .proj-view {
  opacity: 1;
  transform: translateY(0);
  margin-top: 0;
  color: #bf3b2c;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsive: stack to 1 column on mobile */
@media (max-width: 768px) {
  .proj-grid--uniform {
    grid-template-columns: 1fr;
  }
}

/* Static card variant — no hover zoom, no heavy overlay, clean presentation */
.proj-card--static {
  cursor: default;
}
.proj-card--static:hover {
  transform: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.proj-card--static:hover .proj-card-img-wrap img {
  transform: none;
}
.proj-card--static .proj-view {
  display: none;
}
.proj-card--static .proj-cat {
  display: none;
}

/* 1. Grid Container */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* 2. Image Constraint */
.proj-card-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}


/* Global Typography Enhancements */
h1, h2, h3 {
  letter-spacing: 0.05em;
  color: #ffffff;
}

.secondary-text, .caption, .footer-brand-desc {
  color: #94a3b8;
}

/* ==========================================================================
   FINAL PRODUCTION OVERRIDES - DO NOT REMOVE
   ========================================================================== */

/* 1. Global Readability */
body, p, .project-desc, .proj-detail {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    color: #f1f5f9 !important;
    font-weight: 400 !important;
}

/* 2. Headings */
h1, h2, h3, h4, h5, h6, .proj-title, .proj-name {
    color: #ffffff !important;
    letter-spacing: 0.05em !important;
}

/* 3. Logo Scaling */
.logo img, .navbar-brand img, .nav-logo img {
    max-width: 210px !important;
    height: auto !important;
}

.footer-logo img, .footer-brand-logo {
    max-width: 180px !important;
    height: auto !important;
}

/* 4. Dark Cards */
.proj-card, .proj-card--dark, .proj-card--white {
    background-color: #111111 !important;
    background: #111111 !important;
    border: 1px solid #333333 !important;
}

.proj-card-body {
    background-color: #111111 !important;
    padding: 1.5rem !important;
}

/* 5. Image Constraints */
.proj-card img, .proj-card-img-wrap img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
}

/* Fix heading emphases */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
    color: #ffffff !important;
}

/* ====== PHASE 1 & 2 ====== */

/* CRITICAL FIX 1 — LOGO SIZE */
.nav-logo img, .navbar-brand img {
   height: 90px !important;
   max-height: 90px !important;
   width: auto !important;
   display: block !important;
   transform: none !important;
}
.footer-logo img, .footer-brand-logo {
   max-width: 200px !important;
   height: auto !important;
   opacity: 0.85 !important;
   transform: none !important;
}

/* CRITICAL FIX 2 — STATS COUNTER */
.counter {
   font-size: 3.5rem !important;
   font-weight: 800 !important;
   color: #E8340A !important;
}
.metric-label {
   color: #9AA3AE !important;
   font-size: 0.8rem !important;
   text-transform: uppercase !important;
   letter-spacing: 0.12em !important;
}

/* CRITICAL FIX 3 — ELIMINATE FLAT ALL-WHITE TEXT */
.hero-headline {
   background: linear-gradient(135deg, #ffffff 55%, #a0a8b0 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}
h2, .section-headline {
   color: #EDEDEF !important;
   letter-spacing: 0.03em !important;
}
h3, .service-row-title, .proj-name {
   color: #D8DADD !important;
}
body, p, .section-body, .service-row-desc, .proj-detail {
   color: #9AA3AE !important;
   font-size: 1.1rem !important;
   line-height: 1.8 !important;
   font-weight: 400 !important;
}
.hero-eyebrow-text, .section-tag-text, .service-row-num, .text-red {
   color: #E8340A !important;
   letter-spacing: 0.1em !important;
}
.nav-links a {
   color: #B8BCC2 !important;
   font-weight: 500 !important;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
   color: #FFFFFF !important;
   border-bottom: 2px solid #E8340A;
   transition: all 0.25s ease;
}

/* CRITICAL FIX 4 — BACKGROUND DEPTH */
body { background-color: #080B0F !important; }
.about-split, .section--void { background-color: #0C0F14 !important; }
.section--surface { background-color: #090C10 !important; }
.metrics-grid { background-color: #0F1318 !important; }
.footer { background-color: #060810 !important; }

/* UPGRADE 1 — NAVBAR */
.nav {
   position: sticky !important;
   top: 0 !important;
   z-index: 1000 !important;
   background: rgba(8,11,15,0.90) !important;
   backdrop-filter: blur(16px) !important;
   -webkit-backdrop-filter: blur(16px) !important;
   border-bottom: 1px solid rgba(232,52,10,0.15) !important;
   transition: background 0.3s ease !important;
}
.nav-cta {
   background: #E8340A !important;
   color: #ffffff !important;
   padding: 0.5rem 1.25rem !important;
   border-radius: 4px !important;
   font-weight: 600 !important;
   font-size: 0.875rem !important;
   transition: all 0.25s ease !important;
   border: none !important;
}
.nav-cta:hover {
   background: #c42d08 !important;
   transform: translateY(-1px) !important;
}
.nav-cta::before {
   display: none !important; /* disabled existing hover sweep */
}

/* UPGRADE 2 — HERO BUTTONS */
.btn-primary {
   background: #E8340A !important;
   color: #ffffff !important;
   padding: 0.85rem 2rem !important;
   border-radius: 4px !important;
   font-weight: 600 !important;
   transition: transform 0.2s ease, box-shadow 0.2s ease !important;
   border: none !important;
}
.btn-primary:hover {
   transform: translateY(-2px) !important;
   box-shadow: 0 8px 28px rgba(232,52,10,0.4) !important;
}
.btn-primary::before { display: none !important; }

.btn-ghost {
   background: transparent !important;
   border: 1.5px solid rgba(255,255,255,0.25) !important;
   color: #ffffff !important;
   padding: 0.85rem 2rem !important;
   border-radius: 4px !important;
   font-weight: 500 !important;
}
.btn-ghost:hover {
   border-color: #E8340A !important;
   color: #E8340A !important;
}
.btn-ghost::before { display: none !important; }

/* UPGRADE 3 — SERVICE SECTION */
.service-row-num {
   color: #E8340A !important;
   font-size: 0.75rem !important;
   font-weight: 700 !important;
   letter-spacing: 0.15em !important;
}
.service-row:hover {
   border-left: 3px solid #E8340A !important;
   padding-left: 1rem !important;
   transition: all 0.3s ease !important;
}
.service-row-desc {
   color: #7A8390 !important;
}

/* UPGRADE 4 — PROJECT CARDS */
/* (Base styles included in PHASE 3) */
.proj-name {
   color: #D8DADD !important;
   font-weight: 700 !important;
}

/* UPGRADE 5 — SECTION DIVIDERS */
.about-split, .section--void, .section--surface, .footer {
   border-top: 1px solid rgba(232,52,10,0.12) !important;
}

/* UPGRADE 6 — FOOTER */
.footer {
   background: #060810 !important;
   border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.footer-col-heading {
   color: #9AA3AE !important;
   font-size: 0.75rem !important;
   text-transform: uppercase !important;
   letter-spacing: 0.12em !important;
   font-weight: 600 !important;
}
.footer-nav a, .footer-contact-text a, .footer-contact-text {
   color: #5A6270 !important;
   transition: color 0.2s ease !important;
}
.footer-nav a:hover, .footer-contact-text a:hover {
   color: #ffffff !important;
}
.footer-copy, .footer-brand-desc {
   color: #3A4250 !important;
}
.footer-brand-logo {
   max-width: 160px !important;
   opacity: 0.85 !important;
}

/* UPGRADE 7 — GLOBAL POLISH included in Phase 3 */

/* ==========================================================================
   FINAL PRODUCTION OVERRIDES - DO NOT REMOVE
   ========================================================================== */

html { scroll-behavior: smooth; }

::selection { background: rgba(232,52,10,0.3); color: #fff; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #080B0F; }
::-webkit-scrollbar-thumb { background: #E8340A; border-radius: 4px; }

body, p, .project-desc, .proj-detail {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #9AA3AE !important;
    font-weight: 400 !important;
}

h2, h3, h4, h5, h6, .proj-title, .proj-name {
    color: #EDEDEF !important;
    letter-spacing: 0.03em !important;
}

.nav-logo img, .logo img, .navbar-brand img {
    height: 90px !important;
    max-height: 90px !important;
    width: auto !important;
    display: block !important;
    transform: none !important;
}

.footer-brand-logo, .footer-logo img {
    max-width: 200px !important;
    height: auto !important;
    opacity: 0.85 !important;
    transform: none !important;
}

.proj-card, .proj-card--dark, .proj-card--white {
    background-color: #0E1117 !important;
    border: 1px solid #1C2028 !important;
    transition: all 0.3s ease !important;
}

.proj-card:hover {
    border-color: rgba(232,52,10,0.5) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4) !important;
}

.proj-card-body {
    background-color: #0E1117 !important;
    padding: 1.5rem !important;
}

.proj-card img, .proj-card-img-wrap img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
}

/* ========================================================================== */


/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES (Appended for Pre-Publish Mobile Audit)
   ========================================================================== */

@media (max-width: 768px) {
    /* Global Layout & Overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    main, section, header, footer {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* Navbar & Hamburger */
    .nav {
        padding: 0 15px !important;
        justify-content: space-between !important;
    }
    .nav-links, .nav-cta {
        display: none !important;
    }
    .nav-hamburger {
        display: flex !important;
        position: relative !important;
        left: auto !important;
        right: 0 !important;
        margin-left: auto !important;
        transform: none !important;
        z-index: 10000 !important;
    }
    
    /* Hero Section */
    .hero-headline {
        font-size: 3.2rem !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
    }
    .hero-sub-row {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: flex-start !important;
    }
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }
    .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important; /* Minimum touch target */
    }

    /* Stats & Grids */
    .metrics-grid, .stats-grid, .footer-grid, .proj-grid, .about-split {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .metric-cell {
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    /* Headers */
    h2, .section-headline {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
    }

    /* Services Accordion / Service Row */
    .service-accordion-header, .service-row, .proj-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .service-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 15px !important;
    }
    .service-row-arrow {
        align-self: flex-start !important;
        margin-top: 15px !important;
    }

    /* Contact Form (Fix shifted form at X=500px) */
    .contact-form-container, .contact-split-form, .form-wrap, form, .contact-split-content {
        margin-left: 0 !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    input, textarea, select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-height: 48px !important; 
    }

    /* Background Elements (Hide overflowing decorative numbers) */
    .bg-number, .decorative-number, .service-row-num-bg, .about-bg-text, .section-bg-text {
        display: none !important;
    }

    /* Footer adjustments */
    .footer {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .footer-col-heading, .footer-contact-row {
        margin-bottom: 15px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
}

/* Specific Fixes for Very Small Screens (e.g. 390px, 375px, 360px) */
@media (max-width: 414px) {
    .hero-headline {
        font-size: 2.6rem !important;
    }
    h2, .section-headline {
        font-size: 2.0rem !important;
    }
}

@media (max-width: 375px) {
    .hero-headline {
        font-size: 2.3rem !important;
    }
    h2, .section-headline {
        font-size: 1.8rem !important;
    }
}

/* ================================================================
   ELITE UX ENGINEER: BEAST MODE FIXES (PHASE 1-9)
   ================================================================ */

/* Screen-reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* PHASE 1: Fix Black Background Behind Text (Explicit Clear) */
p, span, h1, h2, h3, h4, h5, h6, li, label, .proj-detail, .project-desc, .metric-label, .service-row-desc {
  background: none !important;
  background-color: transparent !important;
}

/* Phase 1 Step 4: H1 EXCEPTION */
h1.hero-headline, .hero h1, .hero-title, section.hero h1 {
  background: linear-gradient(135deg, #ffffff 55%, #a0a8b0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  background-color: transparent !important;
}

/* PHASE 2: SECTION BACKGROUNDS */
body { background: #080B0F !important; }
.nav, .nav-mobile { background: rgba(8,11,15,0.92) !important; }
.about-split { background: #0C0F14 !important; }
.section--void { background: #090C10 !important; }
.metrics-grid { background: #0F1318 !important; }
.section--surface { background: #0A0D12 !important; }
.footer { background: #060810 !important; }

/* Subtle separators */
.about-split, .section--void, .metrics-grid, .section--surface, .footer {
  border-top: 1px solid rgba(255,255,255,0.04) !important;
}

/* PHASE 3: PREMIUM TEXT COLOR SYSTEM */
h2, .section-headline { color: #EDEDEF !important; }
h3, .metric-value, .service-row-title, .proj-name, .proj-title { color: #D8DADD !important; }
p, .section-body, .service-row-desc, .project-desc, .proj-detail, .hero-desc { color: #9AA3AE !important; }
.hero-eyebrow-text, .section-tag-text, .text-red { color: #E8340A !important; }
.metric-label, .nav-logo-sub, .footer-col-heading, .footer-brand-desc, .footer-copy, .footer-contact-text, .nav-mobile-contact { color: #5A6270 !important; }
.nav-links a { color: #B8BCC2 !important; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF !important; }

/* PHASE 4: STATS COUNTER */
.counter, .metric-value {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #E8340A !important;
  background: none !important;
  background-color: transparent !important;
  line-height: 1 !important;
}
.metric-label {
  color: #7A8390 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  background: none !important;
  background-color: transparent !important;
}
.metric-value .text-red {
  color: #E8340A !important;
  background: none !important;
  background-color: transparent !important;
}

/* PHASE 5: NAVBAR & LOGO */
.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(8,11,15,0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(232,52,10,0.12) !important;
  transition: background 0.3s ease !important;
}
.nav-logo img, .navbar-brand img {
  height: 90px !important;
  width: auto !important;
  display: block !important;
}
.footer-logo img, .footer-brand-logo {
  max-width: 200px !important;
  height: auto !important;
  opacity: 0.85 !important;
}
.nav-cta {
  background: #E8340A !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  border: none !important;
}
.nav-cta:hover {
  background: #c42d08 !important;
  transform: translateY(-1px) !important;
}
.nav-cta::before { display: none !important; }
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom: 2px solid #E8340A !important;
  transition: all 0.25s ease !important;
}
.nav-links a::after { display: none !important; }

/* PHASE 6: HERO SECTION */
.hero-eyebrow-text {
  color: #E8340A !important;
  letter-spacing: 0.15em !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  background: none !important;
  background-color: transparent !important;
}
.hero-desc {
  color: #9AA3AE !important;
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  background: none !important;
  background-color: transparent !important;
}
.btn-primary {
  background: #E8340A !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(232,52,10,0.4) !important;
}
.btn-primary::before { display: none !important; }

.btn-ghost {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}
.btn-ghost:hover {
  border-color: #E8340A !important;
  color: #E8340A !important;
}
.btn-ghost::before { display: none !important; }

/* PHASE 7: SERVICES SECTION */
.service-row-num {
  color: #E8340A !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  background: none !important;
  background-color: transparent !important;
}
.service-row-title {
  color: #D8DADD !important;
  font-weight: 700 !important;
  background: none !important;
  background-color: transparent !important;
}
.service-row-desc {
  color: #7A8390 !important;
  background: none !important;
  background-color: transparent !important;
}
.service-row:hover {
  border-left: 3px solid #E8340A !important;
  padding-left: 1.25rem !important;
  transition: all 0.3s ease !important;
}

/* PHASE 8: PROJECT CARDS */
.proj-card, .feat-card {
  background: #0E1117 !important;
  border: 1px solid #1C2028 !important;
  transition: all 0.3s ease !important;
}
.proj-card:hover, .feat-card:hover {
  border-color: rgba(232,52,10,0.45) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}
.proj-card-img-wrap img, .proj-card img {
  height: 260px !important;
  width: 100% !important;
  object-fit: cover !important;
}
.proj-name, .proj-title {
  color: #D8DADD !important;
  font-weight: 700 !important;
  background: none !important;
  background-color: transparent !important;
}
.section-tag-text, .proj-tag {
  color: #E8340A !important;
  background: none !important;
  background-color: transparent !important;
}
.proj-detail, .project-desc {
  color: #7A8390 !important;
  background: none !important;
  background-color: transparent !important;
}

/* PHASE 9: FOOTER */
.footer {
  background: #060810 !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.footer-col-heading {
  color: #9AA3AE !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-weight: 600 !important;
  background: none !important;
  background-color: transparent !important;
}
.footer-nav a, .footer-contact-text a, .footer-contact-text, .footer-social {
  color: #5A6270 !important;
  transition: color 0.2s ease !important;
}
.footer-nav a:hover, .footer-contact-text a:hover, .footer-social:hover {
  color: #ffffff !important;
}
.footer-brand-desc {
  color: #5A6270 !important;
  background: none !important;
  background-color: transparent !important;
}
.footer-copy {
  color: #3A4250 !important;
  background: none !important;
  background-color: transparent !important;
}

/* ================================================================
   GLOBAL FINAL OVERRIDES — DO NOT REMOVE
   ================================================================ */

html { scroll-behavior: smooth; }

::selection {
  background: rgba(232,52,10,0.3);
  color: #ffffff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #080B0F; }
::-webkit-scrollbar-thumb {
  background: #E8340A;
  border-radius: 4px;
}

/* CRITICAL — Remove background from ALL text elements */
p, span, li, label {
  background: none !important;
  background-color: transparent !important;
}

h1, h2, h3, h4, h5, h6 {
  background-color: transparent !important;
}

/* Exception: H1 gradient text fill only */
.hero h1,
.hero-title,
section.hero h1,
.hero-headline {
  background: linear-gradient(135deg, #ffffff 55%, #a0a8b0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body {
  background-color: #080B0F !important;
  color: #9AA3AE !important;
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
}

/* ================================================================ */
