/* ═══════════════════════════════════════════════
   GOURMAND SEOUL — 피부를 위한 미식
   Type: Pretendard (UI/body) + Noto Serif KR (display)
   ═══════════════════════════════════════════════ */

:root {
  --ink: #17140f;
  --ink-soft: #241f17;
  --paper: #f4efe5;
  --paper-deep: #ece5d6;
  --gold: #b8944f;
  --muted: #8d8371;
  --line: rgba(23, 20, 15, .14);
  --line-light: rgba(244, 239, 229, .18);
  --serif: 'Noto Serif KR', 'Noto Serif', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
  --ease: cubic-bezier(.22, .8, .26, .99);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
.serif { font-family: var(--serif); }
.only-mo { display: none; }

/* ───────── reveal (scroll/load) ───────── */
.reveal, .reveal-load {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in, .reveal-load.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ───────── display headings ───────── */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: none;
}
.display span { display: block; }
.display span:nth-child(2) { text-align: right; }
.display.light { color: var(--paper); }

.sect-heading {
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
}

/* ═══════════ HEADER ═══════════ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .5s var(--ease), color .5s var(--ease);
  color: var(--paper);
}
#header.is-solid {
  background: rgba(244, 239, 229, .92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
}
.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .28em;
}
.hd-utils { display: flex; align-items: center; gap: 1.6rem; }
.lang { font-size: .8rem; font-weight: 600; letter-spacing: .12em; opacity: .85; }
.btn-store {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .55em 1.5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .35s, color .35s;
}
#header:not(.is-solid) .btn-store:hover { background: var(--paper); color: var(--ink); }
#header.is-solid .btn-store:hover { background: var(--ink); color: var(--paper); }
.btn-menu { display: inline-flex; flex-direction: column; gap: 7px; padding: 6px 2px; }
.btn-menu span { width: 26px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.btn-menu[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.btn-menu[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* full menu */
#gnb {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--ease), visibility .55s;
  z-index: -1;
}
#gnb.is-open { opacity: 1; visibility: visible; z-index: 99; }
#gnb ul { list-style: none; display: grid; gap: clamp(1rem, 3vh, 2rem); }
#gnb li {
  display: flex; align-items: baseline; gap: 1.2rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
#gnb.is-open li { opacity: 1; transform: none; }
#gnb.is-open li:nth-child(1) { transition-delay: .12s; }
#gnb.is-open li:nth-child(2) { transition-delay: .19s; }
#gnb.is-open li:nth-child(3) { transition-delay: .26s; }
#gnb.is-open li:nth-child(4) { transition-delay: .33s; }
#gnb.is-open li:nth-child(5) { transition-delay: .40s; }
#gnb li span { font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
#gnb li a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: .04em;
  transition: color .3s;
}
#gnb li a:hover { color: var(--gold); }
#gnb li small { font-size: .82rem; color: var(--muted); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 46% at 50% 46%, rgba(23,20,15,.42) 0%, rgba(23,20,15,0) 100%),
    linear-gradient(180deg, rgba(23,20,15,.55) 0%, rgba(23,20,15,.12) 34%, rgba(23,20,15,.08) 55%, rgba(23,20,15,.72) 100%);
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-eyebrow {
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: rgba(244,239,229,.92);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7.5vw, 6.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 40px rgba(23,20,15,.55);
}
.hero-eyebrow, .hero-sub { text-shadow: 0 1px 24px rgba(23,20,15,.6); }
.hero-title .line { display: block; }
.hero-sub {
  margin-top: 1.8rem;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  letter-spacing: .16em;
  color: rgba(244,239,229,.82);
}
.reveal-load { transition-duration: 1.3s; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 7.5rem;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244,239,229,.75);
  display: grid;
  justify-items: center;
  gap: .7rem;
}
.hero-scroll i {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(var(--paper), transparent);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line-light);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(23,20,15,.35);
  backdrop-filter: blur(4px);
}
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .3em;
  color: rgba(244,239,229,.8);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ INGREDIENTS ═══════════ */
