/* Yi Happy — minimalist elegant printing co. */

:root {
  --paper:   #F4EFE6;
  --paper-2: #ECE5D7;
  --paper-3: #FBF8F2;
  --ink:     #1C1A17;
  --ink-2:   #2E2A25;
  --ink-soft:#555049;
  --ink-mute:#8A857C;
  --rule:      rgba(28,26,23,0.12);
  --rule-soft: rgba(28,26,23,0.07);
  --accent:  #CC0029;
  --accent-2:#B30024;
  --accent-soft: #F4D5DC;

  --font-zh-title:    "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --font-zh-body:     "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --font-display:     "Times New Roman", Times, var(--font-zh-title);
  --font-han-display: var(--font-zh-title);
  --font-sans:        "Times New Roman", Times, var(--font-zh-body);
  --font-mono:        "Times New Roman", Times, var(--font-zh-body);

  --maxw:   1720px;
  --pad-x:  clamp(20px, 4vw, 64px);

  --t-display: clamp(54px, 5.7vw, 106px);
  --t-h1:   clamp(38px, 4.5vw, 64px);
  --t-h2:   clamp(28px, 3vw, 44px);
  --t-h3:   22px;
  --t-body: 17px;
  --t-small:14px;
  --t-eyebrow: 12px;
}

* { box-sizing: border-box; }
html,
body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  /* 不用 mix-blend-mode：深色雜點直接疊上去看起來一樣，手機捲動時省下整個畫面的混合運算 */
}

img { max-width: 100%; display: block; }

.han { font-family: var(--font-han-display); }
.hero h1 .han,
.section-head h2 .han,
.product-card .body h3 .han,
.modal h3 .han,
.quote-tool h2 .han {
  font-family: var(--font-zh-title);
  font-weight: 500;
}
.nav-links a,
.btn,
.hero-sub,
.section-head .lede,
.about-body p,
.product-card .body .desc,
.product-card .body .add,
.modal .modal-desc,
.modal .specs .v,
.qt-controls .opt,
.qt-result .price-note,
.contact-info .row .v,
.form-submit .note,
.footer .logo-block p,
.footer .col a,
.footer .col p {
  font-family: var(--font-zh-body);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink-soft); }
h1,
h2,
h3,
h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative; z-index: 2;
}
section { padding: clamp(80px, 10vw, 140px) 0; position: relative; z-index: 2; }
.section-divider { height: 1px; background: var(--rule); margin: 0 var(--pad-x); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--pad-x);
  display: flex; align-items: center;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244,239,230,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  padding: 12px var(--pad-x);
  border-bottom-color: var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 32px; width: auto; display: flex; align-items: center; }
