.home-page {
  background: var(--surface-page);
}

.home-page .section {
  position: relative;
}

.home-page .section[id] {
  scroll-margin-top: var(--space-7);
}

.home-hero__container,
.home-brief__container,
.home-faq__container {
  min-width: 0;
}

.home-hero__console {
  position: relative;
  min-width: 0;
  padding: var(--space-3);
  border: 3px solid var(--color-ink);
  border-radius: 20px 24px 16px 22px;
  background: var(--color-ochre);
  box-shadow: var(--shadow-paper);
}

.home-hero__console::before {
  position: absolute;
  inset: var(--space-3);
  z-index: 0;
  border-radius: 13px 17px 10px 15px;
  background-image: radial-gradient(rgb(57 43 32 / 12%) 1px, transparent 1px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

.home-hero__figure {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: var(--border-strong);
  border-radius: 12px 17px 8px 14px;
  background: var(--surface-paper);
}

.home-hero__figure img {
  width: 100%;
  height: clamp(28rem, 52vw, 39rem);
  object-fit: cover;
  object-position: center center;
}

.home-hero__caption {
  max-width: 42.5rem;
}

.home-hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: min(32.5rem, calc(100% - var(--space-8)));
  gap: var(--space-4);
  margin: calc(var(--space-8) * -1) 0 var(--space-4) var(--space-6);
}

.home-hero__panel > * {
  min-width: 0;
  margin: 0;
}

.home-hero__panel h1 {
  max-width: 24ch;
  font-size: clamp(2.125rem, 4.5vw, 2.75rem);
}

.home-hero__lead {
  max-width: 32rem;
  font-size: var(--text-lead);
  line-height: var(--line-lead);
}

.home-hero__eyebrow {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background: var(--color-ochre);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: var(--line-small);
}

.home-hero__signal {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-turquoise);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: var(--space-3);
}

.home-hero__actions > * {
  min-width: 0;
  flex: 0 1 auto;
}

.home-hero__objects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
  gap: var(--space-5);
  margin-top: var(--space-5);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.home-hero__objects span {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
}

.home-hero__objects span::after {
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 1rem;
  border-top: 2px solid var(--color-ochre);
  content: "";
}

.home-hero__objects span:last-child::after {
  display: none;
}

.home-brief__reading {
  width: min(100%, 45rem);
  margin: 0;
}

.home-brief__reading h2 {
  max-width: 28rem;
}

.home-brief__items {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-5);
}

.home-brief__items > * {
  min-width: 0;
}

.home-brief__fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-3);
}

.home-brief__fact > *,
.home-brief__observation > *,
.home-brief__routes > * {
  margin: 0;
}

.home-brief__observation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
}

.home-brief__routes {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: var(--border-thin);
}

.home-brief__routes h3 {
  font-size: var(--text-lead);
}

.home-layers__intro {
  width: min(100%, 42rem);
  margin-bottom: var(--space-6);
}

.home-layers__intro > :last-child {
  margin-bottom: 0;
}

.home-layers__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-width: 0;
  gap: var(--space-6);
}

.home-layers__grid > * {
  min-width: 0;
}

.home-layer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
}

.home-layer > * {
  min-width: 0;
  margin: 0;
}

.home-layer h3 {
  max-width: 20ch;
}

.home-layer--objects,
.home-layer--clues {
  grid-column: 1 / span 5;
}

.home-layer--interaction,
.home-layer--hints {
  grid-column: 7 / span 6;
}

.home-layer__mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: var(--border-strong);
  border-radius: 50% 45% 52% 43%;
  background: var(--color-turquoise);
  font-family: var(--font-heading);
  font-size: 1.55rem;
}

.home-layer--interaction {
  padding: var(--space-3);
}

.home-layer__paper {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-thin);
  border-radius: var(--radius-sm) 13px var(--radius-sm) 12px;
  background: var(--surface-paper);
}

.home-layer__paper > * {
  min-width: 0;
  margin: 0;
}

.home-layer--clues {
  border-inline-start: 5px solid var(--color-turquoise);
}

.home-layer--hints {
  border-top: 5px solid var(--color-turquoise);
}

.home-perspective__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-width: 0;
  gap: var(--space-6);
  align-items: end;
}

