/* PT Cosmo · site styles (v6, full supply-chain partner)
   Apple-style product site: frosted nav, centred display type, white / #f5f5f7 bands, official brand logos
   on white plates, a 3D brand carousel, big logo-first brand tiles, text-first product cards with certificates,
   a light sunlit UV section and a lab section with five specialist labs. See DESIGN.md. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Brand"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Brand"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --chip: #e8e8ed;
  --accent: #0e5a4b;
  --accent-hover: #0a4a3d;
  --accent-fg: #ffffff;
  --link: #0a6e66;
  --ok: #1a7f35;
  --warn: #a35400;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --scrim: rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 14px 34px rgba(0, 0, 0, .08);
  --plate: #ffffff;
  --glass: rgba(255, 255, 255, .66);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(31, 40, 60, .07);
  --aurora-1: rgba(31, 179, 173, .40);
  --aurora-2: rgba(242, 181, 44, .32);
  --aurora-3: rgba(110, 200, 150, .30);
  --grad-a: #0e5a4b;
  --grad-b: #0f8f86;
  --grad-c: #1e8f5e;
  --spot-glow: rgba(31, 179, 173, .16);
  --sun-a: rgba(255, 190, 90, .26);
  --sun-b: rgba(160, 125, 255, .22);
  --uvb-1: #ffc046;
  --uvb-2: #ff8f5e;
  --uva-1: #f08bd0;
  --uva-2: #8c6cff;
  --plate-ring: rgba(0, 0, 0, .07);
  --logo-c: #0e5a4b;
  --logo-t: #1fb3ad;
  --logo-y: #f2b52c;
  /* the UV band is dark in both themes, by design */
  --spot-bg: #000000;
  --spot-fg: #f5f5f7;
  --spot-fg-2: #a1a1a6;
  --spot-line: #333336;
  --uvb: #ffb340;
  --uva: #b48cff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --font-brand: "Montserrat Brand", "Inter", system-ui, sans-serif;

  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --max: 1100px;
  --nav-h: 52px;
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --surface: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6;
    --line: #3a3a3c; --line-soft: #2c2c2e; --chip: #2c2c2e; --accent: #17796b; --accent-hover: #1d8a7a; --accent-fg: #ffffff;
    --link: #4fd1c5; --ok: #30d158; --warn: #ff9f0a; --nav-bg: rgba(22, 22, 23, 0.78); --scrim: rgba(0, 0, 0, 0.6);
    --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .5); --plate-ring: rgba(255, 255, 255, .0);
    --logo-c: #5cc4a8; --spot-bg: #0b0b0c; --glass: rgba(30, 30, 34, .62); --glass-line: rgba(255, 255, 255, .08); --glass-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35); --aurora-1: rgba(31, 179, 173, .30); --aurora-2: rgba(242, 181, 44, .16); --aurora-3: rgba(46, 160, 110, .24); --grad-a: #5cc4a8; --grad-b: #4fd1c5; --grad-c: #9be7a8; --spot-glow: rgba(79, 209, 197, .14); --sun-a: rgba(255, 170, 60, .12); --sun-b: rgba(140, 110, 255, .16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --surface: #1c1c1e; --fg: #f5f5f7; --fg-2: #a1a1a6;
  --line: #3a3a3c; --line-soft: #2c2c2e; --chip: #2c2c2e; --accent: #17796b; --accent-hover: #1d8a7a; --accent-fg: #ffffff;
  --link: #4fd1c5; --ok: #30d158; --warn: #ff9f0a; --nav-bg: rgba(22, 22, 23, 0.78); --scrim: rgba(0, 0, 0, 0.6);
  --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .5); --plate-ring: rgba(255, 255, 255, .0);
  --logo-c: #5cc4a8; --spot-bg: #0b0b0c; --glass: rgba(30, 30, 34, .62); --glass-line: rgba(255, 255, 255, .08); --glass-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35); --aurora-1: rgba(31, 179, 173, .30); --aurora-2: rgba(242, 181, 44, .16); --aurora-3: rgba(46, 160, 110, .24); --grad-a: #5cc4a8; --grad-b: #4fd1c5; --grad-c: #9be7a8; --spot-glow: rgba(79, 209, 197, .14); --sun-a: rgba(255, 170, 60, .12); --sun-b: rgba(140, 110, 255, .16);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 80px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="zh-Hans"] body { letter-spacing: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--nav-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
