/* Labs page (/labs/). Dark and sparse, in the style of micro1.ai/robotics.
   Self-contained: the gamer pages use styles.css and labs.css instead. */

:root {
  --bg: #121212;
  --panel: #161616;
  --raise: #1c1c1c;
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --peach: #f8bd81;
  --error: #ffa395;
  --grad: linear-gradient(90deg, #847faf, #af86b6 25%, #dc8eac 50%, #f79e8d 75%, #f8bd81);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --font: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

html:has(.git-dialog[open]) {
  overflow: hidden;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain over the whole page. Absolute, not fixed, so it scrolls with
   the content and doesn't force a re-blend on every scroll frame. */
body::after {
  content: "";
  position: absolute;
  z-index: 40;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1,
h2,
h3,
p,
ul,
figure,
fieldset {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 1.1rem + 3vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  z-index: 60;
  top: -64px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons: white at 90% with a black arrow chip. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 16px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font: 500 14px/22px var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: #fff;
}

.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.7;
}

.chip {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #111;
}

/* A drawn chevron, so it sits dead center at any font size. */
.chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: solid #fff;
  border-width: 1.5px 1.5px 0 0;
  transform: translate(-70%, -50%) rotate(45deg);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost .chip {
  background: rgba(255, 255, 255, 0.1);
}

/* Nav: centered lockup, one button, over the hero. Once the hero scrolls
   away, page.js adds .is-floating and it condenses into a centered pill. */

.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav .brand {
  grid-column: 2;
}

.nav .btn {
  grid-column: 3;
  justify-self: end;
}

.nav.is-floating {
  display: flex;
  gap: 28px;
  top: 12px;
  right: auto;
  left: 50%;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.78);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav.is-floating .brand {
  font-size: 17px;
  gap: 10px;
}

.nav.is-floating .brand img {
  width: 26px;
  height: 26px;
}

@media (prefers-reduced-motion: no-preference) {
  .nav.is-floating {
    animation: nav-drop 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

/* 1. Hero */

.hero {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  min-height: 820px;
  padding: 150px var(--gutter) 290px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Darkens behind the headline and fades the frame into the page. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(18, 18, 18, 0.45), rgba(18, 18, 18, 0) 70%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.35) 0%, rgba(18, 18, 18, 0) 30%, rgba(18, 18, 18, 0.55) 70%, var(--bg) 96%);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 820px;
}

.hero-copy p {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
  line-height: 1.55;
}

.hero-copy .btn {
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* 2. One visual: a still frame with the inputs drawn over it. */

.visual {
  position: relative;
  z-index: 1;
  margin-top: -240px;
  padding: 0 var(--gutter);
}

.panel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(248, 189, 129, 0.6), rgba(175, 134, 182, 0.35) 40%, rgba(255, 255, 255, 0.06) 75%) border-box;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  container-type: inline-size;
}

.panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Under the overlays, over the frame: keeps the keys and bar legible. */
.panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.pill {
  position: absolute;
  top: clamp(10px, 2.2cqi, 20px);
  left: clamp(10px, 2.2cqi, 20px);
  padding: 0.35em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: clamp(11px, 1.5cqi, 14px);
  font-weight: 400;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.keys {
  --cap: clamp(20px, 3.6cqi, 36px);
  position: absolute;
  bottom: clamp(30px, 5.6cqi, 56px);
  left: clamp(10px, 2.2cqi, 20px);
  display: grid;
  grid-template-columns: repeat(3, var(--cap));
  grid-template-rows: var(--cap) var(--cap);
  gap: clamp(3px, 0.5cqi, 5px);
}

.keys span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: clamp(3px, 0.6cqi, 6px);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(10px, 1.3cqi, 13px);
  font-weight: 500;
}

.keys .on {
  border-color: var(--peach);
  background: var(--peach);
  color: #1a1208;
  box-shadow: 0 0 18px rgba(248, 189, 129, 0.45);
}

.keys .w {
  grid-column: 2;
}

.keys .a {
  grid-row: 2;
  grid-column: 1;
}

.keys .s {
  grid-row: 2;
  grid-column: 2;
}

.keys .d {
  grid-row: 2;
  grid-column: 3;
}

.bar {
  position: absolute;
  right: clamp(10px, 2.2cqi, 20px);
  bottom: clamp(10px, 2cqi, 18px);
  left: clamp(10px, 2.2cqi, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(10px, 1.3cqi, 13px);
}

.track {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.track i {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--peach), #dc8eac);
}


/* 3. What we provide */

.provide,
.record {
  padding: var(--section) var(--gutter) 0;
  text-align: center;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.cols li {
  display: grid;
  justify-items: center;
}

.cols svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
}

.cols h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.cols p {
  max-width: 30ch;
  color: var(--muted);
}

.note {
  margin-top: 56px;
  color: var(--muted);
}

/* 4. What we record */

.record .sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

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

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.tile figcaption {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* 5. Statement band and closing line */

.finale {
  padding-top: var(--section);
}

.band {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  margin: 0 auto var(--section);
  padding: clamp(44px, 6vw, 76px) 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(220, 142, 172, 0.18), rgba(28, 28, 28, 0) 60%) padding-box,
    linear-gradient(#1b1b1b, #1b1b1b) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 80px -30px rgba(248, 189, 129, 0.45);
}

.band p {
  font-size: clamp(1.625rem, 1rem + 2.2vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Wrap between sentences, never inside one. */
.band span {
  display: inline-block;
}

.closing {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, var(--bg), var(--raise));
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.closing h2 {
  font-size: clamp(1.75rem, 1rem + 1.6vw, 2.25rem);
  font-weight: 400;
}

/* Collection guidance: sits between the closing line and the footer, on the
   same raised surface, as one paragraph beside a list of guides. */

.dataset-guide {
  padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
  background: var(--raise);
}

.dataset-guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.dataset-guide h2 {
  font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 400;
}

.dataset-guide p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.dataset-guide-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dataset-guide-links a {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dataset-guide-links a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.dataset-guide-links strong {
  font-weight: 500;
}

.dataset-guide-links span {
  color: var(--muted);
  font-size: 14px;
}

/* 6. Footer */

.foot {
  overflow: hidden;
  padding: clamp(48px, 5vw, 72px) var(--gutter) 0;
  background: var(--raise);
  container-type: inline-size;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 15px;
}

.foot .brand {
  align-self: start;
}

.foot-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.foot-cols div a {
  display: block;
  width: fit-content;
  padding: 3px 0;
  color: var(--text);
  text-decoration: none;
}

.foot-cols div a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.giant {
  max-width: var(--max);
  margin: clamp(40px, 6vw, 72px) auto 0;
  color: transparent;
  font-family: Bungee, var(--font);
  /* The wordmark is about 10em wide in Bungee: fill the column, never clip. */
  font-size: min(calc(100cqi / 10.2), 7.3rem);
  line-height: 0.92;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* "Get in touch": the in-page form (no JavaScript) and the dialog. */

.git {
  padding: var(--section) var(--gutter);
  background: var(--raise);
}

/* page.js moves the form into the dialog. The section stays only to show
   the thank-you note after a no-JS submission. */
.js .git:not(:has(#sent:target)) {
  display: none;
}

.git-inner {
  max-width: 600px;
  margin: 0 auto;
}

.git-sent {
  display: none;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.git-sent:target {
  display: block;
}

/* Focused only so screen readers land on it after the redirect. */
.git-sent:focus {
  outline: none;
}

.git-sent:target ~ .git-form {
  display: none;
}

.git-form {
  width: min(560px, 100%);
}

.git-inner .git-form {
  margin-top: 40px;
}

.git-step {
  min-width: 0;
  padding: 0;
  border: 0;
}

.git-step + .git-step {
  margin-top: 48px;
}

.git-q {
  padding: 0;
  margin-bottom: 4px;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.git-req {
  color: var(--peach);
}

.git-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.git-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.git-field label,
.git-choice legend {
  color: var(--muted);
  font-size: 14px;
}

.git-optional {
  color: rgba(255, 255, 255, 0.5);
}

.git-form input:not([type="radio"]),
.git-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 400 16px/1.4 var(--font);
}

.git-form textarea {
  min-height: 92px;
  resize: vertical;
}

.git-form input::placeholder,
.git-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.git-form input:not([type="radio"]):focus-visible,
.git-form textarea:focus-visible {
  border-color: rgba(175, 134, 182, 0.9);
  outline: 1px solid rgba(175, 134, 182, 0.9);
  outline-offset: 0;
}

.git-form [aria-invalid="true"] {
  border-color: var(--error);
}

.git-hint {
  color: var(--muted);
  font-size: 14px;
}

.git-error {
  color: var(--error);
  font-size: 14px;
}

.git-error:empty {
  display: none;
}

.git-player {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.git-player a,
.git-status a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

.git-choice {
  min-width: 0;
  margin-top: 22px;
  padding: 0;
  border: 0;
}

.git-choice legend {
  padding: 0;
}

.git-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.git-q + .git-tiles {
  margin-top: 20px;
}

.git-tile {
  position: relative;
  display: grid;
  cursor: pointer;
}

/* The real radio covers the tile, invisible: clicks, arrows and screen
   readers all work on it directly. */
.git-tile input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.git-tile span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.git-tile:hover span {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.git-tile input:checked + span {
  border-color: var(--peach);
  background: rgba(248, 189, 129, 0.08);
  color: #fff;
}

.git-tile input:focus-visible + span {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.git-tile input[aria-invalid="true"] + span {
  border-color: rgba(255, 163, 149, 0.55);
}

.git-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.git-status {
  margin-top: 24px;
  color: var(--error);
  font-size: 15px;
}

.git-status:empty {
  display: none;
}

.git-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.git-back {
  margin-right: auto;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 15px/1 var(--font);
  cursor: pointer;
}

.git-back:hover {
  color: var(--text);
}

.git-back::before {
  content: "‹";
  margin-right: 8px;
}

.git-enter {
  color: var(--muted);
  font-size: 14px;
}

@media (hover: none) {
  .git-enter {
    display: none !important;
  }
}

/* The dialog: full screen, one question at a time. */

.git-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: var(--bg);
  color: var(--text);
}

.git-dialog::backdrop {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  .git-dialog[open] {
    animation: fade 0.2s ease-out;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.git-progress {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 3px;
  background: var(--line);
}

.git-progress i {
  display: block;
  width: var(--progress, 33.333%);
  height: 100%;
  background: linear-gradient(90deg, #847faf, #af86b6);
  transition: width 0.3s ease;
}

.git-close {
  position: fixed;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.git-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.git-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.git-body {
  display: grid;
  place-items: center;
  min-height: calc(100% - 3px);
  padding: 72px var(--gutter);
}

.git-form.is-stepped .git-step {
  display: none;
}

.git-form.is-stepped .git-step.is-current {
  display: block;
}

.git-form.is-stepped .git-step + .git-step {
  margin-top: 0;
}

.git-done {
  align-self: center;
  width: min(560px, 100%);
  text-align: center;
}

.git-done-title {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.git-done-title:focus {
  outline: none;
}

.git-done-text {
  margin: 14px 0 32px;
  color: var(--muted);
  font-size: 18px;
  overflow-wrap: anywhere;
}

/* Phones */

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

  .nav .brand {
    grid-column: 1;
  }

  .nav .btn {
    grid-column: 2;
  }

  .hero {
    min-height: 680px;
    padding-top: 120px;
    padding-bottom: 200px;
  }

  .visual {
    margin-top: -150px;
  }

  .cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
  }

  .tile figcaption {
    bottom: 8px;
    left: 10px;
    font-size: 13px;
  }

  .closing-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* The pill keeps only the crate and the button. */
  .nav.is-floating {
    gap: 14px;
    padding-left: 10px;
  }

  .nav.is-floating .brand span {
    display: none;
  }

  .dataset-guide-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  /* The brand and the long email address each get a full row. */
  .foot .brand,
  .foot-cols > div:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .git-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .git-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .git-body {
    place-items: start center;
    padding-top: 64px;
  }
}
