/* ═══════════════════════════════════════════════════════════════
   KOYO — 고요 · Stillness Guides Purpose
   Palette: warm paper, ink, hwangto walnut clay (deck-aligned)
   Type:    Noto Serif KR (tradition) · Fraunces (display) · Karla (periphery)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper:      #f3efe7;
  --paper-deep: #eae4d7;
  --porcelain:  #fbf9f3;
  --ink:        #1e1a16;
  --ink-soft:   #5c554a;
  --ink-faint:  #948b7c;
  --clay:       #6f4934;
  --line:       rgba(30, 26, 22, 0.14);

  --serif: "Fraunces", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --serif-kr: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans:  "Karla", "Helvetica Neue", sans-serif;
  --mono:  "Karla", "Noto Serif KR", "Helvetica Neue", sans-serif;

  --pad-x: clamp(1.5rem, 6vw, 6.5rem);
  --sec-y: clamp(7rem, 16vh, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--clay); color: var(--paper); }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Atmosphere ─────────────────────────────────────────────── */

#mist-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

main { position: relative; z-index: 1; }

/* ── Preloader ──────────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  display: none;
  align-items: center;
  justify-content: center;
}
.js .preloader { display: flex; }
.preloader-inner { text-align: center; }
.preloader-mark { width: 54px; margin: 0 auto 1.6rem; opacity: 0; }
.preloader-kr {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 2.1rem;
  letter-spacing: 0.5em;
  margin-left: 0.5em; /* optically re-center tracked text */
  line-height: 1;
  color: var(--ink-soft);
  opacity: 0;
}
.preloader-def { margin-top: 1.2rem; opacity: 0; }

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s, padding 0.5s;
}
.nav.is-scrolled {
  padding: 0.95rem var(--pad-x);
  background: rgba(243, 239, 231, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-mark { height: 15px; width: auto; }
.nav-word {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.42em;
}
.nav-links { display: flex; gap: clamp(1.4rem, 3vw, 2.8rem); }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cart { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.nav-shop { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 15rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 24px 60px -24px rgba(30, 26, 22, 0.35);
  padding: 0.7rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
}
.nav-shop::after { /* hover bridge between link and panel */
  content: "";
  position: absolute;
  left: -1rem; right: -1rem;
  top: 100%;
  height: 1rem;
}
.nav-shop:hover .nav-dropdown,
.nav-shop:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-head {
  padding: 0.7rem 1.4rem 0.3rem;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}
.nav-dd-head + a { border-top: 0; }
.nav-dd-head:not(:first-child) { margin-top: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.nav-dropdown a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6rem;
  white-space: nowrap;
  padding: 0.62rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a span {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.nav-dropdown a:hover { background: var(--paper); color: var(--clay); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.nav-burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--pad-x) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.2rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu-shop {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.mobile-menu-shop .mono { margin-bottom: 0.3rem; }
.mobile-menu-shop a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink-soft);
}
.mobile-menu-foot {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.mobile-menu-foot a { color: var(--ink); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
  will-change: transform;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--clay); border-color: var(--clay); color: var(--porcelain); }
.btn-ghost { background: rgba(251, 249, 243, 0.55); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ── Shared section furniture ───────────────────────────────── */

.eyebrow { display: block; margin-bottom: clamp(1.8rem, 4vh, 3rem); }

.js [data-reveal] { opacity: 0; }
.js.reduced [data-reveal] { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--pad-x) 6rem;
}
.js [data-hero] { opacity: 0; }

.hero-kr {
  font-family: var(--serif-kr);
  font-weight: 200;
  font-size: min(clamp(3.2rem, 7.5vw, 6.4rem), 13vh);
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 1rem;
}
.hero-eyebrow { margin-bottom: clamp(1.8rem, 4.5vh, 3.6rem); }
.hero-mark {
  height: 30px;
  width: auto;
  margin-bottom: clamp(1.4rem, 3.2vh, 2.4rem);
  opacity: 0.92;
}
.hero-def {
  font-size: 0.66rem;
  margin: -0.4rem 0 clamp(1.7rem, 4vh, 2.8rem);
  color: var(--ink-soft);
}
.hero-def em { font-style: italic; letter-spacing: 0.1em; }

.hero-film {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(1.05);
}
.hero-film-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 50% at 50% 42%, rgba(243, 239, 231, 0.48) 0%, rgba(243, 239, 231, 0) 76%),
    linear-gradient(
      180deg,
      rgba(243, 239, 231, 0.86) 0%,
      rgba(243, 239, 231, 0.66) 30%,
      rgba(243, 239, 231, 0.54) 55%,
      rgba(243, 239, 231, 0.48) 80%,
      rgba(243, 239, 231, 0.62) 100%
    );
}
.hero-mark, .hero-eyebrow, .hero-kr, .hero-def, .hero-title, .hero-cta {
  position: relative;
  z-index: 1;
}
.hero-cta {
  margin-top: clamp(2.8rem, 6vh, 4.2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
}
@media (max-width: 640px) {
  .hero-cta { flex-direction: column; gap: 0.9rem; }
}
.hero-side, .hero-scroll { z-index: 1; }

.hero-side {
  position: absolute;
  right: calc(var(--pad-x) / 2);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  white-space: nowrap;
}
@media (max-width: 900px) { .hero-side { display: none; } }

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
@media (max-height: 760px) { .hero-scroll { display: none; } }
.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--ink);
  animation: scroll-drip 2.4s var(--ease-out) infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ── PDP story leaf ─────────────────────────────────────────── */

.tea-story { position: relative; }
.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  font-size: clamp(1rem, 1.9vw, 1.6rem);
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .hero-title { font-size: 0.78rem; letter-spacing: 0.28em; margin-left: 0.28em; }
}



/* ── The Specimens · horizontal gallery ─────────────────────── */

.specimen { position: relative; overflow: hidden; }
.specimen-pin {
  display: flex;
  flex-direction: column;
  padding: clamp(5rem, 9vh, 7rem) 0 clamp(4rem, 9vh, 6.5rem);
}
.specimen-head { text-align: center; padding: 0 var(--pad-x); }
.specimen-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.1;
}

