/* ============================================================
   Loop Methods — shared design-system styles
   Dark · single accent #4FA8FF · Inter · 8px rhythm
   ============================================================ */

:root {
  --accent: #4FA8FF;
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { background: #000; transition: none; }
::selection { background: rgba(79, 168, 255, 0.3); color: #fff; }

/* ---- ShinyText: base #4FA8FF, shine #ffffff, ~100deg, 3s loop (pure CSS) ---- */
.shiny-text {
  background: linear-gradient(100deg, #4FA8FF 0%, #4FA8FF 35%, #ffffff 50%, #4FA8FF 65%, #4FA8FF 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shinySweep 3s linear infinite;
}
@keyframes shinySweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* ---- Scroll reveal: visible by default; hidden only once JS confirms it runs ---- */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(16px);
}
.js-reveal .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Service card: gradient-edge hover, glow, lift ---- */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease-out, box-shadow 0.28s ease-out, border-color 0.28s ease-out;
}
/* Gradient edge — only the 1px border shows the gradient (mask cut-out) */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #4FA8FF, rgba(79, 168, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease-out;
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 14px 44px -10px rgba(79, 168, 255, 0.22);
}
.svc-card:hover::before { opacity: 1; }
/* Icon brightens toward full accent on hover */
.svc-icon {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(79, 168, 255, 0.8);
  transition: color 0.28s ease-out, border-color 0.28s ease-out;
}
.svc-card:hover .svc-icon {
  border-color: #4FA8FF;
  color: #4FA8FF;
}

/* ---- Pinned hero: dwell then get covered by the next section scrolling over it ---- */
@media (min-width: 768px) {
  .hero-pin-outer { height: 160vh; }
  .hero-pin-inner { position: sticky !important; top: 0; height: 100vh; min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin-outer { height: auto; }
  .hero-pin-inner { position: relative; top: auto; }
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  align-items: center;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* spacing between logos; half of this sits at the seam, keeping the loop even */
  padding: 0 2.25rem;
  color: #fff;
  opacity: 0.45;
  transition: opacity 0.25s ease-out;
}
.marquee-item:hover { opacity: 1; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---- How We Work: connected timeline / path ---- */
.tl-track { position: relative; }
/* Connector lines */
.tl-base, .tl-accent {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.tl-accent { transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* Nodes */
.tl-node {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #000;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 0.875rem;
  transition: transform 0.25s ease-out, border-color 0.4s ease-out, color 0.4s ease-out, box-shadow 0.4s ease-out, background-color 0.4s ease-out;
}
.tl-node.lit {
  border-color: #4FA8FF;
  color: #4FA8FF;
  background: #000;
  box-shadow: 0 0 0 4px rgba(79, 168, 255, 0.07);
}
.tl-step:hover .tl-node {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(79, 168, 255, 0.35), 0 0 0 4px rgba(79, 168, 255, 0.1);
}
.tl-body h3 { color: #fff; }
.tl-body p { color: rgba(255, 255, 255, 0.6); }

/* --- Vertical (mobile, base) --- */
.tl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.tl-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}
.tl-base, .tl-accent {
  left: 22px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  transform: translateX(-50%);
}
.tl-base { background: rgba(255, 255, 255, 0.1); }
.tl-accent { background: #4FA8FF; transform: translateX(-50%) scaleY(0); transform-origin: top; }
.timeline.run .tl-accent { transform: translateX(-50%) scaleY(1); }

/* --- Horizontal (md and up) --- */
@media (min-width: 768px) {
  .tl-steps {
    flex-direction: row;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .tl-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 0 0.75rem;
  }
  .tl-base, .tl-accent {
    left: 12.5%;
    right: 12.5%;
    top: 22px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .tl-base { transform: translateY(-50%); }
  .tl-accent { transform: translateY(-50%) scaleX(0); transform-origin: left; }
  .timeline.run .tl-accent { transform: translateY(-50%) scaleX(1); }
  .tl-body { max-width: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-accent { transition: none; }
  .tl-step:hover .tl-node { transform: none; }
}

/* ---- Why Loop: unified quadrant grid ---- */
.quad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .quad { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
}
.quad-cell {
  position: relative;
  background: #0a0a0a;
  padding: 1.75rem;
  transition: background-color 0.25s ease-out;
  overflow: hidden;
}
/* radial accent glow on hover (kept distinct from the services border-glow) */
.quad-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 90% at 25% 15%, rgba(79, 168, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.quad-cell:hover { background: rgba(79, 168, 255, 0.04); }
.quad-cell:hover::before { opacity: 1; }
.quad-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  display: grid;
  place-items: center;
  background: rgba(79, 168, 255, 0.1);
  color: rgba(79, 168, 255, 0.85);
  transition: color 0.25s ease-out, background-color 0.25s ease-out;
}
.quad-cell:hover .quad-icon {
  color: #4FA8FF;
  background: rgba(79, 168, 255, 0.16);
}
.quad-cell > * { position: relative; }

/* ---- Featured cases: graded images + animated gradient-stroke hover ---- */
@property --case-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.case-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease-out, border-color 0.3s ease-out;
}
/* Rotating gradient stroke — only the 1px edge shows it (mask cut-out) */
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--case-angle), #4FA8FF, #bfe9ff, #ffffff, #4FA8FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  z-index: 2;
}
.case-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 52px -12px rgba(79, 168, 255, 0.32);
}
.case-card:hover::before {
  opacity: 1;
  animation: caseStroke 2.5s linear infinite;
}
@keyframes caseStroke {
  to { --case-angle: 360deg; }
}

.case-media { position: relative; overflow: hidden; }
.case-img {
  filter: grayscale(1) brightness(0.75) saturate(0.9);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease-out;
  will-change: transform;
}
.group:hover .case-img { transform: scale(1.04); filter: grayscale(0) brightness(0.95) saturate(1.05); }
/* Duotone grade: navy shadows -> #4FA8FF highlights */
.case-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(10, 20, 46, 0.65), rgba(79, 168, 255, 0.32));
  mix-blend-mode: overlay;
}
/* Blue cast to unify any source toward the palette */
.case-tone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #173a59;
  mix-blend-mode: color;
  opacity: 0.45;
}
/* Bottom-to-top dark fade for legibility + blend into card body */
.case-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, #000 2%, rgba(0, 0, 0, 0.35) 26%, transparent 55%);
}

