/* 템플릿 갤러리 — 프리미엄 톤 (남색·아이보리·골드), 큰 글씨, 고딕 */
:root {
  --ink: #111318; --night: #0d1016; --night-2: #171b24;
  --text: #2a2d33; --muted: #62666e;
  --paper: #fbfaf7; --ivory: #f3efe7; --line: #e3ddd1; --line-dark: rgba(255,255,255,.12);
  --gold: #b39566; --gold-soft: #d8c4a0; --gold-dark: #977a4e;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1360px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); font-size: 18px; line-height: 1.75; word-break: keep-all; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.g-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

.g-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--latin); font-style: italic; font-size: 24px; font-weight: 500; color: var(--gold); }
.g-eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

/* buttons */
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.gbtn--gold { background: var(--gold); color: #fff; }
.gbtn--gold:hover { background: var(--gold-dark); }
.gbtn--line { border-color: var(--ink); color: var(--ink); }
.gbtn--line:hover { background: var(--ink); color: #fff; }
.gbtn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.gbtn--light:hover { background: #fff; color: var(--ink); }

/* header */
.g-header { position: sticky; top: 0; z-index: 30; background: rgba(13,16,22,.94); backdrop-filter: blur(8px); color: #fff; border-bottom: 1px solid var(--line-dark); }
.g-header__inner { height: 78px; display: flex; align-items: center; gap: 32px; }
.g-brand { display: flex; align-items: center; gap: 14px; }
.g-mark { width: 42px; height: 28px; fill: none; stroke: var(--gold-soft); stroke-width: 1.8; overflow: visible; }
.g-mono { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--gold-soft); border-radius: 50%; font-family: var(--latin); font-size: 15px; font-weight: 600; letter-spacing: .06em; color: var(--gold-soft); }
.g-mark path:last-child { stroke: #fff; }
.g-brand b { display: block; font-family: var(--latin); font-size: 25px; font-weight: 600; letter-spacing: .24em; line-height: 1; }
.g-brand small { display: block; margin-top: 5px; font-size: 12px; letter-spacing: .14em; opacity: .7; }
.g-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 17px; font-weight: 600; }
.g-nav a:hover { color: var(--gold-soft); }
.g-nav__tel { font-family: var(--latin); font-size: 21px; font-weight: 500; color: var(--gold-soft); letter-spacing: .02em; }
.g-nav__cta { height: 44px; padding: 0 22px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.5); }
.g-nav__cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

/* hero */
.g-hero { background: var(--night); color: #fff; padding: 110px 0 96px; position: relative; overflow: hidden; }
.g-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(179,149,102,.22), transparent 55%); }
.g-hero .g-wrap { position: relative; }
.g-hero h1 { margin-top: 22px; font-size: clamp(42px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.2; }
.g-hero__lead { margin-top: 26px; max-width: 760px; font-size: 21px; color: rgba(255,255,255,.82); }
.g-hero__facts { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.g-hero__facts li { padding: 28px 0 0 28px; border-left: 1px solid var(--line-dark); }
.g-hero__facts li:first-child { padding-left: 0; border-left: 0; }
.g-hero__facts b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--gold-soft); }
.g-hero__facts span { display: block; margin-top: 8px; font-size: 17px; color: rgba(255,255,255,.72); }

/* toolbar */
.g-designs { padding: 88px 0 120px; }
.g-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-bottom: 28px; margin-bottom: 44px; border-bottom: 1px solid var(--ink); }
.g-filter, .g-toneall__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 1px solid var(--line); background: #fff; font-size: 16.5px; font-weight: 600; color: var(--muted); transition: .25s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.g-toneall { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.g-toneall > span { font-size: 15px; font-weight: 600; color: var(--muted); }

/* swatch */
.sw { display: inline-flex; flex: none; }
.sw i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.sw i + i { margin-left: -5px; }

