/* 한노블 Han Noble — 브랜드 사이트 (2026-10-08, 누구세오랩)
   Design Read: 브랜드·B2B 소개 사이트 / 바이어·기관·선물 수요 + 소비자 / 「전통의 향 × 진공 함침 기술」 / 편집(에디토리얼) + 스크롤 연출
   DESIGN_VARIANCE 7 · MOTION_INTENSITY 7 · VISUAL_DENSITY 3
   장면: 아침 햇빛이 드는 나무 테이블 위의 크라프트 박스. 그래서 페이지는 밝은 종이색 하나로 간다(테마 고정).
   팔레트는 사업계획서 실측(#241818 잉크 · #e4dcd8 바탕 · #422100 갈색)에서 왔고, 액센트는 황칠 잎의 녹색 하나만 쓴다. */

@import url("fonts/pretendardvariable-dynamic-subset.css");

:root {
  --paper: #efe9e4;
  --paper-2: #e5dcd6;
  --paper-3: #d9cdc5;
  --ink: #241a18;
  --ink-soft: #4d3f3b;
  --muted: #6e5d57;
  --bark: #3b2a1c;
  --line: rgba(36, 26, 24, .14);
  --accent: #3a6a3c;
  --accent-deep: #2d5430;
  --on-accent: #f4f0ea;
  --focus: #2d5430;

  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 14px;
  --radius-s: 8px;
  --nav-h: 72px;
  --gutter: 16px;
  --measure: 34rem;

  --z-sticky: 10; --z-nav: 20; --z-drawer: 30; --z-toast: 40;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1514; --paper-2: #241c1a; --paper-3: #2f2523;
    --ink: #efe7e2; --ink-soft: #d6cbc5; --muted: #b3a59e; --bark: #e0c9b4;
    --line: rgba(239, 231, 226, .16);
    --accent: #8fc48f; --accent-deep: #a7d6a7; --on-accent: #14211a; --focus: #a7d6a7;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  font-feature-settings: "ss05", "tnum";
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

/* ── 타이포 스케일 (단계 간 ≥1.25) ── */
.t-display { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.03em; }
.t-h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem); }
.t-h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); }
.t-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: var(--measure); }
.t-body { max-width: var(--measure); color: var(--ink-soft); }
.t-small { font-size: .875rem; color: var(--muted); }
.kicker { font-weight: 600; color: var(--accent); font-size: .95rem; letter-spacing: 0; }

/* ── 버튼 (8상태) ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.25rem;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease-out), background-color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-secondary:hover { background: var(--ink); color: var(--paper); }
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 내비 ── */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; }
.brand small { font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .02em; }
.nav-links { display: none; gap: 1.6rem; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-soft); padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .18s var(--ease-out), border-color .18s var(--ease-out); }
.nav-links a[aria-current="true"], .nav-links a:hover { color: var(--ink); border-color: var(--accent); }
.nav-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.menu-btn:active { transform: scale(.95); }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* 모바일 드로어 */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: grid; grid-template-rows: auto 1fr; background: var(--paper); padding: 1rem var(--gutter) 2rem; transform: translateY(-4%); opacity: 0; pointer-events: none; transition: transform .22s var(--ease-out), opacity .22s var(--ease-out); }
.drawer[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--nav-h) - 1rem); }
.drawer ul { display: grid; align-content: start; gap: .25rem; margin-top: 1.5rem; }
.drawer a { display: block; padding: .9rem 0; font-size: 1.4rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 1.5rem; justify-content: center; }

