/* =========================================================
   VShark Solutions — redesign
   ========================================================= */
:root {
  /* Light theme — built from the VShark logo colours */
  --bg: #f5f6f8;              /* page background (cool off-white) */
  --bg-2: #eceef1;            /* alternate section background */
  --card: #ffffff;            /* cards, tiles */
  --fg: #1c2125;              /* headings & primary text */
  --fg-2: #3d454a;            /* body copy */
  --muted: #616b6f;           /* logo dark slate — labels, secondary text */
  --steel: #828b94;           /* logo steel grey — decorative */
  --line: rgba(28, 33, 37, 0.12);
  --brand: #991b2e;           /* logo maroon */
  --accent: #991b2e;
  --accent-glow: rgba(153, 27, 46, 0.22);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }  /* height:auto keeps the width/height attributes (layout-shift hints) from stretching images */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tag { color: var(--muted); display: inline-block; }
.h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.section { position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head .h2 { flex-basis: 100%; }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span { display: inline-block; will-change: transform; }

/* Film grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 100px;
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 40px -10px var(--accent-glow); }
.btn--accent::before { background: var(--fg); }
.btn--accent:hover { color: #fff; }
.btn--ghost { border: 1px solid rgba(28,33,37,.25); color: var(--fg); backdrop-filter: blur(6px); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s, gap .3s var(--ease); }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.link-arrow:hover { border-color: var(--accent); gap: 16px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; clip-path: inset(0 0 0% 0); }
.loader__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
}
.loader__inner { position: relative; width: min(520px, 80vw); display: grid; grid-template-columns: 1fr 1fr; row-gap: 14px; }
.loader__count { grid-column: 1 / -1; font-family: var(--display); font-size: clamp(72px, 16vw, 160px); line-height: .85; letter-spacing: -0.05em; font-weight: 500; }
.loader__count small { font-size: .3em; color: var(--accent); margin-left: 6px; vertical-align: top; }
.loader__bar { grid-column: 1 / -1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }
.loader__label { color: var(--muted); }
.loader__label--r { text-align: right; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9995; pointer-events: none; mix-blend-mode: normal; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(28,33,37,.35);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s;
}
.cursor__text { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--accent); background: rgba(153,27,46,.08); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__text { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  transition: transform .6s var(--ease), padding .4s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-scrolled { padding-top: 12px; padding-bottom: 12px; }
.header::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(245,246,248,.94), rgba(245,246,248,0)); opacity: 0; transition: opacity .4s; }
.header.is-scrolled::before { opacity: 1; }
.header__logo img { height: 34px; width: auto; }
.nav {
  display: flex; gap: 4px; padding: 6px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px -18px rgba(28,33,37,.25);
}
.nav__link { position: relative; padding: 8px 16px; border-radius: 100px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s, background .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--fg); background: rgba(28,33,37,.06); }
.nav__link.is-current { color: var(--accent); background: rgba(153,27,46,.07); }
.nav__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -1px; margin-left: 4px; transition: transform .3s; }
.nav__item--drop { position: relative; }
.nav__item--drop:hover .nav__link svg, .nav__item--drop:focus-within .nav__link svg { transform: rotate(180deg); }
.nav__drop { position: absolute; left: 50%; top: 100%; padding-top: 14px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop-inner { min-width: 250px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.97); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(28,33,37,.35); display: flex; flex-direction: column; }
.nav__drop-inner a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-family: var(--display); font-size: 15px; color: var(--fg); transition: background .2s, color .2s; }
.nav__drop-inner a i { font-style: normal; font-size: 10px; color: var(--accent); }
.nav__drop-inner a:hover { background: rgba(153,27,46,.07); color: var(--accent); }
.nav__drop-inner .nav__drop-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-size: 13px; color: var(--muted); justify-content: space-between; }
.nav__drop-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.75); backdrop-filter: blur(10px); position: relative; z-index: 1001; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 899; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--display); font-size: clamp(40px, 11vw, 64px); line-height: 1.15; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); padding: 6px 0; }
.menu__nav i { color: var(--accent); font-style: normal; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.menu__foot a { padding: 6px 0; }
.menu__cta { display: flex; gap: 10px; margin: 28px 0 auto; }
.menu__cta .btn { flex: 1 1 0; justify-content: center; }
.menu__cta svg.fill { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@media (max-height: 640px) { .menu__nav a { font-size: clamp(32px, 9vw, 48px); } }

@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 45%, transparent 0, rgba(245,246,248,.1) 45%, rgba(245,246,248,.8) 100%),
    linear-gradient(to top, var(--bg) 0, transparent 30%);
}
.hero__content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(64px, 11vh, 120px); max-width: 1240px; }
.hero__eyebrow { color: var(--muted); margin-bottom: 22px; }
/* headline uses the logo typeface (all caps, wide → set smaller than the other display text) */
.hero__title {
  font-family: "Singapore Sling Bold", var(--display); font-weight: 400; font-synthesis: none;
  font-size: clamp(27px, min(4.5vw, 7.15vh), 82px); line-height: 1.02; letter-spacing: 0.01em;
}
.hero__title em { text-shadow: none; }
.hero__spec { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.hero__spec-label { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.hero__spec-label::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }

/* service selector: pick which animation plays; active tab shows its scan-pass progress */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: 100px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(28,33,37,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--display); font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg);
  transition: background .35s var(--ease), color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.svc-tab i { font-style: normal; font-size: 10px; color: var(--accent); transition: color .35s; }
.svc-tab:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(153,27,46,.55); }
.svc-tab.is-active i { color: rgba(255,255,255,.7); }
.svc-tab__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255,255,255,.9); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.svc-tab.is-active .svc-tab__bar { opacity: 1; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hud { position: absolute; inset: 0; pointer-events: none; z-index: 1; color: var(--muted); line-height: 1.8; }
.hud > div { position: absolute; }
.hud__tl { top: 110px; left: var(--gutter); }
.hud__tr { top: 110px; right: var(--gutter); text-align: right; }
.hud__bl { bottom: 40px; right: calc(var(--gutter) + 140px); text-align: right; }
.hud__br { bottom: 40px; right: var(--gutter); text-align: right; }
.hud__br #hudIdx { color: var(--accent); }
.hud__live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 10px var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hud > div::before {
  content: ""; position: absolute; width: 10px; height: 10px; border-color: rgba(28,33,37,.3); border-style: solid;
}
.hud__tl::before { top: -14px; left: -14px; border-width: 1px 0 0 1px; }
.hud__tr::before { top: -14px; right: -14px; border-width: 1px 1px 0 0; }

.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--fg); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