.brand-mark img { height: 100%; width: auto; display: block; }
.brand-mark--nav {
  height: clamp(76px, 7.5vw, 96px);
  transition: height .3s ease;
}
.nav.scrolled .brand-mark--nav { height: clamp(64px, 6vw, 78px); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
  margin-left: clamp(18px, 1.6vw, 24px);
}
.nav > .btn { margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--ink); text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a .num { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); margin-right: 6px; letter-spacing: 0.1em; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.7,.1,.2,1); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-family: var(--font-zh-body); font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .3s cubic-bezier(.6,.1,.2,1); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper-3); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 12px 30px -16px rgba(28,26,23,0.5); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* Hero */
.hero {
  min-height: 100vh; padding-top: clamp(128px, 10vw, 168px); padding-bottom: clamp(56px, 6vw, 92px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(500px, 0.94fr); gap: clamp(56px, 6vw, 104px); align-items: center; }
.hero-copy { max-width: 760px; }
.hero h1 { font-family: var(--font-display); font-size: var(--t-display); line-height: 0.94; letter-spacing: -0.028em; font-weight: 400; }
.hero h1 .han { display: block; font-family: var(--font-han-display); font-size: 0.58em; line-height: 1.04; letter-spacing: 0.02em; margin-top: 0.2em; color: var(--ink-2); }
.hero h1 .it { font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 1.05vw, 18px); color: var(--ink-soft); max-width: 38ch; line-height: 1.62; margin-top: 24px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding-top: 32px; margin-top: 60px; border-top: 1px solid var(--rule); }
.hero-meta .stat .n { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.hero-meta .stat .n sup { font-size: 18px; font-family: var(--font-mono); color: var(--ink-mute); margin-left: 6px; vertical-align: top; top: 0.4em; position: relative; }
.hero-meta .stat .l { font-size: 13px; color: var(--ink-soft); margin-top: 8px; letter-spacing: 0.04em; }
/* 首頁影片：像一張印樣，米白襯紙 + 四角裁切線 + 下方圖說 */
.hero-print { position: relative; width: min(100%, 620px); justify-self: end; margin: 0; }
.hero-print .frame { position: relative; padding: 20px; }
.hero-print .sheet { position: relative; background: var(--paper-3); border: 1px solid var(--rule); padding: clamp(12px, 1.2vw, 18px); box-shadow: 0 40px 70px -46px rgba(28,26,23,0.45); }
.hero-print .shot { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.hero-print .shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(28,26,23,0.08); pointer-events: none; }
.hero-print .crop { position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; border-width: 0; opacity: 0.55; }
.hero-print .crop.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-print .crop.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-print .crop.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-print .crop.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-print figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 2px; padding: 0 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.hero-print figcaption b { font-weight: 400; color: var(--ink); }
.about-print { justify-self: start; width: 100%; max-width: 560px; }
#about { padding-bottom: clamp(110px, 12vw, 170px); }

/* Ticker */

/* Section heads */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 64px; }
.section-head--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.section-head h2 { font-family: var(--font-display); font-size: var(--t-h1); line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.section-head h2 .han { display: block; font-family: var(--font-han-display); font-size: 0.5em; margin-top: 0.2em; color: var(--ink-2); letter-spacing: 0.02em; }
.section-head .lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; line-height: 1.65; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.about-body p:not(.lead) { max-width: 34em; line-height: 1.9; }
.about-figure { aspect-ratio: 3/4; background: var(--paper-2); position: relative; overflow: hidden; }
.about-figure .stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(28,26,23,0.04) 0 1px, transparent 1px 12px); }
.about-figure .stack { position: absolute; inset: 18% 14% 18% 14%; display: grid; grid-template-rows: repeat(5, 1fr); gap: 4px; }
.about-figure .stack div { background: var(--ink); opacity: 0.85; }
.about-figure .stack div:nth-child(2) { background: var(--accent); opacity: 0.95; }
.about-figure .stack div:nth-child(4) { background: var(--ink-soft); }
.loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .thumb .loop-video { transition: transform .6s cubic-bezier(.6,.1,.2,1); }
.product-card:hover .thumb .loop-video { transform: scale(1.04); }
.about-figure .label { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(28,26,23,0.5); }

.about-body p { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.about-body p + p { margin-top: 22px; }
.about-body .lead { font-family: var(--font-display); font-size: 28px; line-height: 1.35; color: var(--ink); font-weight: 400; margin-bottom: 28px; }

/* Products */
.products { background: var(--paper-3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.svc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-bottom: 12px; }
.svc-head h2 { font-family: var(--font-display); font-size: var(--t-h1); line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.svc-head h2 .han { display: block; font-family: var(--font-han-display); font-size: 0.5em; margin-top: 0.22em; color: var(--ink-2); letter-spacing: 0.04em; }
.svc-head p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.marquee { margin: 40px 0 64px; overflow: hidden; position: relative; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.marquee::before,
.marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 3; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--paper-3), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--paper-3), transparent); }
.marquee-track { display: flex; gap: 56px; animation: marq 38s linear infinite; width: max-content; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: 0.02em; }
.marquee-item .han { font-family: var(--font-han-display); font-size: 20px; letter-spacing: 0.06em; }
.marquee-item .sep { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product-card { background: var(--paper); border: 1px solid var(--rule); padding: 0; cursor: pointer; position: relative; transition: transform .4s cubic-bezier(.6,.1,.2,1), box-shadow .4s ease, border-color .4s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(28,26,23,0.25); border-color: rgba(28,26,23,0.25); }
.product-card .thumb { aspect-ratio: 4/3; background: var(--paper-2); position: relative; overflow: hidden; }
.product-card .thumb .stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(28,26,23,0.05) 0 2px, transparent 2px 12px); }
.product-card .thumb .num { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); }
.product-card .thumb .placeholder { position: absolute; inset: 20% 16%; background: var(--ink); display: grid; place-items: center; color: var(--paper); transition: transform .6s cubic-bezier(.6,.1,.2,1); }
.product-card:hover .thumb .placeholder { transform: scale(1.04); }
.svc-art { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4%; }
.icon-tile,
.product-card .thumb.icon-tile,
.modal .img.icon-tile { background: var(--ink); color: var(--paper-3); display: grid; place-items: center; }
.product-card .thumb.icon-tile .num { color: rgba(251,248,242,0.55); }
.product-card .thumb.icon-tile .svc-art { transition: transform .6s cubic-bezier(.6,.1,.2,1); }
.product-card:hover .thumb.icon-tile .svc-art { transform: scale(1.04); }
.product-card .body { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.product-card .body h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.product-card .body h3 .han { display: block; font-family: var(--font-han-display); font-size: 0.62em; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.04em; }
.product-card .body .desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.product-card .body .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.product-card .body .foot .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }
.product-card .body .add { appearance: none; border: 0; background: transparent; font-family: var(--font-zh-body); font-size: 13px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; transition: background .25s ease, color .25s ease; }
.product-card .body .add:hover { background: var(--ink); color: var(--paper); }
.product-card .body .add .plus { font-size: 16px; line-height: 1; }
.product-card .body .add.added { background: var(--accent); color: var(--paper); }

