/* ============ Opening experience: intro, manifesto, our story, the people ============ */
.xp-intro, .xp-mani, .xp-story, .xp-people { position: relative; background: var(--night); color: var(--white); }
.xp-intro::before, .xp-story::before, .xp-people::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.xp-kick { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dark); }
.xp-kick::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--blue); margin: 0 10px 2px 0; vertical-align: middle; }

/* ---------- 1. intro ---------- */
.xp-intro { min-height: 100svh; overflow: hidden; display: grid; }
.xp-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--pad); opacity: 0; animation: xp-fade 1s var(--ease) 1s forwards; }
@keyframes xp-fade { to { opacity: 1; } }
.xp-logo img { display: block; height: 32px; width: auto; transition: transform .5s var(--ease); }
.xp-logo:hover img { transform: scale(1.05); }
.xp-tag { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dark); }
.xp-skip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.15rem; letter-spacing: .03em; color: var(--white); padding: 8px 14px 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; transition: background .4s var(--ease), border-color .4s; }
.xp-skip:hover { background: var(--blue); border-color: var(--blue); }
.xp-skip span { display: inline-block; animation: xp-bob 1.6s ease-in-out infinite; }
.xp-name { position: relative; z-index: 2; display: grid; grid-template-rows: 1fr 1fr; font-weight: 400; padding: 78px var(--pad) 40px; pointer-events: none; }
.xp-w { display: block; font-family: var(--display); font-size: clamp(6rem, 21vw, 23rem); line-height: .8; text-transform: uppercase; will-change: transform; transform: translateX(var(--sx, 0px)); }
.xp-w1 { align-self: start; justify-self: start; }
.xp-w2 { align-self: end; justify-self: end; color: var(--blue-soft); }
.xp-w2 b { font-weight: 400; color: var(--white); }
.xp-w > .xp-l { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(6deg); animation: xp-rise 1.2s var(--ease) forwards; animation-delay: calc(.15s + var(--k, 0) * .06s); }
@keyframes xp-rise { to { opacity: 1; transform: none; } }
.xp-orb { position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(200px, 26vw, 380px); aspect-ratio: 1; transform: translate(-50%, -50%) translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--os, 1)); opacity: var(--oo, 1); will-change: transform, opacity; animation: xp-pop-in 1.4s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
/* soft glow behind the circle: a radial gradient that fades fully to transparent, so it never shows a hard edge */
.xp-orb::before { content: ""; position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(1, 37, 255, .42) 0%, rgba(1, 37, 255, .16) 38%, rgba(1, 37, 255, 0) 70%); pointer-events: none; }
/* the circle itself: everything inside is clipped to a perfect circle (clip-path + mask also fixes iPhone Safari, which can leak blurred colour past rounded corners) */
.xp-orb-core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; clip-path: circle(50% at 50% 50%); -webkit-mask-image: radial-gradient(circle, #000 70%, #000 100%); isolation: isolate; transform: translateZ(0); display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #4d62ff, #0125ff 45%, #0a1a99 100%); box-shadow: inset 0 0 60px rgba(255, 255, 255, .12); }
@keyframes xp-pop-in { from { scale: 0; } to { scale: 1; } }
.xp-orb-core i { position: absolute; border-radius: 50%; filter: blur(26px); mix-blend-mode: screen; }
.xp-orb-core i:nth-child(1) { width: 60%; height: 60%; left: 2%; top: 4%; background: #9aa6ff; opacity: .7; animation: xp-swirl 7s ease-in-out infinite alternate; }
.xp-orb-core i:nth-child(2) { width: 50%; height: 50%; right: 0; bottom: 6%; background: #e9ecff; opacity: .35; animation: xp-swirl 9s ease-in-out infinite alternate-reverse; }
.xp-orb-core i:nth-child(3) { width: 45%; height: 45%; left: 30%; bottom: -10%; background: #001060; opacity: .9; animation: xp-swirl 11s ease-in-out infinite alternate; }
@keyframes xp-swirl { to { transform: translate(20%, -15%) scale(1.2); } }
.xp-hs { position: relative; font-family: var(--display); font-size: clamp(3.4rem, 6vw, 6rem); line-height: 1; color: var(--white); letter-spacing: .02em; text-shadow: 0 6px 30px rgba(0, 0, 40, .45); animation: xp-float 4s ease-in-out infinite; }
@keyframes xp-float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.xp-scroll { position: absolute; z-index: 3; left: var(--pad); bottom: 22px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-dark); }
.xp-scroll span { display: inline-block; margin-left: 6px; animation: xp-bob 1.6s ease-in-out infinite; }
@keyframes xp-bob { 50% { transform: translateY(5px); } }

/* ---------- 2. manifesto ---------- */
.xp-mani { height: 170vh; }
.xp-mani-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; padding: 0 var(--pad); }
.xp-haze { position: absolute; inset: 0; opacity: var(--hz, .4); transition: opacity .3s linear; }
.xp-haze i { position: absolute; border-radius: 50%; filter: blur(80px); }
.xp-haze i:nth-child(1) { width: 70vw; height: 60vh; left: -10vw; top: 5vh; background: #0125ff; opacity: .55; animation: xp-drift 18s ease-in-out infinite alternate; }
.xp-haze i:nth-child(2) { width: 55vw; height: 50vh; right: -12vw; top: 30vh; background: #7d8cff; opacity: .35; animation: xp-drift 22s ease-in-out infinite alternate-reverse; }
.xp-haze i:nth-child(3) { width: 40vw; height: 40vh; left: 30vw; top: -10vh; background: #0a1a99; opacity: .7; animation: xp-drift 26s ease-in-out infinite alternate; }
@keyframes xp-drift { to { transform: translate(8vw, 6vh) scale(1.15); } }
.xp-mani-text { position: relative; font-family: var(--display); font-size: clamp(3.4rem, 9vw, 9.5rem); line-height: .9; text-transform: uppercase; max-width: 13ch; }
.xp-mani-text em { font-style: normal; color: var(--blue-soft); }
.xp-mani-text .xp-sw { display: inline-block; opacity: .14; transition: opacity .25s linear, transform .5s var(--ease); }
.xp-mani-text .xp-sw.on { opacity: 1; }
.xp-mani-text .xp-sw:hover { transform: translateY(-.06em) scale(1.06); }
.xp-mani-sub { position: relative; max-width: 46ch; margin-top: 28px; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .65); opacity: var(--subo, 0); transform: translateY(calc((1 - var(--subo, 0)) * 20px)); }

/* ---------- 3. our story (pinned, cards slide sideways) ---------- */
.xp-story { border-top: 1px solid var(--line-dark); }
.xp-story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 34px); }
.xp-story-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; padding: 0 var(--pad); }
.xp-story-head .xp-kick { width: 100%; }
.xp-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .9; text-transform: uppercase; }
.xp-h2 em { font-style: normal; color: var(--blue-soft); }
.xp-count { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); color: var(--grey-dark); margin-left: auto; }
.xp-count b { font-weight: 400; color: var(--white); display: inline-block; }
.xp-count b.flip { animation: xp-flip .5s var(--ease); }
@keyframes xp-flip { from { transform: translateY(60%); opacity: 0; } }
.xp-track { display: flex; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--pad); width: max-content; will-change: transform; transform: translateX(var(--tx, 0px)); }
.xp-card { position: relative; flex: none; width: min(980px, 76vw); height: clamp(300px, 52vh, 520px); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 4vw, 60px); padding: clamp(24px, 4vw, 56px); transform: rotate(var(--cr, 0deg)) scale(var(--cs, 1)); transform-origin: 50% 100%; transition: box-shadow .5s var(--ease); }
.xp-card:hover { box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.xp-c1 { background: radial-gradient(120% 120% at 80% 20%, #4d62ff, var(--blue) 50%, #0a1a99); color: var(--white); }
.xp-c2 { background: radial-gradient(120% 120% at 80% 20%, #ffffff, var(--paper) 55%, #dcdad2); color: var(--navy); }
.xp-c3 { background: radial-gradient(120% 120% at 80% 20%, #2a2d4a, #1c1d26 55%, #121214); color: var(--white); box-shadow: inset 0 0 0 1px rgba(125, 140, 255, .35); }
.xp-ghost { position: absolute; left: -2%; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: clamp(9rem, 24vw, 22rem); line-height: .8; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .22; white-space: nowrap; pointer-events: none; transition: transform 1.2s var(--ease); }
.xp-card:hover .xp-ghost { transform: translate(3%, -50%); }
.xp-num { position: relative; font-family: var(--display); font-size: clamp(6rem, 13vw, 13rem); line-height: .8; align-self: end; }
.xp-c2 .xp-num { color: var(--blue); }
.xp-c3 .xp-num { color: var(--blue-soft); }
.xp-card-body { position: relative; max-width: 46ch; }
.xp-year { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.xp-card-body h3 { font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: .9; text-transform: uppercase; }
.xp-card-body p { margin-top: 14px; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.5; opacity: .88; }

/* ---------- 4. the people ---------- */
.xp-people { display: grid; grid-template-columns: minmax(300px, 1fr) 1.15fr; gap: clamp(24px, 5vw, 80px); padding: clamp(60px, 9vw, 120px) var(--pad); border-top: 1px solid var(--line-dark); }
.xp-pcard-wrap { position: relative; }
.xp-pcard { position: sticky; top: 40px; aspect-ratio: 4 / 4.6; max-height: calc(100svh - 80px); border-radius: 16px; overflow: hidden; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.xp-face { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: center top; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.xp-face.on { opacity: 1; transform: none; }
.xp-f1 { background-color: #0a1a99; background-image: radial-gradient(90% 70% at 20% 10%, #4d62ff, transparent 60%), radial-gradient(80% 70% at 90% 90%, #0125ff, transparent 60%), linear-gradient(160deg, #0a0f3d, #121214); }
.xp-f2 { background-color: #1c1d26; background-image: radial-gradient(90% 70% at 80% 10%, #7d8cff, transparent 60%), radial-gradient(80% 70% at 10% 90%, #0125ff, transparent 60%), linear-gradient(160deg, #15172a, #121214); }
.xp-f3 { background-color: #1a1a1a; background-image: radial-gradient(90% 70% at 20% 90%, #e9ecff, transparent 55%), radial-gradient(80% 70% at 90% 15%, #0125ff, transparent 60%), linear-gradient(160deg, #23243a, #121214); }
.xp-face[style*="background-image"] .xp-mono { display: none; }
.xp-mono { font-family: var(--display); font-size: clamp(8rem, 17vw, 16rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .9); letter-spacing: .02em; transition: transform .8s var(--ease); }
.xp-pcard:hover .xp-mono { transform: scale(1.05) rotate(-2deg); }
.xp-pcard-foot { position: absolute; z-index: 2; left: 24px; bottom: 22px; right: 90px; }
.xp-prole { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.xp-pname { font-family: var(--display); font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; margin-top: 4px; }
.xp-prole, .xp-pname { transition: opacity .3s, transform .5s var(--ease); }
.xp-pcard.swap .xp-prole, .xp-pcard.swap .xp-pname { opacity: 0; transform: translateY(10px); }
.xp-dots { position: absolute; z-index: 2; right: 22px; bottom: 30px; display: flex; gap: 6px; }
.xp-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); transition: width .5s var(--ease), background .4s; }
.xp-dots i.on { width: 32px; background: var(--white); }
.xp-plist { display: flex; flex-direction: column; }
.xp-person { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .25; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.xp-person.on { opacity: 1; transform: none; }
.xp-mini { display: none; }
.xp-pn { font-family: var(--display); font-weight: 400; font-size: clamp(3.6rem, 7.4vw, 8rem); line-height: .86; text-transform: uppercase; margin-top: 12px; }
.xp-pr { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-soft); margin-top: 10px; }
.xp-bio { margin-top: 22px; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.6; color: rgba(255, 255, 255, .75); }
.xp-quote { margin-top: 26px; max-width: 24ch; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.02; text-transform: uppercase; }
.xp-quote span { background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 88% / var(--hl, 0%) 38%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .15s linear; padding: 0 .06em; }

/* ---------- phones & small screens ---------- */
@media (max-width: 820px) {
  .xp-intro { min-height: 100svh; }
  .xp-tag { display: none; }
  .xp-logo img { height: 26px; }
  .xp-w { font-size: clamp(5rem, 27vw, 9rem); }
  .xp-orb { width: 46vw; }
  .xp-mani { height: 150vh; }
  /* story: no pinning, swipe the cards instead */
  .xp-story { height: auto !important; }
  .xp-story-pin { position: relative; top: 0; height: auto; padding: 60px 0; }
  .xp-track { width: auto; transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .xp-track::-webkit-scrollbar { display: none; }
  .xp-card { width: 84vw; height: auto; min-height: 380px; scroll-snap-align: center; grid-template-columns: 1fr; align-content: end; transform: none !important; }
  .xp-num { font-size: 5.5rem; }
}
@media (max-width: 900px) {
  /* people: one column, each person shows their own card */
  .xp-people { grid-template-columns: 1fr; padding-top: 60px; }
  .xp-pcard-wrap { display: none; }
  .xp-person { min-height: 0; opacity: 1; transform: none; padding: 0 0 56px; }
  .xp-mini { display: grid; position: relative; opacity: 1; transform: none; aspect-ratio: 4 / 3.4; max-height: 440px; width: 100%; border-radius: 14px; margin-bottom: 24px; overflow: hidden; }
  .xp-mini .xp-mono { font-size: 9rem; }
}
@media (max-width: 560px) {
  .xp-pn { font-size: clamp(3rem, 15vw, 4.6rem); }
  .xp-quote { font-size: clamp(1.7rem, 8vw, 2.4rem); max-width: none; }
  .xp-mani-text { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .xp-h2 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .xp-card-body h3 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .xp-logo { padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-w > .xp-l, .xp-orb, .xp-orb-core i, .xp-hs, .xp-top, .xp-skip span, .xp-haze i, .xp-scroll span { animation: none; opacity: 1; transform: none; }
  .xp-orb { transform: translate(-50%, -50%); }
  .xp-mani-text .xp-sw { opacity: 1; }
  .xp-person { opacity: 1; transform: none; }
}