@media (prefers-reduced-motion: reduce) {
  .case-card:hover::before { animation: none; opacity: 1; }
  .group:hover .case-img { transform: none; }
}

/* ---- Case detail modal (shared by Home Featured Cases; reusable elsewhere) ---- */
.cd-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
.cd-backdrop.open { opacity: 1; pointer-events: auto; }
.cd-modal { position: fixed; inset: 0; z-index: 201; display: flex; align-items: center; justify-content: center; padding: 1.25rem; opacity: 0; pointer-events: none; }
.cd-modal.open { opacity: 1; pointer-events: auto; }
.cd-panel {
  width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.1); background: #0b0d12;
  transform: scale(0.94) translateY(14px); opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease-out;
  position: relative;
}
.cd-modal.open .cd-panel { transform: scale(1) translateY(0); opacity: 1; }
@media (max-width: 640px) { .cd-panel { max-width: 100%; max-height: 100vh; border-radius: 0; } .cd-modal { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .cd-panel { transition: opacity 0.25s ease-out; transform: none !important; } }
.cd-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 38px; height: 38px; border-radius: 9999px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; }
.cd-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.cd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-cat { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.18); border-radius: 9999px; padding: 0.32rem 0.75rem; }
.cd-body { padding: 1.75rem; }
@media (min-width: 640px) { .cd-body { padding: 2rem 2.25rem; } }
.cd-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #4FA8FF; font-weight: 600; margin-bottom: 0.4rem; }
.cd-text { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.55; }
.cd-offers { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 480px) { .cd-offers { grid-template-columns: 1fr 1fr; } }
.cd-offer { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.82); }
.cd-offer svg { color: #4FA8FF; flex-shrink: 0; }

/* ---- Shared site modals: Get in Touch + Careers (injected by loop.js, used on every page) ---- */
.gt-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
.gt-backdrop.open { opacity: 1; pointer-events: auto; }
.gt-modal { position: fixed; inset: 0; z-index: 201; display: flex; align-items: center; justify-content: center; padding: 1.25rem; opacity: 0; pointer-events: none; }
.gt-modal.open { opacity: 1; pointer-events: auto; }
.gt-panel {
  width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto;
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.1); background: #0b0d12;
  transform: scale(0.94) translateY(10px); opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), opacity 0.28s ease-out;
  position: relative; padding: 1.75rem;
}
@media (min-width: 768px) { .gt-panel { padding: 2.25rem 2.5rem; } }
.gt-modal.open .gt-panel { transform: scale(1) translateY(0); opacity: 1; }
.gt-panel.gt-panel-sm { max-width: 460px; text-align: center; }
@media (max-width: 640px) { .gt-panel { max-width: 100%; max-height: 100vh; border-radius: 0; } .gt-modal { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .gt-panel { transition: opacity 0.25s ease-out; transform: none !important; } }
.gt-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 38px; height: 38px; border-radius: 9999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); color: #fff; display: grid; place-items: center; }
.gt-title { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 768px) { .gt-title { font-size: 1.7rem; } }
.gt-tracks { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .gt-tracks { grid-template-columns: 1fr 1fr; } }
.gt-tracks .ct-card { padding: 1.25rem; }
.gt-form-note { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.gt-offices { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.75rem; }
@media (min-width: 480px) { .gt-offices { grid-template-columns: 1fr 1fr; } }
.gt-office { display: flex; align-items: center; gap: 0.75rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 0.9rem 1.1rem; }
.gt-office-pin { width: 34px; height: 34px; border-radius: 9999px; background: rgba(79,168,255,0.1); border: 1px solid rgba(79,168,255,0.3); color: #4FA8FF; display: grid; place-items: center; flex-shrink: 0; }
/* Careers modal specifics */
.careers-icon-wrap { position: relative; width: 60px; height: 60px; margin: 0 auto; }
.careers-icon-glow { position: absolute; inset: -18px; background: radial-gradient(circle, rgba(79,168,255,0.2), transparent 70%); border-radius: 9999px; animation: legacyPulse 4.5s ease-in-out infinite; }
.careers-icon-ring-outer { position: absolute; inset: 0; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.2); }
.careers-icon-ring-mid { position: absolute; inset: 8px; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.4); }
.careers-icon { position: absolute; inset: 14px; border-radius: 9999px; display: grid; place-items: center; background: rgba(79,168,255,0.08); color: #4FA8FF; }
@media (prefers-reduced-motion: reduce) { .careers-icon-glow { animation: none !important; } }
.careers-email {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; font-weight: 600; color: #fff; border: 1px solid rgba(79,168,255,0.3);
  border-radius: 9999px; padding: 0.8rem 1.5rem; transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}
.careers-email:hover { border-color: rgba(79,168,255,0.6); background: rgba(79,168,255,0.06); }
.careers-email svg { color: #4FA8FF; }

/* Contact-track cards + form panel + inputs (shared by the Get in Touch modal) */
.ct-card { position: relative; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); background: #0b0d12; overflow: hidden; transition: border-color 0.3s ease-out, background-color 0.3s ease-out, box-shadow 0.3s ease-out; display: flex; align-items: center; }
.ct-card::after { content: ""; position: absolute; top: -25%; right: -10%; width: 60%; height: 75%; background: radial-gradient(circle, rgba(79,168,255,0.07), transparent 70%); pointer-events: none; }
.ct-card:hover { border-color: rgba(79,168,255,0.35); background-color: #0c0f15; box-shadow: 0 18px 40px -18px rgba(79,168,255,0.25); }
.ct-card.hyrix { background: linear-gradient(135deg, rgba(200,90,230,0.10), rgba(120,80,255,0.05) 55%, #0b0d12 80%); }
.ct-card.hyrix::after { top: -35%; right: -15%; width: 75%; height: 90%; background: radial-gradient(circle, rgba(210,100,235,0.20), transparent 70%); }
.ct-card.hyrix:hover { border-color: rgba(220,110,240,0.4); box-shadow: 0 18px 40px -18px rgba(210,100,235,0.3); }
.ct-icon-wrap { position: relative; width: 46px; height: 46px; flex-shrink: 0; transition: transform 0.3s ease-out; }
.ct-card:hover .ct-icon-wrap { transform: scale(1.06); }
.ct-icon-glow { position: absolute; inset: -14px; background: radial-gradient(circle, rgba(79,168,255,0.18), transparent 70%); border-radius: 9999px; animation: legacyPulse 4.5s ease-in-out infinite; }
.ct-icon-ring-outer { position: absolute; inset: 0; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.18); }
.ct-icon-ring-mid { position: absolute; inset: 6px; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.35); }
.ct-icon { position: absolute; inset: 11px; border-radius: 9999px; display: grid; place-items: center; background: rgba(79,168,255,0.08); color: #4FA8FF; }
.ct-card.hyrix .ct-icon-glow { background: radial-gradient(circle, rgba(200,90,230,0.3), transparent 70%); }
.ct-card.hyrix .ct-icon-ring-outer { border-color: rgba(220,110,240,0.3); }
.ct-card.hyrix .ct-icon-ring-mid { border-color: rgba(220,110,240,0.55); }
.ct-card.hyrix .ct-icon { background: linear-gradient(135deg, rgba(230,110,255,0.2), rgba(140,90,255,0.2)); color: #e879f9; }
@media (prefers-reduced-motion: reduce) { .ct-icon-glow { animation: none !important; } }
.ct-link-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: rgba(255,255,255,0.85); transition: color 0.2s ease-out, transform 0.2s ease-out; }
.ct-link-row:hover { color: #fff; transform: translateX(3px); }
.ct-link-row svg { color: #4FA8FF; flex-shrink: 0; }
.ct-card.hyrix .ct-link-row svg { color: #e879f9; }
.f-field { position: relative; }
.f-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.f-input, .f-textarea {
  width: 100%; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.92rem; color: #fff;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out; outline: none;
}
.f-input::placeholder, .f-textarea::placeholder { color: rgba(255,255,255,0.35); }
.f-input:focus, .f-textarea:focus { border-color: #4FA8FF; box-shadow: 0 0 0 3px rgba(79,168,255,0.15); }
.f-textarea { min-height: 88px; resize: vertical; }
.f-error { display: none; margin-top: 0.35rem; font-size: 0.78rem; color: #f87171; }
.f-field.invalid .f-input, .f-field.invalid .f-textarea { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.12); }
.f-field.invalid .f-error { display: block; }

/* ---- Team: editorial stat ledger ---- */
.team-figure { font-variant-numeric: tabular-nums; }
.team-stat { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---- Testimonial carousel ---- */
.tcarousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tcarousel-viewport::-webkit-scrollbar { display: none; }
.tcarousel-track { display: flex; }
.tslide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
}
.tcarousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.25s ease-out, width 0.25s ease-out;
}
.tcarousel-dot.active {
  background: #4FA8FF;
  width: 22px;
  box-shadow: 0 0 0 4px rgba(79, 168, 255, 0.12), 0 0 14px rgba(79, 168, 255, 0.6);
}
.tcarousel-btn { transition: color 0.2s ease-out, border-color 0.2s ease-out, background-color 0.2s ease-out; }
.tcarousel-btn:hover { color: #4FA8FF; border-color: rgba(79, 168, 255, 0.5); }
@media (prefers-reduced-motion: reduce) {
  .tcarousel-viewport { scroll-behavior: auto; }
}

/* ---- Premium quote carousel (fade + translate + parallax slide engine) ---- */
.qcar { --qc-ease: cubic-bezier(0.16, 1, 0.3, 1); }
/* Gradient hairline border wrapper (same treatment used across the site) */
.qcar-frame {
  position: relative;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(79, 168, 255, 0.20));
  transition: background 0.4s ease-out, box-shadow 0.4s ease-out, transform 0.4s var(--qc-ease);
}
.qcar-card {
  position: relative;
  border-radius: 27px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 50% -12%, rgba(79, 168, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0d0d0f, #070708);
  isolation: isolate;
}
/* Faint inner glow ring */
.qcar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 60px rgba(79, 168, 255, 0.05);
  pointer-events: none;
  z-index: 3;
}
/* Subtle noise texture */
.qcar-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}
/* Oversized background quotation glyph */
.qcar-glyph {
  position: absolute;
  top: -0.18em;
  left: 0.12em;
  z-index: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(9rem, 20vw, 16rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(79, 168, 255, 0.07);
  user-select: none;
  pointer-events: none;
  transition: transform 0.7s var(--qc-ease), color 0.4s ease-out;
}
.qcar:hover .qcar-glyph { color: rgba(79, 168, 255, 0.12); transform: translateY(-4px) rotate(-2deg); }

/* Hover: brighter border, accent glow, slight lift */
.qcar:hover .qcar-frame {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(79, 168, 255, 0.45));
  box-shadow: 0 30px 80px -28px rgba(79, 168, 255, 0.40), 0 0 0 1px rgba(79, 168, 255, 0.10);
}

/* Stage holds absolutely-stacked slides; height animates to the active one */
.qcar-stage { position: relative; z-index: 1; transition: height 0.55s var(--qc-ease); }
.qcar-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--qc-from, 28px));
  transition: opacity 0.55s var(--qc-ease), transform 0.65s var(--qc-ease), visibility 0s linear 0.6s;
  will-change: opacity, transform;
}
.qcar-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.55s var(--qc-ease), transform 0.65s var(--qc-ease);
}
/* Parallax: inner pieces ride slightly further/slower than the slide */
.qcar-quote, .qcar-person {
  transform: translateX(calc(var(--qc-from, 28px) * var(--qc-px, 0.5)));
  opacity: 0;
  transition: opacity 0.55s var(--qc-ease), transform 0.75s var(--qc-ease);
}
.qcar-slide.active .qcar-quote { --qc-px: 0; opacity: 1; transform: translateX(0); transition-delay: 0.06s; }
.qcar-slide.active .qcar-person { --qc-px: 0; opacity: 1; transform: translateX(0); transition-delay: 0.14s; }

/* Avatar scales on card hover */
.qcar-avatar { transition: transform 0.35s var(--qc-ease); }
.qcar:hover .qcar-avatar { transform: scale(1.06); }
.qcar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .qcar-slide, .qcar-quote, .qcar-person { transition: none !important; transform: none !important; }
  .qcar:hover .qcar-glyph, .qcar:hover .qcar-avatar { transform: none; }
}

/* ---- Closing CTA — layered aurora / fluid-mesh background (Hero's younger sibling) ---- */
.cta-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cta-parallax { position: absolute; inset: -6%; will-change: transform; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* Layer 1 — large blurred gradient glow */
.cta-glow {
  position: absolute;
  left: 40%; top: 52%;
  width: 58%; aspect-ratio: 1 / 0.78;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(79, 168, 255, 0.22), rgba(83, 110, 245, 0.12) 45%, transparent 70%);
  filter: blur(90px);
  opacity: 0.85;
  animation: ctaGlowFloat 28s ease-in-out infinite;
}

/* Centering wrapper so the orb's own transform can animate freely */
.cta-orb-wrap {
  position: absolute;
  left: 60%; top: 46%;
  width: 52%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
/* Layer 2 — main fluid mesh orb */
.cta-orb {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 46% at 54% 40%, rgba(140, 215, 255, 0.5), transparent 70%),
    conic-gradient(from 210deg at 50% 50%, rgba(79, 168, 255, 0.36), rgba(83, 110, 245, 0.32), rgba(79, 168, 255, 0.36));
  border-radius: 50% 50% 48% 52% / 55% 50% 50% 45%;
  filter: blur(46px);
  opacity: 0.18;
  animation: ctaFloat 26s ease-in-out infinite;
}
/* Soft blur depth layer behind the orb */
.cta-orb-soft {
  position: absolute; inset: 8%;
  background: radial-gradient(circle at 52% 46%, rgba(79, 168, 255, 0.3), transparent 68%);
  filter: blur(70px);
  opacity: 0.5;
}
/* Layer 3 — thin translucent highlight streaks (Hero language) */
.cta-streaks { display: none; }
/* Animated light sweep across the shape */
.cta-sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
          mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
  overflow: hidden;
}
.cta-sweep::before {
  content: "";
  position: absolute; top: -25%; bottom: -25%; width: 38%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(180, 225, 255, 0.20), transparent);
  filter: blur(16px);
  transform: translateX(-220%) skewX(-12deg);
  animation: ctaSweep 9s ease-in-out infinite;
}

