/* Factory Roots — site.css */
:root{
  --canvas: oklch(0.145 0.012 55);
  --surface: oklch(0.185 0.014 52);
  --elevated: oklch(0.225 0.015 50);
  --hairline: color-mix(in oklch, oklch(0.58 0.01 55) 38%, transparent);
  --text: oklch(0.945 0.008 80);
  --text-2: oklch(0.78 0.012 70);
  --text-3: oklch(0.68 0.012 65);
  --brass: #C9A86A;
  --brass-h: #D8BC86;
  --brass-s: color-mix(in srgb, #C9A86A 18%, transparent);
  --on-brass: #14110E;
  --steel: oklch(0.82 0.018 230);
  --danger: oklch(0.68 0.16 25);
  --ok: oklch(0.72 0.12 145);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  color-scheme: dark;
  font-synthesis: none;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  background:var(--canvas);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,picture,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--brass-h)}
a.btn:hover{color:inherit}
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus-visible{color:var(--on-brass)}
a.btn-ghost:hover{color:var(--text)}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{text-wrap:balance;line-height:1.15;font-weight:600;letter-spacing:-0.02em;margin:0}
p{text-wrap:pretty;margin:0}
.num{font-variant-numeric:tabular-nums}

.wrap{width:min(var(--max), 100% - var(--pad)*2); margin-inline:auto}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--brass);
}
.eyebrow::before{
  content:""; width:16px; height:1px; background:var(--brass); opacity:.7;
}
.lead{font-size:clamp(15px, 1.4vw, 17px); color:var(--text-2); line-height:1.65; max-width:38em}
.section{padding:clamp(64px,10vw,112px) 0}
.section-head{display:grid; gap:16px; max-width:40em; margin-bottom:48px}
.section-head h2{font-size:clamp(28px, 3.6vw, 40px)}

/* Nav */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklch, var(--canvas) 82%, transparent);
  border-bottom:1px solid var(--hairline);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:64px; gap:24px;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text)}
.brand:hover{color:var(--text)}
.brand img{width:28px; height:28px; border-radius:6px}
.brand span{font-weight:600; letter-spacing:-0.01em; font-size:15px}
.brand em{font-style:normal; color:var(--text-3); font-weight:500; margin-left:2px}
.nav-links{display:flex; align-items:center; gap:4px}
.nav-links a{
  text-decoration:none; color:var(--text-2);
  padding:8px 12px; border-radius:var(--radius-sm); font-size:14px; font-weight:500;
}
.nav-links a:hover{color:var(--text); background:var(--elevated)}
.nav-cta{margin-left:8px}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible{
  color:var(--on-brass) !important;
  background:var(--brass);
  font-weight:600;
}
.nav-links a.btn-primary:hover{background:var(--brass-h); color:var(--on-brass) !important}
.nav-links a.btn-ghost:hover{color:var(--text)}

.nav-toggle{
  display:none; width:44px; height:44px; border:1px solid var(--hairline);
  background:var(--surface); border-radius:var(--radius-sm); color:var(--text);
  cursor:pointer;
}
.nav-toggle span{display:block; width:16px; height:1.5px; background:currentColor; margin:4px auto}
@media (max-width:820px){
  .nav-toggle{display:inline-grid; place-items:center}
  .nav-links{
    display:none; position:absolute; inset:64px var(--pad) auto; 
    flex-direction:column; align-items:stretch;
    background:var(--surface); border:1px solid var(--hairline);
    border-radius:var(--radius); padding:8px; gap:2px;
    box-shadow:0 24px 48px oklch(0 0 0 / .4);
  }
  .nav-links.open{display:flex}
  .nav-cta{margin-left:0; margin-top:4px}
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:0 20px; border-radius:999px;
  font-size:14px; font-weight:600; letter-spacing:-0.01em;
  border:1px solid transparent; cursor:pointer; text-decoration:none;
  transition: transform 180ms var(--ease), background 180ms var(--ease-soft), border-color 180ms, color 180ms;
}
.btn:active{transform:scale(.98)}
.btn:focus-visible{outline:2px solid var(--brass); outline-offset:3px}
.btn-primary{
  background:var(--brass); color:var(--on-brass);
  font-weight:600; -webkit-font-smoothing:antialiased;
}
.btn-primary:hover{background:var(--brass-h); color:var(--on-brass)}
.btn-primary:focus-visible{color:var(--on-brass); outline:2px solid var(--brass-h); outline-offset:3px}
.btn-primary:disabled, .btn-primary[disabled]{color:var(--on-brass); opacity:.55}
.btn-ghost{
  background:transparent; color:var(--text);
  border-color:color-mix(in srgb, var(--text) 28%, transparent);
}
.btn-ghost:hover{
  background:var(--elevated);
  border-color:color-mix(in srgb, var(--text) 45%, transparent);
  color:var(--text);
}
.btn-ghost:focus-visible{outline:2px solid var(--brass); outline-offset:3px; color:var(--text)}
.btn-block{width:100%}

