/* ══════════════════════════════════════════════════════════════
   NKPROD — design system
   ══════════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --ink:        #07070a;
  --ink-2:      #0b0c11;
  --ink-3:      #101219;
  --line:       rgba(255,255,255,.075);
  --line-2:     rgba(255,255,255,.14);

  /* type */
  --paper:      #f1efea;
  --paper-dim:  rgba(241,239,234,.62);
  --paper-mute: rgba(241,239,234,.38);

  /* live accent — swapped per project scene */
  --accent:     #7c8bff;
  --accent-2:   #b9c2ff;
  --accent-rgb: 124,139,255;

  /* families */
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --gutter: clamp(20px, 5vw, 88px);
  --max:    clamp(1120px, 84vw, 1520px);
  --ease:   cubic-bezier(.22,1,.36,1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p  { margin: 0; }
b, strong { font-weight: 600; }

::selection { background: rgba(var(--accent-rgb), .32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ═══ nav ══════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(7,7,10,.82), rgba(7,7,10,0));
  backdrop-filter: blur(0px);
  transition: background .45s ease, backdrop-filter .45s ease, padding .45s var(--ease);
}
.nav.is-stuck {
  padding: 12px var(--gutter);
  background: rgba(7,7,10,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: baseline; gap: 2px; }
.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.04em;
}
.brand-tag {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--accent-2);
  transition: color .8s var(--ease);
}

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .84rem;
  color: var(--paper-dim);
  transition: color .3s, background .3s;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--paper);
  background: rgba(255,255,255,.05);
}
.nav-num {
  font-family: var(--mono);
  font-size: .58rem;
  color: var(--accent);
  transition: color .8s var(--ease);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: border-color .3s, color .3s, background .3s;
}
.nav-cta:hover { color: var(--paper); border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.nav-cta-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.progress {
  position: fixed;
  left: 0; top: 0; right: 0;
  height: 2px;
  z-index: 101;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: background .8s var(--ease);
}

/* ═══ shared type ══════════════════════════════════════════════ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: background .8s var(--ease);
}

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line-in { display: block; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.btn svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: transform .4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid svg { position: relative; z-index: 1; }
.btn-solid::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn-solid:hover::after { transform: translateY(0); }
.btn-solid:hover { color: #fff; }
.btn-solid:hover svg { transform: translateY(3px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper-dim); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }

/* ═══ hero ═════════════════════════════════════════════════════ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(104px, 13vh, 150px) var(--gutter) 0;
}
.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9.2vw, 10rem);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 26px 0 0;
  font-variation-settings: "opsz" 96;
}
.hero-title em {
  font-size: 1.02em;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background .8s var(--ease);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-top: clamp(30px, 5vw, 58px);
}
.hero-lead {
  max-width: 50ch;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  color: var(--paper-dim);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--max);
  width: 100%;
  margin: clamp(34px, 5vh, 66px) auto 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.hero-bar b { color: var(--paper); font-weight: 500; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i {
  display: block;
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, var(--paper-mute), transparent);
  animation: cueDrop 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(26px); opacity: 0; }
}

/* ═══ ticker ═══════════════════════════════════════════════════ */

.ticker {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--paper-dim);
}
.ticker-item span[aria-hidden] { color: var(--accent); font-size: .5em; transition: color .8s var(--ease); }

/* ═══ section heads ════════════════════════════════════════════ */

.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px clamp(30px, 6vw, 90px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 190px) var(--gutter) clamp(40px, 7vh, 80px);
}
.sec-num {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--accent);
  padding-top: .9em;
  transition: color .8s var(--ease);
}
.sec-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}
.sec-title em { color: var(--accent); transition: color .8s var(--ease); }
.sec-note {
  grid-column: 2;
  max-width: 46ch;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: var(--paper-dim);
}

/* ═══ work scenes ══════════════════════════════════════════════ */

.scene { position: relative; }
.scene-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter) 60px;
  overflow: hidden;
}
.scene-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.scene.is-flipped .scene-grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); }
.scene.is-flipped .scene-copy { order: 2; }
.scene.is-flipped .scene-visual { order: 1; }