@media (max-width: 960px) {
  .hud__bl, .hero__scroll { display: none; }
  .hud__tl, .hud__tr { top: 96px; }
}
@media (max-width: 600px) {
  .hud__br { display: none; }
  .hero__content { padding-bottom: 48px; }
}
@media (max-width: 760px) {
  .hero__content { padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom)); } /* clear the action bar */
}
@media (max-width: 600px) {
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .svc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .svc-tab { height: 42px; padding: 0 10px; font-size: 13.5px; gap: 7px; justify-content: center; }
  .svc-tab i { display: none; }
  .hero__spec { margin-top: 22px; }
  .hero__actions { margin-top: 22px; }
}

/* ---------- Section heading (title left, controls right) ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .tag { margin-bottom: 18px; }
.sec-head__sub { max-width: 520px; margin-top: 18px; font-size: clamp(15px, 1.2vw, 17px); }
.section { padding: clamp(80px, 10vw, 140px) var(--gutter); }

/* ---------- Products: angled tiles echoing the slanted strokes of the logo ---------- */
.products { background: var(--bg); overflow: hidden; }
.prod-grid { --cut: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 70px; align-items: start; }
.prod:nth-child(2) { margin-top: 56px; }   /* staggered heights */
.prod:nth-child(3) { margin-top: 22px; }
.prod { position: relative; filter: drop-shadow(0 18px 30px rgba(28,33,37,.12)); transition: filter .5s; }
.prod:hover { filter: drop-shadow(0 26px 40px rgba(153,27,46,.2)); }
.prod__tile {
  position: relative; background: var(--card);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.prod__stage { position: relative; height: 250px; overflow: hidden; background: linear-gradient(160deg, #f7f8f9 0, #e9ecef 100%); }
.prod__num {
  position: absolute; right: 18px; top: 4px; font-family: var(--display); font-weight: 600; font-size: 96px; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(28,33,37,.14); transition: -webkit-text-stroke-color .5s;
}
.prod:hover .prod__num { -webkit-text-stroke-color: rgba(153,27,46,.55); }
.prod__slash { position: absolute; top: 0; bottom: 0; transition: transform .8s var(--ease); }
.prod__slash--red { left: 14%; width: 46%; background: linear-gradient(180deg, #a8213a, var(--brand)); clip-path: polygon(0 0, 42% 0, 100% 100%, 58% 100%); opacity: .92; }
.prod__slash--grey { left: 40%; width: 44%; background: var(--steel); clip-path: polygon(58% 0, 100% 0, 42% 100%, 0 100%); opacity: .35; }
.prod:hover .prod__slash--red { transform: translateX(-10px); }
.prod:hover .prod__slash--grey { transform: translateX(12px); }

.prod__img {
  position: absolute; left: 50%; top: -70px; width: min(320px, 86%); height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 22px 22px rgba(28,33,37,.28)); pointer-events: none;
  transition: transform .8s var(--ease);
}
.prod:hover .prod__img { transform: translateX(-50%) translateY(-12px) rotate(-3deg) scale(1.04); }
.prod__scan {
  position: absolute; left: 6%; right: 6%; top: -60px; height: 2px; pointer-events: none; opacity: 0;
  background: var(--accent); box-shadow: 0 0 16px 3px var(--accent-glow);
}
.prod:hover .prod__scan { animation: prodScan 1.5s var(--ease) forwards; }
@keyframes prodScan { 0% { top: -60px; opacity: 1; } 85% { opacity: 1; } 100% { top: 250px; opacity: 0; } }

.prod__body { padding: 22px 26px 30px; display: flex; flex-direction: column; gap: 6px; }
.prod h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -0.03em; }
.prod__type { color: var(--muted); font-size: 14px; }
.prod__fig { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; }
.prod__fig b { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.prod__fig span { color: var(--muted); }
.prod__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--fg); transition: gap .4s var(--ease), color .3s; }
.prod__more svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.prod:hover .prod__more { gap: 14px; color: var(--accent); }
.prod__link { position: absolute; inset: -70px 0 0; z-index: 3; }
.prod__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.sec-head__link { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 100px; border: 1px solid rgba(28,33,37,.2); font-family: var(--display); font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.sec-head__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sec-head__link:hover { background: var(--fg); color: #fff; border-color: var(--fg); }

@media (max-width: 1000px) {
  .prod-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin: 0 calc(var(--gutter) * -1); padding: 80px var(--gutter) 30px; scrollbar-width: none; }
  .prod-grid::-webkit-scrollbar { display: none; }
  .prod { flex: 0 0 min(340px, 80%); scroll-snap-align: start; margin-top: 0 !important; }
}

/* services: interactive split view — list (left) drives image + details (right) */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.svx { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svx__list { border-top: 1px solid var(--line); }
.svx__row { border-bottom: 1px solid var(--line); }
.svx__item {
  position: relative; width: 100%; display: grid; grid-template-columns: 44px 1fr 22px; align-items: center; gap: 12px;
  padding: clamp(9px, 1.7vh, 18px) 6px; text-align: left; color: var(--fg); transition: color .35s, padding .45s var(--ease);
}
.svx__n { color: var(--muted); transition: color .35s; }
.svx__item b { font-family: var(--display); font-weight: 500; font-size: clamp(19px, min(1.9vw, 3.4vh), 28px); letter-spacing: -0.03em; line-height: 1.15; }
.svx__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .45s var(--ease); }
.svx__item:hover { padding-left: 14px; }
.svx__item.is-active { color: var(--accent); padding-left: 18px; }
.svx__item.is-active .svx__n { color: var(--accent); }
.svx__item.is-active svg { opacity: 1; transform: none; }
.svx__item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform .45s var(--ease); }
.svx__item.is-active::before { transform: scaleY(1); }
.svx__item:focus { outline: none; }
.svx__item:focus-visible { outline: none; background: rgba(153,27,46,.06); }
.svx__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.svx__item.is-active .svx__bar { opacity: 1; }
.svx__drop { display: none; }

.svx__stage { position: sticky; top: 96px; --cut: 34px; filter: drop-shadow(0 22px 34px rgba(28,33,37,.14)); }
.svx__media {
  position: relative; height: clamp(220px, 42vh, 400px); overflow: hidden; background: var(--bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
.svx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); }
.svx__img.is-on { clip-path: inset(0 0 0 0); }
.svx__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 30; opacity: 0; background: var(--accent); box-shadow: 0 0 18px 4px var(--accent-glow); pointer-events: none; }
.svx__slash { position: absolute; right: -2%; bottom: 0; width: 34%; height: 46%; z-index: 25; pointer-events: none; background: linear-gradient(180deg, rgba(153,27,46,0), rgba(153,27,46,.85)); clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%); mix-blend-mode: multiply; }
.svx__info {
  background: var(--card); padding: clamp(14px, 2.2vh, 22px) 26px clamp(16px, 2.6vh, 26px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.svx__count { color: var(--muted); }
.svx__count b { color: var(--accent); font-weight: 500; }
.svx__title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, min(2vw, 3.6vh), 30px); letter-spacing: -0.03em; margin: 4px 0 6px; }
.svx__desc { color: var(--fg-2); max-width: 520px; }
.svx__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--display); font-weight: 500; color: var(--fg); transition: gap .4s var(--ease), color .3s; }
.svx__link svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.svx__link:hover { gap: 14px; color: var(--accent); }

