/* ============================================================
   FUSIONTECHMARK — DESIGN SYSTEM v2.1 (Theme-Enabled)
   Palette: Deep Black / Warm Light · White / Slate · Orange #FF6A00
   Typography: Inter + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surface scale — subtle variation creates visual rhythm */
  --bg-hero:    #050506;
  --bg-why:     #000000;
  --bg-work:    #0a0a0c;
  --bg-services:#080809;
  --bg-process: #0b0b0d;
  --bg-quality: #0f0f11;
  --bg-diff:    #080809;
  --bg-metrics: #0c0c0e;
  --bg-testi:   #0a0a0c;
  --bg-cta:     #0d0d0f;

  /* Core palette */
  --white:       #FFFFFF;
  --black:       #080809;
  --dark-1:      #0E0E11;
  --dark-2:      #141418;
  --dark-3:      #1D1D24;
  --dark-4:      #262630;
  --muted:       rgba(255,255,255,0.52);
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);

  /* Orange Accent — FTM Signal Orange (#FF6A00) */
  --orange:      #FF6A00;
  --orange-h:    #FF7D1F;
  --orange-d:    #E05800;
  --orange-bg:   rgba(255, 106, 0, 0.08);
  --orange-glow: rgba(255, 106, 0, 0.20);

  /* Explicit Token Aliases */
  --ftm-orange:       var(--orange);
  --ftm-orange-hover: var(--orange-h);
  --ftm-orange-muted: var(--orange-bg);
  --ftm-orange-glow:  var(--orange-glow);

  --font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --gutter:    clamp(20px, 4vw, 48px);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.28);
  --shadow-float: 0 20px 56px rgba(0,0,0,0.65);

  --nav-bg: rgba(10, 10, 13, 0.92);
  --nav-scrolled: rgba(8, 8, 10, 0.97);
}

/* ============================================================
   LIGHT THEME EXTENSION
   ============================================================ */
html[data-theme="light"] {
  --bg-hero:    #f8f9fa;
  --bg-why:     #ffffff;
  --bg-work:    #f1f3f5;
  --bg-services:#ffffff;
  --bg-process: #f8f9fa;
  --bg-quality: #ffffff;
  --bg-diff:    #f1f3f5;
  --bg-metrics: #ffffff;
  --bg-testi:   #f8f9fa;
  --bg-cta:     #f1f3f5;

  --white:       #0f172a;
  --black:       #f8f9fa;
  --dark-1:      #ffffff;
  --dark-2:      #ffffff;
  --dark-3:      #f1f3f5;
  --dark-4:      #e2e8f0;
  --muted:       #64748b;
  --line:        rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);

  --orange:      #E65A00;
  --orange-h:    #D14D00;
  --orange-d:    #B83E00;
  --orange-bg:   rgba(230, 90, 0, 0.08);
  --orange-glow: rgba(230, 90, 0, 0.15);

  --shadow-card:  0 2px 8px rgba(15,23,42,0.05), 0 10px 24px rgba(15,23,42,0.06);
  --shadow-float: 0 20px 48px rgba(15,23,42,0.12);

  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-scrolled: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .nav-mark,
html[data-theme="light"] .nav-brand-logo,
html[data-theme="light"] .footer-brand-logo {
  filter: brightness(0);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--white); }
button { font-family: var(--font); }

/* Skip Link */
.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 12px 20px;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Cursor Glow */
.cursor-glow {
  position: fixed; width: 400px; height: 400px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,85,0,0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

/* Section Container */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.inner--reading { max-width: 820px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

.section-head { margin-bottom: clamp(40px, 5.5vw, 72px); }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 14px;
}
.label::before {
  content: '';
  display: inline-block; width: 14px; height: 1.5px;
  background: var(--orange); border-radius: 2px; flex-shrink: 0;
}

/* Symmetric Eyebrow Dashes for Centered Sections */
.text-center .label,
.section-head.text-center .label {
  justify-content: center;
}
.text-center .label::after,
.section-head.text-center .label::after {
  content: '';
  display: inline-block; width: 14px; height: 1.5px;
  background: var(--orange); border-radius: 2px; flex-shrink: 0;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 54px);
  color: var(--white); max-width: 22ch;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.section-sub {
  font-size: clamp(15px, 1.35vw, 17.5px);
  color: var(--muted);
  margin-top: 16px; max-width: 54ch; line-height: 1.7;
}

/* Ensure Centered Headings are Mathematically Centered */
.text-center .section-title,
.section-head.text-center .section-title,
.text-center .section-sub,
.section-head.text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── BUTTONS ── */
.btn-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-pill);
  background: var(--orange); color: #ffffff !important;
  font-size: 14.5px; font-weight: 700;
  transition: background 0.25s, transform 0.2s var(--ease), box-shadow 0.25s;
  box-shadow: 0 8px 24px rgba(255,85,0,0.22);
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-orange:hover {
  background: var(--orange-h); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,85,0,0.35);
}
.btn-orange:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill);
  background: var(--dark-1);
  border: 1px solid var(--line-strong);
  color: var(--white); font-size: 14.5px; font-weight: 600;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--orange);
  background: var(--dark-2);
  transform: translateY(-2px);
}
.btn-outline:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }


/* ============ NAV ============ */
/* ============ RESPONSIVE FLOATING HEADER & NAVIGATION ============ */
.nav-floating-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 1000;
  width: calc(100% - 24px);
  max-width: 820px;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  will-change: transform, opacity;
}

/* Smart hidden state when scrolling down */
.nav-floating-header.is-hidden {
  transform: translate(-50%, calc(-100% - 36px));
  opacity: 0;
  pointer-events: none;
}

.nav-floating-header.scrolled {
  top: 10px;
}

.nav-pill-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
  padding: 0 10px 0 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.04);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, height 0.25s, padding 0.25s;
}

.nav-floating-header.scrolled .nav-pill-wrapper {
  background: var(--nav-scrolled);
  box-shadow: 0 12px 40px rgba(0,0,0,0.75), 0 0 0 0.5px rgba(255,255,255,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-mark, .nav-brand-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.nav-wordmark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  white-space: nowrap;
}

.nav-desktop-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-desktop-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop-links a:hover {
  color: var(--white);
  background: var(--orange-bg);
}

.nav-desktop-links a.active {
  color: var(--white);
  font-weight: 600;
}

/* Nav Controls (Buttons container) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark-1);
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--orange-bg);
  color: var(--orange);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
html[data-theme="light"] .theme-icon-sun { display: block; }
html[data-theme="light"] .theme-icon-moon { display: none; }

/* Mobile Menu Button */
.nav-menu-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--dark-1);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-menu-btn:hover {
  background: var(--dark-2);
  border-color: var(--line-strong);
}

.nav-menu-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Pill CTA Button */
.nav-pill-cta {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,85,0,0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-pill-cta:hover {
  background: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,85,0,0.38);
}

/* Responsive Breakpoints for Nav */
@media (max-width: 860px) {
  .nav-desktop-links {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .nav-floating-header {
    top: 12px;
    width: calc(100% - 20px);
  }
  .nav-pill-wrapper {
    height: 50px;
    padding: 0 8px 0 14px;
    gap: 8px;
  }
  .nav-wordmark {
    font-size: 13.5px;
  }
  .nav-pill-cta {
    padding: 7px 13px;
    font-size: 12px;
  }
  .nav-controls {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .nav-floating-header {
    top: 10px;
    width: calc(100% - 16px);
  }
  .nav-pill-wrapper {
    height: 46px;
    padding: 0 6px 0 12px;
  }
  .nav-wordmark {
    font-size: 13px;
  }
  /* On small mobile, hide the redundant Start a Project CTA button in the bar to prevent wrapping */
  .nav-pill-cta {
    display: none;
  }
  .nav-menu-btn {
    padding: 6px 12px;
    font-size: 11px;
    background: var(--dark-2);
  }
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .nav-floating-header {
    width: calc(100% - 12px);
  }
  .nav-wordmark {
    font-size: 12px;
  }
  .nav-menu-btn span {
    display: none; /* Icon only for ultra-narrow screens */
  }
  .nav-menu-btn {
    padding: 6px 9px;
  }
}

/* Mobile Dropdown Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--dark-1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
  box-shadow: var(--shadow-float);
  z-index: 1001;
}

.mega-menu.is-open {
  max-height: 80vh;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html[data-theme="light"] .mega-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.mega-menu-inner {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mega-col .mega-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--orange);
  margin-bottom: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}

html[data-theme="light"] .mega-links a {
  color: var(--black);
}

.mega-links a:hover {
  color: var(--orange);
  background: var(--orange-bg);
}

.mega-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-right: 8px;
}

.mega-arrow {
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.mega-links a:hover .mega-arrow {
  color: var(--orange);
  transform: translate(2px, -2px);
}

.mega-info {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-text {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}


/* ============ HERO ============ */
.hero {
  position: relative; min-height: 92vh; background: var(--bg-hero);
  overflow: hidden; display: flex; flex-direction: column;
  padding-top: clamp(100px, 12vw, 136px);
}

.hero-bg-canvas-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#heroCanvas { width: 100%; height: 100%; display: block; opacity: 0.65; }

/* Atmospheric Spotlight */
.hero-ambient-spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  max-width: 100vw;
  height: 520px;
  background: radial-gradient(ellipse 65% 50% at 50% 25%, rgba(255, 106, 0, 0.08) 0%, rgba(255, 140, 0, 0.025) 45%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
}

/* Dot Matrix Overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, black 20%, transparent 85%);
  opacity: 0.75;
  pointer-events: none;
}

/* Depth Vignette */
.hero-radial-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 45%, var(--black) 100%);
  pointer-events: none;
}

