/* Tokens: see /DESIGN.md */
:root { --bg:#F4F1EA; --char:#141618; --char2:#181B1E; --line:#2A2E33; --fg:#F3F1EC; --muted:#A0A6AD; --paper:#F4F1EA; --paper2:#EBE7DD; --ink:#17191B; --ink2:#5B5F64; --rule:#D3CEC2; --red:#E3261F; --red-dark:#C21E18; --red-text:#FF5A4F; --ok:#46D483; --r:8px; --pill:999px; --max:1240px; --ease:cubic-bezier(.2,.8,.2,1); --sec:112px; --s1:8px; --s2:16px; --s3:24px; --s4:40px; --s5:64px; --gut:max(20px, env(safe-area-inset-left)) }
* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:76px }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.6 Archivo, system-ui, sans-serif; overflow-x:hidden; -webkit-text-size-adjust:100% }
html:lang(zh-Hans) body { font-family:Archivo, 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif }
img, picture, svg, iframe { display:block; max-width:100% }
a { color:inherit }
h1, h2, h3, p, ul, ol, figure { margin:0 }
ul, ol { padding:0; list-style:none }
:focus-visible { outline:2px solid var(--red-dark); outline-offset:3px }
.dark :focus-visible, footer :focus-visible { outline-color:var(--red-text) }
.skip { position:absolute; left:12px; top:-60px; z-index:60; background:var(--red); color:#fff; padding:12px 18px; border-radius:var(--r); text-decoration:none; font-weight:800 }
.skip:focus { top:12px }
.wrap { max-width:var(--max); margin:0 auto; padding-left:max(20px, env(safe-area-inset-left)); padding-right:max(20px, env(safe-area-inset-right)) }

/* type: 12 / 14 / 16 / 19 / 24 / h2 / h1 — weights 400, 600, 800 */
h1, h2, h3 { text-wrap:balance; font-weight:800; font-stretch:80%; line-height:1.02; letter-spacing:-.005em }
h1 { font-size:clamp(48px, 6.6vw, 96px); line-height:.98; letter-spacing:-.012em }
h1 em { font-style:normal; color:var(--red) }
h2 { font-size:clamp(36px, 4.4vw, 60px) }
h3 { font-size:24px; line-height:1.15; font-stretch:88% }
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3 { font-stretch:100%; line-height:1.2 }
.lede { font-size:20px; line-height:1.55; color:var(--ink2); max-width:30em }
.dark .lede { color:var(--muted) }
.label { display:flex; align-items:center; gap:12px; font-size:14px; font-weight:600; letter-spacing:.02em; color:var(--ink2); margin-bottom:var(--s3) }
.label::before { content:""; width:28px; height:2px; background:var(--red) }
.dark .label { color:var(--muted) }
.row { display:flex; gap:10px; flex-wrap:wrap }
.hint { font-size:14px; color:var(--ink2) }

/* buttons: things you do are boxes */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 22px; border-radius:var(--r); background:var(--red); color:#fff; font-family:inherit; font-size:16px; font-weight:800; line-height:1.2; text-decoration:none; border:0; cursor:pointer; transition:background .2s, box-shadow .2s; text-align:center }
.btn:hover { background:var(--red-dark) }
.btn.big { min-height:56px; padding:0 30px; font-size:17px }
.btn.wide { width:100% }
.btn.line { background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink) }
.btn.line:hover { background:var(--ink); color:var(--paper) }
.dark .btn.line { color:#fff; box-shadow:inset 0 0 0 1px #ffffff80 }
.dark .btn.line:hover { background:#ffffff14; box-shadow:inset 0 0 0 1px #fff }
.btn.line-dark { background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink) }
.btn.line-dark:hover { background:var(--ink); color:var(--paper) }
.btn[aria-disabled=true] { opacity:.55; cursor:not-allowed }
.pill { border-radius:var(--pill) }

/* header */
.top { position:sticky; top:0; z-index:40; background:var(--paper); border-bottom:1px solid var(--rule) }
.bar { display:flex; align-items:center; gap:24px; min-height:72px }
.brand { display:block; flex:none; line-height:0 }
.jc-logo { display:block; height:auto }
nav#nav { display:flex; gap:4px; margin-left:auto }
nav#nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 14px; text-decoration:none; color:var(--ink2); font-weight:600; border-radius:var(--r); transition:color .2s }
nav#nav a:hover { color:var(--ink) }
.bar-end { display:flex; align-items:center; gap:10px }
.lang { min-width:56px; min-height:44px; padding:0 14px; background:transparent; color:var(--ink); border:1px solid #17191B55; font-family:inherit; font-size:14px; font-weight:600; cursor:pointer }
.lang:hover { border-color:var(--ink) }
.burger { display:none; width:44px; height:44px; background:transparent; border:1px solid #17191B55; border-radius:var(--r); cursor:pointer; padding:0; flex-direction:column; align-items:center; justify-content:center; gap:5px }
.burger i { width:18px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s, opacity .2s }
.menu-open .burger i:nth-child(1) { transform:translateY(7px) rotate(45deg) }
.menu-open .burger i:nth-child(2) { opacity:0 }
.menu-open .burger i:nth-child(3) { transform:translateY(-7px) rotate(-45deg) }

/* hero: one big photo bleeding to the edge */
.hero { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); min-height:min(780px, calc(100svh - 72px)); background:var(--paper) }
.hero-copy { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:var(--s3); padding:var(--s5) var(--s5) var(--s5) max(20px, calc((100vw - var(--max)) / 2 + 20px)) }
.hero-copy h1 { max-width:7.4em }
.hero-copy .row { gap:12px }
.rating { display:inline-flex; flex-wrap:wrap; align-items:center; gap:0 .4em; min-height:44px; text-decoration:none; color:var(--ink2); font-size:14px }
.rating:hover span { text-decoration:underline }
.hero-img { position:relative; overflow:hidden; background:var(--paper2) }
.hero-img picture, .hero-img img { width:100%; height:100%; object-fit:cover; object-position:72% 50% }
.hero-img img { position:absolute; inset:0 }
.motion .hero-img img { animation:settle 1.6s var(--ease) both }
@keyframes settle { from { transform:scale(1.06) } to { transform:scale(1) } }

/* sections */
.sec { padding:var(--sec) 0 }
.light { background:var(--paper); color:var(--ink) }
.paper { background:var(--paper); color:var(--ink) }
.paper2 { background:var(--paper2); color:var(--ink) }
.dark { background:var(--char); color:var(--fg) }
.sec-h { margin-bottom:var(--s5); max-width:11em }
.note { color:var(--ink2); font-size:15px }
.dark .note { color:var(--muted) }

/* services: three different compositions; carbon + paint get the big photos */
.svc { display:grid; align-items:center; gap:var(--s5) }
.svc + .svc { margin-top:calc(var(--sec) + var(--s3)) }
.svc h3 { font-size:clamp(32px, 3.6vw, 48px); font-stretch:80%; line-height:1.02; margin-bottom:var(--s2) }
.svc-body > p { color:var(--ink2); font-size:18px; max-width:28em }
.svc-a { grid-template-columns:7fr 5fr }
.svc-b { grid-template-columns:7fr 5fr; align-items:start; gap:var(--s5) }
.svc-b h3, .svc-c h3 { font-size:clamp(38px, 4.6vw, 64px) }
.svc figure img { width:100%; object-fit:cover; border-radius:var(--r) }
.svc figcaption { margin-top:12px; font-size:14px; color:var(--ink2) }
.svc-b .big img { aspect-ratio:1; height:auto }
.svc-b .svc-body { padding-top:var(--s5) }
.svc-b .ba { margin-top:var(--s5); max-width:340px }
.svc-b .ba img { aspect-ratio:1; height:auto }
.svc-c { grid-template-columns:5fr 7fr; gap:var(--s5) }
.svc-c figure img { aspect-ratio:1; height:auto }
.diagram { background:var(--char); border-radius:var(--r); padding:28px 20px 20px }
.bike { width:100%; height:auto; overflow:visible }
.bike .ln { fill:none; stroke:#C9CED3; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; transition:stroke .3s }
.bike .thin { stroke-width:1.2; stroke:#6F767E }
.bike .grid line { stroke:#262A2F; stroke-width:1 }
.bike .tube { fill:none; stroke:#C9CED3; stroke-width:16; stroke-linecap:round; transition:stroke .3s }
.bike .tube-in { fill:none; stroke:var(--char); stroke-width:11; stroke-linecap:round }
.bike .hot { stroke:var(--red) }
.bike .thin.hot { stroke:var(--red) }
.diagram-tag { text-align:center; margin-top:6px; font:500 12px 'JetBrains Mono', monospace; letter-spacing:.06em; color:var(--muted); min-height:20px }
.parts { margin:var(--s3) 0 var(--s2); border-top:1px solid var(--rule); max-width:30em }
.parts button { width:100%; display:flex; align-items:center; gap:12px; min-height:48px; padding:0; background:transparent; border:0; border-bottom:1px solid var(--rule); color:var(--ink2); font:inherit; font-size:18px; font-weight:600; text-align:left; cursor:pointer; transition:color .2s }
.parts button::before { content:""; width:10px; height:10px; border-radius:50%; border:2px solid #8B9097; flex:none; transition:background .2s, border-color .2s }
.parts button:hover, .parts button[aria-pressed=true] { color:var(--ink) }
.parts button[aria-pressed=true]::before { background:var(--red); border-color:var(--red) }
.svc-a .brands { font-size:14px; margin-top:var(--s2); color:var(--ink2) }
.brands b { color:var(--ink); font-weight:600; overflow-wrap:anywhere }

/* portfolio: dark magazine spread, 12 columns, deliberately uneven. Photos shown at or under their real width. */
#work { padding-bottom:calc(var(--sec) + var(--s3)) }
.gallery { display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:var(--s4); row-gap:var(--s5); align-items:start }
.gallery figure { display:flex; flex-direction:column; gap:12px; min-width:0 }
.gallery img { width:100%; height:auto; object-fit:cover; border-radius:var(--r); background:var(--char2) }
.gallery figcaption { color:var(--muted); font-size:14px }
.gallery figcaption b { display:block; color:var(--fg); font-size:19px; font-stretch:90%; font-weight:800; margin-bottom:2px }
.g-evh { grid-column:1 / span 5 }
.g-evh img { aspect-ratio:536/760; object-position:50% 40% }
.g-faces { grid-column:6 / span 7; margin-top:var(--s5) }
.g-faces img { aspect-ratio:1 }
.g-prism { grid-column:1 / span 7 }
.g-prism img { aspect-ratio:1 }
.g-lever { grid-column:8 / span 5; margin-top:var(--s5) }
.g-lever img { aspect-ratio:528/740; object-position:50% 40% }
.g-galaxy { grid-column:1 / span 4 }
.g-galaxy img { aspect-ratio:3/4; object-position:50% 40% }
.g-ride { grid-column:5 / span 7; margin-top:var(--s5) }
.g-ride img { aspect-ratio:4/3; object-position:55% 60% }
.g-cervelo { grid-column:8 / span 5 }
.g-cervelo img { aspect-ratio:4/5; object-position:50% 50% }
.ig { display:flex; flex-direction:column; gap:4px; text-decoration:none; padding:var(--s3) 0; border-top:1px solid var(--line); color:var(--muted); min-height:44px }
.g-ig { grid-column:1 / span 6; align-self:end }
.ig b { font-size:clamp(24px, 3vw, 40px); font-stretch:85%; color:var(--fg); overflow-wrap:anywhere }
.ig:hover b { color:var(--red-text) }

/* crew: editorial pair of photos, the tee quote as type, three plain facts */
.crew-pics { display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:var(--s4); align-items:end }
.c-team { grid-column:1 / span 8 }
.c-stand { grid-column:9 / span 4 }
.crew-pics picture { display:block; overflow:hidden; border-radius:var(--r) }
.c-team img { transform:scale(1.03); transform-origin:0 50% }
.crew-pics img { width:100%; height:auto; object-fit:cover; border-radius:var(--r) }
.c-team img { aspect-ratio:1 }
.c-stand img { aspect-ratio:3/4; object-position:50% 40% }
.crew-pics figcaption { margin-top:12px; font-size:14px; color:var(--ink2) }
.crew-pics figcaption a { display:inline-flex; align-items:center; min-height:44px; font-weight:600; color:var(--ink) }
.crew-text { display:grid; grid-template-columns:5fr 7fr; gap:var(--s5); margin-top:var(--sec); align-items:start }
.tee-w { font-size:19px; font-weight:800; margin-bottom:var(--s2) }
.tee-w span, .tee-w i { font-weight:400; font-style:normal; color:var(--ink2); font-size:16px }
.tee ol { counter-reset:t; display:grid; gap:4px }
.tee li { counter-increment:t; display:flex; gap:12px; font-size:clamp(24px, 2.6vw, 34px); font-weight:800; font-stretch:82%; line-height:1.15 }
.tee li::before { content:counter(t) "."; color:var(--ink2); font-weight:400; min-width:1.2em }
.tee s { text-decoration:none; background:linear-gradient(var(--red), var(--red)) 0 55% / 100% 4px no-repeat; transform-origin:left; display:inline-block; transform:rotate(-1.5deg); padding-right:4px }
.tee-fix { margin-top:var(--s2); font-size:clamp(24px, 2.6vw, 34px); font-weight:800; font-stretch:82%; color:var(--red-dark); line-height:1.15 }
.tee-fix::before { content:"→ " }
.facts { display:grid; border-top:1px solid var(--rule) }
.facts li { display:grid; gap:4px; padding:var(--s3) 0; border-bottom:1px solid var(--rule) }
.facts b { font-size:19px }
.facts span { color:var(--ink2); max-width:32em }

/* pricing: a plain sequence, no table, no prices */
.price-grid { display:grid; grid-template-columns:5fr 6fr; gap:var(--s5); align-items:start }
.steps { counter-reset:s; border-top:1px solid var(--rule); margin-bottom:var(--s3) }
.steps li { counter-increment:s; display:flex; align-items:baseline; gap:var(--s3); padding:var(--s2) 0; border-bottom:1px solid var(--rule); font-size:clamp(20px, 2vw, 26px); font-weight:600; line-height:1.3 }
.steps li::before { content:counter(s); color:var(--red-dark); font-weight:800; min-width:1ch }
.price-grid .note { margin-bottom:var(--s4); max-width:30em }

/* booking: a conversation on paper */
.book-grid { display:grid; grid-template-columns:5fr 6fr; gap:var(--s5); align-items:start }
.book-grid h2 { margin-bottom:var(--s3) }
.book-grid > div { position:sticky; top:104px }
.book-grid .lede { max-width:20em }
#card { display:grid; gap:10px }
fieldset { border:0; margin:0; padding:0; min-width:0 }
legend, .fl { font-weight:600; font-size:16px; padding:0; margin:var(--s2) 0 6px; display:block }
legend { margin-top:0 }
.opts { display:flex; flex-wrap:wrap; gap:8px }
.opts label { position:relative; display:inline-flex; align-items:center; min-height:48px; padding:0 20px; border:1px solid #BDB8AC; cursor:pointer; font-weight:600; font-size:16px; transition:background .2s, border-color .2s, color .2s; user-select:none }
.opts label:hover { border-color:var(--ink) }
.opts input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer }
.opts label:has(input:checked) { background:var(--ink); color:#fff; border-color:var(--ink) }
.opts label:has(input:focus-visible) { outline:2px solid var(--red-dark); outline-offset:3px }
.field { width:100%; min-height:52px; padding:12px 14px; font:inherit; font-size:16px; color:var(--ink); background:#fff; border:1px solid #BDB8AC; border-radius:var(--r); resize:vertical }
.field::placeholder { color:#757066 }
.field:focus { outline:2px solid var(--red-dark); outline-offset:1px }
#card .btn { margin-top:var(--s2) }
#card .hint { text-align:center; margin-top:4px }

/* visit */
.visit-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:var(--s5); align-items:stretch }
.visit-grid h2 { margin-bottom:var(--s3) }
.addr { font-style:normal; font-size:20px; line-height:1.55; margin-bottom:var(--s2) }
.visit-grid .note { margin-bottom:var(--s3) }
.map { min-height:400px; border-radius:var(--r); overflow:hidden; background:var(--char2) }
.map iframe { width:100%; height:100%; min-height:400px; border:0; filter:grayscale(.85) contrast(1.05) }

/* footer */
footer { background:var(--char); border-top:1px solid var(--line); padding:var(--s5) 0 var(--s4); font-size:14px; color:var(--muted) }
.foot { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:var(--s4); align-items:start }
.foot-brand { display:flex; align-items:center; gap:16px; color:var(--fg) }
.foot-brand b { font-size:19px }
.foot-brand p { max-width:20em }
footer nav, .foot-links { display:grid }
footer nav a, .foot-links a { display:flex; align-items:center; gap:16px; min-height:44px; text-decoration:none; color:var(--fg) }
.foot-links a span:first-child { flex:none; width:84px; color:var(--muted) }
.foot-links b { font-weight:600; overflow-wrap:anywhere }
footer nav a:hover, .foot-links a:hover { text-decoration:underline }
.tri { grid-column:1 / -1; justify-self:start; position:relative; margin:var(--s4) 0 var(--s2); padding-top:44px; font-weight:800; font-stretch:100%; line-height:1; letter-spacing:.06em; color:var(--fg); font-size:clamp(34px, 6vw, 72px); transform:rotate(-3deg); transform-origin:left bottom }
.tri .try { position:absolute; left:.35em; top:-14px; color:var(--red); font-size:.8em; letter-spacing:.1em; transform:rotate(-4deg) }
.tri .x { position:relative; display:inline-block }
.tri .x svg { position:absolute; inset:-4% -6%; width:112%; height:108%; overflow:visible }
.tri .x path { fill:none; stroke:var(--red); stroke-width:5; stroke-linecap:round; vector-effect:non-scaling-stroke }
.fine { grid-column:1 / -1; padding-top:var(--s3); border-top:1px solid var(--line) }

/* motion: one gentle reveal, nothing else */
.motion .reveal { opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease) }
.motion .reveal.in { opacity:1; transform:none }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto } * { animation:none !important; transition:none !important } }

/* tablet: own composition, copy under a wide photo, two-column services */
@media (max-width:1000px) {
  :root { --sec:80px }
  .hero { grid-template-columns:1fr; min-height:0 }
  .hero-img { order:-1; aspect-ratio:16/10 }
  .hero-img img { object-position:70% 55% }
  .hero-copy { padding:var(--s4) 20px var(--s5) max(20px, env(safe-area-inset-left)) }
  .hero-copy h1 { max-width:9em }
  .sec-h { margin-bottom:var(--s4) }
  .svc-a, .svc-b { grid-template-columns:1fr 1fr; gap:var(--s4) }
  .svc-b .svc-body { padding-top:0 }
  .svc-c { grid-template-columns:1fr 1fr; gap:var(--s4) }
  .svc + .svc { margin-top:var(--s5) }
  .gallery { column-gap:var(--s3); row-gap:var(--s4) }
  .g-evh { grid-column:1 / span 6 }
  .g-faces { grid-column:7 / span 6; margin-top:var(--s5) }
  .g-prism { grid-column:7 / span 6; margin-top:0; order:2 }
  .g-lever { grid-column:1 / span 6; margin-top:0; order:1 }
  .g-galaxy { grid-column:1 / span 5; order:3 }
  .g-ride { grid-column:6 / span 7; margin-top:var(--s5); order:3 }
  .g-cervelo { grid-column:1 / span 6; order:4 }
  .g-cervelo img { aspect-ratio:4/5 }
  .g-ig { order:5; grid-column:7 / span 6 }
  .crew-pics { gap:var(--s3) }
  .crew-text { grid-template-columns:1fr; gap:var(--s4); margin-top:var(--s5) }
  .price-grid, .book-grid, .visit-grid { grid-template-columns:1fr; gap:var(--s3) }
  .book-grid { gap:var(--s4) }
  .book-grid > div { position:static }
  .map, .map iframe { min-height:320px }
  .foot { grid-template-columns:1fr 1fr }
  .foot-brand { grid-column:1 / -1 }

  /* header: logo, language, book, menu */
  .bar { gap:12px; min-height:68px }
  .bar-end { margin-left:auto; gap:8px }
  .bar-end .btn { min-height:44px; padding:0 16px; font-size:15px }
  .burger { display:flex }
  nav#nav { display:none; position:absolute; left:0; right:0; top:100%; margin:0; flex-direction:column; gap:0; background:var(--paper); border-bottom:1px solid var(--rule); padding:8px max(20px, env(safe-area-inset-left)) 16px }
  .menu-open nav#nav { display:flex }
  nav#nav a { min-height:52px; font-size:19px; color:var(--ink); border-bottom:1px solid var(--rule); border-radius:0; padding:0 }
  nav#nav a:last-child { border-bottom:0 }
}
/* phone: single column, images sized for thumbs */
@media (max-width:700px) {
  :root { --sec:64px }
  h1 { font-size:48px }
  .hero-img { aspect-ratio:1 }
  .hero-img img { object-position:74% 55% }
  .hero-copy { gap:20px; padding-top:var(--s3); padding-bottom:var(--s4) }
  .hero-copy .row { width:100%; flex-direction:column }
  .hero-copy .row .btn { width:100% }
  .svc-a, .svc-b, .svc-c { grid-template-columns:1fr }
  .svc-b .ba { max-width:260px; margin-top:var(--s4) }
  .svc-b .ba img { aspect-ratio:1 }
  .svc-c figure { order:-1 }
  .svc h3, .svc-b h3, .svc-c h3 { font-size:38px }
  .svc-body > p { font-size:17px }
  .gallery { column-gap:var(--s2); row-gap:var(--s4) }
  .g-evh img, .g-lever img { aspect-ratio:4/5 }
  .gallery figure, .g-ig { grid-column:1 / -1; margin-top:0 }
  .g-galaxy, .g-cervelo { grid-column:span 6 !important }
  .g-evh { order:0 } .g-faces { order:1 } .g-prism { order:2 } .g-lever { order:3 } .g-ride { order:4 } .g-galaxy { order:5 } .g-cervelo { order:6 } .g-ig { order:7; grid-column:1 / -1 }
  .g-galaxy img, .g-cervelo img { aspect-ratio:3/4 }
  .crew-pics { gap:var(--s2) }
  .c-team { grid-column:1 / -1 }
  .c-stand { grid-column:3 / span 8 }
  .tee li { font-size:26px }
  .lang { min-width:44px; padding:0 10px }
  .bar-end { gap:6px }
  .bar-end .btn { padding:0 12px }
  .opts label { padding:0 16px }
  .foot { grid-template-columns:1fr; gap:var(--s2) }
  footer nav { grid-template-columns:1fr 1fr }
  .visit-grid .row { flex-direction:column }
  .visit-grid .row .btn { width:100% }
}
