@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=Sofia+Sans+Condensed:wght@400;600;700;800&display=swap');

:root {
  --bg-deep: #E8EEF2;      /* Deep structural grey */
  --bg-dark: #FFFFFF;      /* Layer base */
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --accent: #1A91E2;       /* Fivenson Primary Blue */
  --accent-hover: #0B6DAA; /* Fivenson Cyan */
  --accent-cyan: #38C3E8;
  --accent-glow: rgba(26, 145, 226, 0.25);
  --navy: #1A3651;
  --text-dark: #1E2328;    /* Brand Dark */
  --text-mid: #5A6A7A;     /* Muted Steel */
  --text-light: #FFFFFF;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 100px;
  --font-heading: 'DM Sans', sans-serif;
  --font-label: 'Sofia Sans Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

.logo-img { height: 36px; width: auto; filter: none; } /* Revert logo to official brand colors */
.service-icon { width: 64px; height: 64px; padding: 12px; box-sizing: border-box; background: rgba(26, 145, 226, 0.08); border: 1px solid rgba(26, 145, 226, 0.12); border-radius: 16px; margin-bottom: 20px; position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(26, 145, 226, 0.2)); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep); /* Use deep structural background as base */
  color: var(--text-dark);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--bg-deep); }
body::-webkit-scrollbar-thumb { background: rgba(26, 145, 226, 0.2); border-radius: 6px; border: 3px solid var(--bg-deep); }
body::-webkit-scrollbar-thumb:hover { background: rgba(26, 145, 226, 0.4); }

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1400px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.8); /* bright glossy glass edge */
  box-shadow: 0 16px 32px rgba(26, 145, 226, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header:hover { 
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 48px rgba(26,145,226,0.12), inset 0 1px 0 rgba(255, 255, 255, 1); 
}
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--text-dark); text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.95rem; font-weight: 700; transition: color .2s; }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 16px var(--accent-glow);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 24px var(--accent-glow); }

.mobile-call-btn { display: none; }
/* Loom 2026-07-30: hover on the AI/search discovery pills */
.discovery-pills span { transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; cursor: default; }
.discovery-pills span:hover { background: rgba(56,195,232,0.18) !important; border-color: rgba(56,195,232,0.6) !important; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(26,145,226,0.28); }
.mobile-menu-btn { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: 0.3s; }
.mobile-menu-btn.open span { background: #ffffff; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ─── SECTIONS ─── */
section { padding: 72px 48px; }
.section-label { font-family: var(--font-label); font-size: 0.95rem; color: var(--accent); font-weight: 700; margin-bottom: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
.container { max-width: 1320px; margin: 0 auto; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: transparent;
  padding-top: 110px;
  padding-bottom: 24px;
}
.hero-container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; width: 100%;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-cube-video {
  width: 100%; max-width: 540px;
  mix-blend-mode: multiply; transform: scale(1.0);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 70%);
  mask-image: radial-gradient(circle, black 50%, transparent 70%);
  animation: floaty 8s ease-in-out infinite alternate; pointer-events: none;
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.0; letter-spacing: -0.04em;
  color: var(--text-dark); margin-bottom: 18px;
  text-transform: uppercase;
}
.hero h1 .accent { 
  filter: drop-shadow(0 0 32px rgba(26,145,226,0.2));
}
.hero h1 .accent .char-reveal-char {
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .outline {
  color: transparent;
}
.hero h1 .outline .char-reveal-char {
  -webkit-text-stroke: 1px var(--text-dark);
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Rotating Brand Statement */
.hero-rotating-statement {
  display: grid;
  grid-template-areas: "rotator";
  color: #8e9fae;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  align-items: start;
  text-align: center;
}
.hero-rotating-statement span {
  grid-area: rotator;
  opacity: 0;
  animation: heroFade 20s infinite;
}
.hero-rotating-statement span:nth-child(1) { animation-delay: 0s; }
.hero-rotating-statement span:nth-child(2) { animation-delay: 5s; }
.hero-rotating-statement span:nth-child(3) { animation-delay: 10s; }
.hero-rotating-statement span:nth-child(4) { animation-delay: 15s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 768px) {
  .hero-rotating-statement {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotating-statement span {
    animation: none;
    opacity: 0;
  }
  .hero-rotating-statement span:first-child {
    opacity: 1;
  }
}

.hero-sub {
  font-size: 1.15rem; line-height: 1.6; color: var(--text-mid);
  max-width: 500px; margin-bottom: 24px;
}
.hero-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 0.85rem; font-weight: 600; color: var(--text-dark);
  border: 1px solid rgba(255,255,255,1);
  box-shadow: 0 8px 32px rgba(26,145,226,0.1);
}
.badge .stars { color: #F5A623; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 18px 40px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1); border: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 24px rgba(26,145,226,0.3);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 16px 48px rgba(26,145,226,0.5), 0 0 0 8px rgba(26,145,226,0.2); }
@keyframes btnPulse {
  0% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 24px rgba(26,145,226,0.3), 0 0 0 0 rgba(26,145,226,0.4); }
  70% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 24px rgba(26,145,226,0.3), 0 0 0 16px rgba(26,145,226,0); }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 24px rgba(26,145,226,0.3), 0 0 0 0 rgba(26,145,226,0); }
}
.btn-primary { animation: btnPulse 3s infinite; }
.btn-secondary {
  padding: 18px 40px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.5); color: var(--text-dark);
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,0.9); box-shadow: 0 12px 32px rgba(26,145,226,0.1); }

/* floating ambient orbs */
.hero-float {
  position: absolute; border-radius: 50%;
  filter: blur(140px); opacity: 0.8; mix-blend-mode: multiply;
  pointer-events: none;
  animation: floaty 12s ease-in-out infinite alternate;
}
.hero-float-1 { width: 50vw; height: 50vw; background: rgba(56, 195, 232, 0.4); top: -20%; right: -10%; animation-delay: 0s; }
.hero-float-2 { width: 40vw; height: 40vw; background: rgba(26, 145, 226, 0.4); bottom: -10%; left: -20%; animation-delay: 3s; }
.hero-float-3 { width: 60vw; height: 30vw; background: rgba(56, 195, 232, 0.2); top: 40%; right: 20%; animation-delay: 6s; }

/* massive background marquee */
.hero-marquee-container {
  position: absolute;
  top: 30%;
  left: -10%;
  width: 120vw;
  transform: rotate(-4deg);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1; /* Behind content but above the float orbs */
}
.hero-marquee {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18vw;
  color: rgba(26, 145, 226, 0.04);
  text-transform: uppercase;
  animation: marqueeScroll 60s linear infinite;
  white-space: nowrap;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

/* ─── SHOWREEL SECTION ─── */
.showreel-section {
  padding: 80px 48px 160px;
  position: relative; z-index: 10;
  background: transparent;
}
.showreel-flex { display: flex; flex-direction: column; align-items: center; }
.showreel-heading { text-align: center; font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 72px; letter-spacing: -0.02em; }
.showreel-heading .accent { color: var(--accent); }
.showreel-container {
  width: 100%; max-width: 1320px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 100px rgba(26,145,226,0.25);
  border: 2px solid rgba(255,255,255,1);
  transform: perspective(2000px) rotateX(15deg) scale(0.9);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1s ease;
}
.showreel-section.reveal.visible .showreel-container {
  transform: perspective(2000px) rotateX(0deg) scale(1);
}
.showreel-video {
  width: 100%; height: auto; display: block;
}

/* ─── SERVICES ─── */
.services { background: transparent; position: relative; z-index: 5; }
.services-intro {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.45; color: var(--text-mid);
  max-width: 640px; margin-bottom: 80px; font-weight: 400;
}
.services-grid { 
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px; align-items: start;
}
.service-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  padding: 40px 32px 32px;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 16px 40px rgba(26,145,226,0.04), inset 0 1px 0 rgba(255,255,255,1);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), background .4s cubic-bezier(0.16, 1, 0.3, 1), border-color .4s, box-shadow .4s;
  cursor: pointer;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}

/* Brand specific service cards initial background states */
.services-grid .service-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(26, 145, 226, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%);
}
.services-grid .service-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(56, 195, 232, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%);
}
.services-grid .service-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(13, 78, 122, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%);
}
.services-grid .service-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(90, 106, 122, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%);
}

.services-grid .service-card:nth-child(even) { margin-top: 48px; } /* Asymmetrical layout */

