/* 한노블 v2 — jesperlandberg.com 레퍼런스 재현 (실측 토큰: homepage_261009_v2/jesperlandberg.com.md)
   순흑 무대 · 원근 바닥 격자 · 1.75:1 카드 3D 캐러셀 · 흰 시트 상세 · 글자 3단(10/14/17px) · 액센트 금색 한 점 */
@import url("fonts/pretendardvariable-dynamic-subset.css");

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .12);
  --accent: #d9a441;
  --sheet: #fff;
  --sheet-fg: #000;
  --sheet-muted: rgba(0, 0, 0, .5);
  --sheet-line: rgba(0, 0, 0, .1);
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif;
  --r: 19.2px;
  --edge: 48px;
  --card-w: min(684px, 86vw);
  --card-h: calc(var(--card-w) / 1.75);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --edge: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 라벨: 9.6px 대문자 500 → 한글 가독을 위해 10px */
.lbl { font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.lbl a, .lbl button { min-height: 44px; display: inline-flex; align-items: center; }
.lbl .sep { opacity: .5; margin: 0 .45em; }
.lbl .dim { opacity: .5; }

/* 로더: 흰 대시 세 개 */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); pointer-events: none; }
.loader > div { display: flex; }
.loader i { display: inline-block; width: 44px; height: 3px; background: #fff; margin: 0 5px; border-radius: 2px; transform-origin: left; animation: dash 1.1s var(--ease) infinite; }
.loader i:nth-child(2) { animation-delay: .15s; } .loader i:nth-child(3) { animation-delay: .3s; }
@keyframes dash { 0% { transform: scaleX(0); opacity: 0 } 40% { transform: scaleX(1); opacity: 1 } 100% { transform: scaleX(1); opacity: 0 } }
.loader.done { opacity: 0; transition: opacity .5s var(--ease); }

/* 무대 */
.stage { position: fixed; inset: 0; perspective: 1400px; perspective-origin: 50% 42%; overflow: hidden; }
.floor { position: absolute; left: 50%; top: 50%; width: 500vw; height: 260vh; transform: translate(-50%, calc(var(--card-h) / 2 + 6px)) rotateX(80deg); transform-origin: center top;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 110px 110px; mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%); }
.rail { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; } /* z<0 카드가 레일 평면 뒤에 있어 클릭을 못 받는다 */
.card { pointer-events: auto; }
.card { position: absolute; left: 50%; top: 50%; width: var(--card-w); height: var(--card-h); margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  border-radius: var(--r); overflow: hidden; background: #111; transform-style: preserve-3d; will-change: transform; cursor: pointer; text-align: left; color: var(--fg); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.card .cap { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: flex; align-items: baseline; gap: 10px; }
.card .cap b { font-size: 17.28px; font-weight: 400; letter-spacing: -.05em; }
.card .cap span { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.card .n { position: absolute; right: 16px; bottom: 16px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 11px; }
@media (hover: hover) { .card:hover .screen { transform: scale(var(--ms, .5)) translateY(-1.5%); } }
.card:active { transform: scale(.99); }

/* 네 모서리 */
.corner { position: fixed; z-index: 30; mix-blend-mode: difference; }
.tl { left: var(--edge); top: 20px; } .tr { right: var(--edge); top: 20px; text-align: right; }
.bl { left: var(--edge); bottom: 18px; } .br { right: var(--edge); bottom: 18px; text-align: right; }
.corner .mark { color: var(--accent); margin-right: .5em; }

/* 소개 블록(좌상 아래, 레퍼런스의 소개문 자리) */
.intro { position: fixed; left: var(--edge); top: 60px; z-index: 30; width: min(360px, 60vw); font-size: 13.44px; color: var(--muted); mix-blend-mode: difference; }
.intro b { color: var(--fg); font-weight: 400; }

/* 시트 */
.sheet { position: fixed; top: 19px; bottom: 19px; left: 48px; right: 48px; z-index: 40; background: var(--sheet); color: var(--sheet-fg); border-radius: var(--r);
  transform: translateX(calc(100% + 9rem)); visibility: hidden; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.sheet[data-open="true"] { visibility: visible; }
.sheet-l { padding: 38px 38px 28px; display: grid; align-content: start; gap: 18px; }
.sheet-l h1 { font-size: clamp(28px, 2.2vw + 14px, 43.2px); font-weight: 400; letter-spacing: -.05em; line-height: 1.25; text-wrap: balance; }
.sheet-l p { font-size: 14px; line-height: 1.5; max-width: 432px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.chip.gold { color: var(--accent); background: rgba(217,164,65,.14); }
.sheet-r { overflow-y: auto; padding: 38px 38px 60px; display: grid; gap: 22px; align-content: start; scrollbar-width: thin; }
.sheet-r figure { margin: 0; }
.sheet-r img { width: 100%; border-radius: 12px; }
.sheet-r figcaption { font-size: 12px; color: var(--sheet-muted); margin-top: 8px; }
.sheet-r h2 { font-size: 20.16px; font-weight: 700; letter-spacing: -.02em; }
.sheet-r h3 { font-size: 17.28px; font-weight: 500; letter-spacing: -.03em; }
.sheet-r p, .sheet-r li { font-size: 14px; line-height: 1.5; }
.steps { display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--sheet-line); }
.steps b { font-size: 20px; font-weight: 500; color: var(--accent); letter-spacing: -.04em; }
.steps p { color: var(--sheet-muted); margin-top: 4px; }
.notes { display: grid; gap: 4px; font-size: 13px; color: var(--sheet-muted); }
.notes b { display: inline-block; width: 50px; color: var(--accent); font-weight: 500; }
.prod { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--sheet-line); align-items: start; }
.prod img { aspect-ratio: 1; object-fit: cover; }
.prod small { display: block; font-size: 11px; color: var(--sheet-muted); letter-spacing: .04em; margin-top: 2px; }
.lines3 { display: grid; gap: 18px; }
.lines3 > div { padding-top: 16px; border-top: 1px solid var(--sheet-line); display: grid; gap: 8px; }
.lines3 img { aspect-ratio: 16 / 7; object-fit: cover; }
.lines3 .t { font-size: 12px; color: var(--accent); }
.sheet .close { position: absolute; right: 18px; top: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.sheet .close svg { width: 18px; height: 18px; fill: currentColor; }
.sheet .prevnext { position: absolute; left: 38px; bottom: 16px; display: flex; gap: 14px; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.sheet .prevnext button { min-height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,.06); }
@media (min-width: 900px) {
  .sheet { grid-template-columns: minmax(380px, 42%) 1fr; }
  .sheet-l { position: sticky; top: 0; padding: 38px 38px 60px 38px; }
  .sheet-r { padding: 38px 115px 60px 0; }
}

/* 문의 폼(시트 6) */
.q { display: grid; gap: 8px; }
.q-label { font-size: 12px; font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sheet-line); font-size: 13px; }
.opt[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }
.summary { font-size: 13px; color: var(--sheet-muted); padding: 12px 14px; background: rgba(0,0,0,.04); border-radius: 10px; }
.summary b { color: var(--sheet-fg); font-weight: 500; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--sheet-line); background: #fff; color: #000; font: inherit; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); border-color: transparent; }
.field[data-invalid="true"] input { border-color: #b4321e; }
.err { display: none; font-size: 12px; color: #b4321e; }
.field[data-invalid="true"] .err { display: block; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--sheet-muted); }
.agree input { width: 16px; height: 16px; margin-top: 2px; accent-color: #000; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #000; color: #fff; font-size: 13px; font-weight: 500; transition: transform .18s var(--ease); }
.btn:active { transform: scale(.97); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.status { display: none; font-size: 13px; padding: 10px 12px; border-radius: 10px; }
.status[data-kind="success"] { display: block; background: rgba(217,164,65,.16); }
.status[data-kind="error"] { display: block; background: rgba(180,50,30,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 모바일: 세로 카드 스택 */
@media (max-width: 767px) {
  body { overflow: auto; }
  .stage { position: static; perspective: none; overflow: visible; padding: 64px var(--edge) 80px; }
  .floor { display: none; }
  .rail { position: static; display: grid; gap: 10px; }
  .card { position: static; margin: 0; width: 100%; height: auto; aspect-ratio: 1.75; transform: none !important; }
  .intro { display: none; }
  .corner { mix-blend-mode: normal; }
  .tl, .tr { top: 12px; } .bl, .br { bottom: 12px; }
  .corner.bl, .corner.br { background: linear-gradient(180deg, transparent, #000 40%); padding-top: 16px; }
  .sheet { top: 8px; bottom: 8px; left: 8px; right: 8px; grid-template-rows: auto 1fr; }
  .sheet-l { padding: 24px 20px 12px; }
  .sheet-r { padding: 12px 20px 80px; }
  .sheet .prevnext { left: 0; right: 0; bottom: 0; padding: 14px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 40%); }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .card img { transition: none; }
  .sheet { transition: none !important; }
}

/* 카드 속 「웹사이트 화면」: 1368×782 로 짜고 0.5 배 축소해 1.75:1 카드에 꼭 맞춘다 */
.screen { position: absolute; left: 0; top: 0; width: 1368px; height: 782px; transform: scale(var(--ms, .5)); transform-origin: 0 0; display: grid; grid-template-rows: 56px 1fr; font-family: var(--font); transition: transform .6s var(--ease); }
.screen.paper { background: #efe9e4; color: #241a18; }
.screen.dark { background: #16110f; color: #efe7e2; }
.s-nav { display: flex; justify-content: space-between; align-items: center; padding: 0 40px; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.s-nav .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.s-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding: 30px 40px 40px; align-items: center; }
.s-copy { display: grid; gap: 22px; }
.s-eye { font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.s-copy h3 { font-size: 64px; font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.s-p { font-size: 22px; line-height: 1.5; opacity: .8; max-width: 540px; }
.s-btn { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 999px; font-size: 20px; font-weight: 600; background: var(--accent); color: #16110f; width: max-content; }
.s-img { height: 620px; border-radius: 24px; overflow: hidden; background: rgba(127,127,127,.2); }
.s-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .corner.bl, .corner.br { background: #000; padding: 10px 0 0; }
  .corner.bl { left: 0; right: 0; padding-left: var(--edge); bottom: 0; height: 52px; }
  .corner.br { bottom: 0; height: 52px; padding-right: 0; background: transparent; }
}