/* ── 히어로: 390×844 한 화면에 CTA까지 ── */
.hero { position: relative; display: grid; align-content: center; padding-block: 2rem 2.5rem; overflow: clip; }
@media (min-width: 768px) { .hero { min-height: calc(100dvh - var(--nav-h)); } }
.hero-grid { display: grid; gap: 1.25rem; }
.hero-copy { display: grid; gap: 1rem; }
.hero-copy .t-lead { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.hero-media { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%; }
.hero-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; pointer-events: none; }
.hero-note { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .875rem; }
@media (min-width: 768px) {
  .hero { padding-block: 2.5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2.5rem; }
  .hero-media { aspect-ratio: 4 / 5; }
}
@media (min-width: 1200px) { .hero-grid { gap: 4rem; } .hero-media { aspect-ratio: 5 / 6; } }

/* ── 섹션 공통 ── */
.section { padding-block: clamp(4rem, 6vw + 2rem, 8rem); }
.section-head { display: grid; gap: .75rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* 브랜드 스토리: 큰 인용 + 두 장면(편집형 교차) */
.story-quote { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; max-width: 22ch; }
.story-quote em { font-style: normal; color: var(--accent); }
.scene { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.scene figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.scene figure img { width: 100%; height: 100%; object-fit: cover; }
.scene figcaption { padding-top: .6rem; font-size: .85rem; color: var(--muted); }
.scene-text { display: grid; gap: .75rem; }
@media (min-width: 768px) {
  .scene { grid-template-columns: 7fr 5fr; gap: 3rem; }
  .scene.is-flip { grid-template-columns: 5fr 7fr; }
  .scene.is-flip figure { order: 2; }
  .scene-text { padding-right: 1rem; }
}
.philosophy { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .75rem; max-width: 48rem; }

/* ── 향의 층: 핀 고정 스택 (GSAP) ── */
.layers { position: relative; }
.layer { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: clip; }
.layer-bg { position: absolute; inset: 0; }
.layer-bg img { width: 100%; height: 100%; object-fit: cover; }
.layer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 10, .05) 20%, rgba(20, 12, 10, .78) 100%); }
.layer-body { position: relative; color: #f3ece6; padding-block: 3rem 4rem; display: grid; gap: .5rem; max-width: 36rem; }
.layer-index { font-weight: 700; font-size: .9rem; color: #d8c7b5; letter-spacing: .02em; }
.layer-body h3 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3.2rem); color: #fff6ee; }
.layer-body h3 span { display: block; font-size: .55em; font-weight: 500; color: #e2d3c5; margin-top: .2em; letter-spacing: 0; }
.layer-body p { color: #e9dfd6; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 30rem; }
.layers-intro { padding-block: clamp(4rem, 6vw + 2rem, 8rem) 2.5rem; }

/* ── 공정: 가로 패닝 (GSAP) ── */
.process { overflow: clip; background: var(--paper-2); }
.process-head { padding-top: clamp(4rem, 6vw + 2rem, 8rem); }
.track { display: flex; gap: 1rem; padding: 2rem var(--gutter) 3rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > .step { scroll-snap-align: start; }
.step { flex: 0 0 min(86vw, 420px); display: grid; align-content: start; gap: .75rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-height: 320px; }
.step-n { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); }
.step .ico { width: 2rem; height: 2rem; color: var(--bark); }
.evidence { display: grid; gap: 1rem; padding: 0 var(--gutter) clamp(4rem, 6vw, 6rem); }
.evidence figure { margin: 0; display: grid; gap: .5rem; }
.evidence img { border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; }
.evidence figcaption { font-size: .85rem; color: var(--muted); }
.patent { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
@media (min-width: 768px) {
  .track { gap: 1.5rem; padding-inline: 0; }
  .step { flex-basis: 440px; }
  .evidence { grid-template-columns: 1fr 1fr 1fr; align-items: start; padding-inline: 0; }
}
@media (min-width: 1024px) {
  .process-pan { height: 100dvh; display: grid; align-content: center; }
  .track { overflow: visible; scroll-snap-type: none; padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2)); }
  .step { flex-basis: 480px; min-height: 300px; }
}

/* ── 라인업: 비대칭 그리드, 모바일은 가로 스냅 ── */
.lineup-grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.lineup-grid::-webkit-scrollbar { display: none; }
.product { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; display: grid; gap: .75rem; }
.product figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.product figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product:hover figure img { transform: scale(1.03); } }
.product h3 { font-size: 1.25rem; }
.product h3 small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .01em; }
.notes { display: grid; gap: .3rem; font-size: .92rem; color: var(--ink-soft); }
.notes li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .5rem; }
.notes b { font-weight: 600; color: var(--accent); }
@media (min-width: 768px) {
  .lineup-grid { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 1.5rem; }
  .product { flex: none; }
  .product:nth-child(1) { grid-column: span 3; }
  .product:nth-child(2) { grid-column: span 3; }
  .product:nth-child(3), .product:nth-child(4), .product:nth-child(5) { grid-column: span 2; }
  .product:nth-child(1) figure, .product:nth-child(2) figure { aspect-ratio: 16 / 10; }
}

