@font-face { font-family: "Shuang Serif TC"; src: url("fonts/NotoSerifTC-sub.woff") format("woff"); font-weight: 200 900; font-display: block; }
@font-face { font-family: "Shuang Sans TC"; src: url("fonts/NotoSansTC-sub.woff") format("woff"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-sub.woff") format("woff"); font-weight: 400; font-display: block; }
@font-face { font-family: "Libre Baskerville"; src: url("fonts/LibreBaskerville-Italic-sub.woff") format("woff"); font-style: italic; font-weight: 400; font-display: block; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-sub.woff") format("woff"); font-weight: 100 900; font-display: block; }

:root {
  --ink: #f4ede4;
  --ink-2: rgba(244, 237, 228, .68);
  --ink-3: rgba(244, 237, 228, .42);
  --line: rgba(244, 237, 228, .16);
  --accent: #f2a7b0;
  --gutter: 7.5vw;
  --cy: 52.5vh;          /* stage centre, from the top of the page */
  --coneH: min(76vh, 46vw);
  --serif-tc: "Shuang Serif TC", "Noto Serif TC", serif;
  --sans-tc: "Shuang Sans TC", "Noto Sans TC", sans-serif;
  --display: "Instrument Serif", "Shuang Serif TC", serif;
  --italic: "Libre Baskerville", "Instrument Serif", serif;
  --ui: "Inter", "Shuang Sans TC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #12030a;
  color: var(--ink);
  font-family: var(--sans-tc);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- background ---------- */
.bg, .glow, .grain { position: fixed; inset: 0; pointer-events: none; }
.bg { z-index: 0; }
.ripples { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ripple { position: absolute; inset: 0; will-change: clip-path; }
.rring {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 246, 236, .7);
  box-shadow: 0 0 24px rgba(255, 240, 225, .18), inset 0 0 40px rgba(255, 240, 225, .12);
  will-change: transform, opacity, width, height;
}
.rring.thin { border-width: 1px; box-shadow: none; }
.glow { z-index: 0; mix-blend-mode: screen; }
.grain {
  z-index: 1; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.nav::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--serif-tc); font-weight: 600; font-size: 20px; line-height: 1;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(244, 237, 228, .45); border-radius: 50%; padding-top: 1px;
}
.brand-en { font-family: var(--display); font-size: 23px; letter-spacing: .01em; }
.brand-en em { font-style: normal; color: var(--ink-2); }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 52px; }
.links a {
  font-size: 13px; letter-spacing: .32em; padding: 8px 0 8px .32em; color: var(--ink-2); position: relative;
}
.links a.on { color: var(--ink); }
.links a.on::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: calc(-2px + .16em);
  border-radius: 50%; background: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: .18em; color: var(--ink-2); }
.bag { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.bag i {
  font-style: normal; font-family: var(--ui); font-size: 11px; letter-spacing: 0;
  width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; height: 100vh; min-height: 560px; }

.words {
  position: absolute; left: 0; top: calc(var(--cy) - 32vh); width: 100%; height: 64vh; z-index: 1;
  pointer-events: none; overflow: hidden;
  /* full strength around the cone, quieter under the text columns so copy stays readable */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.42) 27%, #000 39%, #000 61%, rgba(0,0,0,.42) 73%, rgba(0,0,0,.42) 100%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.42) 27%, #000 39%, #000 61%, rgba(0,0,0,.42) 73%, rgba(0,0,0,.42) 100%);
}
.word {
  position: absolute; left: 50%; top: 50%; white-space: nowrap; display: flex; align-items: center;
  font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.005em;
  color: transparent; -webkit-text-stroke: 1.3px rgba(255, 244, 234, .38); visibility: hidden;
  will-change: transform, opacity;
}

.stage {
  position: absolute; z-index: 2; left: 50%; top: var(--cy);
  height: var(--coneH); width: calc(var(--coneH) * .3775);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.layer { position: absolute; inset: 0; }
.layer img { visibility: hidden; position: absolute; left: 50%; top: 50%; display: block; will-change: transform, opacity; user-select: none; }
.layer.cones {
  inset: auto; left: -40%; top: 0; width: 180%; height: 165%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 63%, rgba(0,0,0,0) 86%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 63%, rgba(0,0,0,0) 86%);
}
.cones img { width: 55.5556%; height: 60.6061%; left: 22.2222%; top: 0; }
.back img { filter: blur(2.5px); }
.shadow {
  position: absolute; left: 50%; bottom: -3.5%; width: 120%; height: 6%; margin-left: -60%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  will-change: transform, opacity;
}

/* ---------- left info ---------- */
.info {
  position: absolute; z-index: 3; left: var(--gutter); top: var(--cy);
  width: min(360px, 24vw); transform: translateY(-46%);
}
.tx { will-change: transform, opacity; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .3em; color: var(--ink-2); }
.eb-num { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: .22em; color: var(--accent); }
.eb-line { width: 36px; height: 1px; background: var(--line); }
.zh {
  margin-top: 26px; font-family: var(--serif-tc); font-weight: 600;
  font-size: clamp(54px, 4.75vw, 80px); line-height: 1.08; letter-spacing: .08em; white-space: nowrap;
}
.en { margin-top: 14px; font-family: var(--italic); font-style: italic; font-size: 15px; letter-spacing: .02em; color: var(--accent); }
.desc { margin-top: 26px; font-size: 15px; font-weight: 300; line-height: 1.95; letter-spacing: .04em; color: var(--ink-2); text-align: justify; }
.buy { margin-top: 34px; display: flex; align-items: center; gap: 30px; }
.price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price small { font-family: var(--ui); font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }
.price b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .01em; }
.price span { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 22px 0 28px;
  border: 1px solid rgba(244, 237, 228, .55); border-radius: 999px;
  font-size: 14px; letter-spacing: .26em; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- right side ---------- */
.side {
  position: absolute; z-index: 3; right: var(--gutter); top: var(--cy);
  width: 326px; transform: translateY(-44%);
}
.side-eyebrow { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.side-title { margin-top: 14px; font-family: var(--serif-tc); font-weight: 500; font-size: 19px; line-height: 1.7; letter-spacing: .08em; }
.thumbs { margin-top: 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumb { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.thumb-card {
  position: relative; width: 100%; aspect-ratio: 56 / 80; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(244, 237, 228, .13); background: var(--tint);
  display: grid; place-items: center;
}
.thumb-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.14), rgba(255,255,255,0) 70%); }
.thumb-card img { position: relative; height: 84%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.thumb-name { font-size: 11px; letter-spacing: .12em; color: var(--ink-3); white-space: nowrap; }
.thumb.on .thumb-card { border-color: rgba(255, 248, 238, .95); box-shadow: 0 0 0 3px rgba(255, 248, 238, .1), 0 10px 30px rgba(0, 0, 0, .35); }
.thumb.on .thumb-name { color: var(--ink); }
.thumb:focus-visible { outline: none; }
.thumb:focus-visible .thumb-card { outline: 2px solid var(--ink); outline-offset: 3px; }

.pager { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; }
.arrows { display: flex; gap: 12px; }
.arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(244, 237, 228, .38);
  display: grid; place-items: center;
}
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.count { display: flex; align-items: baseline; gap: 8px; }
.count b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; display: inline-block; will-change: transform, opacity; }
.count span { font-family: var(--ui); font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.bar { margin-top: 20px; height: 1px; background: var(--line); position: relative; }
.bar i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 20%; background: var(--ink); }

