:root {
  --surface-primary: #f7f5ef;
  --surface-secondary: #eee9de;
  --surface-elevated: #fffcf5;
  --surface-inset: #e2ddd1;
  --text-primary: #20221d;
  --text-secondary: #676a5f;
  --text-tertiary: #8a8b81;
  --border-default: #d8d1c2;
  --border-subtle: #e9e2d5;
  --accent-primary: #47684b;
  --accent-hover: #38543b;
  --accent-soft: #dde7d4;
  --paper-blue: #dfeaf1;
  --paper-rose: #eadfd8;
  --paper-yellow: #efe2bd;
  --material-clay: #cdb7a1;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--surface-primary); }
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    linear-gradient(90deg, rgba(32,34,29,0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(32,34,29,0.03) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--surface-primary);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 14px;
  top: 14px;
  transform: translateY(-150%);
  border: 1px solid var(--text-primary);
  border-radius: 6px;
  background: var(--surface-elevated);
  padding: 10px 14px;
  font-weight: 760;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: rgba(255,252,245,0.86);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: navIn 520ms var(--ease) both;
}
.brand { display: inline-flex; min-height: 58px; align-items: center; gap: var(--space-3); padding: 0 var(--space-5); font-weight: 760; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--accent-soft); color: var(--accent-primary); font-size: 12px; font-weight: 820; }
.nav-links { display: flex; align-items: center; gap: var(--space-2); padding-right: var(--space-2); }
.nav-links a { display: inline-flex; min-height: 42px; align-items: center; border-radius: 8px; padding: 0 var(--space-4); color: var(--text-secondary); font-size: 14px; font-weight: 680; transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.nav-links a:hover { transform: translateY(-1px); background: var(--surface-secondary); color: var(--text-primary); }

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  overflow: hidden;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(108px, 12vh, 148px) 0 var(--space-16);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 96px -10% auto auto;
  width: min(460px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.62;
  filter: blur(22px);
  z-index: -1;
}
.hero-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-10);
  animation: copyIn 620ms var(--ease) 120ms both;
}
.eyebrow { margin: 0 0 var(--space-4); color: var(--accent-primary); font-size: 11px; font-weight: 780; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-intro .eyebrow { grid-column: 1 / -1; }
h1 {
  grid-column: 1 / 10;
  margin-bottom: 0;
  font-family: "AppleMyungjo", "Nanum Myeongjo", Georgia, serif;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.intro-row {
  grid-column: 5 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-5);
}
.intro-row p { max-width: 620px; margin-bottom: 0; color: var(--text-secondary); font-size: clamp(16px, 1.3vw, 19px); }
.hero-link,
.reserve-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--text-primary);
  color: var(--surface-elevated);
  padding: 12px 18px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.hero-link:hover,
.reserve-button:hover { transform: translateY(-2px); background: var(--accent-hover); }

