/* 璽時 · curated by Derekson — public catalog site
   Ink / paper / muted gold. Restrained, unhurried, no hype — the visual twin of
   the brand voice (rules/brand-voice.md). */

:root {
  --ink: #16130f;
  --ink-soft: #3d372e;
  --paper: #f7f4ee;
  --paper-warm: #efe9df;
  --gold: #9a7b3f;
  --gold-soft: #b79a63;
  --hairline: rgba(22, 19, 15, .14);
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", sans-serif;
  --latin: "Cormorant Garamond", serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300;
       line-height: 1.9; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center;
       justify-content: space-between; padding: 18px 28px; transition: background .4s, box-shadow .4s; }
.nav.solid { background: rgba(247, 244, 238, .92); backdrop-filter: blur(10px);
             box-shadow: 0 1px 0 var(--hairline); }
.nav-brand { display: flex; align-items: baseline; gap: 12px; }
.nav-seal { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .35em; }
.nav-latin { font-family: var(--latin); font-size: .72rem; letter-spacing: .32em; color: var(--gold); }
.home .nav:not(.solid) { color: #f4efe6; }
.home .nav:not(.solid) .nav-latin { color: var(--gold-soft); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .86rem; letter-spacing: .18em; }
.nav-links a { opacity: .82; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: 6px 18px; }

/* ---------- cinematic scenes (frame-scrubbed, copy staged by scroll) ---------- */
.scene { position: relative; background: #0d0b09; }
.scene-hero { height: 320vh; }
.scene-interlude { height: 260vh; }
.scene-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-shade { position: absolute; inset: 0; z-index: 2;
               background: linear-gradient(180deg, rgba(12,10,8,.42), rgba(12,10,8,.18) 40%, rgba(12,10,8,.55)); }
.scene-shade-soft { background: radial-gradient(ellipse at center, rgba(12,10,8,.05), rgba(12,10,8,.6)); }
.scene-grain { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .05;
               background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scene-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
              justify-content: center; text-align: center; color: #f4efe6; z-index: 3; padding: 0 20px;
              will-change: opacity, transform;
              text-shadow: 0 1px 2px rgba(10,8,6,.55), 0 4px 26px rgba(10,8,6,.55); }
/* radial scrim behind the copy so white type stays legible over bright footage */
.scene-copy::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
                      width: min(120vmin, 980px); height: min(78vmin, 640px);
                      transform: translate(-50%, -50%);
                      background: radial-gradient(closest-side, rgba(10,8,6,.5), rgba(10,8,6,.28) 55%, transparent 100%); }
.hero-kicker { font-family: var(--latin); font-size: .78rem; letter-spacing: .5em; color: #cfb37c; }
.hero-seal { font-family: var(--serif); font-weight: 600; font-size: clamp(4rem, 11vw, 7.5rem);
             letter-spacing: .28em; text-indent: .28em; margin: 18px 0 8px; line-height: 1.15; }
.hero-latin { font-family: var(--latin); font-size: clamp(.85rem, 1.6vw, 1.05rem); letter-spacing: .5em; }
.hero-tag { margin-top: 26px; font-size: .95rem; letter-spacing: .14em; opacity: .85; }
.scene-line { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.4rem);
              letter-spacing: .22em; text-indent: .22em; }
.scene-subline { margin-top: 22px; font-family: var(--latin); font-size: .85rem; letter-spacing: .3em;
                 color: var(--gold-soft); }
.scene-interlude .scene-subline { font-family: var(--sans); font-size: .86rem; letter-spacing: .24em;
                                  color: rgba(244,239,230,.92); }
.hero-scroll-hint { margin-top: 54px; width: 1px; height: 64px; background: rgba(244,239,230,.28);
                    position: relative; overflow: hidden; }
.hero-scroll-hint span { position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
                         background: var(--gold-soft); animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 60%, 100% { top: 110%; } }

/* ---------- featured spotlight (editorial) ---------- */
.featured { padding: 110px 5vw 40px; }
.spot { display: grid; grid-template-columns: 7fr 5fr; gap: 54px; align-items: center;
        max-width: 1180px; margin: 0 auto 90px; }
.spot-flip { direction: rtl; }
.spot-flip > * { direction: ltr; }
.spot-media { aspect-ratio: 4 / 3; overflow: hidden; background: #e7e1d5; }
.spot-media img { width: 100%; height: 100%; object-fit: cover;
                  transition: transform 1.8s cubic-bezier(.2,.6,.2,1); }
.spot:hover .spot-media img { transform: scale(1.04); }
.spot-kicker { font-size: .76rem; letter-spacing: .34em; color: var(--gold); }
.spot-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
              letter-spacing: .08em; line-height: 1.7; margin: 14px 0 12px; }
.spot-selling { font-family: var(--serif); color: var(--ink-soft); letter-spacing: .06em;
                line-height: 2; margin-bottom: 14px; }
.spot-price { font-size: 1.02rem; letter-spacing: .12em; color: var(--gold);
              border-top: 1px solid var(--hairline); padding-top: 16px; }
.spot-price.muted { color: var(--ink-soft); }
.spot-cta { display: inline-block; margin-top: 18px; font-size: .84rem; letter-spacing: .22em;
            color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 4px;
            transition: color .3s; }
.spot:hover .spot-cta { color: var(--gold); }

/* ---------- sections ---------- */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: .4em;
               text-indent: .4em; }
