/* ══════════════════════════════════════════════════
   Explinary&Animation.css — M PRO9
   Identity: Signal to Screen
   Palette: M PRO9 logo navy + cyan, NOT near-black
   Differs from 3D page: navy ground, vertical services,
   filmstrip reel, SVG timeline, no horizontal pin
══════════════════════════════════════════════════ */

/* ─── Page tokens ─── */
:root {
  --ea-bg:       #0b1929;
  --ea-navy:     #173f64;
  --ea-navy-mid: #0f2d4a;
  --ea-cyan:     #319dcf;
  --ea-cyan-dim: rgba(49, 157, 207, 0.11);
  --ea-cyan-glow:rgba(49, 157, 207, 0.22);
  --ea-text:     #d8eaf8;
  --ea-muted:    rgba(216, 234, 248, 0.48);
  --ea-border:   rgba(49, 157, 207, 0.18);
}


/* ════════════════════════════════
   HERO — kinetic type, no video
════════════════════════════════ */
.ea-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #071422 0%, #0f2d4a 55%, #173f64 100%);
  padding-bottom: 80px;
}

/* Background layers */
.ea-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Perspective grid */
.ea-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49,157,207,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49,157,207,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Canvas for floating particles */
.ea-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  /* z-index: 2 places the canvas ABOVE the overlay (z-index:1) inside
     .ea-hero-bg, so particles remain visible on mobile where the overlay
     becomes a flat 82% dark. The canvas is still below .ea-hero-content
     (z-index:2 on .ea-hero) because .ea-hero-bg itself is z-index:0. */
  z-index: 2;
}

/* ── Full-bleed background video ── */
.ea-hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.28;
  mix-blend-mode: lighten;
}

/* Cinematic overlay: heavy left (text), light right (video shows) */
.ea-hero-vid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(7, 20, 34, 0.92) 0%,
      rgba(7, 20, 34, 0.68) 45%,
      rgba(7, 20, 34, 0.25) 100%);
}

/* ── Viewport-spanning registration corners ── */
.ea-vp-corners {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 4;
}

.ea-vp-corners .ehvc--tl { top: 0; left: 0; }
.ea-vp-corners .ehvc--tr { top: 0; right: 0; }
.ea-vp-corners .ehvc--bl { bottom: 0; left: 0; }
.ea-vp-corners .ehvc--br { bottom: 0; right: 0; }

/* REC badge — top-right of viewport */
.ea-vp-badge {
  position: absolute;
  top: 36px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Courier New', monospace;
  font-size: 0.50rem;
  letter-spacing: 0.28em;
  color: var(--ea-cyan);
  pointer-events: none;
}

/* SVG waveform — drawn by GSAP */
.ea-wave-svg {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
}

.ea-wave-path {
  stroke: var(--ea-cyan);
  stroke-width: 1.5;
  opacity: 0.45;
}

/* ── Hero content ── */
.ea-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.ea-eyebrow {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ea-cyan);
  margin-bottom: 28px;
  opacity: 0;
  animation: ea-fade-up 0.6s ease forwards 0.15s;
}

@keyframes ea-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ea-hero-h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(4.8rem, 14vw, 14rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--ea-text);
  margin: 0 0 40px;
  max-width: 18ch;
}

/* Each scramble line — inline-block for per-line effect */
.ea-hline {
  display: block;
}

/* Scramble chars injected by JS: monospace glyph flicker */
.ea-scr-char {
  display: inline-block;
  color: inherit;
  transition: color 0.04s;
}

.ea-scr-char.scrambling {
  color: var(--ea-cyan);
}

.ea-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.70;
  color: var(--ea-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Hero split — left text / right video ── */
.ea-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.ea-hero-left { min-width: 0; }

.ea-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video frame with registration-corner treatment */
.ea-hvid-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(49, 157, 207, 0.28);
  background: #071422;
  overflow: hidden;
}

.ea-hvid-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.ehvc {
  position: absolute;
  width: 20px;
  height: 20px;
  display: block;
}

.ehvc--tl { top: -1px; left: -1px;  border-top:    2px solid var(--ea-cyan); border-left:  2px solid var(--ea-cyan); }
.ehvc--tr { top: -1px; right: -1px; border-top:    2px solid var(--ea-cyan); border-right: 2px solid var(--ea-cyan); }
.ehvc--bl { bottom: -1px; left: -1px;  border-bottom: 2px solid var(--ea-cyan); border-left:  2px solid var(--ea-cyan); }
.ehvc--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ea-cyan); border-right: 2px solid var(--ea-cyan); }