.home-perspective__grid > * {
  min-width: 0;
}

.home-perspective__essay {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.home-perspective__essay > * {
  margin: 0;
}

.home-perspective__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-4);
  max-width: 43.75rem;
}

.home-perspective__copy > * {
  margin: 0;
}

.home-perspective__copy h3 {
  margin-top: var(--space-2);
}

.home-perspective__note {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
}

.home-perspective__note > * {
  margin: 0;
}

.home-gallery__intro {
  width: min(100%, 38.75rem);
  margin-bottom: var(--space-6);
}

.home-gallery__intro > :last-child {
  margin-bottom: 0;
}

.home-gallery__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-7);
}

.home-scene {
  min-width: 0;
  margin: 0;
}

.home-scene > img {
  width: 100%;
  height: auto;
  border: var(--border-strong);
  border-bottom: 0;
  border-radius: 14px 20px 0 0;
  background: var(--surface-paper);
}

.home-scene__support {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16.25rem, 1fr);
  min-width: 0;
  gap: var(--space-5);
  padding-top: var(--space-5);
}

.home-scene__support > * {
  min-width: 0;
}

.home-scene__support .figure-caption {
  grid-column: 1;
  align-self: start;
  max-width: 47.5rem;
  border-top: var(--border-strong);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.home-scene__note {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
}

.home-scene__note > * {
  margin: 0;
}

.home-routine__heading {
  width: min(100%, 40rem);
  margin-bottom: var(--space-6);
}

.home-routine__heading > :last-child {
  margin-bottom: 0;
}

.home-routine__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: var(--space-5);
}

.home-routine__steps > * {
  min-width: 0;
}

.home-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-strong);
  border-radius: var(--radius-md-irregular);
  background: rgb(255 247 233 / 72%);
}

.home-step > * {
  min-width: 0;
  margin: 0;
}

.home-step__number {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
}

.home-step h3 {
  font-size: var(--text-card-title);
}

.home-routine__cta {
  width: fit-content;
  margin-top: var(--space-5);
}

.home-play__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
  min-width: 0;
  gap: var(--space-6);
  align-items: start;
}

.home-play__grid > * {
  min-width: 0;
}

.home-play__information,
.home-play__action {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-4);
}

.home-play__information > *,
.home-play__action > * {
  min-width: 0;
  margin: 0;
}

.home-play__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 42.5rem;
  gap: var(--space-3);
}

.home-play__copy > * {
  margin: 0;
}

.home-play__copy h3 {
  margin-top: var(--space-2);
  font-size: var(--text-lead);
}

.home-play__checklist {
  padding-inline-start: 1.5rem;
}

.home-play__checklist li + li {
  margin-top: var(--space-2);
}

.home-play__action {
  grid-column: 2;
}

.home-play__action .badge {
  width: fit-content;
  background: var(--surface-paper);
}

.home-play__action h3 {
  font-size: var(--text-card-title);
}

.home-play__action small {
  color: var(--color-muted-ink);
}

.home-faq__intro {
  width: min(100%, 47.5rem);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.home-faq__intro > :last-child {
  margin-bottom: 0;
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: min(100%, 47.5rem);
  margin-inline: auto;
  gap: var(--space-3);
}

.home-faq__list > * {
  min-width: 0;
}

.home-faq details {
  min-width: 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-paper);
  overflow: hidden;
}

.home-faq details[open] {
  border-inline-start: 5px solid var(--color-turquoise);
}

.home-faq summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-4) var(--space-5);
  color: var(--color-ink);
  font-size: var(--text-lead);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  width: 1.35rem;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--color-ink);
  content: "+";
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
}

.home-faq details[open] summary::after {
  content: "−";
}

.home-faq__answer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-5);
}

.home-faq__answer > * {
  margin: 0;
}

.home-routes__heading {
  width: min(100%, 42rem);
  margin-bottom: var(--space-6);
}

.home-routes__heading > :last-child {
  margin-bottom: 0;
}

.home-routes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: var(--space-5);
}

.home-routes__grid > * {
  min-width: 0;
}

.home-route {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-3);
}

.home-route > * {
  min-width: 0;
  margin: 0;
}

.home-route h3 {
  max-width: 18ch;
}