.specimen-track {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 11vh, 8.5rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}
.spec-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 0 max(var(--pad-x), calc((100vw - 78rem) / 2));
}
.spec-panel:nth-child(even) .spec-stage { order: 2; }
.spec-panel:nth-child(odd) .spec-info { margin-left: auto; }
/* mirrored annotations on flipped panels */
.spec-panel:nth-child(even) .n1 { left: auto; right: 50%; margin: 0 12rem 0 0; }
.spec-panel:nth-child(even) .n1::before { left: auto; right: -5.2rem; }
.spec-panel:nth-child(even) .n2 { right: auto; left: 50%; margin: 0 0 0 12rem; }
.spec-panel:nth-child(even) .n2::before { right: auto; left: -5.2rem; }
.spec-panel:nth-child(even) .n3 { left: auto; right: 50%; margin: 0 12rem 0 0; }
.spec-panel:nth-child(even) .n3::before { left: auto; right: -5.2rem; }

/* hwangto — vertical lines to its three pieces (one top, two bottom) */
.spec-panel[data-tea="hwangto"] .spec-note { transform: translateX(-50%); text-align: center; }
.spec-panel[data-tea="hwangto"] .spec-note::before {
  width: 1px;
  height: 2.6rem;
  left: 50%;
  right: auto;
}
.spec-panel[data-tea="hwangto"] .n1 {
  top: 3%;
  bottom: auto;
  left: 50%;
  right: auto;
  margin: 0;
}
.spec-panel[data-tea="hwangto"] .n1::before { top: calc(100% + 0.6rem); bottom: auto; }
.spec-panel[data-tea="hwangto"] .n2 {
  top: auto;
  bottom: 1%;
  left: 50%;
  right: auto;
  margin: 0;
  transform: translateX(calc(-50% - 10.5rem));
}
.spec-panel[data-tea="hwangto"] .n2::before { top: auto; bottom: calc(100% + 0.6rem); }
.spec-panel[data-tea="hwangto"] .n3 {
  top: auto;
  bottom: 1%;
  left: 50%;
  right: auto;
  margin: 0;
  transform: translateX(calc(-50% + 10.5rem));
}
.spec-panel[data-tea="hwangto"] .n3::before { top: auto; bottom: calc(100% + 0.6rem); left: 50%; right: auto; }

