/* Lion Opus — 匠子獅坊
   Desktop (≥1024 × ≥640): the page is a hand-scroll — vertical scrolling drives a horizontal track of panels.
   Mobile/tablet: vertical page; long sequences become left-to-right swipe rails.
   Tokens: stone paper, ink, charcoal (the studio backdrop of the photographs), cinnabar only for seal and eye-dot. */
:root {
  --paper: #EFEEEA;
  --paper-2: #E5E3DD;
  --ink: #161412;
  --ink-2: #5C5852;
  --ink-3: #8D8880;
  --rule: #D2CFC7;
  --char: #242322;
  --char-2: #2E2D2B;
  --char-ink: #D9D6CE;
  --char-dim: #8C8880;
  --cinnabar: #A3271D;

  --f-display: "Bodoni Moda", "Noto Serif TC", serif;
  --f-body: "Jost", "Noto Sans TC", system-ui, sans-serif;
  --f-han: "Noto Serif TC", serif;

  --gutter: clamp(20px, 5vw, 88px);
  --header: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.75 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--cinnabar); outline-offset: 4px; }
::selection { background: var(--cinnabar); color: var(--paper); }
p { margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Chinese mode */
html[lang="zh-Hant-TW"] body { font-family: "Noto Sans TC", "Jost", sans-serif; line-height: 1.95; letter-spacing: .04em; font-size: 16px; }
html[lang="zh-Hant-TW"] :is(.display, .h2, .atelier-text .quote, .statement-text, .card-title) { font-family: var(--f-han); font-style: normal; font-weight: 300; letter-spacing: .08em; }
html[lang="zh-Hant-TW"] :is(.display, .h2) em { font-style: normal; color: inherit; }

/* ---------- Type ---------- */
.eyebrow { display: block; font: 400 11px/1.4 "Jost", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
html[lang="zh-Hant-TW"] .eyebrow { font-family: "Noto Sans TC", sans-serif; letter-spacing: .32em; font-size: 12px; }
.display { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, min(7vw, 11vh), 112px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.display em, .h2 em { font-style: italic; color: var(--ink-2); }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, min(4vw, 6.4vh), 60px); line-height: 1.1; letter-spacing: -.01em; margin: 0; }
html[lang="zh-Hant-TW"] .display { font-size: clamp(40px, min(5.6vw, 9vh), 88px); line-height: 1.3; }
html[lang="zh-Hant-TW"] .h2 { font-size: clamp(28px, min(3.2vw, 5.2vh), 48px); line-height: 1.45; }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 30em; }
.small { font-size: 15px; color: var(--ink-2); }
.card-title { margin: 0; font: 400 clamp(21px, 1.7vw, 27px)/1.25 var(--f-display); }
html[lang="zh-Hant-TW"] .card-title { font-weight: 400; letter-spacing: .14em; }

/* Vertical inscription — the recurring chapter marker, read like a column of a hand-scroll */
.inscription { writing-mode: vertical-rl; font: 400 15px/1 var(--f-han); letter-spacing: .6em; color: inherit; display: flex; align-items: center; gap: 18px; flex: none; }
.inscription::after { content: ""; width: 1px; height: 64px; background: currentColor; opacity: .25; }

