/* =========================================================================
   16k_Caden portfolio
   One scrolling page. Dark, one green accent, motion that means something.
   Radius rule: cards 16px, inner media 12px, buttons/chips/pills fully round.
   ====================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg:            #080B10;
  --bg-2:          #0B1017;
  --surface:       #0F151E;
  --surface-2:     #141C27;
  --surface-3:     #1A2431;
  --border:        #1B2532;
  --border-strong: #293646;

  --text:   #E8EEF6;
  --text-2: #A2B0C2;
  --text-3: #6E7E93;

  --accent:      #5EF39A;
  --accent-dim:  #2FBF73;
  --accent-ink:  #04150B;
  --warn:        #FFB347;

  --f-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --r:      16px;
  --r-in:   12px;
  --r-pill: 999px;

  --ease:   cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --t:      260ms;

  --z-nav: 40; --z-lightbox: 100; --z-sparks: 120; --z-toast: 200;

  color-scheme: dark;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(94 243 154 / .3); color: var(--text); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 16px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- 3. Buttons --------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease), color var(--t) var(--ease), scale 140ms var(--ease),
              translate 380ms var(--spring);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { scale: .97; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgb(94 243 154 / .55), inset 0 1px 0 rgb(255 255 255 / .35);
}
.btn--primary:hover { background: #7CF7AE; box-shadow: 0 14px 38px -12px rgb(94 243 154 / .7), inset 0 1px 0 rgb(255 255 255 / .4); }
.btn--ghost {
  border: 1px solid var(--border-strong); background: rgb(15 21 30 / .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text);
}
.btn--ghost:hover { border-color: rgb(94 243 154 / .45); background: rgb(20 28 39 / .8); }
.btn--ghost svg { transition: transform var(--t) var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }

/* ---------- 4. Navigation (pill) ---------------------------------------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; justify-content: center; padding-inline: 16px; pointer-events: none;
}
.nav__pill {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 6px;
  width: min(880px, 100%); height: 60px; padding: 0 10px 0 16px;
  border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / .07);
  background: rgb(10 14 20 / .55);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 18px 40px -20px rgb(0 0 0 / .7);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.nav.is-scrolled .nav__pill { background: rgb(10 14 20 / .82); border-color: var(--border-strong); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-right: auto; }
.nav__mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong);
}
.nav__mark svg { width: 17px; height: 17px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgb(255 255 255 / .05); }
.nav__links a[aria-current="true"] { color: var(--text); background: rgb(255 255 255 / .08); }
.nav__cta { margin-left: 8px; }
.nav__menu { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: var(--text-2); }
.nav__menu svg { width: 20px; height: 20px; }

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100dvh, 940px);
  display: grid; align-items: center;
  padding: 120px 0 72px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__aurora {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background:
    radial-gradient(60% 55% at 30% 0%, rgb(47 191 115 / .28), transparent 70%),
    radial-gradient(40% 45% at 80% 5%, rgb(94 243 154 / .14), transparent 70%);
}
.hero__aurora.is-live { background: none; }
.hero__grid {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 98%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 32px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: var(--r-pill);
  border: 1px solid rgb(94 243 154 / .25); background: rgb(94 243 154 / .06);
  font-size: 13.5px; font-weight: 500;
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgb(94 243 154 / .6); animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px rgb(94 243 154 / 0); } }

/* Shiny Text (React Bits): a band of light sweeping across the label. */
.shiny {
  color: var(--text-2);
  background: linear-gradient(110deg, var(--text-2) 40%, #F4FFF8 50%, var(--text-2) 60%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 3.4s linear infinite;
}
@keyframes shine { from { background-position: 110% 0; } to { background-position: -110% 0; } }

.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -.035em;
  text-wrap: pretty;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 44ch; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.hero__tags li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px;
  border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: rgb(15 21 30 / .7);
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--text);
}
.hero__tags svg { width: 15px; height: 15px; color: var(--accent); }

