:root {
  /* SteamStreet corporate palette: Blue #0093D0, Street Gray #D9DFE3 */
  --ss-blue: #0093d0;
  --ss-blue-hi: #33b1e6;
  --ss-blue-ink: #006f9e;
  --ss-gray: #d9dfe3;
  --bg: #0b1720;
  --bg-2: #0f1e29;
  --bg-3: #142734;
  --line: rgba(217, 223, 227, 0.13);
  --text: #f3f6f8;
  --muted: #a8b6c0;
  --dim: #74858f;
  --brass: var(--ss-blue);
  --brass-soft: rgba(0, 147, 208, 0.16);
  --vf-pink: #c400c4;
  --vf-cyan: #00a6c8;
  --vf-violet: #4a3fd0;
  --wr-red: #d4312b;
  --kin-coral: #e07563;
  --paper: #ffffff;
  --ink: #12202a;
  --ink-muted: #56656f;
  --radius: 18px;
  /* Rosario is the closest open match to the SteamStreet wordmark lettering */
  --display: "Rosario", "Myriad Pro", system-ui, sans-serif;
  --body: "Rosario", "Myriad Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 32, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 16px; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(243, 237, 228, 0.06); }
@media (max-width: 640px) {
  .nav a:not(.nav-keep) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 560px at 85% 5%, rgba(0, 147, 208, 0.22), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(217, 223, 227, 0.06), transparent 60%);
  pointer-events: none;
}
.steam { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.steam i {
  position: absolute; bottom: -160px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 223, 227, 0.08), transparent 65%);
  filter: blur(8px);
  animation: rise 16s linear infinite;
}
.steam i:nth-child(1) { left: 8%; animation-delay: 0s; }
.steam i:nth-child(2) { left: 38%; animation-delay: -5s; width: 320px; height: 320px; }
.steam i:nth-child(3) { left: 66%; animation-delay: -10s; }
.steam i:nth-child(4) { left: 88%; animation-delay: -2s; width: 180px; height: 180px; }
@keyframes rise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-900px) scale(1.6); opacity: 0; }
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
}
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 34px; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 16px; font-family: var(--body); color: var(--text); cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); background: rgba(243, 237, 228, 0.04);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); background: rgba(243, 237, 228, 0.09); border-color: rgba(243, 237, 228, 0.24); }
.btn.primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn.primary:hover { background: var(--ss-blue-hi); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Fanned cards, a nod to the 2011 site */
.fan { position: relative; height: 470px; }
.fan .card {
  position: absolute; top: 50%; left: 50%;
  width: 210px; aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(243, 237, 228, 0.1);
  background: var(--bg-3);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fan .card img { width: 100%; height: 100%; object-fit: cover; }
.fan .c1 { transform: translate(-125%, -46%) rotate(-11deg); }
.fan .c2 { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; width: 232px; }
.fan .c3 { transform: translate(25%, -46%) rotate(11deg); }
.fan:hover .c1 { transform: translate(-135%, -48%) rotate(-14deg); }
.fan:hover .c3 { transform: translate(35%, -48%) rotate(14deg); }

.fan .label {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(11, 23, 32, 0.78); color: var(--text);
  padding: 6px 9px; border-radius: 8px; backdrop-filter: blur(6px);
}
.fan .c3 .label { background: rgba(18, 32, 42, 0.84); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .fan { height: 380px; }
  .fan .card { width: 168px; }
  .fan .c2 { width: 186px; }
}
@media (max-width: 420px) {
  .fan { height: 330px; }
  .fan .card { width: 136px; }
  .fan .c2 { width: 152px; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; margin: 0;
}
.section-head p { color: var(--muted); max-width: 30em; margin: 0; }

/* ---------- Product panels ---------- */
.product {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  min-height: 560px;
}
.product + .product { margin-top: 28px; }
.product-copy { position: relative; z-index: 2; padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(243, 237, 228, 0.08); border: 1px solid rgba(243, 237, 228, 0.16);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fd17a; box-shadow: 0 0 0 4px rgba(63, 209, 122, 0.2); }
.status.building::before { background: var(--ss-gray); box-shadow: 0 0 0 4px rgba(217, 223, 227, 0.22); }
.product h3 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; }
.product .sub { font-size: 18px; color: rgba(243, 237, 228, 0.82); margin: 0 0 26px; max-width: 32em; }
.features { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; color: rgba(243, 237, 228, 0.78); line-height: 1.5; }
.features li b { color: var(--text); font-weight: 600; }
.features svg { width: 20px; height: 20px; margin-top: 2px; }
.stack { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin: 26px 0 0; line-height: 1.6; }
.stack span { color: var(--muted); }

/* Vegasful */
.vegasful {
  background:
    radial-gradient(600px 420px at 100% 100%, rgba(0, 166, 200, 0.28), transparent 65%),
    radial-gradient(640px 460px at 70% 0%, rgba(196, 0, 196, 0.32), transparent 62%),
    linear-gradient(160deg, #1b0b2a, #120a1d 60%, #0d0b18);
}
.vegasful .vf-logo { width: min(280px, 70%); margin: 0 0 24px; }
.vegasful .features svg { color: #ff5cf0; }
.vegasful .btn.primary { background: #fff; color: #1b0b2a; border-color: #fff; }
.vegasful .btn.primary:hover { background: #ffe9fe; }
.halftone {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.product-visual { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.phone {
  position: relative; width: 280px; border-radius: 42px; padding: 10px;
  background: #0a0a0c;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px #25232b;
  transform: rotate(3deg);
}
.phone img { border-radius: 33px; width: 100%; aspect-ratio: 750 / 1480; object-fit: cover; object-position: top; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; border-radius: 20px; background: #0a0a0c; }

/* WrestleVRS */
.wrestlevrs { background: #120c0a; grid-template-columns: 1fr 1fr; }
.wrestlevrs .bg {
  position: absolute; inset: 0;
  background: url("img/wrestlevrs-fair.webp") center 30% / cover no-repeat;
}
.wrestlevrs .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 9, 7, 0.97) 0%, rgba(14, 9, 7, 0.88) 42%, rgba(14, 9, 7, 0.2) 75%, rgba(14, 9, 7, 0.1) 100%),
              linear-gradient(0deg, rgba(14, 9, 7, 0.75), transparent 45%);
}
.wordmark {
  font-family: "Jockey One", var(--display); font-weight: 400;
  font-size: clamp(46px, 5.6vw, 72px); line-height: .9; letter-spacing: 0; margin: 0 0 12px;
  text-transform: none;
}
.wordmark span { color: var(--wr-red); }
.wrestlevrs .tagline { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -0.02em; margin: 0 0 18px; line-height: 1.15; }
.wrestlevrs .features svg { color: #ff6a5c; }
.wrestlevrs .status { background: rgba(14, 9, 7, 0.6); }
.strip { position: relative; z-index: 2; align-self: end; display: flex; gap: 12px; justify-content: flex-end; padding: 0 28px 28px; }
.strip figure { margin: 0; width: 132px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
.strip figure:nth-child(2) { transform: translateY(-22px); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.origin-note { margin: 0; font-size: 15px; color: var(--muted); border-left: 2px solid var(--wr-red); padding-left: 14px; }

@media (max-width: 900px) {
  .product, .wrestlevrs { grid-template-columns: 1fr; min-height: 0; }
  .product-visual { padding: 0 24px 44px; }
  .phone { width: 240px; }
  .wrestlevrs .bg { background-position: 60% 20%; }
  .wrestlevrs .bg::after { background: linear-gradient(180deg, rgba(14, 9, 7, 0.55) 0%, rgba(14, 9, 7, 0.93) 30%, rgba(14, 9, 7, 0.97) 100%); }
  .wrestlevrs .product-copy { padding-top: 180px; }
  .strip { justify-content: center; padding: 8px 20px 36px; }
  .strip figure { width: 30%; max-width: 132px; }
}

/* ---------- Past work ---------- */
.past { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.past-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.past-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.past-art { height: 210px; position: relative; display: grid; place-items: center; overflow: hidden; }
.past-body { padding: 24px 24px 28px; }
.past-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.past-card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
.past-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.past-card p + p { margin-top: 10px; }

.art-wrestler { background: linear-gradient(160deg, #3b5998, #22345a); }
.fb-wall { width: 82%; background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); color: #1c1e21; font-family: "Lucida Grande", Tahoma, Verdana, sans-serif; font-size: 12px; line-height: 1.4; transform: rotate(-2deg); }
.fb-wall .row { display: flex; gap: 9px; align-items: flex-start; }
.fb-wall .row + .row { margin-top: 11px; padding-top: 11px; border-top: 1px solid #e4e6eb; }
.fb-wall .av { width: 30px; height: 30px; border-radius: 4px; flex: none; }
.fb-wall b { color: #3b5998; }
.fb-wall small { display: block; color: #90949c; font-size: 10.5px; margin-top: 2px; }
.art-unstoppable { background: radial-gradient(circle at 50% 40%, #6b1f0c, #2a0d06 70%); }
.art-unstoppable img { height: 180px; width: auto; border-radius: 6px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); transform: rotate(-3deg); image-rendering: auto; }
.art-kinflix { background: #fbf3df; }
.art-kinflix img { height: 176px; width: auto; }

.also { margin-top: 34px; color: var(--muted); font-size: 15.5px; display: grid; gap: 6px; }
.also span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.also span:first-child b { color: inherit; font-weight: 500; }
.also b { color: var(--text); font-weight: 600; }

@media (max-width: 900px) { .past-grid { grid-template-columns: 1fr; } .past-card { display: grid; grid-template-columns: 220px 1fr; } .past-art { height: auto; min-height: 200px; } }
@media (max-width: 600px) { .past-card { display: flex; } .past-art { height: 200px; } }

/* ---------- Resume ---------- */
.resume-wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 48px; align-items: start; }
.resume-intro { position: sticky; top: 100px; }
.resume-intro h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; }
.resume-intro p { color: var(--muted); margin: 0 0 26px; }
.paper {
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  font-size: 16px; line-height: 1.55;
}
.paper header { border-bottom: 3px solid var(--ss-blue); padding-bottom: 18px; margin-bottom: 26px; }
.paper h3.name { font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; line-height: 1; margin: 0 0 6px; }
.paper .role { margin: 0; color: var(--ink-muted); font-size: 16px; }
.paper .contact { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.paper .contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(0, 147, 208, 0.45); }
.paper h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ss-blue-ink); margin: 30px 0 14px; }
.paper h4:first-of-type { margin-top: 0; }
.paper p { margin: 0 0 12px; }
.job { margin-bottom: 22px; }
.job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.job-head h5 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.job-head .when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-muted); }
.job .title { margin: 2px 0 10px; color: var(--ink-muted); font-style: italic; }
.paper ul { margin: 0; padding-left: 18px; }
.paper li { margin-bottom: 7px; }
.paper li::marker { color: var(--ss-blue); }
.skills { display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; }
.skills dt { font-weight: 600; }
.skills dd { margin: 0; color: #33434e; }
.oss { display: grid; gap: 10px; }
.oss a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .resume-wrap { grid-template-columns: 1fr; gap: 28px; }
  .resume-intro { position: static; }
}
@media (max-width: 520px) {
  .skills { grid-template-columns: 1fr; gap: 2px; }
  .skills dd { margin-bottom: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: end; }
.site-footer h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px; max-width: 16em; }
.fine { color: var(--dim); font-size: 13.5px; margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Print: the resume only ---------- */
@media print {
  @page { margin: 0.55in; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .hero, #apps, #past, .resume-intro, .site-footer, .steam { display: none !important; }
  #resume { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .resume-wrap { display: block; }
  .paper { box-shadow: none; padding: 0; background: #fff; font-size: 10.5pt; }
  .paper h4 { color: #000; }
  .job { break-inside: avoid; }
  a { text-decoration: none; }
}

/* =========================================================
   Motion
   ========================================================= */

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .past-grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .past-grid .reveal:nth-child(3) { transition-delay: .2s; }

/* Animations stay paused while their panel is off screen */
.product:not(.in-view) *, .product:not(.in-view)::before, .product:not(.in-view)::after { animation-play-state: paused !important; }

/* Hero cards drift gently (uses `translate`, so hover `transform` still works) */
.fan .card { animation: drift 7s ease-in-out infinite; }
.fan .c2 { animation-delay: -2.3s; }
.fan .c3 { animation-delay: -4.6s; }
@keyframes drift { 50% { translate: 0 -12px; } }

/* ---- Vegasful: neon halftone, bokeh, rotating headline ---- */
.vegasful .halftone {
  opacity: .75;
  background: linear-gradient(110deg, #ff2bf0, #6a5cff, #00d0f0, #ff2bf0) 0 0 / 300% 100%;
  -webkit-mask-image: radial-gradient(circle, #000 1.5px, transparent 2px), linear-gradient(115deg, transparent 38%, #000 96%);
  mask-image: radial-gradient(circle, #000 1.5px, transparent 2px), linear-gradient(115deg, transparent 38%, #000 96%);
  -webkit-mask-size: 14px 14px, 100% 100%;
  mask-size: 14px 14px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: neon-shift 9s linear infinite;
}
.vegasful .halftone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) 0 0 / 260% 100% no-repeat;
  animation: shimmer 4.8s ease-in-out infinite;
}
@keyframes neon-shift { to { background-position: 300% 0; } }
@keyframes shimmer { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }

.bokeh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bokeh i {
  position: absolute; bottom: -60px; border-radius: 50%;
  width: var(--s, 36px); height: var(--s, 36px); left: var(--x, 50%);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), var(--c, rgba(255, 43, 240, 0.5)) 40%, transparent 70%);
  filter: blur(1.5px);
  opacity: 0;
  animation: float-up var(--d, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.bokeh i:nth-child(1) { --x: 6%;  --s: 28px; --d: 15s; --delay: -2s; }
.bokeh i:nth-child(2) { --x: 22%; --s: 14px; --d: 11s; --delay: -7s; --c: rgba(0, 208, 240, 0.55); }
.bokeh i:nth-child(3) { --x: 41%; --s: 44px; --d: 18s; --delay: -4s; --c: rgba(106, 92, 255, 0.45); }
.bokeh i:nth-child(4) { --x: 57%; --s: 18px; --d: 12s; --delay: -9s; }
.bokeh i:nth-child(5) { --x: 69%; --s: 34px; --d: 16s; --delay: -1s; --c: rgba(0, 208, 240, 0.5); }
.bokeh i:nth-child(6) { --x: 81%; --s: 12px; --d: 10s; --delay: -5s; }
.bokeh i:nth-child(7) { --x: 91%; --s: 26px; --d: 14s; --delay: -11s; --c: rgba(106, 92, 255, 0.5); }
.bokeh i:nth-child(8) { --x: 33%; --s: 20px; --d: 13s; --delay: -12s; --c: rgba(0, 208, 240, 0.5); }
@keyframes float-up {
  0% { transform: translate(0, 0) scale(.8); opacity: 0; }
  12% { opacity: .9; }
  50% { transform: translate(18px, -330px) scale(1); }
  85% { opacity: .7; }
  100% { transform: translate(-10px, -680px) scale(1.15); opacity: 0; }
}

.rotator {
  display: inline-block; position: relative;
  background: linear-gradient(90deg, #ff4bf2, #9b8cff 50%, #34dcff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 60, 240, 0.45));
  transition: opacity .32s ease, transform .32s cubic-bezier(.3, .7, .2, 1), filter .32s ease;
}
.rotator.out { opacity: 0; transform: translateY(-0.45em) rotateX(55deg); filter: blur(6px); }
.rotator.pre { opacity: 0; transform: translateY(0.45em) rotateX(-55deg); filter: blur(6px); transition: none; }

.vegasful .phone { animation: hover-phone 6s ease-in-out infinite; }
@keyframes hover-phone { 50% { translate: 0 -14px; } }
.vegasful .product-visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 560px; margin: -280px 0 0 -180px; border-radius: 60px;
  background: radial-gradient(closest-side, rgba(255, 43, 240, 0.45), rgba(0, 208, 240, 0.25) 60%, transparent);
  filter: blur(22px);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse { 50% { opacity: .55; transform: scale(.94); } }

/* ---- WrestleVRS: arena push-in, sweeping spotlights, flashbulbs ---- */
.wrestlevrs .bg { animation: push-in 26s ease-in-out infinite alternate; transform-origin: 70% 40%; }
.wrestlevrs .bg::after { animation: none; }
@keyframes push-in { from { transform: scale(1); } to { transform: scale(1.09); } }

.spotlights { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.beam {
  position: absolute; top: -8%; width: 260px; height: 125%;
  background: linear-gradient(to bottom, rgba(255, 228, 176, 0.5), rgba(255, 210, 150, 0.12) 55%, transparent 88%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  filter: blur(7px);
  animation: sweep 8s ease-in-out infinite alternate;
}
.beam.b1 { left: 48%; animation-duration: 9s; --a: -24deg; --b: 14deg; }
.beam.b2 { left: 66%; animation-duration: 7s; animation-delay: -3s; --a: 20deg; --b: -16deg; background: linear-gradient(to bottom, rgba(255, 120, 100, 0.42), rgba(255, 90, 70, 0.1) 55%, transparent 88%); }
.beam.b3 { left: 84%; animation-duration: 10s; animation-delay: -6s; --a: -12deg; --b: 22deg; }
@keyframes sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }

.flashes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.flashes i {
  position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 6%, rgba(255, 255, 255, 0.85) 12%, rgba(255, 245, 225, 0.25) 35%, transparent 65%);
  animation: flashbulb .55s ease-out forwards;
}
.flashes i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 2px; margin: -1px 0 0 -75px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}
@keyframes flashbulb {
  0% { transform: scale(.2); opacity: 0; }
  12% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.strip figure { animation: card-bob 5s ease-in-out infinite; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.strip figure:nth-child(2) { animation-delay: -1.6s; }
.strip figure:nth-child(3) { animation-delay: -3.2s; }
@keyframes card-bob { 50% { translate: 0 -8px; } }
.strip figure:hover { transform: translateY(-12px) rotate(-2deg) scale(1.04); box-shadow: 0 30px 50px -14px rgba(0, 0, 0, .9), 0 0 0 2px var(--wr-red); }
.strip figure:nth-child(2):hover { transform: translateY(-34px) rotate(2deg) scale(1.04); }

.wordmark span { display: inline-block; animation: vrs-pulse 3.2s ease-in-out infinite; }
@keyframes vrs-pulse { 0%, 100% { text-shadow: 0 0 0 rgba(212, 49, 43, 0); } 50% { text-shadow: 0 0 22px rgba(255, 70, 55, 0.65); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .flashes, .bokeh { display: none; }
}

/* Phones: show the WrestleVRS arena as a banner above the copy */
@media (max-width: 900px) {
  .wrestlevrs .bg, .spotlights, .flashes { bottom: auto; height: 340px; }
  .wrestlevrs .bg { background-position: 60% 35%; }
  .wrestlevrs .bg::after { background: linear-gradient(180deg, rgba(14, 9, 7, 0.1) 0%, rgba(14, 9, 7, 0.35) 55%, #120c0a 100%); }
  .wrestlevrs .product-copy { padding-top: 250px; }
  .beam { width: 180px; }
}
@media (max-width: 420px) {
  .status { font-size: 10.5px; letter-spacing: .04em; }
}

/* ---------- Brand: the winding street from the logo ---------- */
.street { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.street .road { fill: none; stroke: rgba(217, 223, 227, 0.13); stroke-width: 84; stroke-linecap: round; }
.street .lane {
  fill: none; stroke: rgba(217, 223, 227, 0.45); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 26 30; animation: lane-move 2.4s linear infinite;
}
.js .street .road { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: road-draw 2.6s cubic-bezier(.3, .7, .2, 1) .2s forwards; }
@keyframes road-draw { to { stroke-dashoffset: 0; } }
@keyframes lane-move { to { stroke-dashoffset: -56; } }
.hero h1 em { color: var(--ss-blue); }

/* Resume details */
.paper .name { color: var(--ink); }
.paper .job p { margin: 0; color: #2c3a44; }
.paper ul a, .paper p a { color: var(--ss-blue-ink); }
.earlier dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 18px; margin: 0; }
.earlier dt { font-weight: 700; }
.earlier dd { margin: 0; color: #3b4a55; }
@media (max-width: 520px) { .earlier dl { grid-template-columns: 1fr; gap: 0; } .earlier dd { margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .js .street .road { stroke-dashoffset: 0; } }
@media print { .paper .job { break-inside: avoid; } .earlier { break-inside: avoid; } }
.js .street .lane { opacity: 0; animation: lane-move 2.4s linear infinite, fade-in .8s ease 2.2s forwards; }
@keyframes fade-in { to { opacity: 1; } }
body { font-variant-numeric: lining-nums; }
.brand img { height: 52px; }

.hero h1 .line { display: block; }
/* Size the headline to its column so each sentence stays on one line */
.hero-copy { container-type: inline-size; min-width: 0; }
@supports (font-size: 1cqi) {
  .hero h1 { font-size: clamp(36px, 12.4cqi, 84px); }
  .hero h1 .line { white-space: nowrap; }
}

/* Resume portrait */
.portrait { margin: 0 0 28px; width: min(300px, 100%); position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(217, 223, 227, .14); pointer-events: none; }
.portrait::before { content: ""; position: absolute; left: -10px; bottom: -10px; width: 46%; height: 46%; border-radius: 18px; background: var(--ss-blue); opacity: .85; z-index: -1; }
@media (max-width: 900px) { .portrait { width: 220px; } }
.portrait { width: min(250px, 100%); }
@media (max-height: 880px) { .resume-intro { position: static; } }
