:root {
  color-scheme: light;
  --ink: #203a30;
  --muted: #4d6154;
  --paper: #fbf8ef;
  --green: #244b3b;
  --accent: #a54c3c;
  --line: #d9d9c8;
  --sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 112px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.signature { text-decoration: none; font: 700 1.6rem var(--serif); letter-spacing: .12em; white-space: nowrap; }
.signature span { margin-left: .4em; color: var(--muted); font: .78rem var(--sans); }
nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
nav a { text-decoration: none; font-size: .9rem; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: 52px 66px; }
.eyebrow { color: var(--accent); letter-spacing: .16em; font-size: .85rem; font-weight: 700; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .025em; }
h1 { font-size: clamp(4.25rem, 8.2vw, 8.25rem); line-height: 1.06; margin-block: 1.35rem; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.9rem); line-height: 1.28; }
.hero-note { max-width: 25ch; color: var(--muted); font-size: 1.13rem; margin: 0 0 1.65rem; }
.pill { display: inline-flex; align-items: center; gap: 1.15rem; border-radius: 999px; padding: .75rem 1.25rem; background: var(--green); color: white; text-decoration: none; }
.pill:hover { background: #162f25; }
figure { margin: 0; }
.hero-photo { position: relative; isolation: isolate; display: grid; place-items: end center; width: 100%; height: clamp(465px, 48vw, 625px); }
.hero-photo::before { content: ""; position: absolute; z-index: -1; inset: 12% 5% 0; border-radius: 50% 50% 5px 5px / 38% 38% 5px 5px; background: #efe5d7; }
.hero-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; }
figcaption { font-size: .83rem; color: var(--muted); margin-top: .6rem; }
.story { background: var(--green); color: #fcf8ee; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-block: 62px; align-items: center; }
.story p { margin: 0; max-width: 35em; line-height: 1.95; }
.story p + p { margin-top: 1rem; }
.moments { padding-block: 68px 76px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 1.6rem; }
.photo-grid img { width: 100%; height: clamp(180px, 26vw, 330px); object-fit: cover; object-position: center 69%; border-radius: 4px; }
.comparison { padding-block: 48px 68px; border-top: 1px solid var(--line); }
.comparison-layout { display: grid; grid-template-columns: 1fr minmax(0, 480px); align-items: center; gap: 2rem; }
.comparison-note { max-width: 25em; font-size: .9rem; color: var(--muted); }
.comparison-figure { width: 100%; max-width: 480px; }
.comparison-stage { --split: 50%; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 800 / 1050; border-radius: 8px; background: var(--line); }
.comparison-layer { position: absolute; inset: 0; }
.comparison-layer img { position: absolute; display: block; max-width: none; height: auto; }
.comparison-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
/* Each photo is scaled and rotated around its left eye, matching the eye line. */
.comparison-before img { width: 129.265%; left: -12.716%; top: -21.244%; transform-origin: 30.144% 41.571%; transform: rotate(-1.548deg); }
.comparison-after img { width: 237.948%; left: -86.496%; top: -69.912%; transform-origin: 47.383% 42.722%; transform: rotate(2.332deg); }
.comparison-label { position: absolute; top: .8rem; padding: .2rem .7rem; border-radius: 999px; background: #162f25; color: white; font-size: .85rem; pointer-events: none; }
.comparison-label-before { left: .8rem; }
.comparison-label-after { right: .8rem; }
.comparison-divider { position: absolute; inset-block: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: white; box-shadow: 0 0 5px #0009; pointer-events: none; }
.comparison-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid white; border-radius: 50%; background: var(--green); color: white; font-size: 1.4rem; }
.comparison-slider { position: absolute; inset: 0 -22px; width: calc(100% + 44px); height: 100%; margin: 0; appearance: none; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison-slider::-webkit-slider-thumb { appearance: none; width: 44px; height: 44px; }
.comparison-slider::-moz-range-thumb { width: 44px; height: 44px; border: 0; box-sizing: border-box; }
.comparison-stage:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.catalog { background: #f0eee1; padding-block: 65px 70px; }
.catalog-intro { margin-top: .7rem; color: var(--muted); }
.product-feature { margin-top: 1.75rem; padding: clamp(1rem, 3vw, 2rem); background: #fffdf6; border: 1px solid var(--line); border-radius: 8px; }
.product-feature h3 { font: 700 clamp(1.4rem, 3vw, 2rem)/1.35 var(--serif); }
.feature-link { display: inline-block; margin-block: .35rem .95rem; }
.product-viewer-stage { position: relative; display: grid; place-items: center; height: clamp(240px, 31vw, 360px); background: #f0ecf4; border-radius: 4px; }
.product-viewer-poster { display: block; width: 100%; height: 100%; min-height: 0; }
.product-viewer-poster img { width: 100%; height: 100%; object-fit: contain; }
.product-viewer-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-viewer-stage model-viewer[data-loading] { opacity: 0; pointer-events: none; }
.product-viewer-button { margin-top: .7rem; border: 0; cursor: pointer; }
.product-viewer-button:disabled { cursor: progress; }
.product-viewer-status { margin: .45rem 0 0; color: var(--muted); font-size: .88rem; }
.product-viewer-status:empty { display: none; }
.shelf { margin-top: 2.3rem; }
.shelf-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.shelf h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); letter-spacing: .035em; }
.arrows { display: flex; gap: .5rem; }
.arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--green); background: transparent; color: var(--green); cursor: pointer; }
.arrows button:not(:disabled):hover { background: var(--green); color: white; }
.arrows button:disabled { opacity: .35; cursor: default; }
.product-row { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(178px, 23vw, 270px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 5px; scrollbar-color: #728475 #dedecf; padding: 5px 5px 14px; margin: 0 -5px; }
.product-row li { scroll-snap-align: start; }
.product-row a { height: 100%; display: grid; grid-template-rows: auto 1fr; background: #fffdf6; border: 1px solid #dedccc; border-radius: 6px; overflow: hidden; text-decoration: none; }
.product-row a:hover .product-name { text-decoration: underline; }
.product-row img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; background: white; }
.product-name { display: flex; align-items: start; justify-content: space-between; gap: .5rem; min-height: 4.75rem; padding: .8rem .9rem; font-size: .95rem; font-weight: 700; }
.product-name span { color: var(--accent); }
.product-series { padding: 0 .9rem .75rem; color: var(--muted); font-size: .78rem; }
.category-link { margin: .55rem 0 0; font-size: .85rem; color: var(--muted); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding-block: 24px; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .comparison-layout { grid-template-columns: 1fr; gap: .85rem; }
  .comparison { padding-block: 32px 42px; }
  .shell { width: calc(100% - 36px); }
  .top-inner { min-height: 66px; gap: .55rem; }
  .signature { font-size: 1.2rem; }
  .signature span { display: none; }
  nav { gap: .85rem; }
  nav a { font-size: .8rem; }
  .hero, .story-inner { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero { padding-block: 34px 42px; }
  .hero-photo { justify-self: center; max-width: 460px; height: clamp(340px, 110vw, 495px); }
  .story-inner, .moments, .catalog { padding-block: 42px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-grid img { height: clamp(156px, 48vw, 290px); }
  .product-row { grid-auto-columns: clamp(155px, 48vw, 230px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
