/* ==========================================================================
   DBEW home 3 — 첫 화면 + 이야기 4장면 (2차 시안 수정판, 11/29)
   작업 지시서(11/28 이지성) 데모 전 1·2·10번 기준

   줄무늬    화면 끝까지 이어지는 한 면. 글 격자의 여백·단 간격과 상관없이 그린다 (home3.js 캔버스)
             레일과 면은 간격 없이 붙고, 면은 머리줄 바로 아래 한 높이에서 시작한다
             줄 간격 --pitch 18px, 굵기만 바뀐다. 줄무늬는 멈춰 있다 (숨·휘어짐·레일 움직임 없음)
   글 격자   12단. 바깥 여백 40 · 단 간격 20 (1280~), 32 · 20 (744~1279), 20 · 16 (~743)
             — 2차 그리드 시스템(곽민주·이서진 11/28)의 수치. 여백은 글에만 쓴다
   글자      2차 그리드 시스템 타이포그래피 단계 (tokens.css). 로고타입 DBEW 는 IBM Plex Sans KR Light
   전환      한 가지 — 격자 맞춤(전환 B). 0.95초. 동작 줄이기 설정에서는 없음
   모드      html.stage-on : 화면 고정 + 스크롤로 장면 전환 (가로 900px 이상, 세로 560px 이상)
             그 밖          : 한 단으로 차례로 놓고 평소처럼 스크롤 (휴대폰·태블릿·낮은 화면)
   ========================================================================== */

:root {
  --pitch: 18px;   /* 격자 --m · --g 는 tokens.css */
}

body.page-home { background: var(--bg); }

/* 머리줄: 홈에서는 화면에 고정, 검정 바탕. 줄무늬 면은 머리줄 바로 아래에서 시작한다 */
.page-home .site-header { position: fixed; inset-inline: 0; top: 0; background: var(--bg); }
.site-logo { align-items: center; }
.site-logo__icon { display: block; width: auto; height: 1.75rem; margin-right: var(--space-1); }

/* -------------------------------------------------------------------------
   공통: 장면 틀
   ------------------------------------------------------------------------- */
.home { position: relative; }
.stage { position: relative; }
.scene { position: relative; --c: var(--c-green); }
.scene--pink   { --c: var(--c-pink); }
.scene--yellow { --c: var(--c-yellow); }
.scene--green  { --c: var(--c-green); }
.scene--sky    { --c: var(--c-sky); }

.scene__fx, .stage__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__fx { display: none; }
.scene__copy { position: relative; z-index: 2; }

/* 사진: 캔버스가 그린다. JS 가 없으면 사진을 그대로 보인다 */
.scene__field { position: relative; }
.scene__field img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.js .scene__field img { visibility: hidden; }

/* 휴대폰 첫 화면의 줄무늬 면 (PC 는 캔버스가 화면 전체에 그린다) */
.hero__plane { display: none; }

/* -------------------------------------------------------------------------
   글
   ------------------------------------------------------------------------- */
.hero__phase { margin: 0 0 var(--space-4); font-size: var(--fs-xs); }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2rem; padding: 0 0.875rem; border: var(--border-thin) solid var(--fg); border-radius: var(--radius-pill); }
.pill__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-green); }

