:root {
  --ink: #111315;
  --ink-soft: #343a40;
  --muted: #6f757b;
  --line: #dfe3e6;
  --paper: #f7f4ef;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --dark-panel: #111315;
  --header-bg: rgba(255, 255, 255, 0.78);
  --border: rgba(17, 19, 21, 0.12);
  --border-soft: rgba(17, 19, 21, 0.09);
  --grid-line: rgba(17, 19, 21, 0.04);
  --body-gradient: linear-gradient(180deg, #fbfaf7 0%, #f7f4ef 100%);
  --hover-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 234, 0.98) 56%, rgba(255, 90, 54, 0.18));
  --dark-hover-gradient: linear-gradient(135deg, #151719, #261713 64%, rgba(255, 90, 54, 0.28));
  --hover-shadow: 0 24px 60px rgba(17, 19, 21, 0.13);
  --accent: #ff5a36;
  --accent-cool: #00a7a7;
  --accent-blue: #2557ff;
  --shadow: 0 22px 70px rgba(17, 19, 21, 0.12);
  --radius: 0.5rem;
  --max-width: 73.75rem;
  --gap-padding: 2.5rem;
}

body[data-theme="dark"] {
  --ink: #f7f4ef;
  --ink-soft: #d9d4cb;
  --muted: #aaa39a;
  --line: #303236;
  --paper: #101112;
  --surface: rgba(24, 25, 27, 0.84);
  --surface-strong: #17191b;
  --dark-panel: #090a0b;
  --header-bg: rgba(20, 21, 23, 0.78);
  --border: rgba(255, 255, 255, 0.13);
  --border-soft: rgba(255, 255, 255, 0.09);
  --grid-line: rgba(255, 255, 255, 0.045);
  --body-gradient: linear-gradient(180deg, #101112 0%, #17130f 100%);
  --hover-gradient: var(--dark-hover-gradient);
  --hover-shadow: 0 24px 70px rgba(255, 90, 54, 0.2), 0 18px 60px rgba(0, 0, 0, 0.38);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(100%, 1vw + 10px, 165%);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--body-gradient);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: 100%;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 1rem auto 0;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--header-bg);
  box-shadow: 0 12px 40px rgba(17, 19, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.375rem;
  height: 2.375rem;
  place-items: center;
  border-radius: 6px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--hover-gradient);
  box-shadow: 0 8px 22px rgba(255, 90, 54, 0.08);
}

.theme-toggle {
  display: inline-grid;
  width: 2.375rem;
  height: 2.375rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--hover-gradient);
  box-shadow: var(--hover-shadow);
}

.theme-toggle-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -0.3125rem -0.25rem 0 var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  min-height: calc(82vh - 88px);
  padding: clamp(58px, 8vw, 92px) 0 38px;
}

.personal-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.personal-hero .hero-copy {
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 0 auto;
}

.arrow-trigger-zone {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 14rem;
  z-index: 15;
  pointer-events: auto;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--ink);
  animation: bounce 2s infinite;
  text-decoration: none;
  opacity: 0.7;
  display: inline-block;
  z-index: 10;
  transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.scroll-down-arrow:hover {
  opacity: 1;
}

.scroll-down-arrow .arrow-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-down-arrow-white {
  color: var(--paper);
}

/* Pull-up hover animations and offsets */
#work {
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

#games-section {
  position: relative;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

#work h2, #work p, #work .button,
#games-section h2, #games-section p, #games-section .button {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.4, 1), opacity 0.5s ease;
}

.pull-up-active .scroll-down-arrow {
  bottom: 11.25rem;
  opacity: 1;
}

.pull-up-active .scroll-down-arrow .arrow-icon {
  transform: rotate(180deg);
}

body.pull-up-active-hero #work {
  transform: translateY(-140px);
  opacity: 1;
}

body.pull-up-active-hero #work h2,
body.pull-up-active-hero #work p,
body.pull-up-active-hero #work .button {
  transform: translateY(-180px);
}

body.pull-up-active-work #games-section {
  transform: translateY(-140px);
  opacity: 1;
}

body.pull-up-active-work #games-section h2,
body.pull-up-active-work #games-section p,
body.pull-up-active-work #games-section .button {
  transform: translateY(-180px);
}

/* Motion Particles */
.motion-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particle-fly 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes particle-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}



.personal-hero h1 {
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.98;
}

.personal-hero .hero-text {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 42px;
  margin-top: 24px;
}

.hero-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.idea-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark-panel);
  box-shadow: var(--shadow);
}

.start-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.start-card .eyebrow {
  margin: 6px 8px 12px;
}

