:root {
  color-scheme: dark;
  --bg: #000302;
  --panel: rgba(33, 86, 78, 0.84);
  --panel-strong: rgba(0, 8, 6, 0.96);
  --text: #effff4;
  --muted: #aabbb2;
  --line: rgba(87, 195, 181, 0.46);
  --mint: #baffd2;
  --cyan: #58c8b8;
  --green: #3c9635;
  --amber: #ffc45a;
  --red: #f53a3d;
  --blue: #76a8ff;
  --shadow: rgba(0, 0, 0, 0.58);
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(83, 196, 181, 0.13) 1px, transparent 1px) 0 0 / 176px 100%,
    linear-gradient(180deg, rgba(58, 145, 60, 0.22), transparent 7rem) 0 100% / 100% 24rem no-repeat,
    radial-gradient(circle at 75% 65%, rgba(88, 200, 184, 0.06), transparent 24rem),
    var(--bg);
  color: var(--text);
}

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

button,
a.button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 2px solid var(--line);
  background: rgba(0, 4, 3, 0.88);
  backdrop-filter: blur(10px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-sigil {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(186, 255, 210, 0.24));
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: clip;
  padding: 9.5rem clamp(1rem, 5vw, 4rem) 8rem;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(81, 190, 178, 0.16) 1px, transparent 1px) center / 176px 100%,
    linear-gradient(180deg, rgba(35, 91, 82, 0.86) 0 7.8rem, transparent 7.8rem),
    linear-gradient(90deg, transparent 0 74%, rgba(99, 21, 24, 0.72) 74% 91%, transparent 91%),
    linear-gradient(180deg, transparent 0 78%, rgba(38, 116, 50, 0.58) 78% 100%),
    #000302;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(180deg, transparent 0 88px, rgba(80, 198, 183, 0.05) 88px 90px);
}

.hero::before {
  content: "1        20        300        5000        10";
  position: absolute;
  inset: 18% auto auto 13%;
  width: min(760px, 76vw);
  color: rgba(171, 196, 181, 0.3);
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 7.4;
  white-space: pre-wrap;
}

.hero::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 14%;
  width: min(460px, 44vw);
  height: min(340px, 28vw);
  background: rgba(35, 101, 48, 0.62);
  border-top: 2px solid rgba(91, 199, 138, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.site-status {
  width: min(640px, 100%);
  margin-bottom: 1.35rem;
  padding: 0.95rem 1rem;
  border: 2px solid var(--line);
  border-left: 5px solid var(--amber);
  background: rgba(26, 76, 68, 0.8);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.site-status span {
  display: block;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-status p {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.game-name {
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 12px 0 rgba(4, 18, 14, 0.92), 0 24px 48px var(--shadow);
}

.hero-copy {
  width: min(680px, 100%);
  margin: 1.4rem 0 0;
  color: #e6fff9;
  font-size: clamp(1.08rem, 2.5vw, 1.38rem);
  line-height: 1.55;
  text-shadow: 0 10px 30px var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--line);
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  background: var(--green);
  color: #000302;
  border-color: rgba(126, 255, 162, 0.7);
}

.button.secondary {
  background: rgba(0, 4, 3, 0.88);
  color: var(--text);
}

section:not(.hero) {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.console-shell,
.media-story {
  width: min(var(--max), 100%);
  margin: 0 auto;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(88, 200, 184, 0.13), transparent 28%, transparent 72%, rgba(245, 58, 61, 0.11)),
    var(--panel-strong);
  box-shadow: 0 28px 0 rgba(0, 0, 0, 0.34);
}

.media-story {
  display: grid;
  gap: 2px;
  background: var(--line);
}

.media-story article {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(260px, 1fr);
  gap: 2px;
  background: rgba(0, 4, 3, 0.96);
}

.story-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    linear-gradient(90deg, rgba(88, 200, 184, 0.12), transparent 72%),
    rgba(0, 4, 3, 0.96);
}

.story-copy span {
  display: block;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story-copy h3 {
  max-width: 560px;
  margin: 0.6rem 0 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3.4vw, 2.7rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.story-copy p {
  max-width: 600px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.media-story img {
  display: block;
  justify-self: center;
  width: min(100%, 430px);
  height: auto;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  background: rgba(0, 4, 3, 0.96);
}

.media-story article:nth-child(even) .story-copy {
  order: 2;
}

.media-actions {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  background: rgba(0, 4, 3, 0.96);
}

.console-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 2px solid var(--line);
  background: rgba(35, 86, 78, 0.88);
}

.console-hud div {
  min-width: 0;
  padding: 1rem;
  border-right: 2px solid var(--line);
}

.console-hud div:last-child {
  border-right: 0;
}

.console-hud span,
.studio-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-hud strong,
.studio-panel strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: clamp(1rem, 3vw, 1.55rem);
  line-height: 1.15;
}

.playfield {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(85, 197, 183, 0.18) 1px, transparent 1px) center / 150px 100%,
    linear-gradient(180deg, transparent 0 68%, rgba(255, 196, 90, 0.08) 68% 72%, transparent 72%),
    rgba(0, 4, 3, 0.92);
}

.core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  border: 10px solid var(--mint);
  border-radius: 8px;
  background: rgba(0, 4, 3, 0.86);
  box-shadow: inset 0 0 0 14px rgba(0, 4, 3, 0.9);
}

.core span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.fragment-lanes {
  position: absolute;
  inset: 0;
}

.fragment {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid currentColor;
  color: var(--blue);
  font-weight: 900;
  transform: translate(-50%, -50%);
  background: rgba(57, 102, 164, 0.54);
  box-shadow: inset 0 0 0 8px rgba(118, 168, 255, 0.18);
  clip-path: polygon(50% 3%, 96% 93%, 4% 93%);
}

.fragment span {
  display: none;
}

.fragment.tens {
  color: var(--amber);
  background: rgba(159, 111, 38, 0.72);
  clip-path: none;
}

.fragment.hundreds {
  color: var(--mint);
  background: rgba(83, 143, 106, 0.72);
  border-radius: 50%;
  clip-path: none;
}

.console-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 2px;
  background: var(--line);
}

