/* =====================================================
   PRESSTECH – Home Page Animations
   ===================================================== */

/* ── Keyframes ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeRight{ from { opacity:0; transform:translateX(60px); } to { opacity:1; transform:translateX(0); } }
@keyframes float    { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-22px) rotate(5deg); } }
@keyframes pulse-ring { 0% { transform:scale(0.9); box-shadow:0 0 0 0 rgba(200,24,30,0.4); }
                        70% { transform:scale(1);   box-shadow:0 0 0 14px rgba(200,24,30,0); }
                       100% { transform:scale(0.9); box-shadow:0 0 0 0 rgba(200,24,30,0); } }
@keyframes marquee  { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
@keyframes blink    { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes shimmer  { 0% { background-position:-400px 0; } 100% { background-position:400px 0; } }
@keyframes bounce-badge { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes draw-line { from { width:0; } to { width:100%; } }
@keyframes spin-slow { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes slide-in-left { from { opacity:0; transform:translateX(-60px); } to { opacity:1; transform:translateX(0); } }
@keyframes scale-in { from { opacity:0; transform:scale(0.7); } to { opacity:1; transform:scale(1); } }
@keyframes gradient-shift { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }

/* ── Reveal helpers (triggered by JS adding .visible) ── */

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff6b6b, var(--primary));
  background-size: 200% 100%;
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(200,24,30,0.5);
  animation: progress-shimmer 2s linear infinite;
}
@keyframes progress-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── reveal-up: fade + rise ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.65s cubic-bezier(.22,.68,0,1.2),
    transform 0.65s cubic-bezier(.22,.68,0,1.2);
  transition-delay: var(--d, 0ms);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ── reveal-right: fade + slide from right ── */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity   0.75s cubic-bezier(.22,.68,0,1.2),
    transform 0.75s cubic-bezier(.22,.68,0,1.2);
  transition-delay: var(--d, 0ms);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── reveal-left: fade + slide from left ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity   0.75s cubic-bezier(.22,.68,0,1.2),
    transform 0.75s cubic-bezier(.22,.68,0,1.2);
  transition-delay: var(--d, 0ms);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ── reveal-scale: fade + scale up ── */
.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity   0.6s cubic-bezier(.22,.68,0,1.2),
    transform 0.6s cubic-bezier(.22,.68,0,1.3);
  transition-delay: var(--d, 0ms);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ── Stagger cards: each card rises + fades in sequence ──
   Uses --i CSS variable (0,1,2,3…) set on each card.
   100ms gap between cards for a clean cascade.          */
.stagger-card {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition:
    opacity   0.6s cubic-bezier(.22,.68,0,1.2),
    transform 0.65s cubic-bezier(.22,.68,0,1.2);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.stagger-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Section sequence: head fires first, cards follow ──
   [data-seq="cards"] is transparent until triggered.
   Cards stagger in via .stagger-card --i after 320ms.  */
[data-seq="cards"] {
  /* No opacity hide here — stagger-card handles visibility */
}
[data-seq="cards"].seq-visible .stagger-card {
  /* already handled by observer adding .visible */
}

/* ── Section eyebrow label ── */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ── Button hover ripple ── */
.btn-anim { position: relative; overflow: hidden; }
.btn-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.btn-anim:hover::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════
   HERO – Full-Bleed Ken Burns Banner
   Process: scale(1) → scale(1.12)  + slight pan
   Duration: 20s, alternates direction each cycle
   ════════════════════════════════════════════════ */

/* ── Ken Burns keyframes ─────────────────────── */

/* Zoom in + pan right → down */
@keyframes ken-burns-a {
  0%   { transform: scale(1)    translate(0%,    0%);   }
  100% { transform: scale(1.14) translate(-2.5%, -1.5%); }
}

/* Zoom in + pan left → up (alternate cycle) */
@keyframes ken-burns-b {
  0%   { transform: scale(1.14) translate(-2.5%, -1.5%); }
  100% { transform: scale(1)    translate(0%,    0%);   }
}

/* Combined seamless loop: A → B → A … */
@keyframes ken-burns-loop {
  0%   { transform: scale(1)    translate(0%,    0%);    }
  50%  { transform: scale(1.13) translate(-2.5%, -1.5%); }
  100% { transform: scale(1)    translate(0%,    0%);    }
}

/* ── KB background layer ─────────────────────── */
.kb-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/banner1.png');
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ── Dark gradient overlay ───────────────────── */
.kb-overlay { display: none; }

/* ── Section wrapper overrides ───────────────── */
.hero.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(100vh - 116px);
  min-height: 360px;
  max-height: 820px;
  background: #222;
  border-bottom: 4px solid var(--primary);
}