@keyframes ctaFloat {
  0%   { transform: translate(-2%, 0%) scale(1) rotate(-2deg); }
  50%  { transform: translate(3%, -3%) scale(1.05) rotate(2deg); }
  100% { transform: translate(-2%, 0%) scale(1) rotate(-2deg); }
}
@keyframes ctaGlowFloat {
  0%   { transform: translate(-50%, -50%) translate(0, 0); }
  50%  { transform: translate(-50%, -50%) translate(2%, -2%); }
  100% { transform: translate(-50%, -50%) translate(0, 0); }
}
@keyframes ctaSweep {
  0%      { transform: translateX(-220%) skewX(-12deg); }
  60%     { transform: translateX(320%) skewX(-12deg); }
  100%    { transform: translateX(320%) skewX(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-orb, .cta-glow, .cta-sweep::before { animation: none !important; }
  .cta-parallax { transition: none !important; transform: none !important; }
}

/* ---- Team-member carousel (multi-card peek gallery) ---- */
.tmcard {
  flex: 0 0 80%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .tmcard { flex-basis: 46%; } }
@media (min-width: 1024px) { .tmcard { flex-basis: 30%; } }
.tm-photo {
  position: relative;
  border-radius: 1rem;
  transition: box-shadow 0.3s ease-out;
}
.tm-clip {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #15161a, #0a0a0b);
  transition: border-color 0.3s ease-out;
}
.tm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* consistent editorial monochrome grade across every card */
  filter: grayscale(1) contrast(1.06) brightness(0.82);
  transform-origin: center;
  transition: filter 0.35s ease-out, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* hover: soft brightness lift + subtle zoom (stays monochrome for consistency) */
.tmcard:hover .tm-img { filter: grayscale(0) contrast(1.06) brightness(1); transform: scale(1.04); }
/* subtle blue highlights pulled from the design system */
.tm-tone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(79, 168, 255, 0.14), transparent 42%, rgba(83, 110, 245, 0.12));
  mix-blend-mode: soft-light;
}
.tmcard:hover .tm-clip { border-color: rgba(79, 168, 255, 0.55); }
.tmcard:hover .tm-photo { box-shadow: 0 0 0 1px rgba(79, 168, 255, 0.45), 0 18px 44px -12px rgba(79, 168, 255, 0.32); }
.tm-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 42%, transparent 66%);
}
.tm-social { color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease-out; }
.tm-social:hover { color: #4FA8FF; }
@media (prefers-reduced-motion: reduce) {
  .tmcard:hover .tm-img { transform: none; }
}

/* ---- Service detail: mini approach steps (subordinate to the site-wide 01-04 treatment) ---- */
.mini-step {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1.5px solid rgba(79, 168, 255, 0.4);
  color: #4FA8FF;
  font-size: 0.8rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

/* ---- Services "What we do": ambient section-background glows (asymmetric, drifting) ----
   The stack is a pinned/sticky deck, so the glow layer is itself sticky and viewport-anchored:
   it travels with the scroll and stays on screen for the whole section. Height 0 so it adds
   no layout space. CRITICAL: no `overflow:hidden` anywhere on this section — a clipping
   ancestor disables `position:sticky` for the stack cards. So the glows are edge-anchored
   panels whose radial gradient is centred beyond their own edge (giving the "bleeding in
   from off-screen" read) instead of oversized circles pushed out with negative offsets,
   which would overflow the page and need clipping. */
.svc-amb-layer {
  position: sticky; top: 0; height: 0; z-index: 0;
  pointer-events: none;
}
.svc-amb {
  position: absolute; pointer-events: none;
  width: 34vw; max-width: 560px; height: 100vh;
  filter: blur(70px);
  will-change: transform, opacity;
}
/* left glow blooms low, from the left edge inward */
.svc-amb-l {
  left: 0; top: 0;
  background: radial-gradient(ellipse 90% 42% at -8% 72%, rgba(79,168,255,0.34) 0%, rgba(79,168,255,0.14) 40%, transparent 72%);
  animation: svcAmbL 13s ease-in-out infinite;
}
/* right glow blooms high — deliberately not mirrored */
.svc-amb-r {
  right: 0; top: 0;
  background: radial-gradient(ellipse 90% 40% at 108% 22%, rgba(79,168,255,0.30) 0%, rgba(79,168,255,0.12) 42%, transparent 72%);
  animation: svcAmbR 16s ease-in-out infinite;
}
/* Travel and brightness swings are deliberately large: behind a 70px blur, small
   percentage moves are imperceptible. */
@keyframes svcAmbL {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity: 0.55; }
  35% { transform: translate3d(5%,-12%,0) scale(1.22); opacity: 1; }
  70% { transform: translate3d(-3%,14%,0) scale(0.88); opacity: 0.4; }
}
@keyframes svcAmbR {
  0%,100% { transform: translate3d(0,0,0) scale(1.08); opacity: 0.45; }
  32% { transform: translate3d(-5%,15%,0) scale(0.86); opacity: 1; }
  68% { transform: translate3d(4%,-11%,0) scale(1.24); opacity: 0.7; }
}
@media (max-width: 767px) {
  .svc-amb { width: 55vw; filter: blur(55px); }
}
@media (prefers-reduced-motion: reduce) { .svc-amb { animation: none; } }

/* ---- Footer social icons ---- */
.social-icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  transition: transform 0.25s ease-out, color 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}
.social-icon:hover, .social-icon:focus-visible {
  transform: translateY(-2px);
  color: #4FA8FF;
  border-color: rgba(79,168,255,0.45);
  box-shadow: 0 0 16px -2px rgba(79,168,255,0.45);
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .social-icon { transition: none; }
  .social-icon:hover, .social-icon:focus-visible { transform: none; }
}