/* PREVIEW badge */
.ea-hvid-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.50rem;
  letter-spacing: 0.24em;
  color: var(--ea-cyan);
  background: rgba(7, 20, 34, 0.82);
  padding: 4px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hvb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ea-cyan);
  flex-shrink: 0;
  animation: ea-blink 1.8s ease-in-out infinite;
}

@keyframes ea-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.18; }
}

.ea-hvid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inner vignette */
.ea-hvid-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(7, 20, 34, 0.42) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Hero buttons */
.ea-btn-primary {
  background: var(--ea-cyan) !important;
  border-color: var(--ea-cyan) !important;
  color: #071422 !important;
  font-weight: 700;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ea-btn-primary:hover {
  background: #3aaedf !important;
  border-color: #3aaedf !important;
  box-shadow: 0 0 28px rgba(49, 157, 207, 0.40);
}

.ea-btn-ghost {
  border-color: rgba(216, 234, 248, 0.30) !important;
  color: var(--ea-text) !important;
  transition: background 0.25s, border-color 0.25s;
}

.ea-btn-ghost:hover {
  background: rgba(216, 234, 248, 0.07) !important;
  border-color: rgba(216, 234, 248, 0.50) !important;
}

/* ── Hero stats strip ── */
.ea-hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(49, 157, 207, 0.15);
  background: rgba(7, 20, 34, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 0;
}

.ea-hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 clamp(28px, 5vw, 64px);
}

.ea-hstat-num {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ea-text);
  line-height: 1;
}

.ea-hstat-lbl {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ea-cyan);
  opacity: 0.75;
}

.ea-hstat-div {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(49, 157, 207, 0.22);
  flex-shrink: 0;
}


/* ════════════════════════════════
   TICKER
════════════════════════════════ */
.ea-ticker {
  background: var(--ea-navy-mid);
  border-top: 1px solid var(--ea-border);
  border-bottom: 1px solid var(--ea-border);
  padding: 12px 0;
  overflow: hidden;
}

.ea-ticker-inner { overflow: hidden; white-space: nowrap; }

.ea-ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ea-ticker-run 40s linear infinite;
  will-change: transform;
}

.ea-ticker-track span {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 234, 248, 0.38);
  padding: 0 18px;
}

.etick-sep {
  color: var(--ea-cyan) !important;
  opacity: 0.55;
  padding: 0 4px !important;
}

@keyframes ea-ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ════════════════════════════════
   SECTION HEADERS
════════════════════════════════ */
.ea-sec-hd {
  padding-bottom: 60px;
}

.ea-sec-hd .section-label {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ea-cyan);
  margin-bottom: 14px;
}

.ea-sec-hd h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.040em;
  color: var(--ea-text);
  margin: 0;
}

/* Dark section variant (on light-ish navy bg) */
.ea-sec-hd--dark .section-label { color: var(--ea-cyan); }
.ea-sec-hd--dark h2 { color: #0b1929; }

/* Light text variant (on dark bg) */
.ea-sec-hd--light .section-label { color: var(--ea-cyan); }
.ea-sec-hd--light h2 { color: var(--ea-text); }


/* ════════════════════════════════
   FILMSTRIP REEL
════════════════════════════════ */
.ea-reel {
  background: var(--ea-bg);
  padding: 100px 0 0;
}

.ea-reel .container { padding-bottom: 0; }

/* Film perforations — SVG data URI creates rectangular holes */
.ea-reel-perf {
  height: 28px;
  background-color: #09182a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='28'%3E%3Crect x='8' y='7' width='16' height='14' rx='2' fill='%230b1929'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 center;
  position: relative;
  z-index: 2;
}

.ea-reel-perf--top { box-shadow: 0 4px 16px rgba(0,0,0,0.45); }
.ea-reel-perf--btm { box-shadow: 0 -4px 16px rgba(0,0,0,0.45); }

/* The scrolling strip */
.ea-reel-wrap {
  overflow: hidden;
  background: #09182a;
  cursor: grab;
}

.ea-reel-wrap:active { cursor: grabbing; }

.ea-reel-strip {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  will-change: transform;
}

.ea-reel-cell {
  position: relative;
  flex-shrink: 0;
  width: clamp(260px, 28vw, 380px);
  height: clamp(180px, 20vw, 260px);
  overflow: hidden;
  margin: 0;
}

.ea-reel-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.72) brightness(0.78);
  transition: filter 0.45s ease, transform 0.55s ease;
}