/* Shapes sit above overlay but below content */
.hero.hero-banner .hero-shapes { z-index: 2; }
.shape { background: rgba(200,24,30,0.10); }

/* ── Hero grid on top ────────────────────────── */
.hero.hero-banner .hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ── Text colours switch to white ────────────── */
.hero.hero-banner .hero-title  { color: #fff; }
.hero.hero-banner .hero-desc   { color: rgba(255,255,255,0.80); }
.hero.hero-banner .stat-number { color: #ff4d52; }
.hero.hero-banner .stat-label  { color: rgba(255,255,255,0.65); }
.hero.hero-banner .hero-stats  { border-top-color: rgba(255,255,255,0.15); }
.hero.hero-banner .typewriter  { color: #ff4d52; }
.hero.hero-banner .cursor      { color: #ff4d52; }

/* ── Outline button – white variant ─────────── */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: var(--radius, 8px);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* ── Right-side visual panel ─────────────────── */
.hero-visual-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  min-height: 260px;
}
/* Float badges repositioned for banner layout */
.hero-visual-banner .badge-top {
  top: 0; left: auto; right: 0;
  position: relative;
  animation: bounce-badge 3s ease-in-out infinite;
}
.hero-visual-banner .badge-bottom {
  bottom: 0; right: 0;
  position: relative;
  animation: bounce-badge 3s ease-in-out infinite;
  animation-delay: 1.4s;
}

/* ── Scroll-down cue ─────────────────────────── */
@keyframes scroll-cue-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60%      { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

.kb-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.kb-scroll-cue span {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 13px;
  position: relative;
}
.kb-scroll-cue span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-cue-bounce 1.8s ease-in-out infinite;
  /* reset transform origin for the nested element */
  animation-name: scroll-dot-drop;
}
@keyframes scroll-dot-drop {
  0%,100% { top: 6px; opacity: 1; }
  80%     { top: 20px; opacity: 0; }
}

/* ── Reduced-motion: disable Ken Burns ───────── */
@media (prefers-reduced-motion: reduce) {
  .kb-bg { animation: none; }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero.hero-banner { min-height: 80vh; padding: 120px 0 80px; }
  .hero-visual-banner { align-items: center; flex-direction: row; justify-content: center; min-height: auto; }
  .hero-visual-banner .badge-top,
  .hero-visual-banner .badge-bottom { position: static; }
}
@media (max-width: 768px) {
  .hero.hero-banner { min-height: 100svh; padding: 100px 0 80px; }
  .hero-visual-banner { display: none; }
  .kb-scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .hero.hero-banner { padding: 90px 0 70px; }
}

/* ══════════════════════════════════════════════════
   HERO ENTRANCE SEQUENCE  (3 stages)
   Total duration ≈ 2.8s then hands off to showcase.

   Stage 1 – Curtain  0.0s → 1.0s
   Stage 2 – Diag     0.7s → 1.6s
   Stage 3 – Split    1.2s → 2.4s
   Cleanup            2.4s → 2.8s (layers fade out)
   ═════════════════════════════════════════════════ */

/* ── Wrapper that holds all entrance layers ── */
.entrance-wrap {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  /* Remove from layout after animation finishes */
  animation: entrance-wrap-hide 0.01s linear 2.85s forwards;
}
@keyframes entrance-wrap-hide {
  to { display: none; visibility: hidden; pointer-events: none; }
}

/* ─────────────────────────────────────────────────
   STAGE 1 – CURTAIN REVEAL
   Two dark panels slide apart from center.
   Left  → slides to the left  (translateX 0 → -100%)
   Right → slides to the right (translateX 0 → +100%)
   ───────────────────────────────────────────────── */
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #0a0a0f;
  z-index: 40;
  animation-duration: 0.95s;
  animation-timing-function: cubic-bezier(.77,0,.18,1);
  animation-delay: 0.55s;
  animation-fill-mode: forwards;
}
.curtain-left  {
  left: 0;
  animation-name: curtain-open-left;
}
.curtain-right {
  right: 0;
  animation-name: curtain-open-right;
}
@keyframes curtain-open-left  {
  from { transform: translateX(0);     }
  to   { transform: translateX(-102%); }
}
@keyframes curtain-open-right {
  from { transform: translateX(0);    }
  to   { transform: translateX(102%); }
}

/* ─────────────────────────────────────────────────
   STAGE 2 – DIAGONAL WIPE
   A parallelogram sweeps left→right across the hero.
   Red shape leads, thin white accent follows.
   Uses clip-path polygon to create the diagonal edge.
   ───────────────────────────────────────────────── */
.diag-wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Oversized so the skewed shape covers full width */
  left: -15%;
  width: 130%;
  z-index: 30;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(.77,0,.18,1);
  animation-fill-mode: forwards;
  /* Diagonal parallelogram shape */
  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
}
.diag-red {
  background: var(--primary);
  animation-name: diag-sweep;
  animation-delay: 0.65s;
}
.diag-white {
  background: rgba(255,255,255,0.12);
  animation-name: diag-sweep;
  animation-delay: 0.82s;  /* trails slightly behind */
}
@keyframes diag-sweep {
  0%   { transform: translateX(-110%); opacity: 1; }
  60%  { transform: translateX(0%);    opacity: 1; }
  100% { transform: translateX(115%);  opacity: 0; }
}

/* ─────────────────────────────────────────────────
   STAGE 3 – SPLIT SCREEN REVEAL
   Left: brand panel slides in from left.
   Right: already revealed by curtain opening —
          the showcase panels underneath become visible.
   Left panel slides out again at the end.
   ───────────────────────────────────────────────── */
.split-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: #0a0a0f;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 48px;

  /* Slide in from left */
  animation:
    split-enter 0.6s cubic-bezier(.22,.68,0,1.2) 1.1s both,
    split-exit  0.55s cubic-bezier(.77,0,.18,1)  2.15s forwards;
}
@keyframes split-enter {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes split-exit {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-105%); opacity: 0; }
}