.ingredients {
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 9vw, 8rem);
  background: var(--paper);
}
.ing-frame { max-width: 1240px; margin: clamp(3rem, 6vw, 5.5rem) auto 0; }
.ing-swiper .swiper-slide {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.ing-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  width: 100%;
  overflow: visible;
}
.ing-media .main {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.ing-media .sub {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 34%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid var(--paper);
  box-shadow: 0 24px 60px rgba(23,20,15,.28);
  border-radius: 2px;
}
.ing-tag {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  z-index: 2;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--paper);
  padding: .45em 1.1em;
  border: 1px solid rgba(244,239,229,.5);
  border-radius: 999px;
  backdrop-filter: blur(3px);
  background: rgba(23,20,15,.25);
}
.ing-body .idx {
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.ing-body h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.ing-body .desc {
  font-size: .95rem;
  color: #4c463a;
  margin-bottom: 2rem;
}
.more {
  position: relative;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding-bottom: .3em;
}
.more::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.more:hover::after { transform: scaleX(.35); }

/* slide enter motion */
.ing-swiper .swiper-slide .ing-media,
.ing-swiper .swiper-slide .ing-body > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.ing-swiper .swiper-slide-active .ing-media,
.ing-swiper .swiper-slide-active .ing-body > * { opacity: 1; transform: none; }
.ing-swiper .swiper-slide-active .ing-body .idx { transition-delay: .15s; }
.ing-swiper .swiper-slide-active .ing-body h3 { transition-delay: .25s; }
.ing-swiper .swiper-slide-active .ing-body .desc { transition-delay: .35s; }
.ing-swiper .swiper-slide-active .ing-body .more { transition-delay: .45s; }

.ing-nav {
  display: flex;
  gap: .8rem;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
}
.nav-prev, .nav-next {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: background .35s, border-color .35s;
}
.nav-prev::before, .nav-next::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.nav-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.nav-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.nav-prev:hover, .nav-next:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ing-thumbs {
  max-width: 460px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.ing-thumbs .swiper-slide {
  width: 96px !important;
  cursor: pointer;
  opacity: .38;
  transition: opacity .4s;
}
.ing-thumbs .swiper-slide-thumb-active { opacity: 1; }
.ing-thumbs img {
  width: 96px; height: 120px;
  object-fit: cover;
  border-radius: 2px;
}

/* ═══════════ COLLECTION ═══════════ */
.collection {
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--paper-deep);
}
.collection .display { max-width: 1240px; margin: 0 auto; }
.coll-lead {
  max-width: 1240px;
  margin: 1.8rem auto clamp(3.2rem, 6vw, 5.5rem);
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.coll-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.prod-card { outline: none; }
.prod-card:nth-child(2) { transform: translateY(28px); }
.prod-card:nth-child(4) { transform: translateY(28px); }
.prod-card.reveal:nth-child(2).is-in,
.prod-card.reveal:nth-child(4).is-in { transform: translateY(3.2rem); }
.prod-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: #ddd5c4;
}
.prod-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease), transform 1.4s var(--ease);
}
.prod-media .over { opacity: 0; transform: scale(1.06); }
.prod-card:hover .prod-media .over,
.prod-card:focus-visible .prod-media .over,
.prod-card.is-touched .prod-media .over { opacity: 1; transform: scale(1); }
.prod-card:hover .prod-media .base,
.prod-card:focus-visible .prod-media .base,
.prod-card.is-touched .prod-media .base { transform: scale(1.05); }
.prod-info { padding: 1.3rem .2rem 0; }
.prod-info .num {
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: .5rem;
}
.prod-info h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: .3rem;
}
.prod-info .en { font-size: .8rem; color: var(--muted); margin-bottom: .55rem; }
.prod-info .price { font-size: .92rem; font-weight: 600; letter-spacing: .02em; }

/* ═══════════ TEXTURE ═══════════ */
.texture {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 5vw, 4rem);
}
.texture .display { max-width: 1240px; margin: 0 auto; }
.tex-lead {
  max-width: 1240px;
  margin: 1.8rem auto clamp(3.2rem, 6vw, 5.5rem);
  font-size: .95rem;
  color: rgba(244,239,229,.6);
  letter-spacing: .04em;
}
.tex-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.tex-card { position: relative; overflow: hidden; border-radius: 2px; }
.tex-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.tex-card:hover video { transform: scale(1.04); }
.tex-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem .2rem 0;
  font-size: .88rem;
  color: rgba(244,239,229,.85);
}
.tex-card figcaption em {
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--gold);
}

/* ═══════════ STORY ═══════════ */
.story {
  background: var(--paper);
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 5vw, 4rem);
}
.story-head { max-width: 1240px; margin: 0 auto; }
.story-copy {
  max-width: 880px;
  margin: clamp(3rem, 7vw, 6rem) auto;
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.75;
}
.story-copy span { display: inline; }
.story-foot {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.story-foot .small { font-size: .82rem; color: var(--muted); }
.story-foot .links { display: flex; gap: 1.8rem; }
.story-foot .links a {
  font-size: .88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .15em;
}

/* ═══════════ CONTACT ═══════════ */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}
.contact .display { max-width: 1240px; margin: 0 auto; }
.contact .display span { text-align: left; }
.contact-cont {
  max-width: 1240px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  display: grid;
  gap: .5rem;
}
.contact-cont .addr { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.contact-cont .mail, .contact-cont .hours { font-size: .9rem; color: rgba(244,239,229,.65); }

/* ═══════════ FOOTER ═══════════ */
#footer { background: var(--ink); color: var(--paper); }
.ft-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 3rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ft-logo { font-family: var(--serif); letter-spacing: .28em; font-size: .95rem; }
.ft-body .copy, .ft-body .terms { font-size: .74rem; color: rgba(244,239,229,.55); }
.ft-body .terms { text-decoration: underline; text-underline-offset: 3px; }
.btn-reserve {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: .2em;
  transition: letter-spacing .5s var(--ease), background .4s;
}
.btn-reserve:hover { letter-spacing: .34em; background: #cfa75d; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .coll-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-card.reveal:nth-child(2).is-in,
  .prod-card.reveal:nth-child(4).is-in { transform: translateY(0); }
}
@media (max-width: 768px) {
  .only-mo { display: inline; }
  .ing-swiper .swiper-slide { grid-template-columns: 1fr; gap: 3.2rem; }
  .ing-media { max-height: none; }
  .ing-media .sub { right: 4%; }
  .ing-nav { position: static; justify-content: center; margin-top: 2rem; }
  .tex-grid { grid-template-columns: 1fr; }
  .story-foot { flex-direction: column; align-items: flex-start; }
  .hero-scroll { bottom: 6rem; }
}
@media (max-width: 520px) {
  .coll-grid { grid-template-columns: 1fr; }
  .hd-inner { padding: 1.1rem 1.1rem; }
  .hd-utils { gap: .9rem; }
  .lang { display: none; }
  .logo { font-size: .88rem; letter-spacing: .18em; }
  .btn-store { padding: .5em 1.1em; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-load { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