/* The seal 匠子獅坊 — right column first, top to bottom */
.seal { --s: 46px; width: var(--s); height: var(--s); background: var(--cinnabar); color: #F4EEE6; display: grid; place-items: center; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3.5px rgba(244,238,230,.85); flex: none; }
.seal span { writing-mode: vertical-rl; font: 600 calc(var(--s) * .3)/1.05 var(--f-han); letter-spacing: 0; display: block; height: 2em; overflow: hidden; }

.eye-dot { display: inline-block; width: .15em; height: .15em; background: var(--cinnabar); border-radius: 50%; vertical-align: .06em; margin-left: .05em; }

/* ---------- Buttons / links ---------- */
.btn { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding: 17px 28px; border: 1px solid currentColor; transition: background .4s var(--ease), color .4s var(--ease); }
html[lang="zh-Hant-TW"] .btn { letter-spacing: .3em; font-size: 14px; }
.btn::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:hover::after { width: 42px; }
.link { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--rule); padding-bottom: 5px; transition: border-color .3s; }
html[lang="zh-Hant-TW"] .link { letter-spacing: .28em; font-size: 13px; }
.link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .5s var(--ease), border-color .5s var(--ease), color .5s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(239,238,234,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--rule); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header); padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; }
.brand-name { font: 400 13px/1.2 "Jost", sans-serif; letter-spacing: .34em; text-transform: uppercase; }
.brand-name small { display: block; font: 400 11px/1.4 var(--f-han); letter-spacing: .5em; color: var(--ink-2); margin-top: 3px; text-transform: none; }
.header-right { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a { font-size: 13px; letter-spacing: .14em; position: relative; padding: 6px 0; }
html[lang="zh-Hant-TW"] .nav a { letter-spacing: .24em; font-size: 14px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
.lang { display: flex; gap: 2px; font-size: 12px; letter-spacing: .1em; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: rgba(239,238,234,.6); }
.lang a { padding: 5px 11px; border-radius: 999px; color: var(--ink-2); transition: background .3s, color .3s; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }

/* ---------- Shared pieces ---------- */
.frame { background: var(--char); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--ink-2); letter-spacing: .05em; }
.caption b { font-weight: 400; color: var(--ink); }
.dark { background: var(--char); color: var(--char-ink); }
.dark .eyebrow, .dark .small, .dark .lede, .dark .caption { color: var(--char-dim); }
.dark .caption b { color: var(--char-ink); }

.work { display: block; }
.work .frame { aspect-ratio: 4 / 5; }
.work .frame img { transition: transform 1.4s var(--ease), filter 1.4s var(--ease); filter: saturate(.92); }
.work:hover .frame img { transform: scale(1.04); filter: saturate(1.05); }
.work-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-top: 22px; align-items: start; }
.glyph { font: 300 48px/1 var(--f-han); }
.work-meta .glyph { grid-row: span 3; }
.work-meta p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.work-meta .link { justify-self: start; margin-top: 12px; }