/* Red left-edge accent bar */
.split-left::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 24px rgba(200,24,30,0.6);
}

/* Content inside split panel */
.sl-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
  /* Inner content fades in after panel has arrived */
  animation: sl-inner-in 0.5s ease 1.72s both;
}
@keyframes sl-inner-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sl-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
}
.sl-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1px;
}
.sl-title span { color: var(--primary); }
.sl-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.sl-rule {
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 4px 0;
}
.sl-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── prefers-reduced-motion: skip entrance ── */
@media (prefers-reduced-motion: reduce) {
  .entrance-wrap { display: none; }
}

/* ── Mobile: simplify (no split panel, just curtain) ── */
@media (max-width: 768px) {
  .split-left { display: none; }
  .diag-wipe  { display: none; }
}

/* ══════════════════════════════════════════════════
   PRODUCT SHOWCASE HERO
   Layout: 4 panels side-by-side, full viewport height.
   Inactive panels: blurred + dimmed + narrow.
   Active panel:    sharp + bright + expanded.
   Auto-cycles every 3.2s. Dots for manual control.
   ═════════════════════════════════════════════════ */

/* ── Section shell ── */
.hero.hero-showcase {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border-bottom: 4px solid var(--primary);
}

/* ── Track: 4 panels in a row ── */
.showcase-track {
  display: flex;
  flex: 1;
  width: 100%;
  height: calc(100% - 64px);
}

