/* [Define404] 자동 생성 파일. brand/tokens.json을 고치고 `node tokens/build.mjs`로 다시 만든다. */
:root {
  --ln-ivory: #F7F2EA;
  --ln-ivory-0: #FDFBF7;
  --ln-oat-200: #E7DECF;
  --ln-umber: #3A322A;
  --ln-umber-muted: #75695C;
  --ln-taupe: #5E5143;
  --ln-on-taupe: #FFFFFF;
  --ln-oat: #EDE5D8;
  --ln-flax: #CDBFA8;
  --ln-amber: #8A5A2B;
  --ln-success: #3E6E4C;
  --ln-warning: #8E5E16;
  --ln-danger: #A3433A;
  --ln-space-1: 4px;
  --ln-space-2: 8px;
  --ln-space-3: 12px;
  --ln-space-4: 16px;
  --ln-space-6: 24px;
  --ln-space-8: 32px;
  --ln-radius-sm: 2px;
  --ln-radius-md: 4px;
  --ln-radius-lg: 10px;
  --ln-font-display: "Marcellus", "Cormorant Garamond", "Noto Sans KR", serif;
  --ln-font-body: "Be Vietnam Pro", "Noto Sans KR", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ln-ivory: #1A1713;
    --ln-ivory-0: #231F1A;
    --ln-oat-200: #3A332B;
    --ln-umber: #F3EDE4;
    --ln-umber-muted: #BBAF9F;
    --ln-taupe: #D9CCB9;
    --ln-on-taupe: #211B15;
    --ln-oat: #2D2821;
    --ln-flax: #8F8069;
    --ln-amber: #D9A46A;
    --ln-success: #86C49A;
    --ln-warning: #E2B060;
    --ln-danger: #EF9086;
  }
}

/* [Define404] Linens 소개 웹 스타일. 색·간격 토큰은 빌드 때 tokens/dist/linens-tokens.css를 앞에 붙인다. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ln-ivory);
  color: var(--ln-umber);
  font-family: var(--ln-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--ln-font-display); font-weight: 400; line-height: 1.2; margin: 0; text-wrap: pretty; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { font-family: var(--ln-font-body); font-weight: 700; letter-spacing: -0.02em; }
:lang(vi) h1, :lang(vi) h2, :lang(vi) h3 { font-family: var(--ln-font-body); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-family: var(--ln-font-body); font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 920px; text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ln-taupe); color: var(--ln-on-taupe); padding: 8px 12px; border-radius: var(--ln-radius-md); z-index: 30; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--ln-amber); outline-offset: 3px; }

/* 머리: 얇은 상단 메뉴 */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--ln-ivory); transition: background-color 0.3s ease, color 0.3s ease; }
/* 첫 화면 영상 위에 있을 때: 바탕을 비우고 글자를 희게(뒤 흐림 효과는 스크롤을 무겁게 해서 쓰지 않는다) */
.site-head .logo-white { display: none; }
.on-hero .site-head { background: transparent; color: #fff; }
.on-hero .site-head .nav a, .on-hero .site-head .lang summary { color: #fff; text-shadow: 0 1px 8px rgba(20, 14, 8, 0.35); }
.on-hero .site-head .nav a:hover, .on-hero .site-head .lang summary:hover { background: rgba(255, 255, 255, 0.14); }
.on-hero .site-head .pill { background: rgba(255, 255, 255, 0.18); color: #fff; }
.on-hero .site-head .logo picture { display: none; }
.on-hero .site-head .logo-white { display: block; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 16px; max-width: 1360px; margin: 0 auto; }
@media (min-width: 900px) { .head-in { padding: 0 40px; display: grid; grid-template-columns: 1fr auto 1fr; } }
.logo { display: block; flex: none; }
.logo img { height: 24px; width: auto; }
.nav { display: none; gap: 8px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: var(--ln-radius-md); color: var(--ln-umber); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--ln-oat); }
.head-end { display: flex; align-items: center; gap: 8px; justify-self: end; }
.pill { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; background: var(--ln-oat); color: var(--ln-umber); white-space: nowrap; }
.pill:hover { background: var(--ln-oat-200); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 8px 8px; border-radius: var(--ln-radius-md); color: var(--ln-umber); white-space: nowrap; }
.lang summary:hover { background: var(--ln-oat); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .lang summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--ln-ivory-0); border: 1px solid var(--ln-oat-200); border-radius: var(--ln-radius-lg); min-width: 160px; z-index: 25; box-shadow: 0 8px 24px rgba(58, 50, 42, 0.12); }
.lang li a { display: block; padding: 8px 12px; border-radius: var(--ln-radius-md); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--ln-oat); }
.lang li a[aria-current] { font-weight: 600; }
.fallback-note { background: var(--ln-oat); font-size: 14px; color: var(--ln-umber-muted); }
.fallback-note .wrap { padding-top: 8px; padding-bottom: 8px; }

