/*
 * Hero art direction by viewport.
 * 1) Standard desktop keeps the approved original composition.
 * 2) Wide desktop reduces only the collision between the 7th and the photo.
 * 3) Mobile uses a stacked composition while preserving the typography.
 */

/* Standard desktop / laptop: original composition. */
@media (min-width: 801px) and (max-width: 1399px) {
  .hero::before {
    left: auto;
    right: -0.05em;
    top: -0.22em;
    width: auto;
    padding: 0;
    overflow: visible;
    font-size: clamp(300px, 50vw, 780px);
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    transform: rotate(-4deg);
  }

  .hero-visual {
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    clip-path: none;
  }

  .hero-visual .photo {
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 86%);
  }
}

/* Wide desktop: keep the giant wordmark but limit how much the photo covers. */
@media (min-width: 1400px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(560px, 0.88fr);
  }

  .hero::before {
    left: auto;
    right: -0.05em;
    top: -0.22em;
    width: auto;
    padding: 0;
    overflow: visible;
    font-size: min(45vw, 730px);
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    transform: rotate(-4deg);
  }

  .hero-visual {
    width: min(35vw, 650px);
    margin: 0;
    padding: 0;
    justify-self: end;
    background: transparent;
    clip-path: none;
  }

  .hero-visual .photo {
    height: min(57vh, 560px);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 86%);
  }
}

/*
 * Wide and short windows may report a smaller CSS width because of browser
 * zoom or Windows display scaling. Aspect ratio therefore selects this layout
 * even when the reported width is only around 1200px.
 */
@media (min-width: 1000px) and (min-aspect-ratio: 16 / 9) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
  }

  .hero::before {
    right: -0.05em;
    top: -0.22em;
    font-size: min(43vw, 700px);
  }

  .hero-visual {
    width: min(36vw, 640px);
    justify-self: end;
  }

  .hero-visual .photo {
    height: min(60vh, 520px);
  }
}

/* Mobile: wordmark at the top, image after the copy, no collision. */
@media (max-width: 800px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero::before {
    left: auto;
    right: -0.08em;
    top: 0.02em;
    width: auto;
    padding: 0;
    overflow: visible;
    font-size: 72vw;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    transform: rotate(-4deg);
  }

  .hero-copy {
    padding-top: clamp(100px, 29vw, 132px);
  }

  .hero-visual {
    width: auto;
    margin: 48px -20px -34px 16%;
    padding: 0;
    background: transparent;
    clip-path: none;
  }

  .hero-visual .photo {
    height: min(66svh, 520px);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 86%);
  }
}

/* Launch version: one published channel, kept at a deliberate editorial width. */
.channel-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.kawagoe-profile-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 18px;
  max-width: 520px;
}

.profile-work-link,
.kawagoe-profile-links .taiwan-work-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding: 14px 16px;
  font: 900 11px/1 Arial, sans-serif;
  letter-spacing: .08em;
  transition: .2s;
}

.profile-work-link {
  border: 2px solid var(--ink);
}

.profile-work-link:hover {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 800px) {
  .kawagoe-profile-links {
    grid-template-columns: 1fr;
  }
}
