/* =========================================================
   Elsewhere Signal — mobile / tablet overrides
   Load AFTER styles.css
   ========================================================= */


/* =========================================================
   TABLET + PHONES
   ========================================================= */
@media (max-width: 820px) {

  .site-header {
    width: calc(100% - 2.5rem);
    padding: 1.15rem 0;
  }

  .brand {
    white-space: nowrap;
  }

  /* Slightly shorter hero so the content appears sooner */
  .hero {
    min-height: 88svh;
  }

  /* Shift the crop toward the planet */
  .hero-bg {
    background-position: 76% center;
    transform: none;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(2, 8, 11, .12) 0%,
        rgba(2, 8, 11, .08) 34%,
        rgba(2, 8, 11, .88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(2, 8, 11, .38) 0%,
        rgba(2, 8, 11, .03) 68%,
        rgba(2, 8, 11, .12) 100%
      );
  }

  .hero-content {
    width: calc(100% - 2.5rem);
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 11vw, 5.3rem);
    line-height: 1;
    letter-spacing: .018em;
  }

  .tagline {
    margin-top: .75rem;
    margin-bottom: 1.7rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .section {
    padding: clamp(4rem, 9vw, 6rem) 1.25rem;
  }

  .narrow {
    max-width: 100%;
    margin-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .muted {
    max-width: 620px;
  }

  .site-footer {
    width: calc(100% - 2.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
  }
}


/* =========================================================
   PHONES
   ========================================================= */
@media (max-width: 560px) {

  .site-header {
    width: calc(100% - 2.5rem);
    gap: .8rem;
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .brand {
    font-size: .68rem;
    letter-spacing: .15em;
  }

  .yt-link {
    font-size: .82rem;
  }

  /*
    Shorter than the desktop/tablet hero.
    Keeps the atmosphere but brings the title higher.
  */
  .hero {
    min-height: 82svh;
  }

  /*
    Shows more of the ringed planet on portrait screens.
    If a particular phone still crops too much, try 82%.
  */
  .hero-bg {
    background-position: 79% center;
  }

  .hero-content {
    width: calc(100% - 2.5rem);
    padding-bottom: max(3.7rem, env(safe-area-inset-bottom));
  }

  .eyebrow,
  .section-kicker {
    font-size: .64rem;
    letter-spacing: .17em;
  }

  /* Keep the channel name on one line on normal phones */
  h1 {
    font-size: clamp(2.65rem, 13vw, 3.55rem);
    line-height: 1.02;
    letter-spacing: -.005em;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .tagline {
    max-width: 21rem;
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 1.65rem;
  }

  .button {
    min-height: 48px;
    padding: .8rem 1.08rem;
    font-size: .92rem;
  }

  .section {
    padding: 4.3rem 1.25rem;
  }

  h2 {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    line-height: 1.08;
  }

  .intro p:not(.section-kicker) {
    font-size: 1.02rem;
    line-height: 1.68;
  }

  input,
  textarea {
    font-size: 16px; /* prevents iOS zoom */
    border-radius: 10px;
  }

  textarea {
    min-height: 145px;
  }

  .button-submit {
    width: 100%;
    justify-self: stretch;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */
@media (max-width: 380px) {

  .site-header,
  .hero-content,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .brand {
    font-size: .61rem;
    letter-spacing: .11em;
  }

  .yt-link {
    font-size: .76rem;
  }

  /* Slightly shorter again on very small phones */
  .hero {
    min-height: 80svh;
  }

  .hero-bg {
    background-position: 82% center;
  }

  h1 {
    font-size: clamp(2.35rem, 12.8vw, 3.05rem);
    white-space: nowrap;
  }

  .eyebrow {
    letter-spacing: .11em;
  }
}


/* =========================================================
   SHORT LANDSCAPE PHONES
   ========================================================= */
@media (max-height: 560px) and (orientation: landscape) {

  .hero {
    min-height: 560px;
  }

  .hero-bg {
    background-position: 70% center;
  }

  .hero-content {
    padding-bottom: 2rem;
  }

  h1 {
    font-size: clamp(2.8rem, 8vw, 4.3rem);
    white-space: nowrap;
  }

  .tagline {
    margin-bottom: 1.2rem;
  }
}
