/* 회장 10-02 「밑에내용들도 너무 크니깐 가독성이 안좋다」 — 첫 화면 아래 큰 글씨를 6할쯤으로. 되돌림: style_옛_큰글씨.css */
/* Payload Company 홈페이지 v3 — 영상이 화면을 채우고, 화면마다 짜임이 다르다 (2026-10-02) */
:root {
  --cream: #f6efe0;
  --ink: #17130f;
  --yellow: #f6c90e;      /* 레디악숀 노랑 */
  --blue: #1d3f8f;        /* 왜긴 왜 종이 파랑 */
  --paper: #efe6d2;
  --display: "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Apple SD Gothic Neo", "Noto Sans KR", monospace;
  --pad: clamp(20px, 4.4vw, 72px);
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--display); overflow-x: hidden; }
main { overflow: clip; }
h1, h2, p { margin: 0; }
a { color: inherit; }
video { display: block; }

h1, h2, .mail, .h2copy { font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; }
.lead { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.ko { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; font-weight: 500; opacity: .86; word-break: keep-all; }
.dim { opacity: .72; }

/* 위쪽 이름 · 아래쪽 얇은 진행 줄 */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between;
  padding: 18px var(--pad); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--cream); transition: color .25s; pointer-events: none; }
.top a { text-decoration: none; pointer-events: auto; padding: 6px 0; }
/* 맨 위 레디악숀 채널 링크 (회장 10-02 「맨위에 연락하다 옆에 하나 놔둬」) */
.top-r { display: flex; align-items: center; gap: 16px; }
.top .yt-link { padding: 5px 13px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 15px; white-space: nowrap; }
.bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 4px; }
.bar i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); transition: background .25s; }
body.on-dark .top { color: var(--ink); }
body.on-dark .bar i { background: var(--ink); }

/* 화면을 채우는 영상 */
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50%) 50%; background: #2a2118; }
.shade { position: absolute; inset: 0; pointer-events: none; }

