/* ==========================================================================
   PORTFOLIO COMPONENT LIBRARY
   Editorial, Product Showcase, Architecture Diagrams & Interactions
   ========================================================================== */

/* --- Custom Buttons --- */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1.2;
}

.btn-editorial-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.28);
}

.btn-editorial-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.38);
}

.btn-editorial-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-editorial-secondary:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-editorial-dark {
  background-color: var(--bg-inverted);
  color: var(--text-inverted);
  border: 1px solid var(--border-inverted);
}

.btn-editorial-dark:hover {
  background-color: #23262f;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-editorial-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-primary);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.link-arrow i {
  transition: transform var(--transition-fast);
}

.link-arrow:hover {
  color: var(--accent-primary-hover);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   FIVENEURALS SIGNATURE HERO BANNER STYLES
   ========================================================================== */

.wpr-banner-area.hero-fn-banner {
  position: relative;
  z-index: 1;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 0;
}

.hero-fn-banner .banner-shape-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-fn-banner .banner-shape-area img {
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] .hero-fn-banner .banner-shape-area img {
  opacity: 0.22;
}

.hero-fn-banner .banner-shape-area img.one {
  top: 0;
  left: 0;
  width: 220px;
}

.hero-fn-banner .banner-shape-area img.two {
  bottom: 0;
  right: 0;
  width: 260px;
}

.hero-fn-banner .banner-content-area {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 5.5vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.hero-fn-banner .top-shape {
  position: absolute;
  width: 1px;
  height: 55px;
  border-left: 1px dashed var(--accent-primary);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.55;
  pointer-events: none;
}

/* Status Pill */
.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
  display: inline-block;
}

.status-pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-status-tag .status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

/* Iconic 3-Segment Title */
.fn-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-family: var(--font-display-tech);
  font-size: clamp(2.5rem, 5.2vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0;
  user-select: none;
}

.fn-hero-title .left-area,
.fn-hero-title .right-area {
  flex: 1;
  max-width: 460px;
  text-align: center;
  background-color: var(--bg-surface-subtle);
  padding: clamp(0.85rem, 2.2vw, 1.65rem) 1rem;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.fn-hero-title .text {
  display: block;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(137.66deg, #475569 15%, #0f172a 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .fn-hero-title .text {
  background: linear-gradient(137.66deg, #ffffff 15%, #94a3b8 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fn-hero-title .left-area .arrow-track.right {
  position: absolute;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.fn-hero-title .right-area .arrow-track.left {
  position: absolute;
  width: 90%;
  right: 50%;
  transform: translateX(50%);
  top: -15px;
  justify-content: flex-start;
  gap: 12px;
  pointer-events: none;
}

.fn-hero-title .arrow-track .arrow {
  font-size: 0.7rem;
  color: var(--accent-primary);
  opacity: 0.25;
  animation: fadeMoveTrack 1.6s infinite ease-in-out;
}

.fn-hero-title .arrow-track .arrow:nth-child(1) { animation-delay: 0.0s; }
.fn-hero-title .arrow-track .arrow:nth-child(2) { animation-delay: 0.12s; }
.fn-hero-title .arrow-track .arrow:nth-child(3) { animation-delay: 0.24s; }
.fn-hero-title .arrow-track .arrow:nth-child(4) { animation-delay: 0.36s; }
.fn-hero-title .arrow-track .arrow:nth-child(5) { animation-delay: 0.48s; }
.fn-hero-title .arrow-track .arrow:nth-child(6) { animation-delay: 0.60s; }
.fn-hero-title .arrow-track .arrow:nth-child(7) { animation-delay: 0.72s; }
.fn-hero-title .arrow-track .arrow:nth-child(8) { animation-delay: 0.84s; }
.fn-hero-title .arrow-track .arrow:nth-child(9) { animation-delay: 0.96s; }
.fn-hero-title .arrow-track .arrow:nth-child(10) { animation-delay: 1.08s; }

@keyframes fadeMoveTrack {
  0% { opacity: 0.15; transform: scale(0.9); }
  50% { opacity: 0.95; transform: scale(1.15); color: var(--accent-primary); }
  100% { opacity: 0.15; transform: scale(0.9); }
}

/* Centerpiece Logo Tile */
.fn-hero-title .mid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fn-hero-title .fn-hero-tile {
  width: clamp(72px, 6.5vw, 105px);
  height: clamp(72px, 6.5vw, 105px);
  border-radius: 20px;
  border: 1px dashed rgba(245, 126, 34, 0.45);
  background: radial-gradient(circle at 45% 40%, #ffffff 0%, #ffffff 58%, #f5f6f7 100%);
  box-shadow: 0 10px 32px rgba(245, 126, 34, 0.16),
              0 0 28px rgba(255, 85, 0, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.9),
              0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

[data-theme="dark"] .fn-hero-title .fn-hero-tile {
  background: radial-gradient(circle at 45% 40%, #1e2430 0%, #141722 65%, #0f121a 100%);
  border-color: rgba(245, 126, 34, 0.55);
  box-shadow: 0 10px 32px rgba(245, 126, 34, 0.28),
              0 0 35px rgba(255, 85, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.fn-hero-title .fn-hero-tile:hover {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent-primary);
  box-shadow: 0 14px 40px rgba(245, 126, 34, 0.32);
}

.fn-hero-title .fn-hero-tile img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

/* Editorial Subheadline & Lead Text */
.hero-fn-banner .text-area {
  max-width: 760px;
  margin: clamp(2rem, 3.5vw, 3rem) auto 0;
  text-align: center;
}

.hero-fn-banner .hero-subheadline {
  font-family: var(--font-display-tech);
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent-primary, #ff5500) 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline;
}

.hero-fn-banner .desc {
  font-size: clamp(0.975rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hero-fn-banner .button-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Client Mindset & Reassurance Bar */
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.25rem auto 0;
  padding: 0 0.5rem;
}

.hero-trust-bar .trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-trust-bar .trust-pill i {
  color: #10b981;
  font-size: 0.85rem;
}

.hero-trust-bar .trust-divider {
  color: var(--border-strong);
  font-size: 0.75rem;
}

@media (max-width: 767.98px) {
  .hero-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-trust-bar .trust-divider {
    display: none !important;
  }
}

/* 3D Arrow Slider Icon in Button */
.wpr-btn.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem 0.65rem 1.75rem;
}

.wpr-btn.with-icon .inner {
  display: inline-flex;
}

.wpr-btn.with-icon .icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(178.82deg, #FF9B4E 1.01%, #f57e22 105.12%) !important;
  box-shadow: 2px 4px 2px rgba(0, 0, 0, 0.12),
              inset 0px -2px 0.5px #c4580a,
              inset 0px 1px 0px #FFFFFF !important;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease;
}

.wpr-btn.with-icon:hover .icon {
  transform: translateX(3px);
}

.wpr-btn.with-icon .icon span {
  display: flex;
  font-size: 1rem;
}

.wpr-btn.with-icon .icon span:nth-child(2),
.wpr-btn.with-icon .icon span:nth-child(3) {
  display: none;
}

[data-theme="dark"] .wpr-btn.btn-white {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

[data-theme="dark"] .wpr-btn.btn-white:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-strong);
  color: #ffffff;
}

/* ==========================================================================
   MATTHEW-INSPIRED EDITORIAL HERO WITH 3D LAYERED CUTOUT
   ========================================================================== */
.hero-matthew-stage {
  position: relative;
  width: 100%;
  min-height: clamp(490px, 68vh, 730px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
  overflow: visible;
}

/* Subtle Geometric Orbital Vector Curves */
.hero-matthew-orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1180px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  color: var(--text-primary);
}

/* Mathematics & Computer Science Scientific Watermark Glyphs (Ultra-subtle, barely visible) */
.hero-matthew-orbits .math-cs-symbol {
  font-family: var(--font-mono), 'JetBrains Mono', Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.03em;
  fill: currentColor;
  opacity: 0.07;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .hero-matthew-orbits .math-cs-symbol {
  opacity: 0.10;
}

/* Giant Background Typographic Title (UDARAX) */
.hero-matthew-giant-name {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  font-family: var(--font-display-tech), 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 900;
  font-size: clamp(4.75rem, 12.5vw, 12.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #0b0c10;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

[data-theme="dark"] .hero-matthew-giant-name {
  color: #ffffff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

/* Foreground Cutout Subject */
.hero-matthew-figure {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  line-height: 0;
}

.hero-matthew-img {
  height: clamp(470px, 76vh, 800px);
  width: auto;
  max-width: 92vw;
  object-fit: contain;
  display: block;
  filter: none;
}

[data-theme="dark"] .hero-matthew-img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

/* Flanking Labels - Architectural Viewfinder Reticle Layout */
.hero-matthew-flank {
  position: absolute;
  z-index: 3;
}

/* Top Left & Top Right Symmetrical HUD Cards */
.hero-matthew-flank.top-left {
  left: 0;
  top: 12px;
  max-width: 320px;
}

.hero-matthew-flank.top-right {
  right: 0;
  top: 12px;
  max-width: 320px;
  display: flex;
  justify-content: flex-end;
}

.flank-hud-card {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.15rem;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast, 0.2s ease);
}

[data-theme="dark"] .flank-hud-card {
  background: rgba(18, 20, 26, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flank-hud-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(255, 85, 0, 0.14);
}

.hero-matthew-flank.top-left .flank-hud-card {
  text-align: left;
}

.hero-matthew-flank.top-right .flank-hud-card {
  text-align: right;
  align-items: flex-end;
}

.hud-card-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.hud-indicator-dot.role-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-primary, #ff5500);
  box-shadow: 0 0 6px rgba(255, 85, 0, 0.55);
  display: inline-block;
}

.hud-card-title {
  font-family: var(--font-display-tech), var(--font-sans), sans-serif;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.015em;
}

.hud-card-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Bottom Left & Bottom Right Viewfinder Anchor Pills */
.hero-matthew-flank.bottom-left {
  left: 0;
  bottom: 12px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
}

.hero-matthew-flank.bottom-right {
  right: 0;
  bottom: 12px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.flank-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

[data-theme="dark"] .flank-hud-pill {
  background: rgba(18, 20, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.flank-hud-pill.flank-scroll-link {
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.flank-hud-pill.flank-scroll-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 85, 0, 0.15);
}

.flank-hud-pill.flank-scroll-link i {
  transition: transform 0.2s ease;
}

.flank-hud-pill.flank-scroll-link:hover i {
  transform: translateY(2px);
}

/* ==========================================================================
   MOBILE VIEW BESPOKE HERO HUD (Custom Sleek Architecture for < 992px)
   ========================================================================== */
.hero-mobile-hud {
  width: 100%;
  max-width: 440px;
  margin: 0.25rem auto 1.25rem;
  padding: 0 0.5rem;
  z-index: 4;
  position: relative;
}

.mobile-hud-badge {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md, 14px);
  padding: 0.65rem 0.95rem;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  transition: all 0.2s ease;
}

[data-theme="dark"] .mobile-hud-badge {
  background: rgba(18, 20, 26, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-hud-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.mobile-hud-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-hud-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .hero-matthew-stage {
    min-height: auto;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }
  .hero-matthew-figure {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-matthew-img {
    height: clamp(380px, 52vh, 480px);
    width: auto;
    max-width: 94vw;
  }
  .hero-matthew-giant-name {
    font-size: clamp(3.5rem, 17vw, 6.5rem);
    top: 52%;
  }
}

@media (max-width: 576px) {
  .hero-matthew-stage {
    min-height: auto;
    margin-top: 0.15rem;
    margin-bottom: 1.25rem;
  }
  .hero-mobile-hud {
    margin-bottom: 0.5rem;
  }
  .mobile-hud-badge {
    padding: 0.55rem 0.8rem;
  }
  .mobile-hud-role {
    font-size: 0.68rem;
  }
  .mobile-hud-status {
    font-size: 0.64rem;
  }
  .mobile-hud-sub {
    font-size: 0.64rem;
  }
  .hero-matthew-img {
    height: clamp(340px, 50vh, 430px);
    width: auto;
    max-width: 96vw;
  }
  .hero-matthew-giant-name {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
    top: 52%;
  }
}

/* Stats Band in Hero */
.hero-fn-banner .hero-stats-band {
  margin-top: clamp(2.5rem, 4vw, 3.75rem);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

@media (max-width: 991px) {
  .hero-fn-banner .hero-stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-fn-banner .hero-stats-band {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem 1rem;
    gap: 1rem 0.85rem;
  }
  .fn-hero-title {
    font-size: clamp(1.15rem, 4.4vw, 1.6rem);
    gap: 0.5rem;
  }
  .fn-hero-title .fn-hero-tile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .fn-hero-title .left-area .arrow-track,
  .fn-hero-title .right-area .arrow-track {
    display: none;
  }
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--border-medium) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
}

/* Ambient Lighting Aura & Depth */
.hero-ambient-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(880px, 92vw);
  height: clamp(340px, 45vw, 520px);
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 85, 0, 0.12) 0%, rgba(255, 126, 34, 0.05) 45%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: subtleAuraPulse 8s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-ambient-glow {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 85, 0, 0.22) 0%, rgba(255, 104, 34, 0.08) 48%, transparent 78%);
  filter: blur(65px);
}

@keyframes subtleAuraPulse {
  0% {
    transform: translate(-50%, 0) scale(0.96);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, 0) scale(1.04);
    opacity: 1;
  }
}

.hero-stats-band {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* --- Tech Pill Badges & Chips --- */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background-color: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.tech-pill.accent {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

/* --- Project Showcase Card (Editorial Asymmetric Layout) --- */
.project-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.project-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.project-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

@media (max-width: 991.98px) {
  .project-card-featured {
    grid-template-columns: 1fr;
  }
}

.project-media {
  background: linear-gradient(135deg, #1e222d 0%, #111318 100%);
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.project-media-preview {
  width: 100%;
  max-width: 480px;
  background-color: #141720 !important;
  border: 1px solid #2d3444 !important;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: #e2e8f0;
}

.window-header {
  height: 28px;
  background-color: #1c202c !important;
  border-bottom: 1px solid #2d3444 !important;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.window-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8 !important;
  font-weight: 500;
}

/* --- Terminal Previews Text Contrast Fix (Both Light & Dark Modes) --- */
.project-media-preview .font-mono {
  color: #f1f5f9;
}

/* Ensure secondary text in dark terminal preview is always clear slate with high contrast */
.project-media-preview .text-muted,
.project-media-preview span.text-muted,
.project-media-preview .code-comment,
.project-media .text-muted,
.bg-dark .text-muted,
[data-theme="light"] .project-media-preview .text-muted,
[data-theme="light"] .project-media-preview span.text-muted,
[data-theme="light"] .project-media-preview .code-comment,
[data-theme="light"] .project-media .text-muted,
[data-theme="light"] .bg-dark .text-muted {
  color: #b4bccb !important;
  opacity: 1 !important;
}

.project-media-preview .text-light,
.project-media-preview span.text-light {
  color: #f8fafc !important;
}

.project-media-preview .small,
.project-media-preview small,
.project-media-preview div.small {
  color: #cbd5e1 !important;
}

.project-media-preview .text-success {
  color: #34d399 !important;
}

.project-media-preview .text-warning {
  color: #fbbf24 !important;
}

.project-media-preview .text-info {
  color: #38bdf8 !important;
}

.project-media-preview .text-danger {
  color: #f87171 !important;
}

.project-body {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   FEATURED CASE STUDIES — REFINED MODERN ARCHITECTURAL SHOWCASE
   Balanced editorial styling with an authentic developer dark-touch console
   ========================================================================== */

/* Modern Precision Cards */
.project-card-featured,
.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.project-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .project-card-featured {
    grid-template-columns: 1fr;
  }
}

.project-card-featured:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .project-card-featured,
[data-theme="dark"] .project-card {
  background-color: #0d1017;
  border-color: #1f2535;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .project-card-featured:hover,
[data-theme="dark"] .project-card:hover {
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

/* Dark Touch Media Container (Terminal / IDE Preview) */
.project-media {
  background: linear-gradient(145deg, #161b26 0%, #0c0f17 100%);
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.project-card-featured .project-media {
  border-right: 1px solid #1f2535;
}

@media (max-width: 991.98px) {
  .project-card-featured .project-media {
    border-right: none;
    border-bottom: 1px solid #1f2535;
  }
}

.project-card .project-media {
  border-bottom: 1px solid #1f2535;
}

.project-media-preview {
  width: 100%;
  max-width: 480px;
  background-color: #090c13 !important;
  border: 1px solid #232b3e !important;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: #e2e8f0;
}

.window-header {
  height: 30px;
  background-color: #131724 !important;
  border-bottom: 1px solid #232b3e !important;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.window-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8 !important;
  font-weight: 500;
}

/* Card Body */
.project-body {
  padding: clamp(1.75rem, 2.75vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Dark Touch Category Tag Badge */
.project-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0f141c;
  color: #f1f5f9;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.project-category-badge .badge-dot {
  width: 6px;
  height: 6px;
  background-color: #ff5500;
  border-radius: 1px;
  display: inline-block;
}

[data-theme="dark"] .project-category-badge {
  background-color: #151a24;
  border-color: #263143;
}

/* Sleek Project Date Pill */
.project-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  line-height: 1.2;
}

[data-theme="dark"] .project-date-badge {
  background-color: #141824;
  border-color: #232a3d;
  color: #94a3b8;
}

.project-item {
  display: flex;
  flex-direction: column;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Title & Description */
.project-title {
  font-size: clamp(1.25rem, 1.75vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.project-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: var(--accent-primary);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Understated Impact Badge */
.project-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.38rem 0.8rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.project-impact-badge .impact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

[data-theme="dark"] .project-impact-badge {
  background-color: #141824;
  border-color: #232a3d;
  color: #f1f5f9;
}

/* Tech Stack Pills */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tech-stack .tech-pill {
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.project-tech-stack .tech-pill:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.project-tech-stack .tech-pill.accent {
  background-color: rgba(255, 85, 0, 0.08);
  border-color: rgba(255, 85, 0, 0.25);
  color: #ea580c;
}

[data-theme="dark"] .project-tech-stack .tech-pill {
  background-color: #141824;
  border-color: #232a3d;
  color: #cbd5e1;
}

[data-theme="dark"] .project-tech-stack .tech-pill.accent {
  background-color: rgba(255, 85, 0, 0.12);
  border-color: rgba(255, 85, 0, 0.4);
  color: #ff8533;
}

/* Action Button */
.project-body .btn-editorial-dark {
  background-color: #0f141c;
  border: 1px solid #1f2535;
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-body .btn-editorial-dark:hover {
  background-color: #1a2230;
  border-color: #333f56;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.filter-btn.active {
  background-color: var(--bg-surface);
  border-color: var(--border-medium);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   OPERATIONAL STANDARDS — UNIFIED PRECISION ARCHITECTURAL MONOLITH
   High-end Swiss/Linear architectural 2x2 grid with hairline precision dividers
   ========================================================================== */

.standards-monolith-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--border-subtle);
  gap: 1px; /* Precision hairline divider technique */
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .standards-monolith-grid {
  background-color: #222736;
  border-color: #222736;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.standards-quadrant {
  position: relative;
  background-color: var(--bg-surface);
  padding: clamp(2.25rem, 3.2vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  min-height: 380px;
}

[data-theme="dark"] .standards-quadrant {
  background-color: #0c0f17;
}

/* Hover: Quiet, refined illumination without gaudiness */
.standards-quadrant:hover {
  background-color: var(--bg-surface-elevated, #ffffff);
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 85, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .standards-quadrant:hover {
  background-color: #121624;
  box-shadow: inset 0 0 0 1px rgba(255, 85, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Quadrant Top Header */
.quadrant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.quadrant-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.quadrant-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}

.quadrant-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quadrant-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.standards-quadrant:hover .quadrant-badge {
  background: rgba(255, 85, 0, 0.08);
  border-color: rgba(255, 85, 0, 0.3);
  color: var(--accent-primary);
}

/* Quadrant Main Copy */
.quadrant-main {
  margin-bottom: 2.25rem;
}

.quadrant-title {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.quadrant-desc {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 95%;
}

/* Quadrant Specs Bar (Clean Editorial Table Row) */
.quadrant-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease;
}

.standards-quadrant:hover .quadrant-specs {
  border-top-color: rgba(255, 85, 0, 0.25);
}

.quadrant-spec-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-v {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Responsive: 1 Column on Tablet & Mobile */
@media (max-width: 991.98px) {
  .standards-monolith-grid {
    grid-template-columns: 1fr;
  }
  
  .standards-quadrant {
    padding: 1.85rem 1.4rem;
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .standards-quadrant {
    padding: 1.5rem 1.15rem;
  }

  .quadrant-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.35rem;
  }

  .quadrant-meta {
    gap: 8px;
  }

  .quadrant-category {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .quadrant-badge {
    font-size: 0.64rem;
    padding: 0.22rem 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .quadrant-title {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
  }

  .quadrant-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .quadrant-specs {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.1rem;
  }
}

/* --- Commercial Comparison Matrix (Clean Editorial Architecture) --- */
.comparison-matrix-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(2rem, 3.2vw, 3rem);
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .comparison-matrix-card {
  background-color: #0c0f17;
  border-color: #222736;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.comparison-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.comparison-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.65rem;
}

.comparison-card-title {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.comparison-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Comparison Grid Container */
.comparison-grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-matrix-grid {
  min-width: 780px;
  display: flex;
  flex-direction: column;
}

/* Rows */
.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.25fr;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease;
}

.matrix-row:hover:not(.matrix-header-row) {
  background-color: var(--bg-surface-subtle);
}

.matrix-row:last-child {
  border-bottom: none;
}

/* Header Row */
.matrix-header-row {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.25rem;
}

.matrix-header-row .matrix-cell {
  padding-top: 0.5rem;
  padding-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.matrix-header-row .cell-primary-focus {
  color: var(--accent-primary) !important;
}

/* Cells */
.matrix-cell {
  padding: 1.25rem 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cell-dimension {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.25rem;
}

.criteria-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.criteria-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Direct with UDARAX Column */
.matrix-cell.cell-primary-focus {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
}

.matrix-cell.cell-primary-focus i {
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Architecture & Code Showcase Component --- */
.blueprint-card {
  background-color: #12141a;
  border: 1px solid #282c38;
  border-radius: var(--radius-lg);
  color: #d1d5db;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.blueprint-header {
  background-color: #191c24;
  border-bottom: 1px solid #282c38;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.blueprint-nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.blueprint-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #8f95a5;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blueprint-tab:hover {
  color: #e5e7eb;
}

.blueprint-tab.active {
  background-color: #262b37;
  color: #ffffff;
  border-color: #383f52;
}

.blueprint-body {
  padding: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-fn { color: #60a5fa; }
.code-string { color: #34d399; }
.code-comment { color: #6b7280; font-style: italic; }
.code-var { color: #facc15; }
.code-num { color: #fb923c; }

/* Interactive Architecture Flow Diagram */
.arch-diagram-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1rem 0;
}

.arch-node {
  background-color: #1a1e29;
  border: 1px solid #2d3345;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.arch-node-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.arch-node-desc {
  color: #94a3b8;
  font-size: 0.775rem;
  line-height: 1.45;
}

.arch-node-protocol {
  margin-top: 0.75rem;
  font-size: 0.725rem;
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  align-self: flex-start;
}

/* --- Capability / Discipline Cards --- */
.discipline-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.discipline-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.discipline-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.discipline-card:hover .discipline-icon-box {
  background-color: var(--accent-subtle);
  border-color: var(--accent-border);
}

.discipline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.discipline-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.discipline-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* --- Products Showcase Cards --- */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-badge-version {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  margin-left: auto;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-features-list li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-features-list li i {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

/* --- Journal & Article Cards --- */
.journal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  transition: all var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.journal-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.journal-title {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.65rem;
  transition: color var(--transition-fast);
}

.journal-card:hover .journal-title {
  color: var(--accent-primary);
}

.journal-excerpt {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* --- Interactive Contact Form Styles --- */
.contact-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-md);
}

.form-label-custom {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: block;
}

.form-control-editorial {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control-editorial:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-control-editorial::placeholder {
  color: var(--text-muted);
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-pill-input {
  display: none;
}

.choice-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.choice-pill-input:checked + .choice-pill-label {
  background-color: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
}

.choice-pill-label:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Form Toast Notification */
.form-toast {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  margin-top: 1.5rem;
}

.form-toast.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* --- Footer Elements --- */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2.5rem;
}

.footer-tz-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

/* --- Editorial Pullquote & Callout --- */
.editorial-quote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.editorial-quote-author {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FIVENEURALS-INSPIRED SLEEK TECH AGENCY COMPONENTS (SIMPLIFIED & CLEAN)
   ========================================================================== */

/* --- Top Status Announcement Bar --- */
.header-top-bar {
  background-color: #0d0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #e2e8f0;
  text-transform: uppercase;
}

[data-theme="dark"] .header-top-bar {
  background-color: #07080a;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.header-top-bar .highlight {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* --- Corner Square Crosshair / Bracket Marks (.square-dot) --- */
.square-dot {
  position: relative;
}

.square-dot .square-shape {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--border-strong);
  pointer-events: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  z-index: 3;
}

.square-dot:hover .square-shape {
  background-color: var(--accent-primary);
  transform: scale(1.2);
}

.square-shape.top-left { top: -3px; left: -3px; }
.square-shape.top-right { top: -3px; right: -3px; }
.square-shape.bottom-left { bottom: -3px; left: -3px; }
.square-shape.bottom-right { bottom: -3px; right: -3px; }

/* Inverted / Light corners on dark surfaces */
.bg-dark .square-dot .square-shape,
.project-card-featured .square-dot .square-shape {
  background-color: rgba(255, 255, 255, 0.4);
}

/* --- Animated Arrow Track (Movement & Momentum) --- */
.arrow-track {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  padding: 0 4px;
}

.arrow-track .arrow {
  display: inline-flex;
  font-size: 0.75rem;
  color: var(--accent-primary);
  opacity: 0.3;
  animation: arrowTrackFlow 1.8s infinite ease-in-out;
}

.arrow-track .arrow:nth-child(1) { animation-delay: 0.0s; }
.arrow-track .arrow:nth-child(2) { animation-delay: 0.15s; }
.arrow-track .arrow:nth-child(3) { animation-delay: 0.3s; }
.arrow-track .arrow:nth-child(4) { animation-delay: 0.45s; }
.arrow-track .arrow:nth-child(5) { animation-delay: 0.6s; }
.arrow-track .arrow:nth-child(6) { animation-delay: 0.75s; }

@keyframes arrowTrackFlow {
  0% { opacity: 0.2; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(2px); }
  100% { opacity: 0.2; transform: translateX(-2px); }
}

/* Reverse arrow track */
.arrow-track.reverse .arrow {
  animation: arrowTrackFlowReverse 1.8s infinite ease-in-out;
}
@keyframes arrowTrackFlowReverse {
  0% { opacity: 0.2; transform: translateX(2px); }
  50% { opacity: 1; transform: translateX(-2px); }
  100% { opacity: 0.2; transform: translateX(2px); }
}

/* --- Infinite Scrolling Tech Marquee --- */
.tech-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  position: relative;
}

.tech-marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.tech-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display-tech);
  font-size: 0.925rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.marquee-item .sparkle {
  color: var(--accent-primary);
  font-size: 0.8rem;
}

/* ==========================================================================
   COMMERCIAL CLIENT BRANDS & LOGO SHOWCASE (35+ BRANDS)
   ========================================================================== */
.client-brands-section {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.client-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

/* --- Commercial Brands Even Grid & Cards (Harmonized Optical Balance) --- */
.client-brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 2.25rem;
}

.brand-card-even {
  flex: 0 0 calc((100% - (5 * 1.15rem)) / 6);
  max-width: calc((100% - (5 * 1.15rem)) / 6);
  height: 108px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .brand-card-even {
  background-color: #13161f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-logo-img {
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.76;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              filter 0.22s ease;
}

/* Standalone wordmarks / text-heavy logos (Soleux, CarwashFX, FixitLabs, Louvies, Union Assurance)
   Calibrated optical height so cap/x-height precisely matches icon and badge visual weight */
.brand-logo-img.brand-logo-wordmark {
  max-height: 40px;
  max-width: 92%;
}

/* Horizontal / Wide combined logos (WiseCapital, Green Isle, SustanPro, Yanko, etc.) */
.brand-logo-img.brand-logo-wide {
  max-height: 58px;
  max-width: 92%;
}

/* Compact / Square logos (AIA, Elcon, Sandadiya, Debee, etc.) */
.brand-logo-img.brand-logo-square {
  max-height: 70px;
  max-width: 70px;
}

/* Vertical / Tall logos (Ceylon Harvest, Mithuru Mithuro) */
.brand-logo-img.brand-logo-tall {
  max-height: 76px;
  max-width: 76px;
}

/* Solid-background badge logos: rounded app tiles without inner shadow boxes */
.brand-logo-img.brand-logo-badge {
  border-radius: 8px;
  box-shadow: none;
  border: none;
}

/* Badge and square medallions - unified professional curvature */
.brand-logo-img.brand-logo-circle {
  border-radius: 8px;
  max-height: 70px;
  max-width: 70px;
  box-shadow: none;
  border: none;
}

.brand-card-even:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.16);
}

.brand-card-even:hover .brand-logo-img {
  filter: grayscale(100%) contrast(1.1);
  opacity: 1;
  transform: scale(1.05);
}

/* Dark mode adjustments */
[data-theme="dark"] .brand-logo-img {
  filter: grayscale(100%) brightness(1.1);
  opacity: 0.82;
}

[data-theme="dark"] .brand-card-even:hover .brand-logo-img {
  filter: grayscale(100%) brightness(1.25) contrast(1.1);
  opacity: 1;
}

[data-theme="dark"] .brand-logo-img.brand-logo-badge {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .brand-logo-img[src*="soleux.png"] {
  filter: grayscale(100%) invert(1) brightness(1.8);
}

[data-theme="dark"] .brand-card-even:hover .brand-logo-img[src*="soleux.png"] {
  filter: grayscale(100%) invert(1) brightness(2.2);
}

/* White-text wordmark logo adjustment for light mode: G LABS */
:root:not([data-theme="dark"]) .brand-logo-img[src*="glabs.png"] {
  filter: grayscale(100%) invert(0.9) brightness(0.9);
}

:root:not([data-theme="dark"]) .brand-card-even:hover .brand-logo-img[src*="glabs.png"] {
  filter: grayscale(100%) invert(0.95) brightness(0.7);
}

[data-theme="dark"] .brand-logo-img[src*="glabs.png"] {
  filter: grayscale(100%) brightness(1.05);
}

/* ==========================================================================
   WE ENGINEER WE TRANSFORM: INTERACTIVE EXPANDING SERVICES SHOWCASE
   Seamless Multi-Column Grid with Rich Dark Hover States & Giant Watermarks
   ========================================================================== */

.services-transform-grid {
  display: flex;
  width: 100%;
  min-height: 560px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  position: relative;
}

[data-theme="dark"] .services-transform-grid {
  background-color: #0d1017;
  border-color: #222634;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Individual Column Card */
.service-transform-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 2.2rem 2.5rem;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.service-transform-card:last-child {
  border-right: none;
}

[data-theme="dark"] .service-transform-card {
  background-color: #0d1017;
  border-color: #222634;
}

/* Background Overlay for Rich Dark State (Hover & Active) */
.service-transform-card .card-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255, 85, 0, 0.16) 0%, transparent 60%),
              linear-gradient(175deg, #131724 0%, #080b12 100%);
  transition: opacity 0.45s ease;
  z-index: 0;
}

/* Active / Hovered Card Expansion & Dark Transformation */
.service-transform-card:hover,
.service-transform-card.is-active {
  flex: 1.48;
  box-shadow: inset 0 0 0 1px rgba(255, 85, 0, 0.35), 0 12px 36px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 85, 0, 0.4);
}

.service-transform-card:hover .card-bg-overlay,
.service-transform-card.is-active .card-bg-overlay {
  opacity: 1;
}

/* Card Top Area */
.service-transform-card .card-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Top Pill Badge with Orange Marker */
.service-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: #080b11;
  color: #ffffff;
  padding: 0.42rem 0.95rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-tag-badge .tag-square {
  width: 8px;
  height: 8px;
  background-color: #ff5500;
  border-radius: 1px;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 85, 0, 0.6);
}

.service-transform-card:hover .service-tag-badge,
.service-transform-card.is-active .service-tag-badge {
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Service Description (Collapses on unhovered, expands smoothly on active) */
.service-transform-card .service-desc {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.85);
  max-width: 95%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
}

.service-transform-card:hover .service-desc,
.service-transform-card.is-active .service-desc {
  opacity: 1;
  max-height: 140px;
  transform: translateY(0);
}

/* Giant Watermark Numeral */
.service-watermark-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display-tech), var(--font-sans);
  font-size: clamp(6.5rem, 9.5vw, 9.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(18, 20, 26, 0.06);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .service-watermark-num {
  color: rgba(255, 255, 255, 0.045);
}

.service-transform-card:hover .service-watermark-num,
.service-transform-card.is-active .service-watermark-num {
  color: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Card Bottom Area */
.service-transform-card .card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Deliverables List with Left Orange Accent Line */
.service-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #ff5500;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-deliverables li {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

[data-theme="dark"] .service-deliverables li {
  color: #cbd5e1;
}

.service-transform-card:hover .service-deliverables li,
.service-transform-card.is-active .service-deliverables li {
  color: #ffffff;
}

/* Action Arrow Button */
.service-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-transform-card:hover .service-action-btn,
.service-transform-card.is-active .service-action-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.service-action-btn:hover {
  background-color: #ff5500;
  border-color: #ff5500;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.45);
}

/* Fallback for legacy service-fn-card */
.service-fn-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

/* --- Human-Friendly Working Process Steps (Rich Dark Transformation on Hover) --- */
.process-step-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(1.5rem, 2.25vw, 2rem) clamp(1.25rem, 2vw, 1.75rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

/* Rich Dark Transformation Overlay (Matching We Engineer We Transform) */
.process-step-box .card-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255, 85, 0, 0.16) 0%, transparent 60%),
              linear-gradient(175deg, #131724 0%, #080b12 100%);
  transition: opacity 0.45s ease;
  z-index: 0;
}

.process-step-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 85, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.process-step-box:hover .card-bg-overlay {
  opacity: 1;
}

[data-theme="dark"] .process-step-box {
  background-color: #0d1017;
  border-color: #1f2535;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .process-step-box:hover {
  border-color: rgba(255, 85, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 85, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.65);
}

/* Header with Step Number & Phase Badge */
.process-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: transform 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
}

.process-step-box:hover .process-step-num {
  color: #ff8533;
  text-shadow: 0 0 16px rgba(255, 85, 0, 0.45);
  transform: scale(1.08);
}

.process-phase-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.35s ease;
}

.process-step-box:hover .process-phase-badge {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 85, 0, 0.45);
  color: #ffffff;
}

[data-theme="dark"] .process-phase-badge {
  background-color: #141824;
  border-color: #232a3d;
  color: #94a3b8;
}

[data-theme="dark"] .process-step-box:hover .process-phase-badge {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 85, 0, 0.5);
  color: #ffffff;
}

/* Titles and Copy — Seamless Transition to Dark Mode on Hover */
.process-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.35;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.process-step-box:hover .process-step-title {
  color: #ffffff;
}

.process-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.process-step-box:hover .process-step-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Concrete Deliverables Section */
.process-deliverables {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
  transition: border-color 0.35s ease;
}

.process-step-box:hover .process-deliverables {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.process-deliverables-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.process-step-box:hover .process-deliverables-title {
  color: rgba(255, 255, 255, 0.55);
}

.process-deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.process-deliverables-list li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.process-step-box:hover .process-deliverables-list li {
  color: #f1f5f9;
}

.process-deliverables-list li i {
  font-size: 0.85rem;
  color: var(--accent-primary) !important;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.process-step-box:hover .process-deliverables-list li i {
  color: #ff8533 !important;
  transform: scale(1.25);
}

[data-theme="dark"] .process-deliverables {
  border-top-color: #1f2535;
}

[data-theme="dark"] .process-deliverables-list li {
  color: #94a3b8;
}

[data-theme="dark"] .process-step-box:hover .process-deliverables-list li {
  color: #f1f5f9;
}

/* --- Simple FAQ Accordion for Regular Clients --- */
.faq-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-box.open {
  border-color: var(--border-strong);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: var(--bg-surface);
  user-select: none;
}

.faq-question {
  font-family: var(--font-display-tech);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.faq-icon {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-box.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-box.open .faq-body {
  display: block;
}

/* ==========================================================================
   FIVENEURALS CONTACT PAGE SPECIFIC DESIGN COMPONENTS
   ========================================================================== */

/* --- FiveNeurals Button System --- */
.wpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display-tech);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1.2;
}

.wpr-btn.btn-primary,
.wpr-btn:not(.btn-white):not(.btn-outline) {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.28);
}

.wpr-btn.btn-primary:hover,
.wpr-btn:not(.btn-white):not(.btn-outline):hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.38);
}

.wpr-btn.btn-white {
  background-color: #ffffff;
  color: #111215;
  border: 1px solid var(--border-medium);
}

.wpr-btn.btn-white:hover {
  background-color: #f7f7f9;
  border-color: var(--border-strong);
  color: #000000;
  transform: translateY(-2px);
}

/* --- FiveNeurals 3-Column Contact Items --- */
.wpr-get-in-touch .section-inner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.box-contact-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
}

.box-contact-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.box-contact-item .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  transition: all var(--transition-fast);
}

.box-contact-item:hover .icon {
  background-color: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.05);
}

.box-contact-item .title {
  font-family: var(--font-display-tech);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.box-contact-item .text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.box-contact-item a.text:hover {
  color: var(--accent-primary);
}

/* --- Embedded Map Container --- */
.wpr-map {
  margin-top: 2.5rem;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  padding: 0;
}

.wpr-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(15%) contrast(105%);
}

[data-theme="dark"] .wpr-map iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(110%);
}

/* --- FiveNeurals Dual-Column Form Section --- */
.wpr-contact-area .section-inner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 991.98px) {
  .wpr-contact-area .section-inner {
    grid-template-columns: 1fr;
  }
}

.left-content-area {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.left-content-area .sub-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.left-content-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.left-content-area ul li a {
  font-family: var(--font-display-tech);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.left-content-area ul li a:hover {
  color: var(--accent-primary);
}

.location-area h4 {
  font-family: var(--font-display-tech);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.location-area p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Slash-Prefixed Input Fields (/YOUR NAME) --- */
.single-input {
  margin-bottom: 1.5rem;
}

.single-input label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.single-input input,
.single-input select,
.single-input textarea {
  width: 100%;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 0.95rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.single-input input:focus,
.single-input select:focus,
.single-input textarea:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.single-input textarea {
  min-height: 140px;
  resize: vertical;
}

.form-btn-area {
  margin-top: 2rem;
}

.form-btn-area .wpr-btn {
  width: 100%;
  padding: 1rem 2rem;
}

/* ==========================================================================
   SUB-PAGE HERO (.page-hero) — FiveNeurals-style, shared by all inner pages
   ========================================================================== */
.page-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.page-hero .hero-grid-bg {
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 55%, transparent 100%);
}

/* Soft orange glow behind the title */
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(900px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 85, 0, 0.09), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-hero-shapes img {
  position: absolute;
  opacity: 0.4;
}

[data-theme="dark"] .page-hero-shapes img { opacity: 0.2; }

.page-hero-shapes img.one { top: 0; left: 0; width: 170px; }
.page-hero-shapes img.two { bottom: 0; right: 0; width: 200px; }

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.25rem, 6vw, 5.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}

.page-hero-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(28px, 4vw, 48px);
  border-left: 1px dashed var(--accent-primary);
  opacity: 0.55;
  transform: translateX(-50%);
}

/* Breadcrumb pill */
.page-hero-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.05rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.page-hero-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.page-hero-crumbs a:hover { color: var(--accent-primary); }

.page-hero-crumbs .sep {
  font-size: 0.6rem;
  color: var(--accent-primary);
  opacity: 0.7;
  flex-shrink: 0;
}

.page-hero-crumbs [aria-current="page"] {
  color: var(--accent-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 32ch;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .page-hero-crumbs {
    padding: 0.35rem 0.85rem;
    font-size: 0.68rem;
    gap: 0.45rem;
    letter-spacing: 0.04em;
  }
  .page-hero-crumbs [aria-current="page"] {
    max-width: 20ch;
  }
 
}

@media (max-width: 576px) {
  .page-hero-crumbs {
    max-width: 100%;
    padding: 0.32rem 0.75rem;
    font-size: 0.64rem;
    gap: 0.35rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .page-hero-crumbs::-webkit-scrollbar {
    display: none;
  }
  .page-hero-crumbs [aria-current="page"] {
    max-width: 14ch;
  }
}

/* Title */
.page-hero-title {
  font-family: var(--font-display-tech);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
}

.page-hero-title .hl {
  color: var(--accent-primary);
  position: relative;
  white-space: nowrap;
}

.page-hero-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: clamp(1.1rem, 2vw, 1.6rem) auto 0;
  text-wrap: pretty;
}

/* Meta strip with corner brackets */
.page-hero-meta {
  display: inline-flex;
  align-items: stretch;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.page-hero-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.6rem;
  min-width: 150px;
}

.page-hero-meta .meta-item + .meta-item {
  border-left: 1px dashed var(--border-medium);
}

.page-hero-meta .meta-k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-hero-meta .meta-v {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.page-hero-meta .meta-v.mono {
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

/* Restore breathing room for content sections that follow the hero */
.page-hero + section.pt-0 {
  padding-top: clamp(3rem, 5.5vw, 4.75rem) !important;
}

@media (max-width: 767.98px) {
  .page-hero-shapes { display: none; }
  .page-hero-title .hl { white-space: normal; }

  .page-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 1.5rem;
    box-sizing: border-box;
  }

  .page-hero-meta .meta-item {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-hero-meta .meta-item + .meta-item { border-left: none; }
  .page-hero-meta div.meta-item:nth-of-type(even) { border-left: 1px dashed var(--border-medium); }
  .page-hero-meta div.meta-item:nth-of-type(n+3) { border-top: 1px dashed var(--border-medium); }

  .page-hero-meta .meta-k {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-hero-meta .meta-v {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }

  .page-hero-meta .meta-v.mono {
    font-size: clamp(0.78rem, 3vw, 0.88rem);
    letter-spacing: -0.01em;
  }
}

/* ==========================================================================
   SMOOTH COMPONENT TRANSITIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Smooth Card Hover Motion & Image Zoom */
.project-card,
.project-card-featured,
.service-fn-card,
.product-card,
.journal-card,
.brand-card-even,
.client-guarantee-card,
.discipline-card,
.blueprint-card {
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              border-color var(--transition-smooth),
              background-color var(--transition-smooth) !important;
}

.project-card .project-media img,
.project-card-featured img,
.journal-card img,
.product-card img {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.project-card:hover .project-media img,
.project-card-featured:hover img,
.journal-card:hover img,
.product-card:hover img {
  transform: scale(1.03);
}

/* Blueprint Panel Smooth Fade */
.blueprint-panel {
  animation: panelFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project Filter Transition */
.project-item {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Filter Buttons Smooth Motion */
.filter-btn {
  transition: all var(--transition-smooth) !important;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   PRODUCT PREVIEW SHOWCASE HERO CARD (Signature FiveNeurals Editorial Studio)
   ========================================================================== */
.product-preview-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.product-preview-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  min-height: 520px;
  margin: 0;
  background: radial-gradient(circle at 50% 15%, #161922 0%, #0b0d14 100%);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-preview-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 36px 90px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 85, 0, 0.2);
}

/* Corner Tech Viewfinder Brackets (Signature FiveNeurals Reticle Motif) */
.product-preview-card .square-shape {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 6;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.product-preview-card .square-shape.top-left {
  top: 18px;
  left: 18px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.product-preview-card .square-shape.top-right {
  top: 18px;
  right: 18px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.product-preview-card .square-shape.bottom-left {
  bottom: 84px;
  left: 18px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.product-preview-card .square-shape.bottom-right {
  bottom: 84px;
  right: 18px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.product-preview-card:hover .square-shape {
  border-color: var(--accent-primary);
  transform: scale(1.15);
}

/* Background Slides (Studio Device Mockups) */
.product-preview-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-preview-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.product-preview-slide.active {
  opacity: 1;
  visibility: visible;
}

.product-preview-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Subtle Vignette Gradient for Legibility */
.product-preview-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 70%, rgba(10, 12, 18, 0.65) 0%, rgba(10, 12, 18, 0.15) 50%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

/* Top Center Direct Action Pill (Glassmorphic Pill) */
.preview-case-study-btn {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.preview-case-study-btn:hover {
  background: rgba(255, 85, 0, 0.15);
  border-color: rgba(255, 85, 0, 0.6);
  color: #ff5500;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 85, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.preview-case-study-btn svg {
  transition: transform 0.2s ease;
}

.preview-case-study-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Bottom-Left Overlay: Floating Frosted Glass HUD Card */
.product-preview-content {
  position: absolute;
  bottom: 92px;
  left: 28px;
  width: clamp(340px, 36%, 480px);
  padding: 1.65rem 1.75rem;
  background: rgba(14, 17, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-preview-title {
  font-family: var(--font-heading), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.product-preview-desc {
  font-size: clamp(0.85rem, 0.95vw, 0.925rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Bottom Bar: Docked Frosted Glass Strip */
.product-preview-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: rgba(10, 12, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
}

.preview-specs-wrap {
  display: flex;
  align-items: stretch;
  width: auto;
  pointer-events: auto;
}

.preview-spec-cell {
  padding: 0 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.25s ease;
}

.preview-spec-val {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.preview-spec-lbl {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-nav-wrap {
  display: flex;
  align-items: stretch;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

.preview-nav-indicator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-counter-pill {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.04em;
}

.preview-counter-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 1px;
}

.preview-dots-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.preview-dot.active {
  background: #ff5500;
  width: 16px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

.preview-nav-actions {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.preview-arrow-btn {
  width: 64px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.preview-arrow-btn.prev {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ff5500;
}

.preview-content-fading {
  opacity: 0.25;
  transform: translateY(3px);
}

/* ==========================================================================
   MOBILE & TABLET CLEAN RESPONSIVE EXPERIENCE (< 860px)
   Transforms the squished overlay card into a sleek studio vertical card.
   ========================================================================== */
@media (max-width: 860px) {
  .product-preview-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: auto;
    min-height: auto;
    border-radius: var(--radius-md, 16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0d14;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  }

  /* Dedicated Visual Stage for Product Mockup */
  .product-preview-slides {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
    background: #07090e;
    z-index: 1;
  }

  .product-preview-slides::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, transparent 0%, #0b0d14 100%);
    pointer-events: none;
    z-index: 2;
  }

  .product-preview-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  /* Direct Action Pill */
  .preview-case-study-btn {
    top: 14px;
    padding: 0.35rem 0.95rem;
    font-size: 0.7rem;
    border-radius: 9999px;
    background: rgba(14, 17, 24, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 4;
  }

  .product-preview-vignette {
    display: none;
  }

  /* Content Block: Flow Naturally Below Visual Stage */
  .product-preview-content {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    padding: 1.35rem 1.25rem 1rem;
    background: #0b0d14;
    z-index: 3;
  }

  .product-preview-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin-bottom: 0.5rem;
  }

  .product-preview-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
  }

  /* Bottom Bar: Stacked Vertically with Specs and Clean Nav Controls */
  .product-preview-bottom-bar {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #0b0d14;
    pointer-events: auto;
    border-top: none;
    z-index: 3;
  }

  /* Full-Width 3-Column Specs Strip */
  .preview-specs-wrap {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0.25rem;
  }

  .preview-spec-cell {
    padding: 0 0.45rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .preview-spec-cell:last-child {
    border-right: none;
  }

  .preview-spec-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  .preview-spec-lbl {
    font-size: 0.65rem;
    color: #8fa0b5;
    margin-top: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: center;
  }

  /* Navigation Strip: Indicator on Left, Tactile Buttons on Right */
  .preview-nav-wrap {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: #0b0d14;
    border-left: none;
  }

  .preview-nav-indicator {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    border-right: none;
  }

  .preview-counter-pill {
    font-size: 0.74rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .preview-dots-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .preview-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    height: auto;
  }

  .preview-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .preview-arrow-btn.prev {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .preview-arrow-btn:hover,
  .preview-arrow-btn:active {
    background: rgba(255, 85, 0, 0.15);
    border-color: rgba(255, 85, 0, 0.4);
    color: #ff5500;
  }
}

/* Extra compact phones (e.g. iPhone SE, 360px-393px) */
@media (max-width: 420px) {
  .product-preview-slides {
    height: 220px;
    min-height: 220px;
  }

  .product-preview-content {
    padding: 1.15rem 1rem 0.85rem;
  }

  .product-preview-title {
    font-size: 1.22rem;
  }

  .product-preview-desc {
    font-size: 0.825rem;
    line-height: 1.5;
  }

  .preview-specs-wrap {
    padding: 0.75rem 0.15rem;
  }

  .preview-spec-val {
    font-size: 0.95rem;
  }

  .preview-spec-lbl {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }

  .preview-nav-wrap {
    padding: 0 1rem;
    height: 52px;
  }

  .preview-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }
}