/* 왼쪽 진행 눈금(넓은 화면만) */
.ticks { display: none; }
@media (min-width: 900px) {
  .ticks { display: flex; flex-direction: column; gap: 7px; position: fixed; left: 10px; top: 50%; transform: translateY(-50%); z-index: 15; }
  .ticks i { display: block; width: 10px; height: 1.5px; background: var(--ln-flax); transition: width 0.25s, background-color 0.25s; }
  .ticks i.on { width: 14px; background: var(--ln-umber); }
}

/* 첫 화면 */
/* 기본(움직임 줄이기, JS 없음): 둥근 상자 한 장 */
.hero { padding: 0 12px; }
@media (min-width: 900px) { .hero { padding: 0 32px; } }
.hero-pin { position: relative; height: calc(100svh - 72px); min-height: 520px; max-height: 960px; }
.hero-box { position: absolute; inset: 0; overflow: hidden; border-radius: 24px; background: #3a2c20; }
@media (min-width: 900px) { .hero-box { border-radius: 32px; } .hero-pin { min-height: 600px; } }
.hero-media { position: absolute; inset: 0; }
.hero-photo, .hero-photo img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.crop-biz img { object-position: 92% 50%; }
@media (min-width: 900px) { .hero-box .hero-photo img { object-position: 50% 50%; } }
.hero-video { opacity: 0; transition: opacity 0.8s ease; }
.hero-video.playing { opacity: 1; }
.hero-title { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 28px; color: #fff; font-size: clamp(2.6rem, 0.6rem + 6.6vw, 7.4rem); line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 2px 28px rgba(20, 14, 8, 0.45), 0 1px 3px rgba(20, 14, 8, 0.3); }
@media (min-width: 900px) { .hero-title { left: 56px; right: 56px; bottom: 48px; } }
:lang(ko) .hero-title { letter-spacing: -0.035em; }
:lang(vi) .hero-title { font-size: clamp(2.4rem, 0.9rem + 5.2vw, 6rem); }
.crop-biz .hero-title { font-size: clamp(2.3rem, 0.8rem + 5vw, 5.4rem); }
@media (max-width: 899px) { :lang(ko) .crop-biz .hero-title { max-width: 7.2em; } }
/* 움직임 허용: 구간 높이 화면 2.5배, 안쪽은 sticky. 화면 전체에서 시작해 스크롤에 따라 둥근 상자로 줄며 사라진다.
   크기·투명도는 site.js가 scale·opacity로만 바꾼다(레이아웃 다시 계산 없음). JS 전에도 같은 첫 모습이 되게 CSS로 시작값을 준다. */
@media (prefers-reduced-motion: no-preference) {
  .hero { padding: 0; margin-top: -60px; height: 250svh; }
  .hero-pin { position: sticky; top: 0; height: 100svh; min-height: 0; max-height: none; overflow: hidden; }
  .hero-box { inset: 12px; scale: 1.11; will-change: scale, translate; }
  .hero-media { scale: 1.06; will-change: scale; }
  /* 처음엔 상자가 화면보다 조금 크게 시작하므로 제목을 그만큼 위로 올려 잘리지 않게 한다 */
  .hero-title { bottom: 72px; }
  @media (min-width: 900px) { .hero-box { inset: 16px; scale: 1.065; } .hero-title { bottom: 84px; } }
  .hero-title { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
}
/* 영어·베트남어 제목은 마지막 줄 한 단어를 막으려 balance(한국어는 keep-all과 충돌해 쓰지 않는다) */
:lang(en) h1, :lang(en) h2, :lang(en) h3, :lang(vi) h1, :lang(vi) h2, :lang(vi) h3 { text-wrap: balance; }

/* 소개 한 줄 */
.intro { padding: 72px 0 96px; }
@media (min-width: 900px) { .intro { padding: 96px 0 144px; } }
.intro h2 { font-size: clamp(1.7rem, 1.1rem + 3.2vw, 3.6rem); line-height: 1.22; margin: 0 auto; max-width: 15em; }
.intro p { margin: 24px auto 0; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--ln-umber-muted); max-width: 28em; }
.eyebrow { font-size: 15px; color: var(--ln-amber); font-weight: 500; margin-bottom: 20px !important; }
.intro .btn { margin-top: 36px; }

/* 장면 */
.scenes { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 16px; }
@media (min-width: 900px) { .scenes { padding: 0 48px; gap: 24px; } }
.scene { position: relative; height: clamp(600px, calc(100svh - 84px), 900px); }
.scene-photo { position: absolute; left: 0; right: 0; top: 0; height: 74%; border-radius: 24px; overflow: hidden; background: var(--ln-flax); }
.scene-photo picture, .scene-photo img { width: 100%; height: 100%; object-fit: cover; }
.scene-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30, 22, 15, 0.5) 0%, rgba(30, 22, 15, 0.15) 45%, rgba(30, 22, 15, 0) 70%); }
.scene-text { position: absolute; z-index: 1; left: 24px; right: 24px; top: 28px; color: #fff; }
.scene-text h2, .scene-text h3 { font-size: clamp(1.75rem, 0.6rem + 3.2vw, 3.4rem); line-height: 1.15; text-shadow: 0 2px 18px rgba(20, 14, 8, 0.25); }
.scene-text p { margin-top: 14px; font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem); max-width: 22em; opacity: 0.94; text-shadow: 0 1px 10px rgba(20, 14, 8, 0.3); }
.scene-screen { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 60%; aspect-ratio: 786 / 1704; transform: translateX(-50%); }
.scene-screen picture, .scene-screen img { width: 100%; height: 100%; }
.scene-screen img, .shot img { border-radius: 13% / 6%; box-shadow: 0 24px 60px rgba(40, 28, 16, 0.28), 0 4px 14px rgba(40, 28, 16, 0.12); }
@media (min-width: 900px) {
  .scene { height: clamp(640px, calc(100svh - 92px), 900px); }
  .scene-photo { height: 86%; border-radius: 32px; }
  .scene-photo::after { background: linear-gradient(to right, rgba(30, 22, 15, 0.55) 0%, rgba(30, 22, 15, 0.2) 45%, rgba(30, 22, 15, 0) 70%); }
  .scene-text { left: 7%; right: auto; top: 50%; transform: translateY(-62%); max-width: 46%; }
  .scene-screen { left: auto; right: 11%; bottom: 0; height: 92%; transform: none; }
}

