.formation-canvas h1 {
  max-width: 10ch;
  font-size: var(--hero-title-size);
}

.crew-math {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: clamp(16px, 2.8vw, 42px);
  margin-top: clamp(22px, 3.2vh, 38px);
}

.crew-math div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.crew-math strong {
  color: var(--yellow);
  font-family: var(--display-font);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.8;
}

.crew-math span {
  max-width: 10ch;
  font-size: clamp(0.8rem, 1.15vw, 1.1rem);
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

.crew-math b {
  color: var(--orange);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
}

.crew-math > p {
  justify-self: end;
  margin: 0;
  padding: 12px 16px;
  border: 2px solid var(--white);
  color: var(--ink);
  background: var(--green);
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3.2vw, 3.2rem);
  line-height: 1;
  white-space: nowrap;
}

.formation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
  margin: clamp(22px, 3.8vh, 44px) 0 0;
  border: 2px solid var(--white);
  background: var(--white);
  list-style: none;
}

.formation-steps li {
  display: grid;
  min-height: 138px;
  grid-template-columns: 36px 1fr;
  align-content: start;
  gap: 9px 12px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
}

.formation-steps li:nth-child(2) { background: var(--yellow); }
.formation-steps li:nth-child(3) { background: var(--orange); }
.formation-steps span { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; }
.formation-steps strong { font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.05; }
.formation-steps p { grid-column: 2; margin: 0; font-size: clamp(0.78rem, 1.05vw, 0.98rem); font-weight: 720; }

.formation-rule {
  max-width: 96ch;
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--white);
  font-size: clamp(0.83rem, 1.12vw, 1rem) !important;
  font-weight: 800;
}

.naming-canvas h2 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7.2vw, 7.4rem);
}

.naming-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
  margin: clamp(26px, 4vh, 48px) 0 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  list-style: none;
}

.naming-steps li {
  display: grid;
  min-height: 160px;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 22px;
  background: var(--paper);
}

.naming-steps li:nth-child(2) { color: var(--white); background: var(--blue-deep); }
.naming-steps li:nth-child(3) { background: var(--orange); }
.naming-steps > li > span { font-size: 0.76rem; font-weight: 900; letter-spacing: 0.1em; }
.naming-steps strong { font-family: var(--display-font); font-size: clamp(1.55rem, 2.6vw, 2.7rem); line-height: 0.95; text-transform: uppercase; }
.naming-steps p { margin: 12px 0 0; font-size: clamp(0.85rem, 1.15vw, 1.08rem); font-weight: 720; }

.name-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.name-check p {
  margin: 0;
  font-weight: 850;
}

.name-check ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
  background: var(--ink);
  list-style: none;
}

.name-check li {
  padding: 10px 12px;
  background: var(--paper);
  font-size: clamp(0.74rem, 0.98vw, 0.9rem);
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.crew-lock {
  margin: 18px 0 0;
  padding: 14px 18px;
  color: var(--white);
  background: var(--ink);
  font-size: clamp(0.96rem, 1.35vw, 1.2rem) !important;
  font-weight: 880;
}

@media (max-width: 700px) {
  .crew-math { grid-template-columns: auto auto auto; }
  .crew-math > p { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .formation-steps,
  .naming-steps { grid-template-columns: 1fr; }
  .formation-steps li,
  .naming-steps li { min-height: auto; }
  .name-check { grid-template-columns: 1fr; }
  .name-check ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-height: 760px) and (min-width: 821px) {
  .formation-canvas h1,
  .naming-canvas h2 { font-size: 4.2rem; }
  .crew-math { margin-top: 16px; }
  .crew-math strong { font-size: 4.4rem; }
  .formation-steps,
  .naming-steps { margin-top: 18px; }
  .formation-steps li,
  .naming-steps li { min-height: 110px; padding: 14px; }
  .formation-rule,
  .crew-lock { margin-top: 10px; }
  .name-check { margin-top: 12px; }
}
