/* 노트 포트폴리오. 주 레퍼런스 NOTHIN'(noth.in)에서 잰 값(PC 1440x900, 휴대폰 390x844) */

@font-face { font-family: 'NeueMontreal'; src: url('../fonts/PPNeueMontreal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'NeueMontreal'; src: url('../fonts/PPNeueMontreal-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'NeueMontreal'; src: url('../fonts/PPNeueMontreal-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PlexMono'; src: url('../fonts/IBMPlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
/* 한글 브랜드 글꼴 후보 */
@font-face { font-family: 'AstaSans'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/AstaSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'AstaSans'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/AstaSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Danjobold'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-1@1.1/Danjo-bold-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'KMU80SungkokSemiSerif'; src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2607101541@kmu80sungkoksemiserif/kmu80sungkoksemiserif/KMU80SungkokSemiSerif.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --pad: 18px;
  --white: #fff; --black: #000; --grey: #8e8e8e;
  --en: 'NeueMontreal', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'PlexMono', ui-monospace, monospace;
  --ko-brand: 'AstaSans', 'Wanted Sans Variable', sans-serif; --ko-brand-w: 600;
  --ko-body: 'Wanted Sans Variable', 'Wanted Sans', sans-serif;
  --vh: 1vh;
}
body[data-font="2"] { --ko-brand: 'Danjobold', 'SUIT', sans-serif; --ko-brand-w: 400; --ko-body: 'SUIT', sans-serif; }
body[data-font="3"] { --ko-brand: 'KMU80SungkokSemiSerif', 'Wanted Sans Variable', serif; --ko-brand-w: 400; --ko-body: 'Wanted Sans Variable', sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--white); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--white); color: var(--black); font-family: var(--ko-body); font-weight: 500; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, svg { display: block; }
[data-en] { font-family: var(--en); }

/* 언어 전환(시안) */
body[data-lang="en"] .t-ko, body[data-lang="ko"] .t-en { display: none; }
/* 로고 전환(시안) */
body:not([data-logo="a"]) .mark--a, body:not([data-logo="a"]) .word--a,
body:not([data-logo="b"]) .mark--b, body:not([data-logo="b"]) .word--b,
body:not([data-logo="c"]) .mark--c, body:not([data-logo="c"]) .word--c { display: none; }

/* 워드마크: 둥근 모서리는 같은 색 외곽선으로 */
.word use, .mark use, .ld-q use { fill: currentColor; stroke: currentColor; stroke-width: 7; stroke-linejoin: round; paint-order: stroke; }

/* ---------- 로딩 ---------- */
.loader { position: fixed; inset: 0; z-index: 50; background: var(--black); color: var(--white); display: grid; place-items: center; }
.ld-mark { display: flex; align-items: center; justify-content: center; height: 110px; gap: 0; }
.ld-q { height: 110px; width: auto; flex: none; }
.ld-q--l { margin-right: 8px; }
.ld-q--r { margin-left: 8px; align-self: flex-start; }
.ld-q--l { align-self: flex-start; }
.ld-obj { width: 300px; height: 240px; position: relative; flex: none; }
.ld-obj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.ld-obj img.on { opacity: 1; }
body:not(.is-loading) .loader { pointer-events: none; }

/* ---------- 위쪽 줄 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px var(--pad); color: var(--white); mix-blend-mode: difference; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-logo { height: 22px; opacity: 0; transition: opacity .4s; }
.nav-logo svg { height: 22px; width: auto; }
body.past-hero .nav-logo { opacity: 1; }
.menu-btn { display: flex; align-items: center; gap: 8px; font-size: 10.8px; font-weight: 700; letter-spacing: .324px; text-transform: uppercase; line-height: 1; padding: 6px 0; }
.menu-btn svg { width: 7px; height: 7px; fill: currentColor; }

/* ---------- 첫 화면 ---------- */
.hero { position: relative; height: calc(var(--vh) * 100); min-height: 560px; background: var(--white); }
.hero-top { position: absolute; left: var(--pad); top: 14px; }
.hero-tag { font-size: 22.5px; line-height: 1.07; font-weight: 500; letter-spacing: 0; }
.hero-tag .t-ko { font-family: var(--ko-brand); font-weight: var(--ko-brand-w); line-height: 1.3; letter-spacing: -0.01em; }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; background: var(--black); color: var(--white); border-radius: 90px; padding: 14.4px 32.4px 14.4px 18px; font-size: 10.8px; line-height: 15.12px; letter-spacing: 1.12px; text-transform: uppercase; font-weight: 500; transition: background .3s; }
.btn .t-ko { font-size: 13px; letter-spacing: 0; text-transform: none; font-family: var(--ko-body); font-weight: 600; }
.btn-arrow { position: relative; width: 12px; height: 1.5px; background: currentColor; transition: transform .3s; }
.btn-arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(0, -50%) rotate(45deg); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-word { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-52%); color: var(--black); font-size: 0; }
.hero-word svg { width: 100%; height: auto; overflow: visible; }
.hero-word .lt { transform-box: fill-box; }

.hero-bottom { position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-h1 { font-size: 14.4px; font-weight: 500; line-height: 1.1; }
.hero-h1 .t-ko { font-family: var(--ko-body); font-weight: 600; font-size: 14.4px; }
.hero-links { display: flex; gap: 10px; font-size: 10.8px; font-weight: 700; letter-spacing: .324px; text-transform: uppercase; }
.hero-links a:hover { opacity: .5; }

/* ---------- 큰 문장 + 쇼릴 ---------- */
.intro { position: relative; padding: 232px var(--pad) 0; height: 1264px; background: var(--white); }
.big { font-size: 72px; line-height: 1; letter-spacing: -0.72px; font-weight: 500; }
.big .t-ko { font-family: var(--ko-brand); font-weight: var(--ko-brand-w); line-height: 1.22; letter-spacing: -0.02em; display: block; }
.big .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.big .ln > span { display: block; }
.reel-box { position: relative; margin-top: 30px; width: 100%; aspect-ratio: 1404 / 878; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 100% 0; will-change: transform; background: #111; }
.aside { position: absolute; left: var(--pad); top: 1108px; display: grid; grid-template-columns: 208px 302px; }
.aside-label { font-size: 16.2px; line-height: 1.2; }
.aside-text { font-size: 16.2px; line-height: 1.6; font-weight: 500; color: var(--black); }

.works-start { height: 100vh; background: var(--black); color: #fff; display: grid; place-items: center; }
.ws-note { font-size: 14px; opacity: .5; }

/* ---------- 시안 비교판 ---------- */
.review { position: fixed; right: 12px; bottom: 12px; z-index: 60; background: rgba(20,20,20,.92); color: #fff; padding: 10px 12px; border-radius: 8px; font: 500 12px/1.4 'Wanted Sans Variable', sans-serif; display: grid; gap: 6px; }
.review[hidden] { display: none; }
.rv-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-row b { width: 30px; }
.rv-row button { padding: 4px 8px; border: 1px solid #555; border-radius: 4px; font-size: 12px; }
.rv-row button.on { background: #fff; color: #000; }

/* ---------- 휴대폰 (390) ---------- */
@media (max-width: 767px) {
  :root { --pad: 16px; }
  .nav { padding: 20px 20px; }
  .hero-top { top: 16px; left: 16px; }
  .hero-tag { font-size: 20px; line-height: 1.15; }
  .btn { margin-top: 24px; font-size: 12px; padding: 12px 26px 12px 16px; }
  .hero-word { left: 16px; right: 16px; }
  .hero-bottom { left: 16px; right: 16px; bottom: 30px; }
  .hero-h1 { font-size: 14px; max-width: 120px; }
  .hero-links { font-size: 12px; }
  .intro { height: auto; padding: 162px 20px 80px; }
  .big { font-size: 40px; letter-spacing: -0.4px; }
  .reel-box { margin-top: 40px; aspect-ratio: 350 / 219; }
  .aside { position: static; display: block; margin-top: 60px; }
  .aside-label, .aside-text { font-size: 18px; }
  .aside-label { margin-bottom: 40px; }
  .review { left: 8px; right: 8px; bottom: 8px; }
}
.ld-obj .ld-n { position: absolute; left: 0; top: 65px; height: 110px; width: auto; opacity: 1; }
.ld-obj .ld-n use { fill: #fff; stroke: #fff; stroke-width: 7; stroke-linejoin: round; paint-order: stroke; }

/* ---------- 로딩 글(웹디자인 사이트임을 알림) ---------- */
.ld-txt { position: absolute; font-family: var(--en); font-size: 10.8px; font-weight: 500; letter-spacing: 1.12px; text-transform: uppercase; color: #fff; opacity: .9; }
.ld-bl { left: var(--pad); bottom: 18px; }
.ld-br { right: var(--pad); bottom: 18px; font-variant-numeric: tabular-nums; }

/* ---------- 글자 속 영상(레퍼런스 첫 화면 단어 영상 자리) ---------- */
.hero-word { isolation: isolate; }
.word-fill { position: absolute; inset: 0; -webkit-mask: var(--wmask) center / 100% 100% no-repeat; mask: var(--wmask) center / 100% 100% no-repeat; opacity: 0; transition: opacity .6s ease; pointer-events: none; z-index: 2; background: #000; }
.word-fill video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
body[data-fill="always"].ready .word-fill { opacity: 1; }
body[data-fill="hover"] .hero-word:hover .word-fill { opacity: 1; }

/* ---------- 마우스 올림(레퍼런스 값) ---------- */
.menu-btn svg { transition: transform .4s cubic-bezier(.6,0,.2,1); }
.menu-btn svg rect { transition: transform .4s cubic-bezier(.6,0,.2,1); transform-box: fill-box; }
.menu-btn:hover svg { transform: rotate(45deg) scale(1.15); }
.menu-btn:hover svg rect:nth-child(1) { transform: translate(-0.6px, -0.6px); }
.menu-btn:hover svg rect:nth-child(2) { transform: translate(0.6px, -0.6px); }
.menu-btn:hover svg rect:nth-child(3) { transform: translate(-0.6px, 0.6px); }
.menu-btn:hover svg rect:nth-child(4) { transform: translate(0.6px, 0.6px); }
.btn .btn-arrow { transition: width .4s cubic-bezier(.6,0,.2,1); }
.btn:hover .btn-arrow { width: 17px; transform: none; }
.nav-logo, .hero-links a, .work-visit { transition: opacity .3s; }
.nav-logo:hover, .hero-links a:hover { opacity: .5; }

/* ---------- 작업(레퍼런스 WORKS 첫 두 칸) ---------- */
.works { position: relative; background: var(--black); color: var(--white); height: 1500px; }
.works .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.works .ln > span { display: block; }
.works-head { position: absolute; left: 953px; top: 180px; font-size: 36px; line-height: 1.1; letter-spacing: -0.36px; font-weight: 500; }
.work { position: absolute; display: block; color: var(--white); }
.w1 { left: var(--pad); top: 227px; width: 695px; }
.w2 { left: 964px; top: 461px; width: 458px; }
.work-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.8px; line-height: 1.1; letter-spacing: .324px; text-transform: uppercase; color: var(--grey); }
.work-label [data-en] { font-family: var(--mono); }
.work:hover .work-visit { color: var(--white); }
.work-cap { margin-top: 16px; font-family: var(--ko-brand); font-weight: var(--ko-brand-w); font-size: 22.5px; line-height: 1.3; letter-spacing: -0.01em; }
.work-media { position: relative; margin-top: 14px; overflow: hidden; border-radius: 3.6px; background: #111; cursor: none; }
.w1 .work-media { aspect-ratio: 695 / 621; }
.w2 .work-media { aspect-ratio: 458 / 387; }
.work-media video { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.works .ws-note { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; font-size: 14px; opacity: .45; }
.cursor-work { position: fixed; left: 0; top: 0; z-index: 45; display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 1.12px; text-transform: uppercase; pointer-events: none; transform: translate(-50%, -50%) scale(0); opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.6,0,.2,1); }
.cursor-work svg { width: 14px; height: 10px; }
.cursor-work.on { opacity: 1; }
.br-m { display: none; }

@media (max-width: 767px) {
  .br-m { display: inline; }
  .works { height: auto; padding: 120px 20px 160px; }
  .works-head { position: static; font-size: 25px; line-height: 1.1; letter-spacing: -0.25px; margin-bottom: 80px; }
  .work { position: relative; left: auto; top: auto; width: 100%; margin-bottom: 120px; }
  .w2 { width: 216px; margin-left: auto; }
  .w1 .work-media { aspect-ratio: 1 / 1; }
  .work-label { font-size: 12px; }
  .work-cap { font-size: 20px; }
  .work-media { cursor: auto; }
  .works .ws-note { position: static; }
  .cursor-work { display: none; }
  .ld-bl, .ld-br { bottom: 30px; }
}
/* 한글판 하나: 큰 글은 영어, 읽는 글은 한글 */
.hero-tag .ko-line { font-family: var(--ko-brand); font-weight: var(--ko-brand-w); letter-spacing: -0.01em; display: inline-block; margin-top: 4px; }
.btn-text { font-family: var(--ko-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hero-h1 { font-family: var(--ko-body); font-weight: 600; }
/* PC 폭이 1440이 아닐 때도 레퍼런스 비율대로(1440 기준 px → vw) */
@media (min-width: 768px) {
  .works-head { left: 66.18vw; top: 12.5vw; }
  .w1 { left: 1.25vw; top: 15.76vw; width: 48.26vw; }
  .w2 { left: 66.94vw; top: 32.01vw; width: 31.81vw; }
  .works { height: 104vw; }
  html, body { overflow-x: clip; }
}
.aside-text { font-family: var(--ko-brand); font-weight: var(--ko-brand-w); font-size: 22.5px; line-height: 1.35; letter-spacing: -0.01em; }
.aside { grid-template-columns: 208px 420px; }
@media (max-width: 767px) { .aside-text { font-size: 20px; } }

/* 작업 칸은 PC 화면 비율(녹화 1920x1136) 그대로, 사이트가 잘리지 않게 */
.w1 .work-media, .w2 .work-media { aspect-ratio: 1920 / 1136; }
.work-media video { top: 0; height: 100%; }
@media (max-width: 767px) { .w1 .work-media { aspect-ratio: 1920 / 1136; } }

/* ---------- 오른쪽 아래 고정 연락 버튼(사용자 요청) ---------- */
.contact-fab { position: fixed; right: 24px; bottom: 24px; z-index: 44; width: 108px; height: 108px; border-radius: 50%; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; text-align: center; transform: scale(0); transition: background .35s, color .35s, transform .5s cubic-bezier(.6,0,.2,1); }
body.ready .contact-fab { transform: scale(1); }
.cf-text { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 1.12px; text-transform: uppercase; line-height: 1.25; }
.cf-arrow { position: absolute; top: 24px; right: 26px; width: 11px; height: 11px; transition: transform .35s cubic-bezier(.6,0,.2,1); }
.contact-fab:hover { background: #fff; color: #000; border-color: #000; }
.contact-fab:hover .cf-arrow { transform: translate(2px, -2px); }
.hero-bottom { right: calc(var(--pad) + 130px); }
.review { left: 12px; right: auto; }
.hero-tag .ko-line { margin-top: 6px; }
@media (max-width: 767px) {
  .contact-fab { width: 84px; height: 84px; right: 16px; bottom: 16px; }
  .cf-text { font-size: 11px; }
  .cf-arrow { top: 18px; right: 20px; }
  .hero-bottom { right: 110px; }
}

body[data-logo="b"] .word-fill { --wmask: url(../img/word-b.svg); }
body[data-logo="a"] .word-fill { --wmask: url(../img/word-a.svg); }
body[data-logo="c"] .word-fill { --wmask: url(../img/word-c.svg); }
.word-fill { background: transparent; }
.hero-h1 { font-family: var(--ko-brand); font-weight: var(--ko-brand-w); font-size: 16.2px; letter-spacing: -0.01em; line-height: 1.3; }
body.ready[data-fill="always"] .hero-word svg { opacity: 0; transition: opacity .6s; }
@media (max-width: 767px) { .hero-h1 { font-size: 14px; max-width: 200px; } }
/* 첫 화면 왼쪽 아래 두 줄 */
.hero-intro { display: grid; gap: 6px; }
.hero-en { font-family: var(--en); font-size: 22.5px; font-weight: 500; line-height: 1.07; }
.hero-bottom { right: var(--pad); }
/* 마우스 지나간 자리만 영상(레퍼런스 첫 화면 단어) */
.word-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
body[data-fill="trail"] .word-fill video { visibility: hidden; position: absolute; }
body[data-fill="trail"].ready .word-fill { opacity: 1; }
body[data-fill="always"] .word-trail { display: none; }
body.ready[data-fill="trail"] .hero-word svg { opacity: 1; }
@media (max-width: 767px) { .hero-en { font-size: 20px; } }
/* 연락 버튼 다시: 둘레를 도는 글자 + 가운데 화살표 */
.contact-fab { width: 116px; height: 116px; border: 0; background: #000; color: #fff; display: block; }
.contact-fab .cf-text { display: none; }
.cf-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: cf-spin 14s linear infinite; }
.cf-ring text { font-family: var(--en); font-size: 10.8px; font-weight: 500; letter-spacing: 0; fill: currentColor; }
.cf-arrow { position: absolute; left: 50%; top: 50%; right: auto; width: 22px; height: 22px; transform: translate(-50%, -50%); transition: transform .4s cubic-bezier(.6,0,.2,1); }
.contact-fab:hover { background: #fff; color: #000; box-shadow: 0 0 0 1px #000; }
.contact-fab:hover .cf-ring { animation-duration: 5s; }
.contact-fab:hover .cf-arrow { transform: translate(-50%, -50%) rotate(45deg); }
@keyframes cf-spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .contact-fab { width: 88px; height: 88px; } .cf-arrow { width: 18px; height: 18px; top: 50%; right: auto; } .cf-ring text { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .cf-ring { animation: none; } }
/* 쇼릴 테두리(사용자 제안): 크게 있을 때 3px → 1/3로 줄면 1px. 밝은 사이트가 흰 바탕에 묻히지 않게 */
.reel { border-radius: 10.8px; box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.work-media { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
@media (max-width: 767px) { .reel { border-radius: 3.6px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); } }
/* 쇼릴 구간을 화면 폭 비율로(1440 기준), 검은 구간과 간격 더 띄움(레퍼런스 77px → 140px) */
@media (min-width: 768px) {
  .intro { padding-top: 16.11vw; height: 95vw; }
  .aside { top: 76.94vw; }
}

/* 작업 영상 위 커서 표시: 밝은 장면에서도 보이게 반전 */
.cursor-work { mix-blend-mode: difference; font-size: 13px; }
/* 커서 표시: 바깥은 위치만(즉시), 안쪽만 커지며 나타남 */
.cursor-work { transform: none; transition: none; opacity: 1; display: block; width: 0; height: 0; }
.cw-in { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; transform: translate(-50%, -50%) scale(0); opacity: 0; transition: transform .35s cubic-bezier(.6,0,.2,1), opacity .25s; }
.cursor-work.on .cw-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* ---------- 작업 7곳(레퍼런스 WORKS 배치를 7개로 늘림, 1440 기준 px → vw) ---------- */
@media (min-width: 768px) {
  .works { height: 261vw; }
  .work { left: var(--x) !important; top: var(--t) !important; width: var(--w) !important; }
  .works-end { position: absolute; left: 1.25vw; right: 1.25vw; top: 252.8vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; font-size: 16.2px; }
  .we-count { grid-column: 2; }
  .we-year { justify-self: end; }
}
.work-media { aspect-ratio: 1920 / 1136 !important; }
@media (max-width: 767px) {
  .work.m-S { width: 62% !important; margin-left: auto; }
  .work.m-L { width: 100% !important; }
  .works-end { display: flex; justify-content: space-between; font-size: 16px; margin-top: 40px; }
}

/* ---------- 첫 화면 글자 선택 상자(디자인 툴 느낌) ---------- */
.sel-box { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; border: 1.5px solid #0d99ff; pointer-events: none; z-index: 5; }
.sel-box .h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #0d99ff; }
.sel-box .tl { left: -5px; top: -5px; } .sel-box .tr { right: -5px; top: -5px; } .sel-box .bl { left: -5px; bottom: -5px; } .sel-box .br { right: -5px; bottom: -5px; }
.sel-tag { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); background: #0d99ff; color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .3px; padding: 3px 7px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
body[data-hx="none"] .sel-box { display: none; }
.word-fill { display: none; }

/* ---------- 공간 영상(레퍼런스: 배경 1.8→1배, 화면 1.4→0.35배, 약 1.5화면 고정) ---------- */
.space { position: relative; height: 250vh; background: #000; }
.space-stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; }
.space-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #3a3a38 0%, #121212 60%, #050505 100%); transform-origin: 50% 50%; will-change: transform; }
.space-bg img { width: 100%; height: 100%; object-fit: cover; }
.space-frame { position: absolute; left: 50%; top: 50%; width: 100vw; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.4); will-change: transform; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.space-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 소개(레퍼런스 Studio: 72px 두 줄 + 목록 + 떨어지는 물체) ---------- */
.studio { position: relative; background: #000; color: #fff; padding: 12vw var(--pad) 0; }
.studio-big { font-size: 72px; }
.studio-list { display: grid; grid-template-columns: 21.4vw 22vw; margin-top: 48px; margin-left: 21.4vw; font-size: 16.2px; line-height: 1.2; }
.studio-list ul { list-style: none; display: grid; gap: 2px; }
.studio-list li::before { content: '•'; margin-right: 8px; }
.pile { position: relative; height: calc(var(--vh) * 100); margin: 0 calc(var(--pad) * -1); overflow: hidden; cursor: default; }
.pile .pb { position: absolute; left: 0; top: 0; will-change: transform; user-select: none; pointer-events: none; }
.pile .pb img, .pile .pb svg { width: 100%; height: 100%; display: block; }
.pile .pb svg use { fill: #fff; stroke: #fff; stroke-width: 7; stroke-linejoin: round; paint-order: stroke; }

/* ---------- 바닥: 위 구간이 걷히며 드러남 ---------- */
main { position: relative; z-index: 1; background: #000; margin-bottom: calc(var(--vh) * 100); }
.foot { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--vh) * 100); z-index: 0; background: #000; color: #fff; }
.foot-in { position: relative; height: 100%; padding: 172px var(--pad) 18px; }
.foot-big { font-size: 72px; }
.foot-btn { margin-top: 32px; background: #fff; color: #000; }
.foot-btn .btn-text { font-family: var(--en); font-size: 10.8px; letter-spacing: 1.12px; text-transform: uppercase; font-weight: 500; }
.foot-word { position: absolute; left: var(--pad); right: var(--pad); bottom: 52px; width: calc(100% - var(--pad) * 2); height: auto; color: #fff; }
.foot-word use { fill: currentColor; stroke: currentColor; stroke-width: 7; stroke-linejoin: round; paint-order: stroke; }
.foot-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; display: flex; justify-content: space-between; font-size: 12.6px; }

@media (max-width: 767px) {
  .space { height: 160vh; }
  .space-frame { width: 100vw; }
  .studio { padding: 120px 20px 0; }
  .studio-big, .foot-big { font-size: 40px; letter-spacing: -0.4px; }
  .studio-list { grid-template-columns: 1fr; margin-left: 0; gap: 12px; font-size: 18px; }
  .pile { margin: 0 -20px; height: calc(var(--vh) * 80); }
  .foot-in { padding: 140px 20px 16px; }
  .foot-word { bottom: 44px; }
}

/* 작업 이름표: 고정폭 글꼴 대신 영문 본문 글꼴(한국 사이트 글씨 기준) */
.work-label, .work-label [data-en] { font-family: var(--en); font-size: 11.5px; letter-spacing: .6px; font-weight: 500; }

/* WORKS 글자(레퍼런스: 27px 굵게, 화면 위 50px에 붙음) */
.works-word { position: sticky; top: 50px; height: 0; z-index: 6; margin: 0 var(--pad); pointer-events: none; }
.works-word span { position: absolute; left: 0; top: 0; font-family: var(--en); font-weight: 700; font-size: 27px; line-height: 1.1; color: #fff; text-transform: uppercase; }
.space-frame { aspect-ratio: 1920 / 1140; }
@media (max-width: 767px) { .works-word { top: 56px; margin: 0 20px; } .works-word span { font-size: 20px; } }

/* 위쪽 작은 로고: NOTE 전체 */
.nav-logo, .nav-logo svg { height: 20px; }
@media (max-width: 767px) { .nav-logo, .nav-logo svg { height: 16px; } }
/* 공간 배경 그림의 벽 화면 비율(365:201)에 영상 칸을 맞춤 */
.space-frame { aspect-ratio: 365 / 201; left: 0; top: 50%; margin-top: calc(-100vw * 201 / 365 / 2); transform-origin: 50% 50%; translate: 0; }
.space-frame { transform: none; }
.space-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.space-frame { box-shadow: 0 0 0 2px #0a0a0a; border-radius: 2px; }

/* 로딩 끝 NOTE 글자: 가운데 정렬 */
.ld-obj .ld-n { left: 2px; }

/* 작업실 모니터 화면 비율(1080:596) */
.space-frame { aspect-ratio: 1080 / 596; margin-top: calc(-100vw * 596 / 1080 / 2); box-shadow: none; border-radius: 0; }

/* 큰 문장 둘째 줄(한글): 브랜드 글꼴, 한글 줄 간격 */
.ko-big { font-family: var(--ko-brand); font-weight: var(--ko-brand-w); letter-spacing: -0.03em; line-height: 1.2; padding-top: .06em; }

/* 켜진 모니터 빛이 어두운 방에 은은하게 번짐 */
.space-frame { box-shadow: 0 0 160px 30px rgba(170,185,210,.10); }
/* 바닥 로고: 위아래 안 잘리게, 버튼과 겹치지 않게 높이 상한 */
.foot-word { overflow: visible; width: auto; max-width: calc(100% - var(--pad) * 2); height: min(calc((100vw - var(--pad) * 2) * 304 / 1108), calc(var(--vh) * 100 - 400px)); right: auto; }
body.at-foot .contact-fab { transform: scale(0); }
@media (max-width: 767px) { .foot-word { height: auto; width: calc(100% - 40px); } }
/* 소개: 큰 글 오른쪽에 한국어 목록, 아랫줄 맞춤 */
.studio-row { display: flex; align-items: flex-end; gap: 6vw; }
.studio-row .studio-list { display: grid; gap: 4px; margin: 0 0 .9em; padding: 0; list-style: none; grid-template-columns: none; font-family: var(--ko-brand); font-weight: var(--ko-brand-w); font-size: 22.5px; line-height: 1.35; letter-spacing: -0.01em; }
.studio-row .studio-list li::before { content: '•'; margin-right: 10px; font-family: var(--en); }
@media (max-width: 767px) { .studio-row { flex-direction: column; align-items: flex-start; gap: 28px; } .studio-row .studio-list { font-size: 19px; margin: 0; } }
/* 첫 화면 왼쪽 아래 소개 글씨 키움 */
.hero-intro { gap: 10px; }
.hero-en { font-size: 34px; letter-spacing: -0.01em; }
.hero-h1 { font-size: 20px; line-height: 1.35; }
@media (max-width: 767px) { .hero-en { font-size: 25px; } .hero-h1 { font-size: 16px; max-width: none; } }
/* 소개 목록: 영어로, 화면 오른쪽 끝에 */
.studio-row { justify-content: space-between; }
.studio-row .studio-list { font-family: var(--en); font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; min-width: 300px; }
@media (max-width: 767px) { .studio-row .studio-list { font-size: 20px; min-width: 0; } }
.studio-row .studio-list { min-width: 0; }
.hero-h1 .m-br { display: none; }
@media (max-width: 767px) { .hero-h1 .m-br { display: inline; } }
/* 목록은 큰 글 옆에, 적당히 띄워서 */
.studio-row { justify-content: flex-start; gap: clamp(64px, 7vw, 140px); }
/* 쏟아지는 동안 스크롤 잠금(휴대폰 손가락 스크롤까지) */
@media (hover: none) { html.pile-lock, html.pile-lock body { overflow: hidden; touch-action: none; overscroll-behavior: none; } }
/* 철학 문구 키움 */
.aside { grid-template-columns: 208px 680px; align-items: baseline; }
.aside-label { font-size: 18px; }
.aside-text { font-size: 34px; line-height: 1.3; }
@media (max-width: 767px) { .aside-text { font-size: 25px; } }
/* 둥근 O는 위아래로 살짝 넘치게(글자 끝이 잘려 보이지 않도록) */
svg:has(use[href="#g-o"]) { overflow: visible; }
/* 줄어드는 동안 영상 가장자리에 어두운 바탕이 비치지 않게 */
.reel { background: transparent; backface-visibility: hidden; }
/* 휴대폰 주소창이 나타나고 사라져도 길이가 변하지 않게(카카오톡 포함) */
.space { height: calc(var(--vh) * 250); }
.works-start { height: calc(var(--vh) * 100); }
@media (max-width: 767px) { .space { height: calc(var(--vh) * 160); } }
/* 휴대폰: 작업 구역 첫 문장을 오른쪽에 붙여 왼쪽 위 WORKS 글자와 겹치지 않게 */
@media (max-width: 767px) { .works-head { text-align: right; } }
.nw { white-space: nowrap; }

/* ===== 휴대폰 손질 (2026-11-14) ===== */
@media (max-width: 767px) {
  /* 1) 로딩 NOTE가 화면 밖으로 잘리지 않게 */

  /* 3) 작업 영상: 크기와 좌우를 엇갈려 배치 */
  .works .work { margin-bottom: 0 !important; }
  .works .w1 { width: 88% !important; margin-right: auto; }
  .works .w2 { width: 60% !important; margin: 72px 0 0 auto; }
  .works .w3 { width: 100% !important; margin-top: 88px; }
  .works .w4 { width: 64% !important; margin: 80px auto 0 0; }
  .works .w5 { width: 72% !important; margin: 64px 0 0 auto; }
  .works .w6 { width: 58% !important; margin: 80px auto 0 0; }
  .works .w7 { width: 90% !important; margin: 72px 0 0 auto; }
  .works-end { margin-top: 96px; }
  /* 4) 맨 아래 NOTE: 버튼 바로 아래로 올림 */
  .foot-word { position: relative; left: auto; right: auto; bottom: auto; display: block; margin-top: 56px; }
  /* 5) 공간 구역: 방 그림을 화면 너비의 1.35배로, 위아래는 검정으로 자연스럽게 */
  .space-bg img { position: absolute; left: -17.5%; top: 50%; width: 135%; height: auto; transform: translateY(-50%); object-fit: initial; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
}
/* 로딩 글자: 처음부터 숨겨 두고(제 크기로 줄어든 뒤 나타나게), 화면보다 넓어도 정가운데 기준으로 */
.ld-mark { position: absolute; left: 50%; top: 50%; opacity: 0; visibility: hidden; }
@media (max-width: 767px) {
  /* WORKS 글자도 다른 글처럼 양옆 20px */
  .works-word { margin: 0; }
  /* 맨 아래: 화면 80% 높이로 줄여 NOTE 밑 빈칸을 없애고, NOTE는 폭을 꽉 채움 */
  /* 맨 아래: 화면 높이는 그대로, 글·버튼·NOTE 묶음을 세로 가운데로 */
  .foot-in { display: flex; flex-direction: column; justify-content: center; padding: 64px 20px 72px; }
  .foot-btn { align-self: flex-start; }
  .foot-word { width: 100%; }
}