.hero-body {
  position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 20px var(--gutter) 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--orange-bg); border: 1px solid var(--orange-glow);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--orange); margin-bottom: 28px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 6px var(--orange); animation: tagPulse 2.5s ease-in-out infinite;
}
@keyframes tagPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.3)} }

.hero-title {
  font-size: clamp(36px, 5.8vw, 72px); font-weight: 900; letter-spacing: -0.045em;
  line-height: 1.04; color: var(--white); max-width: 20ch; margin: 0 auto 24px;
}
.hero-text-accent { color: var(--orange); }

.hero-desc {
  font-size: clamp(15px, 1.35vw, 18px); color: var(--muted);
  max-width: 50ch; margin: 0 auto 32px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }

/* Proof Line */
.hero-proof-line {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  margin-bottom: 52px; letter-spacing: 0.05em;
}
.proof-sep { color: var(--orange); }

/* Hero Product Showcase */
.hero-product-switcher {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  z-index: 2;
}

.hpc-device-frame {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  background: var(--dark-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 1;
  animation: heroFrameIn 1s var(--ease) both;
  animation-delay: 0.25s;
}
@keyframes heroFrameIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hpc-device-header {
  height: 38px;
  background: var(--dark-1);
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hpc-device-dots { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.hpc-device-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--dark-3);
  padding: 3px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
@media (max-width: 580px) { .hpc-device-url { display: none; } }

.hpc-device-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hpc-dots-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hpc-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.hpc-dot-btn:hover {
  background: var(--muted);
  transform: scale(1.15);
}
.hpc-dot-btn.is-active {
  width: 22px;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

.hpc-device-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #27C93F;
  background: rgba(39,201,63,0.12);
  border: 1px solid rgba(39,201,63,0.25);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hpc-progress-track {
  height: 2px;
  width: 100%;
  background: var(--line);
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.hpc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #FFA050);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
}

.hpc-slides-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #000000;
}

.hpc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1), transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.hpc-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hpc-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.92) contrast(1.03);
}

.hpc-slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.hpc-overlay-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(14,14,18,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease 0.25s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.hpc-slide.is-active .hpc-overlay-badge {
  opacity: 1;
  transform: translateY(0);
}

.hpc-overlay-badge.bottom-badge {
  align-self: flex-end;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  transition-delay: 0.4s;
}
@media (max-width: 540px) {
  .hpc-overlay-badge.bottom-badge { display: none; }
  .hpc-overlay-badge.top-badge { font-size: 10.5px; padding: 5px 10px; }
  .hpc-slide-overlay { padding: 12px; }
}

.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: #27C93F; }
.badge-dot.pulse { animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100%{opacity:1} 50%{opacity:0.4} }


/* ============ TICKER ============ */
.ticker-section {
  background: var(--dark-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 36px; animation: tickerSlide 32s linear infinite; }
@keyframes tickerSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.ticker-item b { color: var(--white); }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }


/* ============ WHY SECTION ============ */
.why-kinetic-section {
  background: var(--bg-why); text-align: center; overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0; position: relative; border-bottom: 1px solid var(--line);
}
.why-water-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,85,0,0.05) 0%, transparent 70%);
}

