/* Nexera motion layer 2: opening sequence, package animations, signature footer typography. */

/* ---------- opening sequence (first visit per session, entry pages only) ---------- */
html.nx-intro, html.nx-playing { overflow: hidden; }
html.nx-intro body::before { content: ""; position: fixed; inset: 0; background: #06112a; z-index: 99998; animation: nxfs .5s ease 3.2s forwards; }
@keyframes nxfs { to { opacity: 0; visibility: hidden; } }
.nx-curtain { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; cursor: pointer; }
.nx-curtain > i { position: absolute; left: 0; right: 0; height: 50.3%; background: #06112a; transition: transform .95s cubic-bezier(.77, 0, .18, 1); }
.nx-curtain > i:first-child { top: 0; } .nx-curtain > i:nth-child(2) { bottom: 0; }
.nx-curtain > i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #E9B24A, transparent); opacity: 0; transition: opacity .3s; }
.nx-curtain > i:first-child::after { bottom: 0; } .nx-curtain > i:nth-child(2)::after { top: 0; }
.nx-curtain.go > i:first-child { transform: translateY(-101%); } .nx-curtain.go > i:nth-child(2) { transform: translateY(101%); }
.nx-curtain.go > i::after { opacity: 1; }
.nx-c { position: relative; z-index: 2; text-align: center; color: #fff; transition: opacity .35s ease, transform .7s ease; }
.nx-curtain.go .nx-c { opacity: 0; transform: scale(.94); }
.nx-c img { width: min(260px, 62vw); height: auto; margin: 0 auto 22px; animation: nxlogo 1s cubic-bezier(.2, .8, .2, 1) both; }
.nx-line { height: 2px; width: 0; background: linear-gradient(90deg, transparent, #E9B24A, transparent); margin: 0 auto 18px; animation: nxline 1s .2s cubic-bezier(.2, .8, .2, 1) forwards; }
.nx-t { display: flex; justify-content: center; flex-wrap: wrap; font: 600 .74rem Inter, system-ui, sans-serif; letter-spacing: .38em; text-transform: uppercase; color: #E9B24A; padding: 0 20px; }
.nx-t span { opacity: 0; transform: translateY(10px); animation: nxch .5s ease forwards; }
@keyframes nxlogo { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nxline { to { width: min(320px, 70vw); } }
@keyframes nxch { to { opacity: 1; transform: none; } }

/* ---------- package section ---------- */
.pkg-days { position: relative; }
.pkg-days::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 5px; background: var(--rust, #C0532A); transform-origin: top; transform: scaleY(var(--p, 0)); z-index: 2; }
.pkg-days li { transition: background .4s ease, padding-left .4s ease; }
.pkg-days li.lit { background: linear-gradient(90deg, rgba(233, 178, 74, .16), transparent 70%); padding-left: 32px; }
.pkg-days li.lit .pd-n { color: var(--rust, #C0532A); }
.pkg-days li .pd-n { transition: transform .4s ease; } .pkg-days li.lit .pd-n { transform: translateX(4px); }
.bro-cover { display: block; perspective: 900px; }
.bro-cover img { animation: nxfloat 6s ease-in-out infinite; transform-origin: 20% 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.bro-cover:hover img { animation-play-state: paused; transform: rotateY(-22deg) rotateX(4deg) scale(1.03); box-shadow: 18px 22px 44px rgba(10, 26, 54, .38); }
@keyframes nxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.pp-amt { font-variant-numeric: tabular-nums; }

/* ---------- signature footer typography ---------- */
.nx-mark { position: relative; margin: 60px 0 8px; padding-top: 26px; overflow: hidden; --mx: 50%; --my: 50%; text-align: center; }
.nx-mark::before { content: ""; position: absolute; inset: -30% -10%; background: radial-gradient(460px 280px at var(--mx) var(--my), rgba(233, 178, 74, .2), transparent 70%); pointer-events: none; transition: background .15s; }
.nx-word { display: flex; justify-content: center; font: 800 clamp(3.4rem, 17.5vw, 16rem) / .92 Sora, Inter, system-ui, sans-serif; letter-spacing: -.045em; user-select: none; position: relative; }
.nx-word span { display: inline-block; color: transparent; -webkit-text-stroke: 1.6px rgba(233, 178, 74, .8); opacity: 0; transform: translateY(70%) rotate(7deg); transition: transform .95s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 75ms), opacity .7s ease calc(var(--i) * 75ms), color .35s ease, -webkit-text-stroke-color .35s ease;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 228, 160, .95) 50%, transparent 62%) -150% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.nx-mark.in .nx-word span { opacity: 1; transform: none; animation: nxwave 5s ease-in-out calc(var(--i) * .16s + 1.2s) infinite, nxshine 5.5s ease-in-out calc(var(--i) * .22s + 1.4s) infinite; }
.nx-word span:hover { color: #E9B24A; -webkit-text-stroke-color: #E9B24A; transform: translateY(-7%) scale(1.05); }
@keyframes nxwave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3.5%; } }
@keyframes nxshine { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
.nx-sub { display: flex; justify-content: center; margin-top: 8px; font: 600 clamp(.7rem, 2.1vw, 1.3rem) Inter, system-ui, sans-serif; letter-spacing: .85em; padding-left: .85em; text-transform: uppercase; color: #C0532A; user-select: none; }
.nx-sub span { display: inline-block; opacity: 0; transform: translateY(100%); clip-path: inset(0 0 0 0); transition: transform .7s cubic-bezier(.2, .9, .25, 1) calc(.6s + var(--i) * 55ms), opacity .5s ease calc(.6s + var(--i) * 55ms); }
.nx-mark.in .nx-sub span { opacity: 1; transform: none; }
.nx-slot { margin-top: 26px; display: flex; justify-content: center; align-items: baseline; gap: .55em; font: 600 clamp(1rem, 2.6vw, 1.5rem) Sora, Inter, sans-serif; color: #b9c5dd; }
.nx-slot em { font-style: normal; }
.nx-swc { display: inline-block; height: 1.45em; overflow: hidden; vertical-align: bottom; min-width: 5.2em; text-align: left; }
.nx-sw { display: block; animation: nxslot 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.nx-sw b { display: block; height: 1.45em; line-height: 1.45em; color: #E9B24A; font-weight: 800; }
@keyframes nxslot { 0%, 18% { transform: translateY(0); } 25%, 43% { transform: translateY(-1.45em); } 50%, 68% { transform: translateY(-2.9em); } 75%, 93% { transform: translateY(-4.35em); } 100% { transform: translateY(-5.8em); } }
.nx-rows { margin: 44px -20px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); padding: 12px 0; overflow: hidden; display: grid; gap: 4px; }
.nx-row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.nx-row span { font: 800 clamp(1.7rem, 5.2vw, 3.6rem) / 1.15 Sora, Inter, sans-serif; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .42); padding-right: .55em; }
.nx-row b { color: #E9B24A; -webkit-text-stroke: 0; font-weight: 800; }
.nx-row.r2 span { -webkit-text-stroke-color: rgba(233, 178, 74, .55); } .nx-row.r2 b { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .nx-word span, .nx-sub span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .nx-sw { animation: none; } .bro-cover img { animation: none; } .pkg-days::before { transform: scaleY(1); }
}
@media (max-width: 560px) { .nx-word span { -webkit-text-stroke-width: 1.2px; } .nx-sub { letter-spacing: .5em; padding-left: .5em; } .nx-rows { margin-inline: -12px; } }
