/* =========================================================================
   & Mineral Show · GeoArchive — landing styles
   테마: "Geo Archive" 빈티지 양피지 + 무지개 삼엽충 (공식 로고/포스터 기반)
   재테마링은 아래 :root 변수만 교체하면 됩니다.
   ========================================================================= */

:root {
  /* --- parchment / ink --- */
  --paper:      #e9dcbe;   /* 기본 양피지 */
  --paper-deep: #e1d0a9;   /* 교차 섹션 */
  --paper-hi:   #f4ebd4;   /* 카드/하이라이트 */
  --paper-edge: #ccb384;   /* 프레임 근처 짙은 가장자리 */
  --ink:        #2b1d0e;   /* 본문 (짙은 세피아) */
  --ink-2:      #4c3920;   /* 보조 */
  --ink-soft:   #6f5b3e;   /* 흐린 텍스트 */

  /* --- frame / gold --- */
  --frame:      #1d1510;   /* 어두운 프레임 */
  --frame-2:    #2c1e12;
  --gold:       #a8813f;   /* 청동/금장 */
  --gold-hi:    #d2a85f;
  --gold-deep:  #7c5d2a;

  /* --- jewel accents --- */
  --amethyst:    #6f3fa0;
  --amethyst-hi: #9b6fcf;

  /* --- rainbow (삼엽충 로고) --- */
  --c-red:#d6392c; --c-orange:#ea8a1e; --c-yellow:#e3b52e;
  --c-green:#4fa83c; --c-teal:#15a0bf; --c-blue:#356fce; --c-violet:#7d3fa8;

  --line:     rgba(60, 42, 20, 0.20);
  --line-hi:  rgba(255, 248, 230, 0.40);
  --shadow:   0 18px 50px -22px rgba(35, 24, 10, 0.55);

  /* --- type --- */
  --f-display: "Cinzel", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --f-serif:   "Cormorant Garamond", "Nanum Myeongjo", Georgia, "Apple SD Gothic Neo", serif;
  --f-han:     "Nanum Myeongjo", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --f-brand:   "Gelasio", "Cormorant Garamond", Georgia, "Nanum Myeongjo", serif;
  --f-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
               "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;

  /* --- layout / motion --- */
  --maxw: 1020px;
  --pad: clamp(20px, 5vw, 48px);
  --reveal-dist: 26px;
  --reveal-time: 760ms;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.7;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 250, 235, 0.55), transparent 60%),
    radial-gradient(130% 120% at 50% 120%, rgba(120, 86, 40, 0.18), transparent 55%),
    linear-gradient(180deg, #eadcbd 0%, #e5d6b4 45%, #e0cfa9 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 종이 결 (SVG 터뷸런스) — 전체에 은은하게 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.26'/%3E%3C/svg%3E");
}
/* 가장자리 비네팅 (포스터 느낌) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(140% 100% at 50% 50%, transparent 62%, rgba(70, 48, 22, 0.16) 100%);
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--frame);
  color: var(--paper-hi);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- shared ornaments ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--f-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: "✦ "; color: var(--amethyst); }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}
.divider--center { justify-content: center; }
.divider__gem {
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--amethyst-hi), var(--amethyst));
  box-shadow: 0 0 0 3px rgba(168, 129, 63, 0.25);
  flex: 0 0 auto;
}

/* 고풍 모서리 브래킷 (포스터 프레임 모티프) */
.corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold);
  opacity: 0.9;
  pointer-events: none;
}
.corner::before {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1.5px solid var(--gold);
}
.corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.corner.tl::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.corner.tr::before { top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.corner.bl::before { bottom: 5px; left: 5px; border-right: 0; border-top: 0; }
.corner.br::before { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: var(--f-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, background-color 200ms ease,
    border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.btn--primary {
  background: linear-gradient(180deg, var(--frame-2), var(--frame));
  color: var(--paper-hi);
  border-color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(210, 168, 95, 0.35), 0 10px 24px -14px rgba(30, 21, 10, 0.8);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 16px 30px -16px rgba(30, 21, 10, 0.85); }
.btn--ghost {
  background: rgba(255, 250, 235, 0.25);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(168, 129, 63, 0.16); border-color: var(--gold-deep); }
.btn--lg { padding: 16px 34px; font-size: 0.95rem; }
.btn:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 3px; }

/* ---------- site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(233, 220, 190, 0.82);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: auto; height: 34px; filter: drop-shadow(0 2px 4px rgba(40, 26, 10, 0.3)); }
.brand__name {
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand__name small {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.30em;
  color: var(--gold-deep);
  margin-top: 3px;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--f-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold); transition: width 220ms var(--reveal-ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
@media (max-width: 620px) { .nav { display: none; } }

/* ---------- hero (포스터형 프레임 패널) ---------- */
.hero { padding: clamp(28px, 6vw, 60px) 0 clamp(40px, 7vw, 76px); }
.hero__frame {
  position: relative;
  border: 10px solid var(--frame);
  border-radius: 3px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 251, 238, 0.7), transparent 55%),
    linear-gradient(180deg, var(--paper-hi), var(--paper) 55%, var(--paper-deep));
  box-shadow: var(--shadow), inset 0 0 0 2px var(--gold), inset 0 0 0 3px var(--frame-2);
  padding: clamp(40px, 7vw, 78px) clamp(22px, 5vw, 60px) clamp(34px, 6vw, 62px);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 36% at 50% 38%, rgba(155, 111, 207, 0.20), transparent 70%),
    radial-gradient(55% 45% at 50% 40%, rgba(210, 168, 95, 0.14), transparent 70%);
}
.hero__logo {
  width: clamp(150px, 26vw, 252px);
  margin: 0 auto clamp(14px, 2.5vw, 26px);
  filter: drop-shadow(0 14px 26px rgba(40, 26, 10, 0.34));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero__title {
  margin: 0;
  font-family: var(--f-brand);
  font-weight: 800;
  font-size: clamp(2.05rem, 6.8vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero__title-en {
  display: block;
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.82rem, 2.4vw, 1.18rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero__lede {
  margin: 6px auto 0;
  max-width: 40ch;
  font-family: var(--f-serif);
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__actions { margin-top: clamp(22px, 4vw, 34px); display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__note { margin: 20px 0 0; font-size: 0.86rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.scroll-hint {
  width: 24px; height: 40px;
  margin: clamp(20px, 4vw, 34px) auto 0;
  border: 2px solid var(--gold);
  border-radius: 13px;
  position: relative;
  opacity: 0.85;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--amethyst);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; } 70% { opacity: 0; transform: translateY(13px); } 100% { opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 11vh, 124px); }
.section + .section { border-top: 1px solid var(--line); }
.section--alt {
  background:
    linear-gradient(180deg, rgba(202, 178, 130, 0.22), rgba(202, 178, 130, 0.10));
}
.section__head { max-width: 62ch; }
.section--center .section__head { margin-inline: auto; text-align: center; }
.section__title {
  margin: 6px 0 0;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.section__body { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 1rem; }
.section--center .section__body { margin-inline: auto; }
.section__hint { margin: 20px 0 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- specimen cards ---------- */
.cards {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--paper-hi), var(--paper));
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: 30px 26px 28px;
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 14px 30px -22px rgba(35, 24, 10, 0.6);
  transition: transform 220ms var(--reveal-ease), box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--line-hi), 0 22px 38px -22px rgba(35, 24, 10, 0.66); }
.card__num {
  font-family: var(--f-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
  color: var(--gold-deep);
}
.card__icon {
  width: 44px; height: 44px; margin: 14px 0 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.35rem; line-height: 1;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 6px 14px -7px rgba(30,21,10,0.7);
}
.card:nth-child(1) .card__icon { background: linear-gradient(150deg, var(--c-red), var(--c-orange)); }
.card:nth-child(2) .card__icon { background: linear-gradient(150deg, var(--c-green), var(--c-teal)); }
.card:nth-child(3) .card__icon { background: linear-gradient(150deg, var(--c-blue), var(--c-violet)); }
.card__title { margin: 0 0 8px; font-family: var(--f-serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.card__text { margin: 0; color: var(--ink-2); }

/* ---------- poster feature ---------- */
.poster {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.poster__figure {
  position: relative;
  margin: 0;
  /* 포스터 이미지에 이미 고풍 액자가 있어 외곽 프레임은 생략 — 부드러운 그림자만 */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  justify-self: center;
}
/* 원본 포스터 비율(864×1222 ≈ A판형) 고정 — 어떤 폭에서도 왜곡 없음 */
.poster__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 864 / 1222;
  object-fit: cover;
  border-radius: 1px;
}
.poster__cap {
  margin: 14px 0 0; text-align: center;
  font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-deep);
}
@media (max-width: 760px) {
  .poster { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .poster__text { max-width: 42ch; }
  .poster__figure { order: -1; max-width: 320px; margin-inline: auto; justify-self: center; }
  .poster .divider { justify-content: center; }
}

/* ---------- info plates ---------- */
.info-grid {
  display: grid; gap: 18px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.info-item {
  position: relative;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, var(--paper-hi), var(--paper));
  border: 1px solid var(--gold);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.info-item__label {
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep);
}
.info-item__value { display: block; margin-top: 8px; font-family: var(--f-serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.info-item__value em { font-style: normal; color: var(--ink-soft); font-size: 0.86rem; font-family: var(--f-body); font-weight: 400; }

/* ---------- contact ---------- */
.section--contact { text-align: center; }
.contact__addr { margin: 22px 0 0; }
.contact__addr a {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 1px;
}
.contact__addr a:hover { color: var(--ink); border-color: var(--gold-deep); }

/* ---------- footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--frame), #150f0a);
  color: rgba(243, 234, 210, 0.78);
  padding-block: 34px;
  border-top: 2px solid var(--gold-deep);
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  justify-content: space-between; align-items: center;
}
.footer__brand { display: inline-flex; align-items: center; gap: 11px; }
.footer__brand img { width: auto; height: 30px; }
.footer__brand span { font-family: var(--f-brand); font-weight: 700; color: var(--paper-hi); font-size: 1rem; }
.footer a { color: var(--gold-hi); text-decoration: none; }
.footer a:hover { color: var(--paper-hi); }
.footer__meta { font-size: 0.86rem; }

/* =========================================================================
   Scroll-reveal — JS 있을 때만 숨김→등장
   ========================================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-dist));
  transition: opacity var(--reveal-time) var(--reveal-ease),
    transform var(--reveal-time) var(--reveal-ease);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint span, .hero__logo { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- contact modal (팝업) ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(24, 16, 8, 0.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: modalfade 220ms ease;
}
.modal__card {
  position: relative;
  width: 100%; max-width: 440px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 251, 238, 0.7), transparent 55%),
    linear-gradient(180deg, var(--paper-hi), var(--paper) 60%, var(--paper-deep));
  border: 8px solid var(--frame);
  border-radius: 4px;
  box-shadow: var(--shadow), inset 0 0 0 2px var(--gold);
  padding: clamp(26px, 5vw, 40px);
  text-align: center;
  animation: modalpop 280ms var(--reveal-ease);
}
.modal__close {
  position: absolute; top: 6px; right: 12px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--ink-soft);
}
.modal__close:hover { color: var(--ink); }
.modal__close:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 2px; }
.modal__title { margin: 4px 0 0; font-family: var(--f-serif); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.modal .divider { margin: 14px 0; }
.modal__text { margin: 0 0 4px; color: var(--ink-2); font-size: 0.98rem; }
.modal__mailrow {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin: 10px 0 18px; padding: 14px 16px;
  background: rgba(255, 250, 235, 0.5);
  border: 1px solid var(--line); border-radius: 8px;
}
.modal__addr {
  font-family: var(--f-body);
  font-size: 1.04rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink);
  user-select: all; word-break: break-all; min-width: 0;
}
.modal__addr:focus { outline: none; }
.modal__copy { padding: 9px 16px; font-size: 0.72rem; }
.modal__cta { width: 100%; justify-content: center; }
.modal__hint { margin: 14px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
@keyframes modalfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalpop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__card { animation: none; }
}