.ea-reel-cell:hover img {
  filter: saturate(0.95) brightness(0.92);
  transform: scale(1.04);
}

/* Frame badge */
.ea-reel-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: 'Courier New', monospace;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ea-cyan);
  background: rgba(11, 25, 41, 0.80);
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}

/* Caption */
.ea-reel-cell figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(11,25,41,0.88) 0%, transparent 100%);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ea-text);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ea-reel-cell:hover figcaption { opacity: 1; }


/* ════════════════════════════════
   SERVICES — vertical alternating
   (Completely different from 3D page)
════════════════════════════════ */
.ea-services {
  background: #ddeeff;  /* Inverted — light section for contrast */
  padding: 100px 0 40px;
}

.ea-services .ea-sec-hd--dark h2 {
  color: var(--ea-navy);
}

.ea-svc-list {
  display: flex;
  flex-direction: column;
}

.ea-svc-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-top: 1px solid rgba(23, 63, 100, 0.12);
}

.ea-svc-item--alt {
  direction: rtl;
}

.ea-svc-item--alt > * {
  direction: ltr;
}

/* Image panel */
.ea-svc-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ea-navy);
}

/* The clip-path reveal is FROM THE BOTTOM — different from 3D page (left/right) */
.js-enabled .ea-svc-img-wrap {
  clip-path: inset(100% 0 0 0);
}

.ea-svc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) brightness(0.82);
  transition: filter 0.55s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.ea-svc-item:hover .ea-svc-img-wrap img {
  filter: saturate(0.92) brightness(0.92);
  transform: scale(1.03);
}

/* Body panel */
.ea-svc-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 88px) clamp(36px, 5.5vw, 72px);
  background: #ddeeff;
  overflow: hidden;
}

/* Ghost letter watermark — LARGE, colorful, distinctive */
.svc-ghost-ltr {
  position: absolute;
  bottom: -0.12em;
  right: -0.06em;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(9rem, 20vw, 24rem);
  line-height: 1;
  color: rgba(23, 63, 100, 0.055);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ea-svc-num {
  position: relative;
  z-index: 1;
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.60rem;
  letter-spacing: 0.26em;
  color: var(--ea-cyan);
  margin-bottom: 18px;
}

.ea-svc-body h3 {
  position: relative;
  z-index: 1;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.036em;
  color: var(--ea-navy);
  margin: 0 0 20px;
}

.ea-svc-body p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.94rem, 1.4vw, 1.04rem);
  line-height: 1.72;
  color: rgba(23, 63, 100, 0.72);
  max-width: 440px;
  margin-bottom: 26px;
}

/* Detail list */
.svc-detail-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-detail-list li {
  font-size: 0.86rem;
  color: rgba(23, 63, 100, 0.62);
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-detail-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ea-cyan);
  flex-shrink: 0;
}

/* Service body initial state for GSAP */
.js-enabled .ea-svc-body h3,
.js-enabled .ea-svc-body p,
.js-enabled .ea-svc-body .svc-detail-list {
  opacity: 0;
  transform: translateY(20px);
}

/* Mobile services */
@media (max-width: 900px) {
  .ea-svc-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    direction: ltr;
  }

  .ea-svc-item--alt { direction: ltr; }
  .ea-svc-item--alt > * { direction: ltr; }

  .ea-svc-img-wrap { height: 280px; }
  .ea-svc-body { padding: 44px 24px 52px; }
  .svc-ghost-ltr { font-size: 7rem; }

  /* Mobile now uses the same clip-path curtain reveal as desktop
     (driven from ea-gsap.js) instead of the base clip-path:none — see
     initServices() mobile branch. */
}


/* ════════════════════════════════
   PROCESS — SVG animated timeline
════════════════════════════════ */
.ea-process {
  background: var(--ea-navy);
  padding: 100px 0 110px;
}

/* SVG timeline strip */
.ea-proc-timeline {
  margin-bottom: 0;
  padding: 0 0 40px;
}

.ea-proc-svg {
  width: 100%;
  height: 40px;
  display: block;
}

.ea-proc-line {
  stroke: var(--ea-cyan);
  stroke-width: 1.5;
  opacity: 0.40;
}