/* Quote tray */
.quote-tray { position: fixed; right: 24px; bottom: 24px; z-index: 80; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 16px 18px 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); transition: transform .4s cubic-bezier(.5,0,.2,1), opacity .3s ease; font-size: 14px; max-width: 380px; }
.quote-tray.hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.quote-tray .ct { background: var(--accent); color: var(--paper); font-family: var(--font-mono); font-size: 12px; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.06em; }
.quote-tray .x { appearance: none; border: 0; background: rgba(244,239,230,0.1); color: var(--paper); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 14px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(28,26,23,0.5); backdrop-filter: blur(6px); z-index: 200; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--paper); width: 100%; max-width: 880px; max-height: 86vh; overflow: auto; border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; transform: translateY(20px) scale(0.98); transition: transform .35s cubic-bezier(.5,0,.2,1); }
.modal-bg.open .modal { transform: translateY(0) scale(1); }
.modal .img { background: var(--paper-2); position: relative; min-height: 320px; }
.modal .img .stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(28,26,23,0.05) 0 2px, transparent 2px 12px); }
.modal .img .placeholder { position: absolute; inset: 12% 10%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.modal .content { padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.modal h3 { font-family: var(--font-display); font-size: 38px; line-height: 1.1; }
.modal h3 .han { display: block; font-family: var(--font-han-display); font-size: 0.55em; color: var(--ink-soft); margin-top: 6px; }
.modal .modal-desc { color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.modal .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 8px; }
.modal .specs .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); }
.modal .specs .v { font-size: 14px; color: var(--ink); }
.modal .modal-close { position: absolute; top: 16px; right: 16px; background: var(--paper); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); cursor: pointer; font-size: 16px; z-index: 2; }