/* ① 첫 화면 — 가운데 큰 이름 */
.hero { position: relative; height: var(--vh); min-height: 520px; overflow: hidden; display: grid; place-items: center; text-align: center; }
.hero .fill { --pos: 50%; }
.hero .shade { background: radial-gradient(120% 90% at 50% 45%, rgba(23,14,6,.22), rgba(23,14,6,.52)); }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.hero-txt { position: relative; padding: 0 var(--pad); width: 100%; }
.hero h1 { font-size: 11.2vw; white-space: nowrap; text-shadow: 0 2px 40px rgba(20,10,0,.35); }
.hero h1 span { white-space: nowrap; }
.hero .lead { margin-top: 3.2vw; font-size: clamp(20px, 2.3vw, 36px); font-weight: 600; text-shadow: 0 1px 18px rgba(20,10,0,.6); }
.hero .ko { margin-top: 10px; font-size: clamp(16px, 1.4vw, 22px); text-shadow: 0 1px 18px rgba(20,10,0,.6); opacity: .92; }
.hint { position: absolute; left: 0; right: 0; bottom: 30px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: currentColor; animation: drip 1.8s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes drip { 0%,100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
html.fx .hero h1 { color: transparent; text-shadow: none; }
html.fx #fx { display: block; }

/* ② 드라마 — 화면 전체 컷 · 왼쪽 아래 큰 글 */
.drama { position: relative; height: calc(var(--vh) * 1.9); }
.stage { position: sticky; top: 0; height: var(--vh); min-height: 520px; overflow: hidden; }
.cut { opacity: 0; transform: scale(calc(1.06 - var(--p, 0) * .06)); }
.cut.on { opacity: 1; }
.drama .shade { background: linear-gradient(to top, rgba(18,12,6,.78) 0%, rgba(18,12,6,.38) 42%, rgba(18,12,6,0) 70%), linear-gradient(to bottom, rgba(18,12,6,.35), rgba(18,12,6,0) 18%); }
.drama-txt { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(34px, 6vh, 70px); }
.drama h2 { font-size: clamp(40px, 6.2vw, 112px); text-shadow: 0 2px 30px rgba(10,6,0,.35); }
.drama h2 span { display: block; opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * .5em)); }
.drama .lead { margin-top: 2.2vw; max-width: 46em; opacity: var(--o, 1); }
.drama .ko { margin-top: 8px; max-width: 46em; opacity: calc(var(--o, 1) * .9); }
.chip { display: inline-block; margin-right: .5em; padding: .18em .6em .2em; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: .78em; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; vertical-align: .08em; }
.ticks { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.ticks i { width: 34px; height: 3px; background: rgba(246,239,224,.4); }
.ticks i.on { background: var(--yellow); }

/* ③ 쇼츠 — 파란 종이 위에 세로 영상 넷 */
.shorts { position: relative; background: var(--blue); padding: clamp(84px, 9vw, 150px) var(--pad) clamp(70px, 7vw, 120px); text-align: center; overflow: hidden; }
.shorts h2 { font-size: clamp(36px, 5.4vw, 96px); }
.shorts h2 em { font-style: normal; color: var(--yellow); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 2.4vw; margin: 4.2vw auto 0; }
.phones video { width: 17vw; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 1.5vw; background: #10255a;
  box-shadow: 0 30px 60px -20px rgba(4,12,40,.7); transform: translateY(calc(var(--y, 0) * 1vw + var(--par, 0) * var(--k, 0) * 1px)) rotate(var(--r, 0deg)); }
.phones video:nth-child(1) { --r: -5deg; --y: 5; --k: -50; }
.phones video:nth-child(2) { --r: -1.5deg; --y: 0; --k: 30; width: 20vw; }
.phones video:nth-child(3) { --r: 2deg; --y: 3.4; --k: -20; width: 20vw; }
.phones video:nth-child(4) { --r: 6deg; --y: 8; --k: 60; }
.shorts-txt { margin-top: 9vw; }
.shorts .lead { font-size: clamp(19px, 2vw, 30px); font-weight: 600; }
.shorts .lead a { color: var(--yellow); text-underline-offset: .18em; }
.shorts .lead.dim { margin-top: 8px; font-size: clamp(17px, 1.4vw, 22px); }
.shorts .ko { margin-top: 14px; }
/* 채널 둘 홍보 단추 (회장 10-02 「왜긴왜랑 브릭채널도 홍보해야지」) */
.chans { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.chan { flex: 1 1 260px; max-width: 460px; display: grid; gap: 4px; padding: 18px 22px; border-radius: 18px; background: var(--yellow); color: var(--ink); }
.chans b { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.02em; }
.chans span { font-size: 16px; font-weight: 600; opacity: .8; }
.chan p { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 8px; font-size: 16px; font-weight: 800; }
.shorts .chan a { color: var(--ink); text-underline-offset: .2em; }
.chan em { font-style: normal; font-weight: 600; opacity: .6; }
.chan em span { font-size: inherit; opacity: 1; }

/* ④ 만드는 방식 — 대본 종이가 장면으로 열린다 */
.how { position: relative; height: calc(var(--vh) * 3.2); background: var(--paper); color: var(--ink); }
.page, .scene { position: absolute; inset: 0; }
.page { background: var(--paper); }
.how h2, .h2copy { position: absolute; top: clamp(70px, 9vh, 110px); left: var(--pad); right: var(--pad); font-size: clamp(32px, 4.4vw, 78px); }
.script { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: min(980px, calc(100% - var(--pad) * 2)); font-family: var(--mono); }
.script .slug { font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; letter-spacing: .02em; opacity: .7; min-height: 1.5em; }
.script .action { margin-top: 18px; font-size: clamp(22px, 3.1vw, 46px); line-height: 1.4; font-weight: 700; word-break: keep-all; min-height: 2.8em; }
.script .gloss { margin-top: 20px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; opacity: calc(var(--g, 1) * .72); }
.script .gloss span { white-space: nowrap; }
.script .rest { visibility: hidden; }
.script .caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--yellow); animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scene { color: var(--cream); clip-path: inset(var(--ct, 0%) 0 var(--cb, 0%) 0); }
.scene .shade { background: linear-gradient(to bottom, rgba(18,12,6,.66), rgba(18,12,6,0) 46%), linear-gradient(to top, rgba(18,12,6,.72), rgba(18,12,6,0) 38%); }
.scene-txt { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(34px, 6vh, 64px); text-align: center; }
.caption { font-family: var(--mono); font-size: clamp(18px, 2.2vw, 32px); font-weight: 700; line-height: 1.4; word-break: keep-all; text-shadow: 0 1px 14px rgba(10,6,0,.8); }
.steps { margin-top: 14px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; font-weight: 600; opacity: .9; word-break: keep-all; text-shadow: 0 1px 12px rgba(10,6,0,.8); }

/* ⑤ 제품 광고 — 노란 화면에 큰 문장 하나 */
.ads { background: var(--yellow); color: var(--ink); min-height: var(--vh); padding: clamp(96px, 12vh, 150px) var(--pad) clamp(60px, 8vh, 100px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.ads h2 { font-size: clamp(40px, 7.2vw, 132px); }
.ads h2 span { display: block; white-space: nowrap; transform: translateX(calc(var(--s, 0) * var(--k, 0) * 1vw)); }
.ads h2 span:nth-child(1) { --k: 7; }
.ads h2 span:nth-child(2) { --k: -5; }
.ads h2 span:nth-child(3) { --k: 9; }
.ads .ko { margin-top: 5vh; font-size: clamp(20px, 2.4vw, 38px); font-weight: 700; opacity: 1; text-align: right; }
.ads .ko .en { display: block; margin-top: 6px; font-size: clamp(16px, 1.2vw, 19px); font-weight: 500; opacity: .75; }

/* ⑥ 연락 — 아주 큰 메일 주소 */
.contact { background: var(--ink); min-height: var(--vh); padding: clamp(96px, 14vh, 170px) var(--pad) 40px; display: flex; flex-direction: column; text-align: right; }
.mail { display: block; font-size: 5.8vw; text-decoration: none; color: var(--cream); transition: color .2s; }
.mail span { display: block; white-space: nowrap; }
.mail span + span { color: var(--yellow); }
.mail:hover { color: var(--yellow); }
.contact .lead { margin-top: 6vh; font-size: clamp(20px, 2vw, 30px); font-weight: 700; }
.contact .lead a { text-underline-offset: .18em; }
.contact .lead .dim { display: block; margin-top: 8px; font-size: clamp(16px, 1.2vw, 19px); font-weight: 500; }
.foot { margin-top: auto; padding-top: 8vh; font-size: 16px; line-height: 1.5; opacity: .7; text-align: left; }

a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

/* 폰 */
@media (max-width: 700px) {
  .top { padding: 14px var(--pad); }
  .hero h1 { font-size: 20.5vw; white-space: normal; }
  .hero .fill { --pos: 46%; }
  .ticks { top: 58px; left: var(--pad); transform: none; }
  .hero h1 span { display: block; }
  .hero .lead { margin-top: 26px; }
  .drama h2 { font-size: 10.5vw; }
  .drama .lead { margin-top: 18px; }
  .shorts h2 { font-size: 10.5vw; }
  .shorts h2 em { display: block; }
  .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
  .phones video, .phones video:nth-child(n) { width: 100%; border-radius: 16px; --y: 0; }
  .phones video:nth-child(1) { --r: -2.5deg; --k: -14; }
  .phones video:nth-child(2) { --r: 2deg; --k: 10; margin-top: 46px; }
  .phones video:nth-child(3) { --r: 1.5deg; --k: -10; margin-top: -30px; }
  .phones video:nth-child(4) { --r: -2deg; --k: 14; margin-top: 16px; }
  .shorts-txt { margin-top: 54px; }
  .how h2, .h2copy { font-size: 9vw; }
  .script { top: 60%; }
  .ads h2 { font-size: 11vw; }
  .ads h2 span { display: inline; white-space: normal; transform: none; }
  .ads .ko { text-align: left; }
  .contact { text-align: left; }
  .mail { font-size: 7.4vw; }
  .mail span:first-child { font-size: 1.5em; }
}

/* 자바스크립트 없음 · 움직임 줄이기 — 멈춘 판 */
html.static .drama, html:not(.js) .drama { height: auto; }
html.static .how, html:not(.js) .how { height: auto; }
html.static .how .stage, html:not(.js) .how .stage { position: relative; height: auto; min-height: 0; overflow: visible; }
html.static .how .page, html:not(.js) .how .page { position: relative; inset: auto; padding: 110px var(--pad) 60px; }
html.static .how h2, html:not(.js) .how h2 { position: static; }
html.static .script, html:not(.js) .script { position: static; transform: none; margin: 44px 0 0; }
html.static .scene, html:not(.js) .scene { position: relative; inset: auto; height: var(--vh); clip-path: none; }
html.static .h2copy, html:not(.js) .h2copy { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hint::after, .script .caret { animation: none; }
  * { transition: none !important; }
}