.ea-proc-dot {
  fill: var(--ea-navy);
  stroke: var(--ea-cyan);
  stroke-width: 2;
  opacity: 0;
}

/* Steps grid — 4 cols on desktop */
.ea-proc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.ea-proc-step {
  padding: 36px 28px 32px;
  border-top: 2px solid transparent;
  transition: border-color 0.35s ease;
}

.ea-proc-step:hover {
  border-top-color: var(--ea-cyan);
}

.eps-num {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 6vw, 6rem);
  letter-spacing: -0.04em;
  color: rgba(49, 157, 207, 0.09);
  line-height: 1;
  margin-bottom: -12px;
}

/* Staircase offset — each step sits progressively lower */
.ea-proc-step:nth-child(1) { padding-top: 28px; }
.ea-proc-step:nth-child(2) { padding-top: 48px; }
.ea-proc-step:nth-child(3) { padding-top: 68px; }
.ea-proc-step:nth-child(4) { padding-top: 88px; }

.ea-proc-step h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.28;
  color: var(--ea-text);
  margin: 0 0 14px;
}

.ea-proc-step p {
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--ea-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .ea-proc-steps { grid-template-columns: 1fr 1fr; }
  .ea-proc-timeline { display: none; }
}

@media (max-width: 520px) {
  .ea-proc-steps { grid-template-columns: 1fr; }
}


/* ════════════════════════════════
   USE CASES
════════════════════════════════ */
.ea-cases {
  background: var(--ea-bg);
  padding: 100px 0 112px;
  border-top: 1px solid rgba(49, 157, 207, 0.08);
}

/* Editorial row list — visually different from the 4-col process grid */
.ea-cases-list {
  display: flex;
  flex-direction: column;
}

.ea-case-row {
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  align-items: start;
  gap: 0 32px;
  padding: 36px 0;
  border-top: 1px solid rgba(49, 157, 207, 0.12);
  transition: background 0.25s ease;
  cursor: default;
}

.ea-case-row:last-child {
  border-bottom: 1px solid rgba(49, 157, 207, 0.12);
}

.ea-case-row:hover {
  background: rgba(49, 157, 207, 0.04);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.cr-num {
  font-family: 'Courier New', monospace;
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  color: rgba(49, 157, 207, 0.45);
  padding-top: 6px;
  user-select: none;
}

.cr-body { min-width: 0; }

.cr-body h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.034em;
  color: var(--ea-text);
  margin: 0 0 12px;
  transition: color 0.25s ease;
}

.ea-case-row:hover .cr-body h3 {
  color: rgba(216, 234, 248, 1);
}

.cr-body p {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--ea-muted);
  margin: 0;
  max-width: 660px;
}

.cr-arrow {
  font-size: 1.3rem;
  color: rgba(49, 157, 207, 0.30);
  padding-top: 4px;
  text-align: right;
  transition: color 0.25s ease, transform 0.25s ease;
  display: block;
  line-height: 1;
}

.ea-case-row:hover .cr-arrow {
  color: var(--ea-cyan);
  transform: translate(3px, -3px);
}


/* ════════════════════════════════
   CTA
════════════════════════════════ */
.ea-cta {
  background: linear-gradient(135deg, #0a1828 0%, #173f64 50%, #0e2b48 100%);
  padding: clamp(88px, 13vw, 144px) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative cyan glow blob */
.ea-cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,157,207,0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.ea-cta::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,157,207,0.10) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  pointer-events: none;
}

/* CTA two-column: text left, contact sheet right */
.ea-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.ea-cta-inner {
  position: relative;
  z-index: 1;
}

/* Right: animated motion-brief card */
.ea-cta-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ea-brief-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #030a12;
  border: 1px solid rgba(49, 157, 207, 0.22);
  padding: 36px 32px 28px;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

/* CRT horizontal scan lines */
.ebc-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(49, 157, 207, 0.018) 0px,
    rgba(49, 157, 207, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Film-leader countdown widget */
.ebc-leader {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.ebc-svg {
  width: 120px;
  height: 120px;
  display: block;
}

/* Progress ring spins via CSS */
.ebc-prog-ring {
  animation: ebc-ring 3s linear infinite;
  transform-origin: 60px 60px;
}

@keyframes ebc-ring {
  from { stroke-dashoffset: 301.6; }
  to   { stroke-dashoffset: 0; }
}

/* Countdown number — JS cycles 03→02→01→03 */
.ebc-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -0.05em;
  color: var(--ea-cyan);
  z-index: 1;
  transition: opacity 0.18s ease;
}

/* Specs table */
.ebc-specs {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(49, 157, 207, 0.14);
  margin-bottom: 22px;
}

.ebc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(49, 157, 207, 0.06);
}

