/* JOK HOMME — 极简，字号很小，图片很大。
   配色两套：默认白底；黑底保留为 data-theme="dark"（data.js 的 THEME 或网址加 ?theme=dark 切换） */
:root {
  --bg: #ffffff;
  --bg2: #f2f2f1;
  --fg: #0a0a0a;
  --mute: #7a7b7f;
  --line: rgba(10, 10, 10, .12);
  --ice: rgba(255, 255, 255, .72);
  --on-photo: #ffffff;  /* 压在照片上的文字，两套都是白色 */
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gut: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg2: #121214;
  --fg: #ecebe8;
  --mute: #8a8c90;
  --line: rgba(236, 235, 232, .14);
  --ice: rgba(18, 19, 22, .55);
  color-scheme: dark;
}
body { background: var(--bg); color: var(--fg); font: 400 11px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; width: 100%; }
.mute { color: var(--mute); }
.eyebrow { color: var(--mute); }
.fine { color: var(--mute); text-transform: none; letter-spacing: .02em; font-size: 11px; }
.btn { display: block; width: 100%; padding: 16px; text-align: center; background: var(--fg); color: var(--bg); transition: opacity .3s; }
.btn:hover { opacity: .82; }
.row { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- 页头：滚动后变成磨砂冰面 ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 var(--gut); transition: background .5s var(--ease), backdrop-filter .5s; }
.over .hd:not(.solid) { color: var(--on-photo); }
.over .hd:not(.solid) .lang button { color: rgba(255, 255, 255, .55); }
.over .hd:not(.solid) .lang button.on { color: var(--on-photo); }
.hd.solid { background: var(--ice); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line); }
.hd-l, .hd-r { display: flex; gap: 28px; align-items: center; }
.hd-r { justify-content: flex-end; }
.hd a, .hd button { opacity: .9; transition: opacity .2s; }
.hd a:hover, .hd button:hover { opacity: .55; }
.hd a.hd-logo { opacity: 1; } /* 与首页大标志交接时亮度一致 */
.hd-logo img { height: 24px; width: auto; transform: translateY(-4%); } /* 签名细淡，几何居中会显得偏下，整体上提做视觉居中 */
.cur select { appearance: none; padding-right: 2px; }
.cur option { background: var(--bg); }