.result-feed,
.readout {
  display: block;
  background: rgba(0, 4, 3, 0.95);
}

.result-feed {
  min-height: 100%;
  padding: 1.25rem;
  color: var(--cyan);
  font-weight: 900;
}

.readout {
  grid-column: 1;
  padding: 1.25rem;
  color: var(--text);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.keypad {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
}

.keypad button {
  min-height: 68px;
  border: 2px solid rgba(86, 197, 181, 0.42);
  background: #000302;
  color: var(--text);
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
}

.keypad button:hover,
.keypad button:focus-visible {
  background: #09231f;
  color: var(--mint);
  outline: 2px solid var(--mint);
  outline-offset: -2px;
}

.keypad [data-execute] {
  background: var(--green);
  color: #000302;
}

.keypad [data-clear] {
  color: var(--mint);
}

.feature-grid,
.studio-panel,
.contact-grid,
.timeline {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article {
  min-height: 190px;
  padding: 1.3rem;
  border: 2px solid rgba(87, 195, 181, 0.36);
  background: rgba(0, 4, 3, 0.94);
  box-shadow: inset 5px 0 0 rgba(88, 200, 184, 0.82);
}

.feature-grid h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  color: var(--text);
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.studio-section {
  background:
    linear-gradient(90deg, rgba(87, 195, 181, 0.12) 1px, transparent 1px) center / 176px 100%,
    linear-gradient(90deg, transparent 0 72%, rgba(99, 21, 24, 0.42) 72% 89%, transparent 89%),
    rgba(0, 4, 3, 0.96);
  border-block: 2px solid var(--line);
}

.studio-identity {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 2px solid rgba(87, 195, 181, 0.36);
}

.studio-identity img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 46px rgba(0, 0, 0, 0.44));
}

.studio-identity span {
  display: block;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-identity strong {
  display: block;
  max-width: 620px;
  margin-top: 0.7rem;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 3.25rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.studio-identity p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact-section {
  border-bottom: 2px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 2px;
  border: 2px solid var(--line);
  background: var(--line);
}

.contact-grid article {
  min-width: 0;
  padding: 1.2rem;
  background: rgba(0, 4, 3, 0.96);
}

.contact-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.contact-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-card {
  display: grid;
  align-content: center;
  border-left: 5px solid var(--green);
}

.contact-card a {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--mint);
  font-size: clamp(1.05rem, 3vw, 1.8rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.studio-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}

.studio-panel div {
  padding: 1.2rem;
  background: rgba(0, 4, 3, 0.96);
}

.timeline {
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 2px solid rgba(87, 195, 181, 0.32);
}

.timeline span {
  color: var(--amber);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  color: var(--muted);
  border-top: 2px solid var(--line);
  background: rgba(0, 4, 3, 0.96);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand p {
  color: var(--text);
  font-weight: 900;
}

.site-footer a {
  color: var(--mint);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding-top: 8rem;
  }

  .console-hud,
  .feature-grid,
  .studio-panel,
  .contact-grid,
  .media-story article,
  .studio-identity {
    grid-template-columns: 1fr 1fr;
  }

  .console-input {
    grid-template-columns: 1fr;
  }

  .keypad {
    grid-row: auto;
    grid-column: auto;
  }

  .contact-card {
    grid-column: 1 / -1;
    border-left-width: 0;
    border-top: 5px solid var(--green);
  }

  .media-actions {
    justify-content: stretch;
  }

  .media-actions .button {
    min-height: 56px;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .media-story article {
    grid-template-columns: 1fr;
  }

  .media-story article:nth-child(even) .story-copy {
    order: 0;
  }

  .media-story img {
    width: 100%;
    max-width: 420px;
  }
}

.logo-preview-page {
  min-height: 100svh;
}

.logo-preview {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.logo-preview section {
  padding: 0;
}

.logo-preview .logo-hero {
  min-height: auto;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.logo-preview .logo-hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
}

.logo-preview .logo-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.logo-board,
.logo-grid article {
  border: 1px solid var(--line);
  background: rgba(3, 10, 10, 0.92);
}

.logo-preview .logo-board {
  margin-top: 2rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.logo-preview .logo-board .section-heading {
  width: 100%;
  margin-bottom: 1rem;
}

.logo-preview .logo-board img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.logo-grid article {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 1rem;
}

.concept-grid article {
  align-content: start;
  gap: 1rem;
}

.logo-grid span {
  justify-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.logo-grid img {
  width: min(180px, 70%);
  height: auto;
}

.logo-greyscale {
  filter: grayscale(1);
}

.concept-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.logo-chip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.logo-chip i {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(236, 255, 249, 0.38);
  background: var(--swatch);
  box-shadow: 0 0 22px color-mix(in srgb, var(--swatch), transparent 62%);
}

@media (max-width: 720px) {
  .logo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-mark strong {
    font-size: 0.9rem;
  }

  .console-hud,
  .feature-grid,
  .studio-panel,
  .studio-identity {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-panel,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .playfield {
    min-height: 280px;
  }
}