.ebc-k {
  font-size: 0.50rem;
  letter-spacing: 0.24em;
  color: rgba(49, 157, 207, 0.42);
  flex-shrink: 0;
}

.ebc-v {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(216, 234, 248, 0.78);
  text-align: right;
}

/* Status row with inline progress bar */
.ebc-v--bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ebc-bar {
  width: 56px;
  height: 2px;
  background: rgba(49, 157, 207, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.ebc-fill {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--ea-cyan);
  animation: ebc-pulse 2.2s ease-in-out infinite;
}

@keyframes ebc-pulse {
  0%, 100% { opacity: 1; width: 72%; }
  50%       { opacity: 0.35; width: 68%; }
}

.ebc-stat-lbl {
  font-size: 0.46rem;
  letter-spacing: 0.22em;
  color: var(--ea-cyan);
  opacity: 0.72;
}

/* Approved checkmark — green accent */
.ebc-ok {
  color: rgba(52, 211, 153, 0.85) !important;
}

/* Export format chips */
.ebc-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ebc-tags span {
  font-size: 0.46rem;
  letter-spacing: 0.20em;
  color: rgba(49, 157, 207, 0.48);
  background: rgba(49, 157, 207, 0.05);
  border: 1px solid rgba(49, 157, 207, 0.14);
  padding: 4px 10px;
}

.ea-cta-over {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(49, 157, 207, 0.72);
  margin-bottom: 20px;
}

.ea-cta h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.046em;
  color: var(--ea-text);
  margin: 0 0 52px;
}

.ea-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ea-btn-cta-primary {
  background: var(--ea-cyan) !important;
  border-color: var(--ea-cyan) !important;
  color: #071422 !important;
  font-weight: 700;
  padding: 15px 40px;
  transition: background 0.25s, box-shadow 0.25s;
}

.ea-btn-cta-primary:hover {
  background: #3aaedf !important;
  border-color: #3aaedf !important;
  box-shadow: 0 0 32px rgba(49, 157, 207, 0.45);
}

.ea-btn-cta-ghost {
  background: transparent !important;
  border-color: rgba(216, 234, 248, 0.30) !important;
  color: var(--ea-text) !important;
  padding: 15px 40px;
  transition: border-color 0.25s, background 0.25s;
}

.ea-btn-cta-ghost:hover {
  border-color: rgba(216, 234, 248, 0.55) !important;
  background: rgba(216, 234, 248, 0.06) !important;
}


/* ════════════════════════════════
   SCROLL REVEAL TARGETS
════════════════════════════════ */
.js-enabled .ea-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .ea-cta-inner > * {
  opacity: 0;
  transform: translateY(28px);
}


/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

/* Tablet: collapse CTA grid, tighten corners */
@media (max-width: 960px) {
  .ea-vp-corners { inset: 16px; }
  .ea-vp-badge   { top: 24px; right: 24px; }

  .ea-cta-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .ea-brief-card { max-width: 100%; }

  .ea-case-row:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    background: none;
  }

  /* Staircase doesn't work well in 2-col → reset */
  .ea-proc-step:nth-child(1),
  .ea-proc-step:nth-child(2),
  .ea-proc-step:nth-child(3),
  .ea-proc-step:nth-child(4) { padding-top: 32px; }
}

@media (max-width: 768px) {
  .ea-hero { padding-bottom: 80px; }
  .ea-hero-h1 { font-size: clamp(3.2rem, 14vw, 6rem); margin-bottom: 28px; }
  .ea-hero-content { padding-top: 80px; }
  .ea-hero-sub { max-width: 100%; }
  .ea-vp-corners { display: none; }
  .ea-vp-badge   { display: none; }
  .ea-hero-stats {
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 0;
  }
  .ea-hstat { padding: 8px 24px; }
  .ea-hstat-div { display: none; }
  .ea-reel { padding-top: 72px; }
  .ea-services { padding-top: 72px; }
  .ea-process { padding: 72px 0 80px; }
  .ea-cases { padding: 72px 0 80px; }
  .ea-sec-hd h2 { font-size: clamp(2rem, 8vw, 3.5rem); }
  .ea-sec-hd { padding-bottom: 40px; }

  .ea-case-row {
    grid-template-columns: 44px 1fr 32px;
    gap: 0 16px;
    padding: 28px 0;
  }

  .cr-body h3 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}

