/* Homepage only — cinematic editorial layout */

.theme-heroes {
  overflow-x: hidden;
}

/* ── Hero: title sits in the dusk ── */
.theme-heroes .hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(860px, calc(100svh - 88px));
  height: calc(100svh - 88px);
  max-height: none;
}
.theme-heroes .hero-shade {
  background:
    linear-gradient(180deg, rgba(10, 32, 64, 0.12) 0%, rgba(8, 28, 58, 0.18) 38%, rgba(6, 22, 48, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 28, 56, 0.58) 0%, rgba(10, 30, 58, 0.22) 48%, transparent 78%);
}
.theme-heroes .hero-content {
  padding-top: 0;
  padding-bottom: clamp(72px, 12vh, 128px);
  max-width: min(1180px, calc(100% - 80px));
}
.theme-heroes .hero-content h1 {
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  max-width: 9.5em;
  margin-bottom: 22px;
  word-break: keep-all;
}
.theme-heroes .hero-copy {
  font-size: 17px;
  max-width: 28em;
  color: rgba(240, 244, 238, 0.88);
}
.theme-heroes .hero-bottom {
  bottom: 28px;
}
.theme-heroes .hero-slider-dots {
  bottom: 30px;
}

/* ── Home notice board ── */
.theme-heroes .home-notice {
  padding: 72px 0 64px;
  background: #fff;
  scroll-margin-top: 88px;
}
.theme-heroes .home-notice .title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 8px;
}
.theme-heroes .home-notice .title-row h2 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 48px);
}
.theme-heroes .home-notice .text-link {
  flex: 0 0 auto;
  margin-bottom: 8px;
  color: var(--navy);
  border-bottom-color: var(--navy);
  white-space: nowrap;
}
.theme-heroes .home-notice-list {
  margin-top: 22px;
  border-top: 1px solid rgba(18, 58, 92, 0.14);
}
.theme-heroes .home-notice-item {
  display: grid;
  grid-template-columns: 7.6em minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.1);
  color: var(--ink);
}
.theme-heroes .home-notice-item time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.theme-heroes .home-notice-item strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.45;
  word-break: keep-all;
}
.theme-heroes .home-notice-item b {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.theme-heroes .home-notice-item:hover strong {
  color: var(--navy);
}
.theme-heroes .home-notice-item.is-featured strong:before {
  content: "주요";
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy);
  vertical-align: 1px;
}
.theme-heroes .home-notice-empty {
  margin: 22px 0 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ── Activities: equal editorial cards ── */
.theme-heroes .activities {
  padding: 110px 0 120px;
  background: #e8f0f7;
}
.theme-heroes .activities .title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 40px;
}
.theme-heroes .activities-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 28em;
  padding-bottom: 6px;
}
.theme-heroes .activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 22px;
  margin: 0;
  min-height: 0;
}
.theme-heroes .activity-card,
.theme-heroes .activity-card.blue,
.theme-heroes .activity-card.green,
.theme-heroes .activity-card.orange {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  grid-row: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 42, 54, 0.08);
}
.theme-heroes .activity-card:before {
  display: none;
}
.theme-heroes .activity-visual {
  display: flex;
  flex: 0 0 210px;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: 210px;
  min-height: 210px;
  box-sizing: border-box;
  padding: 16px 20px;
  font-family: "Cormorant Garamond", "DM Serif Display", serif;
  font-style: italic;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.28);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.theme-heroes .activity-card.blue .activity-visual {
  background-color: #0e2f4d;
}
.theme-heroes .activity-card.green .activity-visual {
  background-color: #1a4f73;
}
.theme-heroes .activity-card.orange .activity-visual {
  background-color: #245a86;
}
.theme-heroes .activity-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: end;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 22px 22px;
  background: #fff;
}
.theme-heroes .activity-card > div p {
  grid-column: 1;
  margin: 0;
  color: var(--gold);
}
.theme-heroes .activity-card > div h3 {
  grid-column: 1;
  font-size: 22px;
  letter-spacing: -1.2px;
  margin: 0;
  color: var(--ink);
  word-break: keep-all;
}
.theme-heroes .activity-card > div b {
  grid-column: 2;
  grid-row: 1 / span 2;
  float: none;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}
.theme-heroes .activity-card:hover {
  transform: translateY(-6px);
  filter: none;
  box-shadow: 0 18px 36px rgba(18, 42, 54, 0.14);
}
.theme-heroes .activity-card.has-live-image .activity-visual {
  background-repeat: no-repeat;
}