/* uniform 4.2rem lines — notes positioned so every tip sits 60px from the leaf */
.spec-panel[data-tea="sejak"] .n1 { margin-left: 11.75rem; }
.spec-panel[data-tea="sejak"] .n2 { margin-right: 6.88rem; }
.spec-panel[data-tea="sejak"] .n3 { margin-left: 15.13rem; }
.spec-panel[data-tea="artemisia"] .n1 { margin: 0 8.75rem 0 0; }
.spec-panel[data-tea="artemisia"] .n2 { margin: 0 0 0 13.94rem; white-space: normal; max-width: 9rem; line-height: 1.7; }
.spec-panel[data-tea="artemisia"] .n3 { margin: 0 5.69rem 0 0; }
.spec-panel[data-tea="persimmon"] .n1 { margin-left: 10.69rem; }
.spec-panel[data-tea="persimmon"] .n2 { margin-right: 15.13rem; white-space: normal; max-width: 8rem; line-height: 1.7; }
.spec-panel[data-tea="persimmon"] .n3 { margin-left: 11.56rem; }
.spec-panel[data-tea="hwangto"] .n1 { top: calc(3% + 3.95rem); }
.spec-panel[data-tea="hwangto"] .n2 { bottom: calc(1% + 4.95rem); }
.spec-panel[data-tea="hwangto"] .n3 { bottom: calc(1% + 2.45rem); }
@media (max-width: 980px) {
  .spec-panel[data-tea="hwangto"] .spec-note { transform: none; text-align: left; }
}
.spec-stage {
  position: relative;
  height: clamp(22rem, 56vh, 32rem);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spec-leaf {
  max-height: 100%;
  max-width: min(40vw, 30rem);
  width: auto;
  height: auto;
}
.spec-info { max-width: 30rem; }
.spec-info .panel-lede { max-width: 26rem; }
.spec-mobile-note { display: none; }
.spec-note {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (max-width: 1360px) {
  .spec-note { white-space: normal; max-width: 9.5rem; line-height: 1.7; }
}
.spec-note::before {
  content: "";
  position: absolute;
  top: 0.55em;
  height: 1px;
  width: 4.2rem;
  background: rgba(30, 26, 22, 0.28);
}
/* right-side labels, line reaching left toward the leaf */
.n1 { top: 10%; left: 50%; margin-left: 12rem; }
.n1::before { left: -5.2rem; }
.n3 { bottom: 8%; left: 50%; margin-left: 12rem; }
.n3::before { left: -5.2rem; }
/* left-side labels, line reaching right */
.n2 { top: 48%; right: 50%; margin-right: 12rem; }
.n2::before { right: -5.2rem; }
.n3-left { left: auto; right: 50%; margin: 0 12rem 0 0; }
.n3-left::before { left: auto; right: -5.2rem; }


@media (max-width: 980px) {
  .spec-panel {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 0 var(--pad-x);
  }
  .spec-panel:nth-child(even) .spec-stage { order: 0; }
  .spec-note { display: none; }
  .specimen-pin { padding-bottom: clamp(1.8rem, 4vh, 3rem); }
  .ethos { padding-top: clamp(3.3rem, 7.2vh, 5.4rem); }
  .spec-info .panel-link { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .spec-panel:nth-child(odd) .spec-info { margin-left: 0; }
  .spec-mobile-note {
    display: block;
    align-self: center;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
    white-space: nowrap;
    margin-top: 0.2rem;
  }
  .spec-stage { flex-direction: column; height: auto; }
  .spec-leaf { max-height: min(36vh, 17rem); max-width: 74vw; margin-bottom: 1.4rem; }
  /* single-sejak's canvas carries desktop annotation space on the left */
  .spec-panel[data-tea="sejak"] .spec-leaf { transform: translateX(-22%); }
  .spec-info { max-width: none; }
}

/* ── Story · cinematic film + editorial ─────────────────────── */

.ethos { position: relative; padding: var(--sec-y) var(--pad-x); }
.ethos > .eyebrow, .manifesto {
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
}

.story-film {
  position: relative;
  max-width: 84rem;
  margin: clamp(4.5rem, 10vh, 7rem) auto 0;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border: 1px solid rgba(30, 26, 22, 0.09);
}
.story-film .corner { position: absolute; width: 13px; height: 13px; }
.story-film .c1 { top: -1px; left: -1px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.story-film .c2 { top: -1px; right: -1px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.story-film .c3 { bottom: -1px; left: -1px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.story-film .c4 { bottom: -1px; right: -1px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.story-film-frame { overflow: hidden; }
.story-slides { position: relative; }
.story-slides img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.story-film video,
.story-film img {
  display: block;
  width: 100%;
  height: clamp(20rem, 66vh, 38rem);
  object-fit: cover;
  filter: saturate(0.9);
  will-change: transform;
}
.story-film figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
}
.story-film figcaption .mono:last-child { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 760px) {
  .story-film video,
  .story-film img { height: clamp(14rem, 62vw, 22rem); }
}
.story-film figcaption .mono { font-size: 0.58rem; }

.story-single {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  letter-spacing: 0.01em;
  line-height: 2;
  color: var(--ink);
  max-width: 46rem;
  margin: clamp(4.5rem, 10vh, 7rem) auto 0;
}


.story-ledger {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 72rem;
  margin: clamp(4.5rem, 10vh, 7rem) auto 0;
}
.story-ledger li {
  padding: clamp(1.4rem, 3vh, 2.2rem) 1rem;
  text-align: center;
}
.story-ledger li + li { border-left: 1px solid var(--line); }
.story-ledger strong {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}
.story-ledger .mono { font-size: 0.56rem; color: var(--ink-faint); }

.story-vertical {
  position: absolute;
  right: 0.9rem;
  top: 62%;
  writing-mode: vertical-rl;
  color: rgba(30, 26, 22, 0.4);
  white-space: nowrap;
}
@media (max-width: 1100px) { .story-vertical { display: none; } }
@media (max-width: 860px) {
  .story-cols { grid-template-columns: 1fr; }
  .story-ledger { grid-template-columns: repeat(2, 1fr); }
  .story-ledger li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story-ledger li:nth-child(3) { border-left: none; }
}

/* ── Collection ─────────────────────────────────────────────── */

.collection { position: relative; background: var(--paper); }
.collection-pin {
  position: relative;
  padding: clamp(5rem, 10vh, 7rem) var(--pad-x) clamp(3rem, 6vh, 4rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.collection-head { text-align: center; }
.collection-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.15;
}

.collection-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
}

/* the cup */
.cup-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}
.cup-outer {
  position: relative;
  width: min(46vh, 34vw, 500px);
  aspect-ratio: 1;
}
.cup-liquid {
  width: 100%;
  height: 100%;
  position: relative;
}
.cup-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
  opacity: 0;
}
.cup-photo:first-child { opacity: 1; }

.cup-shadow { display: none; }
.cup-caption { margin-top: 1.6rem; }

/* panels */
.panels { position: relative; min-height: 30rem; }
.panel { max-width: 30rem; }
.panel .disc { display: none; }

.panel-index { display: block; margin-bottom: 1.6rem; }
.panel-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.08;
}
.panel-kr {
  display: inline-block;
  font-weight: 200;
  font-size: 0.52em;
  color: var(--ink-faint);
  margin-left: 0.35em;
  transform: translateY(-0.25em);
}
.panel-lede {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  max-width: 26rem;
}
.panel-lede em { font-style: italic; color: var(--ink); }

.panel-data {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.panel-data > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}
.panel-data dt { color: var(--ink-faint); }
.panel-data dd {
  color: var(--ink);
  text-align: right;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.panel-link {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.panel-link-line { display: none; }
.panel-link:hover { background: var(--ink); color: var(--paper); }

/* pinned (desktop) mode: panels overlay + crossfade */
.pin-mode .panels { display: grid; }
.pin-mode .panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
}
.pin-mode .panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.collection-progress {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.collection-progress-track {
  width: clamp(120px, 18vw, 240px);
  height: 1px;
  background: var(--line);
  position: relative;
}
.collection-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0.333);
  transform-origin: left;
}

/* stacked (mobile / reduced-motion) mode */
@media (max-width: 980px) {
  .collection-pin { min-height: 0; }
  .collection-body { grid-template-columns: 1fr; }
  .cup-stage, .collection-progress { display: none; }
  .panels { display: flex; flex-direction: column; gap: 5rem; min-height: 0; }
  .panel .disc {
    display: block;
    width: min(66vw, 340px);
    aspect-ratio: 1;
    margin: 0 auto 2.2rem;
  }
  .panel .disc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* ── The Shelf ──────────────────────────────────────────────── */

.shelf {
  position: relative;
  background: var(--paper);
  padding: var(--sec-y) var(--pad-x);
}
.shop-page .shelf {
  background: transparent;
  padding-top: clamp(9rem, 18vh, 12rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  min-height: auto;
}
.shelf-sub {
  max-width: 42rem;
  margin: 1.8rem auto 0;
  color: var(--ink-soft);
}
.mobile-menu-shop-all { color: var(--ink); }
.shelf-head { text-align: center; }
.shelf-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  max-width: 84rem;
  margin: clamp(3.5rem, 9vh, 6.5rem) auto 0;
}
.shelf-card { display: block; text-align: center; }
.shelf-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.shelf-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2.5%;
  transition: opacity 0.7s var(--ease-out), transform 1.1s var(--ease-out);
}
.shelf-loose { opacity: 0; transform: scale(1.05); }
.shelf-card:hover .shelf-loose { opacity: 1; transform: scale(1); }
.shelf-card:hover .shelf-pack { opacity: 0; }
.shelf-card:hover .shelf-name { color: var(--clay); }
.shelf-name {
  margin-top: 1.6rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  transition: color 0.4s;
}
.shelf-name span {
  font-weight: 200;
  font-size: 0.72em;
  color: var(--ink-faint);
  margin-left: 0.3em;
}
.shelf-meta { margin-top: 0.5rem; }
.shelf-note {
  text-align: center;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  color: var(--ink-faint);
}
@media (max-width: 1080px) {
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; gap: 4rem 3rem; }
}
@media (max-width: 640px) {
  .shelf-grid { grid-template-columns: 1fr; gap: 3.4rem; max-width: 22rem; }
}

/* ── Teaware ────────────────────────────────────────────────── */

.teaware {
  position: relative;
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad-x) var(--sec-y);
}
.steeper-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 66rem;
  margin: clamp(4rem, 9vh, 6rem) auto clamp(5rem, 11vh, 8rem);
}
.steeper-media img {
  max-width: min(100%, 26rem);
  max-height: 30rem;
  margin: 0 auto;
}
.steeper-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.22em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.steeper-info .eyebrow { margin-bottom: 1.4rem; }
.steeper-copy {
  color: var(--ink-soft);
  max-width: 26rem;
  margin-bottom: 0.4rem;
}
@media (max-width: 820px) {
  .steeper-feature { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .steeper-copy { margin-left: auto; margin-right: auto; }
  .steeper-info .panel-link { margin-top: 1.6rem; }
}

.gear-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 6vh, 4.5rem) clamp(2rem, 4vw, 4rem);
  max-width: 72rem;
  margin: clamp(3.5rem, 9vh, 6rem) auto 0;
}
.gear-card { display: block; text-align: center; }
.gear-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}
.gear-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.gear-card:hover .gear-media img { transform: scale(1.04); }
.gear-card:hover .shelf-name { color: var(--clay); }
@media (max-width: 900px) {
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gear-grid { grid-template-columns: 1fr; max-width: 20rem; }
}

