/* "The new era of now" — one-time intro overlay (English, LTR on every page). */
.nei {
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow: hidden;
  background: #17140F;
  color: #FFFFFF;
  font-family: 'Inter', system-ui, sans-serif;
  direction: ltr;
  text-align: left;
}
.nei[hidden] { display: none; }
.nei * { box-sizing: border-box; }
.nei.is-leaving { animation: nei-leave 0.45s cubic-bezier(0.7, 0, 0.3, 1) both; }
@keyframes nei-leave { to { opacity: 0; transform: scale(1.03); } }

.nei-svg-i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@keyframes nei-flood { from { clip-path: circle(0px at 50% 50%); } to { clip-path: circle(150vmax at 50% 50%); } }
@keyframes nei-spin-in { 0% { opacity: 0; transform: scale(0.15) rotate(-200deg); } 50% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes nei-spin { to { transform: rotate(360deg); } }
@keyframes nei-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nei-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nei-rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes nei-track { from { opacity: 0; letter-spacing: 0.7em; } to { opacity: 1; letter-spacing: 0.32em; } }
@keyframes nei-slam { 0% { opacity: 0; transform: translateX(-90px) skewX(-14deg); } 65% { opacity: 1; transform: translateX(10px) skewX(5deg); } 100% { opacity: 1; transform: translateX(0) skewX(0deg); } }
@keyframes nei-streak { 0% { opacity: 0; transform: translateX(-50px) scaleX(0.3); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px) scaleX(1); } }
@keyframes nei-burst { 0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.5); } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }
@keyframes nei-card { from { opacity: 0; transform: translate(var(--x), 320px) rotate(0deg); } to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--rot)); } }
@keyframes nei-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nei-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nei-drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes nei-pin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes nei-shine { 0% { transform: translateX(-140%) skewX(-20deg); } 40%, 100% { transform: translateX(520%) skewX(-20deg); } }
@keyframes nei-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