/* ---- Services page: scroll-stacking card deck (desktop only) ---- */
.stack-wrap { position: relative; }
.stack-progress {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  float: right;
  margin-right: -1px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.5rem;
  z-index: 50;
}
.stack-progress .sp-count { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; }
.stack-progress .sp-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #4FA8FF; writing-mode: vertical-rl; }
@media (min-width: 1024px) {
  .stack-progress { display: flex; }
  .stack-item {
    position: sticky;
    top: 9vh;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding-bottom: 6vh;
  }
}
.stack-card {
  position: relative;
  width: 100%;
  border-radius: 20px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0d1017 0%, #0a0c11 60%), radial-gradient(ellipse 60% 80% at 90% 0%, rgba(79,168,255,0.10), transparent 60%);
  background-clip: padding-box, padding-box;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,168,255,0.12);
  padding: 2rem;
  transform: scale(calc(1 - var(--sp, 0) * 0.07));
  filter: brightness(calc(1 - var(--sp, 0) * 0.35));
  transition: transform 0.05s linear, filter 0.05s linear, box-shadow 0.3s ease-out;
  will-change: transform, filter;
}
.stack-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(79,168,255,0.55), rgba(255,255,255,0.08) 35%, rgba(79,168,255,0.10) 65%, rgba(79,168,255,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@media (min-width: 768px) {
  .stack-card { padding: 3rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
}
.stack-pill {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem; border-radius: 9999px;
}
.stack-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.stack-bullets li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.stack-bullets svg { color: #4FA8FF; flex: 0 0 auto; }
.stack-visual {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(79,168,255,0.20);
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 24px -8px rgba(79,168,255,0.25);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-top: 1.5rem;
}
@media (min-width: 768px) { .stack-visual { margin-top: 0; } }
.stack-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.18);
  padding: 0.55rem 1.1rem; font-size: 0.8rem; color: #fff;
  transition: border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}
.stack-cta:hover { border-color: #4FA8FF; color: #4FA8FF; transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  @media (min-width: 1024px) {
    .stack-item { position: static; min-height: 0; padding-bottom: 0; margin-bottom: 1.5rem; }
  }
  .stack-card { transform: none !important; filter: none !important; }
  .stack-progress { display: none !important; }
}