/* Blur Text (React Bits): words drop in out of a blur, one after another. */
.bw { display: inline-block; }
.is-blurring .bw {
  opacity: 0; filter: blur(12px); transform: translateY(-.4em);
  animation: blur-in .9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 85ms + 150ms);
}
@keyframes blur-in {
  55% { opacity: .6; filter: blur(4px); transform: translateY(.05em); }
  to  { opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- 6. Card Swap deck (React Bits) ------------------------------ */
.hero__visual { position: relative; min-width: 0; }
.swap { position: relative; height: 470px; perspective: 900px; }
.swap__card {
  --w: min(350px, 82vw);
  position: absolute; left: 34%; top: 62%;
  width: var(--w);
  display: flex; flex-direction: column; gap: 6px; padding: 6px;
  border-radius: 18px; border: 1px solid rgb(255 255 255 / .08);
  background: linear-gradient(180deg, #1A2331 0%, #111822 100%);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .85), 0 10px 24px -12px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .08);
  transform: translate(-50%, -50%) translate3d(calc(var(--i) * 38px), calc(var(--i) * -36px), calc(var(--i) * -64px)) skewY(4deg);
  z-index: calc(10 - var(--i));
  transform-style: preserve-3d; backface-visibility: hidden;
  transition: transform .85s var(--spring), opacity .5s var(--ease), filter .5s var(--ease);
  will-change: transform;
}
.swap__card.is-dropping {
  transition: transform .62s cubic-bezier(.55, 0, .85, .35), opacity .5s ease-in;
  opacity: 0;
}
.swap__card.is-back { filter: brightness(.55); }
.swap__head { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 6px; min-width: 0; }
.swap__icon { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .07); }
.swap__icon svg { width: 13px; height: 13px; color: var(--accent); }
.swap__title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap__visits { font-size: 12px; color: var(--text-3); }
.swap__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-in); overflow: hidden; background: var(--surface-3); }
.swap__media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swap__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }

/* ---------- 7. Live numbers --------------------------------------------- */
.stats { position: relative; padding: 8px 0 56px; }
.stats__row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}
.stat { padding: 28px 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__val { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.stat__label { font-size: 13.5px; color: var(--text-3); }
.stat--live .stat__val { color: var(--accent); }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none;
  animation: ping 2.2s ease-out infinite;
}
.stats__note { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.livepill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px;
  border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-2);
}
.livepill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.livepill[data-state="live"] { color: var(--accent); border-color: rgb(94 243 154 / .35); }
.livepill[data-state="live"] .livepill__dot { background: var(--accent); }
.livepill[data-state="loading"] .livepill__dot { animation: blink 1s ease-in-out infinite; background: var(--text-2); }
.livepill[data-state="offline"] { color: var(--warn); }
.livepill[data-state="offline"] .livepill__dot { background: var(--warn); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- 8. Logo Loop strip (React Bits) ----------------------------- */
.loop { padding: 8px 0 24px; }
.loop__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.loop__track { display: flex; gap: 12px; width: max-content; padding: 4px 0; }
.loop__track.is-looping { animation: loop var(--loop-dur, 80s) linear infinite; }
.loop__viewport:hover .loop__track { animation-play-state: paused; }
@keyframes loop { to { transform: translateX(-50%); } }
.loop__item {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 6px 16px 6px 6px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
}
.loop__thumb { position: relative; width: 72px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); flex: none; }
.loop__thumb .thumb-fallback svg { width: 16px; height: 16px; }
.loop__thumb img { width: 100%; height: 100%; object-fit: cover; }
.loop__name { font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 9. Sections -------------------------------------------------- */
.section { padding-block: clamp(72px, 9vw, 120px) 0; }
.section__head { margin-bottom: 36px; }
.section__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1.1; }
.section__lede { color: var(--text-2); font-size: 17px; margin-top: 12px; max-width: 60ch; }

/* Spotlight Card (React Bits): a soft light and a lit rim follow the cursor. */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
}
.spot::before {
  z-index: 2;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(94 243 154 / .10), transparent 70%);
}
.spot::after {
  z-index: 3; padding: 1px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgb(94 243 154 / .7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after, .spot:focus-visible::after { opacity: 1; }

/* Shared card chrome */
.feat, .game, .price, .channel, .clip {
  border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
  transition: translate .45s var(--spring), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.feat:hover, .game:hover, .channel:hover, .clip:hover {
  translate: 0 -4px; border-color: var(--border-strong);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / .9);
}

.badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: var(--r-pill); background: rgb(8 11 16 / .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / .08);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--text-2);
}
.badge--live { color: var(--accent); border-color: rgb(94 243 154 / .3); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge--muted { color: var(--text-3); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); background: var(--surface-3); }
.thumb-fallback svg { width: 26px; height: 26px; }