/* ── News: cinematic featured still ── */
.theme-heroes .news {
  padding-top: 140px;
}
.theme-heroes .news-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 0 40px;
  margin-top: 48px;
  align-items: stretch;
}
.theme-heroes .featured-news {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: block;
}
.theme-heroes .featured-news .news-image {
  position: absolute;
  inset: 0;
  height: auto;
  border-radius: 0;
}
.theme-heroes .featured-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 88px 32px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 14, 18, 0.88) 72%);
  color: #fff;
}
.theme-heroes .featured-cap .category,
.theme-heroes .featured-cap time,
.theme-heroes .featured-cap h3,
.theme-heroes .featured-cap h3 a {
  color: #fff;
}
.theme-heroes .featured-cap .category {
  letter-spacing: 1.4px;
}
.theme-heroes .featured-cap h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 10px;
}
.theme-heroes .news-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 0;
}
.theme-heroes .news-list article {
  padding: 26px 48px 26px 0;
}
.theme-heroes .news-list h3 {
  font-size: 19px;
}

/* ── Media: split copy + framed player ── */
.theme-heroes .media {
  padding: 110px 0 120px;
  background: #f3f8fc;
  color: var(--ink);
}
.theme-heroes .media-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 40px 64px;
  align-items: center;
}
.theme-heroes .media-title {
  position: relative;
  z-index: 1;
  padding: 0;
  width: auto;
  margin: 0;
  pointer-events: auto;
  text-shadow: none;
}
.theme-heroes .media-title h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  margin: 0 0 18px;
  word-break: keep-all;
  line-height: 1.22;
}
.theme-heroes .media-title h2 em {
  color: var(--gold);
}
.theme-heroes .media-lead {
  margin: 0 0 28px;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.theme-heroes .media-title a,
.theme-heroes .media-title .button {
  pointer-events: auto;
}
.theme-heroes .media-card:before,
.theme-heroes .media-card:after {
  display: none;
}
.theme-heroes .media-card {
  overflow: hidden;
}
.theme-heroes .media-stage {
  position: relative;
  min-height: 0;
  display: block;
}
.theme-heroes .media-mosaic {
  position: relative;
  inset: auto;
  display: grid;
  gap: 8px;
}
.theme-heroes .media-mosaic:not(.has-live) .media-card {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  order: 0;
  border: 0;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(8, 14, 18, 0.15), rgba(8, 14, 18, 0.55)),
    linear-gradient(145deg, #1a4a73, #123a5c 66%, #1b5278);
}
.theme-heroes .media-mosaic.has-live {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
}
.theme-heroes .media-mosaic.has-live[data-tiles="0"] {
  display: block;
}
.theme-heroes .media-mosaic.has-live[data-tiles="0"] .media-card {
  position: relative;
  inset: auto;
  height: auto;
  aspect-ratio: 16 / 9;
}
.theme-heroes .media-mosaic.has-live[data-tiles="1"],
.theme-heroes .media-mosaic.has-live[data-tiles="2"],
.theme-heroes .media-mosaic.has-live[data-tiles="3"],
.theme-heroes .media-mosaic.has-live[data-tiles="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.theme-heroes .media-mosaic.has-live .media-card {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  order: 0;
  border: 0;
  border-radius: 2px;
  background-color: #123a5c;
}
.theme-heroes .media-mosaic.has-live[data-tiles="1"] .media-photo {
  grid-column: 1 / -1;
  grid-row: auto;
}
.theme-heroes .media-mosaic.has-live[data-tiles="3"] .media-photo:nth-child(4) {
  grid-column: auto;
}
.theme-heroes .media-photo {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background-color: #123a5c;
  background-size: cover;
  background-position: center;
}
.theme-heroes .media-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 22, 48, 0.42));
  pointer-events: none;
}
.theme-heroes .media-photo:hover {
  filter: brightness(1.08);
}
.theme-heroes .media-photo.is-video .play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding-left: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: var(--dusk);
  font-size: 12px;
}
.theme-heroes .media-card.has-photo {
  color: inherit;
  text-decoration: none;
}
.theme-heroes .media-mosaic.has-live .media-card.is-playing {
  z-index: 4;
}
.theme-heroes .media-card p,
.theme-heroes .media-card span {
  display: block;
  position: relative;
  z-index: 1;
}
.theme-heroes .media-card p {
  font-size: 18px;
  color: #fff;
}
.theme-heroes .media-card span {
  color: rgba(230, 238, 244, 0.8);
}
.theme-heroes .media-card .play {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

/* ── Join: oversized quote ── */
.theme-heroes .join {
  padding: 132px 0 120px;
}
.theme-heroes .join-inner {
  display: grid;
  grid-template-columns: auto 1.35fr 0.9fr;
  gap: 28px 56px;
  align-items: end;
}
.theme-heroes .join-inner:before {
  content: "“";
  font-family: "Cormorant Garamond", "DM Serif Display", serif;
  font-style: italic;
  font-size: 140px;
  line-height: 0.55;
  color: var(--gold);
  align-self: start;
  margin-top: 8px;
}
.theme-heroes .join h2 {
  font-size: clamp(40px, 4.8vw, 68px);
}

@media (max-width: 820px) {
  .theme-heroes .hero {
    height: calc(100svh - 72px);
    max-height: none;
    min-height: 680px;
  }
  .theme-heroes .hero-content {
    max-width: min(100% - 40px, 680px);
    padding-bottom: 88px;
  }
  .theme-heroes .hero-content h1 {
    max-width: none;
    font-size: clamp(42px, 11vw, 58px);
  }
  .theme-heroes .home-notice {
    padding: 52px 0 48px;
  }
  .theme-heroes .home-notice .title-row {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .theme-heroes .home-notice-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date arrow"
      "title arrow";
    gap: 4px 12px;
    padding: 16px 0;
  }
  .theme-heroes .home-notice-item time {
    grid-area: date;
  }
  .theme-heroes .home-notice-item strong {
    grid-area: title;
    font-size: 16px;
  }
  .theme-heroes .home-notice-item b {
    grid-area: arrow;
  }
  .theme-heroes .activities {
    padding: 72px 0 80px;
  }
  .theme-heroes .activities .title-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .theme-heroes .activity-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .theme-heroes .activity-card,
  .theme-heroes .activity-card.blue,
  .theme-heroes .activity-card.green,
  .theme-heroes .activity-card.orange {
    min-height: 0;
    height: auto;
    grid-row: auto;
  }
  .theme-heroes .activity-visual {
    flex-basis: 160px;
    height: 160px;
    min-height: 160px;
    font-size: 48px;
  }
  .theme-heroes .news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .theme-heroes .featured-news {
    min-height: 380px;
  }
  .theme-heroes .media {
    padding: 72px 0 80px;
  }
  .theme-heroes .media-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .theme-heroes .media-stage {
    min-height: 0;
  }
  .theme-heroes .media-mosaic.has-live {
    position: relative;
    min-height: 0;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: none;
  }
  .theme-heroes .media-mosaic.has-live .media-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }
  .theme-heroes .media-mosaic.has-live .media-photo {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }
  .theme-heroes .media-mosaic.has-live[data-tiles="3"] .media-photo:nth-child(4) {
    grid-column: auto;
  }
  .theme-heroes .media-title {
    margin: 0;
    width: auto;
    padding: 0;
  }
  .theme-heroes .join-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .theme-heroes .join-inner:before {
    font-size: 96px;
  }
}

/* Keep all three heroes visible in the tall portrait mobile hero. */
@media (max-width: 820px) and (orientation: portrait) {
  .theme-heroes .hero.has-mobile-three-heroes-image {
    justify-content: flex-start;
  }
  .theme-heroes .hero.has-mobile-three-heroes-image .hero-image {
    background-color: #071827;
    background-image: url("assets/heroes-salute-mobile-v1.png") !important;
    background-position: center bottom !important;
    background-repeat: no-repeat;
    background-size: 100% auto !important;
    transform: none;
  }
  .theme-heroes .hero.has-mobile-three-heroes-image .hero-content {
    margin: 0 auto;
    padding-top: clamp(40px, 7svh, 72px);
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .theme-heroes .hero-content h1 {
    font-size: 40px;
  }
  .theme-heroes .featured-news {
    min-height: 320px;
  }
  .theme-heroes .activity-card,
  .theme-heroes .activity-card.blue,
  .theme-heroes .activity-card.green,
  .theme-heroes .activity-card.orange {
    height: auto;
    min-height: 0;
  }
  .theme-heroes .activity-visual {
    flex-basis: 140px;
    height: 140px;
    min-height: 140px;
  }
}