.start-link {
  display: block;
  padding: 16px;
  border-radius: 6px;
  min-height: 86px;
  transition: background 180ms ease, transform 180ms ease;
}

.start-link + .start-link {
  border-top: 1px solid var(--border-soft);
}

.start-link:hover {
  color: var(--ink);
  background: var(--hover-gradient);
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(255, 90, 54, 0.08);
}

.start-link strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.start-link span {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.4;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3.1vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.05;
}

p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-text {
  margin-bottom: 30px;
  color: #3e454b;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.125rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 19, 21, 0.14);
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
}

.hero-visual {
  min-width: 0;
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(17, 19, 21, 0.16);
  border-radius: var(--radius);
  background: var(--dark-panel);
  box-shadow: var(--shadow);
}

.panel-topline {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.panel-topline span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--white);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-pill {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: #8ff7d0;
  font-size: 0.76rem;
  font-weight: 900;
}

#signalCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #171a1d;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.panel-grid span {
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 800;
}

.section {
  padding: clamp(42px, 7vw, 78px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.archive-section {
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.archive-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

a.archive-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
  box-shadow: var(--hover-shadow);
  background: var(--hover-gradient);
}

.archive-card-wide {
  grid-column: span 2;
  min-height: 284px;
  background:
    linear-gradient(135deg, rgba(255, 90, 54, 0.12), transparent 44%),
    var(--surface);
}

.archive-date {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.archive-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.archive-card p {
  margin-bottom: 0;
}

.archive-action {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-blue);
  font-weight: 900;
}

.archive-card.dark-card .archive-date {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.archive-card.dark-card .archive-action {
  color: #8ff7d0;
}

a.archive-card.dark-card:hover p,
a.archive-card.dark-card:hover .archive-date {
  color: var(--ink-soft);
}

a.archive-card.dark-card:hover .archive-action {
  color: var(--accent-blue);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, 0.12);
  box-shadow: 0 18px 55px rgba(17, 19, 21, 0.08);
}

.intro-strip div {
  min-height: 196px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.76);
}

.strip-number {
  display: block;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.intro-strip p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.split-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
}

.feature-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
}

.card-content {
  padding: clamp(24px, 4vw, 42px);
}

.card-content p:last-child {
  margin-bottom: 0;
}

.card-visual {
  min-height: 310px;
}

.broker-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(180deg, #15181b, #23282c);
}

.orbital {
  position: absolute;
  inset: 72px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.orbital-two {
  inset: 115px 52px;
  transform: rotate(-22deg);
  border-color: rgba(0, 167, 167, 0.46);
}

.orbital-one::after {
  position: absolute;
  top: 24px;
  right: 40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.data-chip {
  position: absolute;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
}

.chip-one {
  top: 58px;
  left: 34px;
}

.chip-two {
  right: 28px;
  bottom: 82px;
}

.chip-three {
  left: 72px;
  bottom: 44px;
  color: var(--ink);
  background: #8ff7d0;
}

.dark-card {
  color: var(--white);
  background: var(--dark-panel);
}

.dark-card p,
.dark-card .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-blue);
  font-weight: 900;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
  border-top: 1px solid rgba(17, 19, 21, 0.12);
}

.about-body {
  padding-top: 12px;
}

.about-body p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.games-preview {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: stretch;
}

.games-preview-copy p {
  max-width: none;
}

.game-marquee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: var(--radius);
  background: var(--dark-panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.game-marquee:hover {
  transform: translateY(-3px);
}

.game-marquee span {
  min-height: 86px;
  display: flex;
  align-items: end;
  padding: 14px;
  border-radius: 6px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%),
    #24292d;
  font-weight: 900;
}

.game-marquee span:nth-child(2),
.game-marquee span:nth-child(5) {
  background-color: #0f766e;
}

.game-marquee span:nth-child(3) {
  background-color: #b5341f;
}

.game-marquee span:nth-child(4) {
  background-color: #2d4ef5;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 2rem auto 0;
  padding: clamp(2rem, 5vw, 3.625rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

/* Contact section slide-in from sides animation */
.contact-section[data-animate] {
  opacity: 1;
  transform: none;
}

.contact-section .contact-copy {
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.4, 1), opacity 0.65s ease;
}

.contact-section .contact-actions {
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.4, 1), opacity 0.65s ease;
}

.contact-section.is-visible .contact-copy,
.contact-section.is-visible .contact-actions {
  transform: translateX(0);
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.375rem;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 0 auto;
  padding: 2.125rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--ink);
}

.games-hero {
  max-width: var(--max-width);
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) 0 clamp(34px, 6vw, 64px);
}

