/**
 * ????????????? / ???? / ?????
 * ? story.html ???????? Tab ????????
 */

/* ---------- ?? ---------- */
body[data-page="story"] .page-header .section-title,
body[data-page="products"] .page-header .section-title,
body[data-page="bespoke"] .page-header .section-title {
  color: #1a1a1a;
}

/* ---------- ???? ---------- */
body[data-page="story"] .section-story-body,
body[data-page="products"] .section-story-body,
body[data-page="bespoke"] .section-story-body {
  padding: 2rem 1.25rem 2.75rem;
  background: var(--color-bg);
}

body[data-page="story"] .section-story-inner,
body[data-page="products"] .section-story-inner,
body[data-page="bespoke"] .section-story-inner {
  max-width: min(var(--content-max), calc(100% - 2 * var(--content-pad-x)));
}

body[data-page="story"] .story-timeline--editorial,
body[data-page="products"] .story-timeline--editorial,
body[data-page="bespoke"] .story-timeline--editorial {
  padding-left: 0;
  border-left: none;
}

body[data-page="story"] .story-timeline--editorial .story-block,
body[data-page="products"] .story-timeline--editorial .story-block,
body[data-page="bespoke"] .story-timeline--editorial .story-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

body[data-page="story"] .story-timeline--editorial .story-block:last-of-type,
body[data-page="products"] .story-timeline--editorial .story-block:last-of-type,
body[data-page="bespoke"] .story-timeline--editorial .story-block:last-of-type {
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

body[data-page="story"] .story-timeline--editorial .story-milestone::before,
body[data-page="products"] .story-timeline--editorial .story-milestone::before,
body[data-page="bespoke"] .story-timeline--editorial .story-milestone::before {
  display: none;
}

body[data-page="story"] .story-milestone,
body[data-page="products"] .story-milestone,
body[data-page="bespoke"] .story-milestone {
  min-height: 2rem;
  margin: 0 0 1rem;
  justify-content: flex-start;
}

body[data-page="story"] .story-block:first-of-type .story-milestone,
body[data-page="products"] .story-block:first-of-type .story-milestone,
body[data-page="bespoke"] .story-block:first-of-type .story-milestone {
  justify-content: center;
}

body[data-page="story"] .story-milestone-label,
body[data-page="products"] .story-milestone-label,
body[data-page="bespoke"] .story-milestone-label {
  display: inline-block;
  min-height: auto;
  padding: 0.35rem 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-gold-dark);
  border: 1px solid var(--color-border-gold);
  border-radius: 999px;
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

html[lang="en"] body[data-page="story"] .story-milestone-label,
html[lang="en"] body[data-page="products"] .story-milestone-label,
html[lang="en"] body[data-page="bespoke"] .story-milestone-label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

body[data-page="story"] .story-block-body,
body[data-page="products"] .story-block-body,
body[data-page="bespoke"] .story-block-body {
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

body[data-page="story"] .story-block--img-right,
body[data-page="products"] .story-block--img-right,
body[data-page="bespoke"] .story-block--img-right {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

body[data-page="story"] .story-block--img-left,
body[data-page="products"] .story-block--img-left,
body[data-page="bespoke"] .story-block--img-left {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

body[data-page="story"] .story-block--text-only,
body[data-page="products"] .story-block--text-only,
body[data-page="bespoke"] .story-block--text-only {
  max-width: 44rem;
  margin: 0 auto;
}

body[data-page="story"] .story-block--text-only .story-para,
body[data-page="products"] .story-block--text-only .story-para,
body[data-page="bespoke"] .story-block--text-only .story-para {
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.95;
}

body[data-page="story"] .story-para,
body[data-page="products"] .story-para,
body[data-page="bespoke"] .story-para {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.92;
  color: #3d3d3d;
  text-align: left;
  letter-spacing: 0.02em;
}

body[data-page="story"] .story-para:last-child,
body[data-page="products"] .story-para:last-child,
body[data-page="bespoke"] .story-para:last-child {
  margin-bottom: 0;
}

body[data-page="story"] .story-highlight,
body[data-page="products"] .story-highlight,
body[data-page="bespoke"] .story-highlight {
  color: var(--color-gold-dark);
  font-weight: 700;
}

body[data-page="story"] .story-timeline--editorial .story-figure-media,
body[data-page="products"] .story-timeline--editorial .story-figure-media,
body[data-page="bespoke"] .story-timeline--editorial .story-figure-media {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 248px;
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  border: 1px solid var(--color-border-light);
  border-radius: 3px;
  background: var(--page-surface);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body[data-page="story"] .story-timeline--editorial .story-figure-media:hover,
body[data-page="products"] .story-timeline--editorial .story-figure-media:hover,
body[data-page="bespoke"] .story-timeline--editorial .story-figure-media:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-gold);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.09);
}

body[data-page="story"] .story-timeline--editorial .story-figure-media img,
body[data-page="products"] .story-timeline--editorial .story-figure-media img,
body[data-page="bespoke"] .story-timeline--editorial .story-figure-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  pointer-events: none;
}

body[data-page="story"] .story-img-zoom-hint,
body[data-page="products"] .story-img-zoom-hint,
body[data-page="bespoke"] .story-img-zoom-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  line-height: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 50%;
  opacity: 0.88;
}