.why-title-wrap { position: relative; display: inline-block; margin-bottom: 40px; }
.why-big-title {
  font-size: clamp(80px, 18vw, 220px); font-weight: 900;
  letter-spacing: -0.06em; line-height: 0.85; color: var(--white);
}
.why-reflection {
  height: clamp(60px, 12vw, 150px); overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 90%);
  margin-top: -10px;
}
.why-reflected-text {
  display: block; font-size: clamp(80px, 18vw, 220px); font-weight: 900;
  letter-spacing: -0.06em; line-height: 0.85; color: var(--muted);
  transform: scaleY(-1); filter: url(#why-water);
}

.why-statement {
  font-size: clamp(18px, 2.2vw, 30px); font-weight: 700;
  line-height: 1.35; color: var(--white);
  max-width: 30ch; margin: 0 auto 36px; letter-spacing: -0.02em;
}
.highlight-text { color: var(--orange); display: block; margin-top: 12px; }

.why-cta-wrap { margin-top: 32px; }
.btn-outline-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; border-radius: var(--r-pill);
  background: transparent; border: 1.5px solid var(--line-strong);
  color: var(--white); font-size: 15px; font-weight: 700;
  transition: all 0.3s var(--ease); letter-spacing: -0.01em;
}
.btn-outline-pill:hover {
  border-color: var(--orange); background: var(--orange-bg);
  transform: scale(1.02);
}


/* ============ SELECTED SYSTEMS & EDITORIAL PORTFOLIO SHOWCASE ============ */
.work-section { background: var(--bg-work); position: relative; }

/* Pulse Indicator */
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27C93F;
  box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
  animation: pulseGreen 2.2s infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(39, 201, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

/* Category Filter Bar */
.portfolio-filter-bar, .work-filter-bar, .filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
  max-width: 820px;
}

.portfolio-filter-btn, .work-filter-btn, .filter-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: var(--dark-2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.portfolio-filter-btn:hover, .work-filter-btn:hover, .filter-btn:hover {
  color: var(--white);
  border-color: var(--line-strong);
  background: var(--dark-3);
  transform: translateY(-1px);
}

.portfolio-filter-btn.is-active, .work-filter-btn.is-active, .filter-btn.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

html[data-theme="light"] .portfolio-filter-btn.is-active,
html[data-theme="light"] .work-filter-btn.is-active,
html[data-theme="light"] .filter-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Portfolio Showcase Wrapper */
.portfolio-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Featured Flagship Project */
.portfolio-featured {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  position: relative;
}

.portfolio-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.portfolio-featured:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-float), 0 0 38px -14px var(--orange-glow);
}

.portfolio-featured:hover::before {
  opacity: 1;
}

.portfolio-featured-media {
  position: relative;
  background: #070709;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.portfolio-featured-browser {
  height: 36px;
  background: var(--dark-1);
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.portfolio-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.93);
  transition: transform 0.6s var(--ease), filter 0.4s ease;
  display: block;
}

.portfolio-featured:hover .portfolio-featured-img {
  transform: scale(1.02);
  filter: brightness(1);
}

.portfolio-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 8, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-featured:hover .portfolio-featured-overlay {
  opacity: 1;
}

.portfolio-featured-content {
  padding: 32px 32px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

@media (max-width: 900px) {
  .portfolio-featured-content {
    flex-direction: column;
    padding: 24px 20px 22px;
    gap: 22px;
  }
}

.portfolio-featured-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-featured-category {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-featured-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.portfolio-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-featured-title a:hover,
.portfolio-featured:hover .portfolio-featured-title a {
  color: var(--orange);
}

.portfolio-featured-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 68ch;
  margin: 4px 0 10px;
}

.portfolio-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.portfolio-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--dark-3);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  transition: color 0.2s, border-color 0.2s;
}

.portfolio-featured:hover .portfolio-tags span,
.portfolio-card:hover .portfolio-tags span {
  color: var(--white);
  border-color: var(--line-strong);
}

.portfolio-featured-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
  min-width: 220px;
}

