/* Shengjiang Ceramics — demo site. Palette: brand sky (logo) + cobalt underglaze on porcelain white */
:root {
  --night: #081430;
  --night2: #0d1d44;
  --cobalt: #1c3c8c;
  --cobalt2: #2c5cc5;
  --sky: #50bdec;
  --porcelain: #f4f1ea;
  --paper: #fbfaf7;
  --text: #13203f;
  --muted: #5a6582;
  --line: rgba(19, 32, 63, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--text); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cobalt2); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* demo ribbon + header */
.demo-bar { position: relative; z-index: 60; background: #000; color: #b9c4dc; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand img { height: 30px; width: auto; }
.menu { display: flex; align-items: center; gap: 30px; font-size: 14px; letter-spacing: .04em; }
.menu a { text-decoration: none; padding: 6px 0; color: rgba(255,255,255,.82); transition: color .2s; }
.menu a:hover { color: #fff; }
.menu .lang { border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 6px 14px; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 99px; font: 600 14px/1 var(--sans); letter-spacing: .06em; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--sky); color: var(--night); }
.btn-primary:hover { background: #7fd0f2; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--cobalt); }

/* hero */
.hero { position: relative; min-height: calc(100svh - 28px); margin-top: -84px; padding-top: 84px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(1100px 700px at 72% 46%, #173170 0%, var(--night2) 45%, var(--night) 100%); }
.hero-copy { position: relative; z-index: 3; max-width: 600px; padding: 40px 0 96px; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); margin: 20px 0 22px; }
.hero h1 em { font-style: italic; color: #cfe6ff; }
.hero .lead { font-size: 18px; color: rgba(225,233,250,.82); max-width: 470px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.forms { position: absolute; z-index: 3; right: max(24px, calc(50% - 600px)); bottom: 34px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.forms button { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 8px 14px; font: 500 12px/1 var(--sans); letter-spacing: .08em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.forms button.on, .forms button:hover { background: rgba(80,189,236,.18); color: #fff; border-color: rgba(80,189,236,.7); }
.hint { position: absolute; z-index: 3; left: max(24px, calc(50% - 600px)); bottom: 38px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.hero-wheel { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: pan-y; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 46px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(38px, 4.4vw, 60px)/1 var(--serif); color: var(--cobalt); }
.stat b i { font-style: normal; font-size: .5em; margin-left: 2px; color: var(--cobalt2); }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

section { padding: 120px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 54px); margin-top: 18px; }
.sec-head p { color: var(--muted); margin: 0; max-width: 520px; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.product figure { margin: 0; background: #fff; aspect-ratio: 1; overflow: hidden; }
.product img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.product:hover img { transform: scale(1.05); }
.product .cap { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.product .sku { font: 600 11px/1 var(--sans); letter-spacing: .16em; color: var(--cobalt2); }
.product h3 { font-size: 22px; margin: 10px 0 8px; }
.product p { margin: 0; font-size: 14px; color: var(--muted); }
@media (hover: hover) { .products:hover .product:not(:hover) img { filter: grayscale(.6) brightness(.8); } }

.families { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; padding: 0; list-style: none; }
.families li { border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; font-size: 14px; color: var(--muted); background: #fff; }

/* atelier */
.atelier { background: var(--night); color: #e7ecf8; }
.atelier .sec-head p { color: rgba(225,233,250,.7); }
.atelier .eyebrow { color: var(--sky); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: rgba(225,233,250,.82); margin: 0 0 18px; }
.about-text ul { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.about-text li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.about-text li span:first-child { color: rgba(225,233,250,.55); }
.about-text li span:last-child { text-align: right; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photos figure { margin: 0; border-radius: 16px; overflow: hidden; background: #111c38; position: relative; }
.photos figure:first-child { grid-column: 1 / -1; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(8,20,48,.72); padding: 6px 10px; border-radius: 6px; }

/* quality */
.quality-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 60px; align-items: start; }
.cert { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cert img { border-radius: 8px; width: 100%; aspect-ratio: 8 / 9; object-fit: cover; object-position: top; }
.cert figcaption { font-size: 13px; color: var(--muted); padding: 14px 4px 2px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.specs > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.specs h3 { font-size: 20px; margin-bottom: 8px; }
.specs p { margin: 0; color: var(--muted); font-size: 14px; }

/* process */
.process { background: var(--porcelain); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 30px 22px 0 0; position: relative; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 400 38px/1 var(--serif); color: var(--cobalt2); margin-bottom: 18px; }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt2); }
.steps { padding: 0; margin: 0; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-grid details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-grid summary { cursor: pointer; list-style: none; font: 500 19px/1.35 var(--serif); display: flex; justify-content: space-between; gap: 20px; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; color: var(--cobalt2); font-family: var(--sans); transition: transform .3s; }
.faq-grid details[open] summary::after { transform: rotate(45deg); }
.faq-grid details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* contact */
.contact { background: var(--night); color: #e7ecf8; }
.contact .eyebrow { color: var(--sky); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact h2 { font-size: clamp(32px, 4vw, 54px); margin: 18px 0 22px; }
.contact-info p { color: rgba(225,233,250,.75); }
.contact-info dl { margin: 34px 0 0; }
.contact-info dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(225,233,250,.5); margin-top: 20px; }
.contact-info dd { margin: 6px 0 0; font-size: 17px; }
.contact-info a { text-decoration: none; border-bottom: 1px solid rgba(80,189,236,.5); }
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 32px; }
.inquiry label { display: grid; gap: 8px; font-size: 13px; color: rgba(225,233,250,.7); }
.inquiry .full { grid-column: 1 / -1; }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; font: 15px var(--sans); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 13px 14px; }
.inquiry select option { color: #000; }
.inquiry textarea { min-height: 120px; resize: vertical; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--sky); }
.inquiry .btn { justify-self: start; }
.footer { background: #050d22; color: rgba(225,233,250,.55); font-size: 13px; padding: 34px 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .menu { position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 24px; background: rgba(8,20,48,.97); display: none; }
  .menu.open { display: flex; }
  .sec-head, .about-grid, .quality-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .products { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .faq-grid { grid-template-columns: 1fr; }
  section { padding: 84px 0; }
}
@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: 100svh; }
  .hero-copy { padding: 48vh 0 110px; }
  .hero h1 { font-size: 38px; margin: 16px 0 16px; }
  .hero .lead { font-size: 16px; margin-bottom: 26px; }
  .forms { left: 24px; right: 24px; bottom: 26px; justify-content: flex-start; }
  .hint { display: none; }
  .wrap { width: calc(100% - 40px); }
  .stat { padding: 30px 18px; }
  .specs, .inquiry { grid-template-columns: 1fr; }
  .inquiry { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* ===== Motion layer — active with html.motion (always set by site.js) ===== */
.stat b { font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 1300ms); }
.motion .hero .eyebrow { animation: fadeUp .8s 1.1s both; }
.motion .hero .lead { animation: fadeUp .9s 2s both; }
.motion .hero .cta-row { animation: fadeUp .9s 2.2s both; }
.motion .hero .forms, .motion .hero .hint { animation: fadeUp .9s 3.2s both; }

.hero { --mx: 70%; --my: 45%; }
.motion .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(80,189,236,.10), transparent 62%); mix-blend-mode: screen; animation: pulse 7s ease-in-out infinite; }

.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion [data-count] { transition: text-shadow .6s; }
.motion [data-count].counted { text-shadow: 0 0 26px rgba(80,189,236,.35); }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: italic 400 clamp(26px, 3.6vw, 46px)/1.1 var(--serif); color: transparent; -webkit-text-stroke: 1px #8b95ad; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:hover { color: var(--cobalt); -webkit-text-stroke-color: var(--cobalt); }
.marquee i { font-style: normal; color: var(--sky); font-size: 16px; }

.motion .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), border-color .3s, opacity .8s var(--ease); will-change: transform; }
.motion .tilt.reveal:not(.in) { transform: perspective(900px) translateY(28px); }
.motion .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(80,189,236,.16), transparent 60%); z-index: 2; }
.motion .tilt:hover::after { opacity: 1; }
.motion .product.tilt:hover, .motion .specs > div.tilt:hover { border-color: rgba(44,92,197,.45); }

.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s var(--ease); }
.menu a:not(.lang) { position: relative; }
.menu a:not(.lang)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sky); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu a:not(.lang):hover::after { transform: scaleX(1); }

.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(8,20,48,.94); box-shadow: 0 10px 30px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.motion .site-header.scrolled .nav { height: 64px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }

.product .cap::before { content: ""; display: block; width: 0; height: 2px; background: var(--cobalt2); margin-bottom: 14px; transition: width .4s var(--ease); }
.product:hover .cap::before { width: 44px; }

.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s var(--ease), transform 1s .12s var(--ease); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .photos figure.reveal img, .motion .cert.reveal img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), scale 1.8s var(--ease); }
.motion .photos figure.reveal.in img, .motion .cert.reveal.in img { clip-path: inset(0); scale: 1; }
@media (max-width: 960px) { .motion .site-header.scrolled .nav { height: 72px; } .marquee { padding: 16px 0; } }
