@font-face { font-family: "Pixel"; src: url("fonts/PixelOperator.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixel"; src: url("fonts/PixelOperator-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixel8"; src: url("fonts/PixelOperator8-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --black: #000;
  --panel: #0b0600;
  --amber: #ff9d1c;
  --bright: #ffc266;
  --dim: #d98a2b;
  --faint: #4a2a06;
  --glow: 0 0 6px rgba(255, 140, 0, 0.55);
  --gap: 24px;
  --width: 1080px;
  --cyan: #00e5ff;
  --red: #ff2b4e;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  min-height: 100vh;
  color: var(--amber);
  background: var(--black);
  font: 22px/1.45 "Pixel", ui-monospace, Menlo, monospace;
  text-shadow: var(--glow);
  -webkit-font-smoothing: none;
}

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

::selection { background: var(--amber); color: var(--black); text-shadow: none; }

.crt {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.28) 3px, rgba(0, 0, 0, 0) 4px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
  animation: flicker 6s steps(1) infinite;
}

@keyframes flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.85; } 98% { opacity: 0.95; } }

#page { width: min(var(--width), 100% - 2 * var(--gap)); margin: 0 auto; }

.window {
  position: relative;
  border: 4px double var(--amber);
  background: var(--panel);
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.12), inset 0 0 24px rgba(255, 140, 0, 0.05);
}

.window > .title {
  position: absolute;
  top: -0.8em;
  left: 18px;
  padding: 0 8px;
  background: var(--black);
  color: var(--bright);
  font-weight: 700;
}

.reveal { opacity: 0; transition: opacity 0.4s steps(4); }
.reveal.shown { opacity: 1; }

.hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }

.prompt { color: var(--dim); }
.prompt b { color: var(--amber); font-weight: 400; }
.cursor { display: inline-block; width: 0.6em; height: 1em; margin-left: 4px; vertical-align: -0.12em; background: var(--amber); box-shadow: var(--glow); animation: blink 1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.eyebrow { color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }

h1 {
  font-family: "Pixel8", "Pixel", monospace;
  font-size: clamp(34px, 7vw, 84px);
  line-height: 1.1;
  color: var(--bright);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.7), 4px 4px 0 var(--faint);
}

.tagline { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--amber); }
.tagline::before { content: "> "; color: var(--dim); }

.intro { max-width: 680px; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.button::before { content: "["; margin-right: 8px; }
.button::after { content: "]"; margin-left: 8px; }
.button:hover, .button:focus-visible, .button.primary { background: var(--amber); color: var(--black); text-shadow: none; outline: none; }
.button.primary:hover { background: var(--bright); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.fact { padding: 22px; display: grid; gap: 2px; }
.fact strong { font-family: "Pixel8", "Pixel", monospace; font-size: 36px; color: var(--bright); }
.fact span { color: var(--dim); }

.section { padding-top: calc(var(--gap) * 5); }

.section h2 {
  font-family: "Pixel8", "Pixel", monospace;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2::before { content: "## "; color: var(--dim); }

.heading { margin-bottom: calc(var(--gap) * 1.5); }
.heading p { color: var(--dim); }

.about p { max-width: 760px; margin-bottom: 14px; }

.about blockquote {
  margin-top: var(--gap);
  padding: 14px 18px;
  border-left: 6px solid var(--amber);
  background: var(--panel);
  color: var(--bright);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.company { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: calc(var(--gap) * 1.5); padding: calc(var(--gap) * 1.5); }
.company .text { display: grid; gap: 6px; }
.company .label { color: var(--dim); text-transform: uppercase; }
.company strong { font-family: "Pixel8", "Pixel", monospace; font-size: clamp(30px, 5vw, 46px); color: var(--bright); text-transform: uppercase; }


.link { color: var(--bright); font-weight: 700; }

.shot { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--black); }

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.2) brightness(0.9);
  transition: filter 0.25s steps(3);
}

.shot::after { content: ""; position: absolute; inset: 0; background: var(--amber); mix-blend-mode: multiply; transition: opacity 0.25s steps(3); }
.company:hover .shot::after, .project:hover .shot::after { opacity: 0; }
.company:hover .shot img, .project:hover .shot img { filter: none; }

.static { display: grid; place-items: center; background: repeating-radial-gradient(circle at 30% 40%, var(--faint) 0 1px, var(--black) 1px 3px), repeating-linear-gradient(90deg, var(--black) 0 2px, var(--faint) 2px 3px); }
.static::after { display: none; }
.static figcaption { padding: 4px 14px; background: var(--black); border: 2px solid var(--amber); color: var(--bright); font-weight: 700; animation: blink 1.2s steps(1) infinite; }

.company .shot { border: 2px solid var(--amber); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: calc(var(--gap) * 1.25); }

.project { display: flex; flex-direction: column; }
.project .shot { border-bottom: 2px solid var(--amber); }
.project .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.project h3 { display: flex; align-items: center; gap: 10px; color: var(--bright); font-size: 28px; text-transform: uppercase; }
.project p { flex: 1; }
.project footer { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.project:hover { box-shadow: 0 0 26px rgba(255, 140, 0, 0.35); }

.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.extra { position: relative; z-index: 2; color: var(--dim); }
.extra:hover { color: var(--bright); }

.badge { padding: 0 8px; background: var(--amber); color: var(--black); text-shadow: none; font-size: 18px; }

.downloads { display: grid; gap: var(--gap); }

.download { display: flex; gap: calc(var(--gap) * 1.25); padding: calc(var(--gap) * 1.5); align-items: flex-start; }
.download img { flex: none; image-rendering: pixelated; filter: grayscale(1) sepia(1) saturate(4) hue-rotate(-12deg); }
.download .details { display: grid; gap: 12px; justify-items: start; }
.download h3 { display: flex; align-items: center; gap: 12px; color: var(--bright); font-size: 32px; text-transform: uppercase; }


.version { padding: 0 8px; border: 2px solid var(--amber); font-size: 18px; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.meta li { padding: 0 10px; border: 1px dashed var(--dim); color: var(--dim); font-size: 18px; }

.note { font-size: 18px; }

.footer { padding: calc(var(--gap) * 4) 0 calc(var(--gap) * 2); color: var(--dim); text-align: center; }

.glitch { animation: glitch 0.42s steps(2) both; }

@keyframes glitch {
  0% { transform: translate(0); text-shadow: -3px 0 var(--red), 3px 0 var(--cyan); clip-path: inset(0 0 60% 0); }
  20% { transform: translate(-6px, 2px); clip-path: inset(40% 0 20% 0); }
  40% { transform: translate(5px, -2px); text-shadow: 3px 0 var(--red), -3px 0 var(--cyan); clip-path: inset(10% 0 70% 0); }
  60% { transform: translate(-3px, 1px); clip-path: inset(65% 0 5% 0); }
  80% { transform: translate(2px, 0); clip-path: inset(0 0 0 0); }
  100% { transform: translate(0); text-shadow: var(--glow); clip-path: none; }
}

.shutdown {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--gap);
  background: var(--black);
  color: var(--amber);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s steps(3), visibility 0.2s steps(3);
}

.shutdown.on { opacity: 1; visibility: visible; }

@media (max-width: 640px) {
  body { font-size: 20px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .button { justify-content: center; padding: 0 6px; font-size: 17px; white-space: nowrap; }
  .button::before { margin-right: 4px; }
  .button::after { margin-left: 4px; }
  .download, .company { display: flex; flex-direction: column; }
  .hero { min-height: 86vh; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  .crt, .cursor, .static figcaption { animation: none; }
  .glitch { animation: none; }
}