/* ── Each panel ── */
.showcase-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 18%;
  transition:
    flex       0.75s cubic-bezier(.77,0,.18,1),
    filter     0.65s ease,
    opacity    0.55s ease;
  filter: blur(3px) brightness(0.4);
  opacity: 0.65;
}
.showcase-panel.active {
  flex: 1 1 46%;
  filter: blur(0px) brightness(1);
  opacity: 1;
}
.showcase-panel:not(.active):hover {
  filter: blur(1.5px) brightness(0.58);
  opacity: 0.82;
}

/* ── Panel image ── */
.sp-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.05);
  transition: transform 0.75s cubic-bezier(.77,0,.18,1);
}
.showcase-panel.active .sp-img img { transform: scale(1); }

/* Bottom vignette on every panel */
.sp-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.20) 45%,
    rgba(0,0,0,0.0)  100%
  );
  pointer-events: none;
}

/* ── Label (visible only on active panel) ── */
.sp-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity   0.45s ease 0.28s,
    transform 0.45s cubic-bezier(.22,.68,0,1.2) 0.28s;
  pointer-events: none;
}
.showcase-panel.active .sp-label {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-model {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(200,24,30,0.15);
  border: 1px solid rgba(200,24,30,0.45);
  border-radius: 4px;
  padding: 2px 9px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 2px;
}
.sp-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.sp-cap {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.sp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  transition: gap 0.25s ease, background 0.25s ease;
}
.sp-link:hover { background: var(--primary-dark); gap: 11px; }

/* ── Auto-progress bar (red line sweeps across active panel) ── */
.showcase-panel.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 0 2px 0 0;
  width: 0%;
  animation: sp-progress 3.2s linear forwards;
  z-index: 10;
}
@keyframes sp-progress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Bottom bar ── */
.showcase-bar {
  height: 64px;
  background: rgba(10,10,14,0.96);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 20px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sb-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.sb-brand strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.sb-brand span {
  font-size: 0.64rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}

/* Progress dots */
.sb-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.35s cubic-bezier(.22,.68,0,1.3), border-radius 0.35s ease;
}
.sd-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 4px;
}
.sd-dot:hover:not(.active) { background: rgba(255,255,255,0.45); }

/* CTA */
.sb-cta {
  flex-shrink: 0;
  padding: 8px 20px !important;
  font-size: 0.84rem !important;
}

/* Scroll cue position on showcase */
.hero.hero-showcase .kb-scroll-cue {
  bottom: 76px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero.hero-showcase   { height: 80vh; }
  .sp-name              { font-size: 1.2rem; }
  .showcase-bar         { padding: 0 20px; }
  .sb-brand span        { display: none; }
}
@media (max-width: 768px) {
  .hero.hero-showcase   { height: auto; min-height: 100svh; }
  .showcase-track       { flex-direction: column; height: auto; }
  .showcase-panel       { flex: 0 0 0px; height: 0; opacity: 0;
                          filter: none; overflow: hidden;
                          transition: height 0.6s cubic-bezier(.77,0,.18,1), opacity 0.4s ease; }
  .showcase-panel.active{ flex: none; height: calc(100svh - 56px); opacity: 1; }
  .showcase-bar         { height: 56px; padding: 0 16px; }
  .sb-brand             { display: none; }
  .sb-cta               { padding: 7px 14px !important; font-size: 0.8rem !important; }
  .hero.hero-showcase .kb-scroll-cue { bottom: 66px; }
}
@media (max-width: 480px) {
  .sp-name { font-size: 1.05rem; }
  .sp-cap  { display: none; }
}