/* 로고타입 (2차 Display 1: IBM Plex Sans KR Light) — DBEW 옆에 Award / 2027 두 줄 */
.hero__title { display: flex; align-items: flex-start; gap: 0.14em; margin: 0; font-family: var(--font-logo); font-weight: var(--fw-light); line-height: 1; letter-spacing: -0.01em; font-size: var(--fs-display); }
.hero__logo { display: block; line-height: .8; }
.hero__ed { display: block; font-size: .3em; line-height: 1.02; letter-spacing: 0; padding-top: .02em; }
.hero__call { margin: var(--space-3) 0 0; font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.hero__tag { list-style: none; margin: var(--space-3) 0 0; padding: 0; font-size: var(--fs-xs); line-height: var(--lh-snug); color: var(--fg-muted); }
.hero__tag li:first-child { color: var(--fg); font-weight: var(--fw-bold); font-size: var(--fs-base); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero__actions .btn { min-height: 2.75rem; }

.hero__dates { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--space-5); margin: 0; }
.hd { margin: 0; }
.hd dt { font-size: var(--fs-xs); color: var(--fg-muted); }
.hd dd { margin: 0; }
.hd__v { margin-top: var(--space-1) !important; font-weight: var(--fw-black); font-size: clamp(1.75rem, 1.462rem + 1.282vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hd__v--s { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.hd__n { margin-top: var(--space-2) !important; font-size: var(--fs-xs); line-height: var(--lh-snug); color: var(--fg-muted); }

.hfacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); border-top: var(--border-bold) solid var(--line); }
.hfacts li { padding: var(--space-3) 0; border-bottom: var(--border-thin) solid var(--gray-700); }
.hf__k { display: block; font-size: var(--fs-xs); color: var(--fg-muted); }
.hfacts b { display: block; margin-top: var(--space-1); font-size: var(--fs-base); line-height: var(--lh-snug); }
.hfacts i { display: block; margin-top: var(--space-1); font-style: normal; font-size: var(--fs-xs); line-height: var(--lh-snug); color: var(--fg-muted); }

.story__title { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-snug); font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.story__body { margin: var(--space-4) 0 0; font-size: var(--fs-base); }
.kd { margin: var(--space-5) 0 0; border-top: var(--border-bold) solid var(--line); }
.kd div { display: grid; grid-template-columns: minmax(7.5rem, 1fr) 1.4fr; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: var(--border-thin) solid var(--gray-700); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.kd dt { color: var(--fg-muted); }
.kd dd { margin: 0; font-weight: var(--fw-bold); }
.fields { list-style: none; counter-reset: f; margin: var(--space-5) 0 0; padding: 0; border-top: var(--border-bold) solid var(--line); }
.fields li { counter-increment: f; display: grid; grid-template-columns: 2.25rem 1fr; padding: var(--space-3) 0; border-bottom: var(--border-thin) solid var(--gray-700); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.fields li::before { content: counter(f, decimal-leading-zero); grid-row: 1 / 3; color: var(--fg); font-weight: var(--fw-bold); }   /* 번호는 글과 같은 흰색 (11/29) */
.fields b { grid-column: 2; }
.fields li > span { grid-column: 2; color: var(--fg-muted); font-size: var(--fs-xs); }
.faq { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: var(--border-bold) solid var(--line); }
.faq li { padding: var(--space-3) 0; border-bottom: var(--border-thin) solid var(--gray-700); }
.faq h3 { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-snug); }
.faq p { margin: var(--space-1) 0 0; font-size: var(--fs-xs); line-height: var(--lh-body); color: var(--fg-muted); }
.prize { width: 100%; margin: var(--space-5) 0 0; border-collapse: collapse; font-size: var(--fs-sm); line-height: var(--lh-snug); border-top: var(--border-bold) solid var(--line); }
.prize th, .prize td { text-align: left; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: var(--border-thin) solid var(--gray-700); vertical-align: top; }
.prize thead th { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--fg-muted); }
.more { margin: var(--space-4) 0 0; font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.more a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; text-underline-offset: .2em; }

/* -------------------------------------------------------------------------
   무대 모드 (PC): 화면 고정, 장면을 같은 자리에 겹쳐 두고 하나만 보인다
   [레일 1단][줄무늬 면 · 사진][글] — 글은 12단 격자, 줄무늬는 화면 끝까지
   ------------------------------------------------------------------------- */
.stage-on { scroll-snap-type: none; }   /* 휠·키는 home.js 가 한 장면씩 넘김 (끌어당기는 스냅이 휠 한 칸을 되돌려 느리게 느껴졌음) */
.stage-on .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-on .stage__fx { display: block; z-index: 1; }
.stage-on .scene {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  grid-template-rows: minmax(0, 1fr);
  padding: var(--header-h) max(var(--m), calc((100% - 1920px) / 2 + var(--m))) 0;
  visibility: hidden;
}
.stage-on .scene.is-on, .stage-on .scene.is-leaving { visibility: visible; }
.stage-on .scene.is-entering .scene__fx { visibility: hidden; }
/* 장면 하나 = 스크롤 반 화면 (휠 두어 번에 다음 장면 — 전에는 한 화면이라 휠을 네다섯 번 돌려야 했음)
   맨 아래 정렬(end)로 장면 k 의 위치 = k × 반 화면 */
.stage-on .snaps { margin-top: -50vh; margin-top: -50svh; }
.stage-on .snap { height: 50vh; height: 50svh; scroll-snap-align: end; }

/* 첫 화면: 레일 1단 + 면 6단(2–7) | 글 5단(8–12). 오른쪽 아래 분홍 줄무늬는 화면 오른쪽 끝까지 */
.stage-on .scene--hero .scene__copy {
  grid-column: 8 / -1; align-self: stretch;
  display: flex; flex-direction: column; gap: clamp(1rem, 3.2vh, 2.5rem);
  padding: clamp(1rem, 4.5vh, 3.5rem) 0 calc(6 * var(--pitch) + clamp(.5rem, 2vh, 1.5rem));   /* 아래는 분홍 줄무늬 자리 (5–8 줄) */
  min-height: 0;
}
.stage-on .hero__title { font-size: min(var(--fs-display), 12.5vh); }

/* 이야기: 글 4단 | 사진 면 7단 (뒤집으면 사진 7단 | 글 4단). 글 아래는 장면 색 줄무늬 (캔버스) */
.stage-on .scene:not(.scene--hero) .scene__copy { grid-column: 2 / 6; grid-row: 1; align-self: start; padding: clamp(1.5rem, 6vh, 4rem) 0 0; }   /* 글은 단 선에서 바로 시작 */
.stage-on .scene:not(.scene--hero) .scene__field { grid-column: 6 / -1; grid-row: 1; }
.stage-on .scene--flip .scene__copy { grid-column: 9 / -1 !important; padding-left: 0 !important; }
.stage-on .scene--flip .scene__field { grid-column: 2 / 9 !important; }
.stage-on .scene__field img { display: none; }

/* 낮은 화면: 첫 화면 정보 묶음을 줄인다 (설명 줄 숨김) */
@media (min-width: 900px) and (max-height: 960px), (min-width: 900px) and (max-width: 1599.98px) {
  .stage-on .hfacts i { display: none; }
  .stage-on .hfacts li { padding: var(--space-2) 0; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .stage-on .scene--hero .scene__copy { gap: clamp(.75rem, 2.4vh, 1.5rem); padding-top: clamp(.75rem, 3vh, 2rem); }
  .stage-on .hero__title { font-size: min(var(--fs-display), 11vh); }
  .stage-on .hero__call { margin-top: var(--space-2); }
  .stage-on .hero__actions { margin-top: var(--space-4); }
  .stage-on .hd__v { font-size: min(clamp(1.75rem, 1.462rem + 1.282vw, 3rem), 5.6vh); }
  .stage-on .hfacts b { font-size: var(--fs-sm); }
  .stage-on .hd__v--s { font-size: var(--fs-xl); }
}
@media (min-width: 900px) and (max-height: 720px) {
  .stage-on .hero__tag li:not(:first-child) { display: inline; }
  .stage-on .hero__tag li:not(:first-child) + li::before { content: " · "; }
  .stage-on .hd__n { display: none; }
  .stage-on .hero__actions { margin-top: var(--space-3); }
  .stage-on .kd div, .stage-on .fields li, .stage-on .faq li { padding: var(--space-2) 0; }
}
/* 900–1279px: 첫 화면 글을 6단(7–12)으로 넓힌다 */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .stage-on .scene--hero .scene__copy { grid-column: 7 / -1; }
  .stage-on .scene:not(.scene--hero) .scene__copy { grid-column: 2 / 7; }
  .stage-on .scene:not(.scene--hero) .scene__field { grid-column: 7 / -1; }
  .stage-on .scene--flip .scene__copy { grid-column: 8 / -1 !important; }
  .stage-on .scene--flip .scene__field { grid-column: 2 / 8 !important; }
}

/* 전환 중: 글도 같은 줄 자리로 넘어간다 (--f 초점선, --c0 위쪽, --c1 아래쪽) */
.stage-on .scene.is-masked .scene__copy {
  -webkit-mask-image: linear-gradient(to bottom, var(--c0, #000) calc(var(--f, 9999px) - 60px), var(--c1, #000) calc(var(--f, 9999px) + 60px));
          mask-image: linear-gradient(to bottom, var(--c0, #000) calc(var(--f, 9999px) - 60px), var(--c1, #000) calc(var(--f, 9999px) + 60px));
}
.stage-on .scene.is-leaving .scene__copy { pointer-events: none; }

/* -------------------------------------------------------------------------
   흐름 모드 (휴대폰·태블릿·낮은 화면): 한 단. 글 먼저, 사진 뒤
   ------------------------------------------------------------------------- */
html:not(.stage-on) .site-main { padding-top: var(--header-h); }
html:not(.stage-on) .scene { padding: var(--space-7) var(--m) 0; }
html:not(.stage-on) .scene--hero { padding-top: 0; }
html:not(.stage-on) .scene:last-child { padding-bottom: var(--space-7); }
html:not(.stage-on) .scene__copy { max-width: 40rem; }
/* 첫 화면 위쪽: 화면 폭 전체 줄무늬 면, 가운데 마크 (11/23 기획안). 정보는 그 아래 한 단 */
html:not(.stage-on) .hero__plane {
  display: grid; place-items: center; position: relative; z-index: 2;
  height: clamp(13rem, 34svh, 22rem); margin: 0 calc(-1 * var(--m)) var(--space-5);
}
html:not(.stage-on) .hero__mark { width: auto; height: 46%; }
html:not(.stage-on) .scene--hero .scene__copy { display: flex; flex-direction: column; gap: var(--space-6); }
html:not(.stage-on) .hero__title { font-size: clamp(3.5rem, 17vw, 5.5rem); }
html:not(.stage-on) .hero__tag li:not(:first-child) { display: inline; }
html:not(.stage-on) .hero__tag li:not(:first-child) + li::before { content: " · "; }
/* 사진: 글 아래, 화면 폭 전체. 위아래에 장면 색 줄무늬 띠 (캔버스) */
html:not(.stage-on) .scene__field { margin: var(--space-5) calc(-1 * var(--m)) 0; aspect-ratio: 4 / 3; max-height: 30rem; }
html:not(.stage-on) .scene__field img { position: absolute; inset: 0; }
@media (min-width: 600px) { html:not(.stage-on) .scene__field { aspect-ratio: 16 / 10; } }
@media (max-width: 599.98px) {
  .hero__dates { grid-template-columns: 1fr; gap: var(--space-4); }
  .hfacts { grid-template-columns: 1fr; }
  .kd div { grid-template-columns: minmax(6.5rem, 34%) 1fr; }
}

/* -------------------------------------------------------------------------
   인트로: 로고 → 전환 한 번 → 첫 화면 (3초 이내, 처음 방문 때만)
   ------------------------------------------------------------------------- */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer; }
.intro-on body { overflow: hidden; }
.intro__art { position: absolute; inset: 0; background: #000; }
.intro.is-open .intro__art { background: transparent; }
.intro__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__mark { position: absolute; left: 50%; top: 50%; height: min(30vmin, 13rem); width: auto; transform: translate(-50%, -50%); transform-origin: 0 0; overflow: visible; }
.intro__mark .lt { opacity: 0; transform-box: fill-box; transform-origin: 50% 60%; }
.intro__mark .lt.is-in { animation: lt-in .28s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lt-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.intro__skip {
  position: absolute; right: var(--m); bottom: var(--space-5); z-index: 2;
  min-height: 2.75rem; padding: 0 var(--space-4);
  border: var(--border-thin) solid #fff; border-radius: var(--radius-pill);
  background: #000; color: #fff; font: inherit; font-size: var(--fs-xs); cursor: pointer;
}
/* 인트로 동안 머리줄은 숨겨 두었다가 로고가 자리 잡으면 나온다 */
.site-header .site-nav, .site-header .site-header__apply, .site-header .menu-button, .site-header .site-logo { transition: opacity .4s ease; }
.intro-on .site-header .site-nav,
.intro-on .site-header .site-header__apply,
.intro-on .site-header .menu-button,
.intro-on .site-header .site-logo { opacity: 0; }
.intro-on.intro-land .site-header .site-nav,
.intro-on.intro-land .site-header .site-header__apply,
.intro-on.intro-land .site-header .menu-button { opacity: 1; transition-delay: .2s; }

/* 데모 표시 */
.demo-pill { padding: var(--space-4) var(--m) 0; display: flex; gap: var(--space-1); align-items: center; font: 600 12px/1 var(--font-body); letter-spacing: .04em; }
.demo-pill span, .demo-pill button { padding: 7px 10px; border-radius: 999px; background: #fff; color: #000; border: 0; font: inherit; }
.demo-pill button { background: var(--gray-800); color: #fff; cursor: pointer; }

@media (max-width: 899.98px) { .site-logo__icon { height: 1.5rem; } }


/* 접수 시작 전: Apply 자리에 시작일 (누를 수 없음) */
.btn.is-soon { margin: 0; background: transparent; color: var(--c-green); border: 2px solid var(--c-green); cursor: default; }
.btn.is-soon:hover { background: transparent; color: var(--c-green); }

/* 화면 높이 960 이하 PC: 오른쪽 아래 분홍 줄무늬 자리를 남기도록 첫 화면 글 묶음을 조금 조인다
   (표어 국·중·일 줄을 한 줄로 — 휴대폰과 같은 모양, 묶음 사이 간격 축소). 글 내용은 그대로 */
@media (min-width: 900px) and (max-height: 960px) {
  .stage-on .hero__tag li:not(:first-child) { display: inline; }
  .stage-on .hero__tag li:not(:first-child) + li::before { content: " · "; }
  .stage-on .scene--hero .scene__copy { gap: clamp(.75rem, 2.2vh, 1.75rem); }
}

/* =========================================================================
   첫 화면 글 위계 — 1차 수정안 그림 1의 시안 H-1 기준 (11/29 사용자 요청)
   글이 칸 위아래를 꽉 채우지 않게: 묶음은 세로 가운데, 묶음 사이를 넓게 띄우고 보조 정보는 한 단계씩 낮춘다.
   순서는 기획안 고정 순서(단계 → 제목·표어 → 접수 기간 → Apply / 공모요강 → 핵심 4가지). 글 크기는 타이포 시스템 역할만 쓴다
   ========================================================================= */
@media (min-width: 900px) {
  .stage-on .scene--hero .scene__copy { justify-content: center; gap: 0; padding-top: var(--space-6); }
  .stage-on .scene--hero .hero__id { display: contents; }
  .stage-on .hero__phase { order: 1; margin: 0 0 var(--space-5); }
  .stage-on .scene--hero .hero__title { order: 2; font-size: min(var(--fs-display), 11vh); }
  .stage-on .scene--hero .hero__call { order: 3; margin-top: var(--space-4); font-size: var(--t-h6); }
  .stage-on .hero__tag { order: 4; margin-top: var(--space-2); }
  /* 접수 기간 · 발표: 작은 이름표 + 한 줄 값 (H-1 의 APPLICATION · AWARD CEREMONY) */
  .stage-on .hero__dates { order: 5; margin-top: var(--space-7); grid-template-columns: minmax(0, auto) minmax(0, auto); justify-content: start; column-gap: var(--space-7); row-gap: 0; }
  .stage-on .scene--hero .hero__dates dt, .stage-on .scene--hero .hf__k { font-size: var(--t-body-3); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: .04em; text-transform: uppercase; color: var(--c-green); }
  .stage-on .scene--hero .hd__v, .stage-on .scene--hero .hd__v--s { margin-top: var(--space-1) !important; font-size: var(--t-h5); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: 0; }
  .stage-on .hd__v br { display: none; }
  .stage-on .scene--hero .hd__n { display: block; margin-top: var(--space-1) !important; font-size: var(--t-body-3); }
  .stage-on .hero__actions { order: 6; margin-top: var(--space-6); }
  /* 핵심 4가지: 가는 선 하나 아래 두 칸 두 줄 — 이름표 · 값 · 설명 줄 (1차 수정안 B 문구 그대로) */
  .stage-on .hfacts { order: 7; margin-top: var(--space-7); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-3); border-top: var(--border-thin) solid var(--gray-700); }
  .stage-on .scene--hero .hfacts li { padding: var(--space-3) 0 0; border-bottom: 0; }
  .stage-on .scene--hero .hfacts b { font-size: var(--t-body-2); font-weight: var(--fw-regular); line-height: var(--lh-snug); }
  .stage-on .scene--hero .hfacts i { display: block; margin-top: 2px; font-size: var(--t-body-3); line-height: var(--lh-snug); }
}
/* 낮은 PC 화면: 묶음 사이만 줄인다 (글 크기는 그대로) */
@media (min-width: 900px) and (max-height: 820px) {
  .stage-on .scene--hero .scene__copy { padding-top: var(--space-4); }
  .stage-on .hero__phase { margin-bottom: var(--space-3); }
  .stage-on .hero__dates, .stage-on .hfacts { margin-top: var(--space-5); }
  .stage-on .hero__actions { margin-top: var(--space-4); }
}
@media (min-width: 900px) and (max-height: 700px) {
  .stage-on .scene--hero .hero__title { font-size: min(var(--fs-display), 10vh); }
  .stage-on .hero__dates, .stage-on .hfacts { margin-top: var(--space-4); }
  .stage-on .scene--hero .hd__n { display: none; }
}

/* 1차 수정안 B: 표어는 영·국·중·일 네 줄 병기, 핵심 4가지 설명 줄·마감 안내도 모든 화면에서 보인다
   (앞의 낮은 화면·휴대폰 규칙이 한 줄로 잇거나 숨기던 것을 되돌림) */
.home .hero__tag li:not(:first-child) { display: block !important; }
.home .hero__tag li:not(:first-child) + li::before { content: none !important; }
.home .scene--hero .hfacts i, .home .scene--hero .hd__n { display: block !important; }
/* 아주 낮은 PC 화면: 글 크기 대신 간격과 큰 제목만 줄인다 */
@media (min-width: 900px) and (max-height: 760px) {
  .stage-on .scene--hero .scene__copy { padding-top: var(--space-2); padding-bottom: calc(3 * var(--pitch) + var(--space-2)); }
  .stage-on .scene--hero .hero__title { font-size: min(var(--fs-display), 9vh); }
  .stage-on .hero__phase { margin-bottom: var(--space-2); }
  .stage-on .scene--hero .hero__call { margin-top: var(--space-2); }
  .stage-on .hero__dates, .stage-on .hfacts { margin-top: var(--space-4); }
  .stage-on .hero__actions { margin-top: var(--space-3); }
  .stage-on .hero__actions .btn { min-height: 2.5rem; }
}
/* 첫 화면 글 6단(7–12): 네 줄 표어·설명 줄까지 다 보이도록 글 폭을 한 단 넓힌다 (줄바꿈이 줄어 높이가 낮아진다).
   넘칠 때는 위가 아니라 아래로 (safe center) */
@media (min-width: 900px) {
  .stage-on .scene--hero .scene__copy { grid-column: 7 / -1; justify-content: safe center; }
}
@media (min-width: 900px) and (max-height: 900px) {
  .stage-on .scene--hero .hero__title { font-size: min(var(--fs-display), 10vh); }
  .stage-on .hero__phase { margin-bottom: var(--space-3); }
  .stage-on .hero__dates, .stage-on .hfacts { margin-top: var(--space-5); }
  .stage-on .hero__actions { margin-top: var(--space-4); }
}
@media (min-width: 900px) and (max-height: 700px) {
  .stage-on .scene--hero .hero__title { font-size: min(var(--fs-display), 8.5vh); }
  .stage-on .hero__dates, .stage-on .hfacts { margin-top: var(--space-3); }
  .stage-on .hero__actions { margin-top: var(--space-3); }
  .stage-on .scene--hero .hfacts { row-gap: var(--space-2); }
  .stage-on .scene--hero .hfacts li { padding-top: var(--space-2); }
}
@media (min-width: 900px) and (max-height: 760px) {
  /* 낮은 화면: 핵심 4가지를 네 칸 한 줄로 (한 줄이 줄어 아래 분홍 줄무늬 자리를 남긴다) */
  .stage-on .scene--hero .hfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-4); }
}
/* type.css 의 낮은 화면 규칙(글 묶음 사이 gap .75rem)보다 앞서도록 — 간격은 위 margin 으로만 */
html.stage-on .scene--hero .scene__copy { gap: 0; }
/* 아주 낮은 PC 화면(높이 700 이하): 장면 글이 화면 안에 들도록 위 여백·목록 간격만 줄인다 (글 크기·줄간격은 그대로) */
@media (min-width: 900px) and (max-height: 700px) {
  .stage-on .scene:not(.scene--hero) .scene__copy { padding-top: var(--space-4); }
  .stage-on .kd, .stage-on .fields, .stage-on .faq { margin-top: var(--space-3); }
  .stage-on .kd div, .stage-on .fields li, .stage-on .faq li { padding: var(--space-1) 0; }
}
/* 휴대폰·태블릿 첫 화면: 접수 기간을 Apply 앞으로 (기획안 확인 기준 '휴대폰 첫 화면 안에 접수 기간과 Apply', 고정 순서
   단계 → 제목·표어 → 접수 기간 → Apply / 공모요강 → 핵심 4가지 — PC 첫 화면과 같은 순서). 줄무늬 면·마크가 먼저인 것은 그대로 (11/30) */
@media (max-width: 899.98px) {
  html:not(.stage-on) .scene--hero .scene__copy { gap: 0; }
  html:not(.stage-on) .scene--hero .hero__id { display: contents; }
  html:not(.stage-on) .hero__phase { order: 1; margin: 0 0 var(--space-4); }
  html:not(.stage-on) .hero__title { order: 2; }
  html:not(.stage-on) .hero__call { order: 3; }
  html:not(.stage-on) .hero__tag { order: 4; }
  html:not(.stage-on) .hero__dates { order: 5; margin-top: var(--space-5); }
  html:not(.stage-on) .hero__actions { order: 6; margin-top: var(--space-4); }
  html:not(.stage-on) .hfacts { order: 7; margin-top: var(--space-6); }
}
@media (max-width: 899.98px) {
  /* 첫 화면 안에 접수 기간과 Apply가 같이 들도록: 줄무늬 면을 조금 낮추고, 접수 기간은 한 줄(타이포 Headline 4) */
  html:not(.stage-on) .hero__plane { height: clamp(9rem, 24svh, 16rem); margin-bottom: var(--space-4); }
  html:not(.stage-on) .scene--hero .hd__v { font-size: var(--t-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: 0; }
  html:not(.stage-on) .scene--hero .hd__v br { display: none; }
  html:not(.stage-on) .scene--hero .hero__dates { gap: var(--space-3); }
}
@media (max-width: 899.98px) {
  /* 작은 휴대폰(높이 650–700)에서도 Apply가 첫 화면에: 발표(Results)는 단추 다음 줄로 — 접수 기간 → Apply → 발표 → 핵심 4가지 */
  html:not(.stage-on) .scene--hero .hero__dates { display: contents; }
  html:not(.stage-on) .scene--hero .hd--main { order: 5; margin-top: var(--space-5); }
  html:not(.stage-on) .scene--hero .hd:not(.hd--main) { order: 7; margin-top: var(--space-5); }
  html:not(.stage-on) .hfacts { order: 8; }
}
@media (max-width: 899.98px) {
  html:not(.stage-on) .scene--hero .hd--main { margin-top: var(--space-4); }
  html:not(.stage-on) .hero__actions { margin-top: var(--space-3); }
}

/* 아주 낮은 휴대폰(높이 660px 이하, 360×640 등): 영문 접수 기간이 월 이름으로 두 줄이 돼도
   Apply Here가 첫 화면 안에 들도록 위 줄무늬 면만 조금 낮춤 (기획안 확인 기준 · 3차 지시서 8장 7번) */
@media (max-width: 899.98px) and (max-height: 660px) {
  html:not(.stage-on) .hero__plane { height: 7.5rem; }
}