/* 스크롤 연출: JS가 .story에 is-live를 붙인다 */
.story { padding: 0 0 24px; }
.story.is-live .story-track { position: relative; height: calc(var(--n) * 100svh); }
.story.is-live .story-stage { position: sticky; top: 60px; height: calc(100svh - 60px); display: flex; align-items: center; }
.story.is-live .scenes { position: relative; width: 100%; height: calc(100% - 24px); display: block; }
.story.is-live .scene { position: absolute; inset: 0 12px; height: auto; pointer-events: none; }
@media (min-width: 900px) { .story.is-live .scene { inset: 0 48px; } }
.story.is-live .scene.on { pointer-events: auto; }
.story.is-live .scene-photo, .story.is-live .scene-text, .story.is-live .scene-screen { opacity: 0; will-change: opacity, translate, scale; }
.story.is-live .scene:first-child .scene-photo, .story.is-live .scene:first-child .scene-text, .story.is-live .scene:first-child .scene-screen { opacity: 1; }
.story.is-live .scene-photo picture { will-change: scale; }
.story-mark { position: absolute; left: 0; width: 1px; height: 100svh; pointer-events: none; }

/* 원하는 직원이 없을 때 */
.offer { padding: 120px 0 72px; }
@media (min-width: 900px) { .offer { padding: 176px 0 96px; } }
.offer-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .offer-in { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.offer h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); line-height: 1.2; max-width: 11em; }
.offer-text p { margin-top: 20px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--ln-umber-muted); max-width: 22em; }
.offer-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 640px; }
@media (min-width: 900px) { .offer-screens { gap: 28px; } }
.offer-screens .shot:nth-child(2) { margin-top: 56px; }
.note { margin-top: 40px; font-size: 14px; color: var(--ln-umber-muted); }

/* 안심 */
.safe { padding: 96px 0; }
@media (min-width: 900px) { .safe { padding: 144px 0; } }
.safe h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); }
/* 업소 페이지 한국어 문단은 첫 문장이 한 줄에 딱 차게(둘째 문장 첫 낱말이 윗줄에 매달리지 않게) */
@media (min-width: 900px) { :lang(ko) .safe-biz p { max-width: 20em; } }
.safe p { margin: 20px auto 0; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); color: var(--ln-umber-muted); max-width: 30em; }

