/* forrestlive.com 소개 페이지 전용 스타일.
   값은 ../styles.css 토큰만 쓴다. 구성은 프레이머 랜딩과 같다:
   히어로 → 도시·성장 문구 → 콘텐츠 → 철학과 아티스트 → 선택받는 이유 → 함께하는 방법 → 스튜디오 → ESG → 파트너 → 푸터 */
:lang(ja) {
  --font-serif: "Noto Serif KR", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-ui: "Pretendard Variable", "Pretendard", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body:lang(ja) { word-break: normal; line-break: strict; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
.h-section, .h-why, .h-studio, .h-esg { overflow-x: clip; }

/* 머리글: 공연 사이트와 같은 흰 띠, 메뉴만 영문 머리말 결 */
.h-nav { display: flex; align-items: center; gap: var(--s-4); }
.h-nav .site-nav a, .h-lang a { font: 600 var(--t-12)/1 var(--font-label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.h-lang { display: flex; align-items: center; }
.h-lang a { padding: 6px 8px; min-height: var(--tap); display: inline-flex; align-items: center; text-decoration: none; }
.h-lang a + a { position: relative; }
.h-lang a + a::before { content: ""; position: absolute; left: 0; top: 50%; height: 10px; margin-top: -5px; border-left: 1px solid var(--line); }
.h-lang a[aria-current] { color: var(--accent); }
.h-lang a:hover { color: var(--accent); }
.h-menu-btn { display: none; min-height: 36px; font-family: var(--font-label); letter-spacing: 0.11em; text-transform: uppercase; font-size: var(--t-12); }

/* 첫 장면: 히어로 → 도시 문구 → 성장 문구를 스크롤 하나로 잇는다.
   home.js가 .is-scroll을 붙이면 화면에 고정되어 스크롤 위치대로 움직인다.
   동작 줄이기 설정이나 스크립트가 없으면 아래 기본 배치대로 위에서 아래로 쌓인다 */
.h-scene { position: relative; color: var(--on-photo); background: var(--bg); }
.h-stick { position: relative; }
.h-photo { position: relative; height: calc(100svh - 68px); overflow: hidden; background: var(--deep); }
.h-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.h-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,41,14,.1) 20%, rgba(4,41,14,.42) 62%, rgba(4,41,14,.72) 100%); }
.h-veil, .h-lines { display: none; }
.h-hero-copy { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: calc(100svh - 68px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24.5rem); gap: var(--s-6); align-items: end; padding-block: var(--s-7) var(--s-6); }
.h-hero-copy h1 { color: #fff; font-size: var(--t-display); line-height: 1.3; letter-spacing: -0.04em; }
.h-hero-side { display: flex; flex-direction: column; gap: var(--s-4); font-size: var(--t-15); color: rgba(255,255,255,.92); }
.h-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-2); }
.h-cta-row { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 0; }
.h-beat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4); text-align: center; padding: var(--s-7) 20px; }
.h-beat-city { background: var(--forest); }
.h-beat-city h2 { color: #fff; font-size: var(--t-section); }
.h-beat-city p { font-size: var(--t-17); color: rgba(255,255,255,.9); }
.h-beat-grow { background: var(--bg); }
.h-beat-grow h2 { color: var(--text); font-size: var(--t-section); line-height: 1.5; }

.is-scroll .h-scene { height: 460svh; }
.is-scroll .h-stick { position: sticky; top: 68px; height: calc(100svh - 68px); overflow: hidden; }
.is-scroll .h-photo { position: absolute; inset: 0; height: auto; }
.is-scroll .h-veil { display: block; position: absolute; inset: 0; z-index: 1; opacity: 0; background: var(--deep); }
.is-scroll .h-lines { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.h-lines path { stroke-linecap: round; }
.h-lines .line { stroke: #fff; stroke-width: 1.6; stroke-dasharray: 1; }
.h-lines .ring { stroke: rgba(255,255,255,.42); stroke-width: 1; stroke-dasharray: 1; }
.h-lines .flood { stroke: var(--bg); stroke-width: 0; }
.is-scroll .h-beat { position: absolute; inset: 0; z-index: 4; background: none; padding-inline: 20px; }
.is-scroll [data-reveal] .w { display: inline-block; opacity: 0; will-change: transform, opacity; }

/* 섹션 공통 */
.h-section { padding-block: var(--s-7) calc(var(--s-7) + 8px); }
.h-soft { background: var(--surface); }
.h-head { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; margin-bottom: var(--s-6); }
.h-head h2 { font-size: var(--t-section); color: var(--heading); }
.h-head p { color: var(--muted); max-width: 42em; }
.h-head-next { margin-top: var(--s-8); }
.h-kicker { color: var(--accent); font-weight: 600; font-size: var(--t-15); }
.h-title-lg { font-size: var(--t-display) !important; color: var(--text) !important; }

/* 콘텐츠 카드 */
.h-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.h-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; min-width: 0; }
.h-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--chip); }
.h-card h3 { font-size: var(--t-30); margin-top: var(--s-4); }
.h-card p { color: var(--muted); font-size: var(--t-15); margin-top: var(--s-2); max-width: 34em; }
.h-card:hover h3 { color: var(--accent); }