/* ══════════ OLD hero (non-banner) kept intact ══
   (hero-img-card, hero-main-img, hero-img-accent)
   still defined below for other pages if reused  ══════════ */

/* Shared hero layout rules ──────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Floating background shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}
.shape-1 { width:220px; height:220px; top:-50px;  right:-40px;  animation-duration:8s; }
.shape-2 { width:120px; height:120px; bottom:20px; right:22%;    animation-duration:6s; animation-delay:1s; }
.shape-3 { width:70px;  height:70px;  top:30%;     left:10%;     animation-duration:9s; animation-delay:2s; }
.shape-4 { width:180px; height:180px; bottom:-60px;left:-40px;   animation-duration:10s;animation-delay:0.5s; }

/* Hero badge */
.hero-badge-wrap { margin-bottom: 10px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 30px;
  animation: pulse-ring 2.4s ease infinite;
}

/* Typewriter */
.hero-title {
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: 800;
}
.typewriter-wrap { display: inline-block; min-width: 200px; }
.typewriter { color: #ff4d52; font-weight: 800; }
.cursor {
  display: inline-block;
  color: #ff4d52;
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: 18px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn-lg { padding: 12px 28px; font-size: 0.93rem; }

/* Stats row */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: #ff4d52; line-height: 1; }
.stat-label  { font-size: 0.68rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* Hero visual right side */
.hero-visual { position: relative; z-index: 3; }

/* Floating badges on banner */
.hero-float-badge {
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.hero-float-badge i { color: var(--primary); }

/* Legacy card styles (if used on other pages) */
.hero-img-accent {
  position: absolute;
  top: 24px; left: 24px;
  width: 100%; height: 100%;
  background: var(--primary);
  border-radius: 20px;
  opacity: 0.12;
  z-index: 0;
}
.hero-img-card {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(200,24,30,0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-img-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(200,24,30,0.24);
}
.hero-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ══════════ MARQUEE STRIP ══════════ */
.marquee-strip {
  background: var(--primary);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 22px;
}
.marquee-item i { font-size: 1rem; opacity: 0.9; }
.marquee-sep { color: rgba(255,255,255,0.5); font-size: 0.7rem; }

/* ══════════ PRODUCTS SWIPER ══════════ */
.products-swiper {
  padding-bottom: 44px !important;
}
.products-swiper .swiper-slide {
  height: auto;
}
/* Each card inside swiper needs full height */
.products-swiper .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Override: swiper cards use translateY only (no tilt via CSS – JS handles it) */
  transition:
    transform    0.5s cubic-bezier(.22,.68,0,1.15),
    box-shadow   0.4s ease,
    border-color 0.3s ease;
}
.products-swiper .product-card-body { flex: 1; }

/* Swiper nav row */
.swiper-nav-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.swiper-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(200,24,30,0.15);
}
.swiper-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(200,24,30,0.35);
}

/* Pagination bullets */
.swiper-pagination-bullet {
  background: #ddd !important;
  opacity: 1 !important;
  width: 8px !important; height: 8px !important;
  transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  width: 28px !important;
  border-radius: 4px !important;
}

/* ══════════ WHY CARDS ══════════ */
.why-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.4s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(200,24,30,0.14);
}
.why-card-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  transition: width 0.4s ease;
  border-radius: 0 2px 0 0;
}
.why-card:hover .why-card-line { width: 100%; }

