/* jiahejapan.com — 家禾贸易集团 JIAHE Trading Group */
:root {
    --ink: #0e1a2b;
    --ink-2: #172a42;
    --red: #b3261e;
    --red-dark: #8f1c16;
    --gold: #b8955a;
    --gold-light: #e8d3a2;
    --paper: #f7f3ec;
    --line: #e4ddd0;
    --text: #1d2430;
    --muted: #5d6573;
    --white: #ffffff;
    --dark-color: #0e1a2b;
    --accent-color: #e8d3a2;
    --primary-color: #0e1a2b;
    --serif: "Noto Serif SC", "Songti SC", serif;
    --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --radius: 4px;
    --shadow: 0 18px 40px -24px rgba(14, 26, 43, .45);
    --transition: all .3s ease;
}
.lang-en {
    --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.75; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 600; }
.lang-en h1, .lang-en h2 { font-weight: 600; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.lang-en h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.2rem; }
.lang-en h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.9em; border-radius: var(--radius);
       font-weight: 500; letter-spacing: .04em; transition: var(--transition); border: 1px solid transparent; font-size: .98rem; cursor: pointer; font-family: var(--sans); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.btn-row.center { justify-content: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(14,26,43,.5); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo a { display: flex; align-items: center; gap: 12px; color: var(--primary-color); text-decoration: none; transition: opacity .3s; }
.logo a:hover { opacity: .8; }
.logo img { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: "Noto Serif SC", serif; font-size: 1.28rem; letter-spacing: .08em; color: var(--ink); }
.lang-en .logo-text strong { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; letter-spacing: .18em; }
.logo-text small { white-space: nowrap; font-size: .62rem; letter-spacing: .22em; color: var(--gold); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 11px; white-space: nowrap; color: var(--text); font-size: .94rem; position: relative; }
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.site-nav > ul > li > a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--red); }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; background: #fff; min-width: 190px; border: 1px solid var(--line);
       box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: var(--transition); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 7px 20px; color: var(--text); font-size: .92rem; }
.sub a:hover { background: var(--paper); color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { white-space: nowrap; font-size: .85rem; letter-spacing: .08em; color: var(--ink); border: 1px solid var(--line); padding: .45em .8em; border-radius: var(--radius); }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); }
.nav-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* hero */
.hero { position: relative; color: #fff; min-height: min(92vh, 880px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--ink); }
.hero-bg, .page-hero-bg, .cta-bg { position: absolute; inset: 0; }
.hero-bg img, .page-hero-bg img, .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,26,43,.92) 0%, rgba(14,26,43,.72) 45%, rgba(14,26,43,.25) 100%); }
.hero-inner { position: relative; padding-top: 80px; padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 760px; font-weight: 700; }
.lang-en .hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.hero .lead { max-width: 640px; font-size: 1.12rem; color: rgba(255,255,255,.86); }
.hero .lead strong { color: var(--gold-light); font-weight: 500; }
.eyebrow { font-size: .8rem; letter-spacing: .26em; color: var(--gold-light); text-transform: uppercase; margin-bottom: 1.4em; display: flex; align-items: center; gap: .7em; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.hero-stats { position: relative; padding-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(184,149,90,.5); }
.stat { padding: 26px 18px 6px 0; }
.stat-num { display: block; font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--gold-light); }
.stat-label { display: block; margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.75); letter-spacing: .04em; }
.section .stats, .section-paper .stats { border-top-color: var(--gold); }
.section .stat-num { color: var(--red); }
.section .stat-label { color: var(--muted); }

/* page hero */
.page-hero { position: relative; color: #fff; padding: 64px 0 72px; background: var(--ink); overflow: hidden; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,43,.94), rgba(14,26,43,.66)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 820px; font-size: clamp(1.9rem, 4vw, 3rem); }
.lang-en .page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lead { max-width: 680px; color: rgba(255,255,255,.84); font-size: 1.06rem; margin: 0; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.35); }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }

/* sections */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: rgba(255,255,255,.82); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.light p { color: rgba(255,255,255,.7); }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.row-head > div { max-width: 760px; }
.kicker { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 1em; display: flex; align-items: center; gap: .8em; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-ink .kicker { color: var(--gold-light); }

/* engines */
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.engine { display: block; background: #fff; border: 1px solid var(--line); color: var(--text); transition: var(--transition); }
.engine:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.engine-img { aspect-ratio: 16/9; overflow: hidden; }
.engine-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.engine:hover .engine-img img { transform: scale(1.04); }
.engine-body { padding: 32px 34px 36px; position: relative; }
.engine-no { font-family: "Cormorant Garamond", serif; font-size: 3rem; color: var(--gold); position: absolute; right: 30px; top: 12px; line-height: 1; }
.engine-body h3 { font-size: 1.45rem; padding-right: 50px; }
.engine-body p { color: var(--muted); }
.more { color: var(--red); font-weight: 500; letter-spacing: .04em; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card { background: #fff; border: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; transition: var(--transition); }
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--text); }
.cat-imgs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--line); aspect-ratio: 3/2; }
.cat-imgs img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cat-imgs img:first-child { grid-row: span 2; }
.cat-body { padding: 20px 22px 22px; }
.cat-body h3 { margin-bottom: .35em; }
.cat-body p { color: var(--muted); font-size: .9rem; margin-bottom: .8em; }
.cat-count { color: var(--red); font-size: .88rem; font-weight: 500; }

/* product cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.p-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: var(--transition); }
.p-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.p-img { aspect-ratio: 1; padding: 10px; border-bottom: 1px solid var(--line); }
.p-img img { width: 100%; height: 100%; object-fit: contain; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.p-brand { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 4px; }
.p-name { font-family: var(--sans); font-size: .9rem; font-weight: 500; line-height: 1.5; color: var(--text); margin: 0 0 8px; flex: 1;
          display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-jan { font-size: .72rem; color: #9aa0aa; margin: 0; letter-spacing: .04em; }
.p-card[hidden] { display: none; }

/* marquee */
.marquee { overflow: hidden; padding: 4px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll 80s linear infinite; }
.marquee-dup { display: contents; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .p-card { width: 210px; flex: none; }
@keyframes scroll { to { transform: translateX(calc(-50% - 9px)); } }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.why { background: var(--ink); padding: 36px 32px; }
.why-no { font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--gold); display: block; margin-bottom: 10px; }
.why p { margin: 0; color: rgba(255,255,255,.72); font-size: .95rem; }

