/* Shibo Textile Fittings — site styles. Colours follow the brochure: deep teal ink, sea teal, leaf green. */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-vietnamese-wght-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Manrope Latin'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Plex Arabic'; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Plex Arabic'; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Plex Arabic'; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Plex Arabic'; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --ink-950: #041b21;
  --ink-900: #062a33;
  --ink-800: #0a3a46;
  --ink-700: #0f4c5b;
  --teal-600: #0b6f84;
  --teal-500: #11899e;
  --teal-300: #5fd0dc;
  --teal-100: #def2f4;
  --teal-50: #f0f9fa;
  --leaf: #3aa76d;
  --wa: #0f7a40;
  --wa-hover: #0b6633;
  --paper: #ffffff;
  --tint: #f3f6f6;
  --line: #e0e7e8;
  --line-strong: #c9d5d7;
  --text: #0c1d22;
  --muted: #55686d;
  --on-dark: #e8f2f3;
  --on-dark-muted: #9fb9be;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(4 27 33 / .06);
  --shadow: 0 1px 2px rgb(4 27 33 / .05), 0 12px 32px -16px rgb(4 27 33 / .28);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:lang(ar) { --font: 'Plex Arabic', 'Manrope', 'Segoe UI', Tahoma, system-ui, sans-serif; }
:lang(zh) { --font: 'Manrope Latin', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif; }
:lang(hi) { --font: 'Manrope', 'Nirmala UI', 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Mangal', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--font); font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.has-dialog { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
bdi.code, .code { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; margin-top: 40px; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir='rtl'] .icon.flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: .975rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--ink-700); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); }
.btn-light { background: #fff; color: var(--ink-900); }
.btn-light:hover { background: var(--teal-100); }
.btn-outline-light { border-color: rgb(255 255 255 / .28); color: #fff; background: rgb(255 255 255 / .04); }
.btn-outline-light:hover { border-color: rgb(255 255 255 / .6); background: rgb(255 255 255 / .08); }
.btn-ghost { border-color: var(--line-strong); background: #fff; color: var(--ink-900); }
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--teal-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: .4em; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit; }
.icon-btn:hover { background: rgb(4 27 33 / .06); }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 12px; }
.eyebrow.light { color: var(--teal-300); }
:lang(ar) .eyebrow, :lang(hi) .eyebrow, :lang(zh) .eyebrow { letter-spacing: .02em; font-size: .9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); transition: background-color .3s, border-color .3s, color .3s;
}
.site-header.on-dark { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-dark.scrolled { background: rgb(6 42 51 / .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: rgb(255 255 255 / .08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
@media (max-width: 960px) { .header-inner { gap: 8px; } }
@media (max-width: 480px) { .header-wa { display: none !important; } .tool-btn { padding: 0 8px; } }
@media (max-width: 350px) { .brand-word small { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 33px; }
.brand-word { display: grid; line-height: 1.05; }
.brand-word strong { font-size: 1.12rem; letter-spacing: .2em; font-weight: 800; }
.brand-word small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.on-dark .brand-mark { filter: brightness(0) invert(1); }
.site-nav { position: relative; display: flex; gap: 2px; margin-inline-start: auto; }
.site-nav a { position: relative; z-index: 1; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; opacity: .82; transition: opacity .2s; }
.site-nav a:hover, .site-nav a[aria-current='page'] { opacity: 1; }
.site-nav a[aria-current='page'] { background: rgb(127 160 168 / .14); }
/* One pill slides between links on hover instead of each link lighting up on its own. */
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 8px; background: rgb(127 160 168 / .16); opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease-out), width .32s var(--ease-out), opacity .2s; }
.site-nav.pill-on .nav-pill { opacity: 1; }
.nav-cta { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: .85rem; transition: background-color .2s, transform .15s var(--ease); }
.tool-btn:hover { background: rgb(127 160 168 / .16); }
.tool-btn:active { transform: scale(.94); }
.badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--leaf); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 800; }
.lang-switch { position: relative; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 180px; z-index: 50; transform-origin: top right; animation: menu-in .2s var(--ease-out); }
[dir='rtl'] .lang-menu { transform-origin: top left; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
.lang-menu button { width: 100%; text-align: start; border: 0; background: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.lang-menu button:hover { background: var(--tint); }
.lang-menu button[aria-current='true'] { color: var(--teal-600); background: var(--teal-50); }
.inquiry-label { display: none; }
@media (min-width: 1200px) { .inquiry-label { display: inline; } .inquiry-btn { padding-inline: 10px 12px; } .inquiry-btn .badge { position: static; margin-inline-start: 2px; } }
.nav-toggle { display: none; }
.burger path { transform-box: view-box; transform-origin: 12px 12px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-open .burger .b1 { transform: translateY(5px) rotate(45deg); }
.nav-open .burger .b2 { opacity: 0; }
.nav-open .burger .b3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-pill { display: none; }
  /* Full-height sheet under the header; links settle in one after another. */
  .site-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--ink-950); color: #fff;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .42s var(--ease-out), visibility 0s .42s;
  }
  .nav-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .42s var(--ease-out), visibility 0s; }
  .site-nav a { display: flex; align-items: center; min-height: 64px; padding: 8px 0; border-bottom: 1px solid rgb(255 255 255 / .1); border-radius: 0;
    font-size: clamp(1.35rem, 5.6vw, 1.7rem); font-weight: 700; opacity: 0; transform: translateY(14px);
    transition: opacity .25s, transform .25s var(--ease-out); }
  .site-nav a[aria-current='page'] { background: none; color: var(--teal-300); }
  .nav-open .site-nav a { opacity: 1; transform: none; transition: opacity .4s calc(.08s + var(--i, 0) * 50ms), transform .5s var(--ease-out) calc(.08s + var(--i, 0) * 50ms); }
  .site-nav a:active { color: var(--teal-300); }
  .site-nav .nav-cta { display: inline-flex; justify-content: center; gap: .55em; margin-top: auto; min-height: 56px; border: 0; border-radius: 14px; background: var(--wa); color: #fff; font-size: 1.05rem; }
  .nav-open .site-header, .site-header.nav-open { background: var(--ink-950) !important; color: #fff; border-color: rgb(255 255 255 / .08) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-header.nav-open .brand-mark { filter: brightness(0) invert(1); }
  .header-wa span { display: none; }
  .header-wa { padding: 0 10px; }
  .header-tools { margin-inline-start: auto; }
}
html.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
/* A full-height teal stage: the brand's S yarn is the one hero visual, parts pass along a rail below. */
.hero {
  position: relative; isolation: isolate; overflow: clip; color: var(--on-dark);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  padding-top: var(--header-h);
  background:
    radial-gradient(70% 60% at 80% 30%, rgb(17 137 158 / .30), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgb(58 167 109 / .14), transparent 70%),
    linear-gradient(170deg, var(--ink-900), var(--ink-950) 72%);
}
.hero-stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-glow { position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(95 208 220 / .13), transparent);
  transform: translate3d(var(--gx, 72vw), var(--gy, 34vh), 0) translate(-50%, -50%); will-change: transform; }
/* Anchored to the bottom: the tail of the S slips behind the parts strip and leaves the frame, so the yarn reads as running through the parts. */
.hero-ribbon-wrap { position: absolute; bottom: -6%; inset-inline-end: -3vw; width: min(56vw, 80vh, 880px); aspect-ratio: 173.92 / 168.47; }
.hero-ribbon { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 70px rgb(17 137 158 / .45)); }
/* Mirror the drawing itself for RTL, so the elements that animate keep a plain transform. */
[dir='rtl'] .ribbon-fill { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
.hero-thread { position: absolute; inset: 0; width: 100%; height: 100%; }
.thread { fill: none; stroke: var(--teal-300); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.thread.t1 { opacity: .5; stroke-width: 1.4; }
.thread.t2 { opacity: .24; stroke-width: 1; }
.thread.t3 { opacity: .12; stroke-width: 1; }
[dir='rtl'] .thread { transform: scaleX(-1); transform-box: view-box; transform-origin: center; }

.hero-inner { flex: 1; display: flex; align-items: center; padding-block: clamp(28px, 6vh, 72px) clamp(20px, 4vh, 48px); }
.hero-copy { max-width: min(780px, 58%); }
.hero-kicker { display: block; text-wrap: balance; margin-bottom: clamp(16px, 2.6vh, 26px); color: var(--teal-300); font-size: .9rem; font-weight: 650; letter-spacing: .02em; }
.hero-title {
  color: #fff; font-weight: 800; letter-spacing: -.025em; line-height: 1.06; white-space: pre-line;
  font-size: clamp(2.3rem, min(5vw, 8vh), 4.9rem); margin-bottom: clamp(16px, 2.6vh, 26px);
}
:lang(zh) .hero-lead { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .hero-title { font-size: clamp(2.4rem, min(5.6vw, 8.6vh), 5.4rem); line-height: 1.2; letter-spacing: .01em; }
:lang(ar) .hero-title, :lang(hi) .hero-title { line-height: 1.32; letter-spacing: 0; font-size: clamp(2rem, min(4.4vw, 7vh), 3.8rem); }
:lang(vi) .hero-title { font-size: clamp(2.1rem, min(4.6vw, 7.4vh), 4.1rem); line-height: 1.12; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.16rem); color: var(--on-dark-muted); max-width: 36em; margin-bottom: clamp(22px, 3.6vh, 36px); }
.hero-search {
  display: flex; align-items: center; gap: 8px; padding: 6px; padding-inline-start: 18px; max-width: 600px;
  background: #fff; border-radius: 16px; color: var(--text);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / .7), 0 0 0 0 rgb(95 208 220 / 0); transition: box-shadow .3s var(--ease);
}
.hero-search:focus-within { box-shadow: 0 24px 50px -24px rgb(0 0 0 / .7), 0 0 0 4px rgb(95 208 220 / .35); }
.hero-search > .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 48px; font-size: 1rem; }
.hero-search input::placeholder { color: #6b7e83; }
.hero-search .btn { min-width: 96px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Parts rail: drifts slowly under a mouse, swipes natively on touch. */
.hero-rail {
  position: relative; padding-bottom: clamp(18px, 3.4vh, 36px);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.hero-rail::-webkit-scrollbar { display: none; }
.rail-track { list-style: none; margin: 0; padding: 6px var(--gutter); display: flex; gap: 12px; width: max-content; }
.rail-track li { flex: none; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
.rail-track a { position: relative; display: block; width: clamp(148px, 13vw, 200px); aspect-ratio: 327 / 171; border-radius: 12px; overflow: hidden; background: #1c1b23;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s; }
.rail-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.rail-track span { position: absolute; inset-inline-start: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgb(4 27 33 / .72); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; direction: ltr; }
.rail-track a:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(95 208 220 / .5), 0 18px 30px -16px rgb(0 0 0 / .8); }
.rail-track a:hover img { transform: scale(1.06); }
.rail-track a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-rail.is-looping { overflow: hidden; scroll-snap-type: none; }
  .hero-rail.is-looping .rail-track { animation: rail var(--rail-duration, 70s) linear infinite; }
  .hero-rail.is-looping:hover .rail-track { animation-play-state: paused; }
  [dir='rtl'] .hero-rail.is-looping .rail-track { animation-name: rail-rtl; }
}
@keyframes rail { to { transform: translateX(-50%); } }
@keyframes rail-rtl { to { transform: translateX(50%); } }

/* Numbers band directly under the stage. */
.proof { background: var(--ink-950); color: var(--on-dark); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-block: clamp(26px, 4vw, 44px); padding-inline-end: 16px; }
.stats > div + div { padding-inline-start: clamp(16px, 3vw, 36px); border-inline-start: 1px solid rgb(255 255 255 / .1); }
.stats dd { margin: 0; font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--on-dark-muted); font-size: .95rem; }

@media (max-width: 1100px) {
  .hero-copy { max-width: min(680px, 64%); }
  .hero-ribbon-wrap { inset-inline-end: -12vw; width: min(62vw, 76vh); }
}
@media (max-width: 860px) {
  .hero-copy { max-width: 100%; }
  .hero-inner { align-items: flex-end; }
  /* Narrow screens: the whole S sits in the free band above the copy; its tail exits off the start edge. */
  .hero { --ribbon-w: min(36vw, 20vh, 280px); }
  .hero-ribbon-wrap { top: calc(var(--header-h) + 4px); bottom: auto; inset-inline-end: auto; inset-inline-start: -5%; width: var(--ribbon-w); opacity: .85; }
  /* Room is kept for the S, so long headlines (English, Hindi) push the copy down instead of running over it. */
  .hero-inner { padding-top: calc(var(--ribbon-w) * .97 + 12px); }
  .hero-title { font-size: clamp(2.3rem, 6.8vw, 3.9rem); }
  :lang(zh) .hero-title { font-size: clamp(2.4rem, 7.6vw, 4.4rem); }
  :lang(ar) .hero-title, :lang(hi) .hero-title, :lang(vi) .hero-title { font-size: clamp(2rem, 6vw, 3.4rem); }
  .hero-lead { font-size: 1.05rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .1); }
}
@media (max-width: 560px) {
  .hero-inner { padding-bottom: 18px; }
  .hero-kicker { font-size: .84rem; }
  .hero-lead { font-size: .98rem; }
  .hero-search { flex-wrap: wrap; padding: 6px; }
  .hero-search > .icon { display: none; }
  .hero-search input { padding-inline: 12px; }
  .hero-search .btn { flex: 1 0 100%; min-height: 46px; }
  .hero-ctas { gap: 10px; margin-top: 12px; }
  .hero-ctas .btn { flex: 1 1 auto; padding: 0 14px; font-size: .92rem; }
  .rail-track a { width: 136px; }
  .stats dd { font-size: 2.1rem; }
  .stats dt { font-size: .88rem; }
}
/* Short phones: the search box matters more than the S, so the S steps out of the first screen. */
@media (max-height: 740px) and (max-width: 860px) {
  .hero-ribbon-wrap { display: none; }
  .hero-inner { padding-top: 20px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-inner { padding-block: 32px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(170deg, var(--ink-900), var(--ink-950)); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
:lang(zh) .section-head h2 { letter-spacing: .01em; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; max-width: 40em; }
.section-head.split .section-lead { margin: 0; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; gap: 12px; } }

/* series cards */
.series-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.series-grid:empty { min-height: 300px; border-radius: var(--radius); background: linear-gradient(90deg, var(--tint), #fff, var(--tint)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.section-tint .series-grid:empty { background-image: linear-gradient(90deg, #e9eeee, #f7f9f9, #e9eeee); }
@keyframes shimmer { to { background-position: -200% 0; } }
.series-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
/* A soft light follows the pointer across the card. */
.series-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgb(17 137 158 / .12), transparent 65%);
  box-shadow: inset 0 0 0 1px rgb(17 137 158 / .35);
}
@media (hover: hover) { .series-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(4 27 33 / .04), 0 22px 40px -22px rgb(4 27 33 / .4); border-color: transparent; }
.series-card:hover::after { opacity: 1; } }
.series-card:active { transform: translateY(-1px) scale(.985); }
.series-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #f4f6f6; overflow: hidden; }
.series-img img { width: 70%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.series-card.is-photo .series-img { background: #1c1b23; }
.series-card.is-photo .series-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
@media (hover: hover) { .series-card:hover .series-img img { transform: scale(1.06); } }
.series-meta { display: grid; gap: 6px; padding: 16px 18px 18px; }
.series-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.series-name .nowrap { white-space: nowrap; }
.series-count { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.series-count .icon { color: var(--teal-600); transition: translate .35s var(--ease-out); }
.series-card:hover .series-count .icon { translate: 4px 0; }
[dir='rtl'] .series-card:hover .series-count .icon { translate: -4px 0; }
.series-grid.types { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* 11 part types: six across leaves a full second row of five instead of a lone card. */
@media (min-width: 1100px) { .series-grid.types { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rail-progress { display: none; }

/* Phones: each series list becomes a two-row strip you swipe sideways, with a progress line under it. */
@media (max-width: 640px) {
  .series-grid, .series-grid.types {
    grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: minmax(150px, 44vw); gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .series-grid::-webkit-scrollbar { display: none; }
  .series-card { scroll-snap-align: start; }
  .series-meta { padding: 12px 12px 14px; gap: 4px; }
  .series-name { font-size: .93rem; }
  .series-count { font-size: .84rem; }
  .rail-progress { display: block; position: relative; height: 3px; margin-top: 14px; border-radius: 3px; background: rgb(4 27 33 / .08); overflow: hidden; }
  .rail-progress span { position: absolute; inset-block: 0; left: 0; width: var(--thumb, 40%); border-radius: inherit; background: var(--ink-900); transform: translateX(var(--pos, 0)); }
  [dir='rtl'] .rail-progress span { left: auto; right: 0; }
}

/* find: three ways to a part, joined by one line */
.find-flow { position: relative; }
.find-flow { --find-gap: clamp(20px, 3vw, 40px); }
.find-line { position: absolute; top: 28px; left: 28px; right: calc((100% - 2 * var(--find-gap)) / 3 - 28px); height: 1px; background: linear-gradient(90deg, var(--teal-300), rgb(95 208 220 / .2)); transform-origin: left center; }
[dir='rtl'] .find-line { left: calc((100% - 2 * var(--find-gap)) / 3 - 28px); right: 28px; background: linear-gradient(-90deg, var(--teal-300), rgb(95 208 220 / .2)); transform-origin: right center; }
.find-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--find-gap); }
.find-steps a { display: block; height: 100%; text-decoration: none; border-radius: var(--radius); outline-offset: 6px; }
.step-icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 24px;
  background: var(--ink-900); color: var(--teal-300); box-shadow: inset 0 0 0 1px rgb(95 208 220 / .45), 0 0 0 8px var(--ink-900);
  transition: background-color .3s, color .3s, transform .35s var(--ease-out), box-shadow .3s;
}
.step-icon .icon { width: 24px; height: 24px; }
.find-steps h3 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin-bottom: 8px; }
.find-steps h3::after { content: '→'; color: var(--teal-300); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease-out); }
[dir='rtl'] .find-steps h3::after { content: '←'; transform: translateX(6px); }
.find-steps p { color: var(--on-dark-muted); max-width: 26em; }
.find-steps a:hover .step-icon { background: var(--teal-300); color: var(--ink-950); transform: scale(1.08); }
.find-steps a:hover h3::after { opacity: 1; transform: none; }
.find-steps a:active .step-icon { transform: scale(.96); }
@media (max-width: 800px) {
  /* Stacked: short connectors run from each node to the next one. */
  .find-line { display: none; }
  .find-steps li { position: relative; }
  .find-steps li:not(:last-child)::before { content: ''; position: absolute; top: 56px; bottom: -28px; inset-inline-start: 28px; width: 1px; background: rgb(95 208 220 / .45); }
  .find-steps { grid-template-columns: 1fr; gap: 28px; }
  .find-steps a { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
  .step-icon { grid-row: span 2; margin: 0; }
  .find-steps h3 { font-size: 1.12rem; margin: 14px 0 4px; }
}

/* capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.cap { padding: 32px 28px 8px 0; padding-inline: 0 28px; }
.cap + .cap { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.cap > .icon { width: 30px; height: 30px; color: var(--teal-600); stroke-width: 1.5; margin-bottom: 22px; transition: transform .4s var(--ease-out); }
.cap:hover > .icon { transform: translateY(-3px) rotate(-6deg); }
.cap h3 { font-size: 1.12rem; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .cap:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 560px) {
  /* One column, icon beside the title: full-width lines read cleanly in Chinese. */
  .cap-grid { grid-template-columns: 1fr; border-top: 0; }
  .cap, .cap + .cap { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; padding: 18px 0 20px; border-inline-start: 0; border-top: 1px solid var(--line); margin: 0; }
  .cap > .icon { width: 26px; height: 26px; margin: 0; grid-row: span 2; }
  .cap h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .cap p { font-size: .94rem; }
}

/* about */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #c9d5d7; }
.about-photo img { width: 100%; aspect-ratio: 806 / 420; object-fit: cover; }
.about-photo figcaption { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: rgb(4 27 33 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .86rem; line-height: 1.45; }
.about-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-copy blockquote { margin: 28px 0 0; font-weight: 750; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--ink-800); }
.about-copy blockquote::before { content: '“'; display: block; height: .55em; margin-bottom: 4px; font-size: 3em; line-height: 1; color: var(--teal-500); font-family: Georgia, 'Times New Roman', serif; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .about-photo figcaption { position: static; border-radius: 0; background: var(--ink-900); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* faq: plain questions and answers, readable by people and by crawlers alike */
.faq { padding-bottom: clamp(32px, 5vw, 64px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.1rem; line-height: 1.4; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-inline-end: 4px;
  border: solid var(--teal-600); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .faq-item summary:hover { color: var(--teal-600); } }
.faq-item p { color: var(--muted); padding: 0 0 24px; max-width: 46em; }
.faq-item[open] p { animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .faq-item summary { font-size: 1.02rem; padding: 18px 0; }
}

/* languages */
.languages { padding-block: clamp(48px, 6vw, 80px); }
.lang-band { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.lang-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.lang-band p { color: var(--muted); max-width: 46em; }
.lang-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pills button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.lang-pills button:hover { border-color: var(--ink-900); }
.lang-pills button[aria-current='true'] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
@media (max-width: 860px) { .lang-band { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-intro h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.contact-intro > p { color: var(--on-dark-muted); font-size: 1.06rem; margin-bottom: 28px; }
.address-block { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); }
.address-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-300); margin-bottom: 10px; }
.address-block p { color: var(--on-dark); margin-bottom: 12px; }
.address-block a { display: inline-flex; gap: 6px; align-items: center; color: var(--teal-300); font-weight: 600; text-decoration: none; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { border-radius: var(--radius); border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); padding: 24px; }
.contact-card header { margin-bottom: 14px; }
.contact-card h3 { font-size: 1.15rem; }
.contact-card header p { color: var(--on-dark-muted); font-size: .9rem; margin-top: 4px; }
.c-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.c-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: rgb(255 255 255 / .03); text-decoration: none; text-align: start; color: inherit; transition: background-color .2s, border-color .2s; min-width: 0; }
.c-row:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); }
.c-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgb(95 208 220 / .14); color: var(--teal-300); }
.c-icon.c-whatsapp { background: rgb(37 211 102 / .16); color: #4ee38a; }
.c-icon.c-wechat { background: rgb(7 193 96 / .14); color: #5fdb98; }
.c-text { display: grid; min-width: 0; }
.c-label { font-size: .76rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .08em; }
:lang(ar) .c-label, :lang(hi) .c-label, :lang(zh) .c-label { letter-spacing: 0; text-transform: none; }
.c-value { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-hint { margin-inline-start: auto; color: var(--on-dark-muted); }
.contact-card footer { margin-top: 14px; font-size: .86rem; color: var(--on-dark-muted); }
.contact-card footer span { color: var(--teal-300); margin-inline-end: 6px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--ink-950); color: var(--on-dark-muted); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { filter: brightness(0) invert(1); opacity: .9; }
.footer-brand strong { color: #fff; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { text-decoration: none; color: var(--on-dark); font-weight: 600; }
.footer-nav a:hover { color: var(--teal-300); }
.disclaimer { grid-column: 1 / -1; font-size: .8rem; line-height: 1.6; padding-top: 24px; padding-inline-end: max(0px, 100% - 62em); border-top: 1px solid rgb(255 255 255 / .08); }
.copyright { grid-column: 1 / -1; font-size: .8rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* floating buttons */
.fab-wa { position: fixed; z-index: 30; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -10px rgb(15 122 64 / .7); transition: transform .3s var(--ease-out), box-shadow .3s; }
.fab-wa:hover { transform: scale(1.07); box-shadow: 0 16px 34px -10px rgb(15 122 64 / .8); }
.fab-wa:active { transform: scale(.94); }
.fab-wa .icon { width: 28px; height: 28px; }
.reopen { position: fixed; z-index: 30; inset-inline-start: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; height: 46px; border-radius: 999px; border: 0; background: var(--ink-900); color: #fff; font-weight: 700; box-shadow: 0 12px 30px -12px rgb(4 27 33 / .7); animation: rise .5s var(--ease); }
.reopen .icon { color: var(--teal-300); }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.fab-wa, .reopen { transition: transform .35s var(--ease-out), opacity .25s; }
:is(.reading-down, .at-footer) :is(.fab-wa, .reopen), .in-hero .fab-wa { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
@media (min-width: 481px) { .fab-wa { display: none; } }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: opacity .25s, translate .25s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- dialogs (shared) ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: #fff; max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgb(4 27 33 / .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: pop .28s var(--ease); }
dialog:focus { outline: none; }
@keyframes pop { from { opacity: 0; translate: 0 12px; } }

/* survey */
.survey { width: min(600px, calc(100% - 24px)); border-radius: 22px; overflow: auto; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); }
.sv-head { position: relative; padding: 24px 28px 6px; }
.sv-head .icon-btn { position: absolute; top: 14px; inset-inline-end: 14px; }
.sv-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sv-step { font-size: .82rem; font-weight: 700; color: var(--teal-600); }
.sv-progress { height: 4px; border-radius: 4px; background: var(--tint); overflow: hidden; margin-bottom: 20px; --p: .33; }
.sv-progress span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--teal-500), var(--leaf)); border-radius: 4px; transition: width .4s var(--ease); }
.survey h2 { font-size: 1.5rem; margin-bottom: 6px; }
.sv-lead { color: var(--muted); }
.sv-body { padding: 8px 28px 28px; }
.q { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.q legend { font-weight: 700; margin-bottom: 10px; padding: 0; font-size: 1rem; }
.q legend small { font-weight: 500; color: var(--muted); font-size: .85rem; margin-inline-start: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .93rem; font-weight: 550; line-height: 1.25; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--ink-700); }
.chip input:checked + span { background: var(--teal-50); border-color: var(--teal-500); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--teal-500); }
.chip input:checked + span::before { content: ''; width: 7px; height: 12px; border: solid var(--teal-600); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); margin-inline-end: 2px; }
.chip input:focus-visible + span { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.sv-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sv-actions .link-btn { color: var(--muted); }
.sv-done { display: grid; gap: 10px; text-align: center; }
.done-mark { justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); margin-bottom: 8px; }
.done-mark .icon { width: 32px; height: 32px; stroke-width: 2.2; }
.sv-offline { background: #fff7e6; color: #7a4b00; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }

/* form fields */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-800); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; font-size: 1rem; font-weight: 500; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgb(17 137 158 / .16); }
.field small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.field-note { font-size: .84rem; color: var(--muted); margin: 10px 0 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--teal-500); }
.form-error { margin-top: 12px; color: #b42318; font-weight: 600; font-size: .9rem; }
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .survey { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94dvh; }
  .survey[open] { animation: sheet .32s var(--ease); }
  .sv-head { padding: 20px 20px 4px; }
  .sv-body { padding: 4px 20px calc(20px + env(safe-area-inset-bottom)); }
  .survey h2 { font-size: 1.3rem; }
  .sv-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 16px -20px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); }
  .chip span { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
  .q { margin-bottom: 14px; }
  .sv-head .sv-lead { font-size: .92rem; }
}
@keyframes sheet { from { translate: 0 40px; opacity: .4; } }

/* inquiry drawer */
.drawer { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100%); border-radius: 0; display: flex; flex-direction: column; }
.drawer[open] { display: flex; animation: slide .3s var(--ease); }
@keyframes slide { from { translate: 30px 0; opacity: .3; } }
[dir='rtl'] .drawer[open] { animation-name: slide-rtl; }
@keyframes slide-rtl { from { translate: -30px 0; opacity: .3; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; }
.drawer-count { color: var(--muted); font-size: .9rem; margin-inline-end: auto; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 16px; align-content: start; }
.drawer-empty { text-align: center; padding: 48px 8px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.drawer-empty > .icon { width: 40px; height: 40px; color: var(--line-strong); }
.inq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inq-list li { display: grid; grid-template-columns: 52px 1fr 92px 40px; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.inq-list img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f4f6f6; mix-blend-mode: multiply; }
.inq-list .code { font-weight: 700; }
.qty input { width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 8px; text-align: center; }
.drawer-actions { display: grid; gap: 8px; }
.inq-form { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--tint); }
.drawer-body > .link-btn { justify-self: center; color: var(--muted); }

/* ---------- part page (/parts/<code>) ---------- */
.part-page { padding-top: clamp(16px, 3vw, 36px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: clamp(16px, 2.6vw, 28px); font-size: .88rem; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); font-weight: 650; }
.crumbs span[aria-hidden] { opacity: .45; }
.part { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.part-media { position: sticky; top: calc(var(--header-h) + 20px); margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #f4f6f6; }
.part-media img { width: auto; height: auto; max-width: 78%; max-height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.part-media.is-small img { width: 56%; }
.part-media.is-photo { aspect-ratio: 327 / 171; background: #1c1b23; }
.part-media.is-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; mix-blend-mode: normal; }
.part-series a { color: var(--teal-600); font-weight: 700; font-size: .95rem; text-decoration: none; }
.part-series a:hover { text-decoration: underline; text-underline-offset: 3px; }
.part-code { margin: 6px 0 14px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.part-lead { color: var(--muted); max-width: 40em; margin-bottom: 22px; }
.part-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.part-facts div { display: grid; grid-template-columns: 10em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.part-facts dt { color: var(--muted); }
.part-facts dd { margin: 0; font-weight: 650; }
.part-facts a { color: var(--teal-600); text-decoration: none; }
.part-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.part-actions .btn-primary.is-added { background: var(--leaf); }
.part-note { font-size: .85rem; color: var(--muted); max-width: 40em; }
.part-related { background: var(--tint); padding-block: clamp(40px, 6vw, 72px); }
.part-related h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.related-list { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; transition: border-color .2s, transform .15s var(--ease); }
@media (hover: hover) { .related-list a:hover { border-color: var(--ink-900); } }
.related-list a:active { transform: scale(.96); }
.part-all { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-600); font-weight: 700; text-decoration: none; }
@media (max-width: 760px) {
  .part { grid-template-columns: 1fr; }
  .part-media { position: static; }
  .part-facts div { grid-template-columns: 8.5em 1fr; }
  .part-actions .btn { flex: 1 1 auto; }
}

/* ---------- catalogue page ---------- */
.p-hero { background: linear-gradient(180deg, var(--teal-50), #fff); padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 28px); }
.p-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.p-lead { color: var(--muted); max-width: 52em; }
.p-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.p-toolbar-inner { display: flex; gap: 10px; padding-block: 12px; }
.p-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 50px; padding-inline: 14px 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.p-search:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgb(17 137 158 / .14); }
.p-search > .icon { color: var(--muted); }
.p-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; height: 100%; }
.p-search input::-webkit-search-cancel-button { display: none; }
.photo-btn { min-height: 50px; }
.p-chips { display: none; }
.p-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 80px; }
.p-filters { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; max-height: calc(100dvh - var(--header-h) - 110px); overflow: auto; padding-inline-end: 6px; scrollbar-width: thin; }
.f-group { margin-top: 18px; }
.f-group h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 6px; padding-inline-start: 10px; }
:lang(ar) .f-group h3, :lang(hi) .f-group h3, :lang(zh) .f-group h3 { letter-spacing: 0; font-size: .85rem; }
.f-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: start; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font-size: .93rem; font-weight: 550; line-height: 1.3; transition: background-color .15s; }
.f-item:hover { background: var(--tint); }
.f-item .n { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.f-item[aria-pressed='true'] { background: var(--ink-900); color: #fff; }
.f-item[aria-pressed='true'] .n { color: var(--teal-300); }
.f-item[data-zero] { opacity: .45; }
.f-all { font-weight: 700; }
.p-active { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.p-active-title { font-size: 1.35rem; }
.p-count { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.p-active-tools { display: flex; gap: 18px; align-items: center; }
.p-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.p-card { position: relative; content-visibility: auto; contain-intrinsic-size: 176px 260px; }
.p-open { width: 100%; height: 100%; display: flex; color: inherit; text-decoration: none; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: start; overflow: hidden; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.p-open:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.p-img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #f4f6f6; overflow: hidden; }
.p-img img { max-width: 78%; max-height: 78%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.p-img.is-photo { background: #1c1b23; }
.p-img.is-photo img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.p-info { display: grid; gap: 3px; padding: 12px 14px 14px; min-width: 0; }
.p-info .code { font-weight: 750; font-size: 1rem; justify-self: start; }
.p-cap { font-size: .82rem; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-series { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-add { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgb(255 255 255 / .92); color: var(--ink-900); box-shadow: var(--shadow-sm); transition: background-color .15s, color .15s, transform .15s; }
.p-add:hover { border-color: var(--ink-900); }
.p-add:active { transform: scale(.92); }
.p-add[aria-pressed='true'] { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.p-state { text-align: center; padding: 64px 16px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.p-state > .icon { width: 40px; height: 40px; color: var(--line-strong); }
.p-state h3 { color: var(--text); font-size: 1.2rem; }
.state-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal-500); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-sentinel { height: 1px; }

@media (max-width: 900px) {
  .p-layout { grid-template-columns: 1fr; padding-top: 16px; }
  .p-filters { display: none; }
  .p-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 clamp(16px, 4vw, 40px) 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .p-chips::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; scroll-snap-align: start; }
  .chip-btn .n { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
  .chip-btn[aria-pressed='true'] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
  .chip-btn[aria-pressed='true'] .n { color: var(--teal-300); }
  .chip-btn[data-zero] { opacity: .45; }
  .chip-sep { flex: none; align-self: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-inline: 8px 2px; border-inline-start: 1px solid var(--line-strong); margin-inline-start: 4px; }
}
@media (max-width: 560px) {
  .p-hero .p-lead { display: none; }
  .p-hero { padding: 22px 0 14px; }
  .p-toolbar-inner { padding-block: 10px; }
  .photo-btn span { display: none; }
  .photo-btn { padding: 0 14px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-info { padding: 10px 10px 12px; }
  .p-add { width: 34px; height: 34px; top: 6px; inset-inline-end: 6px; }
  .p-active-title { font-size: 1.15rem; }
}

/* detail dialog */
.detail { width: min(980px, calc(100% - 32px)); border-radius: 22px; overflow: hidden; display: none; }
.detail[open] { display: grid; grid-template-columns: 1.1fr 1fr; }
.detail-media { display: grid; place-items: center; background: #f4f6f6; min-height: 420px; padding: 32px; }
.detail-media img { width: auto; height: auto; max-width: 100%; max-height: 62dvh; object-fit: contain; mix-blend-mode: multiply; }
.detail-media.is-small img { width: 280px; max-width: 80%; image-rendering: auto; }
.detail-media.is-photo { background: #1c1b23; padding: 0; }
.detail-media.is-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; mix-blend-mode: normal; }
.detail-body { padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 14px; overflow: auto; max-height: calc(100dvh - 32px); }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-series { font-size: .85rem; font-weight: 700; color: var(--teal-600); }
.detail-nav { display: flex; gap: 2px; margin-inline-end: -10px; }
.detail-code { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.01em; }
.detail-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.detail-facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; font-weight: 600; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.detail-actions .btn-primary, .detail-actions .btn-wa { grid-column: span 1; }
.detail-actions .btn { padding: 0 14px; white-space: normal; text-align: center; }
.detail-actions .is-added { background: var(--leaf); }
.detail-note { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  .detail { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94dvh; overflow: auto; }
  .detail[open] { display: block; animation: sheet .32s var(--ease); }
  .detail-media { min-height: 0; aspect-ratio: 4 / 3; padding: 56px 20px 20px; overflow: hidden; }
  .detail-media img { max-height: 100%; }
  .detail-media.is-photo { aspect-ratio: 327 / 171; }
  .detail-body { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); max-height: none; overflow: visible; }
  .detail-top { position: absolute; top: 10px; inset-inline: 10px; }
  .detail-series { background: rgb(255 255 255 / .9); padding: 4px 10px; border-radius: 999px; }
  .detail-nav { margin: 0; background: rgb(255 255 255 / .9); border-radius: 12px; }
}

/* photo dialog */
.photo { width: min(860px, calc(100% - 32px)); border-radius: 22px; padding: 24px 28px 28px; overflow: auto; }
.photo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.photo-head h2 { font-size: 1.4rem; }
.photo-lead { color: var(--muted); margin: 6px 0 18px; font-size: .95rem; }
.photo-drop { display: grid; place-items: center; gap: 12px; min-height: 180px; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--tint); cursor: pointer; padding: 16px; transition: border-color .2s, background-color .2s; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--teal-500); background: var(--teal-50); }
.photo-drop.has-preview { grid-template-columns: auto 1fr; min-height: 0; justify-items: start; }
.photo-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.photo-cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-900); }
.photo-cta .icon { width: 28px; height: 28px; color: var(--teal-500); }
.photo-status { margin: 16px 0 12px; font-weight: 600; min-height: 1.6em; }
.photo-status.busy::before { content: ''; display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-inline-end: 8px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--teal-500); animation: spin .8s linear infinite; }
.p-grid.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 560px) {
  .photo { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94dvh; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
  .p-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .series-card:hover, .rail-track a:hover { transform: none; }
}

/* Until the page has picked its language, keep the copy hidden so it doesn't flash in English first.
   If a script never arrives, the copy shows anyway after a short wait. */
.js:not(.ready) :is(.hero-copy, .hero-rail, main > :not(.hero), .site-footer, .site-nav, .header-tools) { opacity: 0; animation: failsafe-show 0s 1.6s forwards; }
@keyframes failsafe-show { to { opacity: 1; } }
