:root {
  --bg: #12070a;
  --bg-2: #1a0b10;
  --bg-3: #241016;
  --wine: #6b1c2e;
  --wine-deep: #3d1018;
  --wine-lit: #9a3148;
  --ivory: #f4e8da;
  --ivory-dim: #cbb7a6;
  --line: rgba(154, 49, 72, 0.45);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  --serif: "Noto Serif KR", "Times New Roman", serif;
  --sans: "Pretendard", "Noto Sans KR", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: #12070a;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(244, 232, 218, 0.35), 0 8px 20px rgba(107, 28, 46, 0.55);
  transition: transform 0.45s ease;
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.04);
}

.brand strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mast-mark {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--ivory-dim);
}

.curtain {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
}

.curtain img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: ken 28s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}

.curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 7, 10, 0.92) 0%, rgba(18, 7, 10, 0.42) 52%, rgba(61, 16, 24, 0.2) 100%),
    linear-gradient(180deg, rgba(18, 7, 10, 0.15) 0%, rgba(18, 7, 10, 0.88) 100%);
}

.curtain-copy {
  max-width: 760px;
  padding: 0 8vw 12vh;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wine-lit);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ivory-dim);
}

.curtain h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.ledger {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.cellar {
  margin: 0 0 88px;
  padding: 0;
  border: 0;
  scroll-margin-top: 88px;
}

.cellar-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}

.idx {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--wine-lit);
}

.cellar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  word-break: keep-all;
  line-height: 1.35;
}

.cellar h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ivory);
}

.cellar h4 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ivory-dim);
}

.cellar p {
  margin: 0 0 14px;
  color: var(--ivory-dim);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .frame {
  order: -1;
}

.frame {
  position: relative;
  perspective: 900px;
}

.frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px 48px 4px 48px;
  box-shadow: var(--shadow);
  transform: rotateY(-7deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.frame:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px 48px 4px 48px;
  z-index: -1;
}

.grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 8px;
}

.grade article {
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--bg-3), var(--wine-deep));
  border: 1px solid var(--line);
}

.grade strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 20px;
}

.grade span {
  color: var(--ivory-dim);
  font-size: 14px;
  line-height: 1.6;
}

.years {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.years li {
  list-style: none;
  padding: 16px 14px;
  border-top: 2px solid var(--wine-lit);
  background: var(--bg-2);
}

.years b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 6px;
}

.years span {
  font-size: 13px;
  color: var(--ivory-dim);
  line-height: 1.5;
}

.bill {
  width: 100%;
  margin: 20px 0 8px;
  border-collapse: collapse;
  font-size: 15px;
}

.bill th,
.bill td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.bill th {
  color: var(--ivory-dim);
  font-weight: 500;
}

.bill td:last-child,
.bill th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bill tfoot td {
  color: var(--ivory);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 22px 4px;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  float: right;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-right: 1px solid var(--ivory);
  border-bottom: 1px solid var(--ivory);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.faq-list p {
  padding-bottom: 16px;
}

.reserve {
  position: relative;
  margin: 0;
  padding: 90px 8vw;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--wine) 0%, var(--bg) 62%);
}

.reserve h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
}

.reserve p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--ivory-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 28px;
  background: var(--ivory);
  color: var(--wine-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 40px rgba(244, 232, 218, 0.18);
  animation: pulse 2.8s ease-in-out infinite;
}

.btn:hover {
  background: #fff;
}

.float-reserve {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--wine-lit);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(154, 49, 72, 0.45);
  animation: floaty 3.2s ease-in-out infinite;
}

.colophon {
  padding: 28px 36px 40px;
  border-top: 1px solid var(--line);
  color: var(--ivory-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate(-1.5%, 1%); }
}

@keyframes pulse {
  0%, 100% { transform: translateZ(0) scale(1); box-shadow: 0 12px 40px rgba(244, 232, 218, 0.18); }
  50% { transform: translateZ(0) scale(1.03); box-shadow: 0 16px 50px rgba(244, 232, 218, 0.28); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .mast {
    padding: 12px 18px;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .frame {
    order: 0;
  }

  .frame img {
    height: 280px;
    transform: none;
    border-radius: 4px 28px 4px 28px;
  }

  .grade,
  .years {
    grid-template-columns: 1fr 1fr;
  }

  .curtain {
    min-height: 78vh;
  }

  .float-reserve {
    left: 16px;
    right: 16px;
    justify-content: center;
  }

  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 560px) {
  .grade,
  .years {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 16px;
  }

  .mast-mark {
    display: none;
  }
}
