:root {
  --cream: #faf5ec;
  --rice: #f2e8d6;
  --wood: #6b4529;
  --wood-dark: #44291a;
  --accent: #b8622f;
  --accent-dark: #93491f;
  --text: #2f241b;
  --muted: #7a6a5a;
  --serif: 'Gowun Batang', serif;
  --sans: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.btn {
  display: inline-block;
  border: 0;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(184, 98, 47, .3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--wood-dark);
  box-shadow: inset 0 0 0 2px var(--wood);
}
.btn-ghost:hover { background: rgba(107, 69, 41, .08); }




.container { width: min(1120px, 90vw); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebdfcb;
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .08em;
  color: var(--wood-dark);
}
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); transition: right .25s;
}
.nav a:hover::after { right: 0; }
.btn-back {
  border: 1px solid #dccbb0;
  background: #fff;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--wood-dark);
}
.btn-back:hover { border-color: var(--accent); }

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 75% 50%, #fbe6c4 0%, transparent 60%), var(--cream);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 60px 0; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .18em; font-size: 13px; margin-bottom: 14px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.25;
  color: var(--wood-dark);
  margin-bottom: 22px;
}
.lead { color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }

.site.visible .hero-text > * { animation: rise .9s both; }
.site.visible .hero-text > *:nth-child(2) { animation-delay: .15s; }
.site.visible .hero-text > *:nth-child(3) { animation-delay: .3s; }
.site.visible .hero-text > *:nth-child(4) { animation-delay: .45s; }
.site.visible .hero-visual { animation: rise 1.1s .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.bowl {
  --size: 130px;
  position: relative;
  width: var(--size);
  height: calc(var(--size) * .66);
  margin: 0 auto;
}
.bowl::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0; right: 0; top: 0;
  height: calc(var(--size) * .3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 46%, var(--g) 0 5%, transparent 6%),
    radial-gradient(circle at 60% 36%, var(--g) 0 4%, transparent 5%),
    radial-gradient(circle at 52% 60%, var(--g2) 0 4.5%, transparent 5.5%),
    radial-gradient(circle at 70% 55%, var(--g2) 0 3%, transparent 4%),
    radial-gradient(ellipse at center, var(--c) 0 60%, #2c1e15 62% 100%);
}
.bowl::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  top: calc(var(--size) * .15);
  bottom: 0;
  background: linear-gradient(100deg, #5a3d2a, #3a281c 45%, #24180f);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 18px 30px -10px rgba(60, 35, 15, .45);
}
.bowl-hero { --size: min(380px, 70vw); }

.steam {
  position: absolute;
  bottom: 78%;
  width: calc(var(--size) * .07);
  height: calc(var(--size) * .45);
  border-radius: 50%;
  background: linear-gradient(transparent, rgba(255,255,255,.85), transparent);
  filter: blur(8px);
  opacity: 0;
  animation: steam 4s ease-in-out infinite;
}
.s1 { left: 32%; }
.s2 { left: 48%; animation-delay: 1.3s; }
.s3 { left: 63%; animation-delay: 2.6s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(20px) scaleX(1); }
  30%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(-60px) scaleX(1.8) skewX(12deg); }
}

.section { padding: 110px 0; }
.section-tint { background: var(--rice); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.35;
  color: var(--wood-dark);
  margin-bottom: 18px;
}
.section-lead { color: var(--muted); font-size: 17px; margin-bottom: 48px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: #fff;
  border-radius: 18px;
  padding: 36px 30px;
  border: 1px solid #efe4d2;
}
.value-num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: #e2c9a3; }
.value h3 { font-size: 20px; margin: 6px 0 10px; color: var(--wood-dark); }
.value p { color: var(--muted); font-size: 15px; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.menu-card {
  position: relative;
  background: #fffdf8;
  border-radius: 20px;
  padding: 40px 26px 30px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(90, 60, 30, .12); }
.menu-card .bowl { margin-bottom: 22px; }
.menu-card h3 { font-family: var(--serif); font-size: 22px; color: var(--wood-dark); margin-bottom: 6px; }
.menu-card p { color: var(--muted); font-size: 14px; }
.tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.note { margin-top: 24px; font-size: 13px; color: var(--muted); }

.store { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.store-search { display: flex; gap: 10px; }
.store-search input {
  flex: 1;
  padding: 13px 20px;
  border-radius: 99px;
  border: 1px solid #dccbb0;
  font: inherit;
  background: #fff;
}
.store-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.store-result { margin-top: 16px; color: var(--muted); font-size: 15px; min-height: 1.7em; }
.map-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(107,69,41,.08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(107,69,41,.08) 39px 40px),
    #efe5d3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.pin {
  position: absolute;
  top: 34%; left: 50%;
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.section-dark { background: #3b2618; color: #f4e9d8; }
.section-dark h2 { color: #fbf1df; }
.section-dark .eyebrow { color: #e9a46f; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 40px 0 48px;
}
.steps li {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 20px 10px;
  text-align: center;
  font-weight: 500;
}
.steps b { display: block; font-family: var(--serif); color: #e9a46f; font-size: 22px; }

.franchise-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(255,255,255,.05);
  padding: 30px;
  border-radius: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: 2px solid #e9a46f; border-color: transparent; }
.franchise-form .btn { justify-self: start; }
.form-msg { color: #f3c79a; font-size: 14px; }

.footer { background: #2a1a10; color: #b7a38c; padding: 48px 0; font-size: 13px; }
.footer .logo { color: #f4e2c4; margin-bottom: 12px; display: block; }
.copy { margin-top: 12px; opacity: .7; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero-inner, .store { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .values, .menu-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .franchise-form { grid-template-columns: 1fr; }
  .nav { display: none; }
  .btn-back { margin-left: auto; }
}
@media (max-width: 560px) {
  .values, .menu-grid { grid-template-columns: 1fr; }
  .window-text { display: none; }
  .section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.intro3d { position: relative; height: 700vh; background: #17100b; }
.stage-wrap { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#stage { display: block; width: 100%; height: 100%; }

.cap {
  position: absolute;
  color: #f7ead6;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .55);
}
.cap-title {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cap-title h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 12vw, 168px);
  letter-spacing: .12em;
  line-height: 1.05;
  margin: 10px 0 22px;
}
.cap-eyebrow, .cap-num {
  color: #e9a46f;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .32em;
}
.cap-hint { font-size: 14px; letter-spacing: .1em; color: rgba(247, 234, 214, .8); }
.cap-hint span { display: inline-block; margin-left: 8px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.cap-left, .cap-right { top: 50%; max-width: 440px; translate: 0 -50%; }
.cap-left  { left: 7vw; }
.cap-right { right: 7vw; text-align: right; }
.cap-center { left: 0; right: 0; bottom: 9%; text-align: center; }
.cap h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.2;
  margin: 12px 0 14px;
}
.cap p:not(.cap-eyebrow):not(.cap-hint) { color: rgba(247, 234, 214, .78); font-size: 16px; }

.progress {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 160px; height: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .15);
}
.progress span { display: block; height: 100%; width: 0; background: #e9a46f; }

.btn-skip {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .25);
  color: #f7ead6;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  backdrop-filter: blur(6px);
}
.btn-skip:hover { background: rgba(0, 0, 0, .45); }
.fade { position: absolute; inset: 0; background: var(--cream); opacity: 0; pointer-events: none; }

.no-webgl .intro3d { display: none; }

@media (max-width: 760px) {
  .cap-left, .cap-right { top: 11%; left: 7vw; right: 7vw; text-align: left; max-width: none; translate: none; }
  .cap-center { top: 11%; }
}