/* 업소 안내 짧게 */
.biz-teaser { padding: 24px 0 72px; }
.btn { appearance: none; border: 0; font: inherit; font-weight: 600; font-size: 16px; min-height: 52px; padding: 0 26px; border-radius: 14px; background: var(--ln-taupe); color: var(--ln-on-taupe); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-light { margin-top: 28px; background: var(--ln-ivory-0); color: var(--ln-umber); text-shadow: none; }

/* 자주 묻는 질문 */
.faq-sec { padding: 96px 0; }
@media (min-width: 900px) { .faq-sec { padding: 128px 0; } }
.faq-in { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 1fr 2fr; gap: 64px; } }
.faq-in h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.faq { border-top: 1px solid var(--ln-oat-200); }
.faq details { border-bottom: 1px solid var(--ln-oat-200); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--ln-umber-muted); max-width: 40em; }

/* 앱 */
.app-cta { padding: 112px 0 128px; background: var(--ln-oat); }
.app-cta h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.app-cta p { margin: 16px auto 0; font-size: 1.1rem; color: var(--ln-umber-muted); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 156px; height: 56px; padding: 0 18px; border-radius: 14px; background: var(--ln-umber); color: var(--ln-ivory); line-height: 1.15; cursor: default; text-align: left; }
.store b { font-weight: 600; font-size: 16px; font-family: var(--ln-font-body); }
.store small { font-size: 12px; opacity: 0.8; }

/* 업소 페이지 */
.more { padding: 128px 0 64px; }
.more h2, .join h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.rows { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ln-oat-200); }
.rows li { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--ln-oat-200); }
@media (min-width: 900px) { .rows li { grid-template-columns: 1fr 1.6fr; gap: 48px; } }
.rows h3 { font-size: 1.25rem; }
.rows p { color: var(--ln-umber-muted); }
.join { padding: 64px 0 32px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--ln-font-display); font-size: 3rem; line-height: 1; color: var(--ln-amber); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--ln-umber-muted); }
.inquiry { padding: 96px 0 128px; scroll-margin-top: 60px; }

/* 문의 양식 */
.biz { display: grid; gap: 40px; }
@media (min-width: 900px) { .biz { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.biz-text h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.biz-text p { margin-top: 16px; color: var(--ln-umber-muted); font-size: 1.1rem; max-width: 24em; }
.lead-form { background: var(--ln-ivory-0); border: 1px solid var(--ln-oat-200); border-radius: 24px; padding: 24px; display: grid; gap: 16px; scroll-margin-top: 76px; }
@media (min-width: 768px) { .lead-form { padding: 36px; } .lead-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.lead-form .two { display: grid; gap: 16px; }
.lead-form h2, .lead-form h3 { font-size: 1.4rem; }
.lead-form > p { color: var(--ln-umber-muted); margin-top: -8px; }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ln-umber); background: var(--ln-ivory); border: 1px solid var(--ln-oat-200); border-radius: var(--ln-radius-md); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ln-amber); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ln-umber-muted); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ln-taupe); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pending { font-size: 14px; background: var(--ln-oat); border-radius: var(--ln-radius-md); padding: 10px 12px; color: var(--ln-umber); }
.status { min-height: 1.5em; font-size: 15px; }
.status[data-kind="ok"] { color: var(--ln-success); }
.status[data-kind="error"] { color: var(--ln-danger); }
.cf-turnstile:empty { display: none; }

/* 문서 페이지 */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.doc .body { margin-top: 24px; max-width: 46em; }
.doc .body p + p { margin-top: 12px; }
.doc .btn { margin-top: 28px; }

/* 바닥 */
.site-foot { border-top: 1px solid var(--ln-oat-200); padding: 40px 0 48px; font-size: 15px; color: var(--ln-umber-muted); }
.site-foot .wrap { display: grid; gap: 20px; }
@media (min-width: 900px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-foot img { height: 22px; width: auto; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { text-underline-offset: 3px; }
.site-foot small { display: block; margin-top: 8px; }

@media (prefers-color-scheme: dark) {
  .store { background: var(--ln-oat-200); color: var(--ln-umber); }
  .btn-light { background: #fdfbf7; color: #3a322a; }
  .scene-screen img, .shot img { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
}