/* ── Journal ────────────────────────────────────────────────── */

.journal {
  position: relative;
  background: transparent;
  padding: clamp(9rem, 18vh, 12rem) var(--pad-x) var(--sec-y);
  min-height: 70vh;
}
.journal .shelf-head { text-align: center; }
.journal-list {
  list-style: none;
  max-width: 54rem;
  margin: clamp(4rem, 9vh, 6rem) auto 0;
  border-top: 1px solid var(--line);
}
.journal-row {
  display: flex;
  align-items: baseline;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}
.journal-no { color: var(--ink-faint); }
.journal-body { flex: 1; }
.journal-title { font-size: 0.82rem; letter-spacing: 0.26em; color: var(--ink); }
.journal-title a { transition: color 0.3s; }
.journal-title a:hover { color: var(--clay); }
.journal-body p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 34rem;
}
.journal-tag { white-space: nowrap; color: var(--ink-faint); font-size: 0.58rem; }
@media (max-width: 640px) {
  .journal-row { flex-wrap: wrap; }
  .journal-tag { margin-left: 2.4rem; }
}

/* ── Origin ─────────────────────────────────────────────────── */

.origin {
  position: relative;
  overflow: hidden;
  padding: var(--sec-y) var(--pad-x);
  min-height: 130vh;
  display: flex;
}
.origin-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.origin-media video {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.origin-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    rgba(243, 239, 231, 0.86) 26%,
    rgba(243, 239, 231, 0.38) 55%,
    rgba(243, 239, 231, 0.10) 78%,
    rgba(243, 239, 231, 0.42) 100%
  );
}
.origin-content {
  position: relative;
  z-index: 2;
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}
.origin-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  line-height: 1.18;
}
.origin-copy {
  margin: clamp(1.6rem, 4vh, 2.6rem) auto 0;
  max-width: 36rem;
  color: var(--ink-soft);
}
.origin-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  margin-top: clamp(2.4rem, 6vh, 4rem);
}
.origin-stats .mono, .origin-stats span { letter-spacing: 0.14em; }
.origin-stats li { display: flex; flex-direction: column; gap: 0.5rem; }
.origin-stats strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.origin-vertical {
  position: absolute;
  z-index: 2;
  left: calc(var(--pad-x) / 2);
  bottom: 14%;
  writing-mode: vertical-rl;
  color: rgba(30, 26, 22, 0.5);
}
.origin-credit {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  bottom: 2rem;
  color: rgba(30, 26, 22, 0.45);
  font-size: 0.58rem;
}
@media (max-width: 900px) { .origin-vertical, .origin-credit { display: none; } }

