:root{color-scheme:dark;--bg:#101921;--surface:#172630;--ink:#f5f2e9;--muted:#c8d4db;--mint:#83dfcc;--orange:#ffae81;--line:#3d515d;font:100%/1.55 Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}a{color:inherit}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}img{display:block;max-width:100%}.shell{width:min(1120px,calc(100% - 64px));margin-inline:auto}.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:1.4rem;border-bottom:1px solid var(--line)}.top a{text-decoration:none}.top a:hover{text-decoration:underline}.brand,.label,.skills{font-size:.875rem;font-weight:700;letter-spacing:.06em}.brand,.label,.skills{color:var(--mint)}nav{display:flex;gap:1.5rem}.hero{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,5vw,5rem);align-items:center;padding-block:3.5rem 4rem}.label{text-transform:uppercase;margin:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(2.6rem,6.3vw,5.4rem);line-height:.98;letter-spacing:-.055em;margin-block:.8rem 1.25rem}h2{font-size:clamp(1.75rem,3.6vw,2.5rem);letter-spacing:-.035em;line-height:1.1}h3{font-size:1.55rem;line-height:1.15}.button,button,select{border:1px solid transparent;padding:.65rem .9rem;border-radius:.25rem;font:inherit;font-weight:700}.button{display:inline-block;text-decoration:none;background:var(--mint);color:var(--bg)}.button:hover{background:var(--ink)}.projects{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);margin-top:1.35rem}.projects article{border-top:2px solid var(--mint);padding-top:1rem}.projects article.outrun{border-color:var(--orange)}.outrun .skills{color:var(--orange)}article p{margin-top:.65rem;color:var(--muted)}#presentation{margin-top:4rem}.heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.outline{background:transparent;color:var(--ink);border-color:var(--line);white-space:nowrap}.outline:hover{color:var(--bg)}.viewer{margin:0;border:1px solid var(--line);background:var(--surface)}.viewer img{width:100%;height:auto;aspect-ratio:16/9}.controls{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;padding:.8rem;border-top:1px solid var(--line)}button,select{background:var(--bg);border-color:var(--line);color:var(--ink)}button:not(:disabled),select{cursor:pointer}button:disabled{opacity:.45}button:hover:not(:disabled){border-color:var(--mint)}output{min-width:3.5rem;text-align:center;font-variant-numeric:tabular-nums}.jump{margin-left:auto}select{min-width:0;max-width:100%}
@media(max-width:720px){.shell{width:calc(100% - 36px)}.hero{grid-template-columns:1fr;padding-block:2.5rem 3rem}.heading{align-items:start;flex-direction:column}.jump{margin-left:0}nav{gap:.7rem}}
@media(max-width:460px){.projects{grid-template-columns:1fr}.brand{font-size:.75rem}.top{gap:.65rem}.controls select{flex:1;max-width:calc(100% - 7rem)}}
#demos{margin-top:4rem}.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);margin-top:1.35rem}.demo-grid video,.walkthrough video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#080d10;border:1px solid var(--line);margin-top:.8rem}.walkthrough{width:min(760px,100%);margin-top:2.25rem}
@media(max-width:620px){.demo-grid{grid-template-columns:1fr}.top{align-items:flex-start}nav{flex-wrap:wrap}}

.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid #4d5d58;
  background:
    radial-gradient(ellipse at 25% 46%, #b9502350, transparent 42%),
    radial-gradient(ellipse at 73% 65%, #207c9354, transparent 43%),
    repeating-linear-gradient(0deg, #08101160 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #08101160 0 1px, transparent 1px 24px),
    linear-gradient(155deg, #292320, #11191b 61%, #15292d);
  box-shadow: 0 22px 50px #050b1080;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 74px 22px #080e12c7;
}
.hero-art img, .dungeon-door, .dungeon-mage { position: absolute; image-rendering: pixelated }
.dungeon-door {
  inset: 8% auto auto 31%;
  width: 38%;
  aspect-ratio: 4 / 5;
  background: url("assets/cover-dungeon.png") 67.7966% 0 / 1280% 640% no-repeat;
  filter: brightness(1.55) drop-shadow(0 15px 22px #04080b);
}
.dungeon-torch { width: 12%; top: 27%; filter: drop-shadow(0 0 18px #ff8732) }
.torch-left { left: 19% }
.torch-right { right: 19% }
.dungeon-mage {
  left: 18%;
  bottom: -7%;
  width: 64%;
  aspect-ratio: 1;
  z-index: 2;
  background: url("assets/cover-mage.png") 66.6667% 66.6667% / 700% 400% no-repeat;
  filter: drop-shadow(0 12px 14px #060b0d) drop-shadow(0 0 15px #ff94434d);
}
.dungeon-spell { z-index: 2; width: 28%; }
.spell-fire { right: 9%; bottom: 18%; transform: rotate(19deg); filter: drop-shadow(0 0 24px #ff672b); }
.spell-ice { left: 12%; bottom: 11%; transform: rotate(-15deg); filter: drop-shadow(0 0 25px #4fbef4); }
main { padding-bottom: 3.5rem; }

.hero-covers {
  display: grid;
  border: 1px solid #4d5d58;
  box-shadow: 0 22px 50px #050b1080;
}
.outrun-cover { width: 100%; height: auto; }
.hero-covers .hero-art {
  aspect-ratio: 2 / 1;
  border: 0;
  border-top: 1px solid #4d5d58;
  box-shadow: none;
}
.hero-covers .dungeon-door { width: 29%; left: 35.5%; top: -8%; }
.hero-covers .dungeon-mage { width: 52%; left: 24%; bottom: -22%; }
.hero-covers .dungeon-torch { width: 10%; top: 24%; }
.hero-covers .torch-left { left: 23%; }
.hero-covers .torch-right { right: 23%; }
.hero-covers .dungeon-spell { width: 23%; }
.hero-covers .spell-fire { right: 15%; bottom: 3%; }
.hero-covers .spell-ice { left: 16%; bottom: -2%; }