/* copy column */
.scene-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.scene-index { color: var(--accent); transition: color .8s var(--ease); }
.scene-rule { flex: 1; height: 1px; background: var(--line); max-width: 60px; }
.scene-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .58rem;
}
.scene-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.scene-status.is-live { color: #4ade80; }
.scene-status.is-dev  { color: #fbbf24; }
.scene-status.is-soon { color: var(--accent-2); }

.scene-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin: 18px 0 0;
  font-variation-settings: "opsz" 72;
}
.scene-desc {
  margin-top: 16px;
  max-width: 42ch;
  font-size: clamp(.94rem, 1.15vw, 1.03rem);
  color: var(--paper-dim);
}
.scene-facts {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.scene-facts li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.scene-facts b {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-weight: 400;
  padding-top: .32em;
}
.scene-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--paper-dim);
}
.scene-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--paper);
  border-bottom: 1px solid var(--line-2);
  transition: border-color .3s, color .3s, gap .3s var(--ease);
}
.scene-link:hover { color: var(--accent-2); border-color: var(--accent); gap: 14px; }
.scene-link.is-off { color: var(--paper-mute); border-color: transparent; pointer-events: none; }
.scene-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ═══ device frames — one language for every product ═══════════ */

.scene-visual { position: relative; }

.device {
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
}
.device::before {                            /* accent bloom */
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(ellipse at 50% 55%, rgba(var(--accent-rgb), .3), transparent 68%);
  filter: blur(46px);
  opacity: .85;
  z-index: -1;
  transition: background .8s var(--ease);
}

/* — browser frame — */
.browser {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.11);
  background: #14151a;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255,255,255,.05) inset,
    0 40px 90px -30px rgba(0,0,0,.9),
    0 0 0 1px rgba(0,0,0,.5);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(to bottom, #1c1e25, #16171d);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.browser-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.browser-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 320px;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--paper-mute);
}
.browser-url svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; flex: 0 0 auto; }
.browser-view {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
  container-type: inline-size;
  background: var(--ink);
}
.sheen {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(112deg,
    rgba(255,255,255,.055) 0%,
    rgba(255,255,255,0) 34%,
    rgba(255,255,255,0) 68%,
    rgba(255,255,255,.025) 100%);
}

/* — phone frame — */
.phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(-40px, -3vw, 0px);
  min-height: 56svh;
}
.phone {
  position: relative;
  width: clamp(158px, 17vw, 252px);
  aspect-ratio: 1242 / 2688;
  border-radius: 13% / 6%;
  padding: 2.6%;
  background: linear-gradient(150deg, #6c6f7a 0%, #23252c 26%, #3d4048 52%, #1b1d22 78%, #5c5f69 100%);
  box-shadow:
    0 30px 70px -22px rgba(0,0,0,.92),
    0 0 0 1px rgba(0,0,0,.6);
  flex: 0 0 auto;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 11% / 5.2%;
  overflow: hidden;
  background: #0E1220;
}
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.phone-screen img.is-on { opacity: 1; }
.phone-island {
  position: absolute;
  left: 50%; top: 1.6%;
  transform: translateX(-50%);
  width: 31%; height: 3.1%;
  border-radius: 999px;
  background: #05060a;
  z-index: 3;
}
.phone--back {
  transform: rotate(-9deg) translateX(3%) scale(.88);
  z-index: 1;
  opacity: .92;
}
.phone--front {
  transform: rotate(4deg) translateX(-1%);
  z-index: 2;
}

/* — game caption chips — */
.shot-tabs {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.shot-tabs b {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7,7,10,.75);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--paper-mute);
  transition: color .3s, border-color .3s;
}
.shot-tabs b.is-on { color: var(--paper); border-color: var(--accent); }