/* ── Ritual ─────────────────────────────────────────────────── */

.ritual {
  position: relative;
  background: var(--paper-deep);
  padding: var(--sec-y) var(--pad-x);
  text-align: center;
}
.ritual-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 4rem);
}
.ritual-intro {
  max-width: 36rem;
  margin: clamp(1.6rem, 4vh, 2.6rem) auto 0;
  color: var(--ink-soft);
}
.ritual-intro em { font-style: italic; color: var(--ink); }

.ritual-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 62rem;
  margin: clamp(3.5rem, 9vh, 6rem) auto 0;
}
.ritual-steps li { text-align: center; }
.ritual-hanja {
  display: block;
  font-family: var(--serif-kr);
  font-weight: 200;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--clay);
  margin-bottom: 1.4rem;
}
.ritual-steps h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.ritual-steps p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 18rem;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .ritual-steps { grid-template-columns: 1fr; gap: 3.4rem; }
}

/* ── Quote ──────────────────────────────────────────────────── */

.quote {
  position: relative;
  overflow: hidden;
  padding: calc(var(--sec-y) * 1.15) var(--pad-x);
  text-align: center;
}
.quote-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.quote-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-wash {
  position: absolute;
  inset: 0;
  background: rgba(243, 239, 231, 0.82);
  backdrop-filter: blur(1px);
}
.quote-inner { position: relative; z-index: 1; }
.quote-mark { width: 46px; margin: 0 auto clamp(2rem, 5vh, 3.2rem); }
.quote-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.1vw, 3.4rem);
  line-height: 1.5;
  max-width: 46rem;
  margin: 0 auto;
}
.quote cite { display: block; margin-top: clamp(1.8rem, 4vh, 2.8rem); font-style: normal; }

