/* One 600px DriftWall, with a local blur fading away behind the title. */
.ea-drift {
  --drift-bg: #10141b;
  position: relative;
  isolation: isolate;
  height: 600px;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--drift-bg);
  color: #f5f5f7;
  font-family: var(--lib-sans, "Helvetica Neue", Arial, sans-serif);
}
.ea-drift *, .ea-drift *::before, .ea-drift *::after { box-sizing: border-box; }
.ea-drift__experience, .ea-drift__fallback { position: relative; height: 100%; }
.ea-drift__root { display: none; height: 100%; }
/* Once React has mounted, its wall and blur replace the server ones in the same frame
   (identical blur); the animated wall stays hidden until its covers are decoded. */
.ea-drift[data-cinematic-mounted] .ea-drift__root { display: block; }
.ea-drift[data-cinematic-mounted] .ea-drift__fallback { display: none; }
.ea-drift[data-cinematic-mounted]:not([data-cinematic-ready]) :is(.ea-drift__root .ea-drift__wall, .ea-drift__pause) { opacity: 0; }
/* The title rises from behind its baseline (the Home's vocabulary); room for the accent. */
.ea-drift__line { display: inline-block; overflow: hidden; padding: .16em .06em .12em; margin: -.16em -.06em -.12em; vertical-align: top; }
.ea-drift__word { display: inline-block; }
.ea-drift__wall { position: absolute; inset: 0; z-index: 0; }
.ea-drift .drift-wall { mask-image: linear-gradient(0deg, transparent, #000 18%, #000 83%, transparent); -webkit-mask-image: linear-gradient(0deg, transparent, #000 18%, #000 83%, transparent); }
.ea-drift .drift-wall__plane { left: 63%; }
.ea-drift__blur {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16,20,27,.97), rgba(16,20,27,.84) 32%, rgba(16,20,27,.22) 76%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(90deg, #000 35%, rgba(0,0,0,.65) 65%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 35%, rgba(0,0,0,.65) 65%, transparent 100%);
}
.ea-drift__copy { position: absolute; z-index: 2; top: 50%; left: 4.5%; width: 450px; max-width: 55%; transform: translateY(-50%); pointer-events: auto; }
.ea-drift .ea-drift__eyebrow { margin: 0 0 24px; font-size: 9px; font-weight: 500; line-height: 1.6; letter-spacing: .15em; text-transform: uppercase; color: #adb6c5; }
.ea-drift .ea-drift__copy h1 { margin: 0; font-family: inherit; font-size: clamp(52px,6.2vw,82px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; color: #f5f5f7; }
.ea-drift .ea-drift__description { margin: 24px 0 28px; font-size: 15px; line-height: 1.7; color: #bdc5d1; }
.ea-drift .ea-drift__explore { display: inline-flex; align-items: center; gap: 32px; min-height: 44px; font-size: 12px; color: #f5f5f7; text-decoration: none; pointer-events: auto; border-bottom: 1px solid rgba(245,245,247,.3); }
.ea-drift__explore span { font-size: 18px; transition: transform .25s; }
.ea-drift__explore:hover span { transform: translateY(3px); }
.ea-drift .ea-drift__pause { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(245,245,247,.22); border-radius: 50%; background: rgba(16,20,27,.72); color: #f5f5f7; font-family: inherit; font-size: 12px; line-height: 1; cursor: pointer; }
.ea-drift a:focus-visible, .ea-drift button:focus-visible { outline: 2px solid #f5f5f7; outline-offset: 5px; }
.ea-drift__index { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ea-drift__index:focus-within { z-index: 5; inset: auto 20px 20px; width: auto; height: auto; max-height: 65%; overflow: auto; clip-path: none; white-space: normal; display: grid; gap: 8px; padding: 22px; background: #10141b; border: 1px solid #69788d; border-radius: 12px; }
.ea-drift__index a { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: #fff; }
.ea-drift__static-wall { position: absolute; top: 50%; left: 63%; display: grid; grid-template-columns: repeat(5,200px); gap: 18px; transform: translate(-50%,-50%) perspective(1200px) rotateX(16deg) rotateY(-14deg) translateZ(-120px) scale(1.18); }
.ea-drift__static-wall a { display: block; overflow: hidden; width: 200px; height: 132px; border-radius: 14px; opacity: .55; }
.ea-drift__static-wall img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:1000px) and (min-width:701px) { .ea-drift__copy { left: 3%; max-width: 64%; }.ea-drift .drift-wall__plane, .ea-drift__static-wall { left: 73%; }.ea-drift__blur { width: 78%; } }
@media(max-width:700px) {
  .ea-drift { height: 600px; border-radius: 16px; margin-bottom: 16px; }
  .ea-drift .drift-wall__plane, .ea-drift__static-wall { left: 50%; }
  .ea-drift .drift-wall { -webkit-mask-image: linear-gradient(0deg,transparent,#000 22%,#000 84%,transparent); mask-image: linear-gradient(0deg,transparent,#000 22%,#000 84%,transparent); }
  .ea-drift__blur { inset: auto 0 0; width: 100%; height: 68%; background: linear-gradient(0deg,rgba(16,20,27,.98) 4%,rgba(16,20,27,.85) 34%,rgba(16,20,27,.3) 70%,transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(0deg,#000 28%,rgba(0,0,0,.8) 58%,transparent 100%); mask-image: linear-gradient(0deg,#000 28%,rgba(0,0,0,.8) 58%,transparent 100%); }
  .ea-drift__copy { top: auto; bottom: 64px; left: 24px; width: auto; max-width: calc(100% - 48px); transform: none; }
  .ea-drift .ea-drift__eyebrow { margin-bottom: 17px; font-size: 8px; letter-spacing: .1em; }
  .ea-drift .ea-drift__copy h1 { font-size: clamp(43px,12vw,58px); }
  .ea-drift .ea-drift__description { margin: 17px 0 18px; font-size: 13px; }
  .ea-drift .ea-drift__explore { font-size: 11px; gap: 26px; }
  .ea-drift .ea-drift__pause { right: 16px; bottom: 15px; }
  .ea-drift__static-wall { grid-template-columns: repeat(3,160px); }
  .ea-drift__static-wall a { width:160px; height:106px; }
}
@media(prefers-reduced-motion:reduce) { .ea-drift * { animation: none!important; transition: none!important; }.ea-drift .drift-wall__inner { transform: none!important; } }
/* Mobile uses a flat, tilted wall: no nested preserve-3d/mask clipping on WebKit. */
@media(max-width:700px) {
 .ea-drift .drift-wall {perspective:none;-webkit-mask-composite:source-over;mask-composite:add;}
 .ea-drift .drift-wall--flat :is(.drift-wall__plane,.drift-wall__col,.drift-wall__track,.drift-wall__tile) {transform-style:flat;}
 .ea-drift .drift-wall--flat .drift-wall__inner {opacity:.8;transform:none;}
 .ea-drift .drift-wall--flat .drift-wall__overlay {opacity:.2;}
 .ea-drift__static-wall {transform:translate(-50%,-50%) rotate(-8deg) scale(1.06);}
}

/* Phones: the text zone already sits under a near-opaque gradient. A live backdrop
   blur over the moving wall was recomputed every frame and made the entrance stutter. */
@media(max-width:700px) {
 .ea-drift__blur {-webkit-backdrop-filter:none;backdrop-filter:none;}
}
