:root {
  --page-bg: #16130f;
  --text: #fffaf2;
  --muted: rgba(255, 250, 242, 0.74);
  --line: rgba(255, 255, 255, 0.28);
  --panel: rgba(17, 15, 12, 0.32);
  --header-height: 84px;
  --content-width: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif KR", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection {
  color: #17130f;
  background: #fffaf2;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.background-stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--page-bg);
}

.background-layer {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.02);
  transition:
    opacity 1.15s ease,
    transform 8s linear;
}

.background-layer.is-visible {
  opacity: 1;
  transform: scale(1.085);
}

.background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.5) 0%, rgba(8, 7, 6, 0.1) 35%, rgba(8, 7, 6, 0.4) 100%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.34), transparent 54%, rgba(8, 7, 6, 0.2));
}

.background-grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  padding: 18px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid transparent;
  transition:
    background-color 300ms ease,
    backdrop-filter 300ms ease,
    border-color 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 11, 9, 0.34);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 13px;
  min-width: 0;
}

.brand__name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand__english {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.68;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 780;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

main {
  position: relative;
  z-index: 2;
  scroll-snap-type: y proximity;
}

.page-section {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 64px) clamp(22px, 6vw, 92px) 84px;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
}

.page-section--hero {
  align-items: flex-end;
}

.page-section--right {
  justify-content: flex-end;
}

.page-section--booking {
  min-height: 112svh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.section-content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-content--hero {
  padding-bottom: clamp(46px, 8vh, 110px);
}

.section-content--panel {
  width: min(650px, 100%);
  margin: 0;
  padding: clamp(26px, 4vw, 54px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(13px) saturate(0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.section-content--booking {
  width: min(860px, 100%);
  margin: auto;
  padding-top: 13vh;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  max-width: 1000px;
  font-size: clamp(48px, 8.5vw, 132px);
  font-weight: 720;
  line-height: 0.95;
  letter-spacing: -0.075em;
  text-shadow: 0 5px 35px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero-description {
  margin: clamp(22px, 3vh, 36px) 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.85;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.address {
  margin-top: 26px;
  font-style: normal;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.7;
  word-break: keep-all;
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.text-link span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.text-link strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.025em;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-width: 146px;
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  transition:
    transform 220ms var(--ease-out),
    background-color 220ms ease,
    color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--light {
  color: #17130f;
  background: #fffaf2;
}

.button--ghost {
  background: rgba(0, 0, 0, 0.12);
}

.booking-cta {
  width: min(520px, 100%);
  min-height: 86px;
  margin: clamp(34px, 5vh, 62px) auto 0;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #17130f;
  background: #fffaf2;
  border-radius: 2px;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 800;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transition: transform 260ms var(--ease-out);
}

.booking-cta:hover {
  transform: translateY(-4px) scale(1.008);
}

.booking-cta span:last-child {
  font-size: 24px;
}

.scroll-cue {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #fff 0 50%, rgba(255, 255, 255, 0.2) 50% 100%);
  background-size: 100% 200%;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}

.reveal-target {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms ease,
    transform 900ms var(--ease-out);
}

.reveal-target.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.cursor-contact {
  position: fixed;
  z-index: 55;
  top: 0;
  left: 0;
  width: 132px;
  height: 132px;
  padding: 18px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #17130f;
  background: rgba(255, 250, 242, 0.94);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  scale: 0.78;
  transition:
    opacity 220ms ease,
    scale 220ms var(--ease-out);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.cursor-contact.is-enabled {
  display: flex;
}

.cursor-contact.is-visible {
  opacity: 1;
  scale: 1;
}

.cursor-contact span {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.cursor-contact strong {
  font-size: 12px;
  line-height: 1.45;
}

.floating-actions {
  position: fixed;
  z-index: 60;
  right: clamp(18px, 2.4vw, 38px);
  bottom: clamp(18px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-action {
  min-width: 178px;
  min-height: 52px;
  padding: 10px 17px 10px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  transition: transform 220ms var(--ease-out);
}

.floating-action:hover {
  transform: translateX(-4px);
}

.floating-action--kakao {
  color: #201d18;
  background: #fee500;
}

.floating-action--booking {
  color: #fff;
  background: #03c75a;
}

.floating-action__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
}

.site-footer {
  width: min(100%, var(--content-width));
  margin: auto auto 0;
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 36px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.75;
}

.site-footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer > div:first-child strong {
  color: #fff;
  font-size: 13px;
}

.site-footer__business {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.site-footer__business b {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.site-footer small {
  grid-column: 1 / -1;
  font-size: inherit;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 32px;
  max-width: min(88vw, 460px);
  padding: 13px 18px;
  color: #17130f;
  background: #fffaf2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 260ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: var(--header-height);
    padding: 14px 18px;
    gap: 12px;
  }

  .brand {
    gap: 0;
  }

  .brand__name {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }

  .brand__english {
    display: none;
  }

  .primary-nav {
    gap: 15px;
  }

  .primary-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .page-section {
    min-height: 100svh;
    padding: calc(var(--header-height) + 34px) 20px 72px;
  }

  .page-section--hero {
    align-items: flex-end;
  }

  .page-section--booking {
    min-height: 108svh;
  }

  .section-content--hero {
    padding-bottom: 54px;
  }

  .section-content--panel {
    width: 100%;
    padding: 26px 22px;
    background: rgba(15, 13, 10, 0.38);
  }

  .section-content--booking {
    padding-top: 6vh;
  }

  h1 {
    font-size: clamp(46px, 15vw, 74px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .scroll-cue {
    display: none;
  }

  .floating-actions {
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    flex-direction: row;
    gap: 8px;
  }

  .floating-action {
    min-width: 0;
    min-height: 56px;
    flex: 1 1 50%;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 12px;
  }

  .floating-action:hover {
    transform: none;
  }

  .floating-action__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 22px;
  }

  .site-footer__business {
    justify-content: flex-start;
  }

  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand__name {
    max-width: 78px;
  }

  .primary-nav {
    gap: 11px;
  }

  .primary-nav a {
    font-size: 11px;
  }

  .floating-action__icon {
    display: none;
  }
}

@media (pointer: fine) and (min-width: 960px) {
  .cursor-contact.is-enabled {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .background-layer {
    transform: none !important;
  }
}