/* ---------- 9b. What I do: service cards ------------------------------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  overflow: hidden;
}
.service > * { position: relative; z-index: 1; }
.service__head { display: flex; align-items: center; gap: 14px; }
.service__icon {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-in); display: grid; place-items: center;
  color: var(--accent); background: rgb(94 243 154 / .08); border: 1px solid rgb(94 243 154 / .22);
}
.service__icon svg { width: 22px; height: 22px; }
.service__title { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.025em; }
.service__text { color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 48ch; }
.service__list { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 4px; border-top: 1px solid var(--border); }
.service__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.service__list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.service__tools { margin-top: auto; padding-top: 6px; }
.service__tools .chip { font-family: var(--f-mono); font-size: 12.5px; background: var(--bg-2); }

/* ---------- 10. Games: bento + grid ------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { display: flex; flex-direction: column; overflow: hidden; }
.feat--lead { grid-column: span 2; grid-row: span 2; }
.feat__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.feat--lead .feat__media { aspect-ratio: auto; flex: 1; min-height: 240px; }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.feat:hover .feat__media img, .game:hover .game__media img { scale: 1.05; }
.feat__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.feat__name { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.015em; line-height: 1.25; }
.feat--lead .feat__name { font-size: 22px; }
.feat__meta, .game__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.feat__meta span:first-child, .game__meta span:first-child { color: var(--accent); font-weight: 500; }
.feat__does { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.feat--lead .feat__does { font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.grid.is-collapsed > :nth-child(n + 9) { display: none; }
.game { display: flex; flex-direction: column; overflow: hidden; }
.game__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.game__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.game__name { font-family: var(--f-display); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__does {
  font-size: 12.5px; color: var(--text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game__meta { margin-top: auto; padding-top: 4px; }
.grid .game { animation: card-in .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; translate: 0 14px; } }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 10b. Showcase: clips + screenshots -------------------------- */
.sub-title {
  display: flex; align-items: center; gap: 14px; margin: 8px 0 16px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
}
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.clips + .sub-title { margin-top: 40px; }

/* ---------- 10c. UI work: video under the screens ------------------------ */
.ui-video {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: center;
  margin-top: 14px; padding: 32px; border-radius: var(--r); border: 1px solid var(--border);
  background: linear-gradient(160deg, rgb(94 243 154 / .07), var(--surface) 50%);
}
.ui-video[hidden] { display: none; }
.ui-video__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; }
.ui-video__text { color: var(--text-2); font-size: 16px; line-height: 1.55; margin-top: 10px; max-width: 38ch; }
.ui-video__embed { display: flex; justify-content: center; min-width: 0; }
.ui-video__embed .twitter-tweet { margin: 0 !important; width: 100%; max-width: 550px; }
.ui-video__embed .twitter-tweet-rendered { margin: 0 !important; }
/* Before X's player loads (or if it's blocked): a link card to the post. */
.ui-video__embed blockquote.twitter-tweet {
  padding: 0; border: 0; display: flex; justify-content: center;
}
.tweet__link {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 24px;
  border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 500; transition: border-color var(--t) var(--ease);
}
.tweet__link:hover { border-color: rgb(94 243 154 / .45); }
.tweet__link svg { width: 18px; height: 18px; color: var(--accent); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shot {
  display: flex; flex-direction: column; text-align: left; overflow: hidden; padding: 0;
  border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
  transition: translate .45s var(--spring), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.shot:hover { translate: 0 -4px; border-color: var(--border-strong); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .9); }
.shot--full { grid-column: 1 / -1; }
.shot__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.shot__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.shot:hover .shot__media img { scale: 1.04; }
.shot__body { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 16px; }
.shot__tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.shot__title { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.shot__caption { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }

/* ---------- 11. About ---------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; }
.about__bio { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.about__bio p { color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 58ch; }
.about__bio p:first-child { color: var(--text); font-size: 19px; }
.facts { display: grid; grid-template-columns: 1fr; align-content: start; gap: 12px; padding-top: 8px; }
.fact {
  display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 18px 22px;
  border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
}
.fact__val { min-width: 4.2ch; font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.05; color: var(--accent); }
.fact__label { font-size: 14px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.chip:hover { border-color: rgb(94 243 154 / .4); color: var(--text); }

.how { grid-column: 1 / -1; margin-top: 24px; }
.how__title { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin-bottom: 26px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; border-radius: 2px;
}
.timeline::before { background: var(--border-strong); }
.timeline::after {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s;
}
.timeline.is-in::after, .timeline.was-revealed::after, html:not(.js) .timeline::after { transform: scaleX(1); }
.timeline__step { position: relative; padding-top: 34px; }
.timeline__node {
  position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
}
.timeline__title { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.timeline__text { color: var(--text-2); font-size: 15px; margin-top: 6px; max-width: 34ch; }

/* ---------- 12. Media ---------------------------------------------------- */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.clip { display: flex; flex-direction: column; text-align: left; padding: 8px 8px 16px; }
.clip__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-in); overflow: hidden; background: var(--surface-3); }
.clip__media img, .clip__media video { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.clip:hover .clip__media img, .clip:hover .clip__media video { scale: 1.04; }
.clip__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(8 11 16 / .7); border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background var(--t) var(--ease), scale .4s var(--spring);
}
.clip__play svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
.clip:hover .clip__play { background: var(--accent); scale: 1.08; }
.clip:hover .clip__play svg { color: var(--accent-ink); }
.clip__title { font-family: var(--f-display); font-weight: 600; font-size: 16px; margin: 14px 8px 0; }
.clip__caption { font-size: 13.5px; color: var(--text-3); margin: 2px 8px 0; }

