.phase-two .nav .nav-junior {
  display: inline-flex;
}

.junior-page [hidden] {
  display: none !important;
}

.junior-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  min-height: 390px;
  border-block: 3px solid var(--ink);
  background: var(--cyan);
}

.junior-home-copy {
  align-self: center;
  max-width: 720px;
  padding: clamp(34px, 6vw, 88px);
}

.junior-home h2,
.junior-hero h1,
.junior-program-heading h2,
.junior-outro h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.junior-home h2 {
  max-width: 13ch;
  margin: 12px 0 18px;
  font-size: clamp(2rem, 3.5vw, 3.45rem);
}

.junior-home-copy > p:not(.kicker) {
  max-width: 59ch;
  line-height: 1.6;
}

.junior-home-meta,
.junior-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 28px;
  font-size: 0.82rem;
  font-weight: 800;
}

.junior-home-meta span + span::before,
.junior-hero-facts span + span::before {
  content: "·";
  margin-right: 18px;
}

.junior-home-link,
.junior-jump {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 46px;
  padding: 10px 17px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.junior-home-link:hover,
.junior-jump:hover {
  background: var(--rose);
}

.junior-home-download {
  display: inline-flex;
  margin-left: 18px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.junior-hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.junior-hero-links > a:not(.junior-jump) {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.junior-home-art,
.junior-hero-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  text-align: center;
}

.junior-home-art > span,
.junior-hero-art > span {
  position: relative;
  z-index: 1;
}

.junior-rayuela {
  position: absolute;
  top: 50%;
  right: -18px;
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-template-rows: repeat(6, 62px);
  grid-template-areas:
    ". eight ."
    ". seven ."
    "five . six"
    ". four ."
    "two . three"
    ". one .";
  gap: 4px;
  opacity: 0.23;
  transform: translateY(-50%) rotate(10deg);
  pointer-events: none;
}

.junior-rayuela span {
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  font: 900 1.6rem var(--font-display);
}

.junior-rayuela span:nth-child(1) { grid-area: one; }
.junior-rayuela span:nth-child(2) { grid-area: two; }
.junior-rayuela span:nth-child(3) { grid-area: three; }
.junior-rayuela span:nth-child(4) { grid-area: four; }
.junior-rayuela span:nth-child(5) { grid-area: five; }
.junior-rayuela span:nth-child(6) { grid-area: six; }
.junior-rayuela span:nth-child(7) { grid-area: seven; }
.junior-rayuela span:nth-child(8) { grid-area: eight; }

.junior-art-mark {
  font: 900 clamp(4.2rem, 8vw, 7rem)/0.95 var(--font-display);
}

.junior-art-word {
  font: 900 clamp(2.2rem, 5vw, 5rem)/1 var(--font-display);
  overflow-wrap: anywhere;
}

.junior-art-date {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 3px solid currentColor;
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  font-weight: 900;
}

.junior-page {
  background: var(--white);
}

.junior-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  min-height: 430px;
  background: var(--cyan);
}

.junior-hero-copy {
  align-self: center;
  max-width: 860px;
  padding: clamp(48px, 6vw, 96px);
}

.junior-hero h1 {
  max-width: 14ch;
  margin: 14px 0 20px;
  font-size: clamp(2.5rem, 4.3vw, 4.5rem);
}

.junior-hero-copy > p:not(.kicker) {
  max-width: 58ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.junior-hero-art {
  min-height: 430px;
  background: var(--rose);
  color: white;
}

.junior-download {
  background: var(--ink);
  color: white;
}

.junior-download-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1fr);
  gap: 22px clamp(28px, 5vw, 80px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 68px) clamp(18px, 5vw, 76px);
}

.junior-download-copy h2 {
  margin: 10px 0 16px;
  font: 900 clamp(1.8rem, 2.7vw, 2.8rem)/1.08 var(--font-display);
}

.junior-download-copy > p:last-child {
  max-width: 45ch;
  line-height: 1.55;
}

.junior-download form {
  align-self: center;
}

.junior-download-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.junior-download-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 0.77rem;
  font-weight: 800;
}

.junior-download-fields input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 9px 12px;
  border: 2px solid white;
  border-radius: 2px;
  background: white;
  color: var(--ink);
  font: 0.9rem var(--font-body);
}

.junior-download-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 67ch;
  margin: 18px 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.junior-download-consent input {
  flex: none;
  margin-top: 3px;
}

.junior-download-consent a {
  color: var(--cyan);
}

.junior-download .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.junior-download button,
.junior-download-ready {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink);
  font: 800 0.85rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.junior-download button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.junior-download-status,
.junior-download-ready {
  grid-column: 2;
  margin: 0;
}

.junior-download-status:empty {
  display: none;
}

.junior-download-ready {
  justify-self: start;
}

.junior-program {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 86px) clamp(18px, 5vw, 76px);
}

.junior-program-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px 40px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 25px;
}

.junior-program-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.85rem);
}

.junior-program-heading > p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.junior-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding: 26px 0 12px;
}

.junior-day-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.junior-day-filters button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font: 800 0.8rem var(--font-body);
  cursor: pointer;
}

.junior-day-filters button[aria-pressed="true"],
.junior-day-filters button:hover {
  background: var(--ink);
  color: white;
}

.junior-day-filters span {
  margin-left: 4px;
  opacity: 0.65;
}

.junior-search {
  display: grid;
  gap: 5px;
  min-width: min(100%, 300px);
  font-size: 0.73rem;
  font-weight: 800;
}

.junior-search input {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font: 0.9rem var(--font-body);
}