@media (max-width: 900px) {
  .portfolio-featured-side {
    align-items: flex-start;
    width: 100%;
    min-width: unset;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}

.portfolio-metric-box {
  background: var(--dark-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 18px;
  text-align: right;
  width: 100%;
}

@media (max-width: 900px) {
  .portfolio-metric-box {
    text-align: left;
  }
}

.portfolio-metric-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portfolio-metric-val .metric-arrow {
  color: var(--orange);
  font-weight: 700;
  margin: 0 2px;
}

.portfolio-metric-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.portfolio-cta-btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--orange);
  border: 1px solid var(--orange);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 14px var(--orange-glow);
  white-space: nowrap;
}

.portfolio-cta-btn svg {
  transition: transform 0.2s ease;
}

.portfolio-cta-btn:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.35);
  color: #FFFFFF;
}

.portfolio-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Supporting Projects Grid */
.portfolio-supporting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .portfolio-supporting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .portfolio-supporting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.portfolio-card {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-float), 0 0 30px -12px var(--orange-glow);
}

.portfolio-card-media {
  position: relative;
  background: #070709;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.portfolio-card-browser {
  height: 28px;
  background: var(--dark-1);
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.portfolio-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.92);
  transition: transform 0.5s var(--ease), filter 0.3s ease;
  display: block;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.025);
  filter: brightness(1);
}

.portfolio-card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-category {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.portfolio-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-card-title a:hover,
.portfolio-card:hover .portfolio-card-title a {
  color: var(--orange);
}

.portfolio-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-wrap: wrap;
}

.portfolio-card-link {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
  white-space: nowrap;
}

.portfolio-card:hover .portfolio-card-link {
  color: var(--orange);
  gap: 8px;
}

/* Light Theme Overrides */
html[data-theme="light"] .portfolio-featured,
html[data-theme="light"] .portfolio-card {
  background: #ffffff;
}

html[data-theme="light"] .portfolio-featured-media,
html[data-theme="light"] .portfolio-card-media {
  background: #f1f3f5;
}

html[data-theme="light"] .portfolio-featured-browser,
html[data-theme="light"] .portfolio-card-browser {
  background: #f8f9fa;
}

html[data-theme="light"] .portfolio-metric-box {
  background: #f8f9fa;
}

html[data-theme="light"] .portfolio-cta-btn {
  color: #ffffff;
  background: var(--orange);
}

/* Legacy & Full Case Studies Hub Grid (for work.html and case-study.html) */
.work-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 960px) {
  .work-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Production System Card */
.build-card {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  position: relative;
}

.build-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.build-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-float), 0 0 36px -12px var(--orange-glow);
}

.build-card:hover::before {
  opacity: 1;
}

/* Browser Frame */
.build-card-preview {
  position: relative;
  background: #070709;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.build-card-browser {
  height: 34px;
  background: var(--dark-1);
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.b-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.b-red { background: #FF5F56; }
.b-yellow { background: #FFBD2E; }
.b-green { background: #27C93F; }

.b-url-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--dark-3);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  max-width: 60%;
  overflow: hidden;
}

.b-lock-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.b-url {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-card-live-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #27C93F;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.build-card-media {
  position: relative;
  overflow: hidden;
  background: #050507;
}

.build-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.92);
  transition: transform 0.6s var(--ease), filter 0.4s ease;
  display: block;
}

.build-card:hover .build-card-img {
  transform: scale(1.035);
  filter: brightness(1);
}

.build-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 8, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.build-card:hover .build-card-overlay {
  opacity: 1;
}

.build-card-preview-cta {
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease), background 0.2s, border-color 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.build-card:hover .build-card-preview-cta {
  transform: translateY(0);
}

.build-card-preview-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

/* Card Body */
.build-card-body {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.build-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.build-card-industry {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.build-card-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--dark-3);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.build-card-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.build-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.build-card-title a:hover,
.build-card:hover .build-card-title a {
  color: var(--orange);
}

.build-card-summary {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* High-Impact Key Metrics Ribbon */
.build-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--dark-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 10px;
  margin-bottom: 20px;
}

.b-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.b-stat-item:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 4px;
}

.b-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.b-stat-arrow {
  color: var(--orange);
  font-weight: 700;
  margin: 0 1px;
}

.b-stat-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Structured Operational Breakdown */
.build-card-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
  flex: 1;
}

