@font-face {
  font-family: "Les Flos Sans";
  src: url("assets/fonts/Les_Flos_Sans/Les_Flos_Sans.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #11100d;
  --paper: #f5f0e4;
  --paper-deep: #e9dfc9;
  --cream: #fffdd0;
  --acid: #d9ff55;
  --plum: #45354f;
  --line: rgba(17, 16, 13, 0.15);
  --pointer-x: 0;
  --pointer-y: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Les Flos Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; background: var(--paper); }

a { color: inherit; }

.site-shell {
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 74% 46%, rgba(255, 253, 208, 0.9), transparent 19rem),
    linear-gradient(125deg, var(--paper) 0%, #faf7ef 52%, var(--paper-deep) 150%);
}

.site-footer {
  width: min(100% - 3.5rem, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steam-link {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.steam-link:focus-visible { outline: 3px solid var(--plum); outline-offset: 5px; }

.hero {
  width: min(100% - 3.5rem, 1400px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 9rem);
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.hero-copy { position: relative; z-index: 1; max-width: 35rem; min-width: 0; }
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.6rem, 7.7vw, 8rem);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.09em;
  white-space: pre-line;
}
.description {
  max-width: 30rem;
  margin: 1.7rem 0 2rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.45;
}

.steam-link--primary {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.95rem 1.15rem 0.95rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0.33rem 0.33rem 0 var(--plum);
}
.steam-link--primary .arrow { font-size: 1.4rem; line-height: 0.7; }
.steam-link--primary:hover,
.steam-link--primary:focus-visible {
  transform: none;
}
.interaction-note { margin: 1.1rem 0 0; font-size: 0.78rem; opacity: 0.65; }

.model-stage {
  position: relative;
  min-height: min(59vw, 41rem);
  isolation: isolate;
  display: grid;
  place-items: center;
  cursor: crosshair;
}
.model-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease, transform 220ms ease;
}
.model-stage.is-model-ready .model-canvas { opacity: 1; }
.model-stage.is-model-ready .placeholder-model {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  pointer-events: none;
}
.stage-glow {
  position: absolute;
  width: min(84%, 34rem);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 1.15rem var(--paper), 0.8rem 0.8rem 0 var(--ink);
  transform: translate(calc(var(--pointer-x) * 9px), calc(var(--pointer-y) * 9px));
  transition: transform 180ms ease;
}
.stage-glow::before,
.stage-glow::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(17, 16, 13, 0.28);
  border-radius: 45% 55% 57% 43% / 53% 39% 61% 47%;
}
.stage-glow::after { inset: 18%; border-style: solid; opacity: 0.25; transform: rotate(21deg); }

.placeholder-model { position: relative; width: min(62%, 20rem); aspect-ratio: 0.68; z-index: 2; transition: opacity 300ms ease, transform 300ms ease; }
.runner-shadow {
  position: absolute;
  z-index: -1;
  width: 82%; height: 8%; left: 9%; bottom: 8%;
  border-radius: 50%; background: rgba(17, 16, 13, 0.23);
  filter: blur(8px); animation: shadow-pulse 2.2s ease-in-out infinite;
}
.runner {
  position: absolute; inset: 0;
  transform: rotate(calc(var(--pointer-x) * 4deg)) translate(calc(var(--pointer-x) * 11px), calc(var(--pointer-y) * 7px));
  transform-origin: 50% 85%;
  transition: transform 180ms ease;
  animation: runner-bob 2.2s ease-in-out infinite;
}
.runner-head,
.runner-torso,
.runner-arm span,
.runner-leg span,
.runner-antenna span {
  position: absolute;
  display: block;
  border: 3px solid var(--ink);
  background: var(--cream);
}
.runner-head { top: 5%; left: 25%; width: 50%; height: 24%; border-radius: 48% 48% 41% 41%; }
.runner-face { position: absolute; left: 23%; top: 44%; width: 54%; height: 21%; border-radius: 999px; background: var(--ink); }
.runner-face::after { content: ""; position: absolute; width: 18%; aspect-ratio: 1; right: 18%; top: 24%; border-radius: 50%; background: var(--acid); }
.runner-antenna { position: absolute; top: -2%; left: 45%; width: 10%; height: 18%; transform-origin: bottom; animation: antenna 1.8s ease-in-out infinite; }
.runner-antenna span { width: 100%; height: 100%; border-radius: 999px; background: var(--acid); }
.runner-torso { top: 25%; left: 20%; width: 60%; height: 39%; border-radius: 37% 37% 26% 26%; }
.runner-core { position: absolute; inset: 30%; border-radius: 50%; background: var(--acid); border: 3px solid var(--ink); box-shadow: 0 0 1.4rem rgba(217,255,85,0.78); }
.runner-arm, .runner-leg { position: absolute; transform-origin: 50% 7%; }
.runner-arm { top: 30%; width: 23%; height: 36%; }
.runner-arm span { width: 65%; height: 100%; border-radius: 999px; }
.runner-arm--left { left: 4%; transform: rotate(21deg); animation: arm-left 2.2s ease-in-out infinite; }
.runner-arm--right { right: 4%; transform: rotate(-21deg); animation: arm-right 2.2s ease-in-out infinite; }
.runner-leg { top: 59%; width: 26%; height: 34%; }
.runner-leg span { width: 72%; height: 100%; border-radius: 999px 999px 38% 38%; }
.runner-leg--left { left: 20%; transform: rotate(8deg); animation: leg-left 2.2s ease-in-out infinite; }
.runner-leg--right { right: 20%; transform: rotate(-8deg); animation: leg-right 2.2s ease-in-out infinite; }

.orbit { position: absolute; border: 2px solid var(--ink); border-radius: 50%; z-index: -1; }
.orbit--one { inset: 13% -3%; transform: rotate(-27deg); animation: orbit-spin 10s linear infinite; }
.orbit--two { inset: 1% 10%; border-style: dashed; transform: rotate(43deg); animation: orbit-spin 14s linear infinite reverse; }
.speed-lines { position: absolute; inset: 0; z-index: -1; opacity: 0; transform: translateX(-1rem); transition: opacity 180ms ease, transform 180ms ease; }
.speed-lines i { position: absolute; display: block; height: 3px; width: 34%; background: var(--plum); }
.speed-lines i:nth-child(1) { left: 0; top: 33%; }
.speed-lines i:nth-child(2) { left: 7%; top: 51%; width: 23%; }
.speed-lines i:nth-child(3) { right: 1%; top: 69%; width: 18%; }
.site-footer { padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--line); font-size: 0.76rem; font-weight: 700; }
.site-footer p { margin: 0; }