.why-icon {
  animation: none;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.4), background 0.3s ease;
}
.why-card:hover .why-icon {
  transform: scale(1.2) rotate(-8deg);
  background: var(--primary);
  color: #fff;
}
.why-card:hover .why-icon i { color: #fff; }

/* ══════════ INDUSTRIES GRID ══════════ */
.industry-card {
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.4),
              background 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(200,24,30,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.industry-card:hover::after { opacity: 1; }
.industry-card:hover {
  transform: translateY(-8px) scale(1.04);
  background: var(--primary);
  box-shadow: 0 12px 32px rgba(200,24,30,0.25);
}
.industry-card i {
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.5), color 0.3s ease;
}
.industry-card:hover i {
  transform: scale(1.25) rotate(-12deg);
  color: #fff;
}
.industry-card:hover p { color: #fff; }

/* ══════════ PROCESS TIMELINE ══════════ */
.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin-top: 48px;
}
/* Continuous connecting line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #fde8e9 100%);
  z-index: 0;
  border-radius: 2px;
}
.process-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pn-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(200,24,30,0.15);
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.4),
              background 0.3s ease,
              color 0.3s ease;
  position: relative;
  z-index: 2;
}
.process-node:hover .pn-icon {
  transform: scale(1.18) rotate(-8deg);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(200,24,30,0.35);
}
/* Animated dot on line */
.pn-line {
  display: none; /* handled by ::before on parent */
}
.pn-content { padding: 0 12px; }
.pn-content h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.pn-content p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* Stagger animation for process nodes */
.process-node {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.68,0,1.2);
}
.process-node:nth-child(1) { transition-delay: 0ms; }
.process-node:nth-child(2) { transition-delay: 100ms; }
.process-node:nth-child(3) { transition-delay: 200ms; }
.process-node:nth-child(4) { transition-delay: 300ms; }
.process-node:nth-child(5) { transition-delay: 400ms; }
.process-node.visible { opacity: 1; transform: translateY(0); }

/* ══════════ CTA BANNER ══════════ */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}
/* Animated shimmer on CTA */
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: cta-shimmer 3.5s ease-in-out infinite;
}
@keyframes cta-shimmer { 0% { left:-100%; } 100% { left:200%; } }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-text h2 { text-align: left; margin-bottom: 8px; }
.cta-text p  { text-align: left; margin-bottom: 0; }
.cta-btns    { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ══════════ TESTIMONIALS SWIPER ══════════ */
.testimonials-swiper {
  padding-bottom: 52px !important;
}
.testimonials-swiper .swiper-slide {
  height: auto;
  padding: 8px 4px;
}
.testimonial-card {
  height: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 4px 28px rgba(200,24,30,0.08);
  border: 1px solid #f0d0d1;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(200,24,30,0.16);
}
.tcard-quote {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 14px;
  line-height: 1;
}
.tcard-stars {
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200,24,30,0.3);
}
.author-name    { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.author-company { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .hero-title { font-size: 2.4rem; }
  .process-timeline::before { left: 5%; right: 5%; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text h2, .cta-text p { text-align: center; }
  .cta-btns { justify-content: center; }
}
@media (max-width: 768px) {
  .hero.hero-banner { min-height: 100svh; padding: 100px 0 80px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.6rem; }
  .process-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .process-timeline::before { display: none; }
  .process-node { flex-direction: row; text-align: left; gap: 18px; align-items: flex-start; }
  .pn-icon { flex-shrink: 0; margin-bottom: 0; }
  .badge-top, .badge-bottom { display: none; }
  .swiper-nav-row { gap: 10px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); display: grid; gap: 14px; }
  .typewriter-wrap { min-width: 160px; }
  .marquee-item { font-size: 0.82rem; padding: 0 14px; }
}


/* =====================================================
   NEW SECTIONS – Animations
   (About, Services, Featured Projects)
   ===================================================== */

/* ── HOME ABOUT image wrap ── */
.home-about-img-wrap {
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.2);
}
.home-about-img-wrap:hover { transform: translateY(-6px); }

/* Badge & cert chip bounce in when section visible */
.home-about-badge,
.home-about-cert {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.68,0,1.4);
}
.about-section-visible .home-about-badge {
  opacity: 1;
  transform: scale(1);
  transition-delay: 400ms;
}
.about-section-visible .home-about-cert {
  opacity: 1;
  transform: scale(1);
  transition-delay: 550ms;
}

