/* The KPS — thekpsza.com. Shares the trade portal's dark palette and lime accent. */
:root {
  --bg: #0d0e0d;
  --bg-2: #141514;
  --card: #1a1b1a;
  --line: #2a2c2a;
  --line-2: #3a3c3a;
  --fg: #f5f5f3;
  --muted: #a6a7a3;
  --lime: #c7f000;
  --lime-ink: #111;
  --radius: 10px;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --font: Inter, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hdr: 76px;
  --sw: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + var(--sw) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, transform .18s; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #d6ff1a; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: rgba(13,14,13,.35); }
.btn-ghost:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--lime); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-arrow i { font-style: normal; transition: transform .18s; }
.link-arrow:hover i { transform: translateX(4px); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(13,14,13,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.hdr.scrolled { border-bottom-color: var(--line); background: rgba(13,14,13,.94); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.logo-mark { display: block; height: 38px; }
.logo-mark svg { height: 100%; width: auto; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo-txt b { font-size: 17px; letter-spacing: .16em; font-weight: 700; }
.logo-txt small { margin-top: 5px; font-size: 9.5px; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 500; color: #d9dad6; }
.nav a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav a[aria-current] { color: var(--lime); }
.hdr-cta { display: flex; gap: 10px; }
.hdr-cta .btn { min-width: 178px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, top .2s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: var(--bg); padding: 8px var(--pad) 28px; height: calc(100dvh - var(--hdr) - var(--sw)); overflow-y: auto; }
.mnav nav a { display: flex; justify-content: space-between; align-items: center; height: 58px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 19px; font-weight: 600; }
.mnav nav a i { font-style: normal; color: var(--muted); }
.mnav nav a[aria-current] { color: var(--lime); }
.mnav-cta { display: grid; gap: 10px; margin-top: 24px; }
.mnav-cta .btn { height: 52px; }
.mnav-contact { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
.mnav-contact a { text-decoration: none; }

/* hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; margin-top: calc((var(--hdr) + var(--sw)) * -1); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,13,.55) 0%, rgba(13,14,13,.15) 30%, rgba(13,14,13,.7) 64%, var(--bg) 100%), linear-gradient(90deg, rgba(13,14,13,.75) 0%, rgba(13,14,13,0) 70%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--hdr) + var(--sw) + 80px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(38px, 6.2vw, 80px); letter-spacing: -0.035em; max-width: 15ch; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: #d4d5d1; max-width: 58ch; line-height: 1.55; }
.lead-sm { margin-top: 14px; color: var(--muted); font-size: 17px; }
.lead-sm a { color: var(--fg); }
.hero-cta, .row-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.eyebrow, .kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 500; }
.eyebrow { margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(199,240,0,.18); margin-right: 8px; vertical-align: 1px; }
.eyebrow .dot { margin-right: 0; }

/* stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats-grid div { padding: 30px 20px 30px 0; display: flex; flex-direction: column; gap: 6px; }
.stats-grid div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats-grid b { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats-grid span { color: var(--muted); font-size: 14px; }

/* sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-tight { padding-top: clamp(32px, 4vw, 56px); }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 46px); max-width: 24ch; }

/* brand tiles */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile { height: clamp(64px, 7vw, 96px); background: var(--tile, #fff); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 0 12%; transition: transform .2s, box-shadow .2s; }
.brand-tile img { max-height: 42%; max-width: 100%; width: auto; object-fit: contain; }
.brand-tile[href*="divoom"] img { max-height: 54%; }
.brand-tile[href*="baseus"] img { max-height: 76%; }
.brand-tile[href*="ringconn"] img, .brand-tile[href*="sharge"] img { max-height: 30%; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -10px rgba(199,240,0,.35); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pillar img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pillar img[src*="container"] { object-position: 88% 50%; }
.pillar img[src*="warehouse"] { object-position: 70% 0; }
.pillar > div { padding: 22px 22px 26px; }
.pillar h3 { font-size: 20px; margin: 10px 0 10px; }
.pillar p:not(.kicker) { color: var(--muted); font-size: 15px; }

/* portal */
.portal { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portal h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 48px); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #dcddd9; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.portal-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 6px rgba(255,255,255,.02); transition: transform .3s; }
.portal-shot:hover { transform: translateY(-4px); }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.partner { background: #fff; border-radius: var(--radius); height: 84px; display: flex; align-items: center; justify-content: center; padding: 0 14%; }
.partner img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }

/* why */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why-4 { grid-template-columns: repeat(4, 1fr); }
.why > div { padding: 28px 24px 8px 0; }
.why > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.why span { font-family: var(--mono); color: var(--lime); font-size: 13px; }
.why h3 { font-size: 19px; margin: 14px 0 10px; }
.why p { color: var(--muted); font-size: 15px; }

/* band */
.band { position: relative; overflow: hidden; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,13,.94) 0%, rgba(13,14,13,.78) 45%, rgba(13,14,13,.35) 100%); }
.band-in { position: relative; z-index: 1; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.band h2 { margin-top: 12px; font-size: clamp(32px, 4vw, 54px); }
.band p:not(.kicker) { margin-top: 16px; color: #d4d5d1; max-width: 48ch; font-size: 17px; }

/* page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 168px) 0 clamp(56px, 7vw, 96px); margin-top: calc((var(--hdr) + var(--sw)) * -1); padding-top: calc(var(--hdr) + var(--sw) + clamp(72px, 9vw, 128px)); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,13,.92) 0%, rgba(13,14,13,.7) 50%, rgba(13,14,13,.35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(13,14,13,0) 40%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 16px; font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -0.03em; max-width: 18ch; }
.page-hero-plain { border-bottom: 1px solid var(--line); background: radial-gradient(900px 400px at 85% 0%, rgba(199,240,0,.08), transparent 60%), var(--bg); }
.page-hero-plain::after { display: none; }
.nf { min-height: 70vh; }

/* split / prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-even { align-items: stretch; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 12px 0 18px; }
.prose p + p { margin-top: 14px; }
.prose p:not(.kicker) { color: #cfd0cc; font-size: 17px; }
.prose .muted { color: var(--muted); font-size: 15px; margin-top: 20px; }
.prose a { color: var(--lime); }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; font-family: var(--mono); }

/* facility */
.facility { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facility figure { margin: 0; }
.facility img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.facility figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; }
.facility figcaption b { display: block; color: var(--fg); font-size: 18px; margin-bottom: 6px; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: b; }
.benefits li { counter-increment: b; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-size: 16px; color: #dcddd9; }
.benefits li::before { content: "0" counter(b); display: block; font-family: var(--mono); color: var(--lime); font-size: 13px; margin-bottom: 14px; }

/* brand list */
.brand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.brand-card { display: grid; grid-template-columns: 220px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: calc(var(--hdr) + var(--sw) + 20px); }
.brand-card:target { border-color: var(--lime); }
.brand-card-logo { background: var(--tile, #fff); display: flex; align-items: center; justify-content: center; padding: 28px 26px; min-height: 180px; }
.brand-card-logo img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
#divoom .brand-card-logo img { max-height: 72px; }
#baseus .brand-card-logo img { max-height: 112px; }
#ringconn .brand-card-logo img, #sharge .brand-card-logo img { max-height: 40px; }
.brand-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.brand-card-body h2 { font-size: 26px; margin: 8px 0 10px; }
.brand-card-body p:not(.kicker) { color: var(--muted); font-size: 15px; flex: 1; }
.brand-card-body .link-arrow { margin-top: 18px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.steps li > span { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 19px; margin: 18px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; flex: 1; }
.steps .link-arrow { margin-top: 16px; font-size: 14px; }
.mini-steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.mini-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); font-size: 15px; }
.mini-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--lime); color: var(--lime); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.mini-steps b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 2px; }
.addr { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 15px; color: #cfd0cc; }
.addr .muted { grid-column: 1 / -1; }
.addr a { color: var(--fg); }

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery .g-wide img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gallery figure:nth-child(2) img, .gallery figure:nth-child(3) img { aspect-ratio: 4 / 3; }
.gallery { grid-template-areas: "a b" "a c" "d d"; }
.gallery figure:nth-child(1) { grid-area: a; } .gallery figure:nth-child(2) { grid-area: b; }
.gallery figure:nth-child(3) { grid-area: c; } .gallery figure:nth-child(4) { grid-area: d; }
.gallery figure:nth-child(4) img { aspect-ratio: 21 / 8; }

/* forms */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; color: #cfd0cc; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 13px; min-height: 48px; transition: border-color .15s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a6a7a3' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form input[type="date"] { color-scheme: dark; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); }
.form .invalid { border-color: #ff6b5a; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f3 { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 14px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-msg { font-size: 15px; min-height: 1px; }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: #ff8a7a; }
.form.sent > :not(.form-msg) { display: none; }
.form.sent .form-msg { font-size: 18px; padding: 32px 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* contact */
.contact-side { display: grid; gap: 12px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-decoration: none; display: block; position: relative; }
.contact-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-card p { color: #cfd0cc; font-size: 15px; }
.contact-card p + p { margin-top: 12px; }
.contact-card a { color: var(--fg); }
.contact-link p { color: var(--muted); padding-right: 30px; }
.contact-link i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--lime); font-size: 20px; transition: transform .18s; }
.contact-link:hover { border-color: var(--line-2); }
.contact-link:hover i { transform: translate(4px, -50%); }

/* map: dark monochrome base, our location in full colour (red Google pin) */
.map { position: relative; height: 400px; overflow: hidden; background: #1b1c1b; --spot: 120px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-base { filter: grayscale(1) invert(.92) contrast(.9); }
.map-spot { clip-path: circle(var(--spot) at 50% 50%); }
.map-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--spot) * 2); height: calc(var(--spot) * 2); transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--lime); box-shadow: 0 0 0 6px rgba(199,240,0,.12), 0 0 60px rgba(0,0,0,.6); pointer-events: none; }
.map-link { position: absolute; inset: 0; z-index: 1; }
.map-card { position: absolute; z-index: 2; left: var(--pad); bottom: 24px; display: grid; gap: 2px; background: rgba(13,14,13,.92); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 18px; color: var(--fg); text-decoration: none; font-size: 14px; backdrop-filter: blur(6px); }
.map-card b { font-size: 15px; }
.map-card span { color: var(--muted); }
.map-card i { font-style: normal; color: var(--lime); font-weight: 600; margin-top: 4px; }
.map-card:hover { border-color: var(--lime); }

/* form required marks */
.req { color: var(--lime); font-weight: 800; font-size: 1.15em; margin-left: 3px; }
.opt { color: var(--muted); font-weight: 400; }
.partner img[src*="tfg"] { max-height: 52px; }
.partner img[src*="massmart"] { max-height: 46px; }
.form-note { font-size: 13px; color: var(--muted); margin: -4px 0 0; }

/* stock & logistics route graphic */
.pillar-svg { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; }
.pillar-svg .rt { fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-opacity: .75; stroke-dasharray: 4 5; animation: rt-flow 1.6s linear infinite; animation-delay: var(--d); }
.pillar-svg .cd { fill: #e9eae6; }
.pillar-svg .lbl text { font: 500 9.5px var(--mono); fill: #a6a7a3; letter-spacing: .06em; }
.pillar-svg .hub { font: 600 10px var(--mono); fill: var(--lime); letter-spacing: .08em; }
.pillar-svg .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes rt-flow { to { stroke-dashoffset: -18; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pillar-svg .rt, .pillar-svg .pulse { animation: none; } }

/* back to top */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.totop.show { opacity: 1; transform: none; }
.totop svg { width: 22px; height: 22px; }
.totop:hover { filter: brightness(1.06); }

.cta-end { border-top: 1px solid var(--line); background: radial-gradient(800px 300px at 15% 100%, rgba(199,240,0,.08), transparent 60%); }
.cta-end-in { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-end h2 { font-size: clamp(26px, 3vw, 40px); max-width: 22ch; }
.cta-end .row-cta { margin-top: 0; }
.cta-end p { margin-top: 10px; }

/* footer */
.ftr { border-top: 1px solid var(--line); background: #0a0b0a; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.ftr-brand p { margin-top: 18px; color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.ftr h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.ftr-grid > div:not(.ftr-brand) a { display: block; text-decoration: none; color: #dcddd9; font-size: 15px; padding: 5px 0; }
.ftr-grid a:hover { color: var(--lime); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; }
.ftr-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

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

/* responsive */
@media (max-width: 1360px) {
  .hdr-in { gap: 24px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .hdr-cta .btn { min-width: 0; padding: 0 16px; }
}
@media (max-width: 1180px) {
  .hdr-in { gap: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: 14px; }
  .logo-txt small { display: none; }
  .hdr-cta .btn { padding: 0 13px; font-size: 13.5px; }
}
@media (max-width: 1024px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: block; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars, .facility, .steps { grid-template-columns: repeat(2, 1fr); }
  .why, .why-4 { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .why > div, .why > div + div { padding: 24px 20px 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .why > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid div:nth-child(4) { padding-left: 0; border-left: 0; }
  .stats-grid div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .portal, .split { grid-template-columns: 1fr; }
  .brand-list { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --hdr: 66px; }
  body { font-size: 16px; }
  .logo-mark { height: 32px; }
  .logo-txt b { font-size: 15px; }
  .logo-txt small { font-size: 8.5px; }
  .hero { min-height: 88svh; }
  .hero-cta .btn, .row-cta .btn { flex: 1 1 100%; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pillars, .facility, .steps { grid-template-columns: 1fr; }
  .facility img { aspect-ratio: 4 / 3; }
  .why, .why-4 { grid-template-columns: 1fr; }
  .why > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div, .stats-grid div + div { padding: 22px 0 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .stats-grid div:nth-child(-n+2) { border-top: 0; }
  .stats-grid div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .partner { height: 72px; padding: 0 12%; }
  .partner img { max-height: 34px; }
  .brand-tile { height: 62px; padding: 0 10%; }
  .brand-card { grid-template-columns: 1fr; }
  .brand-card-logo { min-height: 120px; }
  .brand-card-logo img { max-height: 40px; max-width: 62%; }
  #divoom .brand-card-logo img { max-height: 54px; }
  #baseus .brand-card-logo img { max-height: 84px; }
  #ringconn .brand-card-logo img, #sharge .brand-card-logo img { max-height: 30px; }
  .gallery { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .gallery img, .gallery .g-wide img, .gallery figure:nth-child(4) img { aspect-ratio: 3 / 2; height: auto; }
  .f2, .f3 { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .addr { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .map { height: 440px; --spot: 88px; background: var(--bg); }
  .map iframe { height: 320px; bottom: auto; }
  .map-ring { top: 160px; }
  .map-link { bottom: 120px; }
  .map-card { left: 12px; right: 12px; bottom: 12px; }
  .totop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

.btn-portal { border-color: var(--lime); color: var(--lime); background: rgba(199,240,0,.06); }
.btn-portal:hover { background: rgba(199,240,0,.14); border-color: #d6ff1a; color: #d6ff1a; }