.legacy-hero {
  max-width: var(--max-width);
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) 0 clamp(24px, 5vw, 46px);
}

.legacy-hero h1 {
  margin-bottom: 18px;
}

.legacy-hero p:not(.eyebrow) {
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.legacy-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto clamp(2.375rem, 7vw, 4.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
}

.legacy-band a {
  display: block;
  min-height: 112px;
  padding: 22px;
  background: var(--surface);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.legacy-band a:hover {
  background: var(--hover-gradient);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 54, 0.1);
}

.legacy-band strong,
.legacy-band span {
  display: block;
}

.legacy-band strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.legacy-band span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.legacy-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
}

.legacy-card::before {
  position: absolute;
  inset: auto 20px 20px auto;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 90, 54, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.18), transparent 65%);
  content: "";
}

.legacy-card-featured {
  grid-column: span 2;
}

.legacy-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.legacy-card p {
  margin-bottom: 0;
}

.legacy-card .archive-action {
  position: relative;
  z-index: 1;
}

.art-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 48%),
    var(--surface);
}

.game-legacy-card {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 90, 54, 0.28), transparent 42%),
    var(--dark-panel);
}

.game-legacy-card p,
.game-legacy-card .archive-date {
  color: rgba(255, 255, 255, 0.72);
}

.game-legacy-card .archive-action {
  color: #8ff7d0;
}

.legacy-list {
  display: grid;
  gap: 10px;
}

.legacy-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.legacy-row:hover {
  transform: translateY(-2px);
  background: var(--hover-gradient);
  box-shadow: var(--hover-shadow);
}

.legacy-row > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legacy-row h3 {
  margin-bottom: 6px;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
}

.legacy-row p {
  margin-bottom: 0;
}

.games-hero h1 {
  margin-bottom: 22px;
}

.games-hero p:not(.eyebrow) {
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.games-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.game-card {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  background: var(--hover-gradient);
}

.game-poster {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: #191d20;
}

.game-poster-cover {
  padding: 0;
  background: #0f141c;
}

.game-poster-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.home-games-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  width: min(560px, 100%);
  margin: 0.35rem auto 1.35rem;
}

.home-game-icon {
  display: grid;
  place-items: center;
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 28%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 12px 28px rgba(17, 19, 21, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.home-game-icon.is-placeholder {
  background:
    linear-gradient(145deg, rgba(255, 90, 54, 0.12), rgba(37, 87, 255, 0.1)),
    var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-game-icon:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--hover-shadow);
}

.game-poster span {
  position: absolute;
  display: block;
}

.game-info {
  padding: 22px;
}

.game-info h2 {
  margin-bottom: 8px;
  font-size: 1.32rem;
  line-height: 1.1;
}

.game-info p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.game-blob .game-poster {
  background: #17201d;
}

.game-blob .game-poster span {
  width: 78px;
  height: 78px;
  border-radius: 47% 53% 42% 58%;
  background: #8ff7d0;
}

.game-blob .game-poster span:nth-child(1) {
  top: 44px;
  left: 44px;
}

.game-blob .game-poster span:nth-child(2) {
  right: 48px;
  bottom: 42px;
  background: var(--accent);
}

.game-blob .game-poster span:nth-child(3) {
  right: 116px;
  top: 58px;
  background: var(--accent-blue);
}

.game-race .game-poster {
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.16) 42% 48%, transparent 48%),
    #23282c;
}

.game-race .game-poster span {
  bottom: 0;
  width: 4px;
  height: 230px;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-24deg);
}

.game-race .game-poster span:nth-child(1) {
  left: 22%;
}

.game-race .game-poster span:nth-child(2) {
  left: 50%;
  background: var(--accent);
}

.game-race .game-poster span:nth-child(3) {
  right: 22%;
}

.game-ladis .game-poster {
  background: #f2eee5;
}

.game-ladis .game-poster span {
  width: 92px;
  height: 128px;
  border: 1px solid rgba(17, 19, 21, 0.14);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 20px 35px rgba(17, 19, 21, 0.14);
}

.game-ladis .game-poster span:nth-child(1) {
  left: 42px;
  top: 52px;
  transform: rotate(-10deg);
}

.game-ladis .game-poster span:nth-child(2) {
  left: 118px;
  top: 40px;
  background: #ffede7;
  transform: rotate(6deg);
}

.game-ladis .game-poster span:nth-child(3) {
  right: 52px;
  top: 62px;
  background: #e8fff6;
  transform: rotate(14deg);
}

.game-tetris .game-poster {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 28px;
  gap: 6px;
  padding: 24px;
  background: #14181b;
}

