/* ————————————————————————————————
   Kiln · sections
   Style: Japandi (日式北欧) — restrained earth tones, micro shadows, generous whitespace
———————————————————————————————— */

/* ————— hero ————— */
.hero {
  min-height: calc(100vh - 68px);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px);
}
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.9rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-glaze { margin-top: clamp(30px, 4vw, 52px); }
.hero-glaze-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 12px; }
.hero-glaze-name { font-family: var(--serif); font-style: italic; font-size: 19px; margin-top: 14px; color: var(--accent); min-height: 1.5em; }

.hero-stage {
  position: relative;
  height: min(64vh, 660px);
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(120% 95% at 50% 18%, #FFFFFF 0%, #F4F1EA 55%, #EAE5DA 100%);
  box-shadow: 0 1px 4px rgba(43, 40, 35, 0.06);
}
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.gl-canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage-fallback svg { width: 78%; height: auto; }
.drag-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(43, 40, 35, 0.72);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.stage-caption {
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  pointer-events: none;
}

/* ————— marquee ————— */
.marquee { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; padding: 15px 0; }
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: marquee 30s linear infinite;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ————— collection ————— */
.catalog {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(43, 40, 35, 0.05);
}
.card:hover { transform: translateY(-7px); box-shadow: 0 6px 18px rgba(43, 40, 35, 0.08); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card-media svg { width: 100%; height: 100%; transition: transform 0.7s var(--ease); }
.card:hover .card-media svg { transform: scale(1.045); }
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(43, 40, 35, 0.78);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-body { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; }
.card-name { font-family: var(--serif); font-size: 21px; font-weight: 480; letter-spacing: -0.01em; }
.card-glaze { font-size: 12.5px; color: var(--ink-soft); }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.card-price { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.card-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.card-add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-dots { display: flex; gap: 6px; padding-top: 4px; }
.card-dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* ————— process ————— */
.process { background: #F4F1EA; color: var(--ink); }
.process-intro { max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 130px) clamp(20px, 4vw, 56px) 0; }
.process-intro h2 { color: var(--ink); }
.process-track { height: 340vh; position: relative; }
.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: 24px clamp(20px, 4vw, 56px);
}
.process-stage {
  position: relative;
  height: min(80vh, 740px);
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(120% 95% at 50% 22%, #E8E3D8 0%, #DDD7CA 55%, #D2CAC0 100%);
  box-shadow: 0 1px 4px rgba(43, 40, 35, 0.06);
}
.process-stage .gl-canvas { cursor: grab; }
.process-stage-label {
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(43, 40, 35, 0.55);
  pointer-events: none;
  transition: opacity 0.4s;
}
.process-steps { list-style: none; display: grid; gap: clamp(22px, 3vw, 40px); }
.process-steps li {
  opacity: 0.32;
  border-left: 1px solid rgba(43, 40, 35, 0.22);
  padding-left: clamp(18px, 2.4vw, 32px);
  transition: opacity 0.5s;
}
.process-steps li.active { opacity: 1; }
.process-steps .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.process-steps h3 { font-family: var(--serif); font-weight: 460; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; margin-bottom: 8px; }
.process-steps p { font-size: 14.5px; color: rgba(43, 40, 35, 0.62); max-width: 42ch; }

/* ————— journal ————— */
.journal { background: var(--paper); }
.journal-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(90px, 11vw, 150px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.journal-col h3 { font-family: var(--serif); font-weight: 460; font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: 18px; }
.journal-col h3 span { font-style: italic; color: var(--accent); margin-right: 6px; }
.journal-col p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.journal-col p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.1em;
  float: left;
  line-height: 0.85;
  padding: 4px 10px 0 0;
  color: var(--accent);
}

/* ————— visit ————— */
.visit { border-top: 1px solid var(--line); background: var(--paper-2); }
.visit-inner { max-width: 900px; margin: 0 auto; padding: clamp(90px, 12vw, 160px) clamp(20px, 4vw, 56px); text-align: center; }
.visit-inner h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.visit-copy { max-width: 52ch; margin: 22px auto 0; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.visit-actions { margin-top: 38px; display: grid; gap: 16px; justify-items: center; }
.visit-addr { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ————— footer ————— */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) clamp(20px, 4vw, 56px) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.foot-brand { font-size: 30px; margin-bottom: 12px; }
.foot-blurb { font-size: 14px; color: var(--ink-soft); max-width: 32ch; }
.foot-h { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.site-foot a { display: block; font-size: 14px; color: var(--ink); padding: 4px 0; transition: color 0.2s; }
.site-foot a:hover { color: var(--accent); }
.foot-line {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 56px) 30px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ————— cart drawer ————— */
.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 80;
  height: 100dvh;
  width: min(430px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(103%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--serif); font-weight: 480; font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 26px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 26px 26px; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--ink-soft); }
.cart-empty p { font-family: var(--serif); font-style: italic; font-size: 19px; margin-bottom: 8px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-media { width: 74px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.cart-item-media svg { width: 100%; height: 100%; }
.cart-item-name { font-family: var(--serif); font-size: 16.5px; font-weight: 480; }
.cart-item-glaze { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item-price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-remove { font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.cart-remove:hover { color: var(--accent); }
.subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.cart-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; }
.drawer-foot .btn { width: 100%; justify-content: center; }
.order-done { text-align: center; padding: 70px 10px; }
.order-done .tick {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.order-done h4 { font-family: var(--serif); font-weight: 480; font-size: 24px; margin-bottom: 8px; }
.order-done p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; }

/* ————— product detail ————— */
.detail {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.detail.open { opacity: 1; pointer-events: auto; }
.detail-inner { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); }
.detail-close { position: sticky; top: 14px; margin-left: auto; display: flex; z-index: 2; width: max-content; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.detail-media {
  position: sticky;
  top: 90px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: radial-gradient(120% 95% at 50% 20%, #FFFFFF 0%, #F4F1EA 60%, #EAE5DA 100%);
}
.detail-media svg { width: 100%; height: 100%; }
.detail-info h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 6px; }
.detail-price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 22px; }
.detail-blurb { color: var(--ink-soft); max-width: 48ch; margin-bottom: 28px; }
.detail-opt-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.detail-opt-label b { color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
.detail-glazes { display: grid; gap: 10px; margin-bottom: 30px; }
.detail-actions { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; justify-content: center; min-width: 200px; }
.detail-meta { margin-top: 34px; border-top: 1px solid var(--line); }
.detail-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.detail-meta dt { color: var(--ink-soft); }
.detail-meta dd { font-weight: 500; text-align: right; }

/* ————— scrim & toast ————— */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(43, 40, 35, 0.28); opacity: 0; transition: opacity 0.35s; }
.scrim.show { opacity: 1; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100;
  transform: translate(-50%, 18px);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 24px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  box-shadow: 0 1px 4px rgba(43, 40, 35, 0.12);
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ————— responsive ————— */
@media (max-width: 1180px) {
  .catalog { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-stage { height: min(58vh, 520px); }
  .process-sticky { grid-template-columns: 1fr; gap: 24px; height: auto; min-height: 100vh; padding-top: 60px; padding-bottom: 60px; }
  .process-stage { height: min(52vh, 480px); }
  .process-track { height: 220vh; }
  .journal-grid { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { position: static; }
  .site-nav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .catalog { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .process-steps { gap: 18px; }
}
