/* Project Boy: tactile hardware, paired with the portfolio's olive and terracotta palette. */
.project-orbit {
  --boy-shell: #b5b9ac;
  --boy-shell-light: #d6d9cd;
  --boy-shell-low: #93998b;
  --boy-edge: #707868;
  --boy-print: #303d35;
  --boy-bezel: #414940;
  --boy-stage: #1a2018;
  --boy-stage-line: #38452f;
  --lcd-bg: #b0be7a;
  --lcd-ink: #263b23;
  --boy-button: #8b3b48;
  --boy-button-top: #a35461;
  --boy-button-edge: #57212c;
  position: relative;
}
html[data-theme='light'] .project-orbit {
  --boy-shell: #d4d2c6;
  --boy-shell-light: #f1eee2;
  --boy-shell-low: #bcbcaf;
  --boy-edge: #9a9e8c;
  --boy-print: #3e4c43;
  --boy-bezel: #5b6056;
  --boy-stage: #e7e9dd;
  --boy-stage-line: #c4cbb8;
  --lcd-bg: #b5c584;
  --lcd-ink: #293b25;
  --boy-button: #953d4e;
  --boy-button-top: #ad5767;
}
.project-boy__heading { margin-bottom: 54px; }
.project-boy__heading > p { max-width: 370px; }
.project-boy__workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 4.5vw, 64px); }
.project-boy__playground { position: relative; min-width: 0; padding: 24px 24px 28px; border: 1px solid var(--boy-stage-line); border-radius: 22px; background: radial-gradient(ellipse at 40% 40%, var(--keyboard-glow), transparent 65%), var(--boy-stage); }
.project-boy__desk-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font: 500 8px/1.5 'Inter', sans-serif; letter-spacing: 1.3px; }
.project-boy__desk-label > span:first-child { display: flex; align-items: center; gap: 8px; }
.project-boy__desk-label .status-dot { width: 5px; height: 5px; }
.gameboy-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 675px; padding: 40px 5px 45px; perspective: 1400px; isolation: isolate; }
.gameboy-stage::after { position: absolute; z-index: -1; bottom: 44px; left: 15%; width: 74%; height: 60px; border-radius: 50%; background: #00000026; filter: blur(20px); transform: rotate(-7deg); content: ''; }
.gameboy-stage__ring { position: absolute; z-index: -1; top: 16%; left: 2%; width: 96%; aspect-ratio: 1; border: 1px solid var(--boy-stage-line); border-radius: 50%; }
.gameboy-stage__ring::before, .gameboy-stage__ring::after { position: absolute; inset: 23px; border: 1px dashed var(--boy-stage-line); border-radius: inherit; content: ''; }
.gameboy-stage__ring::after { inset: -23px; border-style: solid; opacity: .4; }
.gameboy-stage__annotation { position: absolute; top: 70px; right: -4px; color: var(--muted); font: 500 7px/1.8 'Inter', sans-serif; letter-spacing: 1px; writing-mode: vertical-rl; }
.gameboy {
  position: relative; width: 334px; padding: 18px 19px 16px; border: 1px solid var(--boy-edge); border-radius: 17px 17px 66px 17px;
  color: var(--boy-print); background: linear-gradient(116deg, var(--boy-shell-light) 0%, var(--boy-shell) 32%, var(--boy-shell) 73%, var(--boy-shell-low) 100%);
  box-shadow: inset 2px 3px 3px #ffffff75, inset -3px -3px 4px #4a514536, 1px 2px 0 var(--boy-edge), 3px 4px 0 var(--boy-edge), 5px 6px 0 var(--boy-edge), 7px 8px 0 #4b5348, 9px 11px 0 #363e33, 16px 23px 25px #00000030, 28px 42px 55px #00000025;
  /* A single surface keeps nested A/B and START/SELECT controls reachable. */
  transform: rotateX(5deg) rotateY(-8deg) rotateZ(-6deg); transform-style: flat;
  transition: transform 650ms var(--ease-out), box-shadow 400ms, background 450ms; outline-offset: 16px;
}
.gameboy::before { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h120v120H0z'/%3E%3C/svg%3E"); content: ''; }
.gameboy::after { position: absolute; top: 10px; left: 0; right: 0; height: 1px; background: #48523b38; box-shadow: 0 1px 0 #ffffff70; content: ''; pointer-events: none; }
.gameboy__top-edge { position: absolute; top: -3px; right: 31px; display: flex; gap: 4px; transform: skewX(-25deg); }
.gameboy__top-edge span { width: 3px; height: 8px; border-radius: 1px; background: var(--boy-edge); box-shadow: 1px 0 #ffffff55; }
.gameboy__utility { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 1px 0 13px; }
.gameboy__power, .gameboy__sound { display: flex; align-items: center; gap: 6px; min-height: 29px; padding: 3px 0; border: 0; background: transparent; color: var(--boy-print); font: 700 8px/1 'Inter', sans-serif; letter-spacing: .7px; }
.gameboy__power-state { font-size: 7px; }
.gameboy__switch { width: 29px; height: 13px; padding: 2px; border-radius: 3px; background: #343b32; box-shadow: inset 0 1px 3px #0008, 0 1px 0 #fff8; }
.gameboy__switch::before { display: block; width: 13px; height: 9px; border: 1px solid #959b8a; border-radius: 2px; background: repeating-linear-gradient(90deg, #89917e 0 2px, #b4bba5 2px 3px); box-shadow: 0 1px 1px #0008; transform: translateX(12px); transition: transform 200ms; content: ''; }
.gameboy__power[aria-pressed='false'] .gameboy__switch::before { transform: translateX(0); }
.gameboy__sound { gap: 4px; }
.gameboy__sound svg { width: 16px; height: 16px; }
.gameboy__sound .sound-waves, .gameboy__sound[aria-pressed='true'] .sound-muted { display: none; }
.gameboy__sound[aria-pressed='true'] .sound-waves { display: initial; }
.gameboy__bezel { position: relative; padding: 12px 17px 13px 31px; border: 1px solid #2c332b; border-radius: 10px 10px 34px 10px; background: linear-gradient(130deg, var(--boy-bezel), #363d35); box-shadow: inset 0 1px 1px #ffffff42, inset 0 -2px 3px #0005, 0 1px 1px #ffffff8c; }
.gameboy__bezel-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; margin-left: -14px; }
.gameboy__bezel-heading span { flex: 1; height: 3px; border-top: 1px solid #a88383; border-bottom: 1px solid #798f9e; }
.gameboy__bezel-heading p { color: #dfdfd2; font: 500 5.2px/1 'Inter', sans-serif; white-space: nowrap; letter-spacing: .75px; }
.gameboy__battery { position: absolute; left: 6px; top: 74px; display: grid; justify-items: center; gap: 5px; }
.gameboy__battery i { width: 6px; height: 6px; border-radius: 50%; background: #f08459; box-shadow: inset 0 1px 1px #ffddae, 0 0 5px #fa8b6070; transition: background 200ms, box-shadow 200ms; }
.gameboy__battery span { color: #d9dacf; font: 500 3.8px/1 'Inter', sans-serif; letter-spacing: .2px; }
.gameboy__screen { position: relative; overflow: hidden; height: 231px; border: 3px solid #222d21; border-radius: 3px; background: var(--lcd-bg); color: var(--lcd-ink); box-shadow: inset 3px 4px 9px #25371a66, inset -1px -1px 6px #293c202e, 0 1px 0 #ffffff38; font-family: 'Courier New', monospace; line-height: 1.35; }
.gameboy__screen::after { position: absolute; z-index: 4; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #273f1610 0 1px, transparent 1px 3px), linear-gradient(125deg, #ffffff15, transparent 45%, #10230a0a); content: ''; }
.gameboy__screen-content { display: flex; flex-direction: column; height: 100%; padding: 11px 11px 8px; text-shadow: 1px 1px #263b2312; transition: opacity 180ms, filter 180ms; }
.gameboy__screen-top { display: flex; justify-content: space-between; gap: 4px; padding-bottom: 6px; border-bottom: 2px solid currentColor; font-size: 7px; font-weight: 700; letter-spacing: .15px; }
.gameboy__art { display: grid; place-items: center; flex: 1; min-height: 0; margin: 4px -2px 1px; }
.gameboy__art svg { display: block; width: 100%; max-height: 86px; }
.pixel-scene[hidden] { display: none; }
.gameboy__screen-title { display: flex; align-items: center; gap: 6px; }
.gameboy__screen-title h3 { margin: 0; color: inherit; font: 900 21px/1.2 'Courier New', monospace; letter-spacing: -.9px; }
.gameboy__cursor { font-size: 12px; }
.gameboy__screen-category { margin: 5px 0 7px 18px; font-size: 7px; font-weight: 700; letter-spacing: .2px; }
.gameboy__screen-menu { display: flex; gap: 5px; margin: 1px 0 8px; }
.gameboy__screen-menu button { flex: 1; min-height: 24px; padding: 0 4px; border: 1px solid var(--lcd-ink); border-radius: 0; background: transparent; color: var(--lcd-ink); font: 700 10px/1 'Courier New', monospace; transition: background 150ms, color 150ms; }
.gameboy__screen-menu button[aria-pressed='true'] { background: var(--lcd-ink); color: var(--lcd-bg); }
.gameboy__screen-menu button:hover { box-shadow: inset 0 0 0 1px var(--lcd-ink); }
.gameboy__screen-footer { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid currentColor; font-size: 7px; font-weight: 700; }
.gameboy__screen-info { margin: 6px 0 10px; font-size: 10px; line-height: 1.6; font-weight: 700; }
.gameboy__screen.is-info .gameboy__art, .gameboy__screen.is-info .gameboy__screen-menu { display: none; }
.gameboy__screen.is-info .gameboy__screen-title { margin-top: 16px; }
.gameboy__screen.is-info .gameboy__screen-footer { margin-top: auto; }
.gameboy__sleep { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; opacity: 0; pointer-events: none; color: #374426; transition: opacity 200ms; }
.gameboy__sleep > span { font: 900 43px/1 'Courier New', monospace; letter-spacing: -6px; opacity: .14; }
.gameboy__sleep > p { font-size: 7px; opacity: .45; font-weight: 700; letter-spacing: 1px; }
.gameboy.is-off .gameboy__screen-content { opacity: 0; }
.gameboy.is-off .gameboy__sleep { opacity: 1; }
.gameboy.is-off .gameboy__battery i { background: #252c24; box-shadow: inset 0 1px 1px #0008; }
.gameboy.is-off .gameboy__screen { background: #879373; }
.gameboy.is-off .gameboy__action, .gameboy.is-off .gameboy__small-controls a { pointer-events: none; }
.gameboy__bezel-bottom { margin: 11px 0 0 -14px; text-align: center; color: #c3c8b9; font: 500 5px/1 'Inter', sans-serif; letter-spacing: 1.1px; }
.gameboy__brand { display: flex; align-items: baseline; gap: 5px; margin: 12px 0 19px 3px; font: italic 500 16px/1 'Inter', sans-serif; letter-spacing: -.8px; }
.gameboy__brand > span { margin-right: 2px; font-weight: 800; font-style: normal; letter-spacing: -1px; }
.gameboy__brand strong { font-weight: 800; }
.gameboy__brand sup { position: relative; top: -6px; font-size: 6px; font-style: normal; letter-spacing: 0; }
.gameboy__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 1px 2px 0; }
.gameboy__dpad { display: grid; position: relative; grid-template: repeat(3, 30px) / repeat(3, 30px); padding: 6px; border-radius: 50%; background: #3642310e; box-shadow: inset 0 1px 3px #36423119, 0 1px 0 #ffffff50; }
.gameboy__direction { display: grid; place-items: center; position: relative; min-width: 0; padding: 0; border: 0; color: #181e16; background: linear-gradient(145deg, #4c5147, #30362d); box-shadow: inset 1px 1px 1px #90927f, inset -1px -1px 1px #242b20, 2px 3px 0 #151b13, 3px 5px 4px #0005; font-size: 15px; touch-action: manipulation; transition: translate 100ms, box-shadow 100ms; }
.gameboy__direction span { filter: drop-shadow(0 1px 0 #ffffff27); }
.gameboy__direction--up { grid-area: 1 / 2; border-radius: 3px 3px 0 0; }
.gameboy__direction--left { grid-area: 2 / 1; border-radius: 3px 0 0 3px; }
.gameboy__direction--right { grid-area: 2 / 3; border-radius: 0 3px 3px 0; }
.gameboy__direction--down { grid-area: 3 / 2; border-radius: 0 0 3px 3px; }
.gameboy__dpad-center { z-index: 1; grid-area: 2 / 2; background: #383e33; }
.gameboy__dpad-center::before { display: block; width: 17px; height: 17px; margin: 6px; border-radius: 50%; background: linear-gradient(135deg, #262d22, #434a3b); box-shadow: inset 1px 1px 3px #0004, 0 1px #ffffff1a; content: ''; }
.gameboy__ab { display: flex; align-items: center; gap: 13px; padding: 8px 9px 5px; border-radius: 50px; background: #4a504017; box-shadow: inset 1px 2px 3px #3c443024, 0 1px #ffffff55; transform: rotate(-25deg); }
.gameboy__ab > div { display: grid; justify-items: center; gap: 8px; }
.gameboy__ab > div > span { color: var(--boy-print); font: 800 7px/1 'Inter', sans-serif; letter-spacing: 1px; }
.gameboy__action { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid var(--boy-button-edge); border-radius: 50%; color: #f4c8ca; background: linear-gradient(135deg, var(--boy-button-top), var(--boy-button)); box-shadow: inset 1px 2px 2px #e7a2a85c, inset -2px -2px 3px #612432, 1px 3px 0 var(--boy-button-edge), 2px 5px 0 #47242b, 3px 7px 5px #0004; font: 800 16px/1 'Inter', sans-serif; text-decoration: none; text-shadow: 0 1px 1px #4d152b; transition: translate 100ms, box-shadow 100ms, filter 150ms; touch-action: manipulation; }
.gameboy__action:hover { filter: brightness(1.12); }
.gameboy__direction:active, .gameboy__direction.is-pressed { translate: 1px 3px; box-shadow: inset 1px 1px 1px #777d69, 0 1px 0 #192112; }
.gameboy__action:active, .gameboy__action.is-pressed { translate: 1px 4px; box-shadow: inset 1px 1px 2px #e7a2a84d, 0 1px 0 var(--boy-button-edge), 1px 2px 3px #0005; }
.gameboy__lower { display: flex; align-items: center; justify-content: space-between; height: 89px; padding: 16px 5px 0 58px; }
.gameboy__small-controls { display: flex; gap: 13px; transform: rotate(-24deg); }
.gameboy__small-controls > div { display: grid; justify-items: center; gap: 0; }
.gameboy__small-controls button, .gameboy__small-controls a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 44px; height: 48px; padding: 0; border: 0; border-radius: 7px; background: transparent; touch-action: manipulation; }
.gameboy__small-controls button::before, .gameboy__small-controls a::before { display: block; width: 36px; height: 11px; border: 1px solid #545e4a; border-radius: 20px; background: linear-gradient(#8a9181, #646d5a); box-shadow: inset 0 1px 1px #dce0ca, 1px 2px 0 #47513e, 2px 4px 3px #0004; transition: translate 100ms, box-shadow 100ms; content: ''; }
.gameboy__small-controls :is(button, a):active::before, .gameboy__small-controls .is-pressed::before { translate: 1px 2px; box-shadow: inset 0 1px 2px #46513c, 0 1px 0 #47513e; }
.gameboy__small-controls span { color: var(--boy-print); font: 800 7px/1 'Inter', sans-serif; letter-spacing: 1px; }
.gameboy__speaker { display: flex; gap: 5px; transform: rotate(-28deg); }
.gameboy__speaker i { width: 5px; height: 43px; border-radius: 5px; background: #505b43; box-shadow: inset 2px 1px 2px #192514b3, 1px 1px 0 #ffffff88; }
.gameboy__speaker i:first-child, .gameboy__speaker i:last-child { height: 33px; margin-top: 5px; }
.gameboy__serial { display: flex; align-items: center; gap: 10px; margin: 6px 7px 0; font: 700 5px/1 'Inter', sans-serif; letter-spacing: 1px; opacity: .6; }
.gameboy__serial span { font-size: 4px; letter-spacing: .7px; }
.gameboy-help { max-width: 350px; margin: 0 auto 28px; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.9; }
.gameboy-help > span { display: block; margin-bottom: 8px; color: var(--text); font-size: 8px; font-weight: 600; letter-spacing: 1.2px; }
.gameboy-help kbd { display: inline-grid; place-items: center; min-width: 16px; height: 18px; margin: 0 1px; padding: 0 3px; border: 1px solid var(--line); border-radius: 3px; background: var(--glass-fill); box-shadow: 0 1px 0 var(--line); font: 500 9px/1 'Inter', sans-serif; }
.gameboy-feedback { position: relative; min-height: 62px; margin: -10px 0 25px; padding: 13px 13px 13px 27px; border: 1px solid var(--boy-stage-line); border-radius: 9px; background: var(--glass-fill); color: var(--muted); font-size: 10px; line-height: 1.8; }
.gameboy-feedback::before { position: absolute; top: 19px; left: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); content: ''; }
.project-boy__cartridges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 13px; padding: 18px 0 0; border-top: 1px solid var(--boy-stage-line); }
.project-cartridge { --cart-accent: #a05336; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 8px 7px; border: 1px solid #7d8471; border-radius: 6px 6px 2px 2px; color: #f7f0da; background: linear-gradient(120deg, #b7bdab, #969e88); box-shadow: inset 1px 1px 0 #ffffff7d, inset -1px -1px #637153, 0 3px 0 #58614b, 0 5px 7px #0003; transform: rotate(-3deg); transition: transform 300ms var(--ease-out), box-shadow 250ms; }
.project-cartridge:nth-child(2) { --cart-accent: #526548; transform: rotate(3deg); }
.project-cartridge:nth-child(3) { --cart-accent: #665879; transform: rotate(-2deg); }
.project-cartridge::before { position: absolute; top: 2px; left: 7px; right: 7px; height: 4px; border-block: 1px solid #58634b55; box-shadow: 0 1px 0 #ffffff55; content: ''; }
.project-cartridge__ridges { position: absolute; top: 22px; bottom: 20px; left: -2px; width: 4px; background: repeating-linear-gradient(#88947c 0 3px, #bfcaac 3px 5px); box-shadow: 3px 0 0 #7b876b; }
.project-cartridge__label { position: relative; display: grid; gap: 8px; width: 100%; padding: 10px 7px; overflow: hidden; border: 1px solid #44503b75; border-radius: 3px 3px 12px 3px; background: linear-gradient(135deg, #ffffff1a, transparent 55%), var(--cart-accent); box-shadow: inset 1px 1px 2px #0002; text-align: left; }
.project-cartridge__label::after { position: absolute; top: -17px; right: -15px; width: 70px; height: 70px; border: 10px solid #ffffff0e; border-radius: 50%; content: ''; }
.project-cartridge__label small { font: 600 5px/1 'Inter', sans-serif; letter-spacing: .45px; white-space: nowrap; }
.project-cartridge__label strong { z-index: 1; font: 700 clamp(10px, 1.2vw, 15px)/1.1 'Barlow Condensed', sans-serif; letter-spacing: .2px; }
.project-cartridge__label > span { font: 500 4px/1.4 'Inter', sans-serif; letter-spacing: .25px; }
.project-cartridge__bottom { margin-top: 7px; color: #34412b; font: 800 4px/1 'Inter', sans-serif; letter-spacing: 1px; }
.project-cartridge[aria-pressed='true'] { transform: translateY(-8px) rotate(0); box-shadow: inset 1px 1px 0 #ffffff7d, inset -1px -1px #637153, 0 3px 0 #58614b, 0 10px 15px #0003; }
.project-cartridge[aria-pressed='true'] .project-cartridge__label { outline: 1px solid #f5e9cb; outline-offset: -4px; }
.project-cartridge:hover { transform: translateY(-9px) rotate(0); }
.project-orbit__inspector { min-width: 0; padding-top: 4px; }
.project-orbit__inspector-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 9px; font-weight: 500; letter-spacing: 1.2px; color: var(--muted); }
.project-orbit__active { display: flex; align-items: center; gap: 6px; font-size: 7px; letter-spacing: .7px; }
.project-orbit__active i { width: 5px; height: 5px; border-radius: 50%; background: #8ca76a; box-shadow: 0 0 0 3px #8ca76a15; }
.project-orbit__preview { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 12px 30px #0000000c; }
.project-orbit__browser-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 31px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--soft); }
.project-orbit__browser-bar > span:first-child { display: flex; gap: 4px; }
.project-orbit__browser-bar i { width: 5px; height: 5px; border: 1px solid var(--muted); border-radius: 50%; opacity: .65; }
.project-orbit__browser-bar p { font-size: 7px; letter-spacing: .7px; }
.project-orbit__browser-bar > span:last-child { font-size: 12px; }
.project-orbit__preview-viewport { position: relative; aspect-ratio: 1.6; overflow: hidden; background: var(--soft); }
.project-orbit__preview iframe { position: absolute; top: 0; left: 0; width: 1200px; height: 750px; border: 0; transform: scale(var(--preview-scale, .35)); transform-origin: top left; pointer-events: none; }
.project-orbit__preview-label { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 5px 7px; border: 1px solid #ffffff30; border-radius: 3px; color: #eeefdd; background: #172313dd; backdrop-filter: blur(5px); font-size: 6px; font-weight: 500; letter-spacing: 1px; }
.project-orbit__project-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 18px; }
.project-orbit__class { margin-bottom: 7px; color: var(--accent); font-size: 9px; line-height: 1.5; }
.project-orbit__project-heading h3 { margin: 0; color: var(--text); font: 600 clamp(38px, 4.3vw, 59px)/1 'Barlow Condensed', sans-serif; letter-spacing: -.8px; }
.project-orbit__project-id { margin-bottom: 5px; color: var(--muted); font: 500 9px/1.5 'Courier New', monospace; white-space: nowrap; }
.project-orbit__description { min-height: 118px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.project-orbit__technologies { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 27px; }
.project-orbit__technologies > span { display: flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--glass-fill); font-size: 9px; }
.project-orbit__technologies img { width: 13px; height: 13px; object-fit: contain; }
.project-orbit__section-label { margin-bottom: 12px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 1.4px; }
.project-orbit__features { padding-top: 21px; border-top: 1px solid var(--line); }
.project-orbit__features ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; margin: 0; padding: 0; list-style: none; }
.project-orbit__features li { position: relative; padding-left: 13px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.project-orbit__features li::before { position: absolute; left: 0; color: var(--accent); content: '+'; }
.project-orbit__actions { display: flex; align-items: center; gap: 23px; margin-top: 31px; }
.project-orbit__open { flex: 1; max-width: 245px; justify-content: space-between; min-height: 49px; padding: 12px 18px; font-size: 12px; background: var(--accent-fill); color: var(--accent-ink); }
.project-orbit__footnote { margin-top: 18px; color: var(--muted); font-size: 8px; line-height: 1.8; }
.project-orbit :is(button, a):focus-visible, .gameboy:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.gameboy__screen button:focus-visible { outline-color: var(--lcd-ink); outline-offset: 2px; }

/* Motion follows the action: load a cartridge, settle the shell, wake the LCD. */
@keyframes boy-screen-load { from { opacity: .35; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes boy-detail-load { from { opacity: .4; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@keyframes boy-wake { 0% { clip-path: inset(49% 0); opacity: 0; } 45% { clip-path: inset(46% 0); opacity: .75; } 100% { clip-path: inset(0); opacity: 1; } }
@keyframes boy-arrive { from { opacity: .5; filter: brightness(.8); } to { opacity: 1; filter: brightness(1); } }
.gameboy__screen.is-changing .gameboy__screen-content { animation: boy-screen-load 260ms steps(5, end) both; }
.gameboy__screen.is-booting .gameboy__screen-content { animation: boy-wake 450ms ease-out both; }
.project-orbit__inspector.is-changing > :is(.project-orbit__project-heading, .project-orbit__description, .project-orbit__features) { animation: boy-detail-load 320ms var(--ease-out) both; }
.js-motion .project-orbit.in-view .gameboy:not(.has-arrived) { animation: boy-arrive 900ms var(--ease-out) both; }
@media (hover: hover) and (pointer: fine) { .gameboy:hover { box-shadow: inset 2px 3px 3px #ffffff75, inset -3px -3px 4px #4a514536, 1px 2px 0 var(--boy-edge), 3px 4px 0 var(--boy-edge), 5px 6px 0 var(--boy-edge), 7px 8px 0 #4b5348, 9px 11px 0 #363e33, 16px 23px 25px #00000040, 28px 42px 55px #00000030; } }
@media (max-width: 1100px) {
  .project-boy__workspace { gap: 30px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .project-boy__playground { padding-inline: 17px; }
  .gameboy-stage { min-height: 650px; }
  .gameboy { width: 316px; padding-inline: 15px; }
  .gameboy__bezel { padding-right: 14px; }
  .gameboy__screen { height: 225px; }
  .gameboy__controls { gap: 9px; }
  .gameboy__ab { gap: 10px; padding-inline: 6px; }
  .project-orbit__description { min-height: 140px; }
  .project-cartridge__label { padding-inline: 5px; }
  .project-boy__desk-label { font-size: 6px; }
}
@media (max-width: 900px) {
  .project-boy__workspace { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .project-boy__playground { padding: 24px 35px 30px; }
  .project-boy__desk-label { font-size: 8px; }
  .gameboy-stage { min-height: 680px; }
  .gameboy { width: 334px; padding-inline: 19px; }
  .gameboy__screen { height: 231px; }
  .gameboy-stage__ring { width: 75%; left: 12.5%; top: 13%; }
  .project-boy__cartridges { max-width: 440px; margin-inline: auto; gap: 20px; }
  .project-cartridge__label { padding: 12px 9px; }
  .project-cartridge__label strong { font-size: 17px; }
  .project-cartridge__label small { font-size: 6px; }
  .project-cartridge__label > span { font-size: 4px; }
  .project-orbit__inspector { padding: 0 6px; }
  .project-orbit__description { min-height: 0; font-size: 13px; }
  .project-orbit__features li { font-size: 11px; }
  .project-orbit__project-heading h3 { font-size: 54px; }
  .project-orbit__footnote { font-size: 9px; }
}
@media (max-width: 560px) {
  .project-boy__heading { margin-bottom: 30px; }
  .project-boy__heading > p { font-size: 12px; }
  .project-boy__playground { padding: 19px 15px 22px; border-radius: 14px; }
  .project-boy__desk-label { font-size: 5.5px; letter-spacing: .8px; }
  .gameboy-stage { min-height: 599px; padding-block: 25px 31px; }
  .gameboy { width: 292px; padding: 16px 15px 13px; border-bottom-right-radius: 56px; transform: rotateX(4deg) rotateY(-5deg) rotateZ(-4deg); }
  .gameboy__utility { margin-bottom: 10px; }
  .gameboy__bezel { padding-left: 27px; padding-right: 12px; border-bottom-right-radius: 28px; }
  .gameboy__screen { height: 212px; }
  .gameboy__bezel-heading p { font-size: 4.4px; letter-spacing: .4px; }
  .gameboy__battery { left: 4px; }
  .gameboy__screen-title h3 { font-size: 19px; }
  .gameboy__screen-top { font-size: 6px; }
  .gameboy__screen-category { font-size: 6px; }
  .gameboy__screen-footer { font-size: 6px; }
  .gameboy__screen-info { font-size: 9px; }
  .gameboy__bezel-bottom { font-size: 4px; letter-spacing: .8px; }
  .gameboy__brand { margin-bottom: 17px; font-size: 14px; }
  .gameboy__dpad { grid-template: repeat(3, 27px) / repeat(3, 27px); padding: 4px; }
  .gameboy__dpad-center::before { width: 15px; height: 15px; }
  .gameboy__action { width: 39px; height: 39px; font-size: 14px; }
  .gameboy__ab { gap: 10px; padding: 8px 6px 5px; }
  .gameboy__lower { height: 82px; padding-left: 42px; }
  .gameboy__small-controls { gap: 11px; }
  .gameboy__small-controls button, .gameboy__small-controls a { width: 40px; }
  .gameboy__small-controls button::before, .gameboy__small-controls a::before { width: 32px; }
  .gameboy__speaker { gap: 4px; }
  .gameboy__speaker i { width: 4px; height: 37px; }
  .gameboy__speaker i:first-child, .gameboy__speaker i:last-child { height: 27px; }
  .gameboy-stage__ring { width: 100%; left: 0; top: 21%; }
  .gameboy-stage__annotation { display: none; }
  .gameboy-help { max-width: 260px; font-size: 9px; margin-bottom: 23px; }
  .gameboy-help > span { font-size: 6.5px; letter-spacing: 1px; }
  .project-boy__cartridges { gap: 10px; }
  .project-cartridge { padding: 13px 6px 6px; }
  .project-cartridge__label { padding: 9px 5px; gap: 7px; }
  .project-cartridge__label strong { font-size: 13px; }
  .project-cartridge__label small { font-size: 4px; letter-spacing: .2px; }
  .project-cartridge__label > span { font-size: 3.2px; }
  .project-orbit__inspector-top { font-size: 8px; letter-spacing: .7px; margin-bottom: 16px; }
  .project-orbit__active { font-size: 6px; }
  .project-orbit__project-heading { margin-top: 23px; }
  .project-orbit__project-heading h3 { font-size: 48px; }
  .project-orbit__class { font-size: 8px; }
  .project-orbit__description { font-size: 12px; }
  .project-orbit__technologies { gap: 5px; }
  .project-orbit__technologies > span { font-size: 8px; padding-inline: 6px; }
  .project-orbit__features li { font-size: 10px; }
  .project-orbit__actions { gap: 20px; }
  .project-orbit__open { font-size: 11px; }
}
@media (max-width: 380px) {
  .project-boy__playground { padding-inline: 10px; }
  .gameboy-stage { min-height: 564px; }
  .gameboy { zoom: .83; }
  .project-cartridge__label strong { font-size: 11px; }
  .project-cartridge__label > span { font-size: 3px; }
  .project-boy__desk-label > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-orbit *, .project-orbit *::before, .project-orbit *::after { animation: none !important; transition: none !important; }
}
