.phase-two .hero,
.phase-two .hero-panel {
  min-height: min(590px, calc(100svh - 150px));
}

.phase-two .hero-panel {
  width: min(760px, 67vw);
  padding-bottom: clamp(54px, 7vw, 100px);
}

.phase-two .hero h1 {
  max-width: 8ch;
  font-size: clamp(4.3rem, 8vw, 8rem);
}

.phase-two .memory-preview-photo img {
  object-position: center;
}

.launch-feature {
  padding: 52px 20px 62px;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: white;
  text-align: center;
}

.launch-heading {
  max-width: 760px;
  margin: 0 auto 28px;
}

.launch-heading .kicker {
  color: var(--lime);
}

.launch-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.launch-heading p:last-child {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
}

.launch-poster {
  width: min(440px, 100%);
  margin: 0 auto;
}

.launch-poster img {
  width: 100%;
  height: auto;
  border: 2px solid white;
}

.launch-poster figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.launch-poster figcaption a {
  color: inherit;
  text-underline-offset: 3px;
}

.home-gallery {
  padding: 64px clamp(20px, 5vw, 72px) 48px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}

.home-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.home-gallery-heading .kicker {
  color: var(--deep);
}

.home-gallery h2 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.home-gallery-summary {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 17vw, 230px);
  gap: 8px;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: white;
  text-align: left;
}

.gallery-tile-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-tile:hover img {
  transform: scale(1.035);
}

.gallery-tile span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.gallery-source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.gallery-lightbox {
  width: min(980px, calc(100vw - 24px));
  max-height: 92svh;
  overflow: auto;
  padding: 14px;
  border: 2px solid white;
  background: var(--ink);
  color: white;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox > img {
  width: 100%;
  max-height: 74svh;
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-bottom button {
  width: 44px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: white;
}

.gallery-lightbox-close {
  display: block;
  margin: 0 0 10px auto;
  padding: 0 12px;
  font-size: 1.6rem;
}

.gallery-lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.gallery-lightbox-bottom p {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.newsletter-popover[hidden] {
  display: none;
}

.newsletter-popover {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(390px, calc(100vw - 24px));
  max-height: min(84svh, 620px);
  overflow-y: auto;
  padding: 20px;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.newsletter-popover .kicker {
  margin-bottom: 8px;
  padding-right: 32px;
  color: var(--deep);
}

.newsletter-popover h2 {
  margin-bottom: 8px;
  font-size: 2.15rem;
  line-height: 1;
}

.newsletter-popover > p:not(.kicker) {
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.newsletter-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
}

.newsletter-popover form {
  display: grid;
  gap: 6px;
}

.newsletter-popover form > label:not(.consent) {
  font-size: 0.78rem;
  font-weight: 800;
}

.newsletter-popover input[type="text"],
.newsletter-popover input[type="tel"],
.newsletter-popover input[type="email"] {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--ink);
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.newsletter-popover .consent {
  margin: 7px 0;
}

.newsletter-popover button[type="submit"] {
  min-height: 44px;
}

.newsletter-popover .form-status {
  min-height: 0;
}

.phase-two .gallery-tile:focus-visible,
.phase-two .newsletter-popover :focus-visible,
.phase-two .gallery-lightbox :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.phase2-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 100px);
  padding: clamp(60px, 8vw, 112px) clamp(20px, 6vw, 88px);
  background: var(--paper);
}

.phase2-intro h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.6rem);
  line-height: 0.96;
}

.phase2-intro-copy {
  align-self: center;
  max-width: 620px;
}

.phase2-intro-copy p {
  margin-bottom: 20px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.phase2-intro-copy .memory-link {
  margin-top: 14px;
}

.phase2-intro-copy .festival-proof {
  border-left: 4px solid var(--deep);
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.45;
}

.festival-proof strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
}

.phase-two .community form {
  grid-template-columns: minmax(0, 1fr);
}

.phase-two .community form h3 {
  margin: 0 0 4px;
  font-size: 1.8rem;
  line-height: 1.05;
}

.phase2-contact-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.phase-two .community input[type="text"],
.phase-two .community input[type="tel"],
.phase-two .community input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 2px solid var(--ink);
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.phase-two .community input:focus-visible,
.phase-two .community button:focus-visible,
.phase-two a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.phase-two .community button {
  width: 100%;
}

.phase-two .community .phase2-privacy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.phase2-privacy a,
.newsletter-privacy a {
  color: inherit;
  text-underline-offset: 3px;
}

.newsletter-privacy {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.memory-narrative {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 24px 36px;
}

.memory-narrative p {
  margin: 0 0 1.45em;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.65;
}

.memory-narrative p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 4em;
  font-weight: 800;
  line-height: 0.77;
}

.memory-narrative-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px clamp(56px, 8vw, 112px);
}

.memory-narrative-end > a:last-child {
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 4px;
}

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

.phase2-holding {
  min-height: calc(100svh - 190px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 8vw, 120px);
  background: var(--deep);
  color: white;
}

.phase2-holding h1 {
  max-width: 12ch;
}

.phase2-holding > p:not(.kicker) {
  max-width: 660px;
  font-size: 1.15rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .phase-two .topbar {
    grid-template-columns: 1fr;
  }

  .phase-two .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phase-two .nav .nav-festival,
  .phase-two .nav .nav-comunidad {
    display: inline-flex;
  }

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

  .phase-two .hero {
    min-height: auto;
    padding-top: 32svh;
  }

  .phase-two .hero-image {
    height: 34svh;
  }

  .phase-two .hero-panel {
    width: 100%;
    min-height: auto;
    padding: 30px 20px 38px;
  }

  .phase-two .hero h1 {
    font-size: clamp(3.4rem, 12vw, 5.8rem);
  }

  .phase2-intro {
    grid-template-columns: 1fr;
  }

  .phase2-intro {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .launch-feature {
    padding: 36px 14px 42px;
  }

  .launch-poster {
    width: min(270px, 76vw);
  }

  .launch-heading p:last-child {
    font-size: 0.96rem;
  }

  .home-gallery {
    padding: 46px 0 36px;
  }

  .home-gallery-heading {
    display: block;
    padding: 0 20px;
  }

  .home-gallery-heading .memory-link {
    margin-top: 18px;
  }

  .home-gallery-summary {
    padding: 0 20px;
  }

  .home-gallery-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 20px 8px;
    scroll-snap-type: x mandatory;
  }

  .gallery-tile,
  .gallery-tile-featured {
    flex: 0 0 min(78vw, 390px);
    height: 290px;
    scroll-snap-align: center;
  }

  .gallery-source {
    padding: 0 20px;
  }

  .newsletter-popover {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-height: min(68svh, 590px);
  }
}

@media (max-width: 620px) {
  .phase-two .hero h1 {
    font-size: 3.6rem;
  }

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