.junior-search input:focus-visible,
.junior-day-filters button:focus-visible,
.junior-home-link:focus-visible,
.junior-jump:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

.junior-results {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.junior-day {
  padding: 24px 0 42px;
}

.junior-day-heading {
  display: flex;
  align-items: baseline;
  gap: 12px 30px;
  padding: 0 0 16px;
}

.junior-day-heading .kicker {
  order: 2;
  margin: 0;
  color: var(--rose);
}

.junior-day-heading h2 {
  order: 1;
  margin: 0;
  font: 800 clamp(1.35rem, 2.1vw, 2rem)/1.2 var(--font-body);
}

.junior-events {
  border-top: 3px solid var(--ink);
}

.junior-event {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) minmax(140px, 0.31fr);
  gap: 14px 25px;
  align-items: start;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(17, 16, 15, 0.22);
}

.junior-event:nth-child(even) {
  background: #f7f7f7;
}

.junior-event-time {
  font-weight: 800;
  white-space: nowrap;
}

.junior-event-type {
  display: block;
  margin-bottom: 5px;
  color: var(--rose);
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.junior-event h3 {
  margin: 0;
  font: 800 clamp(1rem, 1.25vw, 1.15rem)/1.35 var(--font-body);
}

.junior-event-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.junior-event-place {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.junior-empty {
  padding: 24px 0;
  font-weight: 700;
}

.junior-outro {
  padding: clamp(42px, 5vw, 70px) clamp(18px, 6vw, 88px);
  background: var(--orange);
}

.junior-outro h2 {
  margin: 7px 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.junior-outro > p:not(.kicker) {
  max-width: 55ch;
  line-height: 1.55;
}

.junior-outro > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 25px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .phase-two .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .phase-two .nav .nav-junior {
    order: 2;
    justify-content: center;
  }

  .phase-two .nav .nav-festival { order: 3; }
  .phase-two .nav .nav-memoria { order: 4; }
  .phase-two .nav .nav-comunidad { order: 5; }

  .phase-two .nav a {
    padding: 0 3px;
    font-size: 0.65rem;
  }

  .junior-home,
  .junior-hero {
    grid-template-columns: 1fr;
  }

  .junior-home-copy,
  .junior-hero-copy {
    padding: 42px 24px;
  }

  .junior-home-art {
    min-height: 290px;
    max-height: 340px;
  }

  .junior-hero-art {
    min-height: 260px;
    max-height: 320px;
  }

  .junior-program-heading {
    align-items: start;
    flex-direction: column;
  }

  .junior-download-inner {
    grid-template-columns: 1fr;
  }

  .junior-download-status,
  .junior-download-ready {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .phase-two .nav {
    grid-template-columns: 0.7fr 1.2fr 1.1fr 1fr 1.3fr;
    gap: 4px;
  }

  .phase-two .nav a {
    min-width: 0;
    padding: 0 2px;
    font-size: 0.62rem;
    text-align: center;
  }

  .phase-two .hero-panel,
  .launch-details,
  .launch-gallery-heading,
  .launch-gallery .gallery-source,
  .junior-home-copy,
  .junior-hero-copy,
  .junior-download-copy,
  .junior-program-heading,
  .news-index-heading,
  .phase2-intro > div:first-child,
  .memory-preview-copy > .kicker,
  .memory-preview-copy > h2,
  .home-gallery-heading,
  .home-gallery .gallery-source {
    text-align: center;
  }

  .phase-two .hero-brand-lockup img,
  .phase-two .hero-panel > p:not(.kicker),
  .launch-poster,
  .launch-heading,
  .launch-gallery-heading > p:last-child,
  .junior-home h2,
  .junior-home-copy > p:not(.kicker),
  .junior-hero h1,
  .junior-hero-copy > p:not(.kicker),
  .junior-download-copy > p:last-child,
  .phase2-intro h2 {
    margin-right: auto;
    margin-left: auto;
  }

  .phase-two .hero-actions,
  .junior-home-meta,
  .junior-hero-facts,
  .junior-hero-links,
  .junior-day-filters {
    justify-content: center;
  }

  .junior-home-link,
  .junior-download button {
    width: 100%;
  }

  .junior-home-download {
    justify-content: center;
  }

  .junior-program-heading > p {
    margin-inline: auto;
  }

  .phase2-intro-copy .memory-link,
  .memory-preview-copy .memory-link {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .junior-rayuela {
    right: -20px;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(6, 44px);
    gap: 3px;
    opacity: 0.18;
  }

  .junior-rayuela span {
    border-width: 2px;
    font-size: 1rem;
  }

  .junior-home h2,
  .junior-hero h1 {
    max-width: none;
  }

  .junior-home-meta,
  .junior-hero-facts {
    gap: 4px 12px;
    font-size: 0.73rem;
  }

  .junior-home-meta span + span::before,
  .junior-hero-facts span + span::before {
    margin-right: 12px;
  }

  .junior-day-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .junior-day-filters button {
    padding: 8px 3px;
    font-size: 0.68rem;
  }

  .junior-search {
    width: 100%;
  }

  .junior-home-download {
    display: flex;
    margin: 16px 0 0;
  }

  .junior-download-fields {
    grid-template-columns: 1fr;
  }

  .junior-day-heading {
    display: block;
  }

  .junior-day-heading .kicker {
    margin-bottom: 7px;
  }

  .junior-event {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 5px 12px;
    padding: 17px 4px;
  }

  .junior-event-time {
    font-size: 0.8rem;
  }

  .junior-event-place {
    grid-column: 2;
    font-size: 0.72rem;
  }

  .junior-event-main p {
    font-size: 0.77rem;
  }
}