body[data-page="story"] .story-figure figcaption,
body[data-page="products"] .story-figure figcaption,
body[data-page="bespoke"] .story-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-align: left;
}

body[data-page="story"] .story-cta-module,
body[data-page="products"] .story-cta-module,
body[data-page="bespoke"] .story-cta-module {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

body[data-page="story"] .story-cta-module .cta-jump--wide,
body[data-page="products"] .story-cta-module .cta-jump--wide,
body[data-page="bespoke"] .story-cta-module .cta-jump--wide {
  margin: 0 auto;
}

/* ---------- ????????????? ---------- */
body[data-page="products"] .product-brand-block .product-grid {
  margin-top: 1.35rem;
}

body[data-page="products"] .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

body[data-page="products"] .product-card {
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

body[data-page="products"] .product-img-wrap {
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 200px;
  background: var(--page-surface);
}

body[data-page="products"] .product-img-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

body[data-page="products"] .product-img-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

body[data-page="products"] .product-name {
  font-size: 0.88rem;
  margin: 0.65rem 0 0.3rem;
  font-weight: 700;
}

body[data-page="products"] .product-brand {
  font-size: 0.82rem;
  margin: 0 0 0.2rem;
  color: var(--color-gold-dark);
}

body[data-page="products"] .product-series {
  font-size: 0.76rem;
  margin: 0;
  color: #8b7355;
}

body[data-page="products"] .product-grid--catalog {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border-light);
}

body[data-page="products"] .product-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 18rem;
  margin: 1.5rem auto 0;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
}

body[data-page="products"] .product-expand-arrow {
  transition: transform 0.25s ease;
}

body[data-page="products"] .product-expand-btn.is-expanded .product-expand-arrow {
  transform: rotate(180deg);
}

/* ---------- ?????? ---------- */
body.product-preview-open {
  overflow: hidden;
}

.product-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-preview-modal[hidden] {
  display: none !important;
}

.product-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 12, 0.74);
  cursor: pointer;
}

.product-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #fffefb;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 22px 56px rgba(26, 26, 26, 0.22);
}

.product-preview-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  background: rgba(255, 254, 251, 0.95);
  color: var(--color-gold-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.product-preview-zoom-viewport {
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  max-height: min(58vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview-image-wrap img {
  display: block;
  width: 100%;
  max-height: min(58vh, 520px);
  object-fit: contain;
  background: #f8f6f0;
  transform-origin: center center;
}

.product-preview-meta {
  padding: 1.35rem 1.75rem 1.6rem;
  text-align: center;
}

.product-preview-name {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.product-preview-brand {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-gold-dark);
}

.product-preview-series {
  margin: 0;
  font-size: 0.82rem;
  color: #8b7355;
}

.product-preview-rule {
  width: 48px;
  height: 2px;
  margin: 1rem auto;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.product-preview-intro {
  margin: 0;
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.9;
}

/* ---------- ??????????? contact-box ---------- */
body[data-page="bespoke"] .story-cta-module .contact-box {
  width: 100%;
  max-width: 36rem;
}

body[data-page="bespoke"] .bespoke-contact-heading {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

body[data-page="bespoke"] .bespoke-contact-desc {
  margin-bottom: 1rem;
}

@media (max-width: 1100px) {
  body[data-page="products"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body[data-page="story"] .story-block-body,
  body[data-page="products"] .story-block-body,
  body[data-page="bespoke"] .story-block-body,
  body[data-page="story"] .story-block--img-right,
  body[data-page="products"] .story-block--img-right,
  body[data-page="bespoke"] .story-block--img-right,
  body[data-page="story"] .story-block--img-left,
  body[data-page="products"] .story-block--img-left,
  body[data-page="bespoke"] .story-block--img-left {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  body[data-page="story"] .story-block--img-left .story-figure,
  body[data-page="products"] .story-block--img-left .story-figure,
  body[data-page="bespoke"] .story-block--img-left .story-figure {
    order: 2;
  }

  body[data-page="story"] .story-block--img-left .story-text,
  body[data-page="products"] .story-block--img-left .story-text,
  body[data-page="bespoke"] .story-block--img-left .story-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  body[data-page="story"] .section-story-body,
  body[data-page="products"] .section-story-body,
  body[data-page="bespoke"] .section-story-body {
    padding: 1.5rem 1rem 2.25rem;
  }

  body[data-page="products"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  body[data-page="story"] .story-milestone-label,
  body[data-page="products"] .story-milestone-label,
  body[data-page="bespoke"] .story-milestone-label {
    font-size: 0.72rem;
    white-space: normal;
    max-width: calc(100vw - 3rem);
    text-align: center;
  }

  body[data-page="story"] .story-para,
  body[data-page="products"] .story-para,
  body[data-page="bespoke"] .story-para {
    font-size: 0.94rem;
    line-height: 1.88;
  }
}
