@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow/files/barlow-latin-400-normal.woff2");
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow/files/barlow-latin-600-normal.woff2");
  font-weight: 600;
}
@font-face {
  font-family: Condensed;
  src: url("/fonts/barlow-condensed/files/barlow-condensed-latin-800-normal.woff2");
  font-weight: 800;
}
@font-face {
  font-family: Plex;
  src: url("/fonts/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2");
  font-weight: 500;
}
:root {
  color-scheme: dark;
  --ink: #f5f0e3;
  --muted: #b9c9be;
  --mint: #9cebc9;
  --amber: #ffc36b;
  --surface: #101e1b;
  --border: #345049;
  --dark: #0b1514;
  --mono: Plex, monospace;
  --display: Condensed, "Arial Narrow", sans-serif;
  font-family: Barlow, system-ui, sans-serif;
  background: var(--dark);
  color: var(--ink);
  font-size: 17px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--mint);
  text-underline-offset: 0.24em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
p {
  line-height: 1.55;
  margin: 0.65rem 0 1.25rem;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  line-height: 0.95;
}
h1 {
  font-size: clamp(3.8rem, 10vw, 7.6rem);
}
h2 {
  font-size: clamp(2.35rem, 5vw, 4rem);
}
h3 {
  font-size: 2rem;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--mint);
  color: var(--dark);
  padding: 0.7rem;
}
.skip:focus {
  top: 1rem;
}
.site-header {
  height: 76px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4.7vw, 5.5rem);
  border-bottom: 1px solid #8ec5aa55;
  background: #0b1714;
}
.site-header:after {
  content: "";
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #99d8bf45 0 1px,
    transparent 1px 16px
  );
  position: absolute;
  bottom: 5px;
  left: 5%;
  right: 5%;
  pointer-events: none;
}
.site-header:has(+ main .hero) {
  position: absolute;
  width: 100%;
  background: #06110fd9;
}
.brand,
.site-header nav a {
  font: 500 0.8rem var(--mono);
  letter-spacing: 0.095em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.brand-marker {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px solid var(--mint);
  background: linear-gradient(
    135deg,
    transparent 34%,
    var(--mint) 35% 48%,
    transparent 49% 59%,
    var(--mint) 60% 72%,
    transparent 73%
  );
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.8vw, 3rem);
}
.site-header nav a:hover,
.site-header nav [aria-current] {
  color: var(--mint);
}
.menu-button {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #101e18;
}
.hero-art,
.hero-art img,
.hero:after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art img {
  object-fit: cover;
  object-position: 58% center;
}
.hero:after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, #040e0da6, transparent 70%),
    linear-gradient(0deg, #0714116b, transparent 22%);
}
.hero-art {
  z-index: -2;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(870px, 100svh);
  padding: clamp(7rem, 14vh, 9rem) clamp(1rem, 4.7vw, 5.5rem) 4.4rem;
}
.terminal {
  position: relative;
  max-width: min(100%, 31rem);
  padding: clamp(1.4rem, 2.8vw, 2.9rem);
  background: #081a16e8;
  border: 1px solid #9cebc990;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 44px #61a88b12;
}
.terminal:after {
  content: "";
  position: absolute;
  width: 47px;
  height: 1px;
  top: 16px;
  right: -8px;
  background: #9cebc9;
  transform: rotate(45deg);
}
.terminal-light {
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 3.5rem;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.eyebrow,
.hero-index,
.footer-code,
.back {
  color: var(--mint);
  font: 500 0.74rem/1.45 var(--mono);
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 1rem;
}
.terminal .eyebrow {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.terminal h1 {
  font-size: clamp(5rem, 9.6vw, 9.2rem);
  letter-spacing: 0.008em;
  line-height: 0.78;
  margin: 1.3rem 0 1.05rem;
}
.hero-copy {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  margin: 0 0 1.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.hero-index {
  position: absolute;
  bottom: 1.6rem;
  right: 5%;
  color: #d5f9e9;
}
.button,
.text-link {
  font: 500 0.8rem/1.3 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
}
.button {
  color: #07140f;
  background: var(--mint);
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--mint);
  min-height: 48px;
}
.button:hover {
  background: #d2fae7;
}
.text-link {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.text-link:hover {
  border-color: var(--mint);
}
.wrap {
  width: min(1180px, calc(100% - 2 * clamp(1rem, 5vw, 5rem)));
  margin-inline: auto;
}
.section {
  padding-block: clamp(2.8rem, 7vw, 6rem);
}
.section-top,
.actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-bottom: 1.8rem;
}
.section-top {
  justify-content: space-between;
}
.page-lead {
  margin-bottom: 2.4rem;
}
.page-lead > p:last-child {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 38rem;
}
.game-grid,
.service-grid,
.split-bottom,
.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.game-card,
.service-grid article,
.log,
.intake {
  background: var(--surface);
  border: 1px solid var(--border);
}
.game-art img {
  width: 100%;
  aspect-ratio: 1200/630;
  object-fit: cover;
}
.game-body,
.service-grid article {
  padding: clamp(1.1rem, 3vw, 2rem);
}
.game-body p:not(.eyebrow),
.service-grid p:not(.eyebrow),
.split-bottom p,
.studio-split p:not(.eyebrow),
.rookie p:not(.eyebrow) {
  color: var(--muted);
}
.rookie {
  margin-top: 2.6rem;
  border-block: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.rookie h2 {
  font-size: 2.6rem;
}
.rookie p:not(.eyebrow) {
  max-width: 38rem;
  margin-bottom: 0;
}
.rookie a {
  flex-shrink: 0;
}
.studio-band {
  background: radial-gradient(ellipse at 75% 50%, #284139, #101e1b 58%);
  border-block: 1px solid var(--border);
  overflow: hidden;
}
.studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.65fr);
  align-items: center;
  gap: 2rem;
  padding-block: 2.5rem;
}
.studio-split h2 {
  font-size: clamp(3.3rem, 8vw, 6rem);
}
.mascot-3d {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}
.mascot {
  width: 100%;
  max-height: 510px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px #0008);
}
.split-bottom {
  margin-top: 3rem;
}
.detail-art {
  width: min(100%, 950px);
  border: 1px solid var(--border);
}
.detail-copy,
.intro {
  max-width: 46rem;
  font-size: 1.2rem;
}
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.log {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  padding: clamp(1.2rem, 3vw, 2.4rem);
}
.log p:last-child {
  margin-bottom: 0;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 2rem;
  margin-top: 2rem;
}
.intake {
  max-width: 770px;
  margin-top: 2rem;
  padding: clamp(1.1rem, 4vw, 2.75rem);
}
.intake h2 {
  margin-bottom: 1.4rem;
}
.intake fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.intake fieldset:disabled {
  opacity: 0.55;
}
.intake label {
  display: block;
  font-weight: 600;
}
.intake input:not([type="checkbox"]),
.intake select,
.intake textarea,
.markdown-preview {
  display: block;
  margin: 0.32rem 0 0.9rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
  border: 1px solid #638179;
  color: var(--ink);
  background: #0b1714;
  border-radius: 0;
  min-height: 45px;
}
.intake textarea {
  resize: vertical;
}
.field-help,
.muted {
  color: var(--muted);
  font-size: 0.88rem;
}
.intake .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.check-label input {
  margin-top: 0.32rem;
  accent-color: var(--mint);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.editor-tools button,
.menu-button {
  background: #112520;
  color: var(--mint);
  border: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
}
.editor-tools button:hover {
  border-color: var(--mint);
}
.markdown-preview {
  overflow-wrap: anywhere;
}
.markdown-preview pre {
  white-space: pre-wrap;
}
.form-note,
.form-status:not(:empty) {
  border-left: 3px solid var(--amber);
  padding: 0.65rem 0.9rem;
  background: #191f17;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1rem, 4.7vw, 5.5rem);
  border-top: 1px solid var(--border);
  background: #081310;
}
.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-code {
  font-size: 0.62rem;
}
@media (max-width: 720px) {
  .site-header {
    height: 60px;
  }
  .menu-button {
    display: block;
    font: 500 0.75rem var(--mono);
    min-height: 38px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    background: #0a1916;
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav a {
    padding: 0.72rem 0;
  }
  .hero-art img {
    object-position: center top;
  }
  .hero:after {
    background: linear-gradient(0deg, #071310e8, transparent 58%);
  }
  .hero-inner {
    min-height: max(670px, 100svh);
    align-items: end;
    padding: 5rem 1rem 1.6rem;
  }
  .terminal {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 1.15rem;
  }
  .terminal h1 {
    font-size: clamp(3.75rem, 13vw, 6rem);
    line-height: 0.8;
    margin: 0.85rem 0;
  }
  .terminal .eyebrow {
    font-size: 0.62rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0;
  }
  .hero-copy {
    font-size: 1.05rem;
    padding-top: 0.55rem;
    margin-bottom: 0.85rem;
  }
  .terminal .button {
    width: 100%;
  }
  .hero-index {
    display: none;
  }
  .game-grid,
  .service-grid,
  .split-bottom,
  .fields-grid,
  .studio-split,
  .log {
    grid-template-columns: 1fr;
  }
  .rookie {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
  .studio-split {
    gap: 1rem;
  }
  .mascot {
    max-height: 390px;
  }
  .site-footer {
    align-items: flex-start;
  }
}

.mascot-3d canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.mascot-3d canvas.is-ready { opacity: 1; }
/* Crossfade: the poster keeps its layout box but hides once the model is drawn. */
.mascot-3d .mascot { transition: opacity 300ms ease; }
.mascot-3d.is-3d .mascot { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .mascot-3d canvas, .mascot-3d .mascot { transition: none; }
}