/* Hero */
.hero{
  position:relative; overflow:hidden;
  padding:clamp(48px, 8vw, 88px) 0 clamp(64px, 10vw, 120px);
  border-bottom:1px solid var(--hairline);
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 55% 45% at 78% 28%, color-mix(in srgb, var(--brass) 7%, transparent), transparent 62%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:clamp(32px, 5vw, 64px);
  align-items:center;
}
.hero-copy{display:grid; gap:24px}
.hero h1{
  font-size:clamp(36px, 5.2vw, 56px);
  letter-spacing:-0.03em; font-weight:600;
}
.hero h1 .mute{color:var(--text-2); font-weight:500}
.hero-actions{display:flex; flex-wrap:wrap; gap:12px}
.hero-meta{
  display:flex; flex-wrap:wrap; gap:20px 28px;
  padding-top:8px; border-top:1px solid var(--hairline); margin-top:8px;
}
.hero-meta div{display:grid; gap:2px}
.hero-meta strong{font-size:14px; font-weight:600}
.hero-meta span{font-size:13px; color:var(--text-3)}
.hero-stage{
  position:relative;
  aspect-ratio: 1 / 1.02;
  border-radius:var(--radius-lg);
  background:#F4F2EE;
  border:1px solid var(--hairline);
  overflow:hidden;
}
.hero-stage picture, .hero-stage img{
  width:100%; height:100%; object-fit:contain; object-position:center; padding:1%; box-sizing:border-box;
  background:#F4F2EE;
}
.hero-float{
  position:absolute; right:16px; bottom:16px;
  width:min(42%, 200px);
  border-radius:var(--radius);
  border:1px solid var(--hairline);
  background:#F4F2EE;
  overflow:hidden;
  box-shadow:0 16px 40px oklch(0 0 0 / .45);
}
html.js-reveal .hero-float{
  transform: translateY(8px); opacity:0;
  animation: settle 1s var(--ease) .35s forwards;
}
.hero-float img{width:100%; height:auto; display:block; aspect-ratio:1; object-fit:contain; background:#f4f2ee}
@keyframes settle{
  to{transform:none; opacity:1}
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:40px}
  .hero-stage{aspect-ratio:4/3; max-width:560px}
}

/* Reveal is progressive enhancement — content visible without JS */
html.js-reveal .hero-copy > *{
  opacity:0; transform:translateY(8px); filter:blur(2px);
  animation: rise .9s var(--ease) forwards;
}
html.js-reveal .hero-copy > *:nth-child(1){animation-delay:.05s}
html.js-reveal .hero-copy > *:nth-child(2){animation-delay:.12s}
html.js-reveal .hero-copy > *:nth-child(3){animation-delay:.18s}
html.js-reveal .hero-copy > *:nth-child(4){animation-delay:.24s}
html.js-reveal .hero-copy > *:nth-child(5){animation-delay:.30s}
@keyframes rise{
  to{opacity:1; transform:none; filter:none}
}
@media (prefers-reduced-motion: reduce){
  html.js-reveal .hero-copy > *, html.js-reveal .hero-float{opacity:1; transform:none; filter:none; animation:none}
}