.game-tetris .game-poster span {
  position: static;
  border-radius: 4px;
  background: var(--accent-blue);
}

.game-tetris .game-poster span:nth-child(2) {
  grid-column: span 2;
  background: #8ff7d0;
}

.game-tetris .game-poster span:nth-child(3) {
  grid-column: span 3;
  background: var(--accent);
}

.game-casino .game-poster {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 90, 54, 0.42), transparent 34%),
    #121317;
}

.game-casino .game-poster span {
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.game-casino .game-poster span:nth-child(1) {
  left: 44px;
  top: 82px;
}

.game-casino .game-poster span:nth-child(2) {
  left: calc(50% - 37px);
  top: 58px;
  border-color: var(--accent);
}

.game-casino .game-poster span:nth-child(3) {
  right: 44px;
  top: 82px;
}

.game-hesi .game-poster {
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(143, 247, 208, 0.28) 48% 52%, transparent 52%),
    linear-gradient(60deg, #1b1f23 0%, #2b3238 100%);
}

.game-hesi .game-poster span {
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
}

.game-hesi .game-poster span:nth-child(1) {
  left: 20px;
  right: 44%;
  top: 72px;
}

.game-hesi .game-poster span:nth-child(2) {
  left: 38%;
  right: 18px;
  top: 116px;
  background: var(--accent);
}

.game-hesi .game-poster span:nth-child(3) {
  left: 20px;
  right: 28%;
  top: 162px;
}

.compact-contact {
  margin-top: clamp(44px, 7vw, 86px);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 56.25em) {
  .site-shell {
    width: 100%;
  }

  .site-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 6px;
    font-size: 0.82rem;
  }

  .hero,
  .personal-hero,
  .feature-card-large,
  .about-section,
  .games-preview,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .intro-strip,
  .games-gallery,
  .archive-grid,
  .legacy-band,
  .legacy-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .archive-card-wide,
  .legacy-card-featured {
    grid-column: auto;
  }

  .intro-strip div {
    min-height: auto;
  }

  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .legacy-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 35em) {
  .site-shell {
    width: 100%;
  }

  .brand {
    justify-content: center;
  }

  .hero {
    padding-top: 54px;
  }

  .personal-hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 3.8rem);
    line-height: 0.96;
  }

  .personal-hero h1 {
    font-size: clamp(2.65rem, 14vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .button,
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .panel-grid,
  .game-marquee {
    grid-template-columns: 1fr;
  }

  .card-content,
  .archive-card,
  .contact-section {
    padding: 22px;
  }

  .card-visual,
  .game-card {
    min-height: auto;
  }

  .game-poster {
    height: 210px;
  }
}

/* Apple Sections */
.apple-shell {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin-top: -4.625rem;
}
.apple-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  width: 100%;
  min-height: 100vh;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.apple-hero-section.dark-hero {
  background: var(--ink);
  color: var(--paper);
}
.apple-hero-section h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.apple-hero-section p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.apple-hero-section.dark-hero p {
  color: rgba(255, 255, 255, 0.7);
}
.apple-hero-section .button {
  border-color: currentColor;
}
.apple-hero-section.dark-hero .button-primary {
  background: var(--paper);
  color: var(--ink);
}
.apple-grid-section {
  padding: clamp(4rem, 6vw, 6rem) 24px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-gradient);
  width: 100%;
}
.apple-4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.apple-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 42px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 300px;
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.apple-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}
@media (max-width: 48em) {
  .apple-4-grid {
    grid-template-columns: 1fr;
  }
}

/* Helper to temporarily snap layouts instantly on scroll trigger */
.no-transition,
.no-transition * {
  transition: none !important;
}