/* ═══ studio ═══════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(38px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 12vh, 150px);
}
.about-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.7vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}
.about-body {
  margin-top: 26px;
  max-width: 58ch;
  font-size: clamp(.96rem, 1.15vw, 1.05rem);
  color: var(--paper-dim);
}
.about-body b { color: var(--paper); font-weight: 500; }

.stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stat-val {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--accent);
  min-width: 2ch;
  transition: color .8s var(--ease);
}
.stat span {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.capabilities { margin-top: 40px; }
.capabilities h3 {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 14px;
}
.capabilities li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--paper-dim);
}
.capabilities li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  transform: translateY(-3px);
  transition: background .8s var(--ease);
}

/* ═══ contact ══════════════════════════════════════════════════ */

.contact-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(70px, 10vh, 130px);
}
.contact-lead {
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--paper-dim);
}

.mailto {
  display: block;
  margin: clamp(34px, 6vw, 64px) 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 7.4vw, 6.6rem);
  line-height: 1;
  letter-spacing: -.05em;
  overflow: hidden;
  white-space: nowrap;
}
.mailto-text { position: relative; display: inline-block; }
.mailto-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 0;
  overflow: hidden;
  color: var(--accent);
  white-space: nowrap;
  transition: width .55s var(--ease);
}
.mailto:hover .mailto-text::after { width: 100%; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-links a {
  position: relative;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  overflow: hidden;
  transition: color .35s;
}
.contact-links a span { position: relative; z-index: 1; }
.contact-links a::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.contact-links a:hover { color: #fff; }
.contact-links a:hover::before { transform: translateY(0); }

/* ═══ footer ═══════════════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.footer a { transition: color .3s; }
.footer a:hover { color: var(--paper); }

/* ═══ reveal states (JS adds .is-in) ══════════════════════════ */

.reveal-line { opacity: 0; transform: translateY(22px); }
.reveal-line.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}
.no-js-hidden { opacity: 1 !important; transform: none !important; }

/* ═══ responsive ══════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .scene-grid,
  .scene.is-flipped .scene-grid { grid-template-columns: 1fr; gap: 30px; }
  .scene.is-flipped .scene-copy { order: 1; }
  .scene.is-flipped .scene-visual { order: 2; }
  .scene-stage { position: static; min-height: 0; padding: 60px var(--gutter); }
  .scene { min-height: 0 !important; }
  .about-grid { grid-template-columns: 1fr; }
  .rail { display: none; }
  .browser-view { aspect-ratio: 16 / 11.6; }

}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta { font-size: .58rem; padding: 8px 13px; }
  .hero { padding-top: 110px; }
  .hero-foot { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .hero-bar { font-size: .6rem; gap: 12px; }
  .eyebrow { align-items: flex-start; font-size: .6rem; letter-spacing: .13em; }
  .eyebrow-dot { margin-top: .52em; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .sec-note { grid-column: 1; }
  .sec-num { padding-top: 0; }
  .scene-facts li { grid-template-columns: 1fr; gap: 3px; }
  .phones { min-height: 0; gap: 6px; }
  .phone { width: min(41vw, 190px); }
  .phone--back { transform: rotate(-6deg) scale(.88); }
  .phone--front { transform: rotate(3deg); }
  .browser-url { max-width: none; }

  .browser-view { aspect-ratio: 4 / 3.5; }
  .footer { justify-content: flex-start; }
  .footer-mid { display: none; }
}

@media (max-width: 520px) {
  .mailto { font-size: 11vw; }


}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* ═══ reduced motion ══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { animation: none; }
  .reveal-line { opacity: 1; transform: none; }
  .intro { display: none; }
  .cursor { display: none; }
  .scene-stage { position: static; min-height: 0; }
  .scene { min-height: 0 !important; }
  #field { display: none; }
}

/* ═══ late corrections & fallbacks ════════════════════════════ */

/* masked hero lines */
.hero-title .line-in { transform: translateY(112%); }
.hero-title.is-in .line-in {
  transform: none;
  transition: transform 1.15s var(--ease);
}
.hero-title.is-in .line:nth-child(1) .line-in { transition-delay: .04s; }
.hero-title.is-in .line:nth-child(2) .line-in { transition-delay: .13s; }
.hero-title.is-in .line:nth-child(3) .line-in { transition-delay: .22s; }

/* if JS never arrives, show everything */
html.anim-off .reveal-line { opacity: 1; transform: none; }
html.anim-off .hero-title .line-in { transform: none; }
html.anim-off .intro { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line-in { transform: none; }
}

/* fine-tune the ViroPop pair: overlap for depth, but keep the home
   screen's wordmark and Play button readable */
.phones { gap: 0; padding-bottom: 34px; }
.phone--back { margin-right: -5%; }
.shot-tabs { bottom: -14px; }

/* the real App Store icon, sitting with the game's title */
.app-icon {
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-right: .2em;
  border-radius: 23%;
  vertical-align: -.03em;
  box-shadow: 0 .06em .18em rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
}

/* Classic portfolio: ordinary document flow, visible content, native scrolling. */
:root { --ink: #111114; --ink-2: #18181c; --paper-mute: #a09da7; --accent: #b6a1d4; --accent-2: #d7c7ea; --accent-rgb: 182,161,212; }
html { scroll-behavior: auto; scroll-padding-top: 100px; }
.reveal-line, .hero-title .line-in { opacity: 1; transform: none; }
.nav { position: sticky; background: var(--ink); border-bottom: 1px solid var(--line-2); backdrop-filter: none; }
.nav-cta-pulse { animation: none; }
.hero { min-height: auto; padding-top: clamp(55px, 7vw, 110px); }
.hero-title { font-size: clamp(2.9rem, 7vw, 7.5rem); line-height: 1.02; }
.hero-title em { background: none; color: var(--accent-2); font-family: var(--serif); font-weight: 400; }
.hero-bar { margin-top: 64px; }
.hero-foot { align-items: center; }
.scroll-cue i { animation: none; }
.scene-stage { position: static; min-height: 0; padding: 64px var(--gutter); overflow: visible; }
.scene { min-height: 0; border-top: 1px solid var(--line); }
.scene-grid { gap: clamp(32px, 5vw, 70px); }
.scene:nth-child(even) { background: var(--ink-2); }
.device { will-change: auto; transform: none; }
.device::before { display: none; }
.browser { box-shadow: none; border-radius: 10px; }
.phones { min-height: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 12px; }
.media { padding: 80px 0 96px; border-top: 1px solid var(--line-2); background: #1b191e; }
.media-inner { width: calc(100% - 2 * var(--gutter)); max-width: var(--max); margin: 0 auto; }
.media .sec-head { padding-top: 0; }
.featured-video { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; margin: 48px 0 90px; }
.video-player { aspect-ratio: 16 / 10; background: #101013; overflow: hidden; }
.video-player iframe, .video-play { width: 100%; height: 100%; border: 0; }
.video-play { display: block; position: relative; padding: 0; cursor: pointer; background: #101013; color: var(--paper); font: inherit; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.video-play:hover img { opacity: 1; }
.play-label { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 3px; font-weight: 600; }
.video-copy h3 { font: 500 clamp(2rem, 3.6vw, 3.5rem)/1.12 var(--display); letter-spacing: -.04em; margin: 20px 0; }
.video-copy > p:not(.eyebrow) { color: var(--paper-dim); max-width: 45ch; }
.text-link { display: inline-block; margin-top: 24px; color: var(--accent-2); border-bottom: 1px solid currentColor; }
.video-copy .video-privacy { font-size: .75rem; margin-top: 18px; }
.network-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.network-heading h3 { font: 500 clamp(1.5rem, 3vw, 2.2rem) var(--display); }
.network-heading > span { color: var(--paper-dim); font-size: .8rem; }
.network-row { display: grid; grid-template-columns: 2fr 1fr 1fr .6fr; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.network-row:hover { color: var(--accent-2); }
.network-row > div:not(:first-child) { display: flex; flex-direction: column; }
.network-row b { font: 500 clamp(1.3rem, 2.6vw, 2.2rem) var(--display); font-variant-numeric: tabular-nums; }
.network-row span, .network-name p { font-size: .8rem; color: var(--paper-dim); }
.network-name h3 { font: 600 1.25rem var(--display); margin: 5px 0; }
.network-name h3 span { color: var(--accent-2); }
.network-name .network-platform { text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; color: var(--accent-2); }
.stats-note { border-top: 1px solid var(--line-2); padding-top: 20px; color: var(--paper-dim); font-size: .78rem; max-width: 85ch; }
@media (max-width: 780px) {
  .nav { flex-wrap: wrap; gap: 12px; padding: 14px var(--gutter); }
  .nav-links { display: flex; order: 3; width: 100%; justify-content: space-between; }
  .nav-links a { padding: 6px 4px; font-size: .8rem; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { font-size: clamp(2.5rem, 8.5vw, 4rem); }
  .hero-bar { margin-top: 40px; }
  .hero-bar .scroll-cue { display: none; }
  .featured-video { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .network-heading { flex-direction: column; gap: 8px; }
  .network-row { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .network-name { grid-column: 1 / -1; margin-bottom: 4px; }
  .network-row b { font-size: 1.4rem; }
  .media { padding: 56px 0; }
  .scene-stage { padding: 42px var(--gutter); }
}

/* A moving print of light and orbital geometry, behind the document. */
body { isolation: isolate; background: #191419; }
main { position: relative; z-index: 1; }
.energy { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; background: #21171e; }
.project-orbit-layer { position: fixed; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; contain: strict; transition: opacity .3s ease; }
.project-orbit-layer.is-background { z-index: 0; opacity: .32; }
.project-orbit-layer.is-background .orbit-art { pointer-events: none; }
.energy-wash { position: absolute; width: 100vmax; height: 100vmax; will-change: transform; }
.energy-wash--coral {
  top: -50vmax; right: -34vmax;
  background: radial-gradient(ellipse, #a23e36 0%, #74302f 18%, #48252c 34%, transparent 66%);
  animation: light-drift 16s ease-in-out infinite alternate;
}
.energy-wash--gold {
  bottom: -76vmax; left: -35vmax;
  background: radial-gradient(ellipse, #9b663d 0%, #674434 22%, transparent 62%);
  animation: light-drift 21s ease-in-out -8s infinite alternate-reverse;
}
.energy-orbits { position: absolute; top: -6vh; right: -17vw; width: max(64vw, 690px); aspect-ratio: 1; opacity: .7; }
.energy-orbit-track { position: absolute; inset: 0; animation: orbit-turn 48s linear infinite; }
.energy-orbits svg { width: 100%; height: 100%; }
.orbit-project { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.orbit-art { display: block; position: relative; width: clamp(54px, 5.2vw, 82px); aspect-ratio: 1; animation: orbit-upright 48s linear infinite; pointer-events: auto; border-radius: 12px; }
.orbit-art:hover img, .orbit-art:focus-visible img { border-color: #ffcf9f; background: #493039; }
.orbit-art:focus-visible { outline: 2px solid #ffcf9f; outline-offset: 5px; }
.project-orbit-layer:has(.orbit-art:is(:hover, :focus-visible)) .energy-orbit-track,
.project-orbit-layer:has(.orbit-art:is(:hover, :focus-visible)) .orbit-art { animation-play-state: paused; }
.orbit-art img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; border-radius: 18%; background: #29232b; border: 1px solid #ad807160; box-shadow: 0 8px 25px #100c1450; }
.orbit-art span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; color: #f3ded2; font: 500 clamp(9px, .75vw, 12px)/1.2 var(--body); letter-spacing: .02em; }
.orbit-project--video .orbit-art { aspect-ratio: 9 / 13; }
.orbit-project--video img { object-fit: cover; padding: 0; border-radius: 8px; }
/* Keep every link reachable when navigating by keyboard, including off-screen orbits. */
.project-orbit-layer:has(.orbit-art:focus-visible) .energy-orbits { top: 100px; right: 20px; width: min(360px, calc(100vw - 40px)); aspect-ratio: auto; opacity: 1; }
.project-orbit-layer:has(.orbit-art:focus-visible) .energy-orbit-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 18px; padding: 24px 18px 40px; border: 1px solid #79615c; border-radius: 16px; background: #241c21; animation: none; }
.project-orbit-layer:has(.orbit-art:focus-visible) svg { display: none; }
.project-orbit-layer:has(.orbit-art:focus-visible) .orbit-project { position: static; transform: none; justify-self: center; }
.project-orbit-layer:has(.orbit-art:focus-visible) .orbit-art { width: 64px; aspect-ratio: 1; animation: none; }
.energy-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,17,24,.8), rgba(22,17,24,.24) 65%, transparent); }
.energy-sparks { position: absolute; inset: 0; }
.energy-sparks i { position: absolute; bottom: -8%; left: 65%; width: 3px; height: 3px; border-radius: 50%; background: #f6c895; box-shadow: 0 0 12px #f3ab6e; animation: spark-rise 12s linear infinite; }
.energy-sparks i:nth-child(2) { left: 81%; animation-delay: -3s; animation-duration: 15s; }
.energy-sparks i:nth-child(3) { left: 43%; animation-delay: -8s; animation-duration: 18s; }
.energy-sparks i:nth-child(4) { left: 92%; animation-delay: -6s; animation-duration: 13s; }
.energy-sparks i:nth-child(5) { left: 26%; animation-delay: -11s; animation-duration: 20s; }
.energy-sparks i:nth-child(6) { left: 58%; animation-delay: -2s; animation-duration: 16s; }
.nav { background: rgba(25,20,25,.93); }
.scene:nth-child(even) { background: rgba(27,23,29,.7); }
.media { background: rgba(31,24,31,.76); }
.hero-title em { color: #f3ba9a; }
.hero-lead, .sec-note { color: #d0c6cb; }
.motion-toggle { position: fixed; bottom: 18px; right: 20px; z-index: 110; border: 1px solid #79615c; border-radius: 30px; background: #241c21; color: #e5d4ca; padding: 9px 14px; font: 500 .72rem var(--body); cursor: pointer; }
.motion-toggle:hover { background: #49302f; border-color: #e4ac87; }
.footer { padding-bottom: 80px; }
@keyframes light-drift {
  from { transform: translate3d(-7%, 5%, 0) scale(.92); }
  to { transform: translate3d(9%, 17%, 0) scale(1.15); }
}
@keyframes orbit-turn { from { transform: rotate(-20deg); } to { transform: rotate(340deg); } }
@keyframes orbit-upright { from { transform: rotate(20deg); } to { transform: rotate(-340deg); } }
@keyframes spark-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15%, 70% { opacity: .75; }
  100% { transform: translate3d(80px, -110vh, 0); opacity: 0; }
}
.motion-paused .energy *, .page-hidden .energy *,
.motion-paused .project-orbit-layer *, .page-hidden .project-orbit-layer * { animation-play-state: paused !important; }
@media (max-width: 780px) {
  .energy-orbits { width: 660px; right: -400px; top: 4vh; opacity: .5; }
  .energy-wash--coral { right: -55vmax; }
  .energy-shade { background: linear-gradient(90deg, rgba(22,17,24,.72), rgba(22,17,24,.3)); }
  .motion-toggle { bottom: 12px; right: 12px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .energy *, .project-orbit-layer * { animation: none !important; }
  .project-orbit-layer { transition: none; }
  .motion-toggle { display: none; }
}

/* Product previews are captures of the public sites, not recreated interfaces. */
.site-capture { margin: 0; }
.site-preview { display: block; transition: border-color .2s; }
.site-preview:hover { border-color: var(--accent-2); }
.site-preview img { width: 100%; height: auto; object-fit: contain; background: #17171a; }
.site-preview .browser-url { font-size: .65rem; }
.preview-arrow { color: var(--paper-dim); }
.site-capture figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--paper-mute); font-size: .7rem; }
.site-capture figcaption a { color: var(--accent-2); }
.scene--featured .scene-stage { display: block; padding-top: 56px; padding-bottom: 56px; }
.scene--featured { background: rgba(26,24,33,.6); }
.scene--featured .scene-name { font-size: clamp(2.9rem, 5.5vw, 5.2rem); }
.scene--featured .scene-status { color: #c4b5fd; }
.scene--featured .scene-desc { max-width: 50ch; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.alerts-reach { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 32px; max-width: var(--max); margin: 54px auto 0; border-top: 1px solid var(--line-2); padding-top: 32px; }
.alerts-reach h4 { font: 600 1.35rem/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.alerts-reach p { color: var(--paper-dim); font-size: .84rem; }
.alerts-reach .reach-label { color: var(--accent-2); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.reach-chrome img { width: 100%; height: auto; max-height: 170px; object-fit: contain; object-position: left; margin-bottom: 20px; }
.reach-mobile, .reach-channels { padding-left: 28px; border-left: 1px solid var(--line-2); }
.coming-soon { display: inline-block; border: 1px solid #947148; color: #edc58f; font-size: .7rem; padding: 4px 10px; margin-bottom: 16px; border-radius: 4px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.channel-links a { padding: 7px 10px; border: 1px solid var(--line-2); font-size: .8rem; border-radius: 4px; }
.channel-links a:hover { color: var(--accent-2); border-color: currentColor; }
.alerts-reach .channel-plans { font-size: .74rem; line-height: 1.7; }
.alerts-reach .text-link { font-size: .82rem; margin-top: 16px; }
@media (max-width: 1080px) {
  .alerts-reach { grid-template-columns: 1fr 1fr; }
  .reach-chrome { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
  .reach-chrome img { max-height: 230px; margin-bottom: 0; }
  .reach-mobile { padding-left: 0; border-left: 0; }
}
@media (max-width: 580px) {
  .alerts-reach, .reach-chrome { grid-template-columns: 1fr; }
  .reach-mobile, .reach-channels { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .site-preview .browser-url { font-size: .6rem; }
  .scene--featured .scene-stage { padding-top: 42px; }
}

/* Two editorial video collections, with full-height portrait playback. */
.video-collection { margin-top: 36px; }
.video-collection + .video-collection { margin-top: 72px; border-top: 1px solid var(--line-2); padding-top: 44px; }
.collection-heading { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: end; gap: 24px; margin-bottom: 28px; }
.collection-heading h3 { font: 600 clamp(2rem, 4vw, 3.4rem)/1.1 var(--display); letter-spacing: -.04em; margin-top: 10px; }
.collection-heading > p { color: var(--paper-dim); font-size: .92rem; max-width: 45ch; }
.collection-heading .text-link { margin: 0; font-size: .82rem; white-space: nowrap; }
.video-grid { display: grid; gap: clamp(16px, 2vw, 28px); align-items: start; }
.video-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1050px; }
.video-player--portrait { aspect-ratio: 9 / 16; border: 1px solid var(--line-2); border-radius: 6px; }
.video-player--portrait video { display: block; width: 100%; height: 100%; object-fit: contain; background: #101013; }
.video-player--portrait .video-play { display: block; }
.video-player--portrait img { opacity: 1; }
.video-card .play-label { left: 14px; bottom: 14px; padding: 10px 13px; font-size: .78rem; }
.video-card .video-episode { margin: 18px 0 8px; color: var(--accent-2); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.video-card h4 { font: 500 clamp(1.05rem, 1.6vw, 1.35rem)/1.3 var(--display); letter-spacing: -.02em; }
.video-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .7rem; color: var(--paper-mute); }
.video-card-meta a { color: var(--accent-2); }
.video-loading-note { color: var(--paper-dim); font-size: .75rem; margin: 32px 0 72px; max-width: 80ch; }
@media (max-width: 1080px) {
  .collection-heading { grid-template-columns: 1fr 1fr; }
  .collection-heading .text-link { justify-self: start; grid-column: 1 / -1; }
  .video-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 580px) {
  .collection-heading { grid-template-columns: 1fr; gap: 16px; }
  .video-grid--four, .video-grid--three { grid-template-columns: 1fr; gap: 36px; max-width: 340px; margin-inline: auto; }
  .video-card h4 { font-size: 1.3rem; }
}
