/* Query string v=985b473e-40893730828 is rewritten to a per-deploy id in scripts/deploy.py. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/jackforge-home/fonts/archivo-latin.woff2?v=985b473e-40893730828") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #030407;
  --bg-raise: #070b12;
  --text: #f4f7fb;
  --muted: #c5d0dc;
  --blue: #1558C9;
  --lime: #D4FF24;
  --line: rgba(21, 88, 201, 0.45);
  --gutter: 1rem;
  --max: 70rem;
  --header: 4.75rem;
  --sans: "Archivo", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --display: "Archivo", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 450;
  font-stretch: 100%;
  font-synthesis: none;
  line-height: 1.6;
  min-height: 100vh;
}

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.7rem);
  line-height: 1;
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.28rem;
  margin-bottom: 0.4rem;
  line-height: 1.05;
}

p { color: var(--muted); }

a { color: var(--text); }

::selection {
  background: var(--lime);
  color: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 40;
  transform: translateY(-120%);
  background: var(--lime);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  transform: none;
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.fit-label,
.footer h2 {
  margin: 0 0 0.85rem;
  color: var(--lime);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-num {
  margin: 0 0 0.45rem;
  color: var(--lime);
  font-family: var(--sans);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.accent {
  font-style: normal;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--lime);
  letter-spacing: -0.015em;
  padding-inline: 0.04em;
}

.lead {
  font-size: 1.16rem;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.55;
  color: #d5deea;
  max-width: 40rem;
}

.rule {
  display: block;
  width: 2.75rem;
  height: 3px;
  background: var(--blue);
  margin-bottom: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(3, 4, 7, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img { width: 40px; height: 40px; flex: none; }

.nav-toggle {
  min-height: 48px;
  min-width: 48px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0 0.95rem;
  cursor: pointer;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.85rem;
  position: absolute;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-list.is-open { display: grid; }

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25rem;
  color: var(--text);
  font-weight: 650;
  font-stretch: 85%;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--lime);
}

.nav-list a.btn {
  box-shadow: none;
  margin: 0.35rem 1.25rem 0.4rem;
  width: calc(100% - 2.5rem);
}

.nav-list a.btn--lime,
.nav-list a.btn--lime:hover {
  color: var(--bg);
  background: var(--lime);
}

.nav-list a.btn--lime:hover { background: #e7ff70; }

.nav-list a.btn[aria-current="page"] { box-shadow: none; }

@media (max-width: 1039px) {
  .no-js .nav-toggle { display: none; }

  .no-js .nav-list {
    display: grid;
    position: static;
    border: 0;
    padding-bottom: 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

.btn--lime:hover { background: #e7ff70; }

.btn--lime:focus-visible {
  outline-color: #fff;
}

.btn--line {
  background: transparent;
  border-color: var(--blue);
  color: #fff;
}

.btn--line:hover { background: rgba(21, 88, 201, 0.22); }

.hero {
  position: relative;
  padding: 2.6rem 0 0;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 88, 201, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 88, 201, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: flex;
  flex-direction: column;
}

.hero__copy { display: contents; }

.eyebrow { order: 1; }
.hero__title { order: 2; }
.hero__visual { order: 3; }
.lead { order: 4; }
.hero__actions { order: 5; }

.hero__title { margin-bottom: 0; }

.hero__line { display: block; line-height: 1; }

.hero__line--lime {
  margin-top: 0.12em;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--lime);
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-size: 0.86em;
}

.hero__blue { color: var(--blue); }

.hero__visual {
  position: relative;
  margin: 0.35rem calc(-1 * var(--gutter)) 1.15rem;
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  min-width: 0;
  background: var(--bg);
}

.hero__visual picture,
.hero__visual img {
  width: 100%;
  height: auto;
}

.sparks {
  position: absolute;
  top: 4%;
  right: 3%;
  width: 38%;
  height: 34%;
  pointer-events: none;
}

.sparks i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  opacity: 0;
}

.sparks i:nth-child(1) { left: 22%; top: 70%; }
.sparks i:nth-child(2) { left: 40%; top: 52%; }
.sparks i:nth-child(3) { left: 58%; top: 40%; }
.sparks i:nth-child(4) { left: 70%; top: 62%; }
.sparks i:nth-child(5) { left: 30%; top: 34%; }
.sparks i:nth-child(6) { left: 78%; top: 28%; }
.sparks i:nth-child(7) { left: 48%; top: 74%; }

.hero__visual:hover .sparks i,
.hero__visual:focus-within .sparks i {
  animation: drift 1.55s ease-out infinite;
}

.sparks i:nth-child(2) { animation-delay: 0.15s; }
.sparks i:nth-child(3) { animation-delay: 0.35s; }
.sparks i:nth-child(4) { animation-delay: 0.5s; }
.sparks i:nth-child(5) { animation-delay: 0.22s; }
.sparks i:nth-child(6) { animation-delay: 0.62s; }
.sparks i:nth-child(7) { animation-delay: 0.4s; }

@keyframes drift {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.7); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(16px, -42px, 0) scale(0.35); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.strip {
  margin-top: 2.6rem;
  border-block: 1px solid var(--line);
}

.strip ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.strip li {
  padding: 1.2rem 0;
  color: var(--text);
  font-weight: 500;
  font-stretch: 100%;
}

.strip li + li { border-top: 1px solid var(--line); }

.strip span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--lime);
  font-family: var(--sans);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.85rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.section { padding: 4.4rem 0; }

.section__intro { max-width: 40rem; margin-bottom: 1.6rem; }

.section__foot { margin-top: 1.4rem; }

.text-link {
  color: #fff;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.text-link:hover { color: var(--lime); }

.fix-grid,
.work-grid,
.expect {
  display: grid;
  gap: 1rem;
}

.fix-card,
.project,
.expect article,
.side-panel,
.band__panel,
.secret {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.fix-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.3rem 1.25rem 1.4rem;
  color: inherit;
  text-decoration: none;
}

.fix-card img,
.fix-card .icon {
  width: 48px;
  height: 48px;
  color: var(--text);
}

.fix-card h3 {
  margin: 0.85rem 0 0.35rem;
  color: #fff;
}

.fix-card p { margin: 0; }

.fix-card:hover,
.project:hover { border-color: rgba(212, 255, 36, 0.75); }

.lore {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.lore__copy,
.lore__play { min-width: 0; }

.lore__play { margin: 0; }

.lore__copy > p {
  max-width: 18em;
  color: #f4f7fb;
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  letter-spacing: -0.011em;
  line-height: 1.28;
}

.maze {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #030407;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(21, 88, 201, 0.5), 0 0 28px rgba(21, 88, 201, 0.16);
  user-select: none;
}

.maze canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.maze.is-on canvas { touch-action: none; }

.maze__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(3, 4, 7, 0.72);
  border-radius: inherit;
}

.maze__overlay[hidden] { display: none !important; }

.maze__coin,
.maze__best {
  margin: 0;
  max-width: none;
  color: #f4f7fb;
  font-stretch: 85%;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.35;
}

.maze__best {
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
}

.maze__dpad {
  display: grid;
  grid-template-columns: repeat(3, 3.25rem);
  grid-template-areas:
    ". u ."
    "l . r"
    ". d .";
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
  user-select: none;
}

.maze__dpad button {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--blue);
  background: #070b12;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}

.maze__dpad button[data-dir="1"] { grid-area: u; }
.maze__dpad button[data-dir="0"] { grid-area: l; }
.maze__dpad button[data-dir="2"] { grid-area: r; }
.maze__dpad button[data-dir="3"] { grid-area: d; }

.maze__arrow {
  width: 0;
  height: 0;
  border-style: solid;
}

.maze__arrow--u { border-width: 0 7px 10px 7px; border-color: transparent transparent var(--lime) transparent; }
.maze__arrow--d { border-width: 10px 7px 0 7px; border-color: var(--lime) transparent transparent transparent; }
.maze__arrow--l { border-width: 7px 10px 7px 0; border-color: transparent var(--lime) transparent transparent; }
.maze__arrow--r { border-width: 7px 0 7px 10px; border-color: transparent transparent transparent var(--lime); }

.maze__note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  font-stretch: 100%;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.4;
}

.maze__clear {
  z-index: 3;
  background: rgba(3, 4, 7, 0.94);
}

.maze__clear-form {
  width: min(100%, 18rem);
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.maze__clear-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.maze__clear-actions .btn { flex: 1 1 7.5rem; }

.maze__clear-note {
  min-height: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
}

.maze__honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scoreboard {
  margin-top: 0.9rem;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070b12;
}

.scoreboard h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-stretch: 85%;
}

.scoreboard__legend,
.scoreboard__row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto auto;
  column-gap: 0.55rem;
  align-items: baseline;
}

.scoreboard__legend {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoreboard__legend[hidden] { display: none !important; }

.scoreboard__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scoreboard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.scoreboard__row {
  padding: 0.18rem 0.35rem;
  color: var(--text);
  font-size: 0.92rem;
  border-radius: 8px;
}

.scoreboard__rank {
  color: var(--lime);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scoreboard__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard__score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scoreboard__level {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.scoreboard__row.is-fresh {
  background: rgba(212, 255, 36, 0.2);
  box-shadow: inset 3px 0 0 var(--lime);
}

.project { overflow: hidden; display: flex; flex-direction: column; }

.project__media {
  aspect-ratio: 900 / 560;
  background: #080c12;
  border-bottom: 1px solid var(--line);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
}

.project__body h3,
.project__body p { margin: 0; }

.project__body .btn { margin-top: 0.45rem; align-self: flex-start; }

.status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 1.7rem;
  margin: 0;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status--live {
  background: var(--lime);
  color: var(--bg);
}

.status--open {
  background: transparent;
  color: #fff;
  border: 1px solid var(--blue);
}

.band__panel,
.secret { padding: 1.6rem 1.4rem; }

.secret { margin: 2.2rem 0 2.4rem; }

.band__panel { border-left: 4px solid var(--lime); }

.band__panel p,
.secret p { margin-bottom: 0; }

.band__panel .text-link,
.secret .text-link,
.lore .text-link { display: inline-block; margin-top: 1rem; }

.secret h2 {
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
}

.cta-band {
  position: relative;
  background: var(--blue);
  padding: 4.4rem 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, transparent 0 18%, #000 72%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  text-align: center;
}

.cta-band h2,
.cta-band p { color: #fff; }

.cta-band h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
}

.page-hero {
  position: relative;
  padding: 3.3rem 0 0.4rem;
}

.page-hero h1 { max-width: 24ch; }

.page-hero .lead { margin-bottom: 0.4rem; }

.offer {
  display: grid;
  gap: 0.4rem 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 0.6rem);
}

.offer:last-of-type { border-bottom: 1px solid var(--line); }

.offer h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); }

.fit-label { margin-top: 1.15rem; }

.offer ul,
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.4rem 0;
  color: var(--text);
}

.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--lime);
}

.note { margin-top: 1rem; }

.note a,
.side-panel a:not(.btn),
.footer a {
  color: #fff;
  font-weight: 650;
  font-stretch: 85%;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.note a:hover,
.side-panel a:not(.btn):hover,
.footer a:hover { color: var(--lime); }

.steps {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps .section-num {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  min-width: 3.4rem;
  margin: 0;
}

.steps h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); margin-bottom: 0.35rem; }

.expect { margin-top: 0.4rem; }

.expect article { padding: 1.3rem 1.2rem 1.4rem; }

.expect h3 { color: #fff; }

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.page-cta h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.contact-layout {
  display: grid;
  gap: 1.6rem;
  padding: 3.1rem 0 4.2rem;
  align-items: start;
}

.form { display: grid; gap: 1rem; margin-top: 1.4rem; }

.form__row { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.4rem; }

.field label {
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.02em;
  color: var(--text);
}

.optional { font-weight: 600; color: var(--muted); }

input,
textarea {
  width: 100%;
  border: 1px solid rgba(21, 88, 201, 0.65);
  border-radius: 12px;
  background: #080c12;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
}

textarea { min-height: 9rem; resize: vertical; }

input::placeholder,
textarea::placeholder { color: #b7c3d0; opacity: 1; }

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--text);
}

.side-panel {
  padding: 1.35rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.side-panel h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.side-panel .btn { margin: 0.35rem 0 0.85rem; }

.side-panel .block + .block { margin-top: 0.85rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2rem;
}

.footer__brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.footer__brand img { width: 40px; height: 40px; flex: none; margin-top: 0.15rem; }

.footer__line {
  margin: 0;
  max-width: 34rem;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.45;
}

.footer__grid { display: grid; gap: 1.4rem; }

.footer h2 { margin-bottom: 0.55rem; }

.footer li + li { margin-top: 0.35rem; }

.footer__legal {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  :root { --gutter: 1.5rem; }

  .form__row { grid-template-columns: 1fr 1fr; }
  .fix-grid,
  .work-grid { grid-template-columns: 1fr 1fr; }
  .strip ol { grid-template-columns: repeat(3, 1fr); }
  .strip li { padding: 1.35rem 1.2rem; }
  .strip li + li { border-top: 0; border-left: 1px solid var(--line); }
  .strip li:first-child { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1.2fr 0.9fr; gap: 2rem; }
  .expect { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .offer { grid-template-columns: 4.5rem 1fr; padding: 2.3rem 0; }
  .contact-layout { grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.8fr); gap: 2.5rem; }
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }

  .nav-list,
  .nav-list.is-open,
  .no-js .nav-list {
    display: flex;
    position: static;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-list a { padding: 0.35rem 0.7rem; }

  .nav-list a.btn {
    width: auto;
    margin: 0 0 0 0.45rem;
    padding: 0.75rem 1.05rem;
  }

  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(18rem, 1.04fr);
    gap: 1rem 2.5rem;
    align-items: center;
  }

  .hero__copy {
    display: block;
    order: 0;
    padding: 1rem 0;
  }

  .hero__visual {
    order: 0;
    width: auto;
    margin: 0;
  }

  .lore {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
    gap: 2.5rem 3rem;
    align-items: center;
  }

  .maze__dpad { display: none; }

  .fix-grid { grid-template-columns: repeat(6, 1fr); }
  .fix-card { grid-column: span 2; }
  .fix-card:nth-child(4),
  .fix-card:nth-child(5) { grid-column: span 3; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .hero__actions .btn,
  .form .btn,
  .page-cta .btn,
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparks { display: none; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; }
  .btn,
  .fix-card,
  .project,
  .status--open { border: 1px solid ButtonText; }
}