.home-route__link,
.home-closing__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  font-weight: 700;
}

.home-closing__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: min(100%, 48.75rem);
  margin-inline: auto;
  gap: var(--space-4);
}

.home-closing__panel > * {
  min-width: 0;
  margin: 0;
}

.home-closing__panel > p:not(.eyebrow) {
  max-width: 35rem;
}

.home-closing__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-3);
}

.home-closing__actions > * {
  min-width: 0;
}

@media (max-width: 63.99rem) {
  .home-hero__panel {
    width: min(100%, 32.5rem);
    margin: var(--space-4) 0 0;
  }

  .home-hero__figure img {
    height: clamp(25rem, 58vw, 34rem);
  }

  .home-layers__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-layer--objects,
  .home-layer--interaction,
  .home-layer--clues,
  .home-layer--hints {
    grid-column: span 3;
  }

  .home-perspective__essay {
    grid-column: 1 / span 8;
  }

  .home-perspective__note {
    grid-column: 9 / span 4;
  }
}

@media (max-width: 61.24rem) {
  .home-perspective__grid {
    grid-template-columns: 1fr;
  }

  .home-perspective__essay,
  .home-perspective__note {
    grid-column: 1;
  }

  .home-perspective__note {
    width: min(100%, 30rem);
  }
}

@media (max-width: 56.24rem) {
  .home-routine__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-routine__steps > :nth-child(3) {
    grid-column: 1 / span 2;
  }

  .home-play__grid {
    grid-template-columns: 1fr;
  }

  .home-play__action {
    grid-column: 1;
    width: min(100%, 34rem);
  }

  .home-routes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-routes__grid > :nth-child(3) {
    grid-column: 1 / span 2;
    width: min(100%, calc(50% - var(--space-3)));
  }
}

@media (max-width: 53.11rem) {
  .home-scene__support {
    grid-template-columns: 1fr;
  }

  .home-scene__support .figure-caption,
  .home-scene__note {
    grid-column: 1;
    max-width: none;
  }
}

@media (max-width: 47.99rem) {
  .home-hero__panel {
    width: 100%;
  }

  .home-layers__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .home-layer--objects,
  .home-layer--interaction,
  .home-layer--clues,
  .home-layer--hints {
    grid-column: 1;
  }

  .home-layer h3 {
    max-width: none;
  }
}

@media (max-width: 39.99rem) {
  .home-hero__console {
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }

  .home-hero__console::before {
    inset: var(--space-2);
  }

  .home-hero__figure {
    border-radius: var(--radius-sm);
  }

  .home-hero__figure img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 55% center;
  }

  .home-hero__caption {
    max-width: none;
  }

  .home-hero__panel {
    gap: var(--space-3);
    margin-top: var(--space-3);
  }

  .home-hero__panel h1 {
    max-width: none;
    font-size: 2.125rem;
    line-height: 1.12;
  }

  .home-hero__lead {
    max-width: none;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__actions > * {
    width: 100%;
  }

  .home-hero__objects {
    gap: var(--space-3);
  }

  .home-hero__objects span::after {
    display: none;
  }

  .home-brief__reading {
    width: 100%;
  }

  .home-perspective__essay,
  .home-perspective__note {
    width: 100%;
  }

  .home-scene > img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 55% center;
  }

  .home-scene__support {
    gap: var(--space-3);
    padding-top: var(--space-3);
  }

  .home-routine__steps,
  .home-routes__grid {
    grid-template-columns: 1fr;
  }

  .home-routine__steps > :nth-child(3),
  .home-routes__grid > :nth-child(3) {
    grid-column: 1;
    width: 100%;
  }

  .home-step {
    gap: var(--space-3);
  }

  .home-routine__cta {
    width: 100%;
  }

  .home-play__action {
    width: 100%;
  }

  .home-faq__intro,
  .home-faq__list {
    width: 100%;
  }

  .home-faq summary {
    padding: var(--space-3) var(--space-4);
  }

  .home-faq__answer {
    padding: 0 var(--space-4) var(--space-4);
  }

  .home-closing__panel {
    width: 100%;
  }

  .home-closing__actions {
    align-items: stretch;
  }

  .home-closing__actions .button,
  .home-closing__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page * {
    transition: none;
  }
}