/* ---- HYRIX AI spotlight: the site's single intentional gradient departure ---- */
.hyrix-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 140% at 15% 0%, rgba(236,72,153,0.20), transparent 55%),
              radial-gradient(ellipse 90% 140% at 85% 100%, rgba(139,92,246,0.20), transparent 55%),
              #0a0710;
  border-top: 1px solid rgba(236,72,153,0.15);
  border-bottom: 1px solid rgba(139,92,246,0.15);
}
.hyrix-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #f3d9ff;
  background: linear-gradient(90deg, rgba(236,72,153,0.18), rgba(139,92,246,0.18));
  border: 1px solid rgba(236,72,153,0.35);
}
.hyrix-word {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ec4899, #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hyrix-cta {
  background: linear-gradient(90deg, #ec4899, #a855f7);
  color: #fff;
  transition: filter 0.3s ease-out, transform 0.3s ease-out;
}
.hyrix-cta:hover { filter: brightness(1.12); }
.hyrix-pipe-step {
  border: 1px solid rgba(236,72,153,0.25);
  background: rgba(255,255,255,0.03);
}
.hyrix-pipe-bar { background: linear-gradient(90deg, #ec4899, #a855f7); }

/* ---- FAQ accordion ---- */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform 0.3s ease; }

/* ---- Mobile menu ---- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { max-height: 520px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal:not(.in) { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shiny-text { animation: none !important; background-position: 50% 0 !important; }
  /* Keep the border/glow on service cards, drop the lift + arrow translate */
  .svc-card:hover { transform: none; }
  .svc-card:hover .svc-arrow { transform: none !important; }
}

/* ---- Image-led service card (grayscale -> color on hover) ---- */
.svc-card-photo { padding: 0; }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1rem 1rem 0 0; }
.svc-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) brightness(0.92);
  transform-origin: center;
  transition: filter 0.4s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .svc-card-photo:hover .svc-photo { filter: grayscale(0) brightness(1); transform: scale(1.045); }
}
@media (hover: none) {
  .svc-photo { filter: grayscale(0) brightness(1); }
}
.svc-media-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 55%); }
.svc-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.svc-cat { display: inline-flex; align-items: center; gap: 0.4rem; color: #4FA8FF; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  .svc-card-photo:hover .svc-photo { transform: none; }
}