@media (max-width: 640px) {
  .build-card-narrative {
    grid-template-columns: 1fr;
  }
}

.narrative-col {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--dark-3);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.narrative-problem {
  border-left: 2px solid rgba(255, 106, 0, 0.45);
}

.narrative-solution {
  border-left: 2px solid rgba(39, 201, 63, 0.7);
}

.narrative-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.narrative-problem .narrative-head {
  color: var(--orange);
}

.narrative-solution .narrative-head {
  color: #27C93F;
}

.narrative-col p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Card Footer */
.build-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.build-card-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.build-card-tech span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: var(--dark-3);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.build-card:hover .build-card-tech span {
  color: var(--white);
  border-color: var(--line-strong);
}

.build-card-cta, .build-card-link {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange-bg);
  border: 1px solid var(--orange-glow);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.build-card-cta svg, .build-card-link svg {
  transition: transform 0.2s ease;
}

.build-card-cta:hover, .build-card-link:hover {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
  box-shadow: 0 4px 14px var(--orange-glow);
}

.build-card-cta:hover svg, .build-card-link:hover svg {
  transform: translateX(3px);
}


/* ============ CAPABILITIES (ACCORDION) ============ */
.expertise-section { background: var(--bg-services); border-top: 1px solid var(--line); }

.expertise-accordion { display: flex; flex-direction: column; }
.exp-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.exp-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; color: var(--white); text-align: left;
  cursor: pointer; padding: 6px 0;
}
.exp-header:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.exp-num { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.exp-title { font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; margin-right: auto; margin-left: 20px; transition: color 0.25s; color: var(--white); }
.exp-header:hover .exp-title, .exp-item.is-open .exp-title { color: var(--orange); }
.exp-toggle { font-size: 24px; font-weight: 300; color: var(--muted); transition: transform 0.3s var(--ease), color 0.25s; flex-shrink: 0; }
.exp-item.is-open .exp-toggle { transform: rotate(45deg); color: var(--orange); }

.exp-content { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); padding-left: clamp(20px, 4vw, 48px); }
.exp-item.is-open .exp-content { max-height: 500px; padding-top: 14px; }
.exp-content p { font-size: 15px; color: var(--muted); max-width: 60ch; margin-bottom: 16px; line-height: 1.6; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-tags span {
  font-family: var(--mono); font-size: 11px;
  background: var(--dark-2); border: 1px solid var(--line-strong);
  color: var(--muted); padding: 4px 10px; border-radius: var(--r-pill);
}


/* ============ PROCESS SECTION ============ */
.process-section { background: var(--bg-process); border-top: 1px solid var(--line); }

.process-steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 900px) { .process-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-steps-grid { grid-template-columns: 1fr; } }

.p-step-card {
  background: var(--dark-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 22px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.p-step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,85,0,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.p-step-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-float); }
.p-step-card:hover::before { opacity: 1; }
.p-step-card--wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: flex-start; gap: 40px;
}
@media (max-width: 900px) { .p-step-card--wide { flex-direction: column; gap: 20px; } }
@media (max-width: 520px) { .p-step-card--wide { grid-column: auto; } }

.p-step-num {
  font-family: var(--mono); font-size: 11px; color: var(--orange);
  font-weight: 700; margin-bottom: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.04em;
}
.p-step-num::after { content: ''; display: block; width: 20px; height: 1px; background: rgba(255,85,0,0.4); }

.process-step-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-bg);
  border: 1px solid var(--orange-glow);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.p-step-title { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 10px; letter-spacing: -0.025em; }
.p-step-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; flex: 1; line-height: 1.65; }
.p-step-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-step-tags span {
  font-family: var(--mono); font-size: 10px;
  background: var(--dark-3); border: 1px solid var(--line);
  color: var(--muted); padding: 3px 8px; border-radius: 4px;
}
.p-step-card--wide > div { flex: 1; }


/* ============ ENGINEERING QUALITY ============ */
.quality-section { background: var(--bg-quality); border-top: 1px solid var(--line); }

.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .quality-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quality-grid { grid-template-columns: 1fr; } }