svg { flex: none; }
.ico, .tile-ico, .cat-ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--surface); color: var(--fg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.wrap.narrow { max-width: 820px; }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.alt { background: var(--bg-alt); }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
.display { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; white-space: pre-line; }
.display-s { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 4.8vw, 52px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; white-space: pre-line; }
html[lang="zh-Hans"] .display, html[lang="zh-Hans"] .display-s, html[lang="zh-Hans"] .h2 { letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.42; color: var(--fg-2); font-weight: 500; max-width: 42ch; margin: 0 auto; letter-spacing: -0.015em; }
.lede.left { margin: 0; }
.hero .lede, .section-head .lede { text-wrap: balance; }
.section-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.left { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; text-align: left; flex-wrap: wrap; }
.section-head.left > div { display: grid; gap: 10px; }
.section-head.left .lede { margin: 0; }
.more-link { font-size: 17px; white-space: nowrap; }
.more-link::after, .more::after { content: " ›"; }
.fine { font-size: 12px; color: var(--fg-2); text-align: center; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; cursor: pointer; border-radius: 980px; padding: 11px 22px; font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }
.btn-light { background: #f5f5f7; color: #1d1d1f; }
.btn-light:hover { background: #ffffff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-xs { min-height: 30px; padding: 5px 13px; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn:hover { background: var(--chip); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { border: 0; background: none; color: var(--link); cursor: pointer; padding: 8px 0; font-size: 14px; min-height: 36px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.nav-row { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 27px; }
.wordmark { font-family: var(--font-brand); font-weight: 800; font-size: 17px; letter-spacing: .01em; color: var(--logo-c); display: inline-flex; align-items: baseline; gap: 4px; }
.wordmark small { font-size: 10px; font-weight: 700; }
.nav-links { margin: 0 auto; }
.nav-links ul { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--fg); opacity: .82; font-size: 13px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: inline-flex; background: var(--chip); border-radius: 980px; padding: 2px; }
.lang a { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 980px; color: var(--fg-2); font-size: 12px; font-weight: 600; }
.lang a:hover { text-decoration: none; color: var(--fg); }
.lang a[aria-current="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gr) 16px var(--gl); display: none; box-shadow: var(--shadow); }
  .nav.open .nav-links { display: block; }
  .nav-links ul { flex-direction: column; gap: 0; }
  .nav-links a { font-size: 17px; opacity: 1; min-height: 48px; border-bottom: 1px solid var(--line-soft); width: 100%; }
}
@media (max-width: 480px) { .nav-cta { display: none; } }

/* ---------- logo plates: each brand's own logo on white, in both themes ---------- */
.plate { --h: 34px; --ih: 22px; --iw: 110px; display: inline-flex; align-items: center; justify-content: center; flex: none; height: var(--h); padding: 0 calc(var(--h) * .3); background: var(--plate); border-radius: calc(var(--h) * .28); box-shadow: inset 0 0 0 1px var(--plate-ring); }
.plate img { height: var(--ih); width: auto; max-width: var(--iw); object-fit: contain; }
.plate-xs { --h: 26px; --ih: 16px; --iw: 70px; }
.plate-sm { --h: 34px; --ih: 21px; --iw: 104px; }
.plate-md { --h: 46px; --ih: 28px; --iw: 140px; }
.plate-lg { --h: 64px; --ih: 38px; --iw: 156px; }
.plate-xl { --h: 92px; --ih: 56px; --iw: 250px; }
.plate-wide { --ih: calc(var(--h) * .44); }
.plate-text b { font-family: var(--font-display); font-weight: 700; color: #1d1d1f; font-size: calc(var(--h) * .38); letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- home: hero (moving aurora + brand carousel) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 80px); text-align: center; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg-alt)); pointer-events: none; }
.aurora { position: absolute; inset: -12% -10% 8%; z-index: -2; pointer-events: none; filter: blur(64px) saturate(130%); }
.aurora span { position: absolute; width: min(58vw, 760px); aspect-ratio: 1; border-radius: 50%; animation: drift 24s ease-in-out infinite alternate; will-change: transform; }
.aurora span:nth-child(1) { background: radial-gradient(circle, var(--aurora-1), transparent 62%); left: -8%; top: -10%; }
.aurora span:nth-child(2) { background: radial-gradient(circle, var(--aurora-2), transparent 62%); right: -10%; top: 0; animation-duration: 29s; animation-delay: -9s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, var(--aurora-3), transparent 62%); left: 28%; top: 30%; animation-duration: 33s; animation-delay: -17s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(9%, 6%, 0) scale(1.12); } 100% { transform: translate3d(-7%, 11%, 0) scale(.94); } }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 6px 13px; border-radius: 980px; font-size: 14px; font-weight: 600; color: var(--link); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--glass-shadow); }
.hero-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grad { background: linear-gradient(100deg, var(--grad-a) 0%, var(--grad-b) 45%, var(--grad-c) 75%, var(--grad-a) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: shimmer 9s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (forced-colors: active) { .grad { color: CanvasText; background: none; } }
.hero .lede { margin-top: 18px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-ctas.left { justify-content: flex-start; margin-top: 8px; }
.hero .display, .hero .lede, .hero-ctas, .hero-badge, .hero-stats, .bcar { animation: rise .8s var(--ease) both; }
.hero .grad { animation: shimmer 9s ease-in-out infinite alternate; }
.hero .lede { animation-delay: .05s; } .hero-ctas { animation-delay: .1s; } .hero-stats { animation-delay: .16s; } .bcar { animation-delay: .22s; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

/* hero numbers */
.hero-stats { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin: clamp(36px, 5vw, 52px) auto 0; max-width: 860px; padding: 6px; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: var(--glass-shadow); }
.hero-stats li { flex: 1 1 150px; display: grid; gap: 2px; padding: 14px 16px; text-align: center; position: relative; }
.hero-stats li + li::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-soft); }
.hero-stats b, .lab-stats b { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 14px; color: var(--fg-2); font-weight: 500; }
@media (max-width: 560px) { .hero-stats li { flex-basis: 50%; } .hero-stats li:nth-child(3)::before { display: none; } }
@media (forced-colors: active) { .hero-stats b, .lab-stats b { color: CanvasText; background: none; } }

/* brand carousel (hero): the active brand sits large in the centre, its neighbours tilt back in 3D.
   JS adds .ready and positions the slides; without JS the cards form a plain horizontal row. */
.bcar { position: relative; margin-top: clamp(44px, 5vw, 64px); }
.strip-label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--fg-2); letter-spacing: 0; }
.strip-label svg { width: 15px; height: 15px; fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bcar-stage { --cw: 336px; --ch: 182px; position: relative; height: calc(var(--ch) + 72px); perspective: 1300px; perspective-origin: 50% 45%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.bcar-track { list-style: none; position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.bcar-slide { pointer-events: auto; }
.bcar-slide { --dim: 1; position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); filter: brightness(var(--dim)); transition: transform .85s cubic-bezier(.22, .8, .2, 1), opacity .85s cubic-bezier(.22, .8, .2, 1), filter .85s cubic-bezier(.22, .8, .2, 1); will-change: transform, opacity; }
.bcar.fast .bcar-slide { transition-duration: .3s; transition-timing-function: linear; }
.bcar-card { position: relative; display: grid; justify-items: center; align-content: center; gap: 14px; width: 100%; height: 100%; padding: 18px 22px; border-radius: 28px; background: #fff; color: #1d1d1f; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 14px 36px rgba(24, 34, 52, .12), inset 0 0 0 1px rgba(0, 0, 0, .05); transition: box-shadow .6s var(--ease); -webkit-user-drag: none; }
.bcar-card:hover { text-decoration: none; }
.bcar-card::before { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: radial-gradient(70% 100% at 50% 100%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 72%); pointer-events: none; }
.bcar-card::after { content: ""; position: absolute; left: 40%; right: 40%; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--brand); }
.bcar-logo { position: relative; display: grid; place-items: center; height: 82px; }
.bcar-logo img { width: var(--lw); height: var(--lh); object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
.bcar-meta { position: relative; max-width: 100%; font-size: 13px; font-weight: 500; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.bcar-slide.is-active .bcar-card { box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 28px 64px color-mix(in srgb, var(--brand) 30%, rgba(24, 34, 52, .16)), inset 0 0 0 1px rgba(0, 0, 0, .04); }
.bcar-nav { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); cursor: pointer; transition: transform .2s var(--ease); }
.bcar-nav:hover { transform: scale(1.08); }
.bcar-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bcar-foot { display: grid; justify-items: center; gap: 12px; padding-inline: var(--gl) var(--gr); }
.bcar-caption { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; min-height: 24px; font-size: 15px; color: var(--fg-2); transition: opacity .25s ease; }
.bcar-caption b { color: var(--fg); font-size: 16px; font-weight: 700; }
.bcar-caption a { font-weight: 600; }
.bcar-caption.swap { opacity: 0; }
.bcar-ctrl { display: none; align-items: center; gap: 14px; }
.bcar.ready .bcar-ctrl { display: flex; }
.bcar-dots { display: flex; gap: 10px; align-items: center; }
.bcar-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--fg) 22%, transparent); cursor: pointer; transition: width .4s var(--ease), background-color .3s; }
.bcar-dot::before { content: ""; position: absolute; inset: -10px -5px; }
.bcar-dot:hover { background: color-mix(in srgb, var(--fg) 40%, transparent); }
.bcar-dot.is-active { width: 36px; background: color-mix(in srgb, var(--fg) 15%, transparent); }
.bcar-dot i { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.bcar-dot i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--fg); opacity: .7; transform: scaleX(0); transform-origin: left center; }
.bcar-dot.is-active i::after { transform: scaleX(1); }
.bcar.auto .bcar-dot.is-active i::after { animation: bcarfill var(--bcar-dur, 3.6s) linear forwards; }
.bcar.paused .bcar-dot.is-active i::after { animation-play-state: paused; }
@keyframes bcarfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bcar-toggle { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); color: var(--fg-2); cursor: pointer; box-shadow: var(--glass-shadow); }
.bcar-toggle:hover { color: var(--fg); }
.bcar-toggle svg { width: 15px; height: 15px; }
.bcar-toggle .i-play { display: none; }
.bcar-toggle[aria-pressed="true"] .i-pause { display: none; }
.bcar-toggle[aria-pressed="true"] .i-play { display: block; }
/* no JS: a plain scrollable row */
.bcar:not(.ready) .bcar-stage { height: auto; perspective: none; overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.bcar:not(.ready) .bcar-track { position: static; display: flex; gap: 16px; width: max-content; padding: 18px var(--gl) 26px; }
.bcar:not(.ready) .bcar-slide { position: static; margin: 0; flex: none; }
@media (max-width: 640px) {
  .bcar-stage { --cw: 252px; --ch: 142px; height: calc(var(--ch) + 52px); }
  .bcar-card { border-radius: 22px; gap: 10px; padding: 14px 16px; }
  .bcar-logo { height: 64px; }
  .bcar-logo img { width: calc(var(--lw) * .8); height: calc(var(--lh) * .8); }
  .bcar-meta { font-size: 12px; }
  .bcar-caption { font-size: 14px; }
  .bcar-caption span { flex-basis: 100%; text-align: center; }
}

/* ---------- shared: eyebrow chips, icon badges, cursor spotlight, scroll reveal ---------- */
.eyebrow-chip { margin: 0; display: inline-flex; align-items: center; justify-self: center; gap: 6px; padding: 5px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; color: var(--link); background: color-mix(in srgb, var(--link) 10%, transparent); letter-spacing: 0; width: max-content; }
.section-head.left .eyebrow-chip { justify-self: start; }
.ico-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--link); background: linear-gradient(135deg, color-mix(in srgb, var(--link) 16%, transparent), color-mix(in srgb, var(--logo-y) 16%, transparent)); flex: none; }
.ico-badge.lg { width: 58px; height: 58px; border-radius: 16px; }
.spotlight { position: relative; isolation: isolate; }
.spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), var(--spot-glow), transparent 65%); }
.spotlight:hover::after { opacity: 1; }
/* scroll reveal: JS marks below-the-fold blocks .pre, then .in once they enter the viewport.
   Time-based (not scroll-scrubbed), so it stays smooth with stepped mouse wheels. Without JS nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.pre { opacity: 0; transform: translateY(28px); }
  .reveal.pre.in { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .9s var(--ease); }
}

/* ---------- brand photos (brand pages) ---------- */
.bphoto { width: 100%; height: 100%; object-fit: cover; }
.bpanel { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--brand) 10%, #ffffff), color-mix(in srgb, var(--brand) 34%, #ffffff)); }
.bpanel .plate { box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 30%, transparent); }
.ai-chip { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 980px; color: #fff; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); letter-spacing: 0; }

/* ---------- home: value chain (one partner, the whole supply chain) ---------- */
.vchain { list-style: none; counter-reset: vc; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.vchain::before { content: ""; position: absolute; left: 10%; right: 10%; top: 41px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--logo-y), var(--grad-c), var(--grad-a)); background-size: 200% 100%; opacity: .55; animation: flow 8s linear infinite; }
@keyframes flow { to { background-position: 200% 0; } }
.vnode { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 18px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--line-soft); text-align: left; }
.vnode-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: 0 6px 16px color-mix(in srgb, var(--grad-b) 35%, transparent); }
.vnode-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vnode-n { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0; }
.vnode h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-top: 6px; }
.vnode p { margin: 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.45; }
.vc-cta { margin: clamp(28px, 4vw, 40px) 0 0; }
@media (max-width: 1000px) { .vchain { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vchain::before { display: none; } .vnode:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .vchain { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-left: 22px; }
  .vchain::before { display: block; left: 6px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; background: linear-gradient(180deg, var(--grad-a), var(--logo-y), var(--grad-c)); animation: none; }
  .vnode { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .vnode-ico { grid-row: 1 / 3; width: 40px; height: 40px; }
  .vnode h3 { margin-top: 0; font-size: 17px; }
  .vnode-n { display: none; }
}

/* horizontal scrollers: arrow buttons and edge fades for mouse users (added by JS) */
.hs { position: relative; min-width: 0; }
.hs-btn { position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; display: none; place-items: center; color: var(--fg); background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .16), inset 0 0 0 1px var(--line-soft); cursor: pointer; }
.hs-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-prev { left: -4px; } .hs-next { right: -4px; }
.hs.can-prev .hs-prev, .hs.can-next .hs-next { display: grid; }
@media (pointer: coarse) { .hs.can-prev .hs-prev, .hs.can-next .hs-next { display: none; } }
.hs.can-next > [data-hscroll] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.hs.can-prev > [data-hscroll] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.hs.can-prev.can-next > [data-hscroll] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
[data-hscroll].dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
[data-hscroll].dragging a { pointer-events: none; }

/* ---------- brand tiles (home, brands page, brand pages): big logo-first links with a 3D tilt ---------- */
.btiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.btiles > li { display: flex; }
.btile { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 304px; padding: 14px 14px 18px; border-radius: 26px; color: var(--fg); overflow: hidden;
  background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%), radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 60%), var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(24, 34, 52, .07), inset 0 0 0 1px var(--line-soft);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease); transform-style: preserve-3d; }