/* phones / small tablets: accordion — tap a service to open its image + text in place */
@media (max-width: 860px) {
  .svx { display: block; }
  .svx__stage { display: none; }
  .svx__item svg { opacity: 1; transform: rotate(90deg); transition: transform .45s var(--ease); }
  .svx__item.is-open svg { transform: rotate(-90deg); }
  .svx__item.is-active:not(.is-open) { color: var(--fg); padding-left: 6px; }
  .svx__item.is-active:not(.is-open) .svx__n { color: var(--muted); }
  .svx__item.is-active:not(.is-open)::before, .svx__bar { display: none; }
  .svx__item.is-active:not(.is-open) svg { transform: rotate(90deg); }
  .svx__drop { display: block; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
  .svx__row.is-open .svx__drop { max-height: 640px; }
  .svx__drop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
  .svx__drop p { color: var(--fg-2); padding-top: 12px; }
  .svx__drop .svx__link { margin: 4px 0 18px; }
}

/* industries: expanding panels */
.ind-acc { display: flex; gap: 10px; height: clamp(320px, 50vh, 480px); }
.ip {
  --cut: 26px; position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0; text-align: left; color: #fff;
  background: var(--fg); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: flex-grow .8s var(--ease);
}
.ip.is-active { flex-grow: 5.2; }
.ip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.75); transform: scale(1.08); transition: filter .8s, transform 1.4s var(--ease); pointer-events: none; }
.ip.is-active img { filter: none; transform: scale(1); }
.ip:hover:not(.is-active) img { filter: grayscale(.4) brightness(.85); }
.ip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,33,37,.88) 0, rgba(28,33,37,.15) 55%, rgba(28,33,37,.35) 100%); transition: background .8s; }
.ip.is-active::after { background: linear-gradient(to top, rgba(28,33,37,.82) 0, rgba(28,33,37,0) 50%); }
.ip > span, .ip > i { position: absolute; z-index: 2; }
.ip__num { top: 18px; right: 16px; opacity: .8; }
.ip.is-active .ip__num { color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 4px; opacity: 1; }
.ip__label {
  left: 50%; bottom: 22px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.01em; white-space: nowrap;
  transition: opacity .4s;
}
.ip.is-active .ip__label { opacity: 0; }
.ip__body { left: 28px; right: 28px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s var(--ease); pointer-events: none; }
.ip.is-active .ip__body { opacity: 1; transform: none; transition-delay: .3s; }
.ip__body b { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.ip__body span { max-width: 420px; font-size: 15px; color: rgba(255,255,255,.85); }
.ip__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--display); font-weight: 500; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; align-self: flex-start; transition: gap .3s var(--ease), border-color .3s; }
.ip__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ip__go:hover { gap: 14px; border-color: #fff; }
.ip.is-active .ip__body { pointer-events: auto; }
.ip__body::before { content: ""; width: 38px; height: 4px; background: var(--accent); transform: skewX(-30deg); margin-bottom: 4px; }
.ip__scan { left: 0; right: 0; top: 0; height: 2px; background: #ff5a72; box-shadow: 0 0 18px 4px rgba(153,27,46,.6); opacity: 0; }
.ip.is-active .ip__scan { animation: ipScan 1.1s var(--ease) forwards; }
@keyframes ipScan { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.ip__bar { left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.ip.is-active .ip__bar { opacity: 1; }
.ip:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }

@media (max-width: 760px) {
  .ind-acc { flex-direction: column; height: auto; gap: 8px; }
  .ip { flex: none; height: 64px; transition: height .7s var(--ease); }
  .ip.is-active { height: 320px; }
  .ip__label { writing-mode: horizontal-tb; transform: none; left: 20px; bottom: auto; top: 50%; transform: translateY(-50%); font-size: 19px; }
  .ip__num { top: 50%; transform: translateY(-50%); }
  .ip.is-active .ip__num { top: 16px; transform: none; }
  .ip__body { left: 20px; right: 20px; bottom: 20px; }
}

/* ---------- Testimonials: slim auto-scrolling strip ---------- */
.testi { padding: clamp(48px, 6vw, 72px) 0; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.testi__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 var(--gutter); margin-bottom: 22px; }
.testi__strip { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.testi__track { display: flex; gap: 16px; width: max-content; animation: testi 60s linear infinite; }
.testi__strip:hover .testi__track { animation-play-state: paused; }
@keyframes testi { to { transform: translateX(-50%); } }
.tcard { width: 360px; flex-shrink: 0; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.tcard blockquote { font-size: 14px; line-height: 1.55; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.tcard figcaption span { color: var(--accent); }
@media (max-width: 600px) { .tcard { width: 280px; } }

/* ---------- Contact rail (fixed, right edge) ---------- */
.rail { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); z-index: 800; display: flex; flex-direction: column; gap: 8px; }
.rail__item { position: relative; }
.rail__btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); border: 1px solid rgba(28,33,37,.14); color: var(--fg-2);
  box-shadow: 0 8px 20px -12px rgba(28,33,37,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.rail__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail__btn svg.fill { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.rail__btn:hover, .rail__btn:focus-visible, .rail__item--phone.is-open .rail__btn { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
.rail__label, .rail__flyout {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; background: var(--fg); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px;
  transition: opacity .25s, transform .35s var(--ease);
}
.rail__btn:hover .rail__label, .rail__btn:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }
.rail__flyout { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.rail__flyout a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; }
.rail__flyout a:hover { background: rgba(255,255,255,.12); }
.rail__flyout small { color: #ff9aaa; font-size: 10px; min-width: 32px; }
.rail__item--phone:hover .rail__flyout, .rail__item--phone:focus-within .rail__flyout, .rail__item--phone.is-open .rail__flyout { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.rail__item--phone::before { content: ""; position: absolute; right: 100%; top: -10px; bottom: -10px; width: 14px; } /* hover bridge to the flyout */
/* ---------- Phone action bar (replaces the rail on small screens) ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .rail { display: none; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 850;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 6px; padding: 6px; border-radius: 18px;
    background: rgba(255,255,255,.94); border: 1px solid rgba(28,33,37,.12);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 34px -16px rgba(28,33,37,.45);
    transition: transform .5s var(--ease), opacity .3s;
  }
  body.is-loading .mbar { transform: translateY(140%); opacity: 0; }
  .mbar__btn {
    width: 100%; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--display); font-weight: 500; font-size: 14.5px; color: var(--fg); background: var(--bg-2);
  }
  .mbar__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .mbar__btn svg.fill { fill: #1f9d55; stroke: none; width: 19px; height: 19px; }
  .mbar__btn--accent { background: var(--accent); color: #fff; }
  .mbar__btn--accent svg { stroke: #fff; }
  .mbar__call { position: relative; }
  .mbar__sheet {
    position: absolute; left: 0; bottom: calc(100% + 12px); min-width: 230px; padding: 6px; border-radius: 14px;
    background: var(--fg); color: #fff; box-shadow: 0 18px 40px -16px rgba(28,33,37,.6);
    display: flex; flex-direction: column; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
  }
  .mbar__call.is-open .mbar__sheet { opacity: 1; transform: none; pointer-events: auto; }
  .mbar__sheet a { display: flex; align-items: center; gap: 12px; white-space: nowrap; min-height: 48px; padding: 0 14px; border-radius: 10px; font-family: var(--display); font-size: 17px; }
  .mbar__sheet a:active { background: rgba(255,255,255,.12); }
  .mbar__sheet small { color: #ff9aaa; font-size: 11px; min-width: 36px; }

  /* readable labels and comfortable tap targets on phones */
  .mono { font-size: 12px; }
  .footer__col a { padding: 9px 0; }
  .footer__col { gap: 0; }
  .footer__contact a { min-height: 44px; }
  .footer__bottom a { padding: 12px 0; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 40px; align-items: start; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col > span { margin-bottom: 4px; }
.footer__col a { color: var(--fg-2); transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__contact .footer__social { margin-top: 8px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 420px; font-size: 15px; }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact > span { margin-bottom: 4px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; transition: color .3s; }
.footer__contact a:hover { color: var(--accent); }
.footer__contact svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.footer__contact small { color: var(--muted); font-size: 10px; }
.footer__addr { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); font-size: 14.5px; line-height: 1.45; }
.footer__addr svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg-2); transition: background .3s, border-color .3s, color .3s; }
.footer__social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__social svg.fill { fill: currentColor; stroke: none; width: 21px; height: 21px; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer__big {
  font-family: var(--display); font-weight: 700; font-size: 25vw; line-height: .8; letter-spacing: -0.06em; text-align: center;
  margin: 48px 0 24px; color: transparent; -webkit-text-stroke: 1px rgba(28,33,37,.12);
  background: linear-gradient(180deg, rgba(153,27,46,.22), transparent 75%); -webkit-background-clip: text; background-clip: text; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.footer__bottom a:hover { color: var(--fg); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reveal defaults (JS enhances) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .testi__strip { overflow-x: auto; }
}

/* ---------- Authorised-distributor badge (handoff A8; JINUOSH logo to follow) ---------- */
.dist-badge { display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 18px 12px 16px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--fg); box-shadow: 0 10px 26px -18px rgba(28,33,37,.35); }
.dist-badge .mono { color: var(--accent); }
.sec-head .dist-badge { margin-top: 14px; }

/* ---------- Header WhatsApp button ---------- */
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__wa { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 20px -10px rgba(37,211,102,.7); transition: transform .3s var(--ease), background .3s; }
.header__wa svg { width: 21px; height: 21px; fill: currentColor; }
.header__wa:hover { transform: scale(1.08); background: #1ebe5b; }

/* ---------- Floating WhatsApp button (every page, bottom-right) ---------- */
.wa-float { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 860; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease), background .3s; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); background: #1ebe5b; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
body.is-loading .wa-float { opacity: 0; transform: translateY(20px); }
@media (max-width: 760px) {
  .wa-float { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 54px; height: 54px; } /* sits above the phone action bar */
  .wa-float svg { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- Cookie consent banner ---------- */
.cookie { position: fixed; left: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 9000; width: min(460px, calc(100vw - 120px));
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: #fff; color: var(--fg);
  border: 1px solid rgba(28,33,37,.14); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(28,33,37,.45);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.cookie.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cookie__text { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.cookie__text b { display: block; font-family: var(--display); font-size: 16px; color: var(--fg); margin-bottom: 4px; }
.cookie__text a { color: var(--accent); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie__btn { height: 42px; padding: 0 22px; border-radius: 100px; font-family: var(--display); font-weight: 500; font-size: 14.5px; background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; transition: background .25s, color .25s; }
.cookie__btn:hover { background: var(--fg); border-color: var(--fg); }
.cookie__btn--ghost { background: #fff; color: var(--fg); border-color: rgba(28,33,37,.2); }
.cookie__btn--ghost:hover { background: var(--bg-2); color: var(--fg); border-color: rgba(28,33,37,.35); }
@media (max-width: 760px) {
  .cookie { left: 10px; right: 10px; width: auto; bottom: calc(150px + env(safe-area-inset-bottom)); }  /* above the action bar and floating button */
  .cookie__actions .cookie__btn { flex: 1; }
}

/* the decorative "VSHARK" lettering must never cover the footer links */
.footer__big { pointer-events: none; }
.footer__bottom { position: relative; z-index: 1; }

/* Intrinsic width/height attributes reserve space; keep natural proportions unless a rule sets a height (S05 F9). */
:where(img[width][height]) { height: auto; }