.quality-card {
  background: var(--dark-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.quality-card:hover {
  border-color: var(--line-strong); transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}
.quality-card:hover .quality-card-icon {
  background: var(--orange-bg); border-color: var(--orange-glow); color: var(--orange);
}

.quality-card-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--dark-3); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.quality-card-title { font-size: 17px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.quality-card-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }


/* ============ COMPARISON MATRIX ============ */
.diff-section { background: var(--bg-diff); border-top: 1px solid var(--line); }

.diff-table-wrap {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--dark-2); overflow-x: auto;
}
@media (max-width: 768px) { .diff-table-wrap { display: none; } }

.diff-table { width: 100%; border-collapse: collapse; text-align: left; }
.diff-table th, .diff-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.diff-table tr:last-child td { border-bottom: none; }
.diff-table th { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; background: var(--dark-1); letter-spacing: 0.1em; }
.diff-table th.highlight-col { color: var(--orange); background: var(--orange-bg); }
.criteria-cell { font-weight: 700; color: var(--white); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }
.diff-table td { color: var(--muted); }
.diff-table td.highlight-col { color: var(--white); background: var(--orange-bg); border-left: 2px solid var(--orange); }
.diff-table td.highlight-col strong { color: var(--white); }

.diff-mobile-cards { display: none; flex-direction: column; gap: 14px; }
@media (max-width: 768px) { .diff-mobile-cards { display: flex; } }
.diff-m-card { background: var(--dark-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.diff-m-crit { font-family: var(--mono); font-size: 11px; color: var(--orange); font-weight: 700; margin-bottom: 12px; letter-spacing: 0.1em; }
.diff-m-row { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.diff-m-row span { color: var(--muted); font-weight: 600; }
.diff-m-row.ftm { color: var(--white); font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.diff-m-row.ftm span { color: var(--orange); }


/* ============ METRICS ============ */
.metrics-grid-section { background: var(--bg-metrics); border-top: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: 1fr; } }

.metric-card-hover {
  background: var(--dark-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.metric-card-hover:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-float); }
.metric-big-num { font-family: var(--mono); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; color: var(--white); display: block; margin-bottom: 5px; letter-spacing: -0.04em; }
.metric-big-label { font-size: 13.5px; font-weight: 700; color: var(--white); display: block; margin-bottom: 12px; }
.metric-subtext { font-size: 12px; color: var(--muted); line-height: 1.6; }


/* ============ TESTIMONIALS ============ */
.testimonial-section { background: var(--bg-testi); border-top: 1px solid var(--line); }

.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--dark-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative;
}
.testi-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-float); }

.testi-quote-mark {
  font-size: 56px; line-height: 1; color: var(--orange); font-family: Georgia, serif;
  height: 36px; display: block; opacity: 0.6;
}
.testi-quote {
  font-size: 15.5px; font-weight: 500; line-height: 1.7;
  color: var(--white); flex: 1;
  font-style: italic;
}
.testi-author { padding-top: 16px; border-top: 1px solid var(--line); }
.testi-author strong { display: block; font-size: 12.5px; font-family: var(--mono); color: var(--white); margin-bottom: 4px; font-style: normal; }
.testi-author span { font-size: 11px; color: var(--muted); font-family: var(--mono); }

.testi-disclaimer {
  font-size: 12px; color: var(--muted);
  font-style: italic; text-align: center; max-width: 60ch; margin: 0 auto; line-height: 1.6;
}


/* ============ FINAL CTA / CONTACT SECTION ============ */
.cta-full-section {
  background: var(--bg-cta);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vw, 140px) 0;
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .cta-layout { grid-template-columns: 1fr; gap: 44px; }
}