/* brand wall */
.brand-wall { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 10px; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 92px; }
.bw-en { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.bw-zh { font-size: .78rem; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps-6 { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
.steps li { padding: 0 24px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: 22px; left: 54px; right: 12px; height: 1px; background: var(--gold); opacity: .5; }
.steps li:last-child::before { display: none; }
.step-no { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--red); color: var(--red); align-items: center; justify-content: center;
           font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 18px; background: #fff; }
.section-paper .step-no { background: var(--paper); }
.steps p { color: var(--muted); font-size: .94rem; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.reverse .split-img { order: -1; }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.split-text p { color: var(--muted); }
.section-ink .split-text p { color: rgba(255,255,255,.75); }
.split-text strong { color: var(--ink); }
.section-ink .split-text strong { color: var(--gold-light); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

.pillars, .svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-grid.four { grid-template-columns: repeat(4, 1fr); }
.pillar, .svc { background: #fff; border: 1px solid var(--line); padding: 32px 28px; border-top: 3px solid var(--red); }
.pillar p, .svc p { color: var(--muted); margin: 0; font-size: .95rem; }

.jp-card { background: var(--ink); color: rgba(255,255,255,.85); padding: 40px 38px; position: relative; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; line-height: 2; }
.jp-card::before { content: ""; position: absolute; top: 28px; right: 28px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); }
.jp-card-title { font-size: 1.3rem; color: var(--gold-light); margin-bottom: 1em; }
.jp-card p { font-size: .95rem; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tag-list a { display: inline-block; padding: .65em 1.4em; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.tag-list a:hover { border-color: var(--red); color: var(--red); }

/* catalog */
.cat-nav-bar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 20; }
.cat-nav { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: .45em 1em; color: var(--text); font-size: .9rem; border: 1px solid transparent; }
.cat-nav a small { color: var(--muted); }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-color: var(--ink); color: var(--ink); background: #fff; }
.cat-block { padding: 72px 0 24px; }
.cat-block:last-of-type { padding-bottom: 72px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.filter-bar input, .filter-bar select { padding: .7em 1em; border: 1px solid var(--line); font: inherit; font-size: .95rem; background: #fff; border-radius: var(--radius); min-width: 220px; }
.filter-bar input { flex: 1; max-width: 420px; }
.filter-count { color: var(--muted); font-size: .9rem; }
.p-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.inquiry-box { margin-top: 56px; padding: 36px 40px; background: var(--ink); color: rgba(255,255,255,.8); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.inquiry-box h3 { color: #fff; }
.inquiry-box p { margin: 0; }
.section-note { padding: 28px 0; border-top: 1px solid var(--line); }
.section-note p { font-size: .84rem; color: var(--muted); margin: 0; }

.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.brand-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.bi-name { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 0; }
.bi-name span { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 400; margin-left: .7em; }
.bi-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.bi-meta a { margin-right: .4em; }

.comp { margin-top: 24px; }
.comp-item { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; margin-bottom: 20px; }
.comp-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.comp-item p { margin: 0; font-size: .94rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; color: var(--red); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq summary h2 { font-size: 1.15rem; margin: 0; display: inline; }
.lang-en .faq summary h2 { font-size: 1.35rem; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* cta band */
.cta-band { position: relative; padding: 110px 0; color: #fff; overflow: hidden; background: var(--ink); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(14,26,43,.84); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }
.jp-line { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; color: var(--gold-light) !important; letter-spacing: .08em; font-size: .98rem; }

/* forms */
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-line { font-size: 1.15rem; line-height: 2; }
.form-title { font-size: 1.5rem; }
.contact-form { background: #fff; border: 1px solid var(--line); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
.form-grid .span-2 { grid-column: span 2; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 1rem; color: var(--text); padding: .75em .9em; border: 1px solid var(--line); border-radius: var(--radius); background: #fcfbf8; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.info-block { border-top: 3px solid var(--red); padding-top: 24px; }
.info-block p { font-size: 1.02rem; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.4); }
.nf { padding: 140px 0; }

/* footer */
footer { background: var(--dark-color); color: var(--white); padding: 4rem 0 1.4rem; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.4rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-section p { margin-bottom: .7em; font-size: .94rem; }
.foot-about { color: rgba(255,255,255,.62) !important; }
.footer-section a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: .9rem; }
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 1180px) {
    .nav-toggle { display: block; position: relative; }
    .site-nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100dvh - 76px); background: #fff; flex-direction: column; align-items: stretch;
                padding: 16px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease; gap: 16px; }
    .site-nav.open { transform: none; }
    .site-nav > ul { flex-direction: column; }
    .site-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .site-nav > ul > li > a::after { display: none; }
    .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; display: grid; grid-template-columns: 1fr 1fr; }
    .sub a { padding: 6px 4px; font-size: .9rem; color: var(--muted); }
    .nav-actions { justify-content: space-between; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-wall { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .svc-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .section { padding: 68px 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .engines, .split, .form-wrap { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse .split-img { order: 0; }
    .why-grid, .pillars, .svc-grid { grid-template-columns: 1fr; }
    .brand-list { grid-template-columns: 1fr 1fr; }
    .steps, .steps-6 { grid-template-columns: 1fr; }
    .steps li::before { display: none; }
    .hero { min-height: auto; }
    .hero-inner { padding-top: 64px; }
    .hero { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .logo-text strong { font-size: 1.08rem; }
    .logo-text small { font-size: .55rem; letter-spacing: .14em; }
    .logo img { width: 38px; height: 38px; }
    .cat-grid { grid-template-columns: 1fr; }
    .brand-wall { grid-template-columns: repeat(2, 1fr); }
    .brand-list { grid-template-columns: 1fr; }
    .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .p-body { padding: 10px; }
    .marquee .p-card { width: 160px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .contact-form { padding: 22px 18px; }
    .svc-grid.four { grid-template-columns: 1fr; }
    .inquiry-box { padding: 28px 22px; }
    .filter-bar input, .filter-bar select { min-width: 0; width: 100%; max-width: none; }
    .cat-nav-bar { top: 76px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
    .nav-actions .btn { width: auto; }
    .jp-card { padding: 30px 22px; }
}
