/* Product Sans — self-hosted copy of the font the live svss.co.in site uses for headings. */
@font-face { font-family: "Product Sans"; src: url("../fonts/Product-Sans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Product Sans"; src: url("../fonts/Product-Sans-Bold.woff") format("woff"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Product Sans"; src: url("../fonts/Product-Sans-Black-900.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }

/* SV Soft Solutions public theme — mirrors svss.co.in: blue/ink palette, Montserrat, pill buttons. Mobile-first. */
:root {
  --brand: #1268a8; --accent: #379aff; --ink: #0f1720; --text: #3d4650; --muted: #6b7480;
  --bg: #ffffff; --soft: #f3f7fb; --line: #e3e9f0; --radius: 14px; --wrap: 1200px;
  --shadow: 0 10px 30px rgba(15, 40, 70, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.7 Roboto, Montserrat, system-ui, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; font: inherit; font-weight: 600; }
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-dark { background: var(--ink); padding: 9px 20px; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Header */
.topbar { background: var(--brand); color: #fff; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-block: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 40px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav a, .sub-toggle { font-family: "Google Sans", Poppins, Montserrat, sans-serif !important; }
.primary-nav .btn-dark { background: #111; color: #fff; box-shadow: 0 0 0 2px #2ba7f0; border-radius: 999px; padding: 8px 18px; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-weight: 800; }
.logo-text { font-weight: 800; font-size: .95rem; line-height: 1.1; }
.logo-text small { display: block; font-size: .6rem; letter-spacing: .2em; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a, .sub-toggle { display: block; padding: 10px 12px; color: var(--ink); font: 600 .92rem Montserrat, sans-serif; text-decoration: none; background: none; border: 0; cursor: pointer; }
.sub-toggle::after { content: '▾'; margin-left: 4px; font-size: .75em; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.sub-wide { columns: 2; min-width: 560px; }
.sub a { font-weight: 500; padding: 8px 10px; border-radius: 8px; break-inside: avoid; }
.sub a:hover { background: var(--soft); color: var(--brand); }
.has-sub:hover > .sub, .sub-toggle[aria-expanded="true"] + .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.primary-nav .btn { color: #fff; margin-left: 8px; }

/* Sections */
main { min-height: 50vh; }
.page-hero { background: linear-gradient(135deg, #eaf4ff, #f7fbff); padding: 56px 0 40px; }
.page-hero h1 { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.post-meta { color: var(--muted); margin: 10px 0 0; }
.blk { padding-block: 40px; }
.sec-title { text-align: center; }
.sec-intro { text-align: center; max-width: 720px; margin: 0 auto 32px; color: var(--muted); }
.prose { padding-block: 32px; }
.prose img { border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.featured { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.tags a { display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: .85rem; text-decoration: none; }

.blk-hero { padding: 64px 0; background: #fff; background-size: cover; background-position: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.layout-background .hero-grid, .layout-plain .hero-grid { grid-template-columns: 1fr; }
.layout-background { color: #fff; position: relative; }
.layout-background h1 { color: #fff; }
.hero-copy h1 { color: var(--ink); }
.lead { font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); font-size: .8rem; }

.blk-slider { position: relative; min-height: 520px; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; }
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(5, 20, 40, .45); }
.slide.is-active { opacity: 1; position: relative; min-height: 520px; }
.slide-copy { position: relative; color: #fff; max-width: 760px; }
.slide-copy h1, .slide-copy h2 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.reverse > img { order: 2; }
.split img { border-radius: var(--radius); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s; }
.feature:hover { transform: translateY(-4px); }
.feature img { border-radius: 10px; margin-bottom: 12px; }
.feature a { color: var(--ink); text-decoration: none; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2.4rem; color: var(--brand); font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.video { position: relative; aspect-ratio: 16/9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.quote { border-left: 4px solid var(--brand); padding: 10px 24px; font-size: 1.2rem; font-style: italic; margin: 0; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.blk-cta { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; text-align: center; padding: 56px 0; }
.blk-cta h2 { color: #fff; }
.blk-container { padding-block: 40px; }
.blk-container.bg-soft { background: var(--soft); }
.blk-container.bg-brand { background: var(--brand); color: #fff; }
.cols { display: grid; gap: 30px; }
.col .wrap { padding: 0; }
.col .blk { padding-block: 12px; }
.spacer.size-sm { height: 20px; } .spacer.size-md { height: 48px; } .spacer.size-lg { height: 96px; }

/* Blog */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; padding-block: 40px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card-img { aspect-ratio: 16/9; background: var(--soft); display: block; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover img { transform: scale(1.04); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body time { font-size: .8rem; color: var(--muted); }
.post-card-body h3 a { color: var(--ink); text-decoration: none; }
.post-card-body p { flex: 1; }
.more { font-weight: 600; text-decoration: none; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 40px; }
.pager a { min-width: 40px; text-align: center; padding: 8px; border-radius: 10px; background: var(--soft); text-decoration: none; }
.pager a[aria-current] { background: var(--brand); color: #fff; }
.related { padding-top: 20px; }

/* Forms */
.contact-form { display: grid; gap: 14px; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.contact-form .check input { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status.ok { color: #15803d; } .form-status.err { color: #b91c1c; }
.hp-field { position: absolute; left: -9999px; }
.bot-guard { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.bot-guard small { display: block; }

/* Imported WordPress/Elementor markup: keep it readable until converted to blocks */
.imported img { border-radius: 8px; }
.imported .elementor-section, .imported .e-con { padding-block: 16px; }
.imported .elementor-container, .imported .e-con-inner { display: flex; flex-wrap: wrap; gap: 24px; }
.imported .elementor-column { flex: 1 1 260px; min-width: 0; }
.imported .elementor-widget-wrap { display: flex; flex-direction: column; gap: 10px; }
.imported .elementor-button { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; }
.imported .elementor-icon-list-items, .imported .pp-list-items { list-style: none; padding: 0; }
.imported svg { max-width: 28px; max-height: 28px; }

/* Footer */
.site-footer { background: #052138; color: #fff; margin-top: 60px; font: 400 .85rem/1.6 "Google Sans", Poppins, Montserrat, sans-serif; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .9fr; gap: 40px; padding-block: 56px 36px; }
.site-footer h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #6ec9ff; }
.site-footer ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.footer-logo { max-width: 190px; margin-bottom: 8px; }
.footer-tag { font-size: .9rem; margin: 0 0 24px; }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branches > div + div { border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 24px; }
.branches p { margin: 0 0 8px; }
.footer-phone { font-size: 1.6rem; font-weight: 700; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 30px; height: 30px; border: 1px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }
.app-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.app-badges img { height: 34px; width: auto; }
.footer-badges { background: #000; padding: 14px 0; }
.footer-badges .wrap { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
.footer-badges img { height: 34px; width: auto; }
.footer-cert { padding: 18px 0; text-align: center; position: relative; }
.footer-cert p { margin: 6px 0; }
.cert-award { position: absolute; left: 16px; top: 10px; height: 90px; width: auto; }
.iso { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 1.15rem; letter-spacing: .02em; }
.iso img { height: 44px; width: auto; }
.legal { display: flex; justify-content: center; gap: 26px; }
.wa-head { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25d366; margin-left: 12px; flex: none; }
.for-ent { color: var(--brand) !important; border-left: 2px solid var(--brand); border-top: 2px solid var(--brand); border-radius: 2px; margin-left: 12px; font-size: .85rem !important; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; top: 0; width: min(86vw, 360px); background: #fff; padding: 80px 16px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: var(--shadow); }
  .primary-nav.open { transform: none; }
  .nav-toggle { position: relative; z-index: 60; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .sub, .sub-wide { position: static; columns: 1; min-width: 0; box-shadow: none; padding: 0 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .has-sub:hover > .sub { display: none; }
  .has-sub:hover > .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub-toggle { width: 100%; text-align: left; }
  .primary-nav .btn { margin: 12px 0 0; justify-content: center; }
  body.nav-open { overflow: hidden; }
  .hero-grid, .split, .row2 { grid-template-columns: 1fr; }
  .split.reverse > img { order: 0; }
  .cols { grid-template-columns: 1fr !important; }
  .topbar .wrap { justify-content: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .branches > div + div { border: 0; padding: 0; }
  .cert-award { position: static; margin: 0 auto 8px; }
  .footer-badges .wrap { gap: 24px; }
  .legal { flex-wrap: wrap; gap: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .blk-slider, .slide.is-active { min-height: 420px; }
  .sub-wide { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Dropdown icons: a tinted tile per item; on hover the tile fills, the icon pops and its accent part moves */
.sub a { display: flex; align-items: center; gap: 10px; font-size: .82rem !important; line-height: 1.35; padding: 7px 10px; }
.mi { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef5fc; color: var(--brand); transition: background .3s, color .3s, box-shadow .3s; perspective: 200px; }
.mi svg { width: 18px; height: 18px; overflow: visible; }
.mi .mi-move { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); transform-box: fill-box; transform-origin: center; }
.mi-label { transition: transform .25s; }
.sub a:hover .mi, .sub a:focus-visible .mi { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(55, 154, 255, .18), 0 0 18px 4px rgba(55, 154, 255, .55); animation: miFlip .6s cubic-bezier(.34, 1.4, .64, 1); }
.mi::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(55, 154, 255, .6); opacity: 0; pointer-events: none; }
.sub a:hover .mi::after, .sub a:focus-visible .mi::after { animation: miGlow 1.4s ease-out infinite; }
@keyframes miFlip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes miGlow { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

.sub a:hover .mi-label { transform: translateX(3px); }
@keyframes miWiggle { 0% { transform: none; } 30% { transform: translateY(-2px) scale(1.15); } 60% { transform: translateY(1px) scale(.95); } 100% { transform: none; } }
.has-sub:hover > .sub li, .sub-toggle[aria-expanded="true"] + .sub li { animation: miIn .3s ease both; }
.sub li:nth-child(2) { animation-delay: .03s !important; } .sub li:nth-child(3) { animation-delay: .06s !important; } .sub li:nth-child(4) { animation-delay: .09s !important; }
.sub li:nth-child(5) { animation-delay: .12s !important; } .sub li:nth-child(6) { animation-delay: .15s !important; } .sub li:nth-child(n+7) { animation-delay: .18s !important; }
@keyframes miIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mi, .mi::after, .mi .mi-move, .mi-label, .sub li { animation: none !important; transition: none; } }
@media (max-width: 1100px) { .mi { width: 30px; height: 30px; } }

/* ---- Mobile audit fixes (2026-11) ---- */
/* Floating cut-out photos keep their real shape instead of being squashed. */
.mt-hero-cut, .fit-cut, .fit-lab-cut, .hm-cut, .fit-cta-art img { height: auto !important; object-fit: contain; }
@media (max-width: 760px) {
  /* Nothing on a page may push it sideways. */
  html, body { overflow-x: clip; }
  .sv-rich, .sv-rich * { max-width: 100%; overflow-wrap: anywhere; }
  .sv-rich img, .sv-rich table, .sv-rich iframe { height: auto; }
  .sv-hotspots svg, .sv-hotspots img { max-width: 100%; height: auto; }
  /* Floating cut-outs stay inside the screen. */
  .hm-cut.c1 { left: 0 !important; width: 96px !important; }
  .hm-cut.c2 { right: 0 !important; width: 110px !important; }
  /* Taxi signboards: one per row, full width. */
  .rd-signs { overflow: hidden; }
  .rd-boards { grid-template-columns: minmax(0, 1fr) !important; }
  .rd-boards li, .rd-boards li > * { max-width: 100%; min-width: 0; }
  /* Mobile menu: dimmed page behind, close button clear of the first link. */
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); }
  body.nav-open nav#primary-nav { padding-top: 80px; }
  /* Tap targets at least 44px. */
  .sv-topbar a, .top-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  a.sv-card-arrow { min-width: 44px; min-height: 44px; }
  /* Readable small text. */
  small, .hm-tw-label, .fit-lab-note, .mt-board small { font-size: max(12px, 1em * .8) !important; }
}
@media (max-width: 760px) {
  /* Hero animations carry blank space inside their canvas: shrink them and pull that space in. */
  .sv-hero { padding-top: 16px; }
  .sv-hero-lottie { width: min(240px, 70vw); margin: -44px auto -40px; }
  .sv-phero .sv-lottie { width: min(240px, 70vw); margin: -30px auto -36px; }
  /* Short pages: less dead air before the footer. */
  main > .sv-wrap:last-child > section { padding-bottom: 40px; }
}

/* ---- Full-site mobile audit fixes (2026-11-14) ---- */
@media (max-width: 760px) {
  /* Readable labels: kickers, eyebrows, tags and small captions never drop below 12px. Phone mock-ups keep their own scale. */
  :is(.hm-kicker, .why-mods-eyebrow, .why-mods-eyebrow span, .why-mods-card li em, .why-mods-card li span, .mt-kicker, .mt-step-top, .fit-kicker, .fit-lab-label, .fit-jr-step p,
      .pp-pb-eyebrow, .pp-show-note, .pp-svc-card em, .pp-svc-tag, .pp-plan em, .pp-result-row b, .pp-br-bar span, .pp-show-sec dt, .pp-opts-sec em, .pp-opts-sec span,
      .sim-live, .sim-sec dt, .sim-sec span, .ec-tag, .ec-live, .wb-tag, .e3-badge, .pl-kicker, .pl-sheet-tag, .hx3-live, .hx-cmp-face em, .at-reveal em, .at-reveal span,
      .mt-fan-face em, .mt-fan-face i, .mt-ring-card em, .p3-float figcaption, .rd-pick-sec em, .rd-pick-sec dt, .hm-house-sec em, .hm-rf-token b, .mt-flow-sec span) { font-size: max(12px, 1em) !important; }
  /* Section closing heading ("Our Experts" etc.) fits on a phone. */
  .sv-contact-big { font-size: clamp(1.9rem, 9vw, 2.3rem) !important; line-height: 1.08 !important; }
  /* Home hero: no tall empty band under the buttons. */
  .sv-hero { padding-bottom: 48px !important; }
  /* Small dots and bars get a 44px invisible hit area. */
  .mo-arc-dots button, .mo-depth-bar button, .pp-show-sec [role="tablist"] button, .sv-hs-dot, .e3-plot { position: relative; }
  .mo-arc-dots button::after, .mo-depth-bar button::after, .pp-show-sec [role="tablist"] button::after, .sv-hs-dot::after { content: ""; position: absolute; inset: -14px; }
  /* Meat page: the cut ring and fanned cards stay on screen. */
  .mt-ring-stage { overflow: hidden; }
  .mt-ring-track { --r: calc(var(--n) * 30px + 90px) !important; }
  .mt-fan { overflow: hidden; padding-top: 30px; }
  .mt-fan-card.is-on { transform: translateY(-10px) translateZ(30px) !important; }
  /* Job mela expo floor and print plates fit the screen. */
  .jm-plane { width: 290px !important; height: 220px !important; }
  .pr-plate-scene { overflow: hidden; }
  /* Floating hero chips and captions stay inside the screen. */
  .pp-hero :is(.ec-hero-card, .mt-hero-float, .p3-float) { max-width: calc(100vw - 32px); }
}
@media (max-width: 760px) {
  /* Hero floating cards: no forward depth on phones, so perspective cannot push them off the edge. */
  .ec-hero-card.c1 { left: 0 !important; transform: none !important; }
  .ec-hero-card.c2 { right: 0 !important; transform: none !important; }
  .mt-hero-float { transform: none !important; }
  .mt-hero-float.f2 { left: 4px !important; }
  .p3-float.f0 { left: 4px !important; }
  .p3-float.f1 { right: 4px !important; }
}
@media (max-width: 760px) {
  /* Featured blog cards: the cover image (which carries its own title) shows in full, with the card text underneath instead of on top. */
  .sv-mag, .sv-mag.is-mag { grid-auto-rows: auto !important; gap: 14px !important; }
  .sv-mag-item { min-height: 0 !important; border-radius: 14px; background: #fff !important; color: var(--sv-ink, #0f172a) !important; box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .45); border: 1px solid #e6ebf2; }
  .sv-mag-item img { height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
  .sv-mag-item::after { display: none; }
  .sv-mag-copy { position: static !important; padding: 14px 16px 16px; }
  .sv-mag-copy em { color: #fff; }
}
@media (max-width: 760px) {
  /* Technology stack: icons fill the row evenly instead of bunching on the left. */
  .sv-tech-group ul { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; }
  .sv-tech-group li { min-width: 0 !important; width: auto !important; font-size: 12px; text-align: center; }
  .sv-tech-group .sv-tech-icon { margin-inline: auto; }
}
@media (max-width: 760px) {
  /* Icon cards with only a title (service lists) sit two to a row; cards with text keep one per row. */
  .sv-icards.style-icon { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .sv-icards.style-icon .sv-icard2 { padding: 18px 12px; text-align: center; }
  .sv-icards.style-icon .sv-icard2 h3 { font-size: 14px !important; line-height: 1.3; margin-top: 8px; }
  .sv-icards.style-icon .sv-icard2:has(p) { grid-column: 1 / -1; text-align: left; }
  /* Figure cards: two per row, smaller numbers. */
  .sv-statcards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .sv-statcards li { padding: 18px 10px; }
  .sv-statcards strong { font-size: 2rem; margin-bottom: 6px; }
  .sv-statcards li > span { font-size: 13px; }
  /* Decorative dot patterns and stray art never stick past the screen edge. */
  section { overflow-x: clip; }
}
@media (max-width: 760px) {
  /* Background pictures (world map etc.) behind tall stacked sections: show the picture, not a blown-up slice of it. */
  .sv-wrap.has-photo { background-size: 170% auto !important; background-repeat: no-repeat !important; background-position: center 120px !important; }
}
@media (max-width: 760px) {
  /* The menu sits above its dimmed backdrop (the header forms its own layer, so it is lifted while the menu is open). */
  body.nav-open .site-header { z-index: 100; }
}
@media (max-width: 520px) {
  /* Meat page card fan: a tighter fan so the front card is fully on screen. */
  .mt-fan-card { width: 210px !important; margin-left: -105px !important; transform: translateX(calc(var(--off) * 10px)) rotate(calc(var(--off) * 2.5deg)) !important; }
  .mt-fan-card.is-on { transform: translateY(-10px) translateZ(30px) !important; }
}
@media (max-width: 760px) {
  /* Icon cards with a description: icon beside the title, so each card is half as tall. */
  .sv-icards.style-icon .sv-icard2:has(p) { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .sv-icards.style-icon .sv-icard2:has(p) > img { width: 44px; height: 44px; object-fit: contain; margin: 0; }
  .sv-icards.style-icon .sv-icard2:has(p) > h3 { margin: 0 !important; font-size: 15px !important; }
  .sv-icards.style-icon .sv-icard2:has(p) > p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; }
}
@media (max-width: 480px) {
  /* "Why" cards with a sentence each: one per row on narrow phones, number beside the title. */
  .sv-why-list { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .sv-why-card { padding: 16px 18px !important; }
}

/* ---- Home hero: real app screens fanned in 3D ---- */
.sv-hero-phones { position: relative; width: 100%; max-width: 440px; height: 470px; margin: 0 auto; perspective: 1400px; }
.sv-hero-phone { position: absolute; left: 50%; top: 20px; width: 210px; margin: 0 0 0 -105px; padding: 8px; border-radius: 30px; background: #0f172a; box-shadow: 0 30px 50px -24px rgba(15, 23, 42, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .6s, z-index 0s .4s; }
.sv-hero-phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; }
.sv-hero-phone figcaption { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; color: #0f172a; font-size: 13px; font-weight: 700; box-shadow: 0 10px 20px -10px rgba(15, 23, 42, .45); opacity: 0; transition: opacity .4s; }
.sv-hero-phone.is-front { transform: translateZ(60px); z-index: 3; }
.sv-hero-phone.is-front figcaption { opacity: 1; }
.sv-hero-phone.is-left { transform: translateX(-120px) translateZ(-60px) rotateY(18deg) rotateZ(-6deg); filter: brightness(.82); z-index: 1; }
.sv-hero-phone.is-right { transform: translateX(120px) translateZ(-60px) rotateY(-18deg) rotateZ(6deg); filter: brightness(.82); z-index: 2; }
.sv-hero-phones::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(15, 23, 42, .22), transparent 70%); z-index: 0; }
@media (max-width: 760px) {
  .sv-hero-phones { height: 380px; max-width: 340px; }
  .sv-hero-phone { width: 170px; margin-left: -85px; }
  .sv-hero-phone.is-left { transform: translateX(-80px) translateZ(-60px) rotateY(18deg) rotateZ(-6deg); }
  .sv-hero-phone.is-right { transform: translateX(80px) translateZ(-60px) rotateY(-18deg) rotateZ(6deg); }
}
@media (prefers-reduced-motion: reduce) { .sv-hero-phone { transition: none; } }

/* ---- Featured blog (all widths): the cover image, which carries its own title, shows in full with the card text below. ---- */
.sv-mag, .sv-mag.is-mag { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: auto !important; gap: 22px !important; }
.sv-mag.is-mag .sv-mag-item:first-child { grid-row: auto !important; }
.sv-mag-item { display: flex !important; flex-direction: column; min-height: 0 !important; border-radius: 16px; overflow: hidden; background: #fff !important; color: #0f172a !important; border: 1px solid #e6ebf2; box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .5); transition: transform .3s, box-shadow .3s; }
.sv-mag-item:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(15, 23, 42, .55); }
.sv-mag-item img { height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
.sv-mag-item::after { display: none !important; }
.sv-mag-copy { position: static !important; flex: 1; display: flex !important; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.sv-mag-copy strong { font-size: 16px; line-height: 1.4; }
.sv-mag-copy em { margin-top: auto; color: #fff; }
@media (max-width: 900px) { .sv-mag, .sv-mag.is-mag { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .sv-mag, .sv-mag.is-mag { grid-template-columns: minmax(0, 1fr) !important; } }
.sv-mag-copy em { align-self: flex-start; }

/* ---- WhatsApp: header button on desktop; on phones a floating button that appears once the visitor scrolls ---- */
.wa-float { display: none; }
@media (max-width: 760px) {
  .site-header .wa-head { display: none !important; }
  .wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; box-shadow: 0 12px 24px -8px rgba(18, 140, 70, .65); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
  .wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ping 2.4s ease-out infinite; }
  body.nav-open .wa-float { opacity: 0; pointer-events: none; }
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::after { transition: none; animation: none; } }
@media (max-width: 760px) { .site-footer .footer-cert { padding-bottom: 88px; } }
