/* J&M — site styles */
:root {
  --ink: #111;
  --mid: #6b6b6b;
  --line: #e4e4e2;
  --paper: #fff;
  --still: #edece9;
  --pad: clamp(16px, 2.2vw, 36px);
  --head-h: 64px;
  --sans: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  font-size: 13px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; border-radius: 0; }
input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
ul { list-style: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.cap { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.mid { color: var(--mid); }
.u { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.u:hover { opacity: .55; }

/* ───────── header ───────── */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); background: var(--paper); color: var(--ink);
  transition: background .35s, color .35s, transform .35s;
}
.head.over { background: transparent; color: #fff; }
.head.hide { transform: translateY(-100%); }
.head nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.head nav a, .head .tools button, .head .tools a { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.head nav a:hover, .head .tools :is(a,button):hover { opacity: .55; }
.head nav a[aria-current] { border-bottom: 1px solid currentColor; }
.logo { font-weight: 700; font-size: 30px; letter-spacing: -.045em; line-height: 1; }
.head .tools { display: flex; justify-content: flex-end; gap: clamp(14px, 2vw, 28px); align-items: center; }
.lang button { opacity: .45; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang span { opacity: .45; margin: 0 4px; }
.burger { display: none; }
main { padding-top: var(--head-h); }
main.flush { padding-top: 0; }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 20px var(--pad) 32px;
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); visibility: hidden;
}
.menu.open { transform: none; visibility: visible; }
.menu .top { display: flex; justify-content: space-between; align-items: center; height: 24px; }
.menu ul { margin-top: 15vh; }
.menu li a { display: block; font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.35; }
.menu .foot { margin-top: auto; display: flex; justify-content: space-between; }

/* ───────── hero ───────── */
.hero { position: relative; height: 100svh; min-height: 520px; max-height: 1200px; background: #9a9a9c; color: #fff; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; }
.hero img { object-position: 42% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.28) 100%); }
.hero .txt { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero h1 { font-weight: 300; font-size: clamp(44px, 8.4vw, 148px); line-height: .9; letter-spacing: -.045em; }
.hero .side { text-align: right; display: grid; gap: 14px; justify-items: end; padding-bottom: .6vw; }

/* ───────── sections ───────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2px; }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; background: var(--still); }
.tile img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.025); }
.tile .lab { position: absolute; left: var(--pad); bottom: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: flex-end; text-shadow: 0 0 24px rgba(0,0,0,.25); }
.tile .lab b { font-weight: 300; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.03em; line-height: 1; }

.bar { display: flex; justify-content: space-between; align-items: baseline; padding: clamp(56px, 9vw, 130px) var(--pad) 18px; }
.bar h2 { font-weight: 300; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.03em; line-height: 1; }

.wide { position: relative; margin-top: clamp(56px, 9vw, 130px); color: #fff; background: #8f8f91; }
.wide img { aspect-ratio: 16 / 9; height: auto; }
.wide .lab { position: absolute; left: var(--pad); bottom: var(--pad); max-width: 30em; }
.wide .lab b { display: block; font-weight: 300; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }

.state { padding: clamp(72px, 12vw, 180px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.state .k { grid-column: 1 / span 3; }
.state p.big { grid-column: 4 / span 8; font-weight: 300; font-size: clamp(24px, 3.3vw, 52px); line-height: 1.12; letter-spacing: -.028em; }
.state .more { grid-column: 4 / span 8; margin-top: 20px; }
.facts { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 90px); border-top: 1px solid var(--ink); padding-top: 14px; }
.facts b { display: block; font-weight: 300; font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -.04em; line-height: 1; margin: 26px 0 12px; }
.facts p { max-width: 24em; color: var(--mid); }

.house { display: grid; grid-template-columns: 5fr 7fr; gap: 2px; }
.house figure { background: #ddd; overflow: hidden; }
.house figure:first-child { aspect-ratio: 4 / 5; }
.house .note { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 18px var(--pad) 0; }
.house .note p { grid-column: 6 / span 5; }
.house .note .cap { grid-column: 1 / span 4; }

/* ───────── product grid ───────── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; row-gap: 0; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c6 { grid-template-columns: repeat(6, 1fr); }
.card { display: block; padding-bottom: 34px; position: relative; }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: var(--still); overflow: hidden; }
.card .ph img { position: absolute; inset: 0; transition: opacity .45s; }
.card .ph img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .ph img.alt { opacity: 1; } }
.card .meta { display: flex; justify-content: space-between; gap: 12px; padding: 10px var(--pad) 0 10px; }
.card .meta .nm { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.card .meta .r { color: var(--mid); font-size: 11px; white-space: nowrap; }
.card .sw { display: flex; gap: 5px; padding: 7px 10px 0; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); display: inline-block; }
.grid.c6 .card .meta .r, .grid.c6 .card .sw { display: none; }
.card .add { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; z-index: 2; font-size: 18px; font-weight: 300; line-height: 30px; text-align: center; color: var(--ink); }
.card .add.on { background: var(--ink); color: #fff; }

.tools-row { position: sticky; top: var(--head-h); z-index: 20; background: var(--paper); display: flex; justify-content: space-between; align-items: center; padding: 12px var(--pad); }
.tools-row .f { display: flex; gap: clamp(14px, 2vw, 28px); }
.tools-row button { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; opacity: .45; }
.tools-row button[aria-pressed="true"] { opacity: 1; border-bottom: 1px solid; }
.pagehead { padding: clamp(40px, 7vw, 110px) var(--pad) clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.pagehead h1 { font-weight: 300; font-size: clamp(40px, 7vw, 120px); letter-spacing: -.045em; line-height: .92; }
.pagehead p { max-width: 30em; color: var(--mid); }

/* ───────── product page ───────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 460px); align-items: start; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.gal figure { aspect-ratio: 4 / 5; background: var(--still); overflow: hidden; position: relative; }
.gal figure.hl::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--ink); pointer-events: none; }
.gal figcaption { position: absolute; left: 10px; bottom: 9px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--mid); }
.gal figure.look figcaption { color: #fff; opacity: .8; }
.info { position: sticky; top: var(--head-h); padding: clamp(24px, 3vw, 48px) var(--pad) 48px clamp(20px, 2.6vw, 44px); max-height: calc(100vh - var(--head-h)); overflow: auto; }
.info h1 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.2; }
.info .ref { color: var(--mid); margin-top: 6px; }
.info .blk { margin-top: 30px; }
.info .blk > .cap { display: block; margin-bottom: 12px; color: var(--mid); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 7px 11px 7px 9px; font-size: 12px; }
.chip[aria-pressed="true"] { border-color: var(--ink); }
.spec { width: 100%; border-collapse: collapse; }
.spec td { padding: 9px 0; border-top: 1px solid var(--line); }
.spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec td:last-child { text-align: right; }
.btn { display: block; width: 100%; text-align: center; padding: 15px 18px; border: 1px solid var(--ink); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #333; }
.btn:not(.solid):hover { background: var(--ink); color: #fff; }
.btn + .btn { margin-top: 8px; }
.fine { font-size: 11px; color: var(--mid); margin-top: 16px; line-height: 1.55; }

/* ───────── text pages ───────── */
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--pad); }
.cols > .k { grid-column: 1 / span 3; }
.cols > .v { grid-column: 4 / span 6; }
.cols > .v p + p { margin-top: 1em; }
.cols > .v p { font-size: 15px; line-height: 1.6; }
.cols > .v p.lead { font-weight: 300; font-size: clamp(22px, 2.5vw, 38px); line-height: 1.16; letter-spacing: -.025em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: clamp(40px, 6vw, 84px) var(--pad); }
.full { margin: clamp(48px, 8vw, 120px) 0; background: #ddd; }
.full img { aspect-ratio: 16 / 9; height: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: clamp(48px, 8vw, 120px) 0; }
.pair figure { aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2em 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); color: var(--mid); font-size: 11px; letter-spacing: .09em; padding-top: 4px; }
.steps h3 { font-size: 15px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.steps p { color: var(--mid); font-size: 14px !important; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.form .w { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--mid); }
.field :is(input, select, textarea) { width: 100%; border: 0; border-bottom: 1px solid var(--ink); padding: 9px 0 10px; background: transparent; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 88px; resize: vertical; }
.field :is(input, select, textarea):focus { border-bottom-width: 2px; padding-bottom: 9px; }
.form .quote-data { margin: 0 0 14px; }
.form .btn:disabled { opacity: .55; cursor: default; }
.quote-status { margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.quote-status.is-error { color: #86162e; }
.sel-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sel-list li:last-child { border-bottom: 1px solid var(--line); }
.sel-list .th { aspect-ratio: 4 / 5; background: var(--still); }
.sel-list .nm { text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.sel-list button { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--mid); }
.sel-list button:hover { color: var(--ink); }
.empty { color: var(--mid); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.28); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); padding: 22px 28px 28px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.drawer .body { flex: 1; overflow: auto; }
.drawer .act { padding-top: 18px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; opacity: 0; transition: .3s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── footer ───────── */
.foot { margin-top: clamp(80px, 12vw, 180px); padding: 0 var(--pad) 26px; }
.foot .cta { border-top: 1px solid var(--ink); padding: 18px 0 clamp(60px, 9vw, 130px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot .cta .cap { grid-column: 1 / span 3; }
.foot .cta a.big { grid-column: 4 / span 9; font-weight: 300; font-size: clamp(30px, 5.4vw, 92px); letter-spacing: -.04em; line-height: .98; }
.foot .cta a.big:hover { opacity: .55; }
.foot .links { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: clamp(48px, 7vw, 100px); }
.foot .links div:nth-child(1) { grid-column: 1 / span 3; }
.foot .links div:nth-child(2) { grid-column: 4 / span 3; }
.foot .links div:nth-child(3) { grid-column: 7 / span 3; }
.foot .links div:nth-child(4) { grid-column: 10 / span 3; }
.foot .links .cap { color: var(--mid); display: block; margin-bottom: 12px; }
.foot .links li { line-height: 1.9; }
.foot .links a:hover { opacity: .55; }
.foot .mark { font-weight: 700; font-size: clamp(120px, 31vw, 560px); letter-spacing: -.06em; line-height: .76; margin-left: -.03em; padding-bottom: .06em; }
.foot .base { display: flex; justify-content: space-between; gap: 16px; color: var(--mid); font-size: 11px; padding-top: 18px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .tile img { transition: none; } html { scroll-behavior: auto; } }

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  :root { --head-h: 54px; }
  .head { grid-template-columns: auto 1fr auto; gap: 14px; }
  .head nav { display: none; }
  .burger { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
  .head .lang { display: none; }
  .logo { font-size: 26px; }
  .hero .txt { flex-direction: column; align-items: flex-start; }
  .hero .side { text-align: left; justify-items: start; }
  .hero img { object-position: 50% 20%; }
  .duo { grid-template-columns: 1fr; }
  .grid, .grid.c6 { grid-template-columns: repeat(2, 1fr); }
  .grid.c2 { grid-template-columns: 1fr; }
  .grid.c6 .card .meta .r, .grid.c6 .card .sw { display: flex; }
  .wide img { aspect-ratio: 4 / 5; }
  .state, .cols, .house .note, .foot .cta, .foot .links { display: block; }
  .state p.big, .cols > .v { margin-top: 18px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts > div { padding-bottom: 22px; }
  .house { grid-template-columns: 1fr; }
  .house .note p { margin-top: 12px; }
  .pagehead { display: block; }
  .pagehead p { margin-top: 18px; }
  .pdp { grid-template-columns: 1fr; }
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gal::-webkit-scrollbar { display: none; }
  .gal figure { flex: 0 0 86%; scroll-snap-align: start; }
  .info { position: static; max-height: none; padding: 22px var(--pad) 0; }
  .form { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .full img { aspect-ratio: 4 / 3; }
  .foot .cta a.big { display: block; margin-top: 18px; }
  .foot .links { display: grid; grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot .links div:nth-child(n) { grid-column: auto; }
  .foot .base { flex-direction: column; gap: 4px; }
  .card .meta { padding-right: 10px; flex-direction: column; gap: 2px; }
}

/* 中文排版：CJK 不需要负字距和过紧行高 */
html:lang(zh) body { letter-spacing: .01em; }
html:lang(zh) .hero h1, html:lang(zh) .pagehead h1 { line-height: 1.08; letter-spacing: .02em; }
html:lang(zh) .tile .lab b, html:lang(zh) .bar h2, html:lang(zh) .wide .lab b, html:lang(zh) .facts b,
html:lang(zh) .state p.big, html:lang(zh) .cols > .v p.lead, html:lang(zh) .foot .cta a.big, html:lang(zh) .menu li a { letter-spacing: .01em; line-height: 1.3; }
html:lang(zh) .cap, html:lang(zh) .head nav a, html:lang(zh) .head .tools button, html:lang(zh) .btn,
html:lang(zh) .field label, html:lang(zh) .toast, html:lang(zh) .tools-row button { letter-spacing: .12em; }
html:lang(zh) .info h1 { line-height: 1.4; }
html:lang(zh) .facts b { font-size: clamp(28px, 3.6vw, 56px); white-space: nowrap; }

/* 杭州 · 意法 */
.city { background: var(--ink); color: #fff; padding: clamp(72px, 11vw, 170px) var(--pad) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin: clamp(48px, 8vw, 120px) 0; }
.city .k { grid-column: 1 / span 3; color: rgba(255,255,255,.6); }
.city h2 { grid-column: 4 / span 8; font-weight: 300; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.city .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 120px); }
.city .stats > div { border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; }
.city .stats b { display: block; font-weight: 300; font-size: clamp(36px, 5vw, 84px); letter-spacing: -.04em; line-height: 1; margin-bottom: 16px; white-space: nowrap; }
.city .stats p, .city .src { color: rgba(255,255,255,.62); max-width: 22em; }
.city .txt { grid-column: 4 / span 9; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: clamp(56px, 8vw, 120px); }
.city .txt .cap { display: block; margin-bottom: 14px; color: rgba(255,255,255,.6); }
.city .txt p { font-size: 15px; line-height: 1.65; }
.city .src { grid-column: 4 / span 9; font-size: 11px; margin-top: clamp(40px, 5vw, 72px); }
.cityline { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--pad) clamp(56px, 8vw, 110px); align-items: baseline; }
.cityline .k { grid-column: 1 / span 3; }
.cityline p { grid-column: 4 / span 6; font-weight: 300; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
.cityline a { grid-column: 11 / span 2; justify-self: end; }
html:lang(zh) .city h2, html:lang(zh) .cityline p { letter-spacing: .01em; line-height: 1.3; }
html:lang(zh) .city .stats b { letter-spacing: 0; }
@media (max-width: 900px) {
  .city .k, .city h2, .city .txt, .city .src, .cityline .k, .cityline p, .cityline a { grid-column: 1 / -1; }
  .city .stats { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .city .txt { grid-template-columns: 1fr; }
  .cityline a { justify-self: start; }
}
.city { scroll-margin-top: var(--head-h); }
.city .src { max-width: none; }
