/* Nexplay holding page. Same tokens, type and glow as the main site (src/styles/tokens.css). No JS anywhere.
   The artwork is a stack of layers on one stage that covers the screen (like object-fit: cover); CSS moves the
   layers, so every frame is as sharp as the still. Layer boxes come from the build (.hold__stage { --ar: 2752 / 1536; --arn: 1.79167;
  .hold__group { left: 42.8416%; top: 13.2161%; width: 49.4913%; transform-origin: 98.4581% 39.8467%; }
  .hold__can { left: 52.4709%; top: 65.8854%; width: 5.5233%; }
  .hold__die-a { left: 85.1381%; top: 78.9063%; width: 3.0887%; }
  .hold__die-b { left: 88.3358%; top: 75.2604%; width: 3.2340%; }
}
@media (max-width: 767px) {
  .hold__stage { --ar: 1536 / 2752; --arn: 0.55814;
  .hold__group { left: 6.6406%; top: 44.1860%; width: 83.7891%; transform-origin: 98.2906% 38.5714%; }
  .hold__can { left: 21.4844%; top: 74.2006%; width: 9.7656%; }
  .hold__die-a { left: 78.8411%; top: 81.3227%; width: 5.3385%; }
  .hold__die-b { left: 84.4401%; top: 79.2878%; width: 5.5339%; }
}
}
 below). */
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-italic.59b48100.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400.b0a8ad37.woff2') format('woff2'); }

:root {
  --ink: #0b0f14; --cyan: #00fefe; --text-d3: #8392a0;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --font-sans: 'Barlow', system-ui, sans-serif;
  --pad: clamp(24px, 6vw, 96px); --ease: cubic-bezier(.4, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: #fff; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }

.hold { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; container-type: size; }

/* stage: the still's own aspect, scaled to cover the screen, anchored to the right on wide screens */
.hold__stage { --ox: .68; --oy: .5; position: absolute; z-index: -2; aspect-ratio: var(--ar);
  width: max(100cqw, 100cqh * var(--arn));
  left: calc((100cqw - max(100cqw, 100cqh * var(--arn))) * var(--ox));
  top: calc((100cqh - max(100cqw / var(--arn), 100cqh)) * var(--oy)); }
.hold__bg, .hold__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hold__layer { position: absolute; display: block; will-change: transform; }
.hold__layer img { width: 100%; height: auto; }
.hold__stage { --ar: 2752 / 1536; --arn: 1.79167;
  .hold__group { left: 42.8416%; top: 13.2161%; width: 49.4913%; transform-origin: 98.4581% 39.8467%; }
  .hold__can { left: 52.4709%; top: 65.8854%; width: 5.5233%; }
  .hold__die-a { left: 85.1381%; top: 78.9063%; width: 3.0887%; }
  .hold__die-b { left: 88.3358%; top: 75.2604%; width: 3.2340%; }
}
@media (max-width: 767px) {
  .hold__stage { --ar: 1536 / 2752; --arn: 0.55814;
  .hold__group { left: 6.6406%; top: 44.1860%; width: 83.7891%; transform-origin: 98.2906% 38.5714%; }
  .hold__can { left: 21.4844%; top: 74.2006%; width: 9.7656%; }
  .hold__die-a { left: 78.8411%; top: 81.3227%; width: 5.3385%; }
  .hold__die-b { left: 84.4401%; top: 79.2878%; width: 5.5339%; }
}
}

/* motion: the group rocks a quarter of a degree round the chair back; the props drift on their own paths */
.hold__group { animation: hold-rock 9s ease-in-out infinite alternate; }
.hold__can { animation: hold-drift-a 6.4s ease-in-out -2s infinite alternate; }
.hold__die-a { animation: hold-drift-b 5.6s ease-in-out -1s infinite alternate; }
.hold__die-b { animation: hold-drift-c 7.2s ease-in-out -4s infinite alternate; }
@keyframes hold-rock { from { rotate: -.25deg; } to { rotate: .25deg; } }
@keyframes hold-drift-a { from { transform: translateY(7%) rotate(-4deg); } to { transform: translateY(-7%) rotate(4deg); } }
@keyframes hold-drift-b { from { transform: translateY(9%) rotate(6deg); } to { transform: translateY(-9%) rotate(-6deg); } }
@keyframes hold-drift-c { from { transform: translateY(-8%) rotate(-7deg); } to { transform: translateY(8%) rotate(5deg); } }

/* the monitor's light, breathing softly over the scene */
.hold__glow { position: absolute; left: 50%; top: 14%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 254 254 / .2), rgb(0 254 254 / 0)); mix-blend-mode: screen; pointer-events: none; animation: hold-glow 4.8s ease-in-out infinite alternate; }
@keyframes hold-glow { from { opacity: .25; } to { opacity: 1; } }

/* dark side for the words */
.hold::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(11 15 20 / .7) 0%, rgb(11 15 20 / .3) 28%, rgb(11 15 20 / 0) 50%); }

.hold__top { padding: clamp(24px, 4vw, 40px) var(--pad) 0; }
.hold__logo { display: inline-block; }
.hold__logo img { width: auto; height: clamp(30px, 2.6vw, 40px); }
.hold__title { align-self: center; margin: 0; padding: 0 var(--pad); font: 800 italic clamp(3.5rem, 7.6vw, 7.5rem)/.9 var(--font-display); text-transform: uppercase; }
.hold__title span { display: block; color: var(--cyan); }
.hold__title h1 { margin: 0; font: inherit; }
.hold__home { display: inline-flex; align-items: center; height: 44px; margin-top: 28px; padding: 0 20px; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; font: 600 1rem/1 var(--font-sans); font-style: normal; text-transform: none; text-decoration: none; transition: border-color 150ms var(--ease); }
.hold__home:hover, .hold__home:focus-visible { border-color: #fff; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.hold__foot { padding: 0 var(--pad) clamp(20px, 3vw, 32px); }
.hold__foot p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--text-d3); }

/* phones: the portrait composition, words in the dark space above the gamer */
@media (max-width: 767px) {
  .hold { grid-template-rows: auto auto 1fr auto; }
  .hold__stage { --ox: .5; --oy: 1; }
  .hold__glow { left: 18%; top: 50%; width: 70%; }
  .hold::after { background: linear-gradient(180deg, rgb(11 15 20 / .5) 0%, rgb(11 15 20 / 0) 30%, rgb(11 15 20 / 0) 82%, rgb(11 15 20 / .6) 100%); }
  .hold__title { align-self: start; margin-top: clamp(20px, 5svh, 48px); font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .hold__foot { grid-row: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .hold__group, .hold__can, .hold__die-a, .hold__die-b, .hold__glow { animation: none; }
}