/* ── Newsletter ─────────────────────────────────────────────── */

.letter {
  padding: clamp(3rem, 7vh, 5rem) var(--pad-x) clamp(4rem, 9vh, 6rem);
  border-top: 1px solid var(--line);
}
.letter-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.letter-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.letter-copy {
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 1.4rem auto 0;
}
.letter-form {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.letter-form input {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.9rem 0.2rem;
  min-width: min(20rem, 70vw);
  outline: none;
  border-radius: 0;
}
.letter-form input::placeholder { color: var(--ink-faint); }
.letter-form input:focus { border-bottom-color: var(--clay); }
.letter-thanks {
  display: none;
  margin-top: 1.8rem;
  color: var(--clay);
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  background: #171310;
  color: #d9d2c4;
  overflow: hidden;
  padding: clamp(2.8rem, 6vh, 4rem) var(--pad-x) 1.6rem;
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: #ffffff; }

.footer-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}
.footer-mark { height: 30px; width: auto; opacity: 0.9; }
.footer-tag {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  color: #b5ac9a;
}
.footer-cols { display: flex; gap: clamp(2.5rem, 7vw, 7rem); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.94rem; font-weight: 300; color: #cfc7b7; }
.footer-head {
  color: #877e6d;
  margin-bottom: 0.7rem;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(217, 210, 196, 0.12);
  color: #877e6d;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Wholesale ──────────────────────────────────────────────── */

.wholesale {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 10rem) 1.4rem clamp(5rem, 10vh, 8rem);
}
.ws-ledger { margin-top: clamp(3rem, 7vh, 4.5rem); }
.ws-sheet { max-width: 46rem; margin: clamp(3.5rem, 8vh, 5.5rem) auto 0; }
.ws-group {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  margin: 2.8rem 0 0.4rem;
}
.ws-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.ws-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.ws-row-info { flex: 1; min-width: 0; }
.ws-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ws-name span {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 0.9em;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.ws-meta {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}
.ws-case {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  min-width: 4.2rem;
  text-align: right;
}
.ws-case.ws-por { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--ink-faint); }

.ws-form { max-width: 46rem; margin: 0 auto; }
.ws-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.8rem;
  margin-top: 0.8rem;
}
.ws-fields label {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.ws-fields .ws-wide { grid-column: 1 / -1; }
.ws-fields input,
.ws-fields textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  resize: vertical;
}
.ws-fields input:focus,
.ws-fields textarea:focus { border-color: var(--ink-soft); }

.ws-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.ws-subtotal { font-size: 0.72rem; letter-spacing: 0.2em; }
.ws-hint { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ink-faint); }
.ws-hint.is-met { color: var(--clay); }
.ws-submit { margin-top: 1.8rem; }
.ws-fine {
  margin-top: 1.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  line-height: 2;
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .ws-fields { grid-template-columns: 1fr; }
  .ws-row { flex-wrap: wrap; }
  .ws-case { min-width: 0; }
}