/* ── SERVICE CARDS ── */
.service-card {
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(200,24,30,0.15);
}

/* Icon spin-pop on hover */
.sc-icon-wrap {
  transition: background 0.3s ease,
              color 0.3s ease,
              transform 0.4s cubic-bezier(.22,.68,0,1.5);
}
.service-card:hover .sc-icon-wrap {
  background: var(--primary);
  color: #fff;
  transform: scale(1.15) rotate(-10deg);
}

/* ── PROJECT CARDS ── */
.project-card {
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 18px 44px rgba(200,24,30,0.15);
}

/* Tag pill pops on card hover */
.project-card:hover .proj-tag {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(200,24,30,0.45);
}
.proj-tag {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── ABOUT section stagger reveal ──
   Items with .reveal-up inside #about-section
   already use the global .reveal-up observer.
   The img-wrap uses .reveal-right (already global).
   No extra class needed — wired via JS observer.     */

/* ── SERVICE / PROJECT stagger override ──
   .stagger-card already handles these via --i var.
   Extra smoothing for larger cards:                  */
.service-card.stagger-card,
.project-card.stagger-card {
  transition:
    opacity 0.6s ease,
    transform 0.65s cubic-bezier(.22,.68,0,1.2),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* ── Divider draw – left-aligned variant ──
   (Used in about section where divider is left-aligned) */
.home-about-content .divider {
  margin-left: 0;
  width: 0;
}
/* JS will trigger draw-line animation on scroll */

/* ── About stat numbers counter animation ──
   Numbers handled by JS animateCounter,
   but add a subtle pop entrance:             */
.has-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.68,0,1.3);
}
.about-stats-visible .has-item:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0ms;   }
.about-stats-visible .has-item:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 120ms; }
.about-stats-visible .has-item:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: 240ms; }

/* ── Process timeline – already animated,
   keep existing .process-node rules intact  ── */

/* ── Responsive overrides for animations ── */
@media (max-width: 768px) {
  .home-about-badge,
  .home-about-cert {
    /* Always visible on mobile – no hover reveal needed */
    opacity: 1;
    transform: scale(1);
    transition: none;
  }
  .about-section-visible .home-about-badge,
  .about-section-visible .home-about-cert {
    transition-delay: 0ms;
  }
}

/* ══════════════════════════════════════════════════
   IMAGE ANIMATIONS
   ═════════════════════════════════════════════════ */

/* ── Image Reveal – mask slides away ── */
.img-reveal-wrap {
  position: relative;
  overflow: hidden;
  display: block;
}
.img-reveal-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateX(0%);
  transition: transform 0.85s cubic-bezier(.77,0,.18,1);
  transform-origin: right center;
  z-index: 2;
}
.img-reveal-wrap.visible::after {
  transform: translateX(101%);
}
.img-reveal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 0.85s cubic-bezier(.77,0,.18,1);
}
.img-reveal-wrap.visible img {
  transform: scale(1);
}

/* ── Clip-path Reveal variants ── */

/* Rectangle expands from center */
.clip-rect {
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 0.9s cubic-bezier(.77,0,.18,1);
}
.clip-rect.visible {
  clip-path: inset(0 0% 0 0%);
}

/* Circle expands from center */
.clip-circle {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.9s cubic-bezier(.22,.68,0,1.2);
}
.clip-circle.visible {
  clip-path: circle(75% at 50% 50%);
}

/* Diagonal wipe – top-left to bottom-right */
.clip-diagonal {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.85s cubic-bezier(.77,0,.18,1);
}
.clip-diagonal.visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ── Image Parallax ──
   .parallax-img wraps the <img>.
   JS reads scroll position and applies translateY.
   The wrap clips overflow so image doesn't bleed.   */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-img {
  position: absolute;
  inset: -12% 0;          /* oversized so parallax shift stays in-frame */
  will-change: transform;
}
.parallax-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About image gets parallax treatment */
.home-about-img-wrap {
  position: relative;
  overflow: hidden;
}
.home-about-img-wrap img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ══════════════════════════════════════════════════
   BEFORE / AFTER SLIDER
   ═════════════════════════════════════════════════ */

