/* ===================================================
   LINKED SOFTWARE — Main Stylesheet
   =================================================== */

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

::-webkit-scrollbar {
  width: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background: rgba(140, 180, 255, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::selection {
  background: rgba(140, 180, 255, 0.4);
  color: #fff;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(255, 255, 255, 0.85);
  background: #06080f;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading {
  overflow: hidden;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #06080f;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader__logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 40px rgba(100, 150, 255, 0.12));
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.loader__bar-track {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(140, 180, 255, 0.4), rgba(140, 180, 255, 0.8));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ---------- WEBGL CANVAS ---------- */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  background: #06080f;
  touch-action: none;
  z-index: 0;
}

/* ---------- LOGO (CENTER, FADES ON SCROLL) ---------- */
.logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: screen;
}
.center-logo {
  width: 180px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 60px rgba(100, 150, 255, 0.15));
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid transparent;
  border-radius: 100px;
  z-index: 1000;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 95vw;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(80, 140, 255, 0.5) 0%,
    rgba(80, 140, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Nav brand (hidden until scroll, collapses when hidden) */
.nav-brand {
  opacity: 0;
  flex-shrink: 0;
  width: 0;
  overflow: hidden;
  transition: width 0.4s ease;
}
.nav-brand.is-visible {
  width: 48px;
}
.nav-logo {
  width: 48px;
  height: auto;
  display: block;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-menu li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}
.nav-menu li a:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav CTA button */
.nav-cta {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(140, 180, 255, 0.3) !important;
  color: rgba(140, 180, 255, 0.9) !important;
}
.nav-cta:hover {
  background: rgba(140, 180, 255, 0.15) !important;
  border-color: rgba(140, 180, 255, 0.5) !important;
}

/* Dropdowns */
.nav-item {
  position: relative;
}
.dropdown-info {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.95) 0%, rgba(20, 25, 45, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(80, 140, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(80, 140, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}
.dropdown-info::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-item:hover .dropdown-info {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-title {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 400;
  margin-bottom: 0.15rem;
}
.dropdown-desc {
  display: block;
  color: rgba(120, 160, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding:  8vw;
}
.hero-content {
  max-width: 700px;
}
.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
}
.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}
.hero-description {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(140, 180, 255, 0.85);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  text-shadow: 0 0 30px rgba(100, 150, 255, 0.3);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 20;
}
.scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.4; }
  50% { transform: translateY(6px) rotate(45deg); opacity: 0.8; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a1a;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  border-color: rgba(140, 180, 255, 0.5);
  color: rgba(140, 180, 255, 0.9);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ---------- SECTIONS (GENERIC) ---------- */
.section {
  position: relative;
  z-index: 20;
  padding: 6rem 0;
}
.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 180, 255, 0.8);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(140, 180, 255, 0.2);
  border-radius: 100px;
}
.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subheading {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- SOCIAL PROOF ---------- */
.section-proof {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.proof-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.logo-ticker {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
}
.logo-ticker-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.client-logo {
  height: 44px;
  width: auto;
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.client-logo:hover {
  opacity: 0.7;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.service-card:hover {
  border-color: rgba(140, 180, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(80, 140, 255, 0.05);
}
.service-card-inner {
  padding: 2.5rem 2rem;
}
.service-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(140, 180, 255, 0.5);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.service-subtitle {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(140, 180, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.service-description {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-features {
  list-style: none;
  margin-bottom: 2rem;
}
.service-features li {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(140, 180, 255, 0.5);
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(140, 180, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}
.service-cta:hover {
  color: rgba(140, 180, 255, 1);
  gap: 0.75rem;
}
.service-cta span {
  transition: transform 0.3s ease;
}
.service-cta:hover span {
  transform: translateX(3px);
}

/* ===================================================
   PERSONAL PROFILE PRICING — Glass Showcase
   =================================================== */

.ps-showcase {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: url('assets/pricingScreenFinal.webp') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.ps-showcase--company {
  background-image: url('assets/pricingScreen2Final.webp');
}

.ps-showcase--package {
  background-image: url('assets/pricingScreen3Final.webp');
}

.ps-showcase--bundle {
  background-image: url('assets/pricingScreen4Final.webp');
}

/* Glass card — starts hidden below the bottom */
.ps-glass-card {
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 25px 25px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 -15px 60px rgba(0, 0, 0, 0.35);
  transition: bottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

/* Slide up when section enters viewport */
.ps-glass-card.ps-slide-up {
  bottom: 0;
}

/* Collapsed — only 54px peeks above the bottom edge */
.ps-glass-card.ps-slide-up.ps-card-collapsed {
  transform: translate(-50%, calc(100% - 54px));
}

/* Toggle button — top right of card */
.ps-toggle-btn {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a1628;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 12;
  flex-shrink: 0;
}

.ps-toggle-btn:hover {
  background: #f0f4ff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: scale(1.08);
}

.ps-toggle-btn svg {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

/* Rotate arrow up when card is collapsed */
.ps-card-collapsed .ps-toggle-btn svg {
  transform: rotate(180deg);
}

.ps-glass-content {
  padding: 40px 30px;
  text-align: center;
}

.ps-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.ps-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a7a3a;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.ps-fee {
  font-size: 1rem;
  font-weight: 400;
  color: #4a5568;
}

.ps-desc {
  font-size: 1.05rem;
  color: #4a5568;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

/* Features list */
.ps-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.ps-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 0.93rem;
  color: #1a202c;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stagger in when card slides up */
.ps-glass-card.ps-slide-up .ps-features li { opacity: 1; transform: translateY(0); }
.ps-features li:nth-child(1) { transition-delay: 0.30s; }
.ps-features li:nth-child(2) { transition-delay: 0.40s; }
.ps-features li:nth-child(3) { transition-delay: 0.50s; }
.ps-features li:nth-child(4) { transition-delay: 0.60s; }
.ps-features li:nth-child(5) { transition-delay: 0.70s; }
.ps-features li:nth-child(6) { transition-delay: 0.80s; }

.ps-features li svg {
  flex-shrink: 0;
  color: #0ECF7C;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* CTA button */
.ps-cta {
  display: inline-block;
  padding: 14px 42px;
  background: #0a1628;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: 2px solid #0a1628;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 25px rgba(10, 22, 40, 0.25);
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(18px);
}

.ps-glass-card.ps-slide-up .ps-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

.ps-cta:hover {
  background: #162844;
  border-color: #162844;
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(10, 22, 40, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .ps-showcase {
    height: 85vh;
    min-height: 580px;
  }
  .ps-glass-content {
    padding: 28px 20px;
  }
  .ps-title {
    font-size: 1.35rem;
  }
  .ps-price {
    font-size: 1.8rem;
  }
  .ps-features li {
    font-size: 0.85rem;
  }
}

.section-services {
  padding-bottom: 0;
}

/* ---------- METHOD SECTION ---------- */
.section-method {
  background: rgba(0, 0, 0, 0.85);
}

.method-philosophy {
  max-width: 600px;
  margin: 0 auto 4rem;
  text-align: center;
}
.method-philosophy p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}
.method-emphasis {
  margin-top: 1rem;
  color: rgba(140, 180, 255, 0.85) !important;
  text-shadow: 0 0 30px rgba(100, 150, 255, 0.3);
}

.method-steps {
  max-width: 700px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.method-step {
  display: flex;
  gap: 2rem;
  position: relative;
}
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}
.step-number {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(140, 180, 255, 0.6);
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
}
.step-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(140, 180, 255, 0.3), rgba(140, 180, 255, 0.05));
  margin: 0.25rem 0;
}
.step-content {
  flex: 1;
  padding-bottom: 2.5rem;
}
.step-title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.step-description {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.method-unifier {
  text-align: center;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(140, 180, 255, 0.7);
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-shadow: 0 0 30px rgba(100, 150, 255, 0.2);
}

/* ---------- CARD SCANNER / WORK SECTION ---------- */
.section-work-scanner {
  padding-bottom: 4rem;
  overflow: hidden;
}

.scanner-container {
  position: relative;
  width: 100vw;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-stream {
  position: absolute;
  width: 100vw;
  height: 180px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.card-line:active,
.card-line.dragging {
  cursor: grabbing;
}

.card-wrapper {
  position: relative;
  width: 400px;
  height: 250px;
  flex-shrink: 0;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
}

.card-normal {
  background: transparent;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  color: white;
  z-index: 2;
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--clip-right, 0%));
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.card-image:hover {
  filter: brightness(1.2) contrast(1.2);
}

.card-ascii {
  background: transparent;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}

.ascii-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(220, 210, 255, 0.6);
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 13px;
  overflow: hidden;
  white-space: pre;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
  animation: glitch 0.1s infinite linear alternate-reverse;
  margin: 0;
  padding: 0;
  text-align: left;
  vertical-align: top;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@keyframes glitch {
  0% { opacity: 1; }
  15% { opacity: 0.9; }
  16% { opacity: 1; }
  49% { opacity: 0.8; }
  50% { opacity: 1; }
  99% { opacity: 0.9; }
  100% { opacity: 1; }
}

.scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.4),
    transparent
  );
  animation: scanEffect 0.6s ease-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes scanEffect {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% { opacity: 1; }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

#particleCanvas {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100vw;
  height: 250px;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

#scannerCanvas {
  position: absolute;
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
  width: 100vw;
  height: 300px;
  z-index: 15;
  pointer-events: none;
  background: transparent;
}

/* Logo container on top of cards */
.card-logo-placeholder {
  position: absolute;
  top: -92px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 8px;
  z-index: 20;
  overflow: hidden;
}

.card-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- INSIGHTS / BLOG ---------- */
.section-insights {
  padding-bottom: 4rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
}

.insight-card:hover {
  border-color: rgba(140, 180, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.insight-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.insight-card__image {
  position: relative;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(140,180,255,0.06) 0%, rgba(80,140,255,0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.insight-card--featured .insight-card__image {
  min-height: 240px;
}

.insight-card__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.insight-card:hover .insight-card__image img {
  transform: scale(1.05);
}

.insight-card__image:has(img) {
  min-height: unset;
  display: block;
}

.insight-card__image-placeholder {
  width: 48px;
  height: 48px;
  color: rgba(140, 180, 255, 0.2);
  transition: all 0.4s ease;
}

.insight-card__image-placeholder svg {
  width: 100%;
  height: 100%;
}

.insight-card:hover .insight-card__image-placeholder {
  color: rgba(140, 180, 255, 0.4);
  transform: scale(1.1);
}

.insight-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-card--featured .insight-card__content {
  padding: 2rem;
}

.insight-card__category {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 180, 255, 0.6);
  margin-bottom: 0.75rem;
}

.insight-card__title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  transition: color 0.3s ease;
}

.insight-card--featured .insight-card__title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.insight-card:hover .insight-card__title {
  color: rgba(255,255,255,1);
}

.insight-card__excerpt {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.insight-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.insight-card__read {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}

.insight-card__arrow {
  font-size: 1rem;
  color: rgba(140, 180, 255, 0.4);
  transition: all 0.3s ease;
}

.insight-card:hover .insight-card__arrow {
  color: rgba(140, 180, 255, 0.8);
  transform: translateX(4px);
}

.insights-cta {
  text-align: center;
}

/* ---------- INDUSTRIES DASHBOARD ---------- */
.section-industries {
  padding-bottom: 4rem;
}

/* Dashboard wrapper */
.ind-dash {
  --dash-color: #8B7FF5;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(6, 6, 20, 0.98);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 50px 100px rgba(0,0,0,0.7),
    0 0 140px rgba(139,127,245,0.05);
  overflow: hidden;
  transition: box-shadow 0.7s ease;
}

/* Window chrome */
.ind-dash__chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.4rem;
  height: 44px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

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

.ind-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.ind-dot--r { background: #FF5F57; box-shadow: 0 0 8px rgba(255,95,87,0.6); }
.ind-dot--y { background: #FEBC2E; box-shadow: 0 0 8px rgba(254,188,46,0.6); }
.ind-dot--g { background: #28C840; box-shadow: 0 0 8px rgba(40,200,64,0.6); }

.ind-dash__chrome-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

.ind-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ind-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 8px rgba(40,200,64,0.9);
  animation: indPulse 2s ease-in-out infinite;
}

@keyframes indPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(40,200,64,0.9); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px rgba(40,200,64,0.4); }
}

/* Dashboard body */
.ind-dash__body {
  display: flex;
  height: 390px;
}

/* ── Sidebar ── */
.ind-sidebar {
  width: 172px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0 0;
  background: rgba(0,0,0,0.15);
}

.ind-sidebar__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 0 1rem 0.8rem;
}

.ind-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 1rem;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.ind-item:hover {
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.03);
}

.ind-item.is-active {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  border-left-color: var(--dash-color);
}

.ind-item__icon {
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s;
  display: flex;
}

.ind-item.is-active .ind-item__icon,
.ind-item:hover .ind-item__icon {
  opacity: 1;
}

.ind-sidebar__footer {
  margin-top: auto;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

/* ── Main panel area ── */
.ind-main {
  flex: 1;
  position: relative;
  overflow: hidden;
  /* subtle dot-grid background */
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Individual panels */
.ind-panel {
  position: absolute;
  inset: 0;
  padding: 1.2rem 1.5rem 0.7rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: transparent;
}

.ind-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Status row */
.ind-panel__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.05em;
}

.ind-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28C840;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(40,200,64,0.7);
}

.ind-panel__ver {
  margin-left: auto;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.13);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.03em;
}

/* Panel header */
.ind-panel__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ind-panel__tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c, #8B7FF5);
  opacity: 0.9;
}

.ind-panel__name {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.93);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.ind-panel__desc {
  font-size: 0.76rem;
  font-weight: 300;
  color: rgba(255,255,255,0.36);
  line-height: 1.65;
  margin: 0;
  max-width: 500px;
}

/* Metric cards */
.ind-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.ind-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.ind-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c, #8B7FF5), transparent);
  opacity: 0.5;
}

.ind-metric:hover {
  border-color: rgba(255,255,255,0.1);
}

.ind-metric__val {
  font-size: 1.22rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.03em;
  line-height: 1;
}

.ind-metric__lbl {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255,255,255,0.26);
  letter-spacing: 0.03em;
}

.ind-metric__trend {
  font-size: 0.62rem;
  margin-top: 0.2rem;
  font-weight: 400;
}

.ind-metric__trend.up     { color: #3ECF8E; }
.ind-metric__trend.neutral { color: rgba(255,255,255,0.28); }

/* Bottom row */
.ind-panel__btm {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0.6rem;
  flex: 1;
  min-height: 0;
}

/* Chart */
.ind-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  min-height: 0;
  overflow: hidden;
}

.ind-chart__hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.ind-chart__title {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ind-chart__range {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.18);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.ind-chart__svg {
  flex: 1;
  width: 100%;
  display: block;
}

.ind-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Capabilities */
.ind-caps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  overflow: visible;
}

.ind-caps__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.ind-caps__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
  justify-content: center;
}

.ind-caps__list li {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.52);
  line-height: 1.35;
  padding-left: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

.ind-caps__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c, #8B7FF5);
  opacity: 0.65;
}

.ind-caps__list li:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ind-dash__body {
    flex-direction: column;
    height: auto;
  }
  .ind-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.6rem 0.5rem;
    gap: 0.2rem;
    background: rgba(0,0,0,0.1);
  }
  .ind-sidebar__label,
  .ind-sidebar__footer { display: none; }
  .ind-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.45rem 0.8rem;
    width: auto;
    flex: 1;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
  }
  .ind-item.is-active {
    border-bottom-color: var(--dash-color);
    background: rgba(255,255,255,0.04);
    border-left-color: transparent;
  }
  .ind-main {
    min-height: 520px;
    background-size: 18px 18px;
  }
  .ind-panel__btm {
    grid-template-columns: 1fr;
  }
  .ind-caps {
    width: 100%;
  }
  .ind-caps__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
  }
}

@media (max-width: 600px) {
  .ind-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .ind-metric__val  { font-size: 0.95rem; }
  .ind-metric__lbl  { font-size: 0.56rem; }
  .ind-panel__name  { font-size: 1rem; }
  .ind-panel__desc  { font-size: 0.72rem; }
  .ind-item         { font-size: 0.6rem; }
  .ind-item__icon   { display: none; }
}

/* ---------- TECH STACK — ARCHITECTURE DIAGRAM ---------- */
.section-stack {
  padding-bottom: 4rem;
}

/* Diagram wrapper */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

/* Each layer row */
.arch-layer {
  display: grid;
  grid-template-columns: 28px 260px 1fr;
  gap: 0 2.5rem;
  align-items: start;
  padding: 0.25rem 0 2.25rem;
  border-radius: 12px;
  transition: background 0.3s ease;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.arch-layer:last-child {
  padding-bottom: 0;
}

.arch-layer:hover {
  background: rgba(var(--lc-rgb), 0.03);
}

/* ── Spine ── */
.arch-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.2rem;
}

.arch-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lc);
  box-shadow: 0 0 14px var(--lc), 0 0 28px rgba(var(--lc-rgb), 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: archNodePulse 3s ease-in-out infinite;
}

.arch-layer:nth-child(1) .arch-node { animation-delay: 0.0s; }
.arch-layer:nth-child(2) .arch-node { animation-delay: 0.6s; }
.arch-layer:nth-child(3) .arch-node { animation-delay: 1.2s; }
.arch-layer:nth-child(4) .arch-node { animation-delay: 1.8s; }
.arch-layer:nth-child(5) .arch-node { animation-delay: 2.4s; }

@keyframes archNodePulse {
  0%, 100% { box-shadow: 0 0 12px var(--lc), 0 0 24px rgba(var(--lc-rgb), 0.2); }
  50%       { box-shadow: 0 0 20px var(--lc), 0 0 40px rgba(var(--lc-rgb), 0.4); }
}

/* Ring around node */
.arch-node::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--lc-rgb), 0.35);
  animation: archRingExpand 3s ease-in-out infinite;
}
.arch-layer:nth-child(1) .arch-node::before { animation-delay: 0.0s; }
.arch-layer:nth-child(2) .arch-node::before { animation-delay: 0.6s; }
.arch-layer:nth-child(3) .arch-node::before { animation-delay: 1.2s; }
.arch-layer:nth-child(4) .arch-node::before { animation-delay: 1.8s; }
.arch-layer:nth-child(5) .arch-node::before { animation-delay: 2.4s; }

@keyframes archRingExpand {
  0%, 100% { transform: scale(1);   opacity: 0.35; }
  50%       { transform: scale(1.5); opacity: 0; }
}

/* Connecting line between nodes */
.arch-connector {
  flex: 1;
  width: 1px;
  min-height: 48px;
  margin-top: 6px;
  background: linear-gradient(
    to bottom,
    rgba(var(--lc-rgb), 0.5),
    rgba(255,255,255,0.06) 80%,
    transparent
  );
  position: relative;
}

/* Flowing dot down the connector */
.arch-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--lc-rgb), 1);
  box-shadow: 0 0 6px rgba(var(--lc-rgb), 0.8);
  animation: archFlow 2s linear infinite;
}
.arch-layer:nth-child(1) .arch-connector::after { animation-delay: 0.0s; }
.arch-layer:nth-child(2) .arch-connector::after { animation-delay: 0.5s; }
.arch-layer:nth-child(3) .arch-connector::after { animation-delay: 1.0s; }
.arch-layer:nth-child(4) .arch-connector::after { animation-delay: 1.5s; }