@keyframes runner-bob { 50% { transform: translateY(-0.75rem) rotate(-2deg); } }
@keyframes shadow-pulse { 50% { transform: scaleX(.78); opacity: .14; } }
@keyframes antenna { 50% { transform: rotate(13deg); } }
@keyframes arm-left { 50% { transform: rotate(-15deg); } }
@keyframes arm-right { 50% { transform: rotate(15deg); } }
@keyframes leg-left { 50% { transform: rotate(-9deg); } }
@keyframes leg-right { 50% { transform: rotate(9deg); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .site-footer, .hero { width: min(100% - 2rem, 39rem); }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 2rem 0 0; }
  .hero-copy { text-align: center; margin-inline: auto; }
  h1 { max-width: 8ch; margin-inline: auto; font-size: clamp(3rem, 13vw, 4.5rem); }
  .description { margin: 1.35rem auto 1.65rem; }
  .model-stage { min-height: 25rem; margin-top: 0.6rem; }
  .placeholder-model { width: min(53%, 15rem); }
  .site-footer { gap: 1rem; padding-block: 1.1rem; }
  .site-footer p:last-child { text-align: right; }
}

@media (max-width: 390px) {
  .site-footer, .hero { width: min(100% - 1.4rem, 39rem); }
  .model-stage { min-height: 21rem; }
}

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

/* Exported Blender scene: logo, ledge, character, gun, camera, and animation. */
.site-shell {
  display: block;
  min-height: 100svh;
  background: #d6d5da;
}

.site-footer,
.stage-glow,
.speed-lines,
.placeholder-model,
.eyebrow,
.hero-copy h1,
.description,
.interaction-note {
  display: none;
}

.hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100svh;
  padding: 0;
}

.model-stage {
  width: 100%;
  min-height: 100svh;
  background: #d6d5da;
  cursor: crosshair;
}

.model-canvas {
  z-index: 1;
  transition: opacity 500ms ease;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 5vw, 5rem);
  bottom: clamp(1.2rem, 5vh, 3rem);
  display: block;
}

.steam-link--primary {
  padding: 0.82rem 1.1rem 0.86rem 1.25rem;
  border-radius: 0.4rem;
  box-shadow: 0.28rem 0.28rem 0 var(--plum);
}

@media (max-width: 760px) {
  .hero,
  .model-stage { min-height: 100svh; }
  .hero-copy { left: 1rem; bottom: 1.15rem; }
  .steam-link--primary { font-size: 0.9rem; }
}

/* Blueprint-inspired landing direction. */
.site-shell {
  --blueprint-ink: #365f92;
  --blueprint-line: rgba(54, 95, 146, 0.19);
  position: relative;
  overflow: hidden;
  background-color: #d8e7f2;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1));
  background-size: 2rem 2rem, 2rem 2rem, auto;
}

.hero {
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: clamp(0.8rem, 2.2vw, 2.2rem);
  border: 1px solid rgba(54, 95, 146, 0.5);
  box-shadow: inset 0 0 0 0.35rem rgba(216, 231, 242, 0.32);
  pointer-events: none;
}

.model-stage {
  z-index: 1;
  background: transparent;
}

.model-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: clamp(1rem, 7vw, 8rem);
  bottom: clamp(1rem, 4vw, 4rem);
  width: min(54vw, 48rem);
  height: clamp(6rem, 15vw, 13rem);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(55, 91, 132, 0.2), rgba(55, 91, 132, 0.08) 42%, transparent 72%);
  filter: blur(0.65rem);
  pointer-events: none;
}

.hero-copy {
  z-index: 2;
  top: clamp(21rem, 47vh, 32rem);
  bottom: auto;
  left: clamp(1.5rem, 11vw, 12rem);
  display: flex;
  width: min(31rem, 39vw);
  flex-direction: column;
  align-items: flex-start;
  color: var(--blueprint-ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.hero-copy h1,
.description {
  display: block;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #315a8e;
  font-size: clamp(2.1rem, 3.3vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: normal;
}

.description {
  order: -1;
  max-width: 29rem;
  margin: 0 0 0.75rem;
  color: #426d9e;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}

.steam-link--primary {
  margin-top: 1.55rem;
  border-color: #c95b58;
  border-radius: 0.65rem;
  background: #ed7066;
  color: #fffdf4;
  box-shadow: 0.28rem 0.28rem 0 #5b7fa8;
}

.steam-link--primary:hover {
  color: #fffdf4;
  background: #ed7066;
  box-shadow: 0.28rem 0.28rem 0 #5b7fa8;
  transform: scale(1.06);
}

@media (max-width: 760px) {
  .hero::before { inset: 0.65rem; }
  .hero-copy { top: auto; bottom: 1.5rem; left: 1.25rem; width: min(21rem, calc(100vw - 2.5rem)); }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .description { font-size: 0.9rem; }
  .steam-link--primary { margin-top: 1rem; }
}
