.story-home-page {
  --home-paper: #fffdf5;
  --home-rule: #10201933;
  background: var(--home-paper);
}

.story-home-page .entry-jobs-link {
  border-radius: 100vw;
  padding-inline: .95rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.story-home-page .entry-jobs-link:hover { background: var(--green); }
.story-home-page .entry-jobs-link:focus-visible { outline-offset: 4px; }

.home-hero {
  --home-field: #d4ebfb;
  --home-creator: #fcdac9;
  --home-community: #e1ecad;
  --home-desk: #e5dff9;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 5vw, 5.25rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5.3vw, 5.3rem) clamp(1.5rem, 3.25vw, 3.25rem);
}

.home-content { min-width: 0; }

.home-heading {
  max-width: 11ch;
  font-size: clamp(3.05rem, 6.3vw, 6rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.home-intro {
  max-width: 42ch;
  margin-top: clamp(.95rem, 1.8vw, 1.45rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  text-wrap: pretty;
}

.home-family-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.55rem, 3.7vw, 3.35rem);
  border-top: 1px solid var(--home-rule);
}

.home-family-link {
  position: relative;
  display: flex;
  min-height: 5.45rem;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
  padding: .75rem 2.1rem .75rem .8rem;
  border-bottom: 1px solid var(--home-rule);
  text-decoration: none;
  transition: background-color .2s ease-out;
}

.home-family-link:nth-child(odd) { border-right: 1px solid var(--home-rule); }
.home-family-link[data-home-family="field"] { --family-surface: var(--home-field); }
.home-family-link[data-home-family="creator"] { --family-surface: var(--home-creator); }
.home-family-link[data-home-family="community"] { --family-surface: var(--home-community); }
.home-family-link[data-home-family="desk"] { --family-surface: var(--home-desk); }

.home-family-link:is(:hover, :focus-visible, [data-active="true"], [aria-current="page"]) {
  background: var(--family-surface, var(--soft-green));
}

.home-family-link:focus-visible { z-index: 1; outline-offset: -3px; }

.home-family-link::after {
  position: absolute;
  top: 50%;
  right: .9rem;
  width: .46rem;
  height: .46rem;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: translateY(-50%) rotate(45deg);
  transition: translate .16s ease-out;
  content: "";
}

.home-family-link:is(:hover, :focus-visible)::after { translate: 2px; }

.home-family-name {
  font: 760 clamp(1.13rem, 1.8vw, 1.55rem)/1.08 var(--heading-font);
  letter-spacing: -.024em;
}

.home-family-description {
  color: var(--muted);
  font-size: clamp(.82rem, 1.05vw, .94rem);
  line-height: 1.28;
}

.home-scene {
  display: grid;
  min-width: 0;
  gap: .85rem;
  margin: 0;
}

.home-art {
  display: grid;
  width: 100%;
  aspect-ratio: 560 / 390;
  overflow: hidden;
  border-radius: clamp(.85rem, 1.5vw, 1.35rem);
  background: var(--home-accent, var(--home-field));
  transition: background-color .32s cubic-bezier(.16, 1, .3, 1);
  touch-action: pan-y pinch-zoom;
}

.home-art > canvas, .home-art-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-area: 1 / 1;
  object-fit: contain;
}

.home-hero[data-home-ready] .home-art-fallback { display: none; }

.home-scene-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: .15rem .9rem;
  min-height: 3rem;
  border-top: 1px solid var(--home-rule);
  padding: .65rem 0 0;
}

.home-scene-kind {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 760;
}

.home-scene-text { color: var(--muted); font-size: .93rem; line-height: 1.42; }
.home-swipe-hint { display: none; }

@media (max-width: 51rem) {
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: clamp(1.6rem, 5.5vw, 3.3rem);
  }

  .home-content { display: contents; }
  .home-copy { order: 0; }
  .home-heading {
    max-width: 13ch;
    font-size: clamp(2.75rem, 10vw, 5.2rem);
    text-wrap: initial;
  }
  .home-intro { margin-top: .65rem; }
  .home-scene { order: 1; margin-top: 1.15rem; }
  .home-family-nav { order: 2; margin-top: 1.2rem; }
  .home-family-link { min-height: 4.85rem; }
  .home-scene-caption { min-height: 3.45rem; }
}

@media (max-width: 34rem) {
  .home-heading { max-width: 14ch; font-size: clamp(2.45rem, 10vw, 4rem); }
  .home-family-nav { order: 1; margin-top: 1rem; }
  .home-family-link { min-height: 4.55rem; padding-block: .55rem; }
  .home-family-name { font-size: clamp(1rem, 3.65vw, 1.2rem); }
  .home-family-description { font-size: .78rem; }
  .home-scene { order: 2; gap: .55rem; }
  .home-scene-caption { grid-template-columns: minmax(0, 1fr); min-height: 5rem; }
}

@media (max-width: 51rem) and (pointer: coarse) {
  .home-hero[data-home-ready] .home-swipe-hint {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.3;
  }
}

@media (max-width: 25rem) {
  .home-family-link { padding-inline: .55rem 1.65rem; }
  .home-family-link::after { right: .63rem; }
  .home-scene-caption { gap: .15rem .65rem; }
}

@media (max-width: 22.5rem) {
  .story-home-page .entry-header {
    flex-wrap: wrap;
    gap: .25rem .5rem;
  }

  .story-home-page .entry-header .brand {
    min-height: 2.75rem;
    font-size: clamp(1rem, 5.5vw, 1.28rem);
  }

  .story-home-page .entry-jobs-link {
    gap: .4rem;
    padding-inline: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-art, .home-family-link, .home-family-link::after { transition: none; }
  .home-family-link:is(:hover, :focus-visible)::after { translate: none; }
}