/* ── 세 가지 라인: 탭 선택기 ── */
.lines { background: var(--paper-2); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab:active { transform: scale(.97); }
.panel { display: none; grid-template-columns: 1fr; gap: 1.25rem; }
.panel[data-active="true"] { display: grid; }
.panel figure { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.panel figure img { width: 100%; height: 100%; object-fit: cover; }
.panel-text { display: grid; gap: .75rem; align-content: center; }
.target { display: grid; gap: .25rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.target dt { font-size: .85rem; color: var(--muted); }
.target dd { margin: 0; font-weight: 600; }
@media (min-width: 768px) { .panel { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }

/* ── 문의: 고르면 채워지는 설정기 ── */
.inquiry-grid { display: grid; gap: 2rem; }
.config { display: grid; gap: 1.5rem; }
.q { display: grid; gap: .6rem; }
.q-label { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.summary { padding: 1rem 1.1rem; border-radius: var(--radius-s); background: var(--paper-2); color: var(--ink-soft); font-size: .95rem; }
.summary b { color: var(--ink); }
.fields { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; transition: border-color .18s var(--ease-out); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.field[data-invalid="true"] input { border-color: #a23c2a; }
.err { font-size: .85rem; color: #a23c2a; display: none; }
.field[data-invalid="true"] .err { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err, :root:not([data-theme="light"]) .field[data-invalid="true"] input { color: #f3a08f; border-color: #f3a08f; } }
.agree { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.agree input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); }
.form-foot { display: grid; gap: .75rem; }
.status { display: none; padding: .9rem 1rem; border-radius: var(--radius-s); font-weight: 500; }
.status[data-kind="success"] { display: block; background: color-mix(in oklab, var(--accent) 14%, var(--paper)); color: var(--ink); }
.status[data-kind="error"] { display: block; background: color-mix(in oklab, #a23c2a 14%, var(--paper)); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-aside { display: grid; gap: 1rem; align-content: start; }
.contact-aside a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; font-weight: 600; min-height: 44px; }
@media (min-width: 1024px) { .inquiry-grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; } }

/* ── 푸터 ── */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; color: var(--muted); font-size: .875rem; }
.footer .wrap { display: grid; gap: 1.25rem; }
.footer-brand { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.footer-meta { display: grid; gap: .3rem; }
.footer-mission { max-width: 40rem; color: var(--ink-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── 등장 모션 (IntersectionObserver, transform/opacity 만) ── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .06s; } .rv[data-d="2"] { transition-delay: .12s; } .rv[data-d="3"] { transition-delay: .18s; } .rv[data-d="4"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .layer { min-height: auto; }
  .layer-bg { position: relative; aspect-ratio: 16 / 9; }
  .layer-body { color: var(--ink); padding-block: 1.5rem 3rem; }
  .layer-body h3, .layer-body h3 span, .layer-body p, .layer-index { color: inherit; }
  .process-pan { height: auto; }
  .track { overflow-x: auto; }
}
