:root {
  /* Primitive palette */
  --p-bone: oklch(0.968 0.008 95);
  --p-parchment: oklch(0.935 0.014 88);
  --p-ink: oklch(0.17 0.005 70);
  --p-ink-soft: oklch(0.36 0.009 70);
  --p-bronze: oklch(0.45 0.055 65);
  --p-vermilion: oklch(0.62 0.24 29);
  --p-dark-red: oklch(0.47 0.19 29);

  /* Semantic palette */
  --surface: var(--p-bone);
  --surface-subtle: var(--p-parchment);
  --surface-dark: var(--p-ink);
  --text: var(--p-ink);
  --text-muted: var(--p-ink-soft);
  --text-on-dark: var(--p-bone);
  --accent: var(--p-vermilion);
  --accent-dark: var(--p-dark-red);
  --line: color-mix(in oklch, var(--p-bronze) 28%, transparent);
  --line-dark: color-mix(in oklch, var(--p-bone) 24%, transparent);

  /* Component tokens */
  --header-bg: var(--surface);
  --button-bg: var(--p-ink);
  --button-text: var(--p-bone);
  --focus-ring: var(--p-vermilion);
  --font-body: "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-display: "Bodoni 72", Didot, "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  min-width: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button { border: 0; background: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
::selection { color: var(--text-on-dark); background: var(--accent-dark); }

.skip-link {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  color: var(--button-text);
  background: var(--button-bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg); }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 82px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { position: relative; display: flex; min-height: 44px; align-items: center; font-size: 12px; }
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.main-nav small { display: none; }
.header-index { display: none; }

.showcase {
  position: relative;
  display: grid;
  min-height: 100dvh;
  gap: 28px;
  overflow: hidden;
  padding: 100px 20px 40px;
  isolation: isolate;
}
.showcase-topline { position: relative; z-index: 3; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 9px; letter-spacing: 0.16em; }
.showcase-topline p:last-child { display: none; }
.showcase-topline span { color: var(--accent); }
.giant-word {
  position: absolute;
  z-index: -1;
  top: 43%;
  left: -12%;
  width: 118%;
  max-width: none;
  opacity: 0.045;
  filter: grayscale(1);
  pointer-events: none;
}
.ambient-mesh {
  position: absolute;
  z-index: -2;
  top: 2%;
  right: -46%;
  width: 125%;
  color: var(--p-bronze);
  opacity: 0.16;
  pointer-events: none;
  animation: mesh-drift 18s var(--ease-out) infinite alternate;
  animation-play-state: paused;
}
.showcase.is-motion-active .ambient-mesh { animation-play-state: running; }
.ambient-mesh svg { width: 100%; stroke-width: 0.8; }
@keyframes mesh-drift {
  from { transform: translate3d(0, -2%, 0) rotate(-4deg); }
  to { transform: translate3d(-4%, 4%, 0) rotate(2deg); }
}
@keyframes hero-enter {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.hero-copy { position: relative; z-index: 4; max-width: 100%; animation: hero-enter 700ms var(--ease-out) both; }
.eyebrow { color: var(--accent-dark); font-size: 10px; font-weight: 500; letter-spacing: 0.22em; }
.hero-copy h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 15vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.08;
}
.hero-copy h1 span { color: var(--p-bronze); }
.hero-intro { margin-top: 18px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.current-info { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.current-series { color: var(--text-muted); font-size: 9px; letter-spacing: 0.18em; }
.current-info h2 { min-height: 2.4em; margin-top: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; }
.current-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.current-tags span { color: var(--text-muted); font-size: 11px; }
.current-tags span + span::before { margin-right: 8px; color: var(--accent); content: "·"; }
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 24px;
  color: var(--button-text);
  background: var(--button-bg);
  font-size: 13px;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.primary-button svg { width: 18px; height: 18px; }
.primary-button:hover { transform: translateY(-2px); }
.primary-button:active { opacity: 0.78; transform: translateY(0) scale(0.98); }

.gallery-column { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; animation: hero-enter 800ms 90ms var(--ease-out) both; }
.product-stage {
  position: relative;
  height: 100vw;
  max-height: 480px;
  min-height: 340px;
  outline-offset: -2px;
  touch-action: pan-y;
  user-select: none;
}
.slides { position: absolute; inset: 0; }
.product-slide {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 92%;
  height: 86%;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.8);
  transition: transform 600ms var(--ease-out), opacity 500ms var(--ease-out), visibility 0s 600ms;
 
}
.product-slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform 240ms var(--ease-out); }
.product-slide img:not([src]) { opacity: 0; }
.product-slide.is-active {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 240ms var(--ease-out), opacity 400ms var(--ease-out), visibility 0s;
}
.product-slide.is-prev, .product-slide.is-next { display: none; }
.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 46%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover { color: var(--accent-dark); transform: scale(1.08); }
.carousel-arrow:active { opacity: 0.6; transform: scale(0.94); }
.arrow-prev { left: -8px; }
.arrow-next { right: -8px; }
.gesture-hint { position: absolute; right: 0; bottom: -2px; left: 0; color: var(--text-muted); font-size: 9px; letter-spacing: 0.14em; text-align: center; pointer-events: none; }
.carousel-toolbar { display: flex; min-height: 44px; align-items: center; gap: 16px; margin-top: 8px; }
.counter { display: flex; align-items: baseline; gap: 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.counter strong { color: var(--accent-dark); font-size: 20px; font-weight: 400; }
.counter span { color: var(--text-muted); }
.autoplay-progress { position: relative; height: 1px; flex: 1; overflow: hidden; background: var(--line); }
.autoplay-progress span { position: absolute; inset: 0; background: var(--accent-dark); transform: scaleX(0); transform-origin: left; }
.autoplay-button { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--text-muted); font-size: 10px; }
.autoplay-button svg { width: 16px; height: 16px; }
.autoplay-button .play-icon { display: none; }
.autoplay-button[aria-pressed="false"] .pause-icon { display: none; }
.autoplay-button[aria-pressed="false"] .play-icon { display: block; }
.autoplay-button:hover { color: var(--accent-dark); }
.thumbnail-rail {
  display: flex;
  gap: 8px;
  margin: 8px -20px 0;
  padding: 4px 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.thumbnail-rail::-webkit-scrollbar { display: none; }
.thumbnail-button {
  position: relative;
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid transparent;
  scroll-snap-align: center;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.thumbnail-button img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail-button::after { position: absolute; right: 8px; bottom: -4px; left: 8px; height: 1px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform 220ms var(--ease-out); }
.thumbnail-button:hover { transform: translateY(-3px); }
.thumbnail-button[aria-current="true"] { border-color: var(--line); }
.thumbnail-button[aria-current="true"]::after { transform: scaleX(1); }
.hero-footnote { display: none; }

.collection-section { padding: 88px 20px; background: var(--surface-subtle); }
.section-heading { display: grid; gap: 24px; }
.section-heading h2 { margin-top: 10px; font-family: var(--font-display); font-size: 44px; font-weight: 500; letter-spacing: 0.03em; line-height: 1.15; }
.section-note { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.collection-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-width: 52px; min-height: 44px; padding: 8px 16px; border-radius: 22px; color: var(--text-muted); font-size: 13px; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.filters button:hover { color: var(--text); transform: translateY(-2px); }
.filters button[aria-pressed="true"] { color: var(--button-text); background: var(--button-bg); }
.result-count { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; margin-top: 32px; }
.collection-card { display: block; min-width: 0; border-top: 1px solid var(--line); text-align: left; }
.collection-card[hidden] { display: none; }
.card-image { position: relative; aspect-ratio: 1; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.collection-card:hover .card-image img { transform: scale(1.055); }
.card-index { display: inline-block; margin-top: 4px; color: var(--accent-dark); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.collection-card h3 { margin-top: 6px; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.45; }
.card-tags { margin-top: 5px; color: var(--text-muted); font-size: 10px; }
.collection-card:active .card-image img { transform: scale(0.98); }

.craft-section { position: relative; display: grid; gap: 48px; overflow: hidden; padding: 88px 20px; color: var(--text-on-dark); background: var(--surface-dark); isolation: isolate; }
.craft-statement { position: relative; z-index: 2; }
.craft-statement .eyebrow { color: var(--p-bone); opacity: 0.65; }
.craft-statement h2 { margin-top: 20px; font-family: var(--font-display); font-size: 38px; font-weight: 500; letter-spacing: 0.03em; line-height: 1.3; }
.craft-statement > p:last-child { margin-top: 24px; color: var(--p-parchment); font-size: 14px; line-height: 1.9; }
.craft-links { position: relative; z-index: 2; }
.craft-links button {
  display: grid;
  width: 100%;
  min-height: 84px;
  grid-template-columns: 32px 1fr 24px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  text-align: left;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.craft-links button:last-child { border-bottom: 1px solid var(--line-dark); }
.craft-links button:hover { transform: translateX(8px); }
.craft-links button:active { opacity: 0.65; }
.craft-links button > span { color: var(--p-parchment); font-size: 10px; }
.craft-links strong { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.craft-links small { display: none; }
.craft-links svg { width: 24px; height: 24px; }
.craft-wordmark { position: absolute; z-index: -1; right: -20%; bottom: 2%; width: 90%; opacity: 0.055; filter: invert(1); transform: rotate(-8deg); pointer-events: none; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 20px; border-top: 1px solid var(--line); background: var(--surface); font-size: 11px; }
.footer-brand { display: inline-flex; min-height: 44px; align-items: center; }
.footer-brand img { width: 88px; height: auto; }
.site-footer p { color: var(--text-muted); }
.site-footer a:last-child { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: var(--surface);
}
.lightbox::backdrop { background: color-mix(in oklch, var(--p-ink) 76%, transparent); }
.lightbox[open] { display: grid; grid-template-rows: 72px 1fr auto; animation: lightbox-enter 240ms var(--ease-out); }
@keyframes lightbox-enter { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
.lightbox-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.lightbox-topbar > div { display: flex; flex-direction: column; line-height: 1.2; }
.lightbox-brand img { width: 72px; height: auto; }
.lightbox-topbar small { margin-top: 2px; color: var(--text-muted); font-size: 8px; letter-spacing: 0.18em; }
.lightbox-close { display: grid; width: 44px; height: 44px; place-items: center; transition: transform 220ms var(--ease-out); }
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-close svg { width: 26px; height: 26px; }
.lightbox-image-wrap { display: grid; min-height: 0; place-items: center; overflow: auto; cursor: zoom-in; }
.lightbox-image-wrap img { width: 92%; height: 92%; object-fit: contain; transition: transform 260ms var(--ease-out); }
.lightbox-image-wrap.is-zoomed { cursor: zoom-out; }
.lightbox-image-wrap.is-zoomed img { transform: scale(1.65); }
.lightbox-bottombar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.lightbox-bottombar > button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; }
.lightbox-bottombar > button:hover { color: var(--accent-dark); }
.lightbox-bottombar > button span { display: none; }
.lightbox-bottombar svg { width: 24px; height: 24px; }
.lightbox-caption { min-width: 0; text-align: center; }
.lightbox-caption h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.35; }
.lightbox-caption p { margin-top: 4px; color: var(--text-muted); font-size: 9px; }

@media (min-width: 768px) {
  .site-header { height: 84px; padding: 0 3.5vw; }
  .brand { gap: 12px; }
  .brand-logo { width: 104px; height: auto; }
  .main-nav { gap: 34px; }
  .main-nav a { flex-direction: column; justify-content: center; gap: 1px; font-size: 12px; line-height: 1.3; }
  .main-nav small { display: block; color: var(--text-muted); font-size: 7px; letter-spacing: 0.12em; }
  .header-index { display: inline-flex; min-height: 44px; align-items: baseline; gap: 6px; font-family: var(--font-display); font-size: 22px; }
  .header-index span { color: var(--text-muted); font-family: var(--font-body); font-size: 10px; }

  .showcase { grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.55fr); grid-template-rows: auto 1fr auto; column-gap: 2vw; padding: 112px 3.5vw 28px; }
  .showcase-topline { grid-column: 1 / -1; font-size: 9px; }
  .showcase-topline p:last-child { display: block; }
  .giant-word { top: 34%; left: 19%; width: 76%; opacity: 0.04; }
  .ambient-mesh { top: -12%; right: -18%; width: 72%; }
  .hero-copy { grid-column: 1; grid-row: 2; align-self: center; padding-bottom: 32px; }
  .hero-copy h1 { font-size: clamp(4rem, 6.4vw, 6.5rem); }
  .hero-intro { font-size: 15px; }
  .current-info { max-width: 360px; margin-top: 36px; }
  .current-info h2 { font-size: 24px; }
  .gallery-column { grid-column: 2; grid-row: 2 / 4; min-height: 0; }
  .product-stage { height: auto; max-height: none; min-height: 520px; flex: 1; }
  .product-slide { width: 82%; height: 88%; }
  .product-slide.is-prev, .product-slide.is-next {
    z-index: 1;
    display: block;
    opacity: 0.16;
    visibility: visible;
    cursor: pointer;
    transition: transform 600ms var(--ease-out), opacity 500ms var(--ease-out), visibility 0s;
  }
  .product-slide.is-prev { transform: translate(-112%, -50%) rotate(-7deg) scale(0.62); }
  .product-slide.is-next { transform: translate(12%, -50%) rotate(7deg) scale(0.62); }
  .product-slide.is-prev:hover, .product-slide.is-next:hover { opacity: 0.3; }
  .carousel-arrow { width: 52px; height: 52px; }
  .arrow-prev { left: 0; }
  .arrow-next { right: 0; }
  .gesture-hint { bottom: 2px; }
  .thumbnail-rail { justify-content: center; margin: 8px 0 0; padding: 4px 0 12px; }
  .thumbnail-button { width: 62px; min-width: 62px; height: 62px; }
  .hero-footnote { position: relative; z-index: 3; display: flex; grid-column: 1; grid-row: 3; align-items: flex-start; gap: 16px; align-self: end; color: var(--text-muted); }
  .hero-footnote span { padding-top: 3px; color: var(--accent-dark); font-size: 9px; letter-spacing: 0.15em; }
  .hero-footnote p { font-size: 11px; line-height: 1.8; }

  .collection-section { padding: 120px 4vw; }
  .section-heading { grid-template-columns: 1fr auto; align-items: end; }
  .section-heading h2 { font-size: 64px; }
  .section-note { padding-bottom: 8px; text-align: right; }
  .collection-tools { margin-top: 56px; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; margin-top: 44px; }
  .collection-card h3 { font-size: 18px; }
  .card-tags { font-size: 11px; }

  .craft-section { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); align-items: center; gap: 8vw; padding: 128px 6vw; }
  .craft-statement h2 { font-size: clamp(2.6rem, 4.2vw, 4.5rem); }
  .craft-links button { grid-template-columns: 34px 1fr auto 28px; gap: 16px; }
  .craft-links small { display: block; color: var(--p-parchment); font-size: 8px; letter-spacing: 0.12em; }
  .craft-wordmark { right: -8%; bottom: -8%; width: 52%; }
  .site-footer { padding: 36px 4vw; }

  .lightbox[open] { grid-template-rows: 84px 1fr auto; }
  .lightbox-topbar { padding: 0 3vw; }
  .lightbox-image-wrap img { width: 82%; height: 92%; }
  .lightbox-bottombar { grid-template-columns: 1fr auto 1fr; padding: 20px 3vw; }
  .lightbox-bottombar > button span { display: inline; font-size: 12px; }
  .lightbox-bottombar > button:last-child { justify-self: end; }
  .lightbox-bottombar > button:first-child { justify-self: start; }
  .lightbox-caption h2 { font-size: 20px; }
  .lightbox-caption p { font-size: 10px; }
}

@media (min-width: 1280px) {
  .showcase { grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.6fr); }
  .product-stage { min-height: 570px; }
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .giant-word { transform: none !important; }
}