/* How it works */
.steps{
  display:grid; grid-template-columns:repeat(5,1fr); gap:1px;
  background:var(--hairline);
  border:1px solid var(--hairline);
  border-radius:var(--radius-lg); overflow:hidden;
}
.step{
  background:var(--surface); padding:28px 24px; display:grid; gap:10px; align-content:start;
}
.step-label{
  font-size:12px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--brass);
}
.step h3{font-size:16px; font-weight:600; letter-spacing:-0.01em}
.step p{font-size:15px; color:var(--text-2); line-height:1.65}
@media (max-width:960px){
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .steps{grid-template-columns:1fr}
}

/* Why Yangjiang */
.why{
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start;
}
.why-points{display:grid; gap:0}
.why-point{
  display:grid; gap:6px; padding:20px 0;
  border-top:1px solid var(--hairline);
}
.why-point:last-child{border-bottom:1px solid var(--hairline)}
.why-point h3{font-size:16px; font-weight:600}
.why-point p{font-size:15px; color:var(--text-2); line-height:1.55}
@media (max-width:640px){
  .why-point p{
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    overflow:hidden;
  }
}
.why-panel{
  background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--radius-lg); padding:32px; display:grid; gap:20px;
}
.why-panel blockquote{
  margin:0; font-size:20px; line-height:1.45; font-weight:500; letter-spacing:-0.015em;
}
.why-panel cite{font-style:normal; font-size:13px; color:var(--text-3)}
@media (max-width:820px){
  .why{grid-template-columns:1fr; gap:32px}
}

/* Categories / products */
.cat-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
.cat-card{
  display:grid; gap:0; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--radius); overflow:hidden;
  transition: border-color 200ms, transform 200ms var(--ease);
}
.cat-card:hover{border-color:color-mix(in oklch, var(--brass) 40%, var(--hairline)); transform:translateY(-2px); color:inherit}
.cat-card .thumb{
  aspect-ratio:1; background:#f4f2ee; overflow:hidden;
  display:grid; place-items:center;
}
.cat-card .thumb img{
  width:100%; height:100%; max-width:none;
  object-fit:contain; object-position:center; display:block;
  opacity:1; visibility:visible;
}
.cat-card .body{padding:16px 16px 18px; display:grid; gap:4px}
.cat-card h3{font-size:15px; font-weight:600}
.cat-card p{font-size:13px; color:var(--text-3)}
@media (max-width:900px){.cat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.cat-grid{grid-template-columns:1fr}}