/* ── Back to top ────────────────────────────────────────────── */

.to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 110;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.to-top svg { width: 0.9rem; height: 0.9rem; display: block; }
.to-top.is-visible {
  opacity: 0.55;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .to-top { display: flex; }
}

/* ── Cart drawer ────────────────────────────────────────────── */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(30, 26, 22, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.cart-backdrop.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 130;
  width: min(430px, 94vw);
  background: var(--paper);
  box-shadow: -30px 0 80px -30px rgba(30, 26, 22, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.55s var(--ease-out), visibility 0.55s;
}
.cart-drawer.is-open { transform: none; visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 1.8rem;
  border-bottom: 1px solid var(--line);
}
.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  padding: 0.2rem 0.5rem;
}

.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 1.8rem;
}
.cart-empty {
  text-align: center;
  padding: 4.5rem 1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 2.2;
}
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.12rem;
}
.cart-line-name span { color: var(--ink-faint); font-size: 0.85em; margin-left: 0.3em; }
.cart-line-price { margin-top: 0.3rem; }
.cart-line-controls { display: flex; align-items: center; gap: 0.55rem; }
.cart-qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color 0.3s;
}
.cart-qty-btn:hover { border-color: var(--ink); }
.cart-qty { min-width: 1.2rem; text-align: center; }
.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 1.05rem;
  padding: 0.2rem 0.1rem 0.2rem 0.5rem;
  transition: color 0.3s;
}
.cart-remove:hover { color: var(--clay); }

.cart-foot {
  padding: 1.4rem 1.8rem 1.7rem;
  border-top: 1px solid var(--line);
}
.cart-subtotal {
  display: none;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}
.cart-subtotal-amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
}
.cart-checkout { width: 100%; text-align: center; display: none; }
.cart-ship {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  margin-top: 1.1rem;
  margin-bottom: 0.8rem;
  text-align: center;
}
.cart-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Tea product pages ──────────────────────────────────────── */

.tea-main { position: relative; z-index: 1; }

.tea-hero { padding: clamp(8rem, 16vh, 11rem) var(--pad-x) clamp(4rem, 9vh, 6rem); }
.tea-breadcrumb { margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.tea-breadcrumb a { color: var(--ink-faint); transition: color 0.3s; }
.tea-breadcrumb a:hover { color: var(--ink); }

.tea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 76rem;
  margin: 0 auto;
  align-items: start;
}

.tea-stage {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.tea-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
  transition: opacity 0.4s ease;
}
.tea-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.tea-thumb {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.tea-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.35s;
}
.tea-thumb.is-active img, .tea-thumb:hover img { opacity: 1; }
.tea-thumb .mono { display: block; margin-top: 0.5rem; font-size: 0.56rem; white-space: nowrap; }
@media (max-width: 640px) {
  .tea-thumb .mono { font-size: 0.48rem; letter-spacing: 0.16em; }
}

.tea-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.05;
}
.tea-name span {
  font-weight: 200;
  font-size: 0.5em;
  color: var(--ink-faint);
  margin-left: 0.35em;
}
.tea-lede {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  max-width: 30rem;
}
.tea-info .panel-data { margin-top: 2rem; }

.tea-buy { margin-top: 2.4rem; }
.format-label { display: block; margin-bottom: 0.8rem; }
.format {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 26rem;
  margin-bottom: 1.6rem;
}
.format-opt {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.08rem;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.format-opt .mono {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.56rem;
  color: var(--ink-faint);
  transition: color 0.3s;
}
.format-opt:hover { border-color: var(--ink-faint); }
.format-opt.is-active {
  border-color: var(--ink);
  background: var(--porcelain);
}
.format-opt.is-active .mono { color: var(--ink-soft); }
.tea-price {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  display: none;
}
.tea-price.is-visible { display: block; }
.tea-buy-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.qty {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
}
.qty button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
}
.qty span {
  font-family: var(--mono);
  font-size: 0.9rem;
  min-width: 1.1rem;
  text-align: center;
}
#add-to-cart.is-busy { opacity: 0.55; pointer-events: none; }
.tea-ship { margin-top: 1.3rem; color: var(--ink-faint); }

.tea-story {
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x);
  max-width: 62rem;
  margin: 0 auto;
}
.tea-story-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.72;
  color: var(--ink);
}
.tea-story-text + .tea-story-text { margin-top: 1.8rem; }
.tea-story-text em { font-style: italic; color: var(--clay); }