/* ---------- 13. Contact -------------------------------------------------- */
.contact { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 96px; }
.contact__glow {
  position: absolute; z-index: -1; left: 50%; top: 40px; width: min(900px, 100%); height: 420px; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgb(47 191 115 / .16), transparent 70%);
  pointer-events: none;
}
.contact__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.035em; line-height: 1.05; }
.contact__lede { color: var(--text-2); font-size: 17px; max-width: 50ch; }
.pricing {
  width: min(920px, 100%); margin-top: 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch;
}
.price.price--wide {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px 36px;
  align-items: center; padding: 28px 30px;
}
.price__main { display: flex; flex-direction: column; gap: 6px; }
.price--wide .price__val { font-size: clamp(30px, 4vw, 42px); }
.price--wide .price__text { font-size: 15px; line-height: 1.55; max-width: 44ch; }
.price__list { display: flex; flex-direction: column; gap: 10px; padding-left: 28px; border-left: 1px solid var(--border); }
.price__list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.price__list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.price { padding: 20px 22px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.price--featured {
  border-color: rgb(94 243 154 / .4);
  background: linear-gradient(160deg, rgb(94 243 154 / .10), var(--surface) 55%);
}
.price__name { font-size: 13px; font-weight: 500; color: var(--text-3); }
.price__val { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.price__val .num { font-family: inherit; }
.price--featured .price__val { color: var(--accent); }
.price__per { font-family: var(--f-body); font-weight: 500; font-size: 14px; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.price__text { font-size: 14px; color: var(--text-2); }
.channels {
  width: min(920px, 100%);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.channel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.channel__icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border-strong);
}
.channel__icon svg { width: 18px; height: 18px; color: var(--text-2); transition: color var(--t) var(--ease); }
.channel:hover .channel__icon svg { color: var(--accent); }
.channel__text { display: flex; flex-direction: column; min-width: 0; }
.channel__label { font-size: 12.5px; color: var(--text-3); }
.channel__val { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact__note { font-size: 14px; color: var(--text-3); margin-top: 6px; }

/* ---------- 14. Footer --------------------------------------------------- */
.foot { border-top: 1px solid var(--border); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px 0; font-size: 13.5px; color: var(--text-3); }
.foot a:hover { color: var(--text); }

/* ---------- 15. Reveal on scroll ---------------------------------------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- 16. Click Spark canvas -------------------------------------- */
.sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: var(--z-sparks); pointer-events: none; }

/* ---------- 17. Lightbox ------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgb(4 6 10 / .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  position: relative; max-width: min(1180px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  transform: scale(.92) translateY(18px); opacity: 0;
  transition: transform 460ms var(--spring), opacity 240ms var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: none; opacity: 1; }
.lightbox__frame { border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--border-strong); max-height: calc(100dvh - 190px); }
.lightbox__frame img, .lightbox__frame video { max-height: calc(100dvh - 190px); width: auto; margin-inline: auto; }
.lightbox__frame iframe { width: min(1180px, 88vw); aspect-ratio: 16/9; max-height: calc(100dvh - 190px); border: 0; display: block; }
.lightbox__meta { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.lightbox__title { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.lightbox__caption, .lightbox__count { font-size: 13px; color: var(--text-3); }
.lightbox__close {
  position: absolute; top: -48px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; color: var(--text-2);
}
.lightbox__close:hover { background: var(--surface-3); color: var(--text); }
.lightbox__close svg { width: 16px; height: 16px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgb(8 11 16 / .8); border: 1px solid var(--border-strong); display: grid; place-items: center;
}
.lightbox__nav:hover { background: var(--surface-3); }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__nav--prev { left: -60px; }
.lightbox__nav--next { right: -60px; }

/* ---------- 18. Toast ---------------------------------------------------- */
.toasts {
  position: fixed; z-index: var(--z-toast); bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 48px -12px rgb(0 0 0 / .7); font-size: 14px;
  animation: toast-in 380ms var(--ease);
}
.toast svg { width: 16px; height: 16px; color: var(--accent); }
.toast.is-out { animation: toast-out 240ms ease-in forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- 19. Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 0; padding-top: 128px; }
  .swap { height: 400px; }
  .swap__card { left: 42%; }
  .stats__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--border); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat--lead { grid-row: auto; }
  .feat--lead .feat__media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .services { grid-template-columns: 1fr; }
  .ui-video { grid-template-columns: 1fr; padding: 24px 20px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav { top: 10px; padding-inline: 10px; }
  .nav__pill { height: 56px; padding: 0 6px 0 12px; }
  .nav__menu { display: grid; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    border-radius: 20px; border: 1px solid var(--border-strong); background: rgb(10 14 20 / .96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; translate: 0 -6px; pointer-events: none;
    transition: opacity var(--t) var(--ease), translate var(--t) var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; translate: 0 0; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 15px; }
  .hero { padding: 112px 0 40px; }
  .swap { height: 330px; }
  .swap__card { --w: min(300px, 74vw); left: 40%; }
  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--border); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .about { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fact { padding: 14px; flex-direction: column-reverse; gap: 4px; }
  .fact__val { min-width: 0; font-size: 24px; }
  .fact__label { font-size: 12.5px; }
  .service { padding: 22px 18px; }
  .service__title { font-size: 22px; }
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 34px; }
  .timeline::before, .timeline::after { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--accent-dim), var(--accent)); }
  .timeline.is-in::after, .timeline.was-revealed::after, html:not(.js) .timeline::after { transform: scaleY(1); }
  .timeline__step { padding-top: 0; }
  .timeline__node { left: -34px; top: 3px; }
  .pricing { grid-template-columns: 1fr; }
  .price.price--wide { grid-template-columns: 1fr; padding: 22px 20px; }
  .price__list { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .channels { grid-template-columns: 1fr 1fr; }
  .channel { padding: 12px; gap: 10px; }
  .channel__icon { width: 34px; height: 34px; border-radius: 10px; }
}

@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; }
  .shot--full { grid-column: auto; }
  .bento { grid-template-columns: 1fr; }
  .feat--lead { grid-column: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game__body { padding: 10px 11px 12px; }
  .game__name { font-size: 13.5px; }
  .game__does { font-size: 12px; }
  .game__meta { font-size: 11.5px; flex-direction: column; gap: 0; }
  .loop__name { max-width: 180px; font-size: 13px; }
  .loop__thumb { width: 60px; }
  .nav__cta { padding: 0 14px; }
}

@media (max-width: 380px) {
  .channels { grid-template-columns: 1fr; }
}
@media (max-width: 330px) {
  .nav__brand span:last-child { display: none; }
}

/* Touch pointers need 44px targets. */
@media (pointer: coarse) {
  .nav__menu { width: 44px; height: 44px; }
  .lightbox__close { width: 44px; height: 44px; top: -54px; }
}

/* ---------- 20. Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .timeline::after { transform: none; }
  .loop__viewport { overflow-x: auto; }
}
