/* =============================================================================
 * woosungjung.com — pages/home.css
 * 메인 전용. 공통 조각(.row .badge .tag .tl .box .more)은 components.css 에 있다.
 * ========================================================================== */

/* ---------- 히어로 ---------- */
.herowrap { position: relative; }
.herowrap .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.herowrap .bg.on { opacity: .62; }
.herowrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(14, 14, 16, .35) 0%,
    rgba(14, 14, 16, .15) 38%,
    rgba(14, 14, 16, .95) 100%);
}

.hero { position: relative; z-index: 1; padding: 150px 0 92px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(58px, 10vw, 132px);
  line-height: .94;
  letter-spacing: -.015em;
}
.hero .role { margin-top: 26px; font-size: 14px; color: var(--sub); }
.hero .tags { margin-top: 20px; }
.hero .where { margin-top: 30px; font-size: 13px; color: var(--sub); }
.hero .where b { font-weight: 400; color: var(--hanji); }

.herodots {
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.herodots button {
  width: 26px;
  height: 2px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(237, 231, 218, .4);
  transition: background .3s;
}
.herodots button[aria-current="true"] { background: var(--dan-lt); }

/* 히어로 바로 아래 첫 섹션은 위 여백을 줄인다 */
.home-body > section:first-of-type { padding-top: 38px; }

/* ---------- 예정 공연 (없으면 렌더하지 않음) ---------- */
.next { display: flex; gap: 34px; align-items: flex-start; flex-wrap: wrap; }
.next .when {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--dan-lt);
  padding-top: 8px;
  min-width: 120px;
}
.next h2 { font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1.15; }
.next .sub { color: var(--sub); font-size: 14px; margin-top: 10px; }

/* ---------- LATEST (소식) ---------- */
.feed { border-top: 1px solid var(--line); }
.fi {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  color: inherit;
  transition: padding-left .2s;
}
.fi:last-child { border-bottom: none; }
a.fi:hover { padding-left: 8px; }
.fi .fd { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); }
.fi .ft { font-size: 15px; line-height: 1.45; }
.fi .fx { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* ---------- MEARI ----------
   소개 한 문단(왼쪽) + 로고 한 장(오른쪽). 2026-08-18 개정으로 이미지 띠를 걷었다 —
   도는 것이 없으니 이 절에는 JS 가 없다.
   글 칸을 조금 넓게 잡는다(1.15 : 1) — 로고는 여백이 넉넉해야 로고로 읽힌다. */
.mtwo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
/* 로고 파일이 없으면 글만 남는다 — 빈 칸이 오른쪽에 남지 않게 한 칸으로 되돌린다 */
.mtwo.is-alone { grid-template-columns: 1fr; }

/* 눈썹글이 제목 바로 위에 붙는다 — 절 표시가 아니라 이 제목의 머리말 자리다 */
.mtop .eyebrow { margin-bottom: 12px; }
.mtop h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.mtop p { font-size: 15px; color: var(--sub); line-height: 1.8; }
.mtop p + p { margin-top: 14px; }

/* 배경이 비어 있는 PNG 라 상자를 깔지 않는다 — 어두운 바탕 위에 그대로 얹힌다.
   높이를 묶어 두는 것은 글 칸이 길어져도 로고가 따라 커지지 않게 하기 위해서다 */
.mlogo { display: flex; justify-content: center; }
.mlogo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: .92;
  transition: opacity .3s;
}
.mlogo img:hover { opacity: 1; }

/* ---------- ON STAGE (사진 띠) ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(.78) brightness(.9);
  transition: filter .25s;
}
.strip img:hover { filter: saturate(1) brightness(1); }

/* ---------- TEACHING · NEURU 2단 ---------- */
.home-two h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 16px;
}
.home-two p { font-size: 14px; color: var(--sub); margin-bottom: 16px; }

/* ---------- ABOUT ---------- */
.portrait {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 26px;
}
.about-lead { font-size: 15px; color: var(--hanji); margin-bottom: 16px; }
.about-sub { font-size: 14px; color: var(--sub); }

/* ---------- 공연장 이름 띠 ---------- */
.mqband {
  padding: 40px 0 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mqwrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mqtrack {
  display: flex;
  width: max-content;
  animation: mqroll 78s linear infinite;
}
.mqwrap:hover .mqtrack { animation-play-state: paused; }
.mqtrack span {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 300;
  color: var(--dim);
  white-space: nowrap;
  padding-right: 44px;
  position: relative;
  transition: color .45s ease;
  cursor: default;
}
.mqtrack span:hover { color: var(--dan-lt); }
.mqtrack span::after {
  content: '\00B7';
  position: absolute;
  right: 18px;
  color: var(--ghost);
}
@keyframes mqroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mqtrack { animation: none; }
  .herowrap .bg { transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 820px) {
  /* 좁아지면 로고를 글 아래로 내린다 — 옆에 두면 둘 다 읽히지 않는다 */
  .mtwo { grid-template-columns: 1fr; gap: 32px; }
  .mtop h2 { font-size: 27px; }
  .mlogo img { max-width: 340px; }
}
@media (max-width: 780px) {
  .fi { grid-template-columns: 1fr; gap: 5px; }
  .fi .fd { order: -1; }
  .mqtrack span { font-size: 20px; padding-right: 30px; }
  .mqtrack span::after { right: 11px; }
  .mqband { padding: 32px 0 34px; }
}
@media (max-width: 640px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 64px 0 48px; }
  .next { gap: 10px; }
  .next .when { min-width: 0; padding-top: 0; }
  .next h2 { font-size: 30px; }
  .home-two h2 { font-size: 27px; }
}