.step .frame { aspect-ratio: 3 / 4; background: var(--paper-2); }
.step-head { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 8px; }
.step-han { font: 300 56px/1 var(--f-han); }
.step-name { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
html[lang="zh-Hant-TW"] .step-name { letter-spacing: .3em; font-size: 13px; text-transform: none; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0; }

.process-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.process-list li { counter-increment: step; padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.process-list li::before { content: counter(step, cjk-ideographic); grid-row: span 2; font: 400 18px/1.5 var(--f-han); color: var(--cinnabar); }
.process-list b { font-weight: 400; font-size: 16px; }
.process-list span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.facts { display: flex; gap: clamp(28px, 3vw, 56px); margin: 0; padding-top: 28px; border-top: 1px solid #3c3a38; }
.facts dt { font: 400 clamp(36px, 3.4vw, 54px)/1 var(--f-display); color: #F1EEE7; }
.facts dd { margin: 10px 0 0; font-size: 11px; letter-spacing: .16em; color: var(--char-dim); text-transform: uppercase; }
html[lang="zh-Hant-TW"] .facts dd { letter-spacing: .24em; text-transform: none; font-size: 12px; }
.atelier-text .quote { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(24px, min(2.3vw, 3.8vh), 36px); line-height: 1.34; margin: 0 0 32px; color: #F1EEE7; }
.m-cta { display: none; }
.atelier-text .exhibit { padding-left: 14px; border-left: 1px solid var(--cinnabar); color: #C9C4BA; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.signature b { display: block; font: italic 400 21px/1.2 var(--f-display); color: #F1EEE7; }
.signature div:not(.seal) > span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--char-dim); }

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
html[lang="zh-Hant-TW"] .field label { letter-spacing: .3em; font-size: 12px; }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 8px 0 10px; border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field select { background: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%) right 4px center / 6px 6px no-repeat; }
.field textarea { resize: vertical; min-height: 96px; }
.field :is(input, textarea, select):focus { outline: none; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-foot small { font-size: 12.5px; color: var(--ink-3); max-width: 22em; line-height: 1.5; }
.form-status { margin: 0; font-size: 14px; color: var(--cinnabar); }
.form-status:empty { display: none; }
.form-status a { border-bottom: 1px solid currentColor; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; outline: none; }
.form-done[hidden] { display: none; }
.form-done .small { max-width: 26em; }
.btn:disabled { opacity: .5; cursor: progress; }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
html[lang="zh-Hant-TW"] .contact-list dt { letter-spacing: .3em; font-size: 12px; }
.contact-list dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.hero-plate { margin-inline: 0; }
.contact-list dd a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-list dd a:hover { border-color: var(--ink); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }

/* Social seals — square chops; cinnabar ink rises from the bottom on hover */
.soc { --s: 46px; position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); overflow: visible; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease); }
.soc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cinnabar); border-radius: 2px; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.soc svg { width: 46%; height: 46%; transition: transform .45s var(--ease); }
/* label slides up like a caption */
.soc[data-label]::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); white-space: nowrap; font: 400 11px/1 "Jost", sans-serif; letter-spacing: .12em; background: var(--ink); color: var(--paper); padding: 7px 10px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.soc:focus-visible { color: #F4EEE6; border-color: var(--cinnabar); }
.soc:focus-visible::before { transform: scaleY(1); }
.soc[data-label]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* hover effects only where a real pointer exists, so taps on phones don't leave seals stuck */
@media (hover: hover) {
  .soc:hover, .soc:focus-visible { color: #F4EEE6; border-color: var(--cinnabar); transform: translateY(-3px); }
  .soc:hover::before, .soc:focus-visible::before { transform: scaleY(1); }
  .soc:hover svg { transform: scale(1.12) rotate(-4deg); }
  .soc[data-label]:hover::after, .soc[data-label]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
  .hero-ig:hover { color: var(--ink); }
  .hero-ig:hover b { border-color: var(--ink); }
  .hero-ig:hover .soc { color: #F4EEE6; border-color: var(--cinnabar); }
  .hero-ig:hover .soc::before { transform: scaleY(1); }
  .hero-ig:hover .soc { transform: translateY(-3px); }
}
/* entrance: each seal is pressed in turn */
@keyframes stamp { 0% { opacity: 0; transform: scale(1.5) rotate(-10deg); } 60% { opacity: 1; transform: scale(.94) rotate(1deg); } 100% { opacity: 1; transform: none; } }
.js .social.reveal { opacity: 1; transform: none; }
.js .social.reveal .soc { opacity: 0; }
.js .social.reveal.in .soc { opacity: 1; animation: stamp .6s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
.dark .soc { border-color: var(--char-ink); color: var(--char-ink); }

/* Hero Instagram link */
.hero-ig { display: inline-flex; align-items: center; gap: 14px; margin-left: 28px; vertical-align: middle; font-size: 12px; letter-spacing: .14em; color: var(--ink-2); transition: color .3s; }
.hero-ig b { font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 3px; transition: border-color .3s; }
.hero-ig .soc { --s: 40px; }
.nav-ig { display: none; }
.colophon { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }

/* Hero load sequence: plate unrolls like a hanging scroll, the seal is pressed, then the eye is dotted */
.js .hero-plate .frame { clip-path: inset(0 0 100% 0); }
.js .hero-plate .seal { opacity: 0; transform: scale(1.35) rotate(-6deg); }
.js .hero .eye-dot { transform: scale(0); }
.js .hero-copy > * { opacity: 0; transform: translateY(14px); }
.loaded .hero-plate .frame { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease) .15s; }
.loaded .hero-plate .seal { opacity: 1; transform: none; transition: opacity .25s ease 1.6s, transform .45s cubic-bezier(.3,1.6,.5,1) 1.6s; }
.loaded .hero .eye-dot { transform: scale(1); transition: transform .6s cubic-bezier(.3,1.8,.5,1) 2.1s; }
.loaded .hero-copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.loaded .hero-copy > :nth-child(2) { transition-delay: .12s; }
.loaded .hero-copy > :nth-child(3) { transition-delay: .24s; }
.loaded .hero-copy > :nth-child(4) { transition-delay: .36s; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(22,20,18,.97); display: none; place-items: center; padding: 56px 16px; touch-action: pan-y; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 84vh; max-width: 92vw; width: auto; }
.lightbox button { position: absolute; color: var(--char-ink); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 16px; }
.lb-close { top: 8px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 26px !important; letter-spacing: 0 !important; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--char-dim); font-size: 12px; letter-spacing: .2em; }

/* =========================================================
   DESKTOP — horizontal hand-scroll
   ========================================================= */
@media (min-width: 1024px) and (min-height: 640px) {
  .header-right { background: rgba(239,238,234,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 4px 4px 4px 28px; gap: 28px; }
  .header-right .lang { border-color: transparent; background: none; }
  .brand { background: rgba(239,238,234,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 5px 22px 5px 10px; margin-left: -10px; }
  .brand img { height: 38px; }
  html, body { overflow-anchor: none; }
  .h-outer { position: relative; }
  .h-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .h-track { display: flex; height: 100vh; width: max-content; will-change: transform; }

  .panel { flex: none; height: 100vh; position: relative; display: flex; align-items: center; gap: clamp(40px, 4.5vw, 88px); padding: calc(var(--header) + 3vh) clamp(48px, 5vw, 96px) 9vh; }
  .panel + .panel { border-left: 1px solid var(--rule); }
  .panel.dark { border-left: 0; }
  .panel-head { width: clamp(340px, 30vw, 480px); flex: none; align-self: stretch; display: flex; gap: 32px; }
  .panel-head .inscription { align-self: flex-start; }
  .panel-head > div { display: flex; flex-direction: column; justify-content: center; }
  .panel-head .lede, .panel-head p { margin-top: 24px; }
  .rail { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); height: 100%; }
  .rail-progress { display: none; }

  /* Hero */
  .panel-hero { width: 100vw; padding-right: 0; gap: clamp(32px, 4vw, 72px); }
  .panel-hero .inscription { align-self: flex-start; margin-top: 2vh; }
  .hero-copy { flex: 1; min-width: 0; }
  .hero-copy .lede { margin: 4vh 0 5vh; }
  .hero-plate { height: 100vh; margin-top: calc(-1 * (var(--header) + 3vh)); margin-bottom: -9vh; width: min(44vw, 72vh); flex: none; position: relative; }
  .hero-plate .frame { height: 100%; }
  .hero-plate .seal { position: absolute; left: -27px; bottom: 14vh; --s: 54px; }
  .hero-plate .caption { position: absolute; left: 24px; right: 24px; bottom: 22px; color: rgba(241,238,231,.7); margin: 0; }
  .hero-plate .caption b { color: #F1EEE7; }
  .scroll-cue { position: absolute; left: clamp(48px, 5vw, 96px); bottom: 5vh; display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
  .scroll-cue::after { content: ""; width: 72px; height: 1px; background: var(--ink); transform-origin: left; animation: cue 2.4s var(--ease) infinite; }
  @keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

  /* Statement */
  .panel-statement { gap: clamp(48px, 5vw, 96px); }
  .statement-text { width: clamp(420px, 34vw, 580px); font: 400 clamp(24px, min(2.3vw, 3.9vh), 36px)/1.42 var(--f-display); margin: 0; }
  html[lang="zh-Hant-TW"] .statement-text { line-height: 1.95; letter-spacing: .1em; font-size: clamp(21px, min(1.9vw, 3.3vh), 30px); }
  .panel-statement .frame { height: 72vh; aspect-ratio: 812 / 1188; }

  /* Collections */
  .rail-works .work { width: clamp(240px, min(19vw, 36vh), 330px); }
  .rail-works .work:nth-child(odd) { transform: translateY(-5vh); }
  .rail-works .work:nth-child(even) { transform: translateY(6vh); }
  .rail-works .work.reveal:not(.in) { opacity: 0; }

  /* Craft */
  .panel-craft .frame.wide { height: 70vh; aspect-ratio: 812 / 1188; flex: none; }
  .rail-steps .step { width: clamp(200px, min(15vw, 30vh), 270px); }
  .rail-steps .step:nth-child(even) { margin-top: 12vh; }
  .rail-steps .step:nth-child(odd) { margin-bottom: 8vh; }

  /* Atelier */
  .panel-atelier { gap: clamp(40px, 4vw, 80px); }
  .panel-atelier .portrait { height: 74vh; aspect-ratio: 4 / 5; flex: none; }
  .atelier-text { width: clamp(380px, 32vw, 520px); flex: none; }
  .atelier-text p { color: #A9A59D; font-size: 15.5px; line-height: 1.75; }
  .atelier-text p.exhibit { color: #C9C4BA; font-size: 13.5px; line-height: 1.7; }
  .atelier-figs { display: flex; gap: 28px; align-items: flex-end; height: 74vh; }
  .atelier-figs figure { margin: 0; }
  .atelier-figs figure:first-child .frame { height: 58vh; aspect-ratio: 3 / 4; }
  .atelier-figs figure:last-child .frame { height: 40vh; aspect-ratio: 3 / 4; }

  /* Services */
  .rail-services { align-items: stretch; height: auto; }
  .service { width: clamp(300px, 24vw, 400px); display: flex; flex-direction: column; }
  .service .frame { aspect-ratio: 842 / 353; margin-bottom: 26px; }
  .service h3 { margin: 12px 0 14px; }
  .service p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
  .service .link { margin-top: auto; align-self: flex-start; }
  .process { width: clamp(280px, 22vw, 360px); }
  .process .eyebrow { margin-bottom: 18px; }
  .process .note { font-size: 13px; color: var(--ink-3); margin-top: 20px; line-height: 1.6; }

  /* Contact */
  .panel-contact { padding-right: 0; }
  .contact-form { width: clamp(360px, 30vw, 500px); }
  .contact-card { width: clamp(240px, 18vw, 300px); display: flex; flex-direction: column; gap: 28px; }
  .contact-card .frame { aspect-ratio: auto; height: min(25vh, 260px); }
  .contact-card .frame img { object-position: 50% 30%; }
  .panel-contact .end { height: 100vh; margin: calc(-1 * (var(--header) + 3vh)) 0 -9vh; width: 32vh; flex: none; }
  .panel-contact .end img { height: 100%; width: 100%; object-fit: cover; }
  .site-footer { display: none; }
  .contact-card .colophon { margin-top: auto; }

  /* Short laptop screens: tighten the contact column so it never runs past the fold */
  @media (max-height: 820px) {
    .contact-card { gap: 16px; }
    .contact-card .frame { height: 22vh; }
    .contact-list { gap: 10px; }
    .contact-list dd { font-size: 15px; }
    .contact-card .soc { --s: 40px; }
    .contact-form.form { gap: 18px; }
    .contact-form .field textarea { min-height: 72px; }
  }
  @media (max-height: 680px) {
    .contact-card .frame { height: 15vh; }
    .contact-card { gap: 12px; }
  }

  /* Atelier text column: widen and tighten on shorter screens so EN/FR never run past the fold */
  @media (max-height: 940px) {
    .atelier-text { width: clamp(420px, 40vw, 560px); }
    .atelier-text .quote { font-size: clamp(21px, min(2vw, 3.4vh), 28px); }
    .atelier-text p { font-size: 14.5px; line-height: 1.65; }
    .atelier-text p.exhibit { font-size: 13px; }
    .atelier-text .quote { margin-bottom: 20px; }
    .atelier-text .signature { margin-top: 18px; }
    .atelier-text .facts { margin-top: 22px !important; padding-top: 20px; }
  }
  @media (max-height: 680px) {
    .atelier-text p { font-size: 13.5px; line-height: 1.6; }
    .atelier-text .quote { font-size: 19px; margin-bottom: 14px; }
    .atelier-text .facts dt { font-size: 32px; }
    .atelier-text .eyebrow { display: none; }
  }

  /* Progress — a thin brush line along the bottom edge */
  .h-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 40; background: transparent; }
  .h-progress span { display: block; height: 100%; background: var(--cinnabar); transform-origin: left; transform: scaleX(0); }

  /* Collection page */
  .panel-c-hero { width: auto; }
  .c-copy { width: clamp(400px, 34vw, 560px); flex: none; }
  .c-copy .back { margin-bottom: 5vh; }
  .c-copy .display { font-size: clamp(40px, min(5vw, 8.4vh), 84px); }
  .c-intro { width: clamp(320px, 26vw, 420px); flex: none; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
  .c-intro p:first-child { color: var(--ink); font-size: 17px; }
  .panel-c-hero .cover { height: 76vh; aspect-ratio: 3 / 4; flex: none; position: relative; }
  .panel-c-hero .cover .frame { height: 100%; }
  .panel-c-hero .cover .seal { position: absolute; left: -23px; bottom: 9vh; }
  .piece { display: flex; align-items: flex-end; gap: 28px; height: 76vh; flex: none; }
  .piece-main { height: 100%; aspect-ratio: 4 / 5; cursor: zoom-in; }
  .piece-side { display: flex; flex-direction: column; justify-content: flex-end; width: clamp(200px, 15vw, 260px); height: 100%; gap: 20px; }
  .thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .thumbs button:only-child { display: none; }
  .piece-info .glyph { font-size: 13px; letter-spacing: .26em; color: var(--ink-3); font-family: "Jost", sans-serif; display: block; margin-bottom: 14px; }
  .piece-info h2 { font: 400 clamp(22px, 1.8vw, 30px)/1.25 var(--f-display); margin: 0 0 14px; }
  html[lang="zh-Hant-TW"] .piece-info h2 { font-family: var(--f-han); letter-spacing: .1em; line-height: 1.5; }
  .piece-info .materials { color: var(--ink-2); font-size: 14px; padding-top: 14px; border-top: 1px solid var(--rule); margin: 0; }
  .panel-c-cta { width: clamp(420px, 34vw, 560px); flex-direction: column; justify-content: center; align-items: flex-start; }
  .panel-c-cta .process-list { width: 100%; margin: 28px 0 32px; }
  .panel-c-next { width: auto; }
  .next-link { display: flex; align-items: center; gap: 40px; }
  .next-link .glyph { font-size: clamp(100px, 16vh, 160px); color: var(--ink-3); transition: color .5s; }
  .next-link:hover .glyph { color: var(--cinnabar); }
}

/* =========================================================
   MOBILE / TABLET — vertical page, left-to-right rails
   ========================================================= */
@media (max-width: 1023px), (max-height: 639px) {
  :root { --header: 68px; }
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .brand-name { font-size: 12px; letter-spacing: .28em; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px var(--gutter) 36px; gap: 4px; border-bottom: 1px solid var(--rule); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 22px; font-family: var(--f-display); letter-spacing: 0; padding: 8px 0; }
  html[lang="zh-Hant-TW"] .nav a { font-family: var(--f-han); font-size: 20px; letter-spacing: .2em; }
  .site-header .nav a.nav-ig { display: block; font: 400 13px/1 "Jost", sans-serif; letter-spacing: .14em; color: var(--ink-2); margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--rule); align-self: stretch; }
  .hero-copy .hero-ig { order: 6; margin: 22px 0 0; align-self: flex-start; }
  .menu-btn { display: inline-flex; flex-direction: column; gap: 6px; padding: 12px 0 12px 8px; }
  .menu-btn i { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .header-right { gap: 14px; }

  .panel { padding: 88px var(--gutter) 0; }
  .panel.dark { padding-bottom: 88px; margin-top: 88px; }
  .panel-head { display: grid; gap: 22px; margin-bottom: 36px; }
  .inscription { writing-mode: horizontal-tb; letter-spacing: .5em; font-size: 14px; }
  .inscription::after { width: 40px; height: 1px; }
  .panel-head .lede, .panel-head p { margin-top: 18px; }

  /* Rails: native horizontal swipe with snap, full-bleed to the screen edge */
  .rail { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: none; scroll-snap-align: start; }
  .rail::after { content: ""; flex: 0 0 calc(var(--gutter) - 16px); }
  .rail-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 11px; letter-spacing: .2em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .rail-progress i { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
  .rail-progress i::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .15s linear; }
  .dark .rail-progress i { background: #3c3a38; }
  .dark .rail-progress i::before { background: var(--char-ink); }
  .rail-progress .hint { white-space: nowrap; }
  .rail-progress .hint::after { content: " →"; }

  /* Hero */
  .panel-hero { padding-top: calc(var(--header) + 24px); display: flex; flex-direction: column; }
  .panel-hero .inscription { display: none; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin-bottom: 18px; }
  .hero-copy .display { order: 2; }
  .hero-plate { order: 3; margin: 32px calc(-1 * var(--gutter)) 0; position: relative; }
  .hero-plate .frame { aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }
  .hero-plate .seal { position: absolute; right: var(--gutter); bottom: -23px; --s: 46px; }
  .hero-plate .caption { padding: 0 var(--gutter); flex-direction: column; gap: 2px; margin-top: 14px; }
  .hero-copy .lede { order: 4; margin: 28px 0 28px; }
  .hero-copy .btn { order: 5; align-self: flex-start; }
  .scroll-cue { display: none; }

  /* Statement */
  .statement-text { font: 400 clamp(24px, 6.4vw, 34px)/1.42 var(--f-display); margin: 0 0 40px; }
  html[lang="zh-Hant-TW"] .statement-text { font-size: clamp(20px, 5.4vw, 28px); line-height: 1.95; letter-spacing: .08em; }
  .panel-statement .frame { aspect-ratio: 812 / 1188; max-height: 80svh; margin: 0 calc(-1 * var(--gutter)) 0 18%; }

  .rail-works .work { width: min(76vw, 360px); }
  .rail-steps .step { width: min(64vw, 300px); }
  .panel-craft .frame.wide { display: none; }

  /* Atelier */
  .panel-atelier { display: flex; flex-direction: column; gap: 32px; }
  .panel-atelier .portrait { aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--gutter)); }
  .atelier-text p { color: #A9A59D; }
  .atelier-figs { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .atelier-figs::-webkit-scrollbar { display: none; }
  .atelier-figs figure { margin: 0; flex: none; width: 72vw; scroll-snap-align: start; }
  .atelier-figs .frame { aspect-ratio: 3 / 4; }
  .facts { flex-wrap: wrap; margin-top: 36px; }

  /* Services */
  .rail-services .service { width: min(80vw, 380px); }
  .service .frame { aspect-ratio: 842 / 353; margin-bottom: 20px; }
  .service h3 { margin: 10px 0 12px; }
  .service p { font-size: 15px; color: var(--ink-2); }
  .process { margin-top: 56px; }
  .process .eyebrow { margin-bottom: 14px; }
  .process .note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }

  /* Contact */
  .panel-contact { padding-bottom: 72px; }
  .contact-form { margin-bottom: 64px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { display: grid; grid-template-columns: 38% 1fr; gap: 22px; align-items: start; }
  .contact-card .frame { aspect-ratio: 4 / 5; }
  .contact-card .social, .contact-card .colophon { grid-column: 1 / -1; }
  .contact-card .social { gap: 12px; }
  .contact-card .soc { --s: 54px; }
  .panel-contact .end { display: none; }
  .h-progress { display: none; }

  /* Sticky contact bar — the one action always within thumb reach */
  .m-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 14px 18px 14px 22px; border-radius: 999px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; transform: translateY(140%); transition: transform .5s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
  html[lang="zh-Hant-TW"] .m-cta { letter-spacing: .26em; font-size: 14px; }
  .m-cta.show { transform: none; }
  .m-cta .seal { --s: 30px; }

  /* Collection page */
  .panel-c-hero { padding-top: calc(var(--header) + 28px); display: flex; flex-direction: column; }
  .panel-c-hero .inscription { display: none; }
  .c-copy .back { margin-bottom: 28px; }
  .panel-c-hero .cover { order: 3; margin: 32px calc(-1 * var(--gutter)) 0; position: relative; }
  .panel-c-hero .cover .frame { aspect-ratio: 4 / 5; max-height: 74svh; }
  .panel-c-hero .cover .seal { position: absolute; right: var(--gutter); bottom: -23px; }
  .c-copy { order: 1; }
  .c-intro { order: 4; margin-top: 40px; font-size: 15.5px; color: var(--ink-2); }
  .c-intro p:first-child { color: var(--ink); font-size: 17px; }
  .panel-pieces .panel-head { margin-bottom: 8px; }
  .piece { padding: 40px 0 0; }
  .piece-main { display: none; }
  .piece-side { display: flex; flex-direction: column-reverse; gap: 18px; }
  .thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: none; width: 78vw; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .thumbs button:only-child { width: 100%; }
  .piece-info .glyph { font: 400 11px/1 "Jost", sans-serif; letter-spacing: .26em; color: var(--ink-3); display: block; margin-bottom: 10px; }
  .piece-info h2 { font: 400 24px/1.25 var(--f-display); margin: 0 0 10px; }
  html[lang="zh-Hant-TW"] .piece-info h2 { font-family: var(--f-han); letter-spacing: .1em; line-height: 1.5; font-size: 21px; }
  .piece-info .materials { color: var(--ink-2); font-size: 14px; margin: 0; }
  .panel-c-cta .process-list { margin: 24px 0 28px; }
  .panel-c-next { padding-bottom: 120px; }
  .next-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; border-top: 1px solid var(--rule); }
  .next-link .glyph { font-size: 84px; color: var(--ink-3); }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

html[lang="zh-Hant-TW"] .brand-name { font: 400 15px/1.2 var(--f-han); letter-spacing: .4em; }
html[lang="zh-Hant-TW"] .brand-name small { font: 400 10px/1.4 "Jost", sans-serif; letter-spacing: .34em; text-transform: uppercase; }