.nei-act1 { position: absolute; inset: 0; background: #F29620; animation: nei-flood 0.8s cubic-bezier(0.7, 0, 0.3, 1) 0.1s both; }
.nei-act1__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; }
.nei-intro-word { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: #17140F; animation: nei-track 0.8s ease-out 0.9s both; }
.nei-bigsun { width: min(300px, 60vw); aspect-ratio: 1; animation: nei-spin-in 1s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.45s both; }
.nei-bigsun > div { width: 100%; height: 100%; background: #17140F; -webkit-mask: url(/assets/now-era/img/sun.png) center / contain no-repeat; mask: url(/assets/now-era/img/sun.png) center / contain no-repeat; animation: nei-spin 6s linear 1.45s infinite; }

.nei-act2 { position: absolute; inset: 0; background: #17140F; animation: nei-flood 0.85s cubic-bezier(0.7, 0, 0.3, 1) 1.95s both; }
.nei-decor { position: absolute; inset: 0; animation: nei-fade 1.4s ease-out 2.4s both; pointer-events: none; }
.nei-decor__ring { position: absolute; left: -180px; top: -200px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid #F29620; opacity: 0.07; }
.nei-decor__logo { position: absolute; right: -260px; bottom: -220px; width: 720px; height: 720px; opacity: 0.05; }
.nei-decor__logo img { display: block; width: 100%; height: 100%; animation: nei-spin 80s linear infinite; }

.nei-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: clamp(60px, 8vh, 84px) 24px clamp(70px, 12vh, 124px); overflow: hidden; }
.nei-stage > :first-child { margin-top: auto; }
.nei-stage > :last-child { margin-bottom: auto; }
.nei-badge { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px 0 12px; border-radius: 999px; background: color-mix(in srgb, #F29620 16%, #17140F); border: 1px solid color-mix(in srgb, #F29620 40%, #17140F); color: #F29620; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; animation: nei-fade-up 0.5s ease-out 2.5s both; }
.nei-badge i { width: 7px; height: 7px; border-radius: 50%; background: #F29620; }
.nei-title { margin: clamp(14px, 3vh, 26px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: #FFFFFF; }
.nei-title > span { display: block; overflow: hidden; }
.nei-title > span > span { display: block; animation: nei-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nei-title .is-accent { color: #F29620; }

.nei-logo { position: relative; margin-bottom: 20px; display: flex; align-items: center; gap: 30px; transform: scale(1.3); transform-origin: center center; }
.nei-tagline { margin: clamp(20px, 3.6vh, 38px) 0 0; font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 3.1vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: #FFFFFF; text-align: center; animation: nei-fade-up 0.6s ease-out 3.2s both; }
.nei-tagline span, .nei-tagline b { display: block; }
.nei-tagline b { font-weight: 700; color: #F29620; }
.nei-logo__sun { width: 104px; height: 104px; flex: none; animation: nei-spin-in 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.2) 2.4s both; }
.nei-logo__sun img { display: block; width: 104px; height: 104px; animation: nei-spin 12s linear 3.15s infinite; }
.nei-logo__word { position: relative; width: 200px; height: 104px; }
.nei-logo__word img { position: relative; display: block; width: 200px; height: 104px; animation: nei-slam 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 2.6s both; }
.nei-streak { position: absolute; height: 5px; border-radius: 3px; background: #F29620; opacity: 0; animation: nei-streak 0.6s ease-out both; }
.nei-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.nei-burst > span { position: absolute; opacity: 0; animation: nei-burst 1s cubic-bezier(0.1, 0.7, 0.3, 1) both; }

.nei-sub { margin: clamp(10px, 2vh, 18px) 0 0; max-width: 600px; text-align: center; font-size: 18px; line-height: 1.65; color: #D9D3C8; animation: nei-fade-up 0.6s ease-out 3.5s both; }

.nei-cards { position: relative; width: 100%; max-width: 1100px; height: 250px; margin-top: clamp(18px, 3.4vh, 34px); flex: none; }
.nei-card { position: absolute; left: 50%; top: 0; width: 190px; margin-left: -95px; animation: nei-card 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.1) both; }
.nei-card--center { width: 210px; margin-left: -105px; }
.nei-card__body { box-sizing: border-box; padding: 16px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; animation: nei-float 4s ease-in-out infinite; }
.nei-card__body--dark { height: 190px; background: #24201A; border: 1px solid #38332C; color: #FFFFFF; }
.nei-card__body--light { height: 200px; background: #FFFFFF; color: #17140F; box-shadow: 0 24px 44px -18px rgba(0, 0, 0, 0.6); }
.nei-card__body--accent { height: 216px; padding: 18px; border-radius: 26px; background: #F29620; color: #17140F; gap: 8px; box-shadow: 0 28px 50px -16px rgba(0, 0, 0, 0.65); }
.nei-card__icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.nei-card__k { font-size: 13px; font-weight: 600; }
.nei-card__t { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.25; }
.nei-card__s { font-size: 13px; line-height: 1.5; }
.nei-bars { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.nei-bars span { flex: 1; border-radius: 5px; background: #EAE6DF; }
.nei-eq { margin-top: auto; display: flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; }
.nei-eq b { padding: 6px 8px; border-radius: 9px; background: #2E2A24; font-weight: 600; }
.nei-eq b.is-you { background: #F29620; color: #17140F; }
.nei-progress { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.nei-progress span { height: 6px; border-radius: 3px; background: #17140F; }
.nei-progress span:last-child { background: rgba(23, 20, 15, 0.25); }

.nei-sub b { color: #F29620; font-weight: 700; white-space: nowrap; }
/* Store to Door: the centre card, with a "New" tag and a little run from the store to the door */
.nei-s2d__top { display: flex; align-items: center; justify-content: space-between; }
.nei-s2d__new { height: 24px; padding: 0 10px; border-radius: 999px; background: #FFFFFF; color: #17140F; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; }
.nei-s2d__s { font-weight: 600; line-height: 1.4; }
.nei-s2d__route { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.nei-s2d__route svg { flex: none; }
.nei-s2d__line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #17140F 0 5px, transparent 5px 10px); }
.nei-s2d__line i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #17140F; box-shadow: 0 0 0 3px #FFFFFF; animation: nei-s2d-run 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) 5s infinite; }
@keyframes nei-s2d-run { from { left: 0; } to { left: calc(100% - 10px); } }

.nei-ctas { position: relative; z-index: 2; margin-top: clamp(14px, 2.6vh, 26px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: nei-fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 4.55s both; }
.nei-go { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 30px; border: 0; border-radius: 999px; background: #F29620; color: #17140F; font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nei-go__shine { position: absolute; left: 0; top: 0; bottom: 0; width: 70px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); transform: translateX(-140%); animation: nei-shine 2.8s ease-in-out 5.45s infinite; }
.nei-go svg { position: relative; animation: nei-nudge 1.2s ease-in-out 5.45s infinite; }
.nei-more { display: inline-flex; align-items: center; height: 58px; padding: 0 24px; border-radius: 999px; border: 1px solid #38332C; color: #F5F3EF !important; font-size: 16px; font-weight: 600; text-decoration: none !important; }
.nei-more:hover { background: #2A2620; }

.nei-road { position: absolute; left: 50%; bottom: 0; width: 1440px; height: 130px; margin-left: -720px; pointer-events: none; }
.nei-road svg.nei-road__svg { position: absolute; left: 0; top: 0; overflow: visible; }
.nei-road__draw { stroke-dashoffset: 0; animation: nei-draw 1.2s cubic-bezier(0.5, 0, 0.3, 1) 3.85s both; }
.nei-road__pin { position: absolute; left: 1128px; top: 54px; width: 24px; height: 30px; color: #F29620; animation: nei-fade 0.4s ease-out 4.85s both; }
.nei-road__pin svg { display: block; animation: nei-pin 1.8s ease-in-out 5.25s infinite; }
.nei-truck {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 36px;
  border-radius: 12px;
  background: #F29620;
  color: #17140F;
  display: flex;
  align-items: center;
  justify-content: center;
  offset-path: path('M -80 92 C 60 92 120 38 240 38 S 420 104 540 104 S 720 30 840 30 S 1020 96 1140 96 S 1320 44 1520 44');
  offset-rotate: auto;
  offset-anchor: center;
  animation: nei-fade 0.3s ease-out 4.65s both, nei-drive 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) 4.65s infinite both;
}

.nei-top { position: absolute; top: 22px; right: 24px; z-index: 5; display: flex; gap: 8px; }
.nei-top button { height: 42px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #D9D3C8; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nei-top button:hover { background: rgba(255, 255, 255, 0.16); }
.nei-top .nei-replay { width: 42px; }
.nei-top .nei-skip { padding: 0 18px; }

@media (max-height: 760px) {
  .nei-cards { height: 200px; transform: scale(0.82); transform-origin: top center; margin-bottom: -40px; }
  .nei-logo__sun, .nei-logo__sun img { width: 80px; height: 80px; }
  .nei-logo__word, .nei-logo__word img { width: 154px; height: 80px; }
  .nei-logo { transform: scale(1.1); }
  .nei-tagline { font-size: 26px; }
}
@media (max-height: 690px) {
  .nei-sub { display: none; }
  .nei-logo { transform: scale(1); margin-bottom: 8px; }
  .nei-tagline { margin-top: 14px; font-size: 22px; }
  .nei-stage { padding-top: 54px; padding-bottom: 80px; }
  .nei-cards { margin-top: 30px; margin-bottom: 0; }
  .nei-ctas { margin-top: 30px; }
}
/* Phones and narrow windows: three cards instead of five, pulled closer, and the whole fan scaled to the width.
   --s is the scale; the negative margin gives back the height the scaled fan no longer uses. */
@media (max-width: 720px) {
  .nei-stage { padding: calc(72px + env(safe-area-inset-top, 0px)) 18px calc(72px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; overflow-y: auto; }
  .nei-cards { height: 236px; margin-top: 24px; margin-bottom: calc(-236px * (1 - var(--s))); transform: scale(var(--s)); transform-origin: top center; }
  .nei-card:nth-child(1), .nei-card:nth-child(4) { display: none; }
  .nei-card { width: 150px; margin-left: -75px; }
  .nei-card:nth-child(2) { --x: -157px !important; --y: 16px !important; --rot: -5deg !important; }
  .nei-card:nth-child(3) { --x: 157px !important; --y: 16px !important; --rot: 5deg !important; }
  .nei-card--center { width: 164px; margin-left: -82px; z-index: 1; }
  .nei-card__body { padding: 14px; }
  .nei-card__t { font-size: 16px; }
  .nei-card--center .nei-card__t { font-size: 18px !important; }
  .nei-eq { gap: 3px; font-size: 11px; }
  .nei-eq b { padding: 5px 5px; border-radius: 7px; }
  .nei-ctas { margin-top: 26px; flex: none; }
  .nei-sub { font-size: 15px; max-width: 360px; }
  .nei-logo { gap: 18px; transform: scale(1.02); flex: none; }
  .nei-tagline { font-size: clamp(20px, 6vw, 24px); }
  .nei-logo__sun, .nei-logo__sun img { width: 72px; height: 72px; }
  .nei-logo__word, .nei-logo__word img { width: 138px; height: 72px; }
  .nei-go, .nei-more { height: 52px; }
  /* the road sits low enough to stay under the buttons */
  .nei-road { bottom: -44px; }
  .nei-more { background: #17140F; }
  .nei-top { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
}
@media (max-width: 720px) { .nei-cards { --s: 0.86; } }
@media (max-width: 440px) { .nei-cards { --s: 0.8; } }
@media (max-width: 399px) { .nei-cards { --s: 0.74; } }
@media (max-width: 374px) {
  .nei-cards { --s: 0.69; }
  .nei-go, .nei-more { padding: 0 20px; font-size: 15px; }
}
@media (max-width: 349px) { .nei-cards { --s: 0.62; } }
/* short phones: tighter spacing so the buttons stay on screen */
@media (max-width: 720px) and (max-height: 700px) {
  .nei-stage { padding-top: 62px; padding-bottom: 40px; }
  .nei-sub { display: none; }
  .nei-cards { margin-top: 20px; }
  .nei-ctas { margin-top: 18px; }
}
@media (max-width: 720px) and (max-height: 700px) { .nei-road { display: none; } }
@media (max-width: 720px) and (max-height: 560px) { .nei-cards { display: none; } }
/* phone held sideways: logo, tagline and buttons only, so nothing falls below the screen */
@media (max-height: 560px) and (orientation: landscape) {
  .nei-stage { padding: 62px 18px 20px; overflow-x: hidden; overflow-y: auto; }
  .nei-cards, .nei-sub, .nei-road { display: none; }
  .nei-logo { transform: none; margin-bottom: 0; flex: none; }
  .nei-logo__sun, .nei-logo__sun img { width: 64px; height: 64px; }
  .nei-logo__word, .nei-logo__word img { width: 123px; height: 64px; }
  .nei-tagline { margin-top: 14px; font-size: 22px; }
  .nei-ctas { margin-top: 20px; flex: none; }
  .nei-go, .nei-more { height: 50px; }
}
/* Phones: swipeable deck. The script places each card; the whole deck rises in as one. */
.nei-dots { display: none; }
@keyframes nei-deck-in { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 720px) {
  .nei-cards.is-swipe { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; animation: nei-deck-in 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.1) 3.55s both; }
  .nei-cards.is-swipe:active { cursor: grabbing; }
  .nei-cards.is-swipe .nei-card { display: block; width: 164px; margin-left: -82px; animation: none; will-change: transform, opacity; -webkit-tap-highlight-color: transparent; }
  .nei-cards.is-swipe .nei-card__body { height: 216px !important; border-radius: 24px; }
  .nei-cards.is-swipe + .nei-dots { display: flex; flex: none; justify-content: center; align-items: center; gap: 7px; margin-top: 10px; animation: nei-fade 0.4s ease-out 4.2s both; }
  .nei-dots span { position: relative; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); cursor: pointer; transition: width 0.25s ease, background-color 0.25s ease; }
  .nei-dots span::before { content: ""; position: absolute; inset: -9px -3px; }
  .nei-dots span.is-on { width: 22px; background: #F29620; }
  .nei-cards.is-swipe ~ .nei-ctas { margin-top: 16px; }
}
@media (max-width: 720px) and (max-height: 560px) { .nei-cards.is-swipe + .nei-dots { display: none; } }
@media (max-height: 560px) and (orientation: landscape) { .nei-cards.is-swipe, .nei-cards.is-swipe + .nei-dots { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .nei, .nei * { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