.product-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.product{
  background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--radius); overflow:hidden; display:grid;
}
.product .thumb{aspect-ratio:1; background:#f3f1ed; position:relative; overflow:hidden}
.product .thumb img{
  position:absolute; inset:0; width:100%; height:100%;
  max-width:none; object-fit:contain; display:block;
}
.product .body{padding:16px; display:grid; gap:4px}
.product h3{font-size:15px; font-weight:600}
.product p{font-size:13px; color:var(--text-3)}
.filters{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px}
.chip{
  min-height:36px; padding:0 14px; border-radius:999px;
  border:1px solid var(--hairline); background:transparent;
  color:var(--text-2); font-size:13px; font-weight:500; cursor:pointer;
}
.chip:hover,.chip[aria-pressed="true"]{
  background:var(--brass-s); border-color:color-mix(in oklch, var(--brass) 50%, transparent); color:var(--brass-h);
}
.chip:focus-visible{outline:2px solid var(--brass); outline-offset:2px}
@media (max-width:900px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.product-grid{grid-template-columns:1fr}}

/* OEM */
.oem{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
  background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--radius-lg); padding:clamp(28px,4vw,48px); overflow:hidden;
}
.oem-copy{display:grid; gap:20px}
.oem-list{display:grid; gap:10px; margin:0; padding:0; list-style:none}
.oem-list li{
  display:flex; gap:12px; align-items:flex-start;
  font-size:14.5px; color:var(--text-2);
}
.oem-list li::before{
  content:""; flex:none; width:6px; height:6px; margin-top:8px;
  border-radius:50%; background:var(--brass);
}
.oem-visual{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--hairline);
  background:#eee;
}
.oem-visual img{width:100%; height:100%; object-fit:contain; aspect-ratio:4/3; background:#F4F2EE}
@media (max-width:820px){.oem{grid-template-columns:1fr}}

/* RFQ form */
.rfq{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:48px; align-items:start;
}
.form{
  background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--radius-lg); padding:clamp(24px,3vw,32px);
  display:grid; gap:16px;
}
.field{display:grid; gap:6px}
.field label{font-size:13px; font-weight:500; color:var(--text-2)}
.field .req{color:var(--brass)}
.field input,.field select,.field textarea{
  min-height:44px; padding:10px 14px;
  background:var(--canvas); border:1px solid var(--hairline);
  border-radius:var(--radius-sm); color:var(--text);
  transition: border-color 150ms, box-shadow 150ms;
}
.field textarea{min-height:120px; resize:vertical; padding-top:12px}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:color-mix(in oklch, var(--brass) 55%, var(--hairline));
  box-shadow:0 0 0 3px var(--brass-s);
}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{
  border-color:var(--danger);
}
.field-error{font-size:12px; color:var(--danger); min-height:1em}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:560px){.form-row{grid-template-columns:1fr}}
.form-note{font-size:12.5px; color:var(--text-3)}
.form-status{
  display:none; padding:12px 14px; border-radius:var(--radius-sm);
  font-size:14px; line-height:1.45;
}
.form-status.show{display:block}
.form-status.ok{background:oklch(0.72 0.12 145 / 0.12); color:var(--ok); border:1px solid oklch(0.72 0.12 145 / 0.3)}
.form-status.err{background:oklch(0.68 0.16 25 / 0.12); color:var(--danger); border:1px solid oklch(0.68 0.16 25 / 0.3)}
.btn[disabled]{opacity:.55; cursor:not-allowed}
@media (max-width:900px){.rfq{grid-template-columns:1fr; gap:32px}}

/* Catalog gate modal */
.modal-backdrop{
  position:fixed; inset:0; z-index:100;
  background:oklch(0.1 0.01 55 / 0.72); backdrop-filter:blur(6px);
  display:none; align-items:center; justify-content:center; padding:24px;
}
.modal-backdrop.open{display:flex}
.modal{
  width:min(440px,100%); background:var(--surface);
  border:1px solid var(--hairline); border-radius:var(--radius-lg);
  padding:28px; display:grid; gap:16px;
  box-shadow:0 24px 64px oklch(0 0 0 / .5);
}
.modal h3{font-size:20px}
.modal p{font-size:14px; color:var(--text-2)}
.modal-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:4px}

/* Footer */
.footer{
  border-top:1px solid var(--hairline); padding:48px 0 32px; margin-top:24px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; margin-bottom:40px;
}
.footer h4{font-size:13px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--text-3); margin-bottom:14px}
.footer a{display:block; text-decoration:none; color:var(--text-2); font-size:14px; padding:4px 0}
.footer a:hover{color:var(--brass-h)}
.footer-brand p{font-size:14px; color:var(--text-2); max-width:28em; margin-top:12px}
.footer-bottom{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  padding-top:24px; border-top:1px solid var(--hairline);
  font-size:13px; color:var(--text-3);
}
@media (max-width:720px){.footer-grid{grid-template-columns:1fr}}

/* Page hero (inner) */
.page-hero{padding:56px 0 32px; border-bottom:1px solid var(--hairline)}
.page-hero h1{font-size:clamp(32px,4vw,44px); margin:12px 0 16px}
.breadcrumbs{font-size:13px; color:var(--text-3)}
.breadcrumbs a{color:var(--text-2); text-decoration:none}
.breadcrumbs a:hover{color:var(--brass-h)}

/* Utility */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.form-success{
  display:grid; gap:12px; padding:20px; border-radius:var(--radius);
  background:color-mix(in oklch, var(--ok) 12%, var(--surface));
  border:1px solid color-mix(in oklch, var(--ok) 35%, var(--hairline));
}
.form-success h3{font-size:17px}
.form-success p{font-size:15px; color:var(--text-2)}
.catalog-unlocked{display:none}
.catalog-unlocked.show{display:grid; gap:10px; margin-top:8px}