/* grid & cards */
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card:hover { box-shadow: 0 28px 60px rgba(17,19,24,.10); }
.card.is-hidden { display: none; }
.card__shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10.4; background: var(--ivory); overflow: hidden; text-align: left; }
.card__pc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), opacity .35s; }
.card__mobile { position: absolute; right: 5%; bottom: -14%; width: 21%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border: 5px solid #111; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.35); transition: transform .8s var(--ease), opacity .35s; }
.card__shot:hover .card__pc { transform: scale(1.03); }
.card__shot:hover .card__mobile { transform: translateY(-6%); }
.card__shot.is-swapping img { opacity: .2; }
.card__hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,16,22,.35); opacity: 0; transition: opacity .35s; }
.card__hover span { padding: 12px 26px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; }
.card__shot:hover .card__hover, .card__shot:focus-visible .card__hover { opacity: 1; }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--muted); }
.card__body { padding: 34px 38px 38px; display: flex; flex-direction: column; flex: 1; }
.card__industry { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.card__title { margin-top: 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); line-height: 1.3; }
.card__title small { margin-left: 12px; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.card__desc { margin-top: 12px; color: var(--text); font-size: 17px; }
.card__sections { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__sections li { padding: 4px 12px; background: var(--ivory); font-size: 14.5px; color: var(--text); }
.card__sections li.is-form { background: none; border: 1px solid var(--gold); color: var(--gold-dark); font-weight: 600; }
.card__tones { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tone { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--muted); text-align: left; transition: .25s; }
.tone:hover { border-color: var(--ink); color: var(--ink); }
.tone.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.tone em { position: absolute; top: -10px; right: 8px; padding: 0 8px; background: var(--gold); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 20px; }
.card__actions { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.card--soon { background: var(--night); color: #fff; border: 0; padding: 48px 44px; justify-content: center; }
.card--soon .card__title { color: #fff; font-size: 34px; }
.card--soon .card__desc { color: rgba(255,255,255,.75); margin-top: 26px; }
.card--soon .gbtn { margin-top: 30px; align-self: flex-start; }
.soon { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.soon li { padding: 8px 16px; border: 1px solid var(--line-dark); font-size: 16px; color: rgba(255,255,255,.88); }

.g-tones { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.g-tone { display: flex; gap: 16px; padding: 28px 28px 0 0; }
.g-tone + .g-tone { padding-left: 28px; border-left: 1px solid var(--line); }
.g-tone .sw i { width: 20px; height: 20px; }
.g-tone b { font-size: 19px; color: var(--ink); }
.g-tone p { font-size: 16px; color: var(--muted); }

/* steps */
.g-steps { background: var(--ivory); padding: 110px 0; }
.g-steps h2, .g-cta h2 { margin-top: 18px; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.045em; color: var(--ink); line-height: 1.3; }
.g-steps ol { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.g-steps li { position: relative; padding: 36px 28px 0 0; }
.g-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); }
.g-steps i { display: block; font-family: var(--latin); font-style: italic; font-size: 42px; line-height: 1; color: var(--gold); }
.g-steps b { display: block; margin: 16px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.g-steps p { font-size: 17px; }

/* cta & footer */
.g-cta { background: var(--night); color: #fff; padding: 110px 0; }
.g-cta h2 { color: #fff; }
.g-cta p { margin-top: 14px; font-size: 19px; color: rgba(255,255,255,.75); }
.g-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; }
.g-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.g-footer { background: #08090c; color: rgba(255,255,255,.6); padding: 40px 0; font-size: 15px; }
.g-footer__note { margin-top: 6px; font-size: 14px; opacity: .75; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Preview overlay ---------- */
.pv { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #1b1e25; color: #fff; }
.pv[hidden] { display: none; }
.pv__bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 24px; background: var(--night); border-bottom: 1px solid var(--line-dark); }
.pv__title { display: flex; align-items: baseline; gap: 12px; margin-right: auto; }
.pv__title b { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.pv__title span { font-size: 15px; color: rgba(255,255,255,.6); }
.seg { display: flex; border: 1px solid var(--line-dark); }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,.7); transition: .2s; }
.seg button + button { border-left: 1px solid var(--line-dark); }
.seg button:hover { color: #fff; }
.seg button.is-on { background: #fff; color: var(--ink); }
.seg .sw i { width: 12px; height: 12px; border-color: transparent; }
.pv__acts { display: flex; align-items: center; gap: 12px; }
.pv__open { font-size: 15.5px; color: var(--gold-soft); white-space: nowrap; }
.pv__open:hover { text-decoration: underline; }
.pv__acts .gbtn { height: 44px; padding: 0 20px; font-size: 16px; }
.pv__close, .sel__close { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-dark); flex: none; }
.pv__close span, .sel__close span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.pv__close span + span, .sel__close span + span { transform: rotate(-45deg); }
.pv__close:hover { background: var(--gold); border-color: var(--gold); }
.pv__stage { position: relative; flex: 1; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 24px; }
.pv__device { position: relative; flex: none; transform-origin: top center; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.pv__device iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.pv[data-device="mobile"] .pv__device { border: 12px solid #0b0c10; border-radius: 44px; overflow: hidden; }
.pv[data-device="mobile"] .pv__stage { align-items: center; }
.pv__loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 17px; color: rgba(255,255,255,.6); pointer-events: none; }
.pv.is-loaded .pv__loading { display: none; }

/* ---------- Selection dialog ---------- */
.sel { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.sel[hidden] { display: none; }
.sel__backdrop { position: absolute; inset: 0; background: rgba(9,11,15,.62); backdrop-filter: blur(3px); }
.sel__box { position: relative; width: min(640px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--paper); padding: 44px 44px 40px; box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.sel__close { position: absolute; top: 16px; right: 16px; border-color: var(--line); color: var(--ink); }
.sel__close:hover { background: var(--ink); color: #fff; }
.sel h3 { margin-top: 10px; font-size: 32px; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); line-height: 1.3; }
.sel__img { margin-top: 22px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.sel__info { margin-top: 22px; border-top: 1px solid var(--ink); }
.sel__info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.sel__info dt { font-weight: 700; color: var(--ink); }
.sel__code { font-family: ui-monospace, Consolas, monospace; font-size: 17px; color: var(--gold-dark); font-weight: 700; }
.sel__next { margin-top: 20px; font-size: 16.5px; color: var(--text); }
.sel__btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Large screens ---------- */
@media (min-width: 1500px) {
  :root { --wrap: 1500px; }
  body { font-size: 19px; }
  .card__title { font-size: 35px; }
  .card__desc { font-size: 18.5px; }
  .g-hero__lead { font-size: 23px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g-grid { grid-template-columns: 1fr; }
  .g-toneall { align-items: flex-start; }
  .g-steps ol { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 900px) {
  .g-wrap { padding: 0 20px; }
  .g-header__inner { height: 64px; }
  .g-nav a:not(.g-nav__cta) { display: none; }
  .g-hero { padding: 72px 0 64px; }
  .g-hero__lead { font-size: 18px; }
  .g-hero__lead br { display: none; }
  .g-hero__facts { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .g-hero__facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .g-hero__facts li { padding-bottom: 20px; }
  .g-hero__facts b { font-size: 34px; }
  .g-designs { padding: 56px 0 88px; }
  .g-filter, .g-toneall__btns { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .g-toneall { width: 100%; }
  .chip { flex: none; }
  .card__body { padding: 26px 22px 28px; }
  .card__title { font-size: 27px; }
  .card__title small { display: block; margin: 2px 0 0; }
  .card__tones { grid-template-columns: 1fr; }
  .card__actions { grid-template-columns: 1fr; }
  .card--soon { padding: 36px 24px; }
  .g-tones { grid-template-columns: 1fr; }
  .g-tone, .g-tone + .g-tone { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .g-steps, .g-cta { padding: 76px 0; }
  .g-steps ol { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); padding-left: 26px; row-gap: 32px; }
  .g-steps li { padding: 0; }
  .g-steps li::before { top: 8px; left: -31px; }
  .g-cta__btns .gbtn { flex: 1 1 100%; }
  .pv__bar { padding: 10px 12px; gap: 8px; }
  .pv__title { width: 100%; }
  .pv__title span { display: none; }
  .pv__tones { order: 3; width: 100%; }
  .pv__tones button { flex: 1; justify-content: center; gap: 6px; padding: 0 6px; font-size: 13.5px; }
  .pv__tones .sw { display: none; }
  .pv__open { display: none; }
  .pv__acts { margin-left: auto; }
  .pv__acts .gbtn { padding: 0 14px; font-size: 15px; }
  .pv__stage { padding: 12px; }
  .sel__box { padding: 34px 22px 28px; }
  .sel h3 { font-size: 26px; padding-right: 40px; }
  .sel__info div { grid-template-columns: 1fr; gap: 2px; }
  .sel__btns .gbtn { flex: 1 1 100%; }
}