/* 철학: 글자가 스크롤을 따라 진해지고, 아래로 아티스트 사진이 흐른다 */
.h-philosophy { padding-block: var(--s-8) var(--s-7); overflow: hidden; }
.h-philosophy .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s-6); }
.h-emblem { width: 160px; height: auto; }
.h-emblem-sm { width: 100px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h-emblem { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .h-emblem { filter: brightness(0) invert(1); }
.h-words { font: 600 var(--t-section)/1.5 var(--font-serif); color: var(--heading); text-align: center; letter-spacing: -0.02em; max-width: 25em; }
.h-words span { transition: opacity .25s linear; }
.h-marquee { margin-top: var(--s-7); overflow-x: auto; scrollbar-width: none; }
.h-marquee::-webkit-scrollbar { display: none; }
.h-marquee ul { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.h-marquee li { flex: 0 0 auto; width: clamp(220px, 28vw, 404px); margin-right: var(--s-5); }
.h-marquee img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--chip); }
.is-scroll .h-marquee { overflow: hidden; }
.is-scroll .h-marquee ul { animation: h-flow 70s linear infinite; }
.is-scroll .h-marquee:hover ul { animation-play-state: paused; }
@keyframes h-flow { to { transform: translateX(-50%); } }

/* 선택받는 이유: 왼쪽 설명, 오른쪽 큰 번호 */
.h-why { position: relative; padding-block: var(--s-7); }
.h-why-curve { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.h-why-curve path { stroke: var(--line); stroke-width: 1.5; }
.h-why .wrap { position: relative; }
.h-why-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-6); }
.h-why-head h2 { font-size: var(--t-display); }
.h-why-head p { color: var(--text); font-size: var(--t-15); padding-bottom: 1em; }
.h-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.h-steps ol { list-style: none; margin: 0; padding: 0; }
.h-step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); }
.h-step h3 { font-size: var(--t-section); color: var(--heading); }
.h-step p { color: var(--muted); }
.h-num { display: none; font: 600 clamp(4.5rem, 24vw, 7rem)/1 var(--font-label); color: var(--sage); letter-spacing: -0.03em; }
.h-big-num { position: sticky; top: calc(50svh - 12rem); align-self: start; height: 24rem; display: grid; place-items: center; font: 600 clamp(12rem, 25vw, 24rem)/1 var(--font-label); color: var(--sage); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* 함께하는 방법 */
.h-circled { position: relative; padding: .35em .7em; color: var(--text) !important; }
.h-circled svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-circled path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.h-circled span { position: relative; }
.h-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.h-ways .panel { padding: var(--s-5) var(--s-5) var(--s-6); box-shadow: 0 1px 2px rgba(15,42,29,.05); }
.h-ways h3 { font-size: var(--t-section); }
.h-ways b { display: block; margin-top: var(--s-2); font-size: var(--t-15); font-weight: 600; }
.h-ways ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); color: var(--muted); font-size: var(--t-15); }
.h-ways li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.h-ways li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='8'/%3E%3Cpath d='m5.5 9.2 2.4 2.4 4.6-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='8'/%3E%3Cpath d='m5.5 9.2 2.4 2.4 4.6-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 스튜디오: 지점 탭 → 화면 폭 사진 → 위치 → 구성·운영 */
.h-studio { padding-block: 0 var(--s-7); }
.h-seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); padding: var(--s-1); margin-top: var(--s-3); background: var(--chip); border-radius: var(--radius-pill); }
.h-seg button { font: 500 var(--t-15)/1.2 var(--font-ui); min-height: var(--tap); padding: 8px 20px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); cursor: pointer; }
.h-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.h-carousel { position: relative; }
.h-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--deep); }
.h-track::-webkit-scrollbar { display: none; }
.h-track:focus-visible { outline-offset: -4px; }
.h-slide { flex: 0 0 100%; scroll-snap-align: center; height: min(56vw, 800px); }
.h-slide img { width: 100%; height: 100%; object-fit: cover; }
.h-slide img.portrait { object-fit: contain; }
.h-arrow { position: absolute; top: 50%; margin-top: -21px; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; }
.h-arrow svg { width: 20px; height: 20px; }
.h-prev { left: var(--s-4); } .h-next { right: var(--s-4); }
.h-dots { position: absolute; left: 0; right: 0; bottom: var(--s-3); display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.h-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.h-dots i.on { background: #fff; }
.h-venue { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; padding-top: var(--s-6); }
.h-venue[hidden] { display: none; }
.h-loc { font: 600 var(--t-section)/1.35 var(--font-ui); color: var(--muted); letter-spacing: -0.02em; }
.h-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 900px; margin: var(--s-6) auto 0; }
.h-spec .panel { padding: var(--s-5); text-align: center; }
.h-spec h3 { font: 600 var(--t-17)/1.4 var(--font-ui); letter-spacing: 0; color: var(--muted); }
.h-spec ul { margin: var(--s-3) 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-15); }