.workbench {
  --live-material: var(--material-clay);
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto minmax(236px, 30vh) auto;
  gap: var(--space-4);
  min-height: 540px;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 28%, color-mix(in srgb, var(--live-material) 52%, transparent), transparent 34%),
    linear-gradient(90deg, rgba(32,34,29,0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(32,34,29,0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface-elevated);
  padding: var(--space-5);
  box-shadow: 0 18px 50px rgba(32,34,29,0.08);
  overflow: hidden;
  animation: boardIn 680ms var(--ease) 220ms both;
}
.workbench[data-material="scent"] { --live-material: var(--paper-blue); }
.workbench[data-material="paper"] { --live-material: var(--paper-yellow); }
.workbench::before {
  content: "";
  position: absolute;
  inset: var(--space-3);
  border: 1px dashed var(--border-default);
  border-radius: 16px;
  pointer-events: none;
}
.bench-head {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid var(--border-default);
  padding: 0 0 var(--space-4);
  color: var(--text-tertiary);
  font-size: 13px;
}
.bench-head span { color: var(--accent-primary); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.bench-head strong { color: var(--text-primary); font-weight: 720; }
.material-rail {
  position: absolute;
  z-index: 0;
  inset: 84px var(--space-5) 92px;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr 1.42fr 0.46fr;
  gap: var(--space-2);
  opacity: 0.82;
  pointer-events: none;
}
.rail-item { border: 1px solid rgba(32,34,29,0.18); border-radius: 999px; transform: rotate(var(--tilt, 0deg)); }
.clay { --tilt: -1.5deg; background: var(--material-clay); }
.paper { --tilt: 1.6deg; background: var(--paper-yellow); }
.scent { --tilt: -0.7deg; background: var(--paper-blue); }
.thread { --tilt: 2deg; background: var(--paper-rose); }
.choice-stack {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-3) var(--space-2);
}
.choice {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 210px;
  border: 1px solid var(--border-default);
  border-radius: 18px 18px 10px 10px;
  background: rgba(247,245,239,0.78);
  color: var(--text-primary);
  padding: var(--space-5);
  text-align: left;
  cursor: pointer;
  transform: translateY(var(--lift, 0)) rotate(var(--rotate, 0deg));
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.choice:nth-child(1) { --rotate: -1.2deg; }
.choice:nth-child(2) { --rotate: 0.7deg; }
.choice:nth-child(3) { --rotate: -0.4deg; }
.choice::before {
  content: "";
  position: absolute;
  inset: auto var(--space-5) var(--space-5) var(--space-5);
  height: 10px;
  border-radius: 99px;
  background: var(--live-material);
  opacity: 0.72;
}
.choice span { color: var(--accent-primary); font-size: 12px; font-weight: 820; letter-spacing: 0.08em; }
.choice strong { align-self: center; font-family: "AppleMyungjo", "Nanum Myeongjo", Georgia, serif; font-size: clamp(32px, 4vw, 58px); line-height: 0.96; letter-spacing: -0.045em; }
.choice small { margin-top: var(--space-6); color: var(--text-tertiary); font-size: 12px; font-weight: 760; letter-spacing: 0.04em; text-transform: uppercase; }
.choice:hover { --lift: -8px; border-color: var(--accent-primary); box-shadow: 0 16px 28px rgba(32,34,29,0.08); }
.choice.is-active { --lift: -14px; background: rgba(255,252,245,0.96); border-color: var(--accent-primary); box-shadow: 0 24px 46px rgba(32,34,29,0.12); }
.sample-board {
  position: relative;
  z-index: 2;
  grid-column: 3 / 11;
  align-self: center;
  justify-self: center;
  width: min(620px, 100%);
  min-height: 188px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8, var(--surface-primary));
  padding: var(--space-6);
  box-shadow: 0 20px 42px rgba(32,34,29,0.10);
  transform: rotate(-0.7deg);
}
.sample-board::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 24px;
  border: 1px solid rgba(32,34,29,0.12);
  border-radius: 4px;
  background: rgba(226,221,209,0.82);
  transform: translateX(-50%) rotate(1.5deg);
}
.board-kicker { margin: 0 0 var(--space-3); color: var(--accent-primary); font-size: 12px; font-weight: 760; letter-spacing: 0.04em; }
.sample-board strong { display: block; margin-bottom: var(--space-4); font-family: "AppleMyungjo", "Nanum Myeongjo", Georgia, serif; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.sample-board p { max-width: 430px; margin-bottom: 0; color: var(--text-secondary); }
.receipt {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: rgba(247,245,239,0.94);
  overflow: hidden;
}
.receipt div { padding: var(--space-4) var(--space-5); border-right: 1px solid var(--border-default); }
.receipt div:last-child { border-right: 0; }
dt { color: var(--text-tertiary); font-size: 12px; font-weight: 680; }
dd { margin: 4px 0 0; font-weight: 780; font-variant-numeric: tabular-nums; }

.studio-board,
.route-map,
.reserve { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.studio-board { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: var(--space-4); padding: var(--space-20) 0; }
.section-copy { grid-column: span 5; align-self: end; }
.section-copy h2,
.route-copy h2,
.reserve h2 { font-family: "AppleMyungjo", "Nanum Myeongjo", Georgia, serif; font-size: clamp(34px, 5vw, 68px); line-height: 1.07; letter-spacing: -0.035em; text-wrap: balance; }
.note-card { display: grid; align-content: space-between; min-height: 270px; border: 1px solid var(--border-default); border-radius: 14px; background: var(--surface-elevated); padding: var(--space-6); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.note-card:hover { transform: translateY(-4px); box-shadow: 0 2px 10px rgba(32,34,29,0.05); }
.note-card span,
.route-steps span { color: var(--accent-primary); font-size: 12px; font-weight: 780; letter-spacing: 0.05em; text-transform: uppercase; }
.note-card h3 { margin: var(--space-12) 0 var(--space-4); font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.note-card p { margin-bottom: 0; color: var(--text-secondary); }
.wide { grid-column: span 7; background: var(--accent-soft); }
.pin-left { grid-column: 3 / span 4; background: var(--paper-yellow); }
.pin-right { grid-column: span 6; background: var(--paper-blue); }
.route-map { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 76px); align-items: start; padding: var(--space-16) var(--space-10); border: 1px solid var(--border-default); border-radius: 18px; background: var(--surface-elevated); }
.route-copy p:not(.eyebrow) { color: var(--text-secondary); font-size: 18px; }
.route-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.route-steps li { display: grid; grid-template-columns: 58px 1fr; column-gap: var(--space-4); border-top: 1px solid var(--border-default); padding: var(--space-5) 0; }
.route-steps li:last-child { border-bottom: 1px solid var(--border-default); }
.route-steps span { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface-primary); }
.route-steps strong { font-size: 24px; line-height: 1.2; }
.route-steps p { grid-column: 2; margin: var(--space-2) 0 0; color: var(--text-secondary); }
.reserve { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; padding: var(--space-20) 0 var(--space-16); }
.reserve p:not(.eyebrow) { max-width: 690px; color: var(--text-secondary); font-size: 18px; }

@keyframes navIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes boardIn { from { opacity: 0; transform: translateY(20px) rotate(1deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-intro { grid-template-columns: 1fr; }
  h1,
  .hero-intro .eyebrow,
  .intro-row { grid-column: 1; }
  .intro-row { align-items: flex-start; flex-direction: column; }
  .workbench { grid-template-rows: auto auto auto auto; min-height: 0; }
  .choice-stack { grid-template-columns: 1fr; padding-inline: 0; }
  .choice { min-height: 132px; transform: none; }
  .choice:hover,
  .choice.is-active { --lift: 0; transform: translateY(-4px); }
  .sample-board { grid-column: 1 / -1; width: 100%; transform: none; }
  .material-rail { inset: 92px var(--space-5) auto; height: 120px; }
  .route-map,
  .reserve { grid-template-columns: 1fr; }
  .studio-board { grid-template-columns: 1fr; }
  .section-copy,
  .wide,
  .pin-left,
  .pin-right { grid-column: 1; }
}

@media (max-width: 560px) {
  .site-header { top: 10px; width: min(100% - 20px, 1180px); }
  .brand strong { font-size: 14px; }
  .hero { width: min(100% - 24px, 1180px); padding: 104px 0 var(--space-12); }
  h1 { font-size: clamp(42px, 15vw, 64px); }
  .workbench { padding: var(--space-4); border-radius: 16px; }
  .bench-head { flex-direction: column; }
  .choice { min-height: 120px; padding: var(--space-4); }
  .choice strong { font-size: clamp(30px, 10vw, 44px); }
  .sample-board { padding: var(--space-5); }
  .receipt { grid-template-columns: 1fr; }
  .receipt div { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .receipt div:last-child { border-bottom: 0; }
  .studio-board,
  .route-map,
  .reserve { width: min(100% - 24px, 1180px); }
  .route-map { padding: var(--space-8) var(--space-5); }
  .route-steps li { grid-template-columns: 44px 1fr; }
  .route-steps span { width: 36px; height: 36px; }
  .reserve { align-items: start; }
}