@keyframes archFlow {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Info column ── */
.arch-info {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-top: 0.05rem;
}

.arch-num {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--lc);
  opacity: 0.75;
  letter-spacing: 0.06em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  padding-top: 0.22rem;
  flex-shrink: 0;
}

.arch-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.arch-name {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}

.arch-desc {
  font-size: 0.73rem;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
  margin: 0;
}

/* ── Pills column ── */
.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
  padding-top: 0.05rem;
}

.arch-pill {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(var(--lc-rgb), 0.8);
  background: rgba(var(--lc-rgb), 0.07);
  border: 1px solid rgba(var(--lc-rgb), 0.18);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  cursor: default;
}

.arch-pill:hover {
  background: rgba(var(--lc-rgb), 0.15);
  border-color: rgba(var(--lc-rgb), 0.38);
  color: rgba(var(--lc-rgb), 1);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .arch-layer {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.5rem;
  }
  .arch-pills {
    grid-column: 2 / 3;
    padding-top: 0.9rem;
  }
}

@media (max-width: 600px) {
  .arch-layer {
    grid-template-columns: 22px 1fr;
    gap: 0 1.1rem;
    padding-bottom: 1.75rem;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .arch-node { width: 11px; height: 11px; }
  .arch-name { font-size: 0.85rem; }
  .arch-desc { font-size: 0.7rem; }
  .arch-pill { font-size: 0.65rem; padding: 0.22rem 0.55rem; }
}

/* ---------- CASE STUDIES / VIDEO COLLAGE ---------- */
.section-cases {
  padding-bottom: 4rem;
}

.cases-cta {
  text-align: center;
  margin-top: 2.75rem;
}

.video-collage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.video-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-tile video {
  width: 100%;
  display: block;
}

.video-tile--wide {
  flex: 1 1 55%;
  max-width: 55%;
}

.video-tile--phone {
  flex: 0 0 auto;
  height: 280px;
}

.video-tile--phone video {
  height: 100%;
  width: auto;
}

.video-tile__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-tile:hover .video-tile__label {
  opacity: 1;
}

/* ---------- CASE STUDY MODAL ---------- */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.case-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.case-modal__dialog {
  position: relative;
  width: 90vw;
  max-width: 960px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-modal.is-open .case-modal__dialog {
  transform: translateY(0) scale(1);
}
.case-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  line-height: 1;
}
.case-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Top area: video left, info right */
.case-modal__top {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.case-modal__video-wrap {
  flex: 0 0 45%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.case-modal__video-wrap video {
  width: 100%;
  display: block;
}
.case-modal__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-modal__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 180, 255, 0.9);
  background: rgba(140, 180, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  width: fit-content;
}
.case-modal__title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.case-modal__desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.case-modal__kpis {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.case-modal__kpi {
  text-align: center;
}
.case-modal__kpi-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(140, 180, 255, 0.9);
  line-height: 1.2;
}
.case-modal__kpi-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Bottom gallery cards */
.case-modal__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.case-modal__gallery-card {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.case-modal__gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal mobile */
@media (max-width: 768px) {
  .case-modal__dialog {
    padding: 1.5rem;
    max-height: 92vh;
  }
  .case-modal__top {
    flex-direction: column;
    gap: 1.2rem;
  }
  .case-modal__video-wrap {
    flex: none;
    width: 100%;
  }
  .case-modal__gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- CONTACT CTA ---------- */
.section-contact {
  text-align: center;
  padding: 8rem 0;
}
.contact-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contact-subheading {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.contact-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0 0;
  background-color: transparent;
}

.footer-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2rem;
}

/* flex row: brand left, nav cols grouped right */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-nav-cols {
  display: flex;
  gap: 3.5rem;
  flex-shrink: 0;
}

/* Brand column */
.footer-brand {
  flex: 0 0 auto;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  width: 130px;
  height: auto;
  opacity: 0.82;
  display: block;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  margin: 0;
}

/* CTA button */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 7px;
  padding: 0.55rem 1.15rem;
  width: fit-content;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.footer-cta span {
  transition: transform 0.3s ease;
}

.footer-cta:hover {
  border-color: rgba(140,180,255,0.28);
  color: rgba(255,255,255,0.95);
  background: rgba(140,180,255,0.05);
}

.footer-cta:hover span {
  transform: translateX(3px);
}

/* Contact info */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 0.15rem;
}

.footer-linkedin:hover {
  color: rgba(255,255,255,0.8);
}

.footer-contact a,
.footer-contact span {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.footer-contact a:hover {
  color: rgba(140,180,255,0.65);
}

/* Nav columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col h4 {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.footer-col a {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.36);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: rgba(140,180,255,0.75);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.02em;
}

/* ── Footer responsive ── */
@media (max-width: 860px) {
  .footer-grid {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-brand {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }
  .footer-logo {
    width: 110px;
  }
  .footer-brand > .footer-tagline,
  .footer-brand > .footer-cta,
  .footer-brand > .footer-contact {
    flex: 1;
    min-width: 160px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    gap: 2rem;
  }
  .footer-brand {
    flex-direction: column;
    gap: 1.25rem;
  }
  .footer-logo { width: 100px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 3rem;
  }
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service-card-inner {
    padding: 2rem 1.75rem;
  }
  .work-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-card--featured {
    grid-template-columns: 1fr;
  }
  .insight-card--featured .insight-card__image {
    min-height: 180px;
  }
  .insight-card--featured .insight-card__image:has(img) {
    min-height: unset;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  /* Navbar */
  .navbar {
    padding: 0.5rem 1rem;
    border-radius: 16px;
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
  }
  /* Logo always visible on mobile at a proper size */
  .nav-brand {
    opacity: 1 !important;
    width: 56px !important;
    overflow: visible !important;
  }
  .nav-logo {
    width: 56px;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.97) 0%, rgba(15, 20, 40, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(80, 140, 255, 0.12);
    border-radius: 16px;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .nav-menu li a {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .dropdown-info {
    display: none;
  }
  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Hero */
  .hero-section {
    padding: 0 6vw;
    align-items: flex-end;
    padding-bottom: 8rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
  .center-logo {
    width: 120px;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Card scanner */
  .scanner-container {
    height: 260px;
  }
  .card-wrapper {
    width: 300px;
    height: 188px;
  }
  .card {
    width: 300px;
    height: 188px;
  }
  .card-ascii {
    width: 300px;
    height: 188px;
  }
  .card-line {
    gap: 30px;
  }
  .card-logo-placeholder {
    width: 50px;
    height: 50px;
    top: -70px;
  }

  /* Services */
  .service-card-inner {
    padding: 2rem 1.5rem;
  }

  /* Method */
  .method-step {
    gap: 1.25rem;
  }

  /* Industry dashboard — tabs scrollable */
  .ind-sidebar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .ind-sidebar::-webkit-scrollbar {
    display: none;
  }
  .ind-item {
    flex: 0 0 auto;
    min-width: 62px;
  }

  /* Video tile labels always visible on touch */
  .video-tile__label {
    opacity: 1;
  }

  /* Video collage */
  .video-collage {
    max-width: 100%;
  }
  .video-tile--wide {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .video-tile--phone {
    height: 200px;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .insight-card--featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .insight-card__image {
    min-height: 140px;
  }
  .insight-card__image:has(img) {
    min-height: unset;
  }

  /* Contact */
  .section-contact {
    padding: 5rem 0;
  }
  .contact-ctas {
    flex-direction: column;
    align-items: center;
  }
  .contact-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }
  .hero-section {
    padding: 0 5vw;
    padding-bottom: 6rem;
  }
  .service-card-inner {
    padding: 1.5rem 1.25rem;
  }
}

/* ---------- FULL-WIDTH SCREENSHOT ---------- */
.full-width-screenshot {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  line-height: 0;
}

.full-width-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- ACCESSIBILITY: FOCUS STYLES ---------- */
:focus-visible {
  outline: 2px solid rgba(140, 180, 255, 0.8);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid rgba(140, 180, 255, 0.8);
  outline-offset: 3px;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(140, 180, 255, 0.8);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- ACCESSIBILITY: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logo-ticker-track {
    animation: none !important;
  }
  .loader {
    display: none !important;
  }
  body.is-loading {
    overflow: auto;
  }
}