.btile:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 56px color-mix(in srgb, var(--brand) 24%, rgba(24, 34, 52, .14)), inset 0 0 0 1px color-mix(in srgb, var(--brand) 32%, var(--line-soft)); }
.btile:focus-visible { outline-offset: 4px; }
.btile-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .5), transparent 55%); opacity: 0; transition: opacity .35s; mix-blend-mode: soft-light; }
.btile:hover .btile-glare { opacity: 1; }
.btile-plate { display: grid; place-items: center; height: 118px; margin-bottom: 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 4px 14px rgba(24, 34, 52, .06); transition: transform .55s var(--ease); }
.btile:hover .btile-plate { transform: translateZ(28px); }
.btile-plate img { width: calc(var(--lw) * .82); height: calc(var(--lh) * .82); object-fit: contain; }
.btile-name { display: grid; padding: 0 6px; font-family: var(--font-display); font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.btile-aka { font-size: 13px; font-weight: 600; color: var(--fg-2); letter-spacing: 0; margin-top: 3px; }
.btile-tag { padding: 0 6px; font-size: 14px; line-height: 1.42; color: var(--fg-2); }
.btile-foot { margin-top: auto; padding: 12px 6px 0; display: grid; gap: 3px; }
.btile-num { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.btile-num b { font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.btile-num.soon { font-size: 14px; font-weight: 600; color: var(--link); padding: 10px 0 4px; }
.btile-meta { font-size: 13px; color: var(--fg-2); }
.btile-meta:empty { display: none; }
.btile-go { position: absolute; right: 16px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); background: color-mix(in srgb, var(--brand) 20%, var(--surface)); transition: transform .35s var(--ease), background-color .35s; }
.btile-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btile:hover .btile-go { transform: translateX(3px); background: color-mix(in srgb, var(--brand) 34%, var(--surface)); }
.btile-cta { color: #fff; background: radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #0f8f86)); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.btile-cta:hover { box-shadow: 0 26px 56px color-mix(in srgb, var(--accent) 40%, transparent); }
.btile-cta .btile-name, .btile-cta .btile-tag, .btile-cta .more { color: #fff; }
.btile-cta .btile-tag { opacity: .88; }
.btile-cta .more { font-weight: 600; font-size: 15px; }
.btile-cta-ico { display: grid; place-items: center; width: 58px; height: 58px; margin: 10px 6px 16px; border-radius: 18px; background: rgba(255, 255, 255, .16); }
.btile-cta-ico svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .btiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .btiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .btile { min-height: 0; padding: 10px 10px 14px; border-radius: 20px; gap: 4px; }
  .btile-plate { height: 86px; border-radius: 14px; margin-bottom: 6px; }
  .btile-plate img { width: calc(var(--lw) * .6); height: calc(var(--lh) * .6); }
  .btile-name { font-size: 17px; padding: 0 4px; }
  .btile-tag { font-size: 13px; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .btile-foot { padding: 8px 4px 0; }
  .btile-num b { font-size: 26px; }
  .btile-go { display: none; }
  .btile-cta-ico { width: 46px; height: 46px; margin: 6px 4px 10px; }
}

/* ---------- home: category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); border-radius: var(--r-lg); padding: 26px 26px 24px; color: var(--fg); min-width: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { text-decoration: none; transform: scale(1.015); box-shadow: var(--shadow); }
.tile-head { display: flex; align-items: center; justify-content: space-between; }
.tile-ico { width: 26px; height: 26px; }
.tile-count { font-size: 13px; color: var(--fg-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.tile-name { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 25px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.tile-desc { color: var(--fg-2); font-size: 15px; line-height: 1.45; }
.tile-sup { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.more { color: var(--link); font-size: 15px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: UV section (light, sunlit glass) ---------- */
.sun { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 0% 0%, var(--sun-a), transparent 70%), radial-gradient(60% 70% at 100% 100%, var(--sun-b), transparent 70%), var(--bg-alt); }
.spot-brand { display: inline-block; border-radius: 12px; }
.rays { display: grid; grid-template-columns: 35fr 85fr; gap: 12px; margin-bottom: 24px; }
.ray { display: grid; gap: 4px; align-content: start; padding: 0 22px 18px; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: var(--glass-shadow); }
.ray-bar { display: block; height: 10px; margin: 0 -22px 14px; }
.ray-b .ray-bar { background: linear-gradient(90deg, var(--uvb-1), var(--uvb-2)); }
.ray-a .ray-bar { background: linear-gradient(90deg, var(--uva-1), var(--uva-2)); }
.ray b { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.ray p { margin: 0; color: var(--fg-2); font-size: 15px; }
.ray-axis { grid-column: 1 / -1; display: grid; grid-template-columns: 35fr 85fr; column-gap: 12px; margin-top: -2px; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.ray-axis span:nth-child(1) { grid-column: 1; grid-row: 1; justify-self: start; }
.ray-axis span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: start; transform: translateX(-50%); }
.ray-axis span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
.uv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.uv-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.uv-col { display: grid; gap: 16px; min-width: 0; }
.uvg { padding: 16px 12px 10px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: var(--glass-shadow); }
.uvg-head { display: flex; align-items: flex-start; gap: 12px; padding: 4px 10px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.uvg-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; flex: none; }
.uvg-uvb .uvg-dot { background: linear-gradient(135deg, var(--uvb-1), var(--uvb-2)); }
.uvg-uva .uvg-dot { background: linear-gradient(135deg, var(--uva-1), var(--uva-2)); }
.uvg-broad .uvg-dot { background: conic-gradient(var(--uvb-1), var(--uvb-2), var(--uva-1), var(--uva-2), var(--uvb-1)); }
.uvg-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.uvg-head p { margin: 2px 0 0; font-size: 14px; color: var(--fg-2); }
.uvg-n { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--fg-2); background: var(--chip); border-radius: 980px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.uvg ul { list-style: none; display: grid; gap: 2px; }
.uvf { display: grid; gap: 3px; padding: 10px; border-radius: 14px; color: var(--fg); transition: background-color .2s, transform .2s; }
.uvf:hover { text-decoration: none; background: var(--surface); transform: translateX(2px); }
.uvf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.uvf-top b { font-size: 16px; font-weight: 600; }
.uvf-nm { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0; white-space: nowrap; }
.uvf-inci { font-size: 12.5px; line-height: 1.35; color: var(--fg-2); overflow-wrap: anywhere; }
.uvf-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.uvf-chips i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--chip); color: var(--fg-2); }
.uv-tip { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 22px; color: var(--fg); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: var(--glass-shadow); }
a.uv-tip { align-items: center; }
a.uv-tip:hover { text-decoration: none; }
.tip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; color: #fff; background: linear-gradient(135deg, var(--uvb-2), var(--uva-2)); }
.tip-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.uv-tip b { display: block; font-size: 16px; font-weight: 600; }
.tip-text { display: block; margin-top: 2px; font-size: 14px; color: var(--fg-2); }
.uv-tip.combo { flex-direction: column; gap: 10px; }
.combo-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.combo-row a { padding: 5px 12px; border-radius: 980px; font-size: 15px; font-weight: 600; color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.combo-row a:hover { text-decoration: none; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.combo-row .plus { color: var(--fg-2); font-weight: 600; }
.uv-hint { margin: 26px 0 0; text-align: center; font-size: 14px; color: var(--fg-2); }
.sun-note { margin: 6px auto 26px; max-width: 70ch; text-align: center; font-size: 12px; color: var(--fg-2); }
@media (max-width: 640px) {
  .rays { grid-template-columns: minmax(0, 1fr); }
  .ray-axis { display: none; }
  .uv-cols, .uv-tips { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- search & suggestions ---------- */
.search { position: relative; display: block; width: 100%; max-width: 620px; margin: 0 auto; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.search input { width: 100%; min-height: 52px; font: inherit; font-size: 17px; padding: 13px 18px 13px 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); letter-spacing: -0.01em; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--fg-2); opacity: 1; }
.search input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 20%, transparent); }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 14px; }
.suggest span { font-size: 13px; color: var(--fg-2); }
.suggest button { border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 980px; padding: 6px 14px; min-height: 36px; font-size: 14px; cursor: pointer; }
.suggest button:hover { border-color: var(--fg-2); }

/* ---------- home: finder ---------- */
.finder { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.find-none { text-align: center; color: var(--fg-2); margin: 0; }
.sub-list { list-style: none; display: grid; gap: 10px; }
.sub-row { background: var(--surface); border-radius: var(--r-md); padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto; gap: 14px; align-items: center; }
.sub-from { font-weight: 600; }
.sub-arrow { color: var(--fg-2); }
.sub-to { min-width: 0; }
.sub-to a { font-weight: 600; }
.sub-to small { display: block; color: var(--fg-2); font-size: 13px; overflow-wrap: anywhere; }
.badge { justify-self: end; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.badge.same { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge.close { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.sub-all { border-top: 1px solid var(--line); padding-top: 14px; }
.sub-all summary { cursor: pointer; color: var(--link); text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; list-style: none; }
.sub-all summary::-webkit-details-marker { display: none; }
.sub-all[open] summary { margin-bottom: 14px; }
@media (max-width: 640px) {
  .sub-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sub-arrow { display: none; }
  .sub-from::after { content: " →"; color: var(--fg-2); font-weight: 400; }
  .badge { justify-self: start; margin-top: 6px; }
}

/* ---------- home: problems ---------- */
.prob-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.prob { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.prob b { font-weight: 600; font-size: 17px; }
.prob div { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; }
.prob a { font-size: 14px; background: var(--bg-alt); color: var(--fg); padding: 7px 13px; border-radius: 980px; min-height: 36px; display: inline-flex; align-items: center; border: 1px solid var(--line-soft); }
.prob a:hover { text-decoration: none; border-color: var(--link); color: var(--link); }
@media (max-width: 760px) { .prob-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: lab ---------- */
.lab-band { position: relative; isolation: isolate; overflow: hidden; }
.lab-band::before { content: ""; position: absolute; inset: -10% -20% auto; height: 520px; z-index: -1; background: radial-gradient(50% 60% at 20% 0%, var(--aurora-1), transparent 70%), radial-gradient(40% 50% at 85% 10%, var(--aurora-2), transparent 70%); opacity: .55; filter: blur(30px); pointer-events: none; }
.lab-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lab-stats li { display: grid; gap: 6px; align-content: start; padding: 24px 24px 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: var(--glass-shadow); }
.lab-stats b { font-size: clamp(38px, 5vw, 56px); }
.lab-stats span { font-size: 15px; color: var(--fg-2); line-height: 1.4; }
.lab-stats b.word { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; padding-bottom: 2px; text-wrap: balance; }
html[lang="zh-Hans"] .lab-stats b.word { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc { display: grid; gap: 8px; align-content: start; padding: 26px 24px 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-soft); }
.svc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--link); background: linear-gradient(135deg, color-mix(in srgb, var(--link) 16%, transparent), color-mix(in srgb, var(--logo-y) 18%, transparent)); }
.svc-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.svc p { margin: 0; font-size: 15px; color: var(--fg-2); line-height: 1.45; }
.svc-5 { background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #0f8f86)); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.svc-5 h3, .svc-5 p { color: #fff; }
.svc-5 p { opacity: .88; }
.svc-5 .svc-ico { color: #fff; background: rgba(255, 255, 255, .16); }
.labs-head { text-align: center; margin: clamp(48px, 7vw, 72px) 0 22px; display: grid; gap: 6px; }
.labs-head h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; }
.labs-head p { margin: 0; color: var(--fg-2); }
.labs5 { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.labx { display: grid; gap: 6px; align-content: start; justify-items: center; text-align: center; padding: 22px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.labx-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); margin-bottom: 6px; box-shadow: 0 8px 20px color-mix(in srgb, var(--grad-b) 32%, transparent); }
.labx-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.labx b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.labx-d { font-size: 13px; color: var(--fg-2); line-height: 1.4; }
.steps-title { text-align: center; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; margin: clamp(56px, 8vw, 80px) 0 28px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line); }
.step-n { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent-fg); background: var(--accent); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step b { font-weight: 600; }
.step p { margin: 4px 0 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .labs5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lab-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lab-stats li { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 18px 20px; }
  .lab-stats b { font-size: 36px; }
  .lab-stats li.is-word { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .lab-stats b.word, html[lang="zh-Hans"] .lab-stats b.word { font-size: 30px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .labs5 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .labx { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; padding: 14px 16px; }
  .labx-ico { grid-row: 1 / 3; width: 46px; height: 46px; margin: 0; }
  .labx-ico svg { width: 22px; height: 22px; }
}
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: contact ---------- */
.contact-card { background: var(--bg-alt); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 44px); align-items: stretch; }
.contact-info { display: grid; gap: 32px; align-content: center; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > svg { width: 24px; height: 24px; margin-top: 2px; color: var(--fg-2); }
.contact-list li > div { display: grid; gap: 2px; min-width: 0; }
.contact-list small { color: var(--fg-2); font-size: 13px; }
.contact-list .v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { font-size: 15px; }
.copy { border: 0; background: var(--chip); color: var(--link); border-radius: 980px; padding: 4px 12px; min-height: 30px; font-size: 13px; font-weight: 600; cursor: pointer; }
.contact-cta { display: grid; gap: 16px; justify-items: start; }
.contact-cta p { margin: 0; color: var(--fg-2); font-size: 19px; line-height: 1.4; }
/* map: loads Google Maps when it scrolls into view; a styled placeholder shows until then (or if it cannot load) */
.map-card { margin: 0; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(24, 34, 52, .07), inset 0 0 0 1px var(--line-soft); }
.map-frame { position: relative; flex: 1; min-height: 340px; }
.map-frame iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }
.map-ph { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 24px; text-align: center;
  background: radial-gradient(55% 55% at 50% 42%, color-mix(in srgb, var(--link) 12%, transparent), transparent 72%),
    linear-gradient(118deg, transparent 46%, color-mix(in srgb, var(--fg) 7%, transparent) 46.4% 49%, transparent 49.4%),
    linear-gradient(28deg, transparent 63%, color-mix(in srgb, var(--fg) 6%, transparent) 63.3% 65.2%, transparent 65.5%),
    repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--fg) 4%, transparent) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--fg) 4%, transparent) 39px 40px),
    var(--bg-alt); }
.map-ph b { margin-top: 10px; font-size: 17px; }
.map-ph span:not(.map-pin) { max-width: 34ch; font-size: 14px; color: var(--fg-2); }
.map-pin { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.map-pin svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-pin::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); animation: pinpulse 2.4s ease-out infinite; }
@keyframes pinpulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }
.map-load { margin-top: 10px; box-shadow: var(--glass-shadow); }
.map-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
@media (max-width: 760px) { .contact-card { grid-template-columns: minmax(0, 1fr); } .map-frame { min-height: 280px; } }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding-block: 32px calc(110px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--fg-2); }
.footer-plates { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.footer-plates a { border-radius: 10px; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--fg); min-height: 36px; display: inline-flex; align-items: center; }
.footer-fine { grid-column: 1 / -1; margin: 0; line-height: 1.6; }
@media (max-width: 640px) { .footer-row { grid-template-columns: minmax(0, 1fr); } .footer-links { justify-content: flex-start; } }