/* ESG */
.h-esg { padding-block: var(--s-7) 0; }
.h-esg-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24.5rem); gap: var(--s-6); align-items: start; padding-bottom: var(--s-7); }
.h-esg-intro h2 { font-size: var(--t-section); }
.h-esg-intro em { font-style: normal; color: var(--heading); }
.h-esg-intro h3 { font: 600 var(--t-17)/1.5 var(--font-ui); letter-spacing: 0; color: var(--muted); }
.h-esg-intro p { color: var(--muted); font-size: var(--t-15); margin-top: var(--s-3); }
.h-quote { position: relative; margin: 0; color: var(--on-photo); background: var(--deep); overflow: hidden; border-radius: 50% 50% 0 0 / clamp(40px, 9vw, 130px) clamp(40px, 9vw, 130px) 0 0; }
.h-quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,41,14,.5), rgba(4,41,14,.05) 70%); }
.h-quote blockquote { position: relative; z-index: 1; margin: 0 auto; width: 100%; min-height: min(70vw, 860px); display: flex; align-items: center; font: 400 var(--t-display)/1.3 var(--font-serif); letter-spacing: -0.04em; color: #fff; }
.h-esg-grid { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); padding-block: var(--s-7); }
.h-esg-grid > h2 { font-size: var(--t-section); text-align: center; }
.h-esg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-5); width: 100%; }
.h-esg-cols article { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); }
.h-esg-cols article:nth-child(2) { margin-top: var(--s-7); }
.h-blob { width: 100%; max-width: 340px; aspect-ratio: 4 / 3; object-fit: cover; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.h-blob.b1 { -webkit-mask-image: url("/assets/home/mask-1.svg"); mask-image: url("/assets/home/mask-1.svg"); }
.h-blob.b2 { -webkit-mask-image: url("/assets/home/mask-2.svg"); mask-image: url("/assets/home/mask-2.svg"); }
.h-blob.b3 { -webkit-mask-image: url("/assets/home/mask-3.svg"); mask-image: url("/assets/home/mask-3.svg"); }
.h-esg-cols h3 { font-size: var(--t-30); color: var(--heading); }
.h-esg-cols p { font-size: var(--t-15); }

/* 파트너 로고: 어두운 화면에서도 보이도록 흰 판 위에 둔다 */
.h-logos { list-style: none; margin: 0; padding: var(--s-4); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-6) var(--s-7); background: #fff; border-radius: var(--radius-lg); }
.h-logos img { height: 96px; width: auto; max-width: 180px; object-fit: contain; }

/* 푸터: 사진 위 문의 */
.h-footer { position: relative; color: var(--on-photo); background: var(--deep); overflow: hidden; }
.h-footer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.h-footer::after { content: ""; position: absolute; inset: 0; background: rgba(4,41,14,.62); }
.h-footer .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24.5rem); gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
.h-footer h2 { color: #fff; font-size: var(--t-section); line-height: 1.4; max-width: 15em; }
.h-footer .h-cta { margin-top: var(--s-5); }
.h-mail { margin-top: var(--s-6); font-size: var(--t-15); }
.h-mail span { opacity: .7; }
.h-mail a { font-weight: 600; text-decoration: none; }
.h-mail a:hover { text-decoration: underline; }
.h-social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.h-social a { display: grid; place-items: center; width: var(--tap); height: var(--tap); margin-left: -10px; margin-right: 2px; color: #fff; }
.h-social svg { width: 22px; height: 22px; }
.h-footer-side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.h-footer-side nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.h-footer .label { color: rgba(255,255,255,.7); }
.h-footer-side nav a { font: 600 var(--t-20)/1.2 var(--font-label); text-decoration: none; }
.h-footer-side nav a:hover { text-decoration: underline; }
.h-copy { font-size: var(--t-13); opacity: .7; }

@media (max-width: 860px) {
  /* 좁은 화면: 메뉴 단추를 누르면 펼쳐진다 */
  .h-menu-btn { display: inline-flex; }
  .h-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) 20px var(--s-4); background: var(--bg); border-bottom: 1px solid var(--line); }
  .h-nav.open { display: flex; }
  .h-nav .site-nav { flex-direction: column; }
  .h-nav .site-nav a { font-size: var(--t-13); }
  .h-lang { padding-top: var(--s-2); margin-top: var(--s-2); border-top: 1px solid var(--line); }
  .h-hero-copy { grid-template-columns: minmax(0, 1fr); align-content: end; gap: var(--s-5); }
  .h-esg-intro, .h-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .h-steps { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-5); }
  .h-big-num { display: none; }
  .h-num { display: block; }
  .h-step { min-height: 0; padding-block: var(--s-5); }
  .h-esg-cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .h-esg-cols article:nth-child(2) { margin-top: 0; }
}
@media (max-width: 720px) {
  .h-cards, .h-ways, .h-spec { grid-template-columns: minmax(0, 1fr); }
  .h-section { padding-block: 56px 64px; }
  .h-head-next { margin-top: var(--s-7); }
  .h-philosophy { padding-block: var(--s-7) 56px; }
  .h-emblem { width: 120px; }
  .h-title-lg { font-size: var(--t-section) !important; }
  .h-slide { height: 72vw; }
  .h-arrow { width: 36px; height: 36px; margin-top: -18px; }
  .h-seg { border-radius: var(--radius-lg); }
  .h-seg button { border-radius: var(--radius-md); }
  .h-loc { font-size: var(--t-21); }
  .h-card h3 { font-size: var(--t-21); }
  .h-logos { gap: var(--s-5); }
  .h-logos img { height: 64px; max-width: 120px; }
  .h-quote blockquote { min-height: 96vw; }
  :lang(ja) .h-beat-grow h2 { font-size: var(--t-20); }
  .h-footer .wrap { padding-block: 96px var(--s-5); }
}
@media (prefers-reduced-motion: no-preference) {
  .h-circled path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease-out; }
  .h-circled.drawn path { stroke-dashoffset: 0; }
  .btn, .site-nav a { transition: background-color .15s, color .15s, border-color .15s; }
  .h-card img { transition: opacity .2s; }
  .h-card:hover img { opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
