@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/ibm-plex-sans.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #091624;
  --ink: #f9eed6;
  --muted: #bcc9d5;
  --line: #344554;
  --orange: #ff7445;
  --cyan: #8eeafa;
  --display: "Barlow Condensed", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 "IBM Plex Sans", sans-serif; }
::selection { color: #081827; background: var(--cyan); }
a { color: inherit; text-decoration: none; text-underline-offset: .26em; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
h1,h2,p,figure { margin: 0; }
h1,h2 { font: 700 1rem/.88 var(--display); text-transform: uppercase; letter-spacing: -.018em; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 5.25rem, 1280px); margin-inline: auto; }
.sr-only,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .75rem; left: .75rem; padding: .65rem .9rem; z-index: 5; color: #081827; background: var(--cyan); }
.header { border-bottom: 1px solid var(--line); }
.header-inner,.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font: 700 1.45rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.brand b { color: var(--orange); }
.brand img { display: block; border-radius: 8px; }
nav { display: flex; align-items: center; gap: clamp(.8rem,2.5vw,2.35rem); }
nav a,.studio-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .95rem; font-weight: 600; color: var(--muted); }
nav a:hover,.studio-link:hover { color: var(--ink); text-decoration: underline; }
.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(2rem,6vw,6rem); padding-block: clamp(3.8rem,7vw,7rem) clamp(3.3rem,6vw,5.5rem); }
.intro { min-width: 0; }
h1 { font-size: clamp(4.4rem,8.05vw,6rem); text-wrap: balance; }
h1 span { color: var(--orange); }
.intro p { max-width: 45ch; color: var(--muted); font-size: clamp(1.03rem,1.5vw,1.2rem); margin-block: 1.7rem 1.55rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.primary { display: inline-flex; align-items: center; gap: .5rem; min-height: 47px; padding: .5rem .85rem; background: var(--orange); color: #101823; border-radius: 5px; font-weight: 650; transition: background .2s, transform .2s var(--ease); }
.primary:hover { background: #ff9e7c; transform: translateY(-2px); }
.arcade { min-width: 0; scroll-margin-top: 1.25rem; }
.cabinet { border: 2px solid #e27a51; border-radius: 22px 22px 13px 13px; overflow: hidden; background: #192638; }
.marquee { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.15rem .85rem; min-height: 108px; overflow: hidden; border-bottom: 2px solid #5d453d; background: linear-gradient(108deg,#742f27 0%,#3a2631 45%,#18263a 85%); }
.marquee img { border-radius: 10px; width: clamp(3.5rem,6vw,4.25rem); height: auto; }
.machine-label { display: block; color: #ffdfb9; font-size: .76rem; letter-spacing: .14em; font-weight: 600; }
.marquee h2 { margin-top: .22rem; font-size: clamp(2.8rem,5.7vw,4.65rem); letter-spacing: .015em; }
.marquee-flare { position: absolute; z-index: -1; inset: 0 auto 0 -25%; width: 15%; transform: skew(-22deg); opacity: .38; background: linear-gradient(90deg,transparent,#ffad7d,transparent); animation: sweep 1.4s var(--ease) .4s 1 both; }
@keyframes sweep { to { transform: translateX(900%) skew(-22deg); opacity: 0; } }
.bezel { padding: .65rem .85rem .85rem; background: #142232; }
.hud { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; align-items: center; margin: 0 0 .55rem; padding: .15rem .1rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.hud span { display: flex; align-items: baseline; justify-content: center; gap: .35rem; }
.hud b { color: var(--cyan); font-size: .97rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.screen { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #4d7183; border-radius: 12px; background: #10273b; aspect-ratio: 360 / 220; }
.screen canvas { display: block; width: 100%; height: 100%; }
.screen-copy { position: absolute; top: 13%; left: 50%; width: min(92%, 395px); transform: translateX(-50%); display: grid; justify-items: center; gap: .25rem; padding: .45rem .5rem .55rem; text-align: center; background: #0b1c2be6; border: 1px solid #365970; border-radius: 7px; }
.screen-copy strong { font: 700 clamp(1.45rem,4.4vw,2.8rem)/.95 var(--display); text-transform: uppercase; color: var(--ink); }
.screen-copy span { font-size: clamp(.75rem,1.35vw,.95rem); color: #cce2ec; }
.scan { pointer-events: none; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,#030a101c 0 1px,transparent 1px 4px); }
.control-deck { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .85rem 1rem; border-top: 2px solid #ab593d; background: #25354a; }
.dpad { display: flex; gap: .5rem; }
.steer,.start-button { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 44px; min-height: 44px; border-radius: 7px; border: 1px solid #597289; color: var(--ink); background: #182638; transition: transform .14s, background .18s; touch-action: manipulation; }
.steer:disabled { opacity: .68; }
.steer:not(:disabled):hover { background: #314760; }
.start-button { padding-inline: .7rem; color: #111d29; background: var(--cyan); border-color: #84e4f3; font-weight: 700; }
.start-button:not(:disabled):hover { background: #b7f3ff; }
.steer:not(:disabled):active,.start-button:not(:disabled):active { transform: translateY(2px); }
.instructions { color: var(--muted); text-align: center; font-size: .88rem; margin-top: .65rem; }
kbd { font: inherit; border: 1px solid #53667a; border-radius: 3px; padding-inline: .26rem; color: var(--ink); }
.band { border-block: 1px solid #7d493c; background: #202331; }
.band-inner { display: flex; justify-content: space-between; gap: .7rem 1.5rem; align-items: center; padding-block: .85rem; font-size: .92rem; color: var(--muted); }
.band-inner span:first-child { color: var(--ink); font-weight: 650; display: inline-flex; gap: .65rem; align-items: center; }
.band i { width: .48rem; height: .48rem; border-radius: 50%; background: var(--orange); }
.studio { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(1.5rem,5vw,5rem); padding-block: clamp(4rem,8vw,8rem); }
.studio h2 { font-size: clamp(3.15rem,6.5vw,5.55rem); }
.studio p { margin-top: 1rem; color: var(--muted); max-width: 45ch; }
.studio-copy .studio-link { margin-top: .6rem; color: var(--cyan); }
.cover { min-width: 0; }
.cover img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #486078; }
.cover figcaption { color: var(--muted); margin-top: .55rem; font-size: .87rem; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 1020px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 2rem; }
  h1 { font-size: clamp(3.5rem,7.8vw,5.5rem); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .hero,.studio { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; gap: 2.1rem; }
  h1 { font-size: clamp(4.1rem,12.5vw,5.75rem); }
  .header-inner,.footer-inner { min-height: 67px; }
  .brand { font-size: 1.24rem; gap: .4rem; }
  .brand img { width: 36px; height: 36px; }
  nav { gap: .7rem; }
  nav a,.studio-link { font-size: .88rem; }
  .parent-link { display: none; }
  .band-inner { flex-wrap: wrap; }
  .arcade { width: min(100%,560px); justify-self: center; }
}
@media (max-width: 365px) {
  h1 { font-size: 3.5rem; }
  .hud { gap: .2rem; font-size: .7rem; }
  .hud span { gap: .2rem; }
  .hud b { font-size: .86rem; }
  .control-deck { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-flare { animation: none; opacity: 0; }
  .primary,.steer,.start-button { transition: none; }
  .primary:hover,.steer:active,.start-button:active { transform: none; }
}


.projects {
  padding-block: 0 clamp(4rem,8vw,7rem);
  scroll-margin-top: 1rem;
}
.project-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .9rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.project-heading h2 { font-size: clamp(2.4rem,5.2vw,4.3rem); }
.project-heading p,.project-copy > p:last-child { color: var(--muted); }
.project-preview {
  display: grid;
  grid-template-columns: 1.52fr .8fr;
  gap: clamp(1.5rem,5vw,4.8rem);
  align-items: center;
}
.preview-cabinet {
  min-width: 0;
  padding: 0 .65rem .65rem;
  overflow: hidden;
  background: #172438;
  border: 1px solid #a76e5b;
  border-radius: 13px;
}
.preview-marquee {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 37px;
  color: #ecd5b9;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .1em;
}
.preview-led,.project-status span {
  flex: 0 0 auto;
  width: .46rem;
  height: .46rem;
  border-radius: 50%;
  background: var(--orange);
}
.teaser-display {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #557589;
  border-radius: 8px;
  background: #0b2030;
  transition: border-color .23s, transform .24s var(--ease);
}
.teaser-display img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.82);
  transition: filter .32s, transform .55s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.teaser-scan,.teaser-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.teaser-scan {
  background:
    linear-gradient(0deg,#030d19ab,transparent 47%),
    repeating-linear-gradient(0deg,#04152230 0 1px,transparent 1px 4px);
}
.teaser-sweep {
  background: linear-gradient(180deg,transparent 34%,#9eeafb30 49%,transparent 62%);
  transform: translateY(-100%);
  opacity: 0;
}
.teaser-label {
  position: absolute;
  z-index: 1;
  left: .65rem;
  bottom: .6rem;
  padding: .2rem .48rem;
  border-radius: 4px;
  color: #dcf5f8;
  background: #0b1e2de8;
  font-size: .78rem;
  font-weight: 600;
}
.teaser-display[data-pressed] {
  border-color: #ffba97;
  transform: scale(.99);
}
.teaser-display[data-pressed] img {
  filter: brightness(1.13) saturate(1.1);
}
.teaser-display[data-pressed] .teaser-sweep { animation: teaser-refresh .54s var(--ease) both; }
@media (hover: hover) {
  .teaser-display:hover:not([data-pressed]) { border-color: var(--cyan); }
  .teaser-display:hover:not([data-pressed]) img { filter: brightness(1.04) saturate(1.05); transform: scale(1.025); }
  .teaser-display:hover .teaser-sweep { animation: teaser-refresh .7s var(--ease) both; }
}
@keyframes teaser-refresh {
  0% { transform: translateY(-100%); opacity: .1; }
  24% { opacity: .9; }
  100% { transform: translateY(100%); opacity: 0; }
}
.project-copy { min-width: 0; }
.project-platform { color: var(--muted); font-size: .94rem; }
.project-copy h3 {
  margin: .15rem 0 .65rem;
  color: var(--ink);
  font: 700 clamp(4rem,9vw,7rem)/.9 var(--display);
  letter-spacing: .045em;
}
.project-status { display: flex; align-items: center; gap: .5rem; color: #ffbba4; font-size: .92rem; font-weight: 650; }
.project-copy > p:last-child { margin-top: .85rem; max-width: 39ch; }
@media (max-width: 730px) {
  .project-heading { display: grid; }
  .project-preview { grid-template-columns: 1fr; }
  .project-copy h3 { font-size: 4.1rem; }
}
@media (max-width: 365px) { .nav-arcade { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .teaser-display,.teaser-display img { transition: none; }
  .teaser-display:hover img,.teaser-display[data-pressed] { transform: none; }
  .teaser-display:hover .teaser-sweep,.teaser-display[data-pressed] .teaser-sweep { animation: none; }
}

@media (max-width: 500px) {
  .hud span { flex-direction: column; align-items: center; gap: 0; }
}
.project-progress { margin-top: 1rem; max-width: 360px; }
.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  color: var(--muted);
  font-size: .86rem;
}
.progress-heading span { color: #ffbba4; font-variant-numeric: tabular-nums; }
.project-progress progress {
  --fill: #ff9469;
  display: block;
  width: 100%;
  height: 8px;
  margin-top: .38rem;
  appearance: none;
  border: 0;
  border-radius: 3px;
  background: #304357;
  color: var(--fill);
}
.project-progress progress::-webkit-progress-bar { background: #304357; border-radius: 3px; }
.project-progress progress::-webkit-progress-value {
  background: var(--fill);
  box-shadow: 0 0 5px #ff865bbd;
  border-radius: 2px;
}
.project-progress progress::-moz-progress-bar {
  background: var(--fill);
  box-shadow: 0 0 5px #ff865bbd;
  border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .project-progress.is-lit progress::-webkit-progress-value { animation: progress-glow 1.45s ease-in-out 3; }
  .project-progress.is-lit progress::-moz-progress-bar { animation: progress-glow 1.45s ease-in-out 3; }
}
@keyframes progress-glow {
  0%, 100% { background-color: #ff9469; box-shadow: 0 0 5px #ff865bbd; }
  48% { background-color: #ffe0a9; box-shadow: 0 0 9px 2px #ff8f6bd9; }
}