/* ---------- catalog ---------- */
.cat-hero { padding-block: clamp(40px, 6vw, 72px) 28px; text-align: center; }
.cat-hero .lede { margin-top: 14px; }
.cat-search { margin-top: 28px; }
.brand-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 980px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 4px 12px 4px 4px; border-radius: 14px; background: var(--chip); color: var(--fg); min-height: 44px; transition: box-shadow .2s, background-color .2s; }
.bchip b { font-size: 12px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bchip:hover { background: color-mix(in srgb, var(--chip) 70%, var(--fg) 8%); }
.bchip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--link); background: color-mix(in srgb, var(--link) 12%, var(--chip)); }
.scope { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 40; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.scope-row { display: flex; align-items: center; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; scroll-snap-type: x proximity; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 4px 16px; border-radius: 980px; background: var(--chip); color: var(--fg); font-size: 14px; font-weight: 500; scroll-snap-align: start; white-space: nowrap; }
.chip:hover { text-decoration: none; background: color-mix(in srgb, var(--chip) 70%, var(--fg) 8%); }
.chip b { font-weight: 500; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] { background: var(--fg); color: var(--bg); }
.chip[aria-current="true"] b { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.brand-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 4px 10px 4px 14px; border: 0; border-radius: 980px; background: var(--accent); color: var(--accent-fg); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.brand-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (pointer: coarse) { .chip, .brand-pill { min-height: 44px; } }
.catalog-wrap { padding-bottom: 48px; }
.result-count { text-align: center; color: var(--fg-2); font-size: 14px; margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 56px 16px; color: var(--fg-2); display: grid; justify-items: center; gap: 14px; }
.empty p { margin: 0; max-width: 46ch; }
.cat-block { padding-top: clamp(32px, 5vw, 48px); }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px 32px; align-items: center; background: var(--bg-alt); border-radius: var(--r-lg); padding: 24px 28px; }
.cat-title { display: flex; align-items: center; gap: 16px; }
.cat-ico { width: 30px; height: 30px; }
.cat-title .h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cat-desc { margin: 0; color: var(--fg-2); font-size: 16px; }
.cat-sup { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat-sup > span { font-size: 13px; color: var(--fg-2); margin-right: 4px; }
.cat-sup a { border-radius: 10px; }
@media (max-width: 760px) { .cat-head { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.sub-group { margin-top: 28px; }
.sub-h { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; }
.sub-h span { font-size: 14px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

/* text-first product card: the whole card opens the product sheet */
.card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 16px 16px 14px; min-width: 0; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card:target { box-shadow: 0 0 0 3px var(--link); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.card-sub { font-size: 12px; color: var(--fg-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card-top .card-sub:only-child { text-align: left; }
.card-name { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.card-open { color: var(--fg); }
.card-open:hover { text-decoration: none; }
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-open:focus-visible { outline: none; }
.card-open:focus-visible::after { outline: 3px solid color-mix(in srgb, var(--link) 70%, transparent); outline-offset: 2px; }
.card-inci { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-spec { margin: 0; }
.spec { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; background: var(--chip); border-radius: 6px; padding: 2px 7px; color: var(--fg); }
.tds-note { color: var(--warn); font-size: 12px; white-space: nowrap; }
.card-certs { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.card-certs span { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); }
.card-certs .noi { color: var(--link); background: color-mix(in srgb, var(--link) 11%, transparent); font-variant-numeric: tabular-nums; }
.card-desc { margin: 0; font-size: 14px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card-tags span { font-size: 11px; color: var(--fg-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 1px 6px; }
.card-foot { margin-top: auto; padding-top: 6px; }
.add { position: relative; z-index: 1; width: 100%; min-height: 40px; border: 0; border-radius: 980px; background: var(--chip); color: var(--link); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.add:hover { background: color-mix(in srgb, var(--link) 14%, var(--chip)); }
.add[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.swatch { display: block; height: 46px; margin: -16px -16px 4px; border-radius: calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 12px 12px 12px; gap: 6px; }
  .swatch { margin: -12px -12px 2px; height: 36px; }
  .card-top { flex-direction: column; align-items: flex-start; min-height: 0; }
  .card-sub { text-align: left; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .card-name { font-size: 15px; }
  .card-desc, .card-tags { display: none; }
  .add { min-height: 44px; }
}
@media (pointer: coarse) { .add { min-height: 44px; } .suggest button { min-height: 44px; } }

/* ---------- product sheet ---------- */
.sheet { border: 0; padding: 0; width: min(660px, calc(100% - 32px)); max-height: min(88vh, 780px); border-radius: var(--r-xl); background: var(--surface); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.sheet::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { transform: translateY(24px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { position: relative; max-height: inherit; overflow-y: auto; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--chip); }
.sheet-body { padding: 26px 30px 26px; display: grid; gap: 16px; align-content: start; }
.sheet-swatch { height: 72px; margin: -26px -30px 0; }
.sheet-brand { display: flex; align-items: center; gap: 12px; padding-right: 52px; flex-wrap: wrap; }
.sheet-brand a { font-size: 14px; font-weight: 600; }
.sheet-body .crumb { font-size: 13px; color: var(--fg-2); margin: -6px 0 0; }
.sheet-body h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.sheet-body .inci { margin: 0; font-size: 15px; color: var(--fg-2); overflow-wrap: anywhere; }
.sheet-body .desc { margin: 0; font-size: 17px; }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: 15px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.facts dt { color: var(--fg-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.facts .tags span { font-size: 12px; background: var(--chip); border-radius: 6px; padding: 2px 8px; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions .add { width: auto; padding: 0 22px; min-height: 44px; font-size: 15px; }
.sheet-note { margin: 0; font-size: 12px; color: var(--fg-2); }
.facts .certs { display: flex; flex-wrap: wrap; gap: 4px; }
.facts .certs span { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.notes { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); font-size: 15px; }
.notes dt { font-weight: 600; color: var(--fg-2); }
.notes dd { margin: 0; }
.sheet-body .inci .tds-note { font-size: 13px; }
.sheet-halal { margin: 0; font-size: 13px; color: var(--ok); }
@media (max-width: 700px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(40%); } to { transform: none; } }
  .sheet-inner { max-height: 92vh; }
  .sheet-body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sheet-swatch { margin: -22px -20px 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
}

/* ---------- brands index & brand pages ---------- */
.brands-wrap { padding-bottom: clamp(64px, 9vw, 112px); }
.bhero { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 80px); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--bg)) 0%, var(--bg) 100%); }
.bhero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.bhero-text { display: grid; gap: 16px; justify-items: start; }
.bhero-text .hero-badge { margin: 0; }
.bhero-aka { margin: -10px 0 0; font-size: 17px; font-weight: 600; color: var(--fg-2); }
.crumb { font-size: 14px; }
.bfacts { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.bfacts div { display: grid; gap: 2px; }
.bfacts dt { font-size: 12px; color: var(--fg-2); }
.bfacts dd { margin: 0; font-size: 17px; font-weight: 600; }
.bhero-media { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); }
.bhero-media .bphoto { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .bhero-row { grid-template-columns: minmax(0, 1fr); } .bhero-media { order: -1; max-width: 420px; justify-self: center; } }
.brand-intro { padding-block: clamp(48px, 7vw, 88px); }
.intro { margin: 0; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.38; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
.empty-brand { background: var(--surface); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.empty-brand p { margin: 0; max-width: 48ch; color: var(--fg-2); }

/* ---------- 404 page ---------- */
.nf { min-height: 100vh; display: grid; justify-items: center; align-content: center; gap: 22px; padding: 48px var(--gr) 64px var(--gl); text-align: center; }
.nf-code { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(64px, 12vw, 120px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(100deg, var(--grad-a), var(--grad-b), var(--grad-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-lang { display: grid; gap: 6px; max-width: 520px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.nf-lang h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.nf-lang p { margin: 0; color: var(--fg-2); }
.nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px !important; }
.nf-wa { margin: 6px 0 0; font-size: 15px; }

/* ---------- sample tray ---------- */
.tray { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; width: max-content; max-width: calc(100% - 32px); display: grid; gap: 8px; justify-items: center; }
.tray-bar { display: flex; align-items: center; gap: 6px; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-radius: 980px; padding: 6px; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); animation: rise .4s var(--ease); }
.tray-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--fg); min-height: 40px; padding: 0 12px; border-radius: 980px; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tray-toggle:hover { background: var(--chip); }
.tray-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tray-panel { width: min(380px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow), 0 0 0 1px var(--line-soft); padding: 16px 18px 10px; max-height: 50vh; overflow-y: auto; }
.tray-title { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.tray-items { list-style: none; }
.tray-items li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.tray-items li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tray-items li small { display: block; color: var(--fg-2); font-size: 12px; }
.tray-items button { border: 0; background: none; color: var(--link); cursor: pointer; font-size: 13px; min-height: 36px; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .nav, .scope, .tray, .footer, .add, .suggest, .cat-search, .brand-filter, .bcar-ctrl, .bcar-nav, .hs-btn, .aurora, .map-card { display: none !important; }
  .reveal.pre { opacity: 1 !important; transform: none !important; }
  .card { break-inside: avoid; }
}