/* ---- Page hero: bottom radial glow + centered badge (shared by About, Services, etc.) ---- */
.page-hero { min-height: clamp(480px, 62vh, 640px); display: flex; align-items: center; }
.page-hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% 105%, #4FA8FF 0%, rgba(45,90,190,0.55) 30%, rgba(20,40,90,0.22) 55%, transparent 78%);
  animation: pageGlowBreathe 7s ease-in-out infinite;
}
@keyframes pageGlowBreathe { 0%,100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .page-hero-glow { animation: none !important; } }
.page-hero-badge {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
}

/* ---- Service detail page: disciplined grid system ---- */
.dtl-wrap { max-width: 1140px; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .dtl-wrap { padding-inline: 2rem; } }
.dtl-section { padding-block: 3.5rem; }
@media (min-width: 768px) { .dtl-section { padding-block: 5.5rem; } }
.dtl-divider { border-top: 1px solid rgba(255,255,255,0.08); }
.dtl-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }

/* Header icon badge: layered glow ring, matches Legacy/Commitment */
.dtl-icon-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.dtl-icon-glow { position: absolute; inset: -20px; background: radial-gradient(circle, rgba(79,168,255,0.18), transparent 70%); border-radius: 9999px; animation: legacyPulse 4.5s ease-in-out infinite; }
.dtl-icon-ring-outer { position: absolute; inset: 0; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.18); }
.dtl-icon-ring-mid { position: absolute; inset: 8px; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.35); }
.dtl-icon { position: absolute; inset: 14px; border-radius: 9999px; display: grid; place-items: center; background: rgba(79,168,255,0.08); color: #4FA8FF; }
@media (prefers-reduced-motion: reduce) { .dtl-icon-glow { animation: none !important; } }

/* Header supporting visual mockup panel */
.dtl-mock { position: relative; border-radius: 16px; border: 1px solid rgba(79,168,255,0.20); background: linear-gradient(160deg, #0d1017, #0a0c11); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 32px -10px rgba(79,168,255,0.28); overflow: hidden; aspect-ratio: 4/3; padding: 1.25rem; }
.dtl-mock-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,0.18); }
.dtl-mock-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.dtl-mock-bar.accent { background: rgba(79,168,255,0.5); }
.dtl-mock-typing::after { content: ''; display: inline-block; width: 2px; height: 12px; background: #4FA8FF; margin-left: 4px; animation: dtlBlink 1s step-end infinite; vertical-align: middle; }
@keyframes dtlBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dtl-mock-typing::after { animation: none !important; } }

/* What's Included: elevated "spec sheet" panel (see .dtl-included-panel below for the
   current chip-grid/chip rules — this comment marks where the old bordered-box version,
   now removed, used to live) */

/* Who It's For: paragraph + callout */
.dtl-callout { display: flex; align-items: flex-start; gap: 0.65rem; border-left: 2px solid #4FA8FF; padding: 1.1rem 1.3rem; background: rgba(79,168,255,0.06); border-radius: 0 12px 12px 0; font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.5; }
.dtl-callout svg { flex-shrink: 0; margin-top: 0.15rem; color: #4FA8FF; }

/* Header section: tighter bottom gap before the divider (rely on divider + next section's own top padding) */
.dtl-hero { padding-bottom: 3.5rem; min-height: clamp(460px, 56vh, 620px); display: flex; align-items: center; }
@media (min-width: 768px) { .dtl-hero { padding-bottom: 4.5rem; } }

/* Mock panel: progress label row + completed result card, so the accent bar reads as a labeled progress indicator, not a stray shape */
.dtl-mock-progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-bottom: 0.4rem; }
.dtl-mock-result { display: flex; align-items: center; gap: 0.55rem; border-radius: 10px; border: 1px solid rgba(79,168,255,0.18); background: rgba(79,168,255,0.05); padding: 0.65rem 0.85rem; font-size: 0.76rem; color: rgba(255,255,255,0.75); margin-top: 0.9rem; }
.dtl-mock-result svg { color: #4FA8FF; flex-shrink: 0; }

/* Our Approach: horizontal steps with connecting line */
.dtl-steps { display: grid; gap: 2rem; position: relative; }
@media (min-width: 768px) { .dtl-steps { grid-template-columns: repeat(3, 1fr); } }
.dtl-step-num { position: relative; width: 34px; height: 34px; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.4); color: #4FA8FF; display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; background: #0a0b0f; z-index: 1; }
.dtl-step-line { position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: linear-gradient(to right, rgba(79,168,255,0.35), rgba(79,168,255,0.08)); display: none; }
@media (min-width: 768px) { .dtl-step-line { display: block; } }
/* Animated sweep along the connecting line, plays once when the step row enters view */
.dtl-step-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; background-position: -50% 0;
  opacity: 0;
}
.js-reveal .dtl-steps.in .dtl-step-line::after { animation: dtlSweep 1.3s ease-out 0.15s forwards; }
@keyframes dtlSweep { 0% { opacity: 1; background-position: -60% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .dtl-step-line::after { animation: none !important; display: none; } }

/* What's Included: elevated "spec sheet" panel */
.dtl-included-panel {
  position: relative; border-radius: 20px; overflow: hidden;
  background: #0d0f14; border: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem 1.5rem;
}
@media (min-width: 768px) { .dtl-included-panel { padding: 2.25rem 2rem; } }
.dtl-included-panel::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.28), transparent); }
.dtl-included-panel::after { content: ""; position: absolute; top: -25%; right: -10%; width: 60%; height: 75%; background: radial-gradient(circle, rgba(79,168,255,0.07), transparent 70%); pointer-events: none; }
.dtl-chip-grid { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
@media (min-width: 640px) { .dtl-chip-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; } }
.dtl-chip { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 0; background: transparent; font-size: 0.9rem; color: rgba(255,255,255,0.82); transition: color 0.25s ease-out; min-width: 0; }
.dtl-chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(to right, rgba(255,255,255,0.14) 4%, rgba(255,255,255,0.14) 88%, transparent); }
.dtl-chip.no-line::after { display: none; }
.dtl-chip:hover { color: #fff; }
.dtl-chip-ic { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9999px; background: rgba(79,168,255,0.12); color: #4FA8FF; flex-shrink: 0; transition: background-color 0.25s ease-out; }
.dtl-chip-ic::before { content: ""; position: absolute; inset: -4px; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.22); }
.dtl-chip:hover .dtl-chip-ic { background: rgba(79,168,255,0.2); }

/* Who It's For: open editorial pull-quote + standalone callout card */
.dtl-quote-text { font-size: 1.15rem; font-weight: 400; color: rgba(255,255,255,0.88); line-height: 1.6; }
@media (min-width: 768px) { .dtl-quote-text { font-size: 1.35rem; } }
.dtl-callout-card { border-radius: 18px; background: #0d0f14; border: 1px solid rgba(255,255,255,0.08); padding: 1.75rem; box-shadow: 0 24px 55px -24px rgba(0,0,0,0.55); }
.dtl-callout-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9999px; background: rgba(79,168,255,0.10); color: #4FA8FF; margin-bottom: 1rem; box-shadow: 0 0 0 1px rgba(79,168,255,0.20), 0 0 22px -4px rgba(79,168,255,0.4); }
.dtl-callout-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.55; }

/* Our Approach: full-width subtle band + elevated step badges */
.dtl-approach-band { background: linear-gradient(180deg, rgba(79,168,255,0.045), transparent 70%); }
.dtl-step-badge { position: relative; display: inline-block; width: 44px; height: 44px; z-index: 1; }
.dtl-step-badge .ring-outer { position: absolute; inset: 0; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.22); }
.dtl-step-badge .ring-mid { position: absolute; inset: 6px; border-radius: 9999px; border: 1px solid rgba(79,168,255,0.42); }
.dtl-step-badge .num { position: absolute; inset: 10px; border-radius: 9999px; display: grid; place-items: center; background: #0a0b0f; color: #4FA8FF; font-weight: 600; font-size: 0.82rem; }

/* Header engagement: fact-row pills, glow behind icon column, live-preview mock label */
.dtl-fact-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dtl-fact-pill { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.03); border-radius: 9999px; padding: 0.4rem 0.85rem; font-size: 0.76rem; color: rgba(255,255,255,0.75); }
.dtl-fact-pill span.dot { width: 5px; height: 5px; border-radius: 9999px; background: #4FA8FF; box-shadow: 0 0 6px #4FA8FF; flex-shrink: 0; }
.dtl-header-glow { position: absolute; left: -8%; top: 10%; width: 60%; height: 80%; background: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(79,168,255,0.10), transparent 70%); pointer-events: none; z-index: 0; }
.dtl-mock-label { position: absolute; top: 0.9rem; right: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); }
.dtl-mock-label .live-dot { width: 6px; height: 6px; border-radius: 9999px; background: #4FA8FF; box-shadow: 0 0 8px #4FA8FF; animation: legacyPulse 2.2s ease-in-out infinite; }
.dtl-headline-accent { position: relative; color: #4FA8FF; }

/* What's Included: icon-circle chips with staggered entrance */
.dtl-chip-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9999px; background: rgba(79,168,255,0.12); color: #4FA8FF; flex-shrink: 0; }
.dtl-chip-grid .dtl-chip:nth-of-type(1) { transition-delay: 0s; }
.dtl-chip-grid .dtl-chip:nth-of-type(2) { transition-delay: 0.06s; }
.dtl-chip-grid .dtl-chip:nth-of-type(3) { transition-delay: 0.12s; }
.dtl-chip-grid .dtl-chip:nth-of-type(4) { transition-delay: 0.18s; }
.dtl-chip-grid .dtl-chip:nth-of-type(5) { transition-delay: 0.24s; }
.dtl-chip-grid .dtl-chip:nth-of-type(6) { transition-delay: 0.30s; }