/* ---------- 首页大图 ---------- */
.hero { position: relative; height: 100svh; overflow: hidden; }
.hero-bg { height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); animation: drift 14s var(--ease) forwards; filter: brightness(.82); }
@keyframes drift { to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.35), transparent 30%, transparent 60%, rgba(10,10,11,.75)); }
/* 外层固定定位、由滚动驱动（缩进页头正中）；内层 SVG 只管入场淡入 */
.hero-logo-wrap { position: fixed; z-index: 55; left: 0; top: 0; width: min(64vw, 760px); pointer-events: none; transform: translate(50vw, 50svh) translate(-50%, -50%); will-change: transform; }
.hero-logo { display: block; width: 100%; height: auto; opacity: 0; animation: rise 1.8s .4s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
.docked .hero-logo-wrap { visibility: hidden; }
.hero-meta { position: absolute; z-index: 2; color: var(--on-photo); left: var(--gut); right: var(--gut); bottom: 28px; display: flex; justify-content: space-between; align-items: end; }
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- 宣言 ---------- */
.manifesto { padding: clamp(96px, 16vw, 220px) var(--gut); text-align: center; }
.manifesto p.big { max-width: 24ch; margin: 0 auto; font: 400 clamp(24px, 3.2vw, 46px)/1.25 var(--serif); text-transform: none; letter-spacing: -.01em; }
.manifesto p.big em { font-style: italic; }
.manifesto .eyebrow { margin-bottom: 36px; }

/* ---------- 双联图 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.split a { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.split img { height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter 1.2s; filter: grayscale(.4) brightness(.85); }
.split a:hover img { transform: scale(1.04); filter: grayscale(0) brightness(.95); }
.split span { color: var(--on-photo); position: absolute; left: 20px; bottom: 18px; }

/* ---------- 商品网格 ---------- */
.sec { padding: 120px var(--gut) 0; }
.sec-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.sec-hd a { border-bottom: 1px solid currentColor; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 2px; }
.card { display: block; opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.card.in { opacity: 1; transform: none; }
.card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg2); }
.card-img img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.card-img .alt { opacity: 0; }
.has-flat .card-img { background: #fff; } /* 白底平铺图 */
.has-flat .card-img > img:first-child { object-fit: contain; }
.card:hover .card-img .alt { opacity: 1; }
.card:hover .card-img img { transform: scale(1.03); }
.card-tx { display: flex; flex-direction: column; padding: 12px 2px 0; }

/* ---------- 横向 Lookbook ---------- */
/* Lookbook：页面照常上下滚；图片带自己左右滑（触控板横扫 / 手指滑 / 鼠标拖 / 箭头），不劫持纵向滚动 */
.look-wrap { margin-top: 140px; }
.look-hd { padding: 0 var(--gut); }
.look-nav { display: flex; align-items: baseline; gap: 18px; }
.look-nav button { font-size: 14px; line-height: 1; transition: opacity .3s; }
.look-nav button:disabled { opacity: .25; cursor: default; }
.look { position: relative; display: flex; gap: 2px; padding: 0 var(--gut); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 var(--gut); scrollbar-width: none; cursor: grab; outline: none; }
.look::-webkit-scrollbar { display: none; }
.look.dragging { cursor: grabbing; scroll-snap-type: none; }
.look figure { flex: none; height: min(74vh, 820px); position: relative; scroll-snap-align: start; }
.look img { height: 100%; width: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.look-bar { position: relative; height: 1px; margin: 20px var(--gut) 0; background: var(--line); }
.look-bar i { position: absolute; left: 0; top: 0; height: 100%; background: var(--fg); transition: width .4s var(--ease); }
.look figcaption { color: var(--on-photo); position: absolute; left: 12px; bottom: 10px; }

/* ---------- 季度索引 ---------- */
.seasons { padding: 160px var(--gut) 40px; }
.seasons ul { list-style: none; border-top: 1px solid var(--line); }
.seasons li a { display: grid; grid-template-columns: 60px 120px 1fr auto; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.seasons li a:hover { padding-left: 16px; }
.seasons .tt { font: italic 400 clamp(28px, 4vw, 56px)/1 var(--serif); text-transform: none; letter-spacing: 0; }
.seasons .upcoming { color: var(--mute); cursor: default; }
.seasons { position: relative; }
.preview { position: absolute; left: 58%; top: 0; width: 132px; aspect-ratio: 3/4; object-fit: cover; pointer-events: none; z-index: 5; opacity: 0; transform: translateY(-50%) scale(.96); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.preview.on { opacity: 1; transform: translateY(-50%); }

/* ---------- 光标标签 ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; margin: 14px 0 0 14px; padding: 4px 8px; background: var(--fg); color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.on { opacity: 1; }
@media (hover: none) { .cursor, .preview { display: none; } }

/* ---------- 系列页 ---------- */
.col-hd { padding: 160px var(--gut) 64px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; }
.col-hd h1 { grid-column: 1; font: italic 400 clamp(56px, 10vw, 160px)/.9 var(--serif); text-transform: none; letter-spacing: -.02em; }
.col-hd .eyebrow { grid-column: 1; }
.col-hd .lede { grid-column: 2; grid-row: 2; max-width: 34ch; justify-self: end; text-transform: none; letter-spacing: .02em; font-size: 13px; }
.filter { display: flex; gap: 24px; padding: 14px var(--gut); margin-bottom: 8px; background: var(--ice); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); position: sticky; top: 64px; z-index: 10; }
.filter button { color: var(--mute); }
.filter button.on { color: var(--fg); }
.filter span { margin-left: auto; }

/* ---------- 商品页 ---------- */
.pd { display: grid; grid-template-columns: 1.4fr 1fr; }
.pd-gal { display: grid; gap: 2px; }
.pd-info { position: sticky; top: 0; align-self: start; padding: 120px var(--gut) 40px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.pd-info h1 { font: 400 26px/1.15 var(--serif); text-transform: none; letter-spacing: 0; }
.pd-info .price { font-size: 13px; }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 16px; }
.sizes button { padding: 12px 0; border: 1px solid var(--line); transition: border-color .2s; }
.sizes button:hover { border-color: var(--mute); }
.sizes button.on { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
details { border-top: 1px solid var(--line); padding: 14px 0 0; }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; }
details summary::after { content: '+'; }
details[open] summary::after { content: '−'; }
details p, details ul { margin-top: 10px; text-transform: none; letter-spacing: .02em; font-size: 12px; color: var(--mute); list-style: none; }

/* ---------- 购物袋抽屉 ---------- */
.bag { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100vw); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); }
.bag-open .bag { transform: none; }
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .5s; }
.bag-open .veil { opacity: 1; pointer-events: auto; }
.bag-hd { display: flex; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.bag-list { flex: 1; overflow: auto; padding: 0 24px; }
.bag-it { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bag-it img { aspect-ratio: 3/4; object-fit: cover; }
.bag-it button { margin-top: 8px; color: var(--mute); text-decoration: underline; }
.bag .empty { padding: 24px 0; }
.bag-ft { padding: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }

/* ---------- 结算（占位） ---------- */
.co { padding: 140px var(--gut) 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1200px; margin: 0 auto; }
.co h1 { font: italic 400 48px/1 var(--serif); text-transform: none; margin-bottom: 32px; }
.co .box { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.co .pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.co .pay span { border: 1px solid var(--line); padding: 14px 6px; text-align: center; color: var(--mute); }
.co .note { text-transform: none; letter-spacing: .02em; font-size: 12px; color: var(--mute); line-height: 1.7; }

/* ---------- 页脚 ---------- */
.ft { margin-top: 160px; padding: 0 var(--gut) 28px; border-top: 1px solid var(--line); }
.ft-sig { font: italic 400 clamp(64px, 9vw, 140px)/1 var(--serif); text-transform: none; letter-spacing: -.03em; color: var(--bg2); -webkit-text-stroke: 1px var(--line); padding: 40px 0 24px .14em; white-space: nowrap; overflow: hidden; } /* 斜体 J 的起笔会伸出左边，留出余量 */
.ft-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; }
.ft-grid h4 { font-weight: 400; color: var(--mute); margin-bottom: 14px; }
.ft-grid a { display: block; margin-bottom: 6px; }
.ft-grid a:hover { opacity: .55; }
.ft-news p { text-transform: none; letter-spacing: .02em; color: var(--mute); margin-bottom: 14px; }
.ft-news form { display: flex; border-bottom: 1px solid var(--fg); }
.ft-news input { flex: 1; padding: 10px 0; outline: none; text-transform: none; }
.ft-bt { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; color: var(--mute); flex-wrap: wrap; }
.proto { color: #6b6d72; }

/* ---------- 进场 ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 手机 ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .pd-gal { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 64px; }
  .pd-gal img { scroll-snap-align: start; aspect-ratio: 3/4; object-fit: cover; }
  .pd-info { position: static; padding-top: 32px; max-width: none; }
  .co { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hd-l a:not(:first-child), .hide-s { display: none; }
  .hd-l, .hd-r { gap: 10px; white-space: nowrap; }
  .lang button.on { display: none; } /* 手机上只显示另一种语言，点它切换 */
  .hd-logo img { height: 19px; }
  .split { grid-template-columns: 1fr; }
  .look figure { height: 62vh; }
  .seasons li a { grid-template-columns: 36px 64px 1fr; }
  .seasons .st { display: none; }
  .col-hd { grid-template-columns: 1fr; }
  .col-hd .lede { grid-column: 1; grid-row: auto; justify-self: start; }
  .hero-logo-wrap { width: 82vw; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .hero-logo { opacity: 1; } .rv, .card { opacity: 1; transform: none; } }

/* 首屏时大标志已在画面中央，页头小标志先隐藏 */
/* 首页：大标志缩进页头之前，页头小标志先隐藏；到位后瞬间交接（两者同一张图同一尺寸） */
.over:not(.docked) .hd-logo { opacity: 0; pointer-events: none; }
.over .hd-logo { transition: none; }

/* ---------- 语言切换 ---------- */
.lang { display: flex; gap: 8px; }
.lang button { color: var(--mute); }
.lang button.on { color: var(--fg); }

/* ---------- 日语排版：拉丁字母仍用 Bodoni，日文落到明朝/黑体；日文不用斜体 ---------- */
:lang(ja) {
  --serif: 'Bodoni Moda', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}
html:lang(ja) body { font-size: 12px; letter-spacing: .08em; }
:lang(ja) .manifesto p.big { max-width: none; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.9; letter-spacing: .12em; }
:lang(ja) .manifesto p.big em { font-style: normal; color: var(--mute); }
:lang(ja) .pd-info h1 { font-size: 22px; line-height: 1.5; letter-spacing: .06em; }
:lang(ja) details p, :lang(ja) details ul, :lang(ja) .col-hd .lede, :lang(ja) .co .note { line-height: 2; }

/* ---------- 首页标志：字标磨砂，签名手写描出 ---------- */
.hero-logo { overflow: visible; }
#pen path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; animation-name: write; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes write { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #pen path { stroke-dashoffset: 0; opacity: 1; } }

/* 筛选栏在窄屏上横向滑动，不撑宽页面 */
.filter { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter > * { flex: none; }
