/* =========================================================
   EA Graphics — showpiece sections (custom code in Elementor:
   HTML widget / custom CSS). Styles target semantic classes only.
   ========================================================= */

/* ---------- 1. HERO: interactive halftone field ---------- */
.hero {
  position: relative; overflow: hidden; background: #fff;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; padding: 64px 0 96px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-content {
  position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 56px;
}
.hero-text { flex: 1.25 1 0; display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.hero-headline {
  font-size: clamp(44px, 6.2vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.035em; color: var(--navy);
}
.hero-headline .hero-line { display: block; }
.hero-headline .hero-line--light { font-weight: 300; letter-spacing: -.02em; }
.hero-headline .hero-line--brand {
  font-size: 1.75em; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: -.045em; line-height: .9;
}
.hero-subhead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 540px; line-height: 1.6; }
.hero-media { flex: 1 1 0; position: relative; min-width: 0; }
.hero-image {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px 120px 8px 120px; box-shadow: var(--shadow);
}
.hero-chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 20px 50px -18px rgba(16,27,45,.35);
  display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--navy); max-width: 250px;
}
.hero-chip strong { display: block; font-size: 15px; font-weight: 800; }
.hero-chip-icon {
  width: 44px; height: 44px; border-radius: 12px 3px 12px 3px; background: var(--blue); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-chip-icon svg { width: 22px; height: 22px; }
.hero-chip--top { top: 10%; left: -48px; }
.hero-chip--bottom { bottom: 9%; right: -28px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll::after { content: ""; width: 2px; height: 36px; background: linear-gradient(var(--blue), transparent); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* word-by-word entrance (classes added by hero.js) */
.js .hero-headline .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.js .hero-headline .word-inner { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.js .hero.is-ready .hero-headline .word-inner { transform: none; }
.js .hero [data-hero-fade] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero.is-ready [data-hero-fade] { opacity: 1; transform: none; }

/* ---------- 2. TOUCHPOINTS: pinned horizontal scroll ---------- */
.touchpoints { background: var(--navy); color: #C9D5E6; position: relative; }
.touchpoints-pin { padding: var(--section-y) 0; display: flex; flex-direction: column; gap: 56px; overflow: hidden; }
.touchpoints-header {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
}
.touchpoints-header > div { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.touchpoints-title { color: #fff; font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; }
.touchpoints-intro { color: #AFC0D6; max-width: 420px; font-size: 17px; }
.touchpoints-track {
  display: flex; gap: 28px; list-style: none; margin: 0;
  padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.touchpoints-track::-webkit-scrollbar { display: none; }
.touchpoint-item {
  flex: 0 0 min(420px, 80vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 22px;
}
.touchpoint-media { position: relative; overflow: hidden; border-radius: 6px 56px 6px 56px; aspect-ratio: 4 / 4.4; background: var(--navy-2); }
.touchpoint-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.touchpoint-item.is-active .touchpoint-image, .touchpoint-item:hover .touchpoint-image { transform: scale(1); }
.touchpoint-number {
  position: absolute; left: 20px; top: 18px; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: #fff;
  background: var(--blue); padding: 6px 12px; border-radius: 999px;
}
.touchpoint-title { color: #fff; font-size: 24px; font-weight: 700; }
.touchpoint-text { color: #AFC0D6; font-size: 16px; line-height: 1.6; max-width: 380px; }
.touchpoint-item--end {
  justify-content: center; background: var(--blue); border-radius: 6px 56px 6px 56px; padding: 48px 40px; gap: 24px;
}
.touchpoint-item--end .touchpoint-title { font-size: 32px; font-weight: 800; line-height: 1.15; }
.touchpoint-item--end .touchpoint-text { color: #DCEBF7; }
.touchpoint-item--end .btn { align-self: flex-start; }
.touchpoints-progress {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; height: 2px;
  background: rgba(255,255,255,.12); position: relative; overflow: hidden; border-radius: 2px;
}
.touchpoints-progress-bar { position: absolute; inset: 0; background: #6FB3E4; transform-origin: left; transform: scaleX(0); }

/* pinned mode (enabled by touchpoints.js on wide screens) */
.touchpoints.is-pinned .touchpoints-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; justify-content: center; padding: calc(var(--header-h) + 16px) 0 32px; gap: 32px;
}
.touchpoints.is-pinned .touchpoints-title { font-size: clamp(32px, 3.6vw, 54px); }
.touchpoints.is-pinned .touchpoint-item { gap: 16px; }
.touchpoints.is-pinned .touchpoints-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.touchpoints.is-pinned .touchpoint-item { flex-basis: min(400px, 30vw); }
.touchpoints.is-pinned .touchpoint-media { aspect-ratio: auto; height: clamp(200px, 36vh, 420px); }

/* ---------- 3. PROCESS: scroll-drawn timeline ---------- */
.process-layout { display: flex; gap: 80px; align-items: flex-start; }
.process-aside {
  flex: 0.9 1 0; position: sticky; top: calc(var(--header-h) + 48px); display: flex; flex-direction: column; gap: 24px;
}
.process-counter {
  font-size: clamp(90px, 11vw, 168px); font-weight: 900; line-height: .8; letter-spacing: -.06em;
  color: #CFE3F3; margin-top: 12px;
}
.process { flex: 1.1 1 0; position: relative; min-width: 0; }
.process-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.process-line { position: absolute; left: 35px; top: 36px; bottom: 36px; width: 2px; background: var(--line); }
.process-line-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.process-step { display: flex; gap: 32px; padding: 0 0 64px; position: relative; }
.process-step:last-child { padding-bottom: 0; }
.process-step-marker {
  flex: none; width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  transition: background .5s var(--ease), border-color .5s, color .5s, transform .5s var(--ease);
}
.process-step-marker svg { width: 30px; height: 30px; }
.process-step-body { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; transition: opacity .5s; }
.process-step-label { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.process-step-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.process-step-text { color: var(--muted); font-size: 17px; max-width: 460px; }
.js .process-step:not(.is-active) .process-step-body { opacity: .38; }
.process-step.is-active .process-step-marker { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { min-height: 0; padding: 56px 0 88px; }
  .hero-content { flex-direction: column; align-items: stretch; gap: 64px; }
  .hero-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-chip--top { left: -12px; }
  .hero-chip--bottom { right: -12px; }
  .hero-scroll { display: none; }
  .touchpoints-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .process-layout { flex-direction: column; gap: 48px; }
  .process-aside { position: static; }
  .process-counter { display: none; }
}
@media (max-width: 767px) {
  .hero { padding: 40px 0 72px; }
  .hero-text { gap: 24px; }
  .hero-image { aspect-ratio: 1; border-radius: 6px 72px 6px 72px; }
  .hero-chip { max-width: 210px; padding: 12px 14px; font-size: 13px; }
  .hero-chip--top { top: -18px; left: 8px; }
  .hero-chip--bottom { bottom: -22px; right: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .touchpoints-pin { gap: 36px; }
  .process-line { left: 27px; }
  .process-step { gap: 20px; padding-bottom: 48px; }
  .process-step-marker { width: 56px; height: 56px; }
  .process-step-marker svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-headline .word-inner, .js .hero [data-hero-fade] { transform: none; opacity: 1; transition: none; }
  .touchpoint-image { transform: none; }
}
