/* ==========================================================================
   JIAYA KNIVES - EDITORIAL SHOWROOM
   Ivory / ink / vermilion. High contrast, alternating light and dark sections.
   No external fonts, no third-party requests, no content hidden by motion.
   ========================================================================== */
:root {
  --paper:   #F5F2EA;
  --paper-2: #EDE9E0;
  --ink:     #14171A;
  --ink-2:   #1E2226;
  --red:     #D93B2B;
  --red-dk:  #B32E21;
  --white:   #FFFFFF;
  --dim:     #6B706C;
  --dim-lt:  #A9AEA8;
  --line:    rgba(20,23,26,.14);
  --line-lt: rgba(245,242,234,.16);
  --font:    system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI Black", system-ui, "Microsoft YaHei", sans-serif;
  --wrap:    1320px;
  --ease:    cubic-bezier(.22,.7,.3,1);
}
html[data-lang="zh"] { --display: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
::selection { background: var(--red); color: var(--white); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(calc(100% - 72px), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #FFF; padding: 10px 16px; font-weight: 700; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border: 1px solid transparent; font-size: 13px; font-weight: 750; letter-spacing: .05em; white-space: nowrap; transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 12px; }
.btn--red { background: var(--red); color: #FFF; }
.btn--red:hover { background: var(--red-dk); }
.btn--ghost { border-color: rgba(245,242,234,.4); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(245,242,234,.08); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #2C3236; }

/* ---- Top bar / header --------------------------------------------------- */
.topbar { background: var(--ink); color: var(--dim-lt); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 32px; }
.topbar p { padding: 6px 0; }
.topbar__right { letter-spacing: .1em; }
.topbar__right a { color: var(--paper); border-bottom: 1px solid rgba(245,242,234,.4); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(245,242,234,.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.header.is-scrolled { box-shadow: 0 10px 30px rgba(20,23,26,.12); }
.header__inner { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; }
.brand__mark svg { width: 23px; height: 23px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 16px; font-weight: 850; letter-spacing: .04em; }
.brand__text small { margin-top: 6px; font-size: 8px; font-weight: 800; letter-spacing: .22em; color: var(--dim); }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font-size: 11.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #4A4F4B; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right .28s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 30px; flex-shrink: 0; }
.lang-btn { min-width: 40px; padding: 5px 9px; border: 0; border-radius: 30px; background: transparent; font-size: 11px; font-weight: 800; color: var(--dim); }
.lang-btn.is-active { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero__grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(245,242,234,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245,242,234,.04) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.hero__watermark { position: absolute; bottom: -9%; left: 46%; transform: translateX(-50%); font-family: var(--display); font-size: 28vw; font-weight: 900; line-height: .8; letter-spacing: -.07em; white-space: nowrap; color: rgba(245,242,234,.035); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 30px; min-height: 680px; min-height: calc(100svh - 108px); padding-block: 58px 26px; }
.hero__copy { position: relative; z-index: 5; max-width: 720px; }
.hero h1 { margin-top: 24px; font-family: var(--display); font-weight: 900; font-size: clamp(3.6rem, 8vw, 8rem); line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .hero__accent { color: var(--red); font-size: .8em; white-space: nowrap; letter-spacing: -.055em; }
html[data-lang="zh"] .hero h1 { font-size: clamp(4.2rem, 8.6vw, 8rem); line-height: .98; letter-spacing: -.045em; }
html[data-lang="zh"] .hero h1 .hero__accent { font-size: 1em; }
.hero__lede { margin-top: 30px; max-width: 540px; font-size: 16px; line-height: 1.85; color: #C2C6C1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.hero__stats { display: flex; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line-lt); }
.hero__stats li { display: flex; flex-direction: column; gap: 2px; padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line-lt); }
.hero__stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__stats strong { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--paper); }
.hero__stats small { font-size: 9.5px; font-weight: 800; letter-spacing: .18em; color: var(--dim-lt); }

.hero__stage { position: relative; z-index: 2; height: 540px; }
.stage__badge { position: absolute; z-index: 6; top: 2%; right: 0; padding: 8px 15px; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; color: var(--ink); background: var(--red); }
.polaroid { position: absolute; margin: 0; padding: 10px 10px 30px; background: #FFF; box-shadow: 0 22px 48px rgba(0,0,0,.5); }
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid--a { z-index: 3; left: 0; top: 4%; width: 54%; transform: rotate(-7deg); animation: float-a 7s ease-in-out infinite; }
.polaroid--b { z-index: 4; right: 0; top: 25%; width: 50%; transform: rotate(6deg); animation: float-b 8.5s ease-in-out infinite; }
.polaroid--c { z-index: 2; left: 24%; bottom: 0; width: 46%; transform: rotate(-3deg); }
@keyframes float-a { 0%,100% { transform: rotate(-7deg) translateY(0) } 50% { transform: rotate(-7deg) translateY(-12px) } }
@keyframes float-b { 0%,100% { transform: rotate(6deg) translateY(0) } 50% { transform: rotate(6deg) translateY(14px) } }
.hero__foot { position: relative; display: flex; align-items: center; gap: 20px; padding-bottom: 26px; }
.hero__foot span:first-child { font-size: 9.5px; font-weight: 800; letter-spacing: .24em; color: var(--dim-lt); white-space: nowrap; }
.hero__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--red), transparent); }

/* ---- Marquee ------------------------------------------------------------ */
.marquee { overflow: hidden; background: var(--red); color: #FFF; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { padding: 14px 0; font-family: var(--display); font-size: 13px; font-weight: 900; letter-spacing: .22em; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---- Sections ----------------------------------------------------------- */
.section { position: relative; padding: clamp(82px, 9vw, 138px) 0; }
.section-head { max-width: 860px; margin-bottom: 54px; }
.section-head h2 { margin-top: 18px; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.section-lead { margin-top: 20px; max-width: 640px; font-size: 16px; line-height: 1.85; color: var(--dim); }

/* ---- Sets --------------------------------------------------------------- */
.sets { background: var(--paper); }
.sets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.set-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.set-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,23,26,.13); }
.set-card__media { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: var(--paper-2); }
.set-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.set-card:hover .set-card__media img { transform: scale(1.05); }
.set-card__num { position: absolute; z-index: 2; left: 18px; top: 14px; font-family: var(--display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1; letter-spacing: -.07em; color: rgba(20,23,26,.16); }
.set-card__pieces { position: absolute; z-index: 2; right: 16px; bottom: 14px; padding: 6px 12px; background: var(--red); color: #FFF; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.set-card__body { padding: 26px 26px 28px; border-top: 1px solid var(--line); }
.set-card__tag { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.set-card h3 { margin-top: 12px; font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 900; line-height: 1.05; letter-spacing: -.035em; }
.set-card p { margin-top: 12px; min-height: 52px; font-size: 14px; line-height: 1.7; color: var(--dim); }
.set-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.set-card__link:hover { color: var(--red); }

/* ---- Knives wall -------------------------------------------------------- */
.knives { background: var(--paper-2); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 9px 18px; border: 1px solid var(--line); background: transparent; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; color: var(--dim); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.knives-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.knife-card { display: flex; flex-direction: column; background: var(--paper-2); transition: background .25s var(--ease); }
.knife-card:hover { background: var(--white); }
.knife-card.is-hidden { display: none; }
.knife-card__media { position: relative; aspect-ratio: 1; overflow: hidden; }
.knife-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s var(--ease); }
.knife-card:hover .knife-card__media img { transform: scale(1.06); }
.knife-card__ref { position: absolute; z-index: 2; left: 14px; top: 12px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; color: var(--red); }
.knife-card__body { padding: 20px 20px 24px; border-top: 1px solid var(--line); }
.knife-card__tag { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.knife-card h3 { margin-top: 8px; font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-weight: 900; line-height: 1.1; letter-spacing: -.035em; word-break: break-word; }
.knife-card__view { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--red); }
.knife-card__view svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.knife-card:hover .knife-card__view svg { transform: translateX(4px); }
.filter-count { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--dim); }

/* ---- Story -------------------------------------------------------------- */
.story { background: var(--ink); color: var(--paper); }
.story .eyebrow { color: var(--red); }
.story .section-lead { color: var(--dim-lt); }
.story .section-head { max-width: 1000px; }
.story__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-lt); border: 1px solid var(--line-lt); }
.story-card { padding: 42px 32px 48px; background: var(--ink); }
.story-card__num { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: var(--red); }
.story-card h3 { margin-top: 30px; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.story-card:nth-child(2) h3 { color: var(--red); }
.story-card:nth-child(3) h3 { color: #C9BFA9; }
.story-card p { margin-top: 22px; max-width: 300px; font-size: 14.5px; line-height: 1.8; color: var(--dim-lt); }

/* ---- Enquire ------------------------------------------------------------ */
.enquire { background: var(--red); color: var(--ink); }
.enquire .eyebrow { color: var(--ink); }
.enquire__inner { text-align: center; }
.enquire h2 { margin-top: 22px; font-family: var(--display); font-weight: 900; font-size: clamp(4.6rem, 13vw, 12rem); line-height: .82; letter-spacing: -.065em; text-transform: uppercase; }
.enquire h2 span { display: block; }
html[data-lang="zh"] .enquire h2 { font-size: clamp(4.2rem, 11vw, 9.5rem); line-height: .98; letter-spacing: -.045em; }
.enquire__lead { max-width: 660px; margin: 32px auto 0; font-size: 16px; line-height: 1.85; color: rgba(20,23,26,.82); }
.enquire__mail { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.enquire__label { font-size: 10px; font-weight: 800; letter-spacing: .26em; }
.enquire__email { font-family: var(--display); font-size: clamp(1.7rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; word-break: break-all; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.enquire__email:hover { color: var(--white); border-bottom-color: var(--white); }
.enquire__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 38px; }
.enquire__aside { font-size: 12px; font-weight: 700; color: rgba(20,23,26,.75); }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--dim-lt); padding: 66px 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 48px; }
.footer .brand__mark { color: var(--paper); border-color: rgba(245,242,234,.5); }
.footer .brand__text strong { color: var(--paper); }
.footer .brand__text small { color: var(--dim-lt); }
.footer__brand p { margin-top: 20px; max-width: 320px; font-size: 13px; line-height: 1.8; }
.footer__nav { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer__nav-title { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .24em; color: var(--red); }
.footer__nav a { font-size: 13px; }
.footer__nav a:hover { color: var(--paper); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__email { font-size: 17px; font-weight: 750; color: var(--paper); border-bottom: 1px solid rgba(245,242,234,.4); }
.footer__contact p { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-lt); font-size: 11px; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; font-size: 18px; color: #FFF; background: var(--ink); border: 0; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1120px) {
  .header__inner { gap: 14px; } .nav { gap: 20px; } .header__cta { display: none; }
  .knives-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .wrap { width: min(calc(100% - 48px), var(--wrap)); }
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20,23,26,.14); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a::after { display: none; }
  .lang-switch { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 64px 20px; }
  .hero h1 { font-size: clamp(4rem, 13vw, 7.6rem); }
  .hero__stage { height: 400px; max-width: 540px; width: 100%; margin: 36px auto 0; }
  .sets-grid { grid-template-columns: 1fr 1fr; }
  .story__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  html { scroll-padding-top: 72px; }
  .topbar__right { display: none; }
  .header__inner { min-height: 64px; }
  .brand__mark { width: 33px; height: 33px; }
  .brand__text strong { font-size: 14px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  html[data-lang="zh"] .hero h1 { font-size: clamp(3.4rem, 14vw, 4.8rem); }
  .hero__lede { font-size: 15px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats li { padding-right: 18px; margin-right: 18px; }
  .hero__stats strong { font-size: 24px; }
  .hero__stats small { font-size: 8.5px; letter-spacing: .1em; }
  .hero__stage { height: 300px; margin-top: 26px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .sets-grid { grid-template-columns: 1fr; }
  .knives-grid { grid-template-columns: repeat(2, 1fr); }
  .knife-card__body { padding: 15px 14px 18px; }
  .knife-card h3 { font-size: 1.1rem; }
  .story-card { padding: 30px 24px 36px; }
  .story-card h3 { margin-top: 18px; }
  .enquire h2 { font-size: clamp(3.4rem, 16vw, 5.4rem); }
  html[data-lang="zh"] .enquire h2 { font-size: clamp(3.4rem, 15vw, 5rem); }
  .enquire__email { font-size: clamp(1.3rem, 6.2vw, 2rem); }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 40px; }
}
@media (max-width: 390px) { .knives-grid { grid-template-columns: 1fr 1fr; } .hero__stats li { padding-right: 12px; margin-right: 12px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