/* Process：直向排列，每一步捲進畫面時畫出線稿 */
.process { padding-bottom: 0; }
.process .section-head { margin-bottom: 0; }
.hp { position: relative; --rail: clamp(64px, 6vw, 104px); padding: clamp(24px, 5vh, 64px) 0 clamp(40px, 8vh, 96px); }
.hp-step { padding: clamp(36px, 6vh, 80px) 0 clamp(36px, 6vh, 80px) var(--rail); }
/* 畫圖的時候整步停在畫面中間偏下，捲完停留的距離（.hp-hold）才往上離開 */
.hp-pin { position: sticky; top: max(130px, 17vh); display: grid; grid-template-columns: minmax(240px, 0.62fr) 1.6fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
.hp-hold { height: 100vh; height: 100svh; }
@media (max-height: 560px) { .hp-pin { position: static; } .hp-hold { height: 0; } }
.hp-rail { position: absolute; left: 10px; top: 0; width: 1px; background: var(--rule); will-change: transform; }
.hp-rail i { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: top; will-change: transform; }
.hp-text { position: relative; }
.hp-dot { position: absolute; left: calc(-1 * var(--rail) + 3px); top: calc(clamp(64px, 6vw, 104px) * 0.5 - 8px); width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--ink-mute); background: var(--paper); transition: background .35s ease, border-color .35s ease, transform .35s ease; }
.hp-dot.on { background: var(--ink); border-color: var(--ink); transform: scale(1.15); }
.hp-cue { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 6px 22px rgba(28,26,23,0.14); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
.hp-cue.show { opacity: 1; transform: none; pointer-events: auto; }
.hp-cue:not(.show) svg, .hp-cue:not(.show)::after { animation-play-state: paused; }
.hp-cue svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; animation: hp-nudge 1.6s ease-in-out infinite; }
.hp-cue::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--ink); animation: hp-ring 1.6s ease-out infinite; pointer-events: none; }
@keyframes hp-nudge { 0%, 100% { transform: translateY(-4px); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }
@keyframes hp-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hp-cue svg, .hp-cue::after { animation: none; } }
.hp-text .num { font-family: var(--font-display); font-size: clamp(64px, 6vw, 104px); line-height: 1; color: var(--ink-mute); }
.hp-text h3 { font-family: var(--font-han-display); font-size: clamp(24px, 2vw, 32px); letter-spacing: 0.04em; margin-top: 18px; font-weight: 500; }
.hp-text .en { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }
.hp-text p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-top: 20px; max-width: 26em; }
.hp-art { width: 100%; max-height: 64vh; display: grid; place-items: center; will-change: transform; }
.hp-art svg { width: 100%; height: auto; max-height: 64vh; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
/* 線的粗細分三層：外輪廓最粗、面與面的折線中等、細節最細 */
.hp-art .o { stroke-width: 2.7px; }
.hp-art .f { stroke-width: .8px; stroke-opacity: .7; }
.hp-art .h { stroke-width: .6px; stroke-opacity: .5; }
.hp-art .b { stroke-width: 2.7px; }
.hp-art .tx { fill: var(--ink); stroke: none; font-family: var(--font-zh-body); letter-spacing: .06em; opacity: 0; }
.hp-art [data-role="stamp"] .tx { opacity: 1; }
.hp-art .ck { stroke-width: 1.8px; }
.hp-art .sw { fill: var(--ink); fill-opacity: 0; }
.hp-art .dot { fill: var(--ink); stroke: none; opacity: 0; }
.hp-art .sheet { opacity: 0; }
.hp-art .pile { opacity: 0; }
.hp-art .pl { stroke-width: .7px; }
.hp-art .tape { stroke-width: 4px; stroke-opacity: .8; opacity: 0; }
.about-body .lead { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 38px); line-height: 1.45; color: var(--ink); font-weight: 400; margin-bottom: 36px; }

/* Quote tool */
.quote-tool { background: var(--ink); color: var(--paper); padding: clamp(60px,8vw,100px) 0; position: relative; z-index: 2; }
.quote-tool .container { position: relative; }
.quote-tool h2 { font-family: var(--font-display); font-size: var(--t-h1); line-height: 1; font-weight: 400; max-width: 14ch; }
.quote-tool h2 .han { display: block; font-family: var(--font-han-display); font-size: 0.45em; color: rgba(244,239,230,0.6); margin-top: 14px; letter-spacing: 0.04em; }
.qt-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: end; margin-top: 60px; }
.qt-controls { display: flex; flex-direction: column; gap: 28px; }
.qt-controls .field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.55); }
.qt-controls .field { display: flex; flex-direction: column; gap: 12px; }
.qt-controls .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-controls .opt { padding: 10px 18px; border: 1px solid rgba(244,239,230,0.2); border-radius: 999px; background: transparent; color: var(--paper); font-family: var(--font-zh-body); font-size: 13.5px; cursor: pointer; transition: background .25s ease, border-color .25s ease; display: inline-flex; align-items: center; gap: 9px; }
.qt-controls .opt:hover { border-color: rgba(244,239,230,0.45); }
.qt-controls .opt.active { background: var(--accent); border-color: var(--accent); }
.qt-controls .color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(244,239,230,0.55); flex-shrink: 0; box-shadow: 0 0 0 2px rgba(244,239,230,0.06); }
.qt-controls .color-dot.color { background: conic-gradient(#e94d3c, #f0c84b, #38a862, #2f7bd9, #b34bd9, #e94d3c); }
.qt-controls .color-dot.bw { background: linear-gradient(135deg, var(--paper) 0 50%, rgba(244,239,230,0.24) 50% 100%); }
.qt-controls .qty { display: flex; align-items: center; gap: 18px; }
.qt-controls .qty input[type="range"] { flex: 1; appearance: none; height: 2px; background: rgba(244,239,230,0.25); border-radius: 1px; }
.qt-controls .qty input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 0; cursor: pointer; }
.qt-controls .qty .v { font-family: var(--font-display); font-size: 32px; min-width: 5.5ch; text-align: right; }
.qt-result { background: rgba(244,239,230,0.04); border: 1px solid rgba(244,239,230,0.12); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.qt-result .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.55); }
.qt-result .price { font-family: var(--font-display); font-size: 68px; line-height: 1; font-variant-numeric: tabular-nums; }
.qt-result .price .currency { font-size: 24px; vertical-align: top; color: rgba(244,239,230,0.55); margin-right: 6px; }
.qt-result .price .dash { color: rgba(244,239,230,0.45); margin: 0 12px; }
.qt-result .price-note { font-size: 13px; color: rgba(244,239,230,0.55); line-height: 1.6; }
.qt-result .btn { align-self: flex-start; margin-top: 12px; }
.qt-result .btn-primary { background: var(--paper); color: var(--ink); }
.qt-result .btn-primary:hover { background: var(--accent); color: var(--paper); }

