/* Home first frame — MAIOS identity leads; route selection supports it. */
body[data-surface="home"] .home-entry-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(34rem, 1.12fr);
  gap: clamp(2.25rem, 3vw, 3.5rem);
}

body[data-surface="home"] .home-identity {
  width: min(100%, 39rem);
}

body[data-surface="home"] .home-identity h1 {
  max-width: 15ch;
  margin-bottom: clamp(1.15rem, 2.4vh, 1.65rem);
  line-height: 0.94;
}

body[data-surface="home"] .home-identity .intro {
  max-width: 40ch;
  font-size: clamp(1.2rem, 1.45vw, 1.42rem);
  font-weight: 680;
  line-height: 1.38;
}

body[data-surface="home"] .home-identity .home-perspective-note {
  max-width: 45ch;
  margin-top: clamp(1.25rem, 2.6vh, 1.8rem);
  font-size: clamp(1.02rem, 1.08vw, 1.12rem);
  font-weight: 520;
  line-height: 1.55;
}

body[data-surface="home"] .home-orientation {
  width: min(100%, 42.5rem);
  justify-self: end;
  padding: clamp(1.35rem, 2vw, 1.75rem);
}

body[data-surface="home"] .home-perspective-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-surface="home"] .home-perspective-options button {
  min-height: 2.65rem;
  padding: 0.52rem 0.6rem;
  font-size: 0.9rem;
}

body[data-surface="home"] .home-question {
  margin-top: clamp(1.15rem, 2.3vh, 1.6rem);
  padding-top: 1rem;
}

body[data-surface="home"] .home-question h2 {
  font-size: clamp(2rem, min(2.6vw, 5dvh), 2.8rem);
  line-height: 1;
}

body[data-surface="home"] .home-result-options {
  gap: 0.65rem;
  margin-top: 1.1rem;
}

body[data-surface="home"] .home-result-options button {
  grid-template-columns: 2rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.28rem 0.65rem;
  min-height: 6.25rem;
  padding: 0.9rem;
}

body[data-surface="home"] .home-result-options button > span {
  grid-column: 1;
  grid-row: 1;
  align-self: baseline;
  font-size: 0.875rem;
}

body[data-surface="home"] .home-result-options strong {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.02rem, 1.12vw, 1.12rem);
  line-height: 1.16;
}

body[data-surface="home"] .home-result-options small {
  grid-column: 2;
  grid-row: 2;
  display: block;
  font-size: 1rem;
  line-height: 1.42;
}

@media (max-width: 1280px) {
  body[data-surface="home"] .home-perspective-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body[data-surface="home"] .home-entry-layout {
    grid-template-columns: minmax(0, 1fr) minmax(31rem, 1fr);
    gap: 2.25rem;
  }

  body[data-surface="home"] .home-identity h1 {
    max-width: 13ch;
  }

  body[data-surface="home"] .home-result-options button {
    min-height: 7rem;
  }

}

@media (max-width: 880px) {
  body[data-surface="home"] .home-entry-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-content: start;
    padding-block: 2.25rem 3rem;
  }

  body[data-surface="home"] .home-identity,
  body[data-surface="home"] .home-orientation {
    width: 100%;
    justify-self: stretch;
  }

  body[data-surface="home"] .home-identity h1 {
    max-width: 15ch;
  }

  body[data-surface="home"] .home-perspective-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body[data-surface="home"] .home-identity .intro {
    font-size: 1.15rem;
  }

  body[data-surface="home"] .home-identity .home-perspective-note {
    font-size: 1rem;
  }

  body[data-surface="home"] .home-perspective-options,
  body[data-surface="home"] .home-result-options {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-surface="home"] .home-result-options button {
    min-height: 0;
  }
}