@media (max-width: 600px) {
  .ea-hero-vid-overlay {
    background: rgba(7, 20, 34, 0.82);
  }

  .ea-case-row { grid-template-columns: 40px 1fr; }
  .cr-arrow { display: none; }
}

@media (max-width: 480px) {
  /* .ea-hero-stats used to switch to position:relative + margin-top:auto
     here. In flexbox, an auto margin on ANY flex item overrides
     justify-content entirely for that axis — it absorbs all available
     space itself, which is exactly why .ea-hero-content (the other flex
     item) was pinned to the top instead of centering: nothing was left
     for justify-content:center to distribute. Above 480px .ea-hero-stats
     stays position:absolute (removed from the flex flow), which is why
     centering already worked correctly at 540px and up. Leaving it
     absolute here too restores the same working mechanism. */
  .ea-cta-btns { flex-direction: column; align-items: flex-start; }
  .ea-btn-cta-primary,
  .ea-btn-cta-ghost { padding: 14px 32px; }

  .ea-brief-card { padding: 28px 20px 22px; }
  .ebc-leader { width: 96px; height: 96px; }
  .ebc-svg { width: 96px; height: 96px; }
  .ebc-count { font-size: 2.2rem; }
}


/* ════════════════════════════════
   BUTTON — universal tap target (44 × 44 px min)
════════════════════════════════ */
.btn { min-height: 44px; }


/* ════════════════════════════════
   TOUCH — hover-only content fallbacks
   On touch devices, content hidden behind
   :hover must be permanently visible
════════════════════════════════ */
@media (hover: none) {
  /* Filmstrip: captions always on, image less dark */
  .ea-reel-cell figcaption {
    opacity: 0.88;
  }
  .ea-reel-cell img {
    filter: saturate(0.82) brightness(0.80);
  }
}

/* Desktop-with-touch only: preserve the pre-existing unclipped fallback
   (mobile now gets the real clip-path curtain reveal — see the
   max-width:900px block above and initServices() in ea-gsap.js). */
@media (hover: none) and (min-width: 901px) {
  .js-enabled .ea-svc-img-wrap {
    clip-path: none !important;
  }
}


/* ════════════════════════════════
   1024px — tablet landscape
   Compress staircase + tighten grids
   before the 900/960 full-collapse
════════════════════════════════ */
@media (min-width: 901px) and (max-width: 1024px) {
  .ea-svc-item { min-height: 500px; }

  /* Tighter staircase */
  .ea-proc-step:nth-child(1) { padding-top: 28px; }
  .ea-proc-step:nth-child(2) { padding-top: 40px; }
  .ea-proc-step:nth-child(3) { padding-top: 52px; }
  .ea-proc-step:nth-child(4) { padding-top: 64px; }

  .ea-cta-grid { gap: clamp(40px, 6vw, 80px); }
}


/* ════════════════════════════════
   430px — iPhone 14 Pro Max / large Android
   Reduce h1, tighten padding, shrink card
════════════════════════════════ */
@media (max-width: 430px) {
  /* ── Hero ── */
  .ea-hero-content { padding-top: 72px; }
  .ea-hero-h1 {
    /* clamp scales 41.6px(360) → 49.5px(430). Fits "into motion." safely */
    font-size: clamp(2.6rem, 11.5vw, 3.5rem);
    margin-bottom: 18px;
  }
  .ea-hero-sub {
    font-size: 0.92rem;
    margin-bottom: 30px;
  }
  .hero-btns { gap: 12px; }

  /* ── Stats strip ── */
  .ea-hero-stats { padding: 12px 0; }
  .ea-hstat { padding: 6px 18px; }

  /* ── Sections — floor at 52px (above 48px minimum) ── */
  .ea-sec-hd { padding-bottom: 32px; }
  .ea-reel { padding-top: 52px; }
  .ea-services { padding-top: 52px; }
  .ea-process { padding: 52px 0 60px; }
  .ea-cases { padding: 52px 0 60px; }

  /* ── Service items ── */
  .ea-svc-img-wrap { height: 240px; }
  .ea-svc-body { padding: 36px 20px 44px; }
  .svc-ghost-ltr { font-size: 5rem; }
  .ea-svc-body h3 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }

  /* ── Process — flatten staircase entirely ── */
  .ea-proc-step:nth-child(1),
  .ea-proc-step:nth-child(2),
  .ea-proc-step:nth-child(3),
  .ea-proc-step:nth-child(4) { padding-top: 24px; }
  .ea-proc-step { padding-left: 16px; padding-right: 16px; padding-bottom: 20px; }

  /* ── Use cases ── */
  .ea-case-row { gap: 0 12px; padding: 22px 0; }
  .cr-body h3 { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }

  /* ── CTA brief card ── */
  .ea-brief-card { padding: 26px 20px 20px; }
}