.sec-sub { margin-top: 10px; font-size: .82rem; letter-spacing: .26em; color: var(--gold); }
.collection, .archive { padding: 40px 5vw 110px; }
.archive { background: var(--paper-warm); padding-top: 90px; }

/* ---------- category blocks ---------- */
.cat-block { max-width: 1280px; margin: 0 auto 72px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px;
            padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.cat-numeral { font-family: var(--latin); font-size: .95rem; color: var(--gold); letter-spacing: .1em; }
.cat-title { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: .3em; }
.cat-count { font-size: .78rem; letter-spacing: .2em; color: var(--gold); margin-left: auto; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 42px 30px;
        max-width: 1280px; margin: 0 auto; }
.grid-archive { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 22px; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e7e1d5; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover;
                                     transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.045); }
.card-body { padding: 16px 2px 0; }
.card-type { font-size: .74rem; letter-spacing: .3em; color: var(--gold); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; margin-top: 6px;
              letter-spacing: .06em; line-height: 1.7;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: 8px; font-size: .88rem; letter-spacing: .08em; color: var(--gold); }
.card-price.muted { color: var(--ink-soft); opacity: .75; }
.sold-badge { position: absolute; top: 12px; right: 12px; background: rgba(22,19,15,.82); color: #f4efe6;
              font-size: .7rem; letter-spacing: .28em; text-indent: .28em; padding: 5px 10px 5px 12px; }