/* Contact */
.contact { background: var(--paper-3); border-top: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .row { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; }
.contact-info .row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.contact-info .row .v { font-size: 16px; color: var(--ink); }
.contact-info .row .v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-info .row .v a:hover { border-color: var(--ink); }
.map-frame { aspect-ratio: 4/3; border: 1px solid var(--rule); overflow: hidden; background: var(--paper-2); filter: grayscale(0.6) contrast(0.95); transition: filter .4s ease; margin-top: 36px; }
.map-frame:hover { filter: grayscale(0) contrast(1); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.form input,
.form textarea,
.form select { background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 10px 0; font-family: var(--font-zh-body); font-size: 15px; color: var(--ink); outline: none; transition: border-color .25s ease; }
.form input:focus,
.form textarea:focus,
.form select:focus { border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 90px; }
.form select option { background: var(--paper-3); }
.form-submit { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; grid-column: 1 / -1; }
.form-submit .note { font-size: 13px; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(244,239,230,0.12); }
.footer .logo-block { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.footer .footer-brand { display: inline-flex; align-items: center; width: fit-content; }
.footer .footer-logo { width: clamp(168px, 18vw, 238px); height: auto; filter: none; }
.footer .logo-block p { font-size: 14px; color: rgba(244,239,230,0.6); line-height: 1.7; }
.footer .col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.5); margin-bottom: 18px; }
.footer .col a,
.footer .col p { display: block; color: var(--paper); text-decoration: none; font-size: 14px; padding: 6px 0; transition: color .25s ease; }
.footer .col a:hover { color: var(--accent-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-family: var(--font-mono); font-size: 11px; color: rgba(244,239,230,0.4); letter-spacing: 0.1em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .section-head, .about-grid, .qt-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hp { --rail: 40px; padding-top: 0; }
  .hp-step { padding-top: clamp(24px, 4vh, 44px); padding-bottom: clamp(24px, 4vh, 44px); }
  .hp-pin { grid-template-columns: 1fr; gap: 20px; top: 104px; }
  .hp-hold { height: 110vh; height: 110svh; }
  .hp-art { max-height: 46vh; }
  .hp-art svg { max-height: 46vh; }
  .hp-text .num { font-size: 52px; }
  .hp-dot { top: 18px; }
  .hp-text h3 { margin-top: 8px; }
  .hp-text p { font-size: 16px; margin-top: 12px; }
  .modal { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(244,239,230,0.96); }
  /* 多頁之後手機也要能切換頁面：精簡成一排文字連結 */
  .nav-links { gap: 16px; margin-left: 14px; }
  .nav-links a { font-size: 13.5px; }
  .nav-links a .num { display: none; }
}
@media (max-width: 480px) {
  .nav > .btn { display: none; }
  .nav-links { margin-left: auto; }
}
@media (max-width: 640px) {
  .brand-mark--nav { height: clamp(60px, 16vw, 68px); }
  .nav.scrolled .brand-mark--nav { height: clamp(52px, 14vw, 60px); }
  .product-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
  .hp { --rail: 30px; }
  .hp-art svg { stroke-width: 2px; }
  .hp-art .o, .hp-art .b { stroke-width: 3.5px; }
  .hp-art .f { stroke-width: 1.1px; }
  .hp-art .h { stroke-width: .85px; }
  .hp-art .pl { stroke-width: 1px; }
  .hero h1 { line-height: 1; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 流程分頁 */
.process-page { padding-top: clamp(150px, 14vw, 210px); }
.page-cta { text-align: center; }
.page-cta .lead { font-family: var(--font-han-display); font-size: clamp(22px, 2vw, 30px); color: var(--ink); }
.page-cta .about-actions { justify-content: center; }

/* 關於分頁 */
.about-page { padding-top: clamp(150px, 14vw, 210px); }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.nav-links a.active::after { transform: scaleX(1); }