.tea-brew {
  background: var(--paper-deep);
  padding: clamp(4.5rem, 10vh, 7rem) var(--pad-x);
  text-align: center;
}
.tea-brew-note {
  max-width: 30rem;
  margin: clamp(1.4rem, 3vh, 2rem) auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tea-benefits {
  padding: clamp(4.5rem, 10vh, 7rem) var(--pad-x);
  max-width: 62rem;
  margin: 0 auto;
}
.tea-benefits ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 5vh, 3rem);
}
.tea-benefits li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
@media (max-width: 700px) { .tea-benefits ul { grid-template-columns: 1fr; } }

.tea-prov {
  background: var(--paper-deep);
  padding: clamp(4rem, 9vh, 6rem) var(--pad-x);
}
.tea-prov .eyebrow { text-align: center; }
.prov-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 64rem;
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  text-align: center;
}
.prov-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  margin-bottom: 0.55rem;
}
.prov-grid .mono { font-size: 0.58rem; color: var(--ink-faint); }
@media (max-width: 860px) { .prov-grid { grid-template-columns: repeat(2, 1fr); } }

.tea-keeping {
  padding: clamp(4rem, 9vh, 6.5rem) var(--pad-x);
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.tea-keeping-note {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.tea-keeping-note em { font-style: italic; color: var(--clay); }

.tea-related {
  padding: 0 var(--pad-x) var(--sec-y);
  text-align: center;
}
.tea-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 46rem;
  margin: clamp(2.4rem, 6vh, 4rem) auto 0;
}
.tea-related-card { display: block; }
.tea-related-card img {
  width: min(52vw, 230px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.6s var(--ease-out);
}
.tea-related-card:hover img { transform: scale(1.035); }
.tea-related-card h3 {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
}
.tea-related-card h3 span { color: var(--ink-faint); font-size: 0.75em; margin-left: 0.3em; }
.tea-related-card .mono { margin-top: 0.4rem; }

@media (max-width: 900px) {
  .tea-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .grain, .hero-scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   MARU TYPE SYSTEM — Fraunces carries display, Karla carries the rest
   (Korean glyphs stay in Noto Serif KR)
   ═══════════════════════════════════════════════════════════════ */

/* section titles — the headline voice */
.specimen-title, .shelf-title, .ritual-title, .letter-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  font-size: clamp(1.08rem, 2.1vw, 1.7rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.9;
}

/* editorial paragraphs — quiet sans, sentence case */
.manifesto {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.3vw, 1.8rem);
  line-height: 1.9;
  letter-spacing: 0.01em;
}
.manifesto em { font-style: italic; }
.tea-story-text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.8vw, 1.28rem);
  line-height: 2;
  letter-spacing: 0.01em;
}
.tea-keeping-note {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.7vw, 1.25rem);
  line-height: 1.95;
  letter-spacing: 0.01em;
}
.tea-story-text em, .tea-keeping-note em { font-style: italic; color: var(--clay); }

/* product & tea names — tracked caps, Korean stays serif */
.panel-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.7;
}
.panel-kr {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  transform: none;
}
.tea-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tea-name span {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 0.72em;
  letter-spacing: 0.06em;
}
.shelf-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.shelf-name span {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 0.95em;
  letter-spacing: 0.06em;
}
.tea-related-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tea-related-card h3 span {
  font-family: var(--serif-kr);
  font-weight: 300;
  font-size: 0.95em;
  letter-spacing: 0.06em;
}

/* stats, provenance, commerce */
.prov-grid strong, .story-stats strong {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tea-price { font-family: var(--serif); font-variation-settings: "opsz" 40; font-weight: 400; font-size: 1.2rem; letter-spacing: 0.08em; }
.format-opt { font-family: var(--mono); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cart-line-name { font-family: var(--mono); font-weight: 400; font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; }
.cart-line-name span { font-family: var(--serif-kr); font-weight: 300; letter-spacing: 0.04em; }
.cart-empty { font-family: var(--mono); font-weight: 300; font-size: 0.92rem; letter-spacing: 0.14em; line-height: 2.4; }
.cart-subtotal-amount { font-family: var(--serif); font-variation-settings: "opsz" 40; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.06em; }
.footer-tag { font-family: var(--mono); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; }

/* navigation & menus */
.nav-dropdown a { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.mobile-menu nav a { font-family: var(--mono); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.3em; text-transform: uppercase; }
.mobile-menu-shop a { font-family: var(--mono); font-weight: 300; font-size: 0.9rem; letter-spacing: 0.22em; text-transform: uppercase; }