.card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
                    background: linear-gradient(160deg, #1c1813, #2e2820); }
.card-placeholder span { font-family: var(--serif); color: rgba(183,154,99,.5); font-size: 1.6rem;
                         letter-spacing: .5em; text-indent: .5em; }
.play-hint { position: absolute; bottom: 12px; right: 14px; color: rgba(244,239,230,.85); font-size: .7rem;
             background: rgba(22,19,15,.55); border-radius: 999px; width: 30px; height: 30px;
             display: flex; align-items: center; justify-content: center; padding-left: 2px; }
.card-sold .card-media img, .card-sold .card-media video { filter: saturate(.65) brightness(.96); }

/* ---------- about ---------- */
.about { padding: 120px 24px; background: var(--ink); color: #efe9dd; }
.about-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.about h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .4em;
            text-indent: .4em; margin-bottom: 34px; color: var(--gold-soft); }
.about p { margin-bottom: 20px; letter-spacing: .08em; line-height: 2.2; font-size: .95rem; }
.about-sign { font-family: var(--latin); letter-spacing: .3em; color: var(--gold-soft); margin-top: 30px; }

/* ---------- footer ---------- */
.footer { background: #0d0b09; color: #d8d0c0; padding: 90px 5vw 0; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 60px;
                justify-content: space-between; align-items: flex-start; }
.footer-seal { font-family: var(--serif); font-weight: 600; font-size: 2rem; letter-spacing: .4em; color: #f4efe6; }
.footer-latin { font-family: var(--latin); font-size: .75rem; letter-spacing: .4em; color: var(--gold-soft); margin-top: 8px; }
.footer-line { margin-top: 18px; font-size: .84rem; letter-spacing: .16em; opacity: .7; }
.footer-invite { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 26px; }
.cta-row, .cta-col { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-col { flex-direction: column; }
.btn-gold, .btn-line { display: inline-block; text-align: center; padding: 13px 30px; font-size: .86rem;
                       letter-spacing: .22em; text-indent: .1em; transition: all .35s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border: 1px solid rgba(216,208,192,.4); color: inherit; }
.btn-line:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.footer-foot { text-align: center; padding: 70px 0 30px; font-size: .72rem; letter-spacing: .2em; opacity: .45; }

/* ---------- product page ---------- */
.pdp { background: var(--paper); }
.pdp .nav { position: sticky; }
.product { max-width: 1180px; margin: 0 auto; padding: 110px 5vw 110px; }
.crumb { font-size: .8rem; letter-spacing: .18em; margin-bottom: 30px; color: var(--ink-soft); }
.crumb a:hover { color: var(--gold); }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: 56px; }
.product-media { display: flex; flex-direction: column; gap: 18px; }
.product-media img, .product-media video { width: 100%; background: #e7e1d5; }
.product-info { position: sticky; top: 96px; align-self: start; }
.p-type { font-size: .78rem; letter-spacing: .32em; color: var(--gold); }
.p-title { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; letter-spacing: .06em;
           line-height: 1.6; margin: 12px 0 16px; }
.p-price { font-size: 1.1rem; letter-spacing: .1em; margin-bottom: 6px; }
.p-price.muted { color: var(--ink-soft); }
.p-sold { color: var(--gold); letter-spacing: .2em; font-size: .85rem; margin-top: 4px; }
.p-selling { font-family: var(--serif); color: var(--ink-soft); letter-spacing: .06em; margin: 18px 0 6px; }
.p-facts { width: 100%; border-collapse: collapse; margin: 26px 0 30px; font-size: .9rem; }
.p-facts th, .p-facts td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--hairline);
                           font-weight: 400; letter-spacing: .06em; vertical-align: top; }
.p-facts th { width: 5.5em; color: var(--ink-soft); font-size: .82rem; letter-spacing: .2em; }
.pdp .btn-line { border-color: rgba(22,19,15,.3); }
.p-note { margin-top: 22px; font-size: .8rem; color: var(--ink-soft); letter-spacing: .08em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- A/B preview switch ---------- */
.ab-switch { position: fixed; bottom: 22px; right: 22px; z-index: 60; display: flex; gap: 2px;
             background: rgba(22,19,15,.85); border-radius: 999px; padding: 4px; backdrop-filter: blur(8px); }
.ab-switch a { color: #cfc6b4; font-size: .74rem; letter-spacing: .1em; padding: 7px 16px; border-radius: 999px; }
.ab-switch a.on { background: var(--gold); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { padding: 14px 16px; }
  .nav-latin { display: none; }
  .nav-links { gap: 16px; font-size: .78rem; }
  .product-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-info { position: static; }
  .grid { gap: 30px 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .spot, .spot-flip { display: block; direction: ltr; margin-bottom: 64px; }
  .spot-body { padding-top: 20px; }
  .scene-hero { height: 260vh; }
  .scene-interlude { height: 220vh; }
}