/* Premium Brand Hover State Transitions */
.services-grid .service-card:nth-child(1):hover {
  background: linear-gradient(135deg, #1A91E2 0%, #0D4E7A 100%) !important;
  border-color: rgba(26, 145, 226, 0.4) !important;
  box-shadow: 0 30px 60px rgba(26, 145, 226, 0.25), 0 0 30px rgba(26, 145, 226, 0.15) !important;
}
.services-grid .service-card:nth-child(2):hover {
  background: linear-gradient(135deg, #38C3E8 0%, #1A91E2 100%) !important;
  border-color: rgba(56, 195, 232, 0.4) !important;
  box-shadow: 0 30px 60px rgba(56, 195, 232, 0.25), 0 0 30px rgba(56, 195, 232, 0.15) !important;
}
.services-grid .service-card:nth-child(3):hover {
  background: linear-gradient(135deg, #0D4E7A 0%, #1E2328 100%) !important;
  border-color: rgba(13, 78, 122, 0.4) !important;
  box-shadow: 0 30px 60px rgba(13, 78, 122, 0.25), 0 0 30px rgba(13, 78, 122, 0.15) !important;
}
.services-grid .service-card:nth-child(4):hover {
  background: linear-gradient(135deg, #5A6A7A 0%, #0D4E7A 100%) !important;
  border-color: rgba(90, 106, 122, 0.4) !important;
  box-shadow: 0 30px 60px rgba(90, 106, 122, 0.25), 0 0 30px rgba(90, 106, 122, 0.15) !important;
}

.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15), transparent 70%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: linear-gradient(135deg, #1A91E2 0%, #0D4E7A 100%) !important;
  border-color: rgba(26, 145, 226, 0.4) !important;
  box-shadow: 0 30px 60px rgba(26, 145, 226, 0.25), 0 0 30px rgba(26, 145, 226, 0.15) !important;
}
.service-card:hover::after { opacity: 1; }

/* Text & Icon transitions inside Service Cards */
.service-card h3,
.service-card p,
.service-card .pill,
.service-card .service-icon {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}
.service-card:hover p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.service-card:hover .pill {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.service-card:hover .service-icon {
  transform: scale(1.1) translateY(-4px);
  filter: invert(1) hue-rotate(180deg) brightness(1.25) saturate(1.2) drop-shadow(0 8px 16px rgba(255, 255, 255, 0.25)) !important;
}

.service-card h3 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.6rem; text-transform: uppercase;
  letter-spacing: -0.01em; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.service-card p {
  font-size: 1.05rem; line-height: 1.6; color: var(--text-mid);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.pill {
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(26, 145, 226, 0.08); backdrop-filter: blur(4px);
  font-size: 0.78rem; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(26,145,226,0.15);
}

/* ════ CAPABILITIES (BENTO BOX) ════ */
.bento-capabilities {
  background: transparent;
  position: relative;
  z-index: 5;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(420px, auto);
  gap: 24px;
  margin-top: 48px;
}
.bento-card {
  background: #111111;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.bento-text {
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}
.bento-text h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.bento-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 440px;
}
.bento-visual {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Video Backgrounds for Bento Cards */
.bento-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.bento-card:hover .bento-bg-video {
  opacity: 0.8;
}
.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.4) 60%, rgba(17, 17, 17, 0.2) 100%);
  z-index: 1;
}
.bento-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  z-index: 2;
  margin-bottom: 0;
}
.bento-text-overlay h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.bento-text-overlay p {
  max-width: 100%;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Platforms CSS (Legacy visual overrides removed) */
.bento-platforms { background: #111; }
.bento-visual-platforms {
  position: absolute; bottom: 0; right: 0; width: 100%; height: 100%;
}
.db-widget {
  background: #1e1e1e; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; position: absolute;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.db-goal {
  bottom: 30px; left: 40px; width: 180px; padding: 20px;
}
.db-goal-top { display: flex; justify-content: space-between; margin-bottom: 16px; }
.db-title { color: #fff; font-size: 0.8rem; font-weight: 600; }
.db-subtitle { color: rgba(255,255,255,0.4); font-size: 0.7rem; }
.db-ring { width: 80px; height: 80px; margin: 0 auto 16px; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 250px; }
.circle-bg { fill: none; stroke: #333; stroke-width: 2.5; }
.circle { fill: none; stroke-width: 2.5; stroke-linecap: round; animation: progress 1s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.circular-chart.orange .circle { stroke: #1A91E2; }
.percentage { fill: #fff; font-size: 0.5em; text-anchor: middle; font-weight: bold; }
.db-btn {
  background: #6D28D9; color: white; border: none; border-radius: 8px; width: 100%;
  padding: 8px 0; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.db-chart {
  bottom: 30px; right: 40px; width: 220px; padding: 20px;
}
.db-chart svg { width: 100%; height: 60px; overflow: visible; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 12px; color: rgba(255,255,255,0.4); font-size: 0.7rem; }
.db-schedule {
  top: 120px; right: 20%; width: 260px; padding: 24px;
}
.sch-header { display: flex; justify-content: space-between; color: #fff; font-weight: 600; margin-bottom: 16px; font-size: 0.9rem;}
.sch-header .arr { color: rgba(255,255,255,0.3); }
.sch-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: rgba(255,255,255,0.3); font-size: 0.6rem; margin-bottom: 8px; font-weight: 600; }
.sch-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; color: #fff; font-size: 0.75rem; }
.sch-grid span { padding: 4px 0; }
.sch-grid span.active { background: #fff; color: #000; border-radius: 50%; font-weight: bold; }

/* Website CSS */
.bento-website { background: linear-gradient(180deg, #1a1c23 0%, #111 100%); }
.booking-app-ui {
  background: #fff; width: 100%; max-width: 400px; border-radius: 12px 12px 0 0;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.4); margin-top: 40px; padding: 16px;
  height: 280px; position: absolute; bottom: 0; right: 40px;
}
.booking-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.bn-logo { font-weight: 800; font-size: 1.1rem; color: #000; }
.bn-links { display: flex; gap: 16px; font-size: 0.75rem; color: #666; font-weight: 500; }
.bn-btns { display: flex; gap: 8px; }
.bn-btns button { padding: 6px 12px; font-size: 0.7rem; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; }
.btn-ghost { background: transparent; color: #000; border: 1px solid #eee !important; }
.btn-solid { background: #111; color: #fff; }
.booking-cards { display: flex; gap: 12px; }
.bk-card { flex: 1; border-radius: 12px; padding: 16px; position: relative; overflow: hidden; height: 180px; }
.bk-flights { background: #FF9F43; }
.bk-hotels { background: #9D72FF; }
.bk-card h4 { margin: 0 0 8px; font-size: 1rem; color: #000; font-weight: 800; }
.bk-hotels h4 { color: #fff; }
.bk-card p { margin: 0; font-size: 0.65rem; color: rgba(0,0,0,0.7); line-height: 1.4; max-width: 80%; }
.bk-hotels p { color: rgba(255,255,255,0.8); }

/* Mobile CSS */
.bento-mobile { background: linear-gradient(180deg, #1c1a23 0%, #111 100%); }
.iphone-notch-ui {
  position: absolute; bottom: -20px; right: 60px; width: 320px; height: 300px;
  background: linear-gradient(135deg, #FF3366, #FF9933);
  border-radius: 40px 40px 0 0;
  border: 8px solid #000; border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  display: flex; justify-content: center;
}
.iphone-hardware-notch {
  width: 140px; height: 32px; background: #000; border-radius: 0 0 20px 20px;
  position: absolute; top: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-mobile:hover .iphone-hardware-notch {
  width: 280px; height: 70px; border-radius: 35px; top: 12px;
}
.dynamic-island-ui {
  opacity: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  transition: opacity 0.3s; transition-delay: 0s;
}
.bento-mobile:hover .dynamic-island-ui { opacity: 1; transition-delay: 0.2s; }
.di-left { display: flex; align-items: center; gap: 12px; }
.di-car-icon { background: #FFB020; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.di-text { display: flex; flex-direction: column; }
.di-plate { color: #fff; font-weight: 700; font-size: 0.85rem; }
.di-model { color: rgba(255,255,255,0.6); font-size: 0.7rem; }
.di-check-circle { background: #22C55E; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; }

/* Development CSS */
.bento-development { background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%); }
.bento-visual-development { width: 100%; height: 200px; position: absolute; bottom: 40px; left: 0; }
.dev-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; }
.ring-1 { width: 100px; height: 100px; }
.ring-2 { width: 200px; height: 200px; }
.ring-3 { width: 300px; height: 300px; }
.dev-icon-wrapper {
  position: absolute; width: 64px; height: 64px; border-radius: 16px;
  background: #1e1e1e; box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff; border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-development:hover .dev-icon-wrapper { transform: scale(1.1) translateY(-10px); }
.dev-icon-wrapper img { width: 32px; height: 32px; object-fit: contain; }
.w-icon { top: 20px; left: 20%; background: #4353FF; border: none; }
.r-icon { top: 60px; right: 25%; background: #222; }
.wp-icon { bottom: 20px; left: 30%; background: #21759b; border: none; }
.js-icon { bottom: 40px; right: 40%; background: #f7df1e; border: none; color: #000; font-family: monospace;}
.api-icon { top: 80px; right: 10%; background: #FF4A00; border: none; font-size: 1rem;}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .db-schedule { display: none; }
  .booking-app-ui { position: relative; right: auto; margin: 40px auto 0; }
  .iphone-notch-ui { position: relative; right: auto; margin: 40px auto -20px; }
}

/* ─── STATS ─── */
.stats {
  background: transparent;
  padding-top: 80px; padding-bottom: 120px; position: relative; z-index: 5;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,1);
  box-shadow: 0 16px 32px rgba(26,145,226,0.06);
  border-radius: var(--radius-md);
  padding: 40px 32px; position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .4s;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.stat-card:hover { transform: translateY(-16px) scale(1.05); box-shadow: 0 40px 80px rgba(26,145,226,0.1), 0 0 32px rgba(26,145,226,0.2); }
.stat-card .number {
  font-family: var(--font-heading); font-weight: 900;
  font-size: 3.5rem; line-height: 1; margin-bottom: 12px;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  text-shadow: 0 4px 16px rgba(26,145,226,0.2);
}
.stat-card .label { font-size: 1.05rem; color: var(--text-mid); line-height: 1.5; font-weight: 500; }
.stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(26, 145, 226, 0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-card:hover .stat-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ─── PROCESS ─── */
.process {
  background: transparent; color: var(--text-dark); position: relative; z-index: 5;
}
.process-scroll-container { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; 
  align-items: start; max-width: 1320px; margin: 0 auto; padding: 0 5%; 
}
.process-text-col { position: relative; z-index: 10; padding-top: 6vh; padding-bottom: 2vh; pointer-events: none; }
.process-text-col::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 6vh;
  bottom: 2vh;
  width: 2px;
  background: rgba(26, 145, 226, 0.15);
  z-index: -1;
}

/* ── Process Theme Classes ── */
.process-card-learn { --card-theme: #1A91E2; --card-theme-rgb: 26,145,226; --card-gradient: linear-gradient(135deg, #1A91E2 0%, #0D4E7A 100%); }
.process-card-roadmap { --card-theme: #38C3E8; --card-theme-rgb: 56,195,232; --card-gradient: linear-gradient(135deg, #38C3E8 0%, #1783A1 100%); }
.process-card-brand { --card-theme: #F5A623; --card-theme-rgb: 245,166,35; --card-gradient: linear-gradient(135deg, #F5A623 0%, #A97115 100%); }
.process-card-built { --card-theme: #5A6A7A; --card-theme-rgb: 90,106,122; --card-gradient: linear-gradient(135deg, #5A6A7A 0%, #2A3642 100%); }
.process-card-launch { --card-theme: #0D6DAA; --card-theme-rgb: 13,109,170; --card-gradient: linear-gradient(135deg, #0D6DAA 0%, #06395A 100%); }
.process-card-iterate { --card-theme: #1E2328; --card-theme-rgb: 30,35,40; --card-gradient: linear-gradient(135deg, #1E2328 0%, #0A0D11 100%); }

.process-text-block { 
  min-height: 30vh; display: flex; flex-direction: column; justify-content: center;
  opacity: 0.6; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s ease, filter 0.5s, background 0.5s ease, box-shadow 0.5s ease; 
  transform: translateY(20px); pointer-events: auto;
  
  /* Premium Card UI */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--card-theme-rgb, 255,255,255), 0.5);
  border-radius: var(--radius-lg);
  padding: 36px 48px; margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.02);
}
.process-text-block.active { 
  opacity: 1; transform: translateY(0); filter: grayscale(0%); 
  background: var(--card-gradient, #fff);
  box-shadow: 0 24px 60px rgba(var(--card-theme-rgb, 26,145,226), 0.35); 
  border: 1px solid rgba(255,255,255,0.2);
}
.process-text-block.active .step-num { color: #fff; opacity: 0.9; }
.process-text-block.active h4 { color: #fff; }
.process-text-block.active p { color: rgba(255,255,255,0.9); }
.process-text-block.active .process-card-icon { filter: brightness(0) invert(1) !important; }
.process-text-block.active .process-heading .highlight { color: #fff; }
.process-text-block.active .process-heading .brace { color: rgba(255,255,255,0.55); }

.process-card-icon {
  width: 56px; height: 56px; margin-bottom: 24px; transition: transform 0.4s ease, filter 0.4s ease;
}
.process-text-block:hover .process-card-icon { transform: scale(1.1); }

.process-cube-sticky { 
  position: sticky; top: 0; height: 100vh; 
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px; /* Essential for 3D depth */
  z-index: 5;
}

.scene { 
  width: 340px; height: 340px; position: relative; 
  transform-style: preserve-3d; /* Required for nested 3D */
}
.cube { 
  width: 100%; height: 100%; position: absolute;
  transform-style: preserve-3d;
  /* initial rotation handled by JS, but set a default */
  transform: rotateX(0deg) rotateY(0deg);
}

.cube-face {
  position: absolute; width: 340px; height: 340px;
  background: linear-gradient(var(--light-deg, 45deg), rgba(255, 255, 255, var(--light-a1, 0.7)), rgba(255, 255, 255, var(--light-a2, 0.3)));
  border: 1px solid rgba(255,255,255,1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(26,145,226,0.1), inset 0 0 60px rgba(255,255,255,0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius-md); text-align: center;
  backface-visibility: hidden;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

/* ── Face Geometry (Assembly Animation) ── */
.cube-face.cube-front  { transform: rotateY(  0deg) translateZ(170px); opacity: 1; }
.cube-face.cube-right  { transform: rotateY( 90deg) translateZ(170px); opacity: 1; }
.cube-face.cube-back   { transform: rotateY(180deg) translateZ(170px); opacity: 1; }
.cube-face.cube-left   { transform: rotateY(-90deg) translateZ(170px); opacity: 1; }
.cube-face.cube-top    { transform: rotateX( 90deg) translateZ(170px); opacity: 1; }
.cube-face.cube-bottom { transform: rotateX(-90deg) translateZ(170px); opacity: 1; }

.cube.scattered .cube-face.cube-front  { transform: rotateY(  0deg) translateZ(1000px); opacity: 0; }
.cube.scattered .cube-face.cube-right  { transform: rotateY( 90deg) translateZ(1000px); opacity: 0; }
.cube.scattered .cube-face.cube-back   { transform: rotateY(180deg) translateZ(1000px); opacity: 0; }
.cube.scattered .cube-face.cube-left   { transform: rotateY(-90deg) translateZ(1000px); opacity: 0; }
.cube.scattered .cube-face.cube-top    { transform: rotateX( 90deg) translateZ(1000px); opacity: 0; }
.cube.scattered .cube-face.cube-bottom { transform: rotateX(-90deg) translateZ(1000px); opacity: 0; }

/* ── Card Styling ── */
.card-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center; opacity: 0.5; z-index: 0;
}
.face-header { position: absolute; top: 24px; left: 24px; z-index: 1; }
.face-pill { 
  background: rgba(26,145,226,0.1); border: 1px solid rgba(26,145,226,0.3);
  color: var(--accent); padding: 4px 12px; border-radius: 30px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
}
.face-icon { width: 80px; height: 80px; color: var(--accent); opacity: 0.9; margin-bottom: 24px; z-index: 1; filter: drop-shadow(0 8px 16px rgba(26,145,226,0.2)); }
.face-icon-img {
  width: 80px; height: 80px; margin-bottom: 24px; z-index: 1;
  filter: invert(42%) sepia(97%) saturate(1750%) hue-rotate(184deg) brightness(95%) contrast(92%) drop-shadow(0 8px 16px rgba(26,145,226,0.25));
  transition: transform 0.4s ease;
}
.cube-face:hover .face-icon-img {
  transform: scale(1.15) translateY(-4px);
}
.face-label { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); text-transform: uppercase; letter-spacing: -0.02em; z-index: 1; }

.process-heading {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 0.9; letter-spacing: -0.03em;
  margin-bottom: 64px;
}
.process-heading .brace { color: var(--text-mid); font-weight: 300; }
.process-heading .highlight { color: var(--accent); }

.process-text-block .step-num { font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; color: var(--accent); margin-bottom: 24px; }
.process-text-block h4 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }
.process-text-block p { font-size: 1.15rem; line-height: 1.6; color: var(--text-mid); }

/* ─── CASES ─── */
.cases { background: transparent; position: relative; z-index: 5; }
.cases-heading {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.cases-sub { font-size: 1.15rem; color: var(--text-mid); max-width: 640px; margin-bottom: 56px; line-height: 1.6; }

/* ── ULTRA-PREMIUM AWSMD PORTFOLIO ── */
.awsmd-portfolio-wrapper {
  background-color: #0c1926; /* Deep dark blue midnight room from their live portfolio site */
  color: #fff;
  padding: 80px 5% 120px 5%; /* Increased bottom padding */
  border-radius: 40px; /* Massive outer wrapper rounding */
  margin: 40px 0 80px 0; /* Add bottom margin as well */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.45);
}

.portfolio-filter-bar.awsmd-theme {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 60px;
}
.portfolio-filter-bar.awsmd-theme .portfolio-filter-btn {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85); /* Boosted contrast for highly legible inactive states */
  padding: 12px 32px; border-radius: 40px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: capitalize; letter-spacing: 0.02em;
}
.portfolio-filter-bar.awsmd-theme .portfolio-filter-btn:hover {
  background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.portfolio-filter-bar.awsmd-theme .portfolio-filter-btn.active {
  background: #ffffff;
  color: #0c1926; border-color: transparent; 
  box-shadow: 0 8px 32px rgba(255,255,255,0.25);
  font-weight: 800;
}

/* Asymmetrical Masonry Grid */
.awsmd-masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start; /* Allow cards to have different heights */
}

@media (max-width: 900px) {
  .awsmd-masonry-grid { grid-template-columns: 1fr; }
}

.awsmd-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s, box-shadow 0.6s, border-color 0.6s;
  cursor: pointer;
  transform: translateY(0) scale(1);
  --card-brand-color: #1A91E2; /* default Fivenson blue */
}
.awsmd-card.hidden {
  opacity: 0; transform: translateY(40px) scale(0.95); pointer-events: none; position: absolute; visibility: hidden;
}

/* Staggered Heights */
.awsmd-card.size-large { height: 750px; }
.awsmd-card.size-medium { height: 600px; margin-top: 80px; } /* Create the staggered masonry drop */

@media (max-width: 900px) {
  .awsmd-card.size-large, .awsmd-card.size-medium { height: 500px; margin-top: 0; --viewport-height: 460px !important; }
}

/* macOS Browser Window Shell */
.awsmd-browser-window {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: #0f0f12;
  border-radius: 40px;
  overflow: hidden;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.awsmd-browser-header {
  height: 40px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.awsmd-browser-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 24px;
}

.awsmd-browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.awsmd-browser-dots .dot.red { background: #FF5F56; }
.awsmd-browser-dots .dot.yellow { background: #FFBD2E; }
.awsmd-browser-dots .dot.green { background: #27C93F; }

.awsmd-browser-address {
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  padding: 4px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.awsmd-browser-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.awsmd-scrolling-mockup {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
  transform: translateY(0);
}

/* Glass Display Screen Reflection */
.awsmd-browser-glass-glare {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 45%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Auto-Scrolling Loops (Staggered Animation Durations & Delays) */
@keyframes loopScroll {
  0% { transform: translateY(0); }
  8% { transform: translateY(0); }
  50% { transform: translateY(calc(-100% + var(--viewport-height, 500px))); }
  58% { transform: translateY(calc(-100% + var(--viewport-height, 500px))); }
  100% { transform: translateY(0); }
}

.mockup-1 {
  animation: loopScroll 22s ease-in-out infinite;
}
.mockup-2 {
  animation: loopScroll 18s ease-in-out infinite;
  animation-delay: 2s;
}
.mockup-3 {
  animation: loopScroll 25s ease-in-out infinite;
  animation-delay: 1s;
}
.mockup-4 {
  animation: loopScroll 20s ease-in-out infinite;
  animation-delay: 3s;
}

/* Pause the walkthrough on hover so user can inspect closely */
.awsmd-card:hover .awsmd-scrolling-mockup {
  animation-play-state: paused;
}

.awsmd-card-content {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push content to bottom */
  gap: 16px;
  padding: 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.85) 100%);
  pointer-events: none; /* Let hovers pass through card padding directly to trigger animations */
}

/* Frosted glass metrics & title elements floating on top */
.awsmd-pill-metric {
  pointer-events: auto;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.4s ease;
}

.awsmd-card:hover .awsmd-pill-metric {
  border-color: var(--card-brand-color);
  box-shadow: 0 0 20px rgba(255,255,255,0.05), 0 0 0 1px var(--card-brand-color);
  color: var(--card-brand-color);
}

.awsmd-card-bottom {
  display: flex;
  flex-direction: column; /* Stack vertically */
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  pointer-events: auto;
}

.awsmd-pill-title {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 90%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.awsmd-pill-title h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
  color: #fff;
}

.awsmd-pill-title p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

/* Cinematic Brand-Colored Hover & Glow Effects */
.awsmd-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--card-brand-color), 0 0 40px rgba(26,145,226,0.15);
}
.awsmd-card:hover .awsmd-pill-title {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}
.awsmd-card:hover .awsmd-pill-title p {
  color: var(--card-brand-color);
}
.awsmd-card:hover .awsmd-arrow-btn {
  background: var(--card-brand-color);
  color: #fff;
  transform: scale(1.1) rotate(-45deg);
  box-shadow: 0 0 25px var(--card-brand-color);
}

/* ─── TESTIMONIALS ("WHY WE DO IT") ─── */
.testimonials { background: transparent; position: relative; z-index: 5; }
.testimonials-heading {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.testimonials-sub { color: var(--text-mid); margin-bottom: 48px; max-width: 600px; line-height: 1.6; }
.testimonials-stack { display: flex; flex-direction: column; max-width: 1140px; margin: 0 auto 24px; gap: 0; padding-bottom: 110px; }
/* ── Loom 2026-07-30: tighten oversized vertical gaps (Chris: "too much space, bring it up") ── */
#reviews { padding-bottom: 48px; }
.awards-section { padding-top: 56px; padding-bottom: 40px; }
.tech-showcase-section { padding-top: 28px; }

.testimonial-card.split-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: center;
  position: sticky;
  margin-top: -40px;
  transform: translateY(var(--card-translate-y, 0px)) scale(var(--card-scale, 1));
  filter: brightness(var(--card-brightness, 1));
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), filter .4s, box-shadow .4s, border-color .4s;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.testimonials-stack .testimonial-card:nth-child(1) { top: 120px; z-index: 1; margin-top: 0; }
.testimonials-stack .testimonial-card:nth-child(2) { top: 140px; z-index: 2; }
.testimonials-stack .testimonial-card:nth-child(3) { top: 160px; z-index: 3; }

.testimonial-card:hover { 
  border-color: rgba(26, 145, 226, 0.25);
  box-shadow: 0 40px 80px rgba(26, 145, 226, 0.12), 0 0 30px rgba(56, 195, 232, 0.06); 
}

.testimonial-content-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 64px 48px 64px 64px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
  margin-right: -48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover .testimonial-content-side {
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.06);
}

.client-logo-wrap {
  margin-bottom: 20px;
  height: 48px;
  display: flex;
  align-items: center;
}

.client-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover .client-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.testimonial-card .stars {
  color: #F5A623;
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.testimonial-card blockquote {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.7;
  color: #1D3557;
  margin-bottom: 28px;
  font-weight: 500;
  font-style: normal;
  border-left: none;
  padding-left: 0;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: 5rem;
  font-weight: 900;
  font-family: Georgia, serif;
  color: rgba(29, 53, 87, 0.1);
  line-height: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.author-info .name { font-weight: 700; font-size: 0.95rem; color: #1D3557; }
.author-info .role { font-size: 0.8rem; color: #1D3557; font-weight: 600; opacity: 0.8; }

.testimonial-graphic-side {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1000px;
  padding: 64px 40px;
  border-radius: 24px;
  z-index: 1;
  position: relative;
}

.testimonial-mockup {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  transform: rotateY(-5deg) rotateX(5deg);
}

.testimonial-card:hover .testimonial-mockup {
  transform: rotateY(2deg) rotateX(-2deg) scale(1.05);
  filter: drop-shadow(0 30px 60px rgba(26,145,226,0.2));
}

.platforms { display: flex; gap: 16px; flex-wrap: wrap; }
.platform-badge {
  padding: 12px 24px; border-radius: var(--radius-pill);
  background: rgba(26, 145, 226, 0.08); 
  border: 1px solid rgba(26,145,226,0.15);
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(4px);
}
.platform-badge .rating { color: #F5A623; }

@media (max-width: 992px) {
  .testimonial-card.split-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px;
  }
  .testimonial-mockup {
    max-width: 360px;
    transform: none;
  }
  .testimonial-card:hover .testimonial-mockup {
    transform: scale(1.03);
  }
}

/* ─── AWARDS MARQUEE ─── */
.awards-marquee-section {
  padding: 40px 0; overflow: hidden; background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  position: relative; z-index: 5;
}
.awards-track {
  display: flex; gap: 40px; align-items: center; white-space: nowrap;
  animation: awardScroll 20s linear infinite;
  width: max-content;
}
.award-item {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem;
  color: var(--text-dark); opacity: 0.7; text-transform: uppercase;
  letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 16px;
}
.award-item::before { content: "★"; color: var(--accent); font-size: 1.2rem; }
@keyframes awardScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── FAQ ─── */
.faq { background: transparent; position: relative; z-index: 5; }
.faq-heading {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: -0.02em; margin-bottom: 48px;
}
.faq-list { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid rgba(26, 145, 226, 0.15);
  overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; background: none; border: none;
  font-size: 1.05rem; font-weight: 600; color: var(--text-dark);
  cursor: pointer; text-align: left; font-family: var(--font-body);
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(26,145,226,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent);
  transition: transform .3s, background .3s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 24px; }
.faq-a p { font-size: 0.9rem; line-height: 1.7; color: var(--text-mid); }

/* ─── CTA ─── */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); 
  color: #fff;
  text-align: center; position: relative; z-index: 5;
  padding: 160px 48px; border-radius: var(--radius-lg); margin: 0 24px;
}
.cta-section::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  pointer-events: none; mix-blend-mode: overlay; z-index: -1;
}
.cta-section h2 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.55); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-section .btn-primary { font-size: 1.05rem; padding: 18px 44px; }

/* ─── FOOTER ─── */
.site-footer {
  background: transparent; color: var(--text-mid);
  padding: 80px 48px 32px;
  position: relative; z-index: 5;
}
.footer-inner { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-mid); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text-dark); }
.footer-copy { font-size: 0.8rem; text-align: center; }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.social-links a { color: var(--text-mid); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.social-links a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
.mobile-menu-overlay { display: none; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu-btn { display: flex; z-index: 1001; position: relative; }
  .nav-links { display: none; }
  
  .site-header {
    justify-content: space-between;
  }
  .site-header .logo { display: flex; align-items: center; }
  .site-header .logo img { height: 32px; width: auto; }
  .header-right { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

  .mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .mobile-menu-overlay.mobile-open {
    opacity: 1; pointer-events: auto;
  }
  
  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-menu-overlay.mobile-open .mobile-menu-inner {
    transform: translateY(0);
  }
  .mobile-menu-logo img { height: 40px; filter: brightness(0) invert(1); }
  
  .mobile-nav-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .mobile-nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: color 0.2s, transform 0.2s;
  }
  .mobile-nav-links a:hover { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); transform: scale(1.05); }
  
  .mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 32px;
    padding: 0 24px;
  }
  .mobile-contact-btn {
    flex: 1;
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-contact-btn.email-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #1178C9 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(26,145,226,0.3);
    border: 1px solid rgba(255,255,255,0.2);
  }
  .mobile-contact-btn.phone-btn {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
  }
  .mobile-contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(26,145,226,0.4);
  }
}
@media (max-width: 768px) {
  section { padding: 44px 24px; }
  .cta-section { padding: 80px 24px; margin: 0; border-radius: 24px; }
  .cta-section h2 { font-size: 2.2rem; }
  .site-header { width: calc(100% - 24px); padding: 12px 20px; }
  .hero { padding-top: 120px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cases-scroll { gap: 12px; }
  .case-card { flex: 0 0 300px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; }
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── KINETIC DYNAMIC LAYOUT IMPROVEMENTS ─── */

/* ── Portfolio Cards Alternating Layout ── */
.portfolio-card:nth-child(even) {
  flex-direction: row-reverse;
}
.portfolio-card:nth-child(even) .portfolio-graphic {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Sticky Card Stacking 3D Physics ── */
.portfolio-card,
.testimonial-card {
  --card-scale: 1;
  --card-brightness: 1;
  --card-translate-y: 0px;
  
  transform: translateY(var(--card-translate-y)) scale(var(--card-scale));
  filter: brightness(var(--card-brightness));
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── High-Fidelity Browser Mockups ── */
.browser-mockup {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.4s ease;
}
.portfolio-card:hover .browser-mockup {
  box-shadow: 0 30px 70px rgba(26, 145, 226, 0.25);
}

.browser-header {
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 6px;
  z-index: 2;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.browser-dot.red { background: #FF5F56; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #27C93F; }

.browser-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 200px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 3px 0;
  letter-spacing: 0.02em;
  z-index: 1;
}

.browser-screen {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #12161A;
}

.browser-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(0);
}

/* Auto-scroll on card hover */
.portfolio-card:hover .browser-img {
  transform: translateY(calc(-100% + 364px));
}

/* ── Magnetic Shine for Services ── */
.service-card {
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(26, 145, 226, 0.08),
    transparent 80%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}

/* ── Character Split Animation Utility ── */
.char-reveal-container {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}
.char-reveal-char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--char-index) * 0.02s);
}
.visible .char-reveal-char {
  transform: translateY(0);
}

/* Let's refine sections spacing */
.process {
  padding-top: 40px;
  padding-bottom: 0;
}

/* ─── EXPERT BADGES GRID ─── */
.expert-badges-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.expert-badge-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-md);
  padding: 24px 36px;
  box-shadow: 0 16px 32px rgba(26, 145, 226, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s;
  cursor: pointer;
}
.expert-badge-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(26, 145, 226, 0.3);
  box-shadow: 0 30px 60px rgba(26, 145, 226, 0.12), 0 0 30px rgba(26, 145, 226, 0.05);
}
.expert-badge-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.03));
  transition: transform 0.4s ease;
}
.expert-badge-card:hover .expert-badge-img {
  transform: scale(1.05);
}

/* ─── PREMIUM HERO EXPERT BADGES GRID ─── */
.hero-expert-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin-bottom: 32px;
  margin-top: 8px;
}
.hero-expert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(26, 145, 226, 0.04), inset 0 1px 0 rgba(255,255,255,1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s;
  cursor: pointer;
}
.hero-expert-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(26, 145, 226, 0.3);
  box-shadow: 0 20px 40px rgba(26, 145, 226, 0.12), inset 0 1px 0 rgba(255,255,255,1);
}
.hero-expert-card img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
  transition: transform 0.4s ease;
}
.hero-expert-card:hover img {
  transform: scale(1.05);
}
.hero-expert-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.hero-expert-info .expert-region {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.hero-expert-info .expert-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hero-expert-badges-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }
}

/* ════ ALL-NEW INTERACTIVE AI VIDEO WALKTHROUGH PLAYER ════ */
.ai-player-showcase {
  background: rgba(10, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  margin-top: 40px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  --active-brand-color: #1A91E2; /* Dynamic fallback */
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.ai-player-showcase:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(226, 91, 26, 0.15);
}

.ai-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.ai-engine-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  border-radius: 30px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #39FF14;
  border-radius: 50%;
  box-shadow: 0 0 10px #39FF14;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

.engine-text {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  color: #c9d5e0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-player-title h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-align: right;
}

.ai-player-title p {
  font-size: 0.85rem;
  color: #8e9fae;
  margin: 4px 0 0 0;
  text-align: right;
}

.ai-player-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* TV Ambilight Backdrop Glow */
.ai-player-glow {
  position: absolute;
  top: 50%; left: 35%;
  transform: translate(-50%, -50%);
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--active-brand-color) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s ease, opacity 0.8s ease;
}

.ai-player-showcase:hover .ai-player-glow {
  opacity: 0.22;
}

/* Dual Viewports container */
.ai-player-viewports {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
}

/* MacBook / Browser Device Mockup */
.player-device.desktop-macbook {
  width: 82%;
  height: 380px;
  background: #111;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.macbook-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.macbook-header {
  height: 38px;
  background: #181d24;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.macbook-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 16px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.macbook-address {
  margin: 0 auto;
  width: 45%;
  height: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: #8e9fae;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.macbook-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #06090e;
}

.player-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.player-mockup-scroll {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0; left: 0;
  will-change: object-position;
}

@keyframes autoScrollMockup {
  0% { object-position: center top; }
  45% { object-position: center bottom; }
  55% { object-position: center bottom; }
  100% { object-position: center top; }
}

/* Custom animation scroll disabled in favor of dynamic JS engine */
.player-mockup-scroll.playing, .player-mockup-scroll-mobile.playing {
  /* animation: autoScrollMockup 15s ease-in-out infinite; */
}

/* Play Button Overlay */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(26, 145, 226, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(26, 145, 226, 0.6);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-ring 2s infinite;
}

.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(26, 145, 226, 1);
}

.video-play-overlay svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 4px; /* visually center the triangle */
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(26, 145, 226, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(26, 145, 226, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 145, 226, 0); }
}

/* Glass display scanner scanlines */
.ai-scanline-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.45;
}

/* AI Upscaling Scan Animation */
.ai-render-scanner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 16, 24, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ai-render-scanner.scanning {
  opacity: 1;
}

.scanner-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--active-brand-color), transparent);
  box-shadow: 0 0 15px var(--active-brand-color), 0 0 30px var(--active-brand-color);
  position: absolute;
  top: 0;
  animation: scanVertically 2s linear infinite;
}

@keyframes scanVertically {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scanner-text {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--active-brand-color);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(255,255,255,0.2);
  margin-top: 10px;
  animation: pulseText 1s infinite alternate;
}

@keyframes pulseText {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Mobile iPhone Device Mockup Overlay */
.player-device.mobile-iphone {
  width: 175px;
  height: 350px;
  background: #000;
  border-radius: 28px;
  border: 4px solid #1c2025;
  box-shadow: 0 25px 45px rgba(0,0,0,0.6);
  position: absolute;
  bottom: 12px;
  right: 12px;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.iphone-screen {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.iphone-notch {
  width: 72px;
  height: 15px;
  background: #000;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
}

.iphone-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.player-mockup-scroll-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
}

/* Active Player Sidebar */
.ai-player-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 24px;
}

.ai-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--active-brand-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.ai-client-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 850;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.ai-client-desc {
  font-size: 0.88rem;
  color: #c9d5e0;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.ai-metrics-panel {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.metric-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 6px;
}

.metric-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.metric-label {
  font-size: 0.8rem;
  color: #8e9fae;
}

.metric-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

#playerClientGrowth.metric-value {
  color: #39FF14;
  text-shadow: 0 0 8px rgba(57,255,20,0.15);
}

/* AI Narrator Audio Module */
.ai-narrator-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.narrator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.narrator-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--active-brand-color), #fff);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 850;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.narrator-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.narrator-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.narrator-status {
  font-size: 0.65rem;
  color: #8e9fae;
}

.mute-btn {
  background: none;
  border: none;
  color: #8e9fae;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.mute-btn:hover {
  color: #fff;
}

.speaker-icon {
  width: 18px;
  height: 18px;
}

.mute-btn.muted .speaker-icon {
  opacity: 0.4;
}

/* Audio visualizer bouncing equalizer */
.audio-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 3px;
  height: 16px;
  padding-left: 2px;
}

.eq-bar {
  width: 3px;
  background: var(--active-brand-color);
  border-radius: 1px;
  height: 2px;
  transition: height 0.15s ease, background-color 0.6s ease;
  will-change: height;
}

/* Dynamic control deck */
.ai-player-controls {
  background: rgba(15, 23, 36, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-top: 24px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.control-btn:hover {
  transform: scale(1.08);
}

.play-pause-btn {
  width: 42px;
  height: 42px;
  background: var(--active-brand-color);
  border-radius: 50%;
  color: #000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: background-color 0.6s ease, transform 0.2s, box-shadow 0.2s;
}

.play-pause-btn:hover {
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(226, 91, 26, 0.3);
}

.play-icon, .pause-icon {
  width: 20px;
  height: 20px;
}

.player-time-display {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  color: #8e9fae;
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-time-display #playerCurrentTime {
  color: #fff;
}

/* Timeline scrubber track */
.controls-center {
  flex: 1;
}

.player-timeline-wrapper {
  padding: 10px 0;
  cursor: pointer;
}

.player-timeline-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: relative;
}

.player-timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--active-brand-color);
  border-radius: 4px;
  position: absolute;
  top: 0; left: 0;
  transition: background-color 0.6s ease;
  will-change: width;
}

.player-timeline-handle {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  will-change: left;
}

.player-timeline-wrapper:hover .player-timeline-handle {
  opacity: 1;
}

.player-timeline-wrapper:hover .player-timeline-track {
  background: rgba(255, 255, 255, 0.12);
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.speed-toggle-btn {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}

.speed-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff !important;
}

.tech-spec-pill {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  color: #8e9fae;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  background: rgba(0,0,0,0.2);
}

/* Video Playlist Grid Selector */
.ai-player-playlist {
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
}

.playlist-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: #8e9fae;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) rgba(255,255,255,0.05);
  padding-bottom: 8px; /* space for scrollbar */
}

/* Custom Scrollbar for Webkit */
.playlist-grid::-webkit-scrollbar {
  height: 6px;
}
.playlist-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.playlist-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.playlist-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.playlist-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
}

.playlist-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.playlist-item.active {
  background: rgba(226, 91, 26, 0.08);
  border-color: var(--brand-color);
  box-shadow: 0 0 15px rgba(226, 91, 26, 0.1);
}

.project-num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: #8e9fae;
  opacity: 0.5;
}

.playlist-item.active .project-num {
  color: var(--brand-color);
  opacity: 1;
}

.project-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.project-tag {
  font-size: 0.68rem;
  color: #8e9fae;
}

.project-metric {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: #39FF14;
  background: rgba(57,255,20,0.08);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Hover-pauses for secondary stacked cards */
.awsmd-card {
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* RESPONSIVE LAYOUTS FOR INTERACTIVE AI PLAYER */
@media (max-width: 1024px) {
  .ai-player-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ai-player-viewports {
    justify-content: center;
    height: 440px;
  }
  .player-device.desktop-macbook {
    width: 90%;
  }
  .playlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-player-showcase {
    padding: 20px;
  }
  .ai-player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ai-player-title h3, .ai-player-title p {
    text-align: left;
  }
  .ai-player-viewports {
    height: 320px;
  }
  .player-device.desktop-macbook {
    width: 100%;
    height: 280px;
  }
  .player-device.mobile-iphone {
    width: 120px;
    height: 240px;
    bottom: 8px;
    right: 8px;
  }
  .player-timeline-wrapper {
    width: 100%;
  }
  .ai-player-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .controls-center {
    grid-column: 1 / span 2;
    grid-row: 1;
    width: 100%;
  }
  .controls-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
  }
  .controls-right {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .playlist-grid {
    grid-template-columns: 1fr;
  }
  .player-device.mobile-iphone {
    display: flex; width: 80px; height: 160px; bottom: 0; right: 0;
  }
}
/* ─── ACCREDITED PARTNERS & INTERACTIVE TECH STACK ─── */

.partner-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.partner-badge-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 145, 226, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.partner-badge-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-color);
  box-shadow: 0 20px 45px rgba(26, 145, 226, 0.08);
}

.badge-icon, .badge-text {
  position: relative;
  z-index: 2;
}

.badge-icon svg {
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  filter: grayscale(100%) opacity(0.65);
}

.partner-badge-card:hover .badge-icon svg {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1) rotate(2deg);
}

.badge-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

.badge-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-top: 4px;
}

/* Glass Tabs Styling */
.tech-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.tech-tabs {
  display: flex;
  gap: 8px;
  background: rgba(26, 145, 226, 0.04);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid rgba(26, 145, 226, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}

.tech-tab-btn {
  background: none;
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s;
}

.tech-tab-btn:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.tech-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(26, 145, 226, 0.25);
}

/* Tech Cards Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
  min-height: 220px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: none;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}

.tech-card.show {
  display: flex;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-color);
  box-shadow: 0 15px 30px rgba(26, 145, 226, 0.06);
}

.tech-logo, .tech-info {
  position: relative;
  z-index: 2;
}

.tech-logo svg {
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  filter: grayscale(100%) opacity(0.6);
}

.tech-card:hover .tech-logo svg {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1) rotate(2deg);
}

.card-glow, .glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, var(--brand-color) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.5s ease-out;
  pointer-events: none;
}

.tech-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.tech-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  display: inline-block;
  margin-top: 3px;
}

/* Card Glow FX */
.card-glow, .glow-bg {
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle, var(--brand-color) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.tech-card:hover .card-glow, .partner-badge-card:hover .glow-bg {
  opacity: 0.12;
  transform: translate(-50%, -50%) scale(1.3);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .partner-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-tabs {
    border-radius: 20px;
    padding: 10px;
  }
  .tech-tab-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .partner-badges-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tech-card {
    padding: 14px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .tech-info h4 {
    font-size: 0.9rem;
  }
  .tech-badge {
    font-size: 0.72rem;
  }
}

/* ─── AWARDS INFINITE SCROLLING TICKER ─── */
@keyframes awScroll { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}
.abadge { 
  width: 100px; 
  height: 120px; 
  flex-shrink: 0; 
  object-fit: contain; 
  opacity: 0.6; 
  filter: grayscale(20%); 
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s ease; 
}
.abadge:hover { 
  opacity: 1; 
  filter: none; 
  transform: scale(1.1); 
}

/* ─── PREMIUM GLOWING CTA BUTTON ─── */
.btn-cta-glow {
  position: relative;
  display: inline-block;
  padding: 22px 54px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #1A91E2 0%, #0056b3 50%, #1A91E2 100%);
  background-size: 200% auto;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  z-index: 2; /* Keep above the glow shadow element */
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 145, 226, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-position 0.8s ease;
  animation: glowShift 5s linear infinite;
}

/* Blurry Aura Glow behind the button */
.btn-cta-glow::before {
  content: "";
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  background: linear-gradient(135deg, #1A91E2 0%, #0056b3 50%, #1A91E2 100%);
  background-size: 200% auto;
  border-radius: 54px;
  z-index: -1;
  filter: blur(15px);
  opacity: 0.65;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
  animation: glowShift 5s linear infinite, auraPulse 2.5s infinite alternate ease-in-out;
}

/* Glassy shimmer sweeping overlay inside the button */
.btn-cta-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 3;
  pointer-events: none;
  animation: shimmerSweep 4.5s infinite ease-in-out;
}

/* Hover effects */
.btn-cta-glow:hover {
  transform: translateY(-6px) scale(1.04);
  background-position: 100% 50%;
  box-shadow: 0 20px 40px rgba(26, 145, 226, 0.4), 0 0 25px rgba(26, 145, 226, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.btn-cta-glow:hover::before {
  opacity: 0.95;
  filter: blur(22px);
  transform: scale(1.08); /* The aura grows wider and brighter on hover */
}

/* Loom 2026-07-30: the final CTA sits on a blue section — make it a white button
   (blue text) so it stands out instead of blue-on-blue. Scoped to .cta-section only. */
.cta-section .btn-cta-glow {
  background: #ffffff;
  color: var(--accent);
  animation: none;
  box-shadow: 0 12px 32px rgba(2, 40, 74, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.cta-section .btn-cta-glow::before {
  background: #ffffff;
  opacity: 0.4;
  animation: auraPulse 2.5s infinite alternate ease-in-out;
}
.cta-section .btn-cta-glow::after {
  background: linear-gradient(90deg, rgba(26,145,226,0) 0%, rgba(26,145,226,0.18) 50%, rgba(26,145,226,0) 100%);
}
.cta-section .btn-cta-glow:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 22px 46px rgba(2, 40, 74, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

/* Animations */
@keyframes glowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes auraPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.5;
    filter: blur(12px);
  }
  100% {
    transform: scale(1.04);
    opacity: 0.8;
    filter: blur(18px);
  }
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  35% { left: 160%; }
  100% { left: 160%; }
}

/* ─── INTERACTIVE ROI & VALUE CALCULATOR ─── */
.roi-calculator-section {
  position: relative;
  z-index: 5;
}

.roi-calculator-section .section-desc {
  max-width: 680px;
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 56px;
  line-height: 1.7;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Left Column - Inputs */
.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(26, 145, 226, 0.1);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 145, 226, 0.25);
  box-shadow: 0 15px 35px rgba(26, 145, 226, 0.04);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.slider-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.slider-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
  background: rgba(26, 145, 226, 0.08);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(26, 145, 226, 0.1);
}

/* Custom Premium Slider Styles */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(26, 145, 226, 0.12);
  outline: none;
  margin: 10px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 12px rgba(26, 145, 226, 0.3), 0 0 0 0px rgba(26, 145, 226, 0.2);
  cursor: pointer;
  margin-top: -7px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.custom-slider:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(26, 145, 226, 0.4), 0 0 0 6px rgba(26, 145, 226, 0.15);
  border-color: #00d2a0; /* Shift to secondary accent color on hover */
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* Right Column - Outputs */
.calculator-outputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.output-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(26, 145, 226, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.main-output {
  background: linear-gradient(135deg, rgba(26, 145, 226, 0.04) 0%, rgba(0, 210, 160, 0.04) 100%), rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(26, 145, 226, 0.25);
  text-align: center;
}

.output-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 12px;
  display: block;
}

.output-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 10px 0;
  line-height: 1;
}

.output-number.net-gain {
  color: #00b080; /* glowing green profit color */
}

.output-number.roi-multiplier {
  color: var(--accent);
}

.output-subtext {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 14px;
  line-height: 1.5;
}

/* Outputs Subgrid */
.output-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.output-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 176, 128, 0.08);
  border: 1px solid rgba(0, 176, 128, 0.15);
  color: #00b080;
  margin-top: 12px;
  display: inline-block;
}

.roi-percent {
  background: rgba(26, 145, 226, 0.08);
  border-color: rgba(26, 145, 226, 0.15);
  color: var(--accent);
}

/* Mini CTA inside card */
.output-cta-card {
  background: linear-gradient(135deg, rgba(26, 145, 226, 0.05) 0%, rgba(26, 145, 226, 0.12) 100%), rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(26, 145, 226, 0.15);
  border-radius: 20px;
  padding: 28px;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.output-cta-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.output-cta-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.mini-cta {
  font-size: 0.85rem !important;
  padding: 14px 28px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .output-subgrid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer {
    padding: 64px 24px 32px;
  }
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .roi-calculator-section {
    padding: 40px 20px 60px 20px;
  }
  .cta-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .mini-cta {
    width: 100%;
    text-align: center;
  }
}

/* Load More Container */
.portfolio-load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  width: 100%;
  position: relative;
}

#btnPortfolioLoadMore {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 20px 52px !important;
  border-radius: 40px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

#btnPortfolioLoadMore:hover {
  background: #ffffff !important;
  color: #0c1926 !important;
  border-color: transparent !important;
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255,255,255,0.1) !important;
}

@keyframes buttonSpinner {
  to { transform: rotate(360deg); }
}

#btnPortfolioLoadMore.loading {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  pointer-events: none !important;
  padding-left: 76px !important;
}

#btnPortfolioLoadMore.loading::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: buttonSpinner 0.8s linear infinite;
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Tablet & Mobile Adjustments (max-width: 991px) */
@media (max-width: 991px) {
  /* Spacing */
  section { padding: 44px 24px; }
  .services-grid-section { padding: 80px 24px !important; }
  
  /* Hero Sections */
  .hero { padding-top: 140px; min-height: auto; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { align-items: center; }
  .hero-badges { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  
  /* Home Process Sticky Cube */
  .process-scroll-container { display: block; padding: 0 5%; }
  .process-cube-sticky { display: none; } /* Hide the disjointed cube on mobile, cards already have icons */
  .process-text-col { padding-top: 20px; }
  .process-text-col::before { left: 0; display: none; } /* Hide tracking line on mobile */
  
  /* Portfolio Masonry (Home) */
  .awsmd-masonry-grid { grid-template-columns: 1fr; gap: 24px; }
  .awsmd-card.size-large, .awsmd-card.size-medium { height: auto; min-height: 500px; margin-top: 0; }
  
  /* Services Bento */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.featured { grid-column: span 1; }
  .calculator-container { grid-template-columns: 1fr; padding: 40px 32px; gap: 40px; }
  
  /* Services Subnav Dock */
  .services-subnav-container { padding: 12px 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .services-subnav-dock { margin: 0 24px; padding: 8px; flex-shrink: 0; }
  
  /* About/Team Pages */
  .about-hero-grid, .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-card .number { font-size: 3rem; }
  
  /* Reset cursor on mobile */
  body { cursor: auto !important; }
}

/* ==========================================================================
   GLOBAL 3D CURSOR
   ========================================================================== */
@media (pointer: fine) {
  body {
    cursor: auto;
  }
  .custom-cursor, .custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s, backdrop-filter 0.2s, border-radius 0.2s;
  }
  .custom-cursor {
    border-radius: 2px;
    width: 8px;
    height: 8px;
    background: #38C3E8;
  }
  .custom-cursor-follower {
    width: 40px;
    height: 40px;
    perspective: 800px;
    transition: transform 0.1s ease-out;
  }
  .custom-cursor.hover {
    width: 0; height: 0;
  }
  .cursor-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCursorCube 6s infinite linear;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .custom-cursor-follower.hover .cursor-cube {
    transform: scale(1.75);
  }
  .cursor-cube .face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(56, 195, 232, 0.5);
    box-shadow: inset 0 0 12px rgba(56, 195, 232, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .cursor-cube .front  { background: rgba(56, 195, 232, 0.2); transform: translateZ(20px); }
  .cursor-cube .back   { background: rgba(56, 195, 232, 0.05); transform: rotateY(180deg) translateZ(20px); }
  .cursor-cube .right  { background: rgba(26, 145, 226, 0.3); transform: rotateY(90deg) translateZ(20px); }
  .cursor-cube .left   { background: rgba(26, 145, 226, 0.1); transform: rotateY(-90deg) translateZ(20px); }
  .cursor-cube .top    { background: rgba(255, 255, 255, 0.25); transform: rotateX(90deg) translateZ(20px); }
  .cursor-cube .bottom { background: rgba(13, 20, 30, 0.15); transform: rotateX(-90deg) translateZ(20px); }

  @keyframes rotateCursorCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
  }
}

/* Strict Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
  /* Spacing */
  section { padding: 30px 20px; }
  .services-grid-section { padding: 60px 20px !important; }
  .site-header { padding: 12px 14px; width: calc(100% - 20px); }
  .site-header .logo img { height: 24px; max-width: 130px; }
  .header-right { gap: 8px; }
  .header-cta { padding: 8px 10px; font-size: 0.7rem; white-space: nowrap; }
  .logo { font-size: 1rem; }

  /* Typography */
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .process-heading { font-size: clamp(2.2rem, 8vw, 3rem); }
  .cases-heading { font-size: clamp(2rem, 8vw, 2.5rem); }
  
  /* Bento UI */
  .bento-card { padding: 28px; }
  .bento-card h3, .bento-text h3 { font-size: 1.5rem; }
  .service-deliverables { grid-template-columns: 1fr; }
  
  /* Services Grid Spacing Fix */
  .services-grid .service-card:nth-child(even) { margin-top: 0; }
  

  /* Hide excessive floating blobs on mobile to stop horizontal scroll */
  .mesh-glow-blob { opacity: 0.06; width: 300px; height: 300px; }
  .hero-marquee-container { top: 20%; }
  
  /* Showreel Video Scale */
  .showreel-section { padding: 60px 20px 80px; }
  .showreel-heading { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 32px; }
  
  /* Portfolio adjustments */
  .awsmd-portfolio-wrapper { padding: 40px 5%; border-radius: 24px; }
  .portfolio-filter-bar.awsmd-theme .portfolio-filter-btn { padding: 8px 16px; font-size: 0.85rem; }
  .portfolio-load-more-container { margin-top: 32px; }
  
  /* Process cards */
  .process-text-block { padding: 24px; min-height: auto; }
  .process-text-block h4 { font-size: 1.4rem; }
  
  /* Tabbed Showcase */
  .showcase-panel { padding: 24px; }
  .tab-btn { padding: 10px 20px; font-size: 0.85rem; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
}

/* Extra Small (max-width: 480px) */
@media (max-width: 480px) {
  .site-header .header-cta { display: none !important; }
  .mobile-call-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%); box-shadow: 0 6px 16px var(--accent-glow); margin-right: 6px; flex-shrink: 0; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .bento-card { padding: 24px; }
  .stat-card { padding: 24px; }
  .stat-card .number { font-size: 2.5rem; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .hero-ctas { width: 100%; }
}


@media (max-width: 992px) {
  .testimonials-stack {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 992px) {
  .testimonials-stack {
    padding-bottom: 40px !important;
    gap: 0 !important;
  }
  /* Loom 2026-07-30 (P0, revised): mobile testimonials STACK like desktop.
     Single-column, graphic constrained so the whole card fits the viewport,
     each card sticky-pins fully visible, then the next slides up and stacks over it. */
  .testimonial-card.split-card {
    grid-template-columns: 1fr;
    gap: 0;
    position: sticky;
    top: 78px;
    margin-top: 30px;
    transform: none !important;
    filter: none !important;
    box-shadow: 0 -6px 28px rgba(2, 40, 74, 0.14), 0 18px 40px rgba(2, 40, 74, 0.10);
  }
  .testimonials-stack .testimonial-card:nth-child(1) { top: 70px; margin-top: 0; }
  .testimonials-stack .testimonial-card:nth-child(2) { top: 82px; }
  .testimonials-stack .testimonial-card:nth-child(3) { top: 94px; }
  .testimonial-card.split-card .testimonial-content-side {
    margin-right: 0;
    margin-bottom: 0;
    padding: 22px 20px 26px;
    border-radius: 0 0 24px 24px;
    z-index: 2;
  }
  .testimonial-card.split-card .testimonial-graphic-side {
    border-radius: 24px 24px 0 0;
    padding: 0;
    z-index: 1;
    overflow: hidden;
    order: -1;
    max-height: 190px;
  }
  .testimonial-card.split-card .testimonial-graphic-side .testimonial-mockup {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
  }
  .testimonial-action {
    margin-top: 40px !important;
  }
}

/* Loom 2026-07-30: iPhone SE (375x667) — trim the stacked testimonial cards so the
   whole card (graphic + full quote + author) fits the small viewport, no cut-off. */
@media (max-width: 480px) {
  .testimonial-card.split-card { top: 54px; margin-top: 18px; }
  .testimonials-stack .testimonial-card:nth-child(1) { top: 48px; }
  .testimonials-stack .testimonial-card:nth-child(2) { top: 56px; }
  .testimonials-stack .testimonial-card:nth-child(3) { top: 64px; }
  .testimonial-card.split-card .testimonial-graphic-side { max-height: 118px; }
  .testimonial-card.split-card .testimonial-graphic-side .testimonial-mockup { height: 118px; }
  .testimonial-card.split-card .testimonial-content-side { padding: 16px 18px 18px; }
  .testimonial-card .client-logo-wrap { margin-bottom: 8px; }
  .testimonial-card .client-logo { max-height: 28px; }
  .testimonial-card .stars { font-size: 0.95rem; margin-bottom: 10px; }
  .testimonial-card blockquote { font-size: 0.9rem; line-height: 1.4; margin-bottom: 14px; }
  .testimonial-card blockquote::before { display: none; }
  .testimonial-card .author-avatar { width: 40px; height: 40px; font-size: 0.8rem; }
}

/* Better responsiveness for card descriptions */
.awsmd-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .awsmd-pill-title {
    max-width: 100%;
    padding: 10px 15px;
  }
  .awsmd-pill-title h4 {
    font-size: 1rem;
  }
  .awsmd-card-desc {
    font-size: 0.75rem !important;
    -webkit-line-clamp: 2;
  }
}

/* SEO Dashboard UI */
.player-seo-dashboard {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0f141a;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: #fff;
  font-family: var(--font-body);
  overflow-y: auto;
}

.seo-dash-header {
  margin-bottom: 24px;
}

.seo-dash-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #8e9fae;
}

.seo-dash-date {
  font-size: 0.85rem;
  color: #55697d;
  margin-top: 4px;
}

.seo-dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.seo-metric-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-metric-label {
  font-size: 0.75rem;
  color: #8e9fae;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seo-metric-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.seo-metric-val.highlight {
  color: #39FF14;
  text-shadow: 0 0 12px rgba(57,255,20,0.2);
}

.seo-dash-chart {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  margin-bottom: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8e9fae;
  margin-bottom: 16px;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dot.blue { background: #1A91E2; }
.dot.red { background: #E25B1A; }

.chart-area {
  flex: 1;
  position: relative;
}

.chart-area svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line-blue {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
}

.chart-line-red {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s 0.5s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.seo-dash-summary {
  background: rgba(26,145,226,0.05);
  border-left: 4px solid #1A91E2;
  padding: 16px;
  border-radius: 0 8px 8px 0;
}

.seo-summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1A91E2;
  margin-bottom: 8px;
}

.seo-summary-text {
  font-size: 0.9rem;
  color: #c9d5e0;
  line-height: 1.5;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 20, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  color: #8e9fae;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  display: block;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

/* Portfolio cards link through to the live client site when we have a verified
   domain (see script.js createCardHTML). Anchor styling has to be neutralised
   so the card looks identical to the non-linked <div> variant. */
a.awsmd-card { text-decoration: none; color: inherit; display: block; cursor: pointer; }
a.awsmd-card:focus-visible { outline: 3px solid var(--accent, #1A91E2); outline-offset: 4px; }
a.awsmd-card.is-linked .awsmd-browser-address::after {
  content: " ↗"; opacity: .55; font-size: .85em;
}
