/* ============================================
   금섬당 · 먹과 금 (Ink & Gold)
   색을 바꾸고 싶으면 아래 :root 의 값만 고치면 됩니다.
   ============================================ */
:root {
  --ink: #0c0b09;
  --ink-2: #14120e;
  --ink-3: #1c1913;
  --gold: #c9a862;
  --gold-hi: #ecd9a8;
  --gold-lo: #8a6f3b;
  --paper: #f2ebdd;
  --text: rgba(242, 235, 221, .86);
  --muted: rgba(242, 235, 221, .56);
  --line: rgba(201, 168, 98, .28);
  --serif-kr: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --pad: clamp(22px, 6vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.85;
  letter-spacing: -.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.gold {
  background: linear-gradient(100deg, var(--gold-lo), var(--gold-hi) 45%, var(--gold) 70%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 공통 제목 ---------- */
.eyebrow {
  font-family: var(--serif-en);
  font-size: 15.5px;
  letter-spacing: .34em;
  color: var(--gold);
  margin-bottom: 18px;
}
.h2 {
  font-weight: 400;
  font-size: clamp(30px, 8.1vw, 46px);
  line-height: 1.45;
  color: var(--paper);
  letter-spacing: -.02em;
}
.en { font-family: var(--serif-en); font-style: italic; font-weight: 400; letter-spacing: 0; }

section { padding: clamp(84px, 16vw, 150px) var(--pad); position: relative; }

/* ---------- 상단 메뉴 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav--solid { background: rgba(12, 11, 9, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.nav__brand { font-family: var(--serif-en); font-weight: 500; letter-spacing: .3em; font-size: 17px; color: var(--gold-hi); }
.nav__links { display: none; gap: 30px; font-size: 17px; color: var(--muted); }
.nav__links a:hover { color: var(--gold-hi); }
@media (min-width: 760px) { .nav__links { display: flex; } }

/* ---------- 1. 첫 화면 ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-top: 96px; padding-bottom: 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 38%, rgba(201,168,98,.16), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(90,60,20,.35), transparent 60%),
    var(--ink);
}
.hero__glow {
  position: absolute; left: 50%; top: 34%; width: 520px; height: 520px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(236,217,168,.12), transparent 62%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
.hero__stars, .hero__stars::before, .hero__stars::after {
  position: absolute; inset: 0; pointer-events: none;
  background-repeat: repeat;
}
.hero__stars {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(236,217,168,.8), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(236,217,168,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 64%, rgba(236,217,168,.7), transparent 60%),
    radial-gradient(1px 1px at 22% 72%, rgba(236,217,168,.5), transparent 60%),
    radial-gradient(1px 1px at 55% 88%, rgba(236,217,168,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 8%, rgba(236,217,168,.6), transparent 60%),
    radial-gradient(1px 1px at 66% 40%, rgba(236,217,168,.4), transparent 60%),
    radial-gradient(1px 1px at 8% 46%, rgba(236,217,168,.5), transparent 60%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.hero__stars::before {
  content: '';
  background-image:
    radial-gradient(1px 1px at 30% 30%, rgba(236,217,168,.6), transparent 60%),
    radial-gradient(1px 1px at 92% 30%, rgba(236,217,168,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 16% 90%, rgba(236,217,168,.6), transparent 60%),
    radial-gradient(1px 1px at 72% 78%, rgba(236,217,168,.5), transparent 60%),
    radial-gradient(1px 1px at 48% 56%, rgba(236,217,168,.3), transparent 60%);
  animation: twinkle 7s 1.5s ease-in-out infinite alternate;
}
.hero__inner { position: relative; z-index: 2; max-width: 620px; }

.seal { position: relative; width: 168px; height: 168px; margin: 0 auto 30px; color: var(--gold); }
.seal__ring { position: absolute; inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); color: var(--gold); opacity: .55; animation: spin 60s linear infinite; }
.seal__logo { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(201,168,98,.25)); }
.seal__arc { font-family: var(--serif-en); font-size: 17px; font-weight: 500; letter-spacing: 4px; fill: var(--gold-hi); }
.seal__small { font-family: var(--serif-en); font-style: italic; font-size: 10.5px; fill: var(--gold); letter-spacing: .5px; }

.hero__kr { font-size: 18px; letter-spacing: .8em; color: var(--gold); margin-bottom: 14px; padding-left: .5em; }
.hero__title {
  font-family: var(--serif-en); font-weight: 400;
  font-size: clamp(42.5px, 11.6vw, 77px); line-height: 1.12; letter-spacing: -.005em;
  color: var(--paper);
}
.hero__title em { font-style: italic; color: var(--gold-hi); }

.notice {
  margin: 38px auto 34px; padding: 26px 22px 24px; max-width: 420px;
  border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(180deg, rgba(28,25,19,.72), rgba(20,18,14,.5));
  position: relative;
}
.notice::before, .notice::after {
  content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid var(--gold);
}
.notice::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.notice::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.notice__tag {
  display: inline-block; font-family: var(--serif-en); font-size: 14px; letter-spacing: .4em;
  color: var(--ink); background: var(--gold); padding: 3px 10px 2px 14px; margin-bottom: 14px;
}
.notice__title { font-size: 24px; font-weight: 400; color: var(--paper); line-height: 1.6; }
.notice__text { margin-top: 10px; font-size: 18px; color: var(--muted); line-height: 1.8; }

.btn {
  display: inline-block; padding: 16px 32px; font-size: 18px; letter-spacing: .04em;
  color: var(--ink); background: linear-gradient(100deg, var(--gold-lo), var(--gold-hi) 50%, var(--gold));
  background-size: 200% 100%; background-position: 100% 0;
  border-radius: 999px; transition: background-position .6s, transform .3s;
  font-weight: 400;
}
.btn:hover { background-position: 0 0; transform: translateY(-1px); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--serif-en); font-size: 13.5px; letter-spacing: .4em; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }

/* ---------- 2. 브랜드 이야기 ---------- */
.story { display: grid; gap: 44px; max-width: 1080px; margin: 0 auto; align-items: center; }
.story__photo { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.story__photo::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); z-index: 0;
}
.story__photo img { position: relative; z-index: 1; width: 100%; filter: saturate(.9) contrast(1.02); }
.story__text p:not(.eyebrow) { margin-top: 18px; color: var(--text); }
.story__text .h2 { margin-bottom: 8px; }
.story__em { color: var(--gold-hi) !important; font-weight: 400; font-size: 22px; }
.story__en { font-family: var(--serif-en); font-style: italic; font-size: 21px; line-height: 1.7; color: var(--muted) !important; border-left: 1px solid var(--line); padding-left: 16px; margin-top: 30px !important; }
.story__en br { display: none; }
p { text-wrap: pretty; }
.h2, .notice__title { text-wrap: balance; }
@media (min-width: 860px) { .story { grid-template-columns: 1fr 1.1fr; gap: 80px; } .story__en br { display: inline; } }

/* ---------- 3. 비보 ---------- */
.bibo {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(201,168,98,.08), transparent 70%),
    var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.bibo__chars { display: flex; justify-content: center; gap: clamp(28px, 10vw, 90px); margin: 50px 0 46px; }
.bibo__char { display: flex; flex-direction: column; align-items: center; }
.bibo__han {
  font-family: var(--serif-kr); font-weight: 600; font-size: clamp(85px, 24.6vw, 154px); line-height: 1;
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(201,168,98,.18));
}
.bibo__read { margin-top: 14px; font-size: 20.5px; color: var(--paper); letter-spacing: .2em; }
.bibo__mean { font-size: 17.5px; color: var(--muted); }
.bibo__text { max-width: 560px; margin: 0 auto 20px; color: var(--text); }

/* ---------- 4. 금섬당의 방식 ---------- */
.way { max-width: 1080px; margin: 0 auto; text-align: center; }
.way__list { list-style: none; padding: 0; margin: 54px 0 0; display: grid; gap: 18px; text-align: left; }
.way__item {
  position: relative; padding: 30px 24px 28px;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color .4s, transform .4s;
}
.way__item:hover { border-color: rgba(201,168,98,.6); transform: translateY(-3px); }
.way__num { font-size: 34px; color: var(--gold); opacity: .9; display: block; margin-bottom: 12px; font-weight: 400; }
.way__item h3 { font-weight: 400; font-size: 23.5px; margin-top: 0; color: var(--paper); margin-bottom: 10px; }
.way__item p { font-size: 19px; color: var(--muted); line-height: 1.85; }
@media (min-width: 860px) { .way__list { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ---------- 5. 세 가지 기운 ---------- */
.energy { text-align: center; background: var(--ink-2); border-top: 1px solid var(--line); }
.energy__grid { display: grid; gap: 22px; max-width: 1080px; margin: 54px auto 0; }
.card { background: var(--paper); color: #2a241a; text-align: left; overflow: hidden; }
.card__img { background: #fff; overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 800 / 620; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px 24px 28px; border-top: 1px solid rgba(138,111,59,.3); position: relative; }
.card__han { position: absolute; right: 20px; top: 14px; font-size: 42px; line-height: 1; color: rgba(138,111,59,.28); font-weight: 600; }
.card h3 { font-weight: 600; font-size: 24.5px; color: #1a150d; margin-bottom: 8px; letter-spacing: .02em; }
.card p { font-size: 18px; line-height: 1.85; color: #5b5142; }
@media (min-width: 760px) { .energy__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 6. 사진 ---------- */
.gallery { text-align: center; padding-left: 0; padding-right: 0; }
.gallery .h2 { font-size: clamp(34.5px, 9.2vw, 53px); color: var(--gold-hi); padding: 0 var(--pad); }
.gallery__row {
  display: flex; gap: 12px; margin-top: 48px; padding: 0 var(--pad) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery__row::-webkit-scrollbar { display: none; }
.gallery__row figure { margin: 0; flex: 0 0 68%; scroll-snap-align: center; overflow: hidden; background: #fff; }
.gallery__row img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery__row figure:hover img { transform: scale(1.04); }
@media (min-width: 860px) {
  .gallery__row { max-width: 1240px; margin-left: auto; margin-right: auto; overflow: visible; }
  .gallery__row figure { flex: 1 1 0; }
  .gallery__row figure:nth-child(even) { margin-top: 48px; }
}

/* ---------- 7. 소식 받기 ---------- */
.news { text-align: center; }
.news__box {
  max-width: 620px; margin: 0 auto; padding: 52px clamp(20px, 5vw, 48px) 44px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,98,.12), transparent 70%), var(--ink-2);
}
.news__star { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 20px; animation: breathe 4s ease-in-out infinite; }
.news__text { margin: 18px 0 34px; color: var(--muted); font-size: 19px; }
.links { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.links a {
  display: grid; grid-template-columns: 116px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  padding: 16px 30px 16px 4px; border-bottom: 1px solid var(--line); position: relative;
  transition: background .3s, padding-left .3s;
}
.links a::after { content: '→'; position: absolute; right: 8px; top: 50%; translate: 0 -50%; color: var(--gold); transition: right .3s; }
.links a:hover { background: rgba(201,168,98,.06); padding-left: 10px; }
.links a:hover::after { right: 4px; }
.links__label { grid-row: span 2; align-self: center; font-family: var(--serif-en); font-size: 17px; letter-spacing: .12em; color: var(--gold); }
.links__id { color: var(--paper); font-size: 19.5px; font-weight: 400; overflow-wrap: anywhere; line-height: 1.5; }
.links__desc { color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ---------- 바닥 ---------- */
.footer { text-align: center; padding: 48px var(--pad) calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__brand { font-family: var(--serif-en); letter-spacing: .4em; font-size: 17px; color: var(--gold); padding-left: .4em; }
.footer__copy { margin-top: 8px; font-size: 15.5px; color: var(--muted); font-family: var(--serif-en); letter-spacing: .06em; }

/* 휴대폰: 글자가 커진 만큼 억지 줄바꿈 빼고 자연스럽게 */
@media (max-width: 600px) {
  .story__text p br, .card p br, .news__text br { display: none; }
  .notice { padding: 26px 16px 24px; }
  .news__box { padding: 44px 18px 36px; }
  .links a { grid-template-columns: 1fr; padding: 16px 34px 16px 4px; }
  .links__label { grid-row: auto; font-size: 14px; }
  .links__id--mail { font-size: 16px; overflow-wrap: normal; white-space: nowrap; letter-spacing: -.02em; }
}

/* ---------- PC 전용 글자 크기 (넓은 화면만, 휴대폰은 영향 없음) ---------- */
@media (min-width: 1024px) {
  body { font-size: 23px; }
  .eyebrow { font-size: 17px; }
  .h2 { font-size: 54px; }
  .nav__brand { font-size: 18px; }
  .nav__links { font-size: 18px; gap: 36px; }
  .hero__inner { max-width: 820px; }
  .hero__kr { font-size: 20px; }
  .hero__title { font-size: 88px; }
  .notice { max-width: 540px; padding: 32px 30px 30px; }
  .notice__tag { font-size: 15px; }
  .notice__title { font-size: 29px; }
  .notice__text { font-size: 21px; }
  .btn { font-size: 20px; padding: 18px 38px; }
  .hero__scroll { font-size: 14px; }
  .story, .way { max-width: 1240px; }
  .story__em { font-size: 26px; }
  .story__en { font-size: 24px; }
  .bibo__text { max-width: 720px; }
  .bibo__read { font-size: 24px; }
  .bibo__mean { font-size: 20px; }
  .way__item { padding: 38px 32px 36px; }
  .way__item h3 { font-size: 28px; }
  .way__item p { font-size: 20.5px; }
  .energy__grid { max-width: 1240px; }
  .card__body { padding: 30px 30px 34px; }
  .card h3 { font-size: 29px; }
  .card p { font-size: 20px; }
  .gallery .h2 { font-size: 62px; }
  .news__box { max-width: 780px; }
  .news__text { font-size: 22px; }
  .links a { grid-template-columns: 140px 1fr; }
  .links__label { font-size: 18px; }
  .links__id { font-size: 22px; }
  .links__desc { font-size: 18px; }
  .footer__brand { font-size: 18px; }
  .footer__copy { font-size: 16px; }
}
/* ---------- 움직임 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.on { opacity: 1; transform: none; }
.hero__inner > * { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero__inner > :nth-child(2) { animation-delay: .15s; }
.hero__inner > :nth-child(3) { animation-delay: .3s; }
.hero__inner > :nth-child(4) { animation-delay: .5s; }
.hero__inner > :nth-child(5) { animation-delay: .7s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