/* BrokerBotics page */
.bb-page {
  width: min(var(--max-width), calc(100% - var(--gap-padding)));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.theme-dark {
  display: none !important;
}

body[data-theme="dark"] .theme-light {
  display: none !important;
}

body[data-theme="dark"] .theme-dark {
  display: block !important;
}

img.theme-dark.bb-wordmark {
  margin-left: auto;
  margin-right: auto;
}

.bb-logo-pair {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.bb-logo-pair .bb-wordmark {
  margin: 0;
}

.bb-wordmark {
  display: block;
  width: min(280px, 68vw);
  height: auto;
  margin: 0 0 1rem;
  object-fit: contain;
}

.bb-wordmark-home {
  width: min(280px, 72vw);
  margin: 0 auto 0.75rem;
}

.bb-wordmark-cta {
  width: min(200px, 55vw);
  margin: 0 auto 0.35rem;
}

body[data-theme="dark"] .bb-logo-pair .theme-dark,
body[data-theme="dark"] .bb-cta .theme-dark {
  display: block !important;
}

.bb-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.bb-hero .eyebrow {
  margin: 0 0 0.5rem;
}

.bb-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.bb-lead {
  max-width: 32rem;
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.bb-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1.35rem;
}

.bb-socials a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.bb-socials a:hover {
  color: var(--accent);
}

.bb-shot-frame {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c0e11;
  box-shadow: 0 18px 48px rgba(17, 19, 21, 0.12);
  overflow: hidden;
}

.bb-shot-glow {
  box-shadow:
    0 0 0 1px rgba(140, 80, 255, 0.18),
    0 22px 60px rgba(90, 40, 200, 0.22);
}

.bb-shot-frame img,
.bb-gallery-item img,
.bb-home-shots img {
  display: block;
  width: 100%;
  height: auto;
}

.bb-marquee-section {
  margin-top: 1.75rem;
  text-align: center;
}

.bb-marquee-section .section-kicker {
  margin-bottom: 0.75rem;
}

.bb-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.bb-marquee-track {
  display: flex;
  width: max-content;
  animation: bb-marquee-scroll 42s linear infinite;
}

.bb-marquee:hover .bb-marquee-track {
  animation-play-state: paused;
}

.bb-marquee-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 0.65rem;
}

.bb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(17, 19, 21, 0.05);
}

.bb-chip img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  border-radius: 3px;
  flex: 0 0 auto;
}

.bb-marquee-home {
  width: min(720px, 100%);
  margin: 0.35rem auto 1.15rem;
}

@keyframes bb-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bb-marquee-track {
    animation: none;
  }
}

.bb-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.bb-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.bb-feature-reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.bb-feature-reverse .bb-feature-copy {
  order: 2;
}

.bb-feature-reverse .bb-shot-frame {
  order: 1;
}

.bb-feature h2 {
  margin: 0.2rem 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.bb-feature-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.bb-gallery {
  margin-top: 2.5rem;
}

.bb-gallery-head {
  margin-bottom: 1rem;
}

.bb-gallery-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.bb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bb-gallery-wide {
  grid-column: 1 / -1;
}

.bb-gallery-item {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-strong);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bb-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.bb-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.bb-role-card {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.bb-role-card-dark {
  color: #fff;
  background: #111315;
  border-color: rgba(255, 255, 255, 0.1);
}

.bb-role-card h2 {
  margin: 0.2rem 0 0.65rem;
  font-size: 1.45rem;
}

.bb-role-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.bb-role-card-dark p,
.bb-role-card-dark .section-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.bb-role-card-dark h2 {
  color: #fff;
}

.bb-role-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 600;
}

.bb-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.bb-social-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: background 160ms ease, transform 160ms ease;
}

.bb-social-card:hover {
  background: rgba(255, 90, 54, 0.16);
  transform: translateY(-2px);
}

.bb-social-card strong {
  font-size: 0.9rem;
}

.bb-social-card span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 600;
}

.bb-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-top: 2.5rem;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.bb-cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.bb-cta p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}

.bb-home-hero {
  gap: 0.35rem;
  padding-block: clamp(4rem, 10vh, 7rem);
  background: var(--paper);
  color: var(--ink);
}

.bb-home-hero h2 {
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.bb-home-hero p {
  color: var(--ink-soft);
}

.bb-home-hero .button-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.bb-home-hero .button-secondary {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}

.bb-home-hero .button-secondary:hover {
  background: var(--hover-gradient);
}

.bb-home-hero .scroll-down-arrow {
  color: var(--ink);
}

.bb-home-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(880px, 100%);
  margin: 0.85rem auto 1.35rem;
}

.bb-home-shots img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(17, 19, 21, 0.12);
  background: var(--surface-strong);
}

body[data-theme="dark"] .bb-home-shots img {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bb-home-shots img:nth-child(2) {
  transform: translateY(-8px);
}

.bb-marquee-home .bb-chip {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--ink-soft);
}

@media (max-width: 56em) {
  .bb-hero,
  .bb-feature,
  .bb-feature-reverse,
  .bb-role {
    grid-template-columns: 1fr;
  }

  .bb-feature-reverse .bb-feature-copy,
  .bb-feature-reverse .bb-shot-frame {
    order: unset;
  }

  .bb-gallery-grid,
  .bb-social-grid {
    grid-template-columns: 1fr;
  }

  .bb-home-shots {
    grid-template-columns: 1fr;
  }

  .bb-home-shots img:nth-child(2) {
    transform: none;
  }
}
