:root {
  --bg: #020204; --card: #0b0a12; --text: #f3f1fa; --muted: #a29db8; --line: #ffffff14;
  --red: #ff2b4e; --blue: #3b6cff; --green: #3dffa2;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Barlow, system-ui, sans-serif; font-size: 1.0625rem; color: var(--text); line-height: 1.6; overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 95% 0%, #5b2bd414, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 75%, #ff2b4e0a, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
/* Starfield: tiled dots with odd tile sizes so the repeat isn't noticeable */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 90px, #ffffffa0, transparent),
    radial-gradient(1px 1px at 80px 170px, #ffffff80, transparent),
    radial-gradient(1px 1px at 210px 40px, #ffffffb0, transparent);
  background-size: 173px 173px, 241px 241px, 211px 211px, 293px 293px;
}
body::after {
  background:
    radial-gradient(1.5px 1.5px at 50px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 300px 200px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 180px 330px, #fff, transparent);
  background-size: 337px 337px, 457px 457px, 397px 397px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .9rem 5vw; background: rgb(2 2 4 / .8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* Wordmark styled after the CANNIZ banner: heavy italic with a blue offset */
.logo { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2rem; line-height: 1; letter-spacing: .02em; text-decoration: none; text-shadow: 3px 3px 0 var(--blue); }
.logo span { color: var(--red); }
.nav nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }
.nav nav .gp { color: var(--green); }

/* Layout */
section { position: relative; isolation: isolate; max-width: 1200px; margin: auto; padding: 5rem 5vw; }
.narrow { max-width: 860px; }

/* Type */
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: .01em; }
h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); text-shadow: .05em .05em 0 var(--red); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: .75rem; }
h2::before { content: "// "; color: var(--green); } /* the "//" from the X bio, doubling as blade slashes */
.lead, .sub { color: var(--muted); font-size: 1.2rem; max-width: 36rem; }
.lead strong, .sub strong { color: var(--text); }

/* Hero: text left, thumbnail stack right */
.hero { min-height: 82vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; }
.web { position: absolute; top: 0; right: 0; z-index: -1; width: min(440px, 70vw); opacity: .28; pointer-events: none; }
.web.flip { top: auto; bottom: 0; transform: scaleY(-1); }
/* Halftone dots, comic-print style */
.hero::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: -1; width: 60%; height: 55%; opacity: .25; background: radial-gradient(var(--red) 1.2px, transparent 1.7px) 0 0 / 9px 9px; -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%); }
.stack { position: relative; aspect-ratio: 16 / 11; }
.stack > * { position: absolute; width: 78%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 20px 50px #000b; }
.stack > :nth-child(1) { top: 0; left: 0; transform: rotate(-6deg); }
.stack > :nth-child(2) { top: 16%; right: 0; transform: rotate(4deg); }
.stack > :nth-child(3) { bottom: 0; left: 10%; transform: rotate(-1.5deg); box-shadow: 8px 8px 0 var(--red), 0 20px 50px #000b; }

/* Buttons: flat with a hard offset shadow */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn { font: inherit; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.3rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; display: inline-block; padding: .65rem 1.6rem; border: 2px solid var(--red); border-radius: 4px; background: var(--red); color: #fff; text-decoration: none; box-shadow: 4px 4px 0 var(--blue); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--blue); }
.btn.ghost { background: transparent; border-color: #ffffffcc; box-shadow: 4px 4px 0 #ffffff2a; }
.btn.ghost:hover { box-shadow: 6px 6px 0 #ffffff2a; }

/* Worked with: creator profile pictures */
.creators { list-style: none; padding: 0; max-width: 720px; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem 1.25rem; margin-top: 2rem; }
.creators a { display: flex; flex-direction: column; align-items: center; width: 96px; text-decoration: none; }
.creators img, .creators .you span { width: 76px; height: 76px; margin-bottom: .55rem; border-radius: 50%; object-fit: cover; background: var(--card); border: 2px solid #ffffff1f; box-shadow: 0 0 24px #8a3dff2e; transition: transform .4s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .3s; }
.creators a:hover img, .creators a:hover span { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 0 28px #ff2b4e55; }
.creators b { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.creators small { color: var(--muted); font-size: .8rem; }
.creators .you span { display: grid; place-items: center; border-style: dashed; box-shadow: none; color: var(--muted); font-size: 1.6rem; font-weight: 700; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 2.5rem; border-block: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1; text-shadow: .05em .05em 0 var(--blue); }
.stats span { color: var(--muted); font-weight: 600; }

/* Client review */
.review { border-left: 4px solid var(--red); padding-left: 1.5rem; }
.review p { font-size: clamp(1.15rem, 2.5vw, 1.45rem); line-height: 1.5; }
.review .who { margin-top: 1rem; font-size: 1rem; color: var(--muted); }

/* Grids */
.grid { display: grid; gap: 1.75rem; margin-top: 2rem; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.videos { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
/* Video cards: thumbnail + play button until clicked, then the YouTube player */
.vid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.vid button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat; box-shadow: 4px 4px 0 var(--blue); transition: transform .3s; }
.vid button:hover::after { transform: scale(1.1); }
.vid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.vid figcaption { margin-top: .7rem; color: var(--muted); font-size: .95rem; }
.vid figcaption b { color: var(--text); }
/* Soft glow in each thumbnail's own colors: a blurred, saturated copy behind it (--src is set by the script) */
.thumb { position: relative; isolation: isolate; }
.thumb::before { content: ""; position: absolute; inset: 6%; z-index: -1; background: var(--src) center / cover; filter: blur(26px) saturate(1.6); opacity: .45; transition: opacity .5s; }
.thumb:hover::before { opacity: .8; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.thumb:hover img { transform: translateY(-4px) scale(1.02); }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 1.5rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-weight: 700; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 1.3rem; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; max-width: 1200px; margin: auto; padding: 2rem 5vw; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
footer nav { display: flex; gap: 1.5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* GamePort Studios page: green instead of red */
.center { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.center .lead { margin-inline: auto; }
.center .actions { justify-content: center; }
.gameport h1 { text-shadow: .05em .05em 0 var(--green); }
.gameport .btn:not(.ghost) { background: var(--green); border-color: var(--green); color: #04140d; }
.orbit { position: relative; width: 120px; height: 120px; margin-bottom: 2rem; border: 1px dashed #ffffff40; border-radius: 50%; animation: spin 10s linear infinite; }
.orbit::before { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--green); box-shadow: 5px 5px 0 var(--blue); }
.orbit::after { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Commission request form */
.form { display: grid; gap: 1.25rem; margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.25rem); background: rgb(11 10 18 / .75); border: 1px solid var(--line); border-radius: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.25rem; }
.form label, .form legend { display: block; font-weight: 600; }
.form label > input, .form label > textarea { display: block; margin-top: .4rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--text); background: #ffffff08; border: 1px solid #ffffff24; border-radius: 8px; padding: .7rem .9rem; color-scheme: dark; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px #ff2b4e33; }
.form input::placeholder, .form textarea::placeholder { color: #ffffff55; }
.form input[type=file] { padding: .6rem; cursor: pointer; }
.form input[type=file]::file-selector-button { margin-right: 1rem; padding: .5rem 1rem; border: 0; border-radius: 6px; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: .4rem; }
.checks label { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.checks input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); }
.previews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: -.5rem; }
.previews:empty { display: none; }
.previews img { width: 110px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.form .actions { margin-top: .5rem; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.6em; font-weight: 700; color: var(--green); }
.form-status.error { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* Smooth scrolling (Lenis). Lenis's own stylesheet isn't used because it blocks clicks on YouTube embeds. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis-scrolling iframe { pointer-events: none; } /* only while scrolling, so the wheel isn't swallowed by a video */
section[id] { scroll-margin-top: 70px; } /* Lenis anchors use this too */

/* Fade-up as things scroll into view (only with JS on, and never for reduced-motion visitors) */
@media (prefers-reduced-motion: no-preference) {
  .js :is(h2, .stats > div, .creators li, .thumbs .thumb, .vid, .review) { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
  .js :is(h2, .stats > div, .creators li, .thumbs .thumb, .vid, .review).in { opacity: 1; transform: none; }
}

/* "Click anywhere" screen and music button */
.enter { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; width: 100%; border: 0; cursor: pointer; color: var(--text); background: rgb(2 2 4 / .7); backdrop-filter: blur(18px); font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: .05em; transition: opacity .6s; }
.enter.gone { opacity: 0; pointer-events: none; }
.music-btn { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #ffffff40; background: rgb(11 10 18 / .8); backdrop-filter: blur(8px); color: var(--text); font-size: 1.4rem; cursor: pointer; box-shadow: 4px 4px 0 var(--blue); }
.music-btn.on { background: var(--red); border-color: var(--red); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { box-shadow: 4px 4px 0 var(--blue), 0 0 0 0 #ff2b4e88; } to { box-shadow: 4px 4px 0 var(--blue), 0 0 0 14px #ff2b4e00; } }
.enter[hidden], .music-btn[hidden] { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: none !important; transition: none !important; }
}