@media (hover: hover) {
  .links a:hover { color: var(--ink); }
  .btn:hover { background: var(--ink); color: #160a0c; border-color: var(--ink); }
  .thumb:hover .thumb-card { border-color: rgba(244, 237, 228, .4); }
  .thumb:hover .thumb-name { color: var(--ink-2); }
  .arrow:hover { background: var(--ink); color: #160a0c; border-color: var(--ink); }
}

/* ---------- footer ---------- */
.foot {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .14em; color: var(--ink-3);
}
.hint { display: flex; align-items: center; gap: 6px; }
kbd {
  font-family: var(--ui); font-size: 10px; width: 22px; height: 22px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2);
}

/* ---------- smaller laptops ---------- */
@media (max-width: 1280px) {
  .links { gap: 36px; }
  .nav-loc { display: none; }
  .side { width: 290px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 22px; --cy: 37svh; --coneH: 52svh; }
  body { overflow-x: hidden; overflow-y: auto; }
  .nav { height: 62px; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,0)); }
  .nav::after { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 17px; }
  .brand-en { font-size: 19px; }
  .links { position: static; transform: none; gap: 16px; }
  .links a { font-size: 12px; letter-spacing: .18em; padding-left: .18em; }
  .nav-right { display: none; }

  .hero { height: auto; min-height: 0; padding-top: calc(var(--cy) + var(--coneH) / 2 + 22px); padding-bottom: 28px; }
  .info, .side, .foot { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; }
  .info { width: auto; padding: 0 var(--gutter); text-align: center; }
  .eyebrow { justify-content: center; }
  .zh { margin-top: 16px; font-size: 46px; }
  .en { margin-top: 8px; }
  .desc { margin: 16px auto 0; max-width: 34em; font-size: 14px; text-align: center; }
  .buy { margin-top: 22px; justify-content: center; gap: 20px; }
  .price b { font-size: 34px; }
  .btn { height: 46px; padding: 0 18px 0 22px; font-size: 13px; }
  .side { width: auto; margin-top: 34px; padding: 0 var(--gutter); }
  .side-eyebrow, .side-title { display: none; }
  .thumbs { margin-top: 0; max-width: 360px; margin-left: auto; margin-right: auto; }
  .pager { max-width: 360px; margin: 22px auto 0; }
  .bar { max-width: 360px; margin-left: auto; margin-right: auto; }
  .foot { margin-top: 30px; flex-direction: column; gap: 8px; text-align: center; font-size: 11px; }
  .hint { display: none; }
}
