/* Xeropen "crazy" scroll-story sections (shared by the new-design pages). All classes start with x- */
.x-sec, .x-sec * { box-sizing: border-box; }
.x-sec { --navy: #070C2B; --navy2: #0B1440; --blue: #2340C8; --sky: #4F8BFF; --yellow: #FFE45C; --mint: #7BE495; --pink: #FF8FC0; --paper: #F4F6FF; position: relative; color: #fff; padding: 0 !important; overflow: hidden; }
.x-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.x-kick { color: #9AA7E8; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; margin: 0 0 16px; }
.x-big { font: 900 clamp(3.6rem, 11vw, 9.5rem)/.86 var(--display, 'Archivo'), sans-serif; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.02em; margin: 10px 0 18px;
         background: linear-gradient(90deg, var(--c, #fff) 0 50%, rgba(255,255,255,.13) 50% 100%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-big.on-light { background-image: linear-gradient(90deg, var(--c, #2340C8) 0 50%, rgba(11,13,20,.1) 50% 100%); }
.x-sec p.x-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #C9D2F5; max-width: 40ch; margin: 0 0 24px; }
.x-btn { display: inline-flex; align-items: center; gap: 12px; font: 800 1rem var(--display, sans-serif); text-decoration: none; padding: 14px 24px; border-radius: 999px; background: #fff; color: #0B0D14 !important; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.x-btn:hover { background: var(--yellow); }
.x-btn.alt { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.4); }
.x-btn i { font-style: normal; transition: transform .2s; } .x-btn:hover i { transform: translateX(4px); }

/* hero with changing word */
.x-hero { height: 100vh; min-height: 620px; background: radial-gradient(1100px 650px at 72% 35%, #1C3BB8 0%, #070C2B 62%); display: flex; align-items: center; }
.x-hero .x-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 2; }
.x-stack { position: relative; height: clamp(4rem, 10.5vw, 9.6rem); overflow-x: visible; overflow-y: clip; z-index: 3; }
.x-word { position: absolute; left: 0; top: 0; font: 900 clamp(4rem, 10.5vw, 9.6rem)/.92 var(--display, sans-serif); font-stretch: 62%; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.x-word:nth-child(1) { color: var(--yellow); } .x-word:nth-child(2) { color: var(--pink); } .x-word:nth-child(3) { color: var(--mint); } .x-word:nth-child(4) { color: #fff; } .x-word:nth-child(5) { color: var(--sky); }
.x-hero p.x-lead { margin-top: 20px; }
.x-visual { display: flex; justify-content: center; perspective: 1200px; }
.x-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #9AA7E8; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; }
.x-hint i { width: 2px; height: 38px; background: linear-gradient(#fff, transparent); animation: x-drip 1.6s infinite; transform-origin: top; }
@keyframes x-drip { from { transform: scaleY(0); } 70% { transform: scaleY(1); opacity: 1; } to { opacity: 0; } }

/* speed gauge */
.x-gauge { position: relative; width: min(440px, 80vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #142165 0 54%, #0B1440 55% 100%); box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 60px 120px rgba(0,0,0,.5), inset 0 0 60px rgba(79,139,255,.25); transform-style: preserve-3d; }
.x-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-gauge .x-needle { position: absolute; left: 50%; top: 50%; width: 6px; height: 42%; margin-left: -3px; border-radius: 6px; background: linear-gradient(#FFE45C, #FF8A3C); transform-origin: 50% 0; transform: rotate(225deg); box-shadow: 0 0 18px rgba(255,228,92,.7); }
.x-gauge .x-hub { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: #fff; }
.x-gauge .x-read { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; }
.x-gauge .x-read b { display: block; font: 900 clamp(3rem, 8vw, 5.2rem)/1 var(--display, sans-serif); font-stretch: 70%; }
.x-gauge .x-read small { color: #9AA7E8; font-weight: 800; letter-spacing: .2em; }

/* phone (games) */
.x-phone { width: 290px; height: 590px; border-radius: 44px; background: #0D0F1E; padding: 13px; box-shadow: 0 60px 120px rgba(0,0,0,.55), inset 0 0 0 2px #2A2F55; transform: rotateY(-20deg) rotateX(8deg); }
.x-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #F4F6FF; color: #0B0D14; }
.x-scr { position: absolute; inset: 0; padding: 46px 16px 16px; opacity: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; }
.x-scr.first { opacity: 1; }
.x-scr b { font: 900 1.6rem/1 var(--display, sans-serif); font-stretch: 75%; text-transform: uppercase; }
.x-scr .e { font-size: 5rem; }
.x-scr small { font-weight: 700; color: #5A6290; }

/* photo (about) */
.x-photo { position: relative; width: min(380px, 70vw); aspect-ratio: 1; }
.x-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid var(--yellow); box-shadow: 0 50px 100px rgba(0,0,0,.5); position: relative; z-index: 2; }
.x-photo .ring { position: absolute; inset: -30px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); animation: x-turn 30s linear infinite; }
.x-photo .tag { position: absolute; z-index: 3; background: #fff; color: #0B0D14; font-weight: 800; border-radius: 999px; padding: 8px 14px; font-size: .9rem; box-shadow: 0 16px 30px rgba(0,0,0,.3); white-space: nowrap; }
@keyframes x-turn { to { transform: rotate(360deg); } }

/* moving strip */
.x-marq { background: var(--yellow); color: #0B0D14; overflow: hidden; white-space: nowrap; padding: 16px 0; transform: rotate(-2deg) scale(1.04); margin: 36px 0; position: relative; z-index: 3; }
.x-marq .x-track { display: inline-flex; gap: 40px; font: 900 clamp(1.5rem, 3.6vw, 2.8rem)/1 var(--display, sans-serif); font-stretch: 70%; text-transform: uppercase; animation: x-marq 22s linear infinite; }
.x-marq .x-track span::after { content: "✦"; margin-left: 40px; color: #2340C8; }
@keyframes x-marq { to { transform: translateX(-50%); } }
.x-marq-wrap { background: var(--navy, #070C2B); padding: 4px 0; overflow: hidden; }

/* sideways cards */
.x-hz { height: 100vh; min-height: 620px; background: #F4F6FF; color: #0B0D14; }
.x-hz-head { position: absolute; top: 11vh; left: max(20px, calc((100% - 1200px) / 2)); z-index: 2; }
.x-hz-head .x-kick { color: #6A7190; }
.x-hz-track { position: absolute; left: 0; top: 44vh; display: flex; gap: 24px; padding-left: max(20px, calc((100% - 1200px) / 2)); will-change: transform; }
.x-card { flex: none; width: 330px; height: 290px; border-radius: 28px; padding: 24px; color: #0B0D14 !important; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: transform .3s; }
.x-card:hover { transform: translateY(-8px) rotate(-1deg); }
.x-card b { font: 900 2.3rem/.95 var(--display, sans-serif); font-stretch: 70%; text-transform: uppercase; }
.x-card small { font-weight: 700; font-size: .95rem; }
.x-card .e { position: absolute; right: -8px; bottom: -14px; font-size: 7rem; transform: rotate(-12deg); }
.x-card .go { font: 800 .85rem var(--display, sans-serif); }
.x-card.dark { background: #0B1440; color: #fff !important; }

/* chapters */
.x-chap { min-height: 92vh; display: flex; align-items: center; }
.x-chap .x-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.x-art { position: relative; height: 430px; }
.x-art .blob { position: absolute; inset: 10% 6%; border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%; background: var(--c2, #2340C8); opacity: .9; animation: x-morph 9s ease-in-out infinite; }
@keyframes x-morph { 50% { border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%; transform: rotate(8deg) scale(1.04); } }
.x-art .fl { position: absolute; font-size: 4rem; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.x-art .card { position: absolute; background: #fff; color: #0B0D14; border-radius: 20px; padding: 14px 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); font-weight: 700; width: 230px; }
.x-art .card small { display: block; color: #2340C8; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }

/* numbers */
.x-nums { padding: 100px 0 !important; background: #070C2B; }
.x-nums .x-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.x-n { border-top: 2px solid #2A3373; padding-top: 18px; }
.x-n b { display: block; font: 900 clamp(2.8rem, 6.5vw, 5.6rem)/1 var(--display, sans-serif); font-stretch: 70%; color: var(--yellow); }
.x-n span { color: #C9D2F5; font-weight: 600; }

/* timeline (about) */
.x-tl { height: 100vh; min-height: 620px; background: #0B1440; }
.x-tl .x-hz-track { top: 40vh; }
.x-step { flex: none; width: 380px; border-radius: 28px; padding: 26px; background: #142165; border: 1px solid #2A3A8F; color: #fff; position: relative; }
.x-step .yr { font: 900 3.4rem/1 var(--display, sans-serif); font-stretch: 70%; color: var(--yellow); }
.x-step b { display: block; font: 800 1.4rem var(--display, sans-serif); margin: 8px 0 6px; }
.x-step p { color: #C9D2F5; margin: 0; }
.x-step::before { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; height: 2px; background: #2A3A8F; }
.x-step:first-child::before { display: none; }

/* cursor + curtain */
.x-cur { position: fixed; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #FFE45C; z-index: 999; pointer-events: none; mix-blend-mode: difference; transition: width .25s, height .25s, margin .25s; display: flex; align-items: center; justify-content: center; font: 800 .8rem var(--display, sans-serif); color: #000; }
.x-cur.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; }
.x-cur span { opacity: 0; transition: opacity .2s; } .x-cur.big span { opacity: 1; }
@media (hover: none) { .x-cur { display: none; } }
.x-curtain { position: fixed; inset: 0; z-index: 900; background: #FFE45C; transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.x-testnote { position: fixed; left: 76px; bottom: 18px; z-index: 85; background: rgba(11,20,64,.85); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: .78rem; font-weight: 700; }
.x-testnote a { color: #FFE45C; }

@media (max-width: 900px) {
  .x-hero .x-wrap, .x-chap .x-wrap { grid-template-columns: 1fr; }
  .x-hero { height: auto; min-height: 100vh; padding: 100px 0 90px !important; }
  .x-gauge { width: min(300px, 78vw); }
  .x-phone { width: 210px; height: 430px; border-radius: 34px; } .x-screen { border-radius: 24px; }
  .x-art { height: 300px; } .x-art .fl { font-size: 2.8rem; } .x-art .card { width: 180px; font-size: .9rem; }
  .x-card { width: 250px; height: 230px; } .x-card b { font-size: 1.8rem; } .x-card .e { font-size: 5rem; }
  .x-step { width: 280px; }
  .x-nums .x-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .x-marq .x-track, .x-art .blob, .x-photo .ring, .x-hint i { animation: none; } }

/* ===== x-rest: the rest of a page, restyled as a dark scroll story ===== */
.x-rest { position: relative; background: linear-gradient(180deg, #070C2B 0%, #0B1440 40%, #0E1A55 100%); color: #E4E8FF; padding: 40px 0 90px; overflow: hidden; }
.x-rest::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(79,139,255,.18), transparent 65%); pointer-events: none; }
.x-rest > *, .x-rest section, .x-rest article, .x-rest .narrow, .x-rest .wrap { background: transparent !important; color: inherit; }
.x-rest .narrow, .x-rest article.narrow, .x-rest .wrap { width: min(1100px, 100% - 40px); max-width: none; }
.x-rest section { padding: 30px 0 !important; }
.x-rest h2 { font: 900 clamp(2.4rem, 6.2vw, 5.2rem)/.9 var(--display, sans-serif); font-stretch: 64%; text-transform: uppercase; letter-spacing: -.01em; margin: 70px 0 22px;
             background: linear-gradient(90deg, var(--c, #FFE45C) 0 50%, rgba(255,255,255,.16) 50% 100%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.x-rest h2:nth-of-type(3n+2) { --c: #7BE495; } .x-rest h2:nth-of-type(3n) { --c: #FF8FC0; }
.x-rest h3 { color: #fff; font-family: var(--display, sans-serif); }
.x-rest p, .x-rest dd, .x-rest li { color: #C9D2F5; font-size: 1.08rem; line-height: 1.7; }
.x-rest p { max-width: 72ch; }
.x-rest strong, .x-rest b { color: #fff; }
.x-rest a { color: #FFE45C; }
.x-rest a.btn, .x-rest .btn { color: #0B0D14; }
.x-rest .crumbs, .x-rest .meta { color: #8C97D6 !important; }
.x-rest ul:not(.x-plain) { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.x-rest ul:not(.x-plain) > li { margin: 0; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); transition: transform .3s, border-color .3s, background .3s; }
.x-rest ul:not(.x-plain) > li:hover { transform: translateY(-6px) rotate(-.6deg); border-color: #FFE45C; background: rgba(255,255,255,.1); }
.x-rest ol { padding-left: 1.3em; }
.x-rest ol > li { margin: 0 0 10px; }
.x-rest .table-scroll, .x-rest table { border-radius: 18px; overflow: hidden; }
.x-rest table { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.x-rest th { background: #2340C8 !important; color: #fff !important; }
.x-rest td { color: #DDE3FF; border-bottom-color: rgba(255,255,255,.1) !important; }
.x-rest tr:hover td { background: rgba(255,228,92,.06); }
.x-rest details { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 4px 18px; margin: 0 0 10px; }
.x-rest details[open] { border-color: #FFE45C; }
.x-rest summary { color: #fff; font-weight: 700; padding: 12px 0; cursor: pointer; }
.x-rest .quick, .x-rest .toc, .x-rest .warn, .x-rest .cta, .x-rest .related, .x-rest .author-box, .x-rest .speech, .x-rest .tip, .x-rest dl > div, .x-rest .soc-card, .x-rest .contact-list, .x-rest .why dl div {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 22px !important; color: #E4E8FF !important; }
.x-rest .cta { background: linear-gradient(135deg, #2340C8, #4F8BFF) !important; }
.x-rest dt { color: #fff; }
.x-rest figure img, .x-rest img.ph { border-radius: 22px; }
.x-rest .skills span, .x-rest .chips span, .x-rest .pill-list span { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.18); }
.x-rest .tl li::before { box-shadow: 0 0 0 4px #0B1440 !important; }
.x-rest .tl b { color: #FFE45C !important; }

/* photo chapters */
.x-shot { position: relative; height: 470px; }
.x-shot img { position: absolute; width: 62%; height: auto; border-radius: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.5); object-fit: cover; }
.x-shot .a { left: 2%; top: 0; transform: rotate(-4deg); border: 6px solid #fff; }
.x-shot .b { right: 0; bottom: 0; width: 48%; transform: rotate(5deg); border: 6px solid #FFE45C; }
.x-shot .cap { position: absolute; left: 6%; bottom: 6%; z-index: 3; background: #fff; color: #0B0D14; font-weight: 800; border-radius: 999px; padding: 8px 14px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }

/* game page hero: smaller pin, play button */
.x-gamehero .x-icon { font-size: clamp(7rem, 16vw, 13rem); filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); display: inline-block; }
@media (max-width: 900px) { .x-shot { height: 360px; } .x-rest ul:not(.x-plain) { grid-template-columns: 1fr; } .x-rest h2 { margin-top: 46px; } }
/* game pages: the info section under the board breaks out to full width */
.x-rest.x-rest-break { width: 100vw !important; max-width: none !important; margin: 40px 0 0 calc(50% - 50vw) !important;
  padding: 50px max(20px, calc((100vw - 1100px) / 2)) 90px !important; box-sizing: border-box; }

/* split giant words (letters fly in) */
.x-big.split { background: none !important; color: var(--c, #fff); -webkit-text-fill-color: var(--c, #fff); }
.x-big.split .w { display: inline-block; white-space: nowrap; }
.x-big.split .c { display: inline-block; will-change: transform; }
.x-chap { will-change: clip-path; }

/* buttons inside the dark story: always readable */
.x-rest .btn-primary, .x-rest a.btn-primary { color: #fff !important; }
.x-rest .btn-ghost, .x-rest a.btn-ghost { color: #FFE45C !important; border-color: #FFE45C !important; background: transparent !important; }
.x-rest .btn-ghost:hover { background: #FFE45C !important; color: #0B0D14 !important; }

/* phones only: chapter cards stack neatly and never overlap */
@media (max-width: 700px) {
  .x-art { height: auto; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 30px 0; }
  .x-art .blob { inset: 4% 0; }
  .x-art .fl { font-size: 2.8rem !important; }
  .x-art .card { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: min(74%, 270px); z-index: 2; align-self: flex-end; }
  .x-art .card ~ .card { align-self: flex-start; }
}

/* labels on the photo are information, not buttons: dark glass, no shadow (16-11-2026) */
.x-photo .tag { background: rgba(7,12,43,.78); color: #fff; border: 1px solid rgba(255,255,255,.3); box-shadow: none; border-radius: 10px; font-weight: 700; font-size: .82rem; padding: 6px 11px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: default; }
@media (max-width: 700px) {
  .x-visual { margin-top: 44px; }
  .x-nums { padding: 64px 0 !important; }
  .x-hint { display: none; }
  .x-shot { margin-top: 40px; }
  .x-photo { width: min(250px, 64vw); margin-bottom: 96px; }
  .x-photo .tag { font-size: .7rem; padding: 4px 9px; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; }
  .x-photo .tag:nth-of-type(2) { left: -6% !important; top: calc(100% + 40px) !important; }
  .x-photo .tag:nth-of-type(3) { right: -6% !important; top: calc(100% + 40px) !important; }
  .x-photo .tag:nth-of-type(4) { left: 0 !important; right: 0 !important; margin: 0 auto; width: max-content; top: calc(100% + 72px) !important; }
}

/* photo caption is information, not a button */
.x-shot .cap { background: rgba(7,12,43,.8); color: #fff; border: 1px solid rgba(255,255,255,.3); box-shadow: none; border-radius: 10px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