.ba-section { background: var(--light-bg); }

.ba-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 48px auto 0;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  border: 2px solid var(--border);
}

/* ── Before layer (full width, sits behind) ── */
.ba-before {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── After layer (clipped by JS inline width) ── */
.ba-after {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 50%;           /* JS updates this */
  overflow: hidden;
  transition: width 0.02s linear;
}
.ba-after img {
  width: 860px;         /* fixed to full slider width so it doesn't scale */
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Labels ── */
.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}
.ba-label-before {
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.ba-label-after {
  right: 20px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200,24,30,0.4);
}

/* ── Drag handle ── */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;            /* JS updates this */
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: col-resize;
  touch-action: none;
}
.ba-handle-line {
  flex: 1;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.ba-handle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(200,24,30,0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-handle-btn i {
  font-size: 0.7rem;
  color: var(--primary);
}
.ba-handle:hover .ba-handle-btn,
.ba-handle.dragging .ba-handle-btn {
  transform: scale(1.15);
  box-shadow: 0 6px 28px rgba(200,24,30,0.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ba-slider-wrap { height: 280px; }
  .ba-after img   { width: 100vw; }
}
@media (max-width: 480px) {
  .ba-slider-wrap { height: 220px; border-radius: var(--radius); }
}

/* ══════════════════════════════════════════════════
   TEXT ANIMATIONS
   ─────────────────────────────────────────────────
   1. Word Reveal  – each word clips upward one by one
   2. Char Reveal  – each letter fades + rises in sequence
   3. word-reveal-title – used on CTA heading
   ═════════════════════════════════════════════════ */

/* ── 1. WORD REVEAL ──────────────────────────────
   Wrap each word in <span class="wr-word">
   JS splits text into spans automatically via
   data-word-reveal attribute.
   Each span clips from bottom upward.              */
@keyframes word-up {
  from {
    opacity: 0;
    transform: translateY(110%);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

[data-word-reveal] {
  overflow: hidden;
}
.wr-line {
  overflow: hidden;
  display: block;
}
.wr-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: none;   /* driven by animation not transition */
}
.wr-word.animate {
  animation: word-up 0.6s cubic-bezier(.22,.68,0,1.2) forwards;
  /* delay set by JS via style="animation-delay:Xms" */
}

/* ── word-reveal-title (CTA section heading) ── */
.word-reveal-title {
  /* text-align preserved from parent */
}

/* ── 2. CHARACTER REVEAL ─────────────────────────
   Each letter in a [data-char-reveal] element
   appears one by one with a small fade+rise.
   JS splits text into <span class="cr-char">.      */
@keyframes char-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

[data-char-reveal] .cr-char {
  display: inline-block;
  opacity: 0;
  white-space: pre;   /* preserve spaces */
}
[data-char-reveal] .cr-char.animate {
  animation: char-in 0.4s cubic-bezier(.22,.68,0,1.2) forwards;
}

/* ── 3. SECTION EYEBROW – slide in from left ── */
.section-eyebrow[data-word-reveal],
.section-eyebrow {
  overflow: visible;
}

/* ── Prefers reduced motion: disable all text anims ── */
@media (prefers-reduced-motion: reduce) {
  .wr-word,
  [data-char-reveal] .cr-char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════
   TECHNICAL GRID CANVAS
   Sits above the banner image, drawn by JS canvas.
   Semi-transparent so banner remains visible.
   ═════════════════════════════════════════════════ */
.tech-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.38;   /* subtle – banner shows clearly through */
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .tech-grid-canvas { display: none; }
}