/* ════════════════════════════════
   390px — iPhone 14 / iPhone 15
════════════════════════════════ */
@media (max-width: 390px) {
  .ea-hero-content { padding-top: 64px; }
  /* 11.5vw at 390px = 44.85px — comfortable for "into motion." */
  .ea-hero-h1 { font-size: clamp(2.6rem, 11.5vw, 3.2rem); }

  /* ── Stats strip — tighten further ── */
  .ea-hstat { padding: 6px 14px; }
  .ea-hstat-num { font-size: clamp(1.1rem, 4vw, 1.3rem); }
  .ea-hstat-lbl { letter-spacing: 0.12em; }

  /* ── Service images ── */
  .ea-svc-img-wrap { height: 220px; }
  .ea-svc-body { padding: 28px 18px 36px; }

  /* ── Brief card ── */
  .ebc-leader { width: 88px; height: 88px; }
  .ebc-svg    { width: 88px; height: 88px; }
  .ebc-count  { font-size: 2rem; }
  .ea-brief-card { padding: 22px 16px 18px; }
}


/* ════════════════════════════════
   360px — Small Android / iPhone SE
   11.5vw at 360px = 41.4px → clamp min
   (2.4rem = 38.4px) wins → h1 ≈ 41px
════════════════════════════════ */
@media (max-width: 360px) {
  .ea-hero-content { padding-top: 60px; }
  .ea-hero-h1 {
    font-size: clamp(2.4rem, 11.5vw, 3rem);
    margin-bottom: 14px;
    letter-spacing: -0.04em; /* slightly looser to help "into motion." fit */
  }
  .ea-hero-sub {
    font-size: 0.88rem;
    line-height: 1.62;
    margin-bottom: 26px;
  }

  /* ── Stats strip ── */
  .ea-hstat { padding: 6px 10px; }
  .ea-hstat-num { font-size: 1.05rem; }
  .ea-hstat-lbl { font-size: 0.48rem; letter-spacing: 0.10em; }

  /* ── Service items ── */
  .ea-svc-img-wrap { height: 200px; }
  .ea-svc-body { padding: 24px 16px 32px; }
  .svc-ghost-ltr { font-size: 4rem; }
  .ea-svc-body h3 { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }

  /* ── Process — full override of nth-child staircase ── */
  .ea-proc-step,
  .ea-proc-step:nth-child(1),
  .ea-proc-step:nth-child(2),
  .ea-proc-step:nth-child(3),
  .ea-proc-step:nth-child(4) { padding: 20px 12px 18px; }

  /* ── Brief card ── */
  .ebc-leader { width: 80px; height: 80px; }
  .ebc-svg    { width: 80px; height: 80px; }
  .ebc-count  { font-size: 1.8rem; }
  .ea-brief-card { padding: 20px 14px 16px; }
}


/* ════════════════════════════════
   REDUCED MOTION
   Ensure ALL content is visible when
   the user has prefers-reduced-motion.
   GSAP returns early (line 170 of ea-gsap.js)
   so these CSS rules are the safety net.
════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Generic scroll-reveal targets */
  .js-enabled .ea-reveal,
  .js-enabled .ea-cta-inner > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Service section */
  .js-enabled .ea-svc-img-wrap {
    clip-path: none !important;
  }
  .js-enabled .ea-svc-body h3,
  .js-enabled .ea-svc-body p,
  .js-enabled .ea-svc-body .svc-detail-list {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Process SVG dots (gsap.set scale:0 never reverses) */
  .js-enabled .ea-proc-dot {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  /* Canvas — JS already skips draw loop; dim further in CSS */
  .ea-hero-canvas { opacity: 0.10; }

  /* Ticker — pause CSS scroll animation */
  .ea-ticker-track { animation-play-state: paused; }
}