.cta-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Direct Email Box */
.contact-email-box {
  width: 100%;
  max-width: 440px;
  margin-top: clamp(24px, 3.5vw, 36px);
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.contact-email-box:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.contact-email-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-email-addr {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.contact-email-addr:hover {
  color: var(--orange);
}
.contact-email-sla {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Minimal Form Card */
.inquiry-form {
  background: var(--dark-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.inquiry-form:hover {
  border-color: var(--line-strong);
}

.contact-minimal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: var(--dark-1);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--orange);
  background: var(--dark-3);
  box-shadow: 0 0 0 3px var(--orange-bg);
}
.form-control::placeholder {
  color: var(--muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.cta-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cta-chip {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--dark-1); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.cta-chip:hover { border-color: var(--line-strong); color: var(--white); }
.cta-chip.is-active {
  background: var(--orange-bg); border-color: var(--orange); color: var(--orange);
}

.form-submit {
  width: 100%;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--orange-glow);
  transition: background 0.25s, transform 0.2s var(--ease), box-shadow 0.25s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-submit:hover:not(:disabled) {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow);
}
.form-submit:active:not(:disabled) {
  transform: translateY(0);
}
.form-submit:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.form-control.is-invalid {
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}
.form-error-msg {
  font-family: var(--mono);
  font-size: 11px;
  color: #EF4444;
  margin-top: 4px;
}

.form-honeypot {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}

.form-error-banner {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-error-banner a {
  color: var(--orange);
  text-decoration: underline;
}

html[data-theme="light"] .form-error-banner {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}
html[data-theme="light"] .form-error-msg {
  color: #DC2626;
}

.form-subnote {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* Success State */
.form-success {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.form-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(39, 201, 63, 0.12);
  border: 1px solid rgba(39, 201, 63, 0.35);
  color: #27C93F;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.form-success h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.form-success p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
}

/* ============ SECONDARY PAGES COMPONENTS ============ */
.filter-bar {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--dark-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--white); border-color: var(--line-strong); }
.filter-btn.is-active { background: var(--orange); color: #fff !important; border-color: var(--orange); }

.search-box-wrap {
  max-width: 480px; margin: 0 auto 40px; position: relative;
}
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.search-input {
  width: 100%; padding: 12px 16px 12px 42px; border-radius: var(--r-pill);
  background: var(--dark-2); border: 1px solid var(--line); color: var(--white);
  font-family: var(--font); font-size: 13.5px; outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-bg); }

.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .insights-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--dark-2); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.article-card-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.article-category { color: var(--orange); font-weight: 700; text-transform: uppercase; }
.article-title { font-size: 17px; font-weight: 800; color: var(--white); margin-bottom: 10px; line-height: 1.35; }
.article-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.article-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.article-read-more { font-size: 12.5px; font-weight: 700; color: var(--orange); }

/* Article Reading Layout */
.article-main-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.article-lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); line-height: 1.65; margin-bottom: 32px; }
.article-toc {
  background: var(--dark-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 24px; margin-bottom: 36px;
}
.article-toc-title { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.article-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-toc a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.article-toc a:hover { color: var(--orange); }
.article-content h2 { font-size: 24px; font-weight: 800; margin: 36px 0 14px; color: var(--white); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--white); }
.article-content p { font-size: 15.5px; line-height: 1.75; color: var(--muted); margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.article-content pre {
  background: var(--dark-1); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 16px; overflow-x: auto; margin: 20px 0; font-family: var(--mono); font-size: 12.5px; color: var(--white);
}

.product-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--orange); background: var(--orange-bg); border: 1px solid var(--orange-glow);
  padding: 3px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px;
}

/* ============ FOOTER ============ */
.footer { background: var(--bg-hero); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand-logo { height: 26px; width: auto; margin-bottom: 10px; }
.footer-brand-name { font-size: 14px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.footer-brand-tag { font-size: 12px; color: var(--muted); margin-top: 3px; margin-bottom: 12px; }
.footer-email-link {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--white);
  transition: color 0.2s; font-family: var(--mono);
}
.footer-email-link:hover { color: var(--orange); }

.footer-heading { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--orange); letter-spacing: 0.14em; margin-bottom: 14px; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter) 0;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--orange); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============ MOBILE OVERRIDES ============ */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(32px, 10vw, 44px); }
  .hero-desc { font-size: 14.5px; }
  .hero-proof-line { font-size: 11px; gap: 8px; }
  .section-title { font-size: clamp(26px, 8vw, 36px); }
  .btn-orange, .btn-outline { font-size: 14px; padding: 13px 22px; }
  .build-card-body { padding: 20px; }
  .hpc-device-header { padding: 0 10px; }
  .hpc-device-controls { gap: 8px; }
  .cta-big-title { font-size: clamp(28px, 9vw, 40px); }
  .cta-form { padding: 18px 16px; }
  .p-step-card { padding: 22px 18px; }
  .quality-card { padding: 22px 18px; }
  .testi-card { padding: 24px 20px; }
  .footer-inner { gap: 28px; }
}

/* Focus visible ring */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
