/* ============================================================
   KALPATARU GLOBAL — responsive.css
   All breakpoints. Base styles are in assets/css/style.css

     Desktop       -  min-width: 1024px
     Tablet        -  min-width: 768px and max-width: 1023px
     Large Mobile  -  max-width: 767px
     Mobile        -  max-width: 480px
     Mobile Small  -  max-width: 375px

   Down-queries run widest first (767 -> 480 -> 375) so the
   narrower query always wins.
   ============================================================ */


/* ============================================================
   DESKTOP — min-width: 1024px
============================================================ */
@media (min-width: 1024px) {
  :root { --topbar-h: 40px; --header-h: 104px; }

  .logo img { height: 74px; }
  .header.is-scrolled .logo img { height: 58px; }

  .nav          { display: flex; }
  .header__cta  { display: inline-flex; }
  .burger       { display: none; }
  .mobile-menu  { display: none !important; }

  .sec-title--nowrap { white-space: nowrap; }

  /* Slider — 3 cards across */
  .kslider { --per-view: 3; --slider-gap: 24px; }

  /* Product tiles — 4 across, one row per page */
  .pslider { --page-gap: 22px; }
  .pslider__page { grid-template-columns: repeat(4, 1fr); }

  /* Trust cards + stat band — 4 across */
  .statband { grid-template-columns: repeat(4, 1fr); }
  .kstat + .kstat { border-left: 1px solid rgba(255,255,255,.16); }
  .kstat:nth-child(3) { border-left: 1px solid rgba(255,255,255,.16); }
  .kstat:nth-child(n+3) { border-top: 0; }
  .kstat { padding: 38px 20px; }

  /* Expertise — static 3-across grid, slider stands down */
  .kslider--grid .kslider__viewport { overflow: visible; padding: 0; }
  .kslider--grid .kslider__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    transform: none !important;
    transition: none;
  }
  .kslider--grid .kslider__slide { max-width: none; flex: 1 1 auto; }
  .kslider--grid .kslider__nav { display: none; }

  /* Hero: vertical slide navigation replaces the dots */
  .hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .hero__dots { display: none; }


  /* ---------- ABOUT PAGE ---------- */

  /* Inner page hero */
  .phero { min-height: 470px; padding: 116px 0 124px; }

  /* Director's message — portrait left, quote right */
  .dmsg { grid-template-columns: .82fr 1.18fr; align-items: stretch; }
  .dmsg__media { padding: 34px; }
  .dmsg__media img { border-radius: 22px; }
  .dmsg__disc { width: 400px; height: 400px; margin-left: -200px; }
  .dmsg__body { padding: 58px 62px 58px 40px; display: flex; flex-direction: column; justify-content: flex-start; }
  .dmsg__mark { width: 46px; height: 34px; }

  /* Our Story — milestone rail turns horizontal.
     The axis sits at y=8 so the 18px dots (top: 0) centre on it. */
  .msrail__line {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 8px;
    height: 2px;
    border-radius: 2px;
    overflow: hidden;
    /* Fades out past the last dot — the timeline runs on into the future */
    background: linear-gradient(90deg, var(--line) 0%, var(--line) 84%, transparent 100%);
  }
  /* Green fill that runs across once the rail is revealed */
  .msrail__line i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 84%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s var(--ease) .2s;
  }
  .msrail.in-view .msrail__line i { transform: scaleX(1); }

  .msrail__list { grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
  .msnode { padding: 36px 22px 0 0; }
  .msnode:last-child { padding-bottom: 0; }
  .msnode::before { display: none; }
  .msnode__dot { left: 0; top: 0; }
  .msnode__year { font-size: 26px; }

  /* Purpose bento — statement spans both rows on the left */
  .pbento {
    grid-template-columns: 1.12fr 1fr;
    grid-template-rows: auto auto;
    gap: 22px;
  }
  .pcell--lead { grid-row: 1 / span 2; padding: 44px 40px; }
  .pcell--mission, .pcell--vision { padding: 34px 34px; }

  /* Values */
  .vrow { padding: 20px 26px; gap: 20px; }
  .vrow__body span { font-size: 15px; }

  /* Why partner — steps 2 x 2 */
  .whyk__panel { padding: 36px 34px; }
  .wsteps { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* Team — 4 portraits across */
  .kslider.team__slider { --per-view: 4; --slider-gap: 22px; }

  /* Industries — 4 columns opens up a second pair of wide slots
     (--e, --g) alongside the always-wide --a/--h. Every tile is
     still exactly one row, so heights stay uniform — only width
     changes. See the mechanism note on .isgrid in style.css. */
  .isgrid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
  .istile--e,
  .istile--g { grid-column: span 2; }

  .istile__icon { width: 46px; height: 46px; border-radius: 13px; left: 18px; top: 18px; }
  .istile__icon svg { width: 22px; height: 22px; }
  .istile__name { left: 18px; right: 18px; bottom: 18px; }

  /* All four wide tiles get the same size boost at this width */
  .istile--a .istile__icon, .istile--e .istile__icon,
  .istile--g .istile__icon, .istile--h .istile__icon { width: 54px; height: 54px; border-radius: 15px; }
  .istile--a .istile__icon svg, .istile--e .istile__icon svg,
  .istile--g .istile__icon svg, .istile--h .istile__icon svg { width: 25px; height: 25px; }
  .istile--a .istile__name, .istile--e .istile__name,
  .istile--g .istile__name, .istile--h .istile__name { font-size: 1.2rem; }


  /* ---------- BLOG LISTING ---------- */

  /* Two articles per row, featured one spanning both */
  .bgrid { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  /* Featured card lies down: image left, copy right */
  .bcard--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .bcard--wide .bcard__media { aspect-ratio: auto; height: 100%; }
  .bcard--wide .bcard__body { padding: 30px 28px; justify-content: center; }
  .bcard--wide .bcard__body h3 { font-size: 24px; }
  .bcard--wide .bcard__body p { font-size: 15.4px; }

  /* Sidebar sticks below the header AND the filter bar.

     The widgets stack taller than most viewports (~1400px against a
     900px screen). Pinning that without a cap makes everything below
     the fold unreachable for as long as it is stuck, so the sidebar
     is capped to the free height and scrolls internally instead. */
  .bside {
    position: sticky;
    top: calc(var(--sticky-top) + var(--bfilter-h) + 24px);
    max-height: calc(100vh - var(--sticky-top) - var(--bfilter-h) - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    /* Grid rows must size to content, not stretch, or an aspect-ratio
       item (.spromo) inside this scrollable grid can be measured with
       the wrong row height and visually overlap the widget after it. */
    grid-auto-rows: max-content;
    align-items: start;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .bside::-webkit-scrollbar { width: 6px; }
  .bside::-webkit-scrollbar-track { background: transparent; }
  .bside::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
  .bside::-webkit-scrollbar-thumb:hover { background: var(--brown-mid); }


  /* ---------- BLOG DETAIL ---------- */

  .prose > p { font-size: 17px; }
  .prose__lead { font-size: 20px !important; }

  /* Prev / next side by side */
  .artnav { grid-template-columns: 1fr 1fr; gap: 18px; }

  /* Related posts — three across inside the article column */
  .relgrid { grid-template-columns: repeat(3, 1fr); gap: 22px; }


  /* ---------- CONTACT ---------- */

  .cgrid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .cmap { margin-top: 34px; }
  .cmap iframe { height: 460px; }

  /* On an article the sidebar starts below the header only — there
     is no filter bar on this page to clear */
  .artbody .bside {
    top: calc(var(--sticky-top) + 24px);
    max-height: calc(100vh - var(--sticky-top) - 48px);
  }
}

/* Large desktop comfort */
@media (min-width: 1400px) {
  .section { padding: 100px 0; }
}


/* ============================================================
   TABLET — 768px to 1023px
============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  :root { --header-h: 92px; --topbar-h: 0px; }

  .comm-row { grid-template-columns: repeat(3, 1fr); }

  .logo img { height: 66px; }
  .header.is-scrolled .logo img { height: 54px; }

  .nav         { display: none; }
  .header__cta { display: none; }
  .burger      { display: grid; }
  .topbar      { display: none; }
  .mobile-menu { display: block; }

  .section    { padding: 15px 0; }
  .section-sm { padding: 12px 0; }

  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  .sec-head { margin-bottom: 38px; }

  /* Slider — 2 cards across */
  .kslider { --per-view: 2; --slider-gap: 20px; }

  /* Product tiles — 4 across */
  .pslider { --page-gap: 18px; }
  .pslider__page { grid-template-columns: repeat(4, 1fr); }

  /* Stat band — 4 across, tighter */
  .statband { grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
  .kstat + .kstat { border-left: 1px solid rgba(255,255,255,.16); }
  .kstat:nth-child(3) { border-left: 1px solid rgba(255,255,255,.16); }
  .kstat:nth-child(n+3) { border-top: 0; }
  .kstat { padding: 30px 12px; }
  .kstat__label { font-size: 11px; letter-spacing: 1.1px; }

  .tcard { padding: 26px 22px; }
  .tcard__icon { width: 52px; height: 52px; }

  /* Expertise — static 2-across grid */
  .kslider--grid .kslider__viewport { overflow: visible; padding: 0; }
  .kslider--grid .kslider__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    transform: none !important;
    transition: none;
  }
  .kslider--grid .kslider__slide { max-width: none; flex: 1 1 auto; }
  .kslider--grid .kslider__nav { display: none; }

  /* Hero */
  .hero__slide { min-height: 540px; height: 66vh; max-height: 620px; }
  .hero__text  { max-width: 100%; }
  .hero__inner { max-width: 92%; }
  .hero__side  { display: none; }
  .hero__dots  { display: flex; }
  .hero__bottom { bottom: 26px; }
  .hero__rule::after { height: 60px; }

  /* About */
  .about__media { margin-bottom: 60px; }
  .about__inset { width: 200px; right: 0; bottom: -26px; }
  .about__badge { left: 0; }

  /* Journey hub stacks — the radial layout needs desktop width */
  .hub { grid-template-columns: 1fr; grid-template-rows: none; gap: 26px; }
  .hub__viewport, .hub__track { display: block; }
  .hnode { grid-column: auto !important; grid-row: auto !important; text-align: left !important; }
  .hub__core { grid-column: auto; grid-row: auto; order: -1; }
  .hub__lines { display: none; }
  .hub__core { width: 168px; height: 168px; margin: 4px auto; }
  .hub__label { font-size: 25px; }
  .hnode { text-align: left; }
  .hnode:nth-child(-n+3) { flex-direction: row-reverse; justify-content: flex-end; }
  .callout { padding: 30px 28px; gap: 22px; margin-top: 48px; }
  .callout__icon { width: 66px; height: 66px; }

  /* Core capabilities — 3 across */
  .caps { padding: 72px 0; }
  .caps__chain { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
  .caps__rail { display: none; }
  .cap { padding: 30px 16px 26px; }
  .cap__dot, .cap__num { position: static; display: block; margin: 0 auto 10px; }
  .cap__dot { width: 14px; height: 14px; }
  .cap__icon { width: 56px; height: 56px; }

  /* Intro / strengths / expertise */
  .intro { padding: 58px 0 46px; }
  .xbox { padding: 24px; min-height: 210px; gap: 20px; }
  .xbox__icon { width: 58px; height: 58px; border-radius: 16px; }
  .xbox__icon svg { width: 26px; height: 26px; }
  .xbox__num { font-size: 88px; right: 12px; bottom: -18px; }

  /* Quick bar — 2 x 2, so the card is two ~104px rows */
  .qbar { grid-template-columns: repeat(2, 1fr); margin-top: 0; margin-bottom: 44px; }
  .qbar__item:nth-child(3) { border-left: 0; }
  .qbar__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .qbar__item { padding: 20px 18px; gap: 13px; min-height: 104px; }
  .qbar__text b { font-size: 15px; }
  .qbar__text span { font-size: 12.5px; }
  .qbar__num { font-size: 40px; right: 10px; bottom: 2px; }

  .cta-band { padding: 66px 0; }
  .cta-band h2 { font-size: 32px; }
  .cta-band__actions { margin-top: 26px; }


  /* ---------- ABOUT PAGE ---------- */

  .phero { min-height: 380px; padding: 84px 0 92px; }
  .phero__title { font-size: 40px; }

  /* Director's message — two columns, portrait narrower */
  .dmsg { grid-template-columns: .78fr 1.22fr; }
  .dmsg__media { padding: 24px; }
  .dmsg__disc { width: 300px; height: 300px; margin-left: -150px; }
  .dmsg__body { padding: 40px 34px 44px 26px; display: flex; flex-direction: column; justify-content: flex-start; }
  .dmsg__body p { font-size: 14.6px; }

  /* Story — the rail stays vertical here; five columns would be
     ~140px wide each and the copy would break to five lines */
  .msrail { margin-top: 48px; }
  .story__inset { width: 172px; }

  /* Purpose — statement full width, then mission + vision side by side */
  .pbento { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pcell--lead { grid-column: 1 / -1; padding: 36px 34px; }

  /* Values */
  .vrow { padding: 18px 22px; }

  /* Why partner — steps 2 x 2 */
  .whyk__panel { padding: 30px 28px; }
  .wsteps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .whyk__stats { margin-top: 44px; }

  /* Team — 2 portraits across */
  .kslider.team__slider { --per-view: 2; --slider-gap: 20px; }
  .ttab { padding: 12px 22px; font-size: 14px; }
  .ttabs { margin-bottom: 32px; }

  /* Industries — same 4-column layout as desktop, just tighter.
     Every tile stays one row tall, so heights match exactly. */
  .isgrid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 195px; gap: 12px; }
  .istile--e,
  .istile--g { grid-column: span 2; }

  .istile__icon { width: 42px; height: 42px; border-radius: 12px; left: 16px; top: 16px; }
  .istile__icon svg { width: 20px; height: 20px; }
  .istile__name { left: 16px; right: 16px; bottom: 16px; font-size: .82rem; }

  .istile--a .istile__icon, .istile--e .istile__icon,
  .istile--g .istile__icon, .istile--h .istile__icon { width: 48px; height: 48px; border-radius: 14px; }
  .istile--a .istile__icon svg, .istile--e .istile__icon svg,
  .istile--g .istile__icon svg, .istile--h .istile__icon svg { width: 22px; height: 22px; }
  .istile--a .istile__name, .istile--e .istile__name,
  .istile--g .istile__name, .istile--h .istile__name { font-size: 1rem; }


  /* ---------- BLOG LISTING ---------- */

  /* The search box would leave the pills nowhere to go at this
     width, so it moves onto its own row above them. The bar is
     taller here, and --bfilter-h is bumped to match so anything
     measuring against it stays correct. */
  :root { --bfilter-h: 124px; }

  .bfilter__inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .bfilter__tools { order: -1; width: 100%; justify-content: space-between; }
  .bsearch { width: 100%; max-width: 340px; }
  .bfilter__scroll { width: 100%; flex: 1 1 100%; }

  .bgrid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .bcard--wide { display: grid; grid-template-columns: 1fr 1fr; }
  .bcard--wide .bcard__media { aspect-ratio: auto; height: 100%; }
  .bcard--wide .bcard__body { padding: 24px 22px; justify-content: center; }
  .bcard--wide .bcard__body h3 { font-size: 21px; }

  /* Sidebar drops under the articles and stops sticking */
  .bside { position: static; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .scta { grid-column: 1 / -1; }
  .blog-main { padding-top: 44px; }


  /* ---------- BLOG DETAIL ---------- */

  .arttitle { font-size: 30px; }
  .artbody { padding-top: 44px; }
  .prose { max-width: 100%; }
  .artnav { grid-template-columns: 1fr 1fr; gap: 16px; }
  .relgrid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .relcard b { font-size: 14px; }

  /* Sidebar drops below the article as a 2-up widget grid. The
     wide widgets span both columns so nothing gets squeezed. */
  .artbody .bside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .artbody .swidget--search,
  .artbody .swidget--toc,
  .artbody .spromo,
  .artbody .scta { grid-column: 1 / -1; }
  .spromo { aspect-ratio: 21 / 9; }


  /* ---------- CONTACT ---------- */

  .cform { padding: 30px 26px 32px; }

  .cgrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ccard { padding: 24px 20px; }
  .ccard__icon { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 14px; }
  .ccard__icon svg { width: 24px; height: 24px; }
  .ccard p { font-size: 13.4px; }
  .cmap iframe { height: 400px; }

  /* Industries — 4 across per page, matching the product rail */
  .inds__foot { font-size: 15px; }
}


/* ============================================================
   LARGE MOBILE — max-width: 767px
============================================================ */
@media (max-width: 767px) {

  :root { --header-h: 80px; --topbar-h: 0px; }

  body { font-size: 15px; }

  /* Sub-product image rows: 2 cards per row, no carousel. */
  .comm-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Side reveals become vertical on phones. A 55px horizontal
     offset on a 400px screen widened the page and made every
     section look shifted — and sideways motion is barely
     readable at this width anyway. */
  [data-anim="left"], [data-anim="right"] { transform: translateY(30px); }

  .nav         { display: none; }
  .header__cta { display: none; }
  .burger      { display: grid; }
  .topbar      { display: none; }
  .mobile-menu { display: block; }

  .logo img { height: 56px; }
  .header.is-scrolled .logo img { height: 48px; }
  .burger { width: 46px; height: 46px; border-radius: 13px; }
  .burger__box { width: 20px; height: 15px; }
  .burger__line:nth-child(2) { top: 6.5px; }
  .burger.is-open .burger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.is-open .burger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .section    { padding: 14px 0; }
  .section-sm { padding: 10px 0; }

  h1 { font-size: 32px; }
  h2 { font-size: 27px; }
  h3 { font-size: 19px; }
  h4 { font-size: 17px; }

  .sec-head       { margin-bottom: 30px; text-align: left; }
  .sec-head.center { text-align: center; }
  .sec-text       { font-size: 15px; }
  .sec-label      { font-size: 11px; letter-spacing: 1.4px; }

  .btn-k { padding: 12px 22px; font-size: 14px; }

  /* Slider — exactly ONE card on mobile */
  .kslider { --per-view: 1; --slider-gap: 16px; }
  .kslider__viewport { padding: 8px 0 18px; }
  .kslider__nav { gap: 14px; margin-top: 20px; }
  .kslider__arrow { width: 46px; height: 46px; }
  .kslider__arrow svg { width: 15px; height: 15px; }
  /* Too many dots to fit once there is 1 card per view — show the counter instead */
  .kslider__dots { display: none; }

  /* ---- HERO: fully reworked for small screens ----
     Text is centred over a darker wash so it stays readable
     whatever photograph the client supplies. */
  .hero__slide {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 90px 0 120px;
    align-items: flex-end;
    text-align: center;
  }
  .hero__slide::after {
    background: linear-gradient(180deg, rgba(45,26,8,.55) 0%, rgba(45,26,8,.72) 55%, rgba(45,26,8,.92) 100%);
  }
  .hero__bg img { object-position: center center; }

  .hero__content { padding-block: 0; }
  .hero__inner   { max-width: 100%; margin-inline: auto; }

  .hero__tag   { padding: 7px 14px; letter-spacing: 1.1px; }
  .hero__title { line-height: 1.18; }
  .hero__text  { line-height: 1.65; max-width: 100%; }

  .hero__actions { justify-content: center; }
  .hero__actions .btn-k { flex: 1 1 auto; justify-content: center; min-width: 150px; }

  /* Decoration is desktop-only — it competes with the copy here */
  .hero__side { display: none; }
  .hero__rule { display: none; }
  .hero__deco::before { left: -30%; bottom: -40%; width: 110%; padding-top: 110%; }

  /* Bottom bar: dots centred, counter right, scroll cue hidden */
  .hero__bottom { bottom: 18px; }
  .hero__bottom-inner { justify-content: center; gap: 16px; }
  .hero__scroll { display: none; }
  .hero__dots { display: flex; }
  .hero__count { font-size: 12px; }
  .hero__count b { font-size: 20px; }

  /* ---- Product tiles: 2 across, 2 rows per slide ----
     Title ONLY. There is not enough room on a phone for the
     description as well, and cramming both made the tiles
     unreadable — so the copy lives on the product page. */
  .pslider { --page-gap: 12px; }
  .pslider__page { grid-template-columns: repeat(2, 1fr); }

  .ptile { border-radius: 12px; }
  .ptile::after { inset: 8px; opacity: 1; transform: none; border-color: rgba(255,255,255,.28); }
  .ptile__body { padding: 14px 10px; justify-content: flex-end; }

  /* Stronger bottom wash so the title always reads */
  .ptile__veil {
    background: linear-gradient(180deg, rgba(20,11,3,.10) 0%, rgba(20,11,3,.52) 48%, rgba(20,11,3,.90) 100%);
  }

  .ptile__num  { display: none; }
  .ptile__cta   { display: none; }   /* mobile shows the title only */

  .ptile__name {
    font-size: 15px;
    letter-spacing: 1.1px;
    line-height: 1.32;
  }
  .ptile__name::after { width: 24px; margin-top: 10px; }

  /* ---- Intro statement ---- */
  .intro { padding: 46px 0 38px; }
  .intro__label { font-size: 11.5px; letter-spacing: 2.6px; margin-bottom: 12px; }
  .intro__divider { width: 200px; margin-bottom: 20px; }
  .intro__text { font-size: 14.5px; line-height: 1.75; }

  /* ---- Green commodity bar ---- */
  .combar { padding: 12px 0; }

  /* ---- Journey: one-by-one carousel ----
     Stacked, the core landed between steps 3 and 4 and the list ran
     very long. On phones it becomes a stepper instead. */
  .hub {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
    margin-top: 4px;
  }
  .hub__lines { display: none; }

  .hub__core {
    grid-column: auto; grid-row: auto;
    width: 128px; height: 128px;
    margin: 0 auto 26px;
  }
  .hub__label { font-size: 19px; }

  .hub__viewport { display: block; overflow: hidden; }
  .hub__track {
    display: flex;
    transition: transform .55s var(--ease);
    will-change: transform;
  }

  .hnode {
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 0 0 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
    gap: 14px;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(96,57,19,.06);
  }
  .hnode:hover { transform: none; }
  .hnode:hover .hnode__icon { transform: none; background: var(--green-soft); color: var(--green); border-color: transparent; }

  /* Steps 1–3 have the icon after the text in source order (it sits
     on the right of the rail on desktop). Force it to the top here. */
  .hnode__icon {
    order: -1;
    width: 52px; height: 52px;
    border-radius: 15px;
    background: var(--green-soft);
    border-color: transparent;
    box-shadow: none;
  }
  .hnode__icon svg { width: 24px; height: 24px; }

  .hnode__step {
    display: block;
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 6px;
  }
  .hnode h3 { font-size: 17px; letter-spacing: 1.1px; margin-bottom: 3px; }
  .hnode__sub { font-size: 12.5px; }
  .hnode p { font-size: 13.5px; }

  /* Stepper controls */
  .hub__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }
  .hub__arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--brown);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .3s var(--ease), border-color .3s ease, color .3s ease, opacity .3s ease;
  }
  .hub__arrow svg { width: 15px; height: 15px; }
  .hub__arrow:disabled { opacity: .32; }
  .hub__dots { display: flex; align-items: center; gap: 7px; }
  .hub__dot {
    width: 8px; height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--sand);
    transition: width .35s var(--ease), background .3s ease, border-radius .3s ease;
  }
  .hub__dot.is-active { width: 24px; border-radius: 8px; background: var(--green); }
  .hub__count { font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--muted); }
  .hub__count b { color: var(--green-dark); font-size: 15px; }
  /* ---- Achievement callout stacks ---- */
  .callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    margin-top: 38px;
    border-radius: 16px;
  }
  .callout__icon { width: 56px; height: 56px; border-radius: 16px; }
  .callout__icon svg { width: 26px; height: 26px; }
  .callout__label { font-size: 10.5px; letter-spacing: 1.8px; }
  .callout p { font-size: 13.5px; }

  /* ---- Core capabilities ----
     Stacked centre-aligned cards ran three elements deep each and
     left item 05 stranded on its own row. On a phone these read
     far better as compact horizontal rows: icon left, copy right. */
  .caps { padding: 46px 0; }
  .caps__chain {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }
  .caps__rail { display: none; }
  .cap__dot   { display: none; }   /* the marker only means something on the rail */

  .cap {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(96,57,19,.05);
  }
  .cap:hover { transform: none; box-shadow: 0 3px 12px rgba(96,57,19,.05); background: #fff; }

  /* Explicit placement — source order is num, dot, icon, title,
     so without this the number lands in the icon's column. */
  .cap__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 52px; height: 52px;
    margin: 0;
    border-radius: 14px;
    background: var(--green-soft);
    border-color: transparent;
  }
  .cap__icon svg { width: 23px; height: 23px; }
  .cap:hover .cap__icon { transform: none; background: var(--green-soft); color: var(--green); border-color: transparent; }

  .cap__num {
    grid-column: 2;
    grid-row: 1;
    position: static;
    display: block;
    font-size: 10.5px;
    letter-spacing: 2px;
    margin-bottom: 2px;
  }
  .cap h3 {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    line-height: 1.4;
  }

  /* ---- Seamless Connectivity: locations 2 per row ---- */
  .conn__media { margin-top: 28px; }
  .hub-card { padding: 16px 14px; border-radius: 14px; }
  .hub-card:hover { transform: none; box-shadow: 0 10px 26px rgba(11,58,34,.20); }
  .hub-card:hover::before { opacity: .5; transform: none; }
  .hub-card__pin { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 10px; }
  .hub-card__pin svg { width: 17px; height: 17px; }
  .hub-card:hover .hub-card__pin { background: rgba(255,255,255,.14); transform: none; }
  .hub-card:hover .hub-card__pin svg { color: #fff; }
  .hub-card h4 { font-size: 15px; margin-bottom: 4px; }
  .hub-card p { font-size: 12px; line-height: 1.45; }

  /* ---- Trust cards: 2 per row, 2 rows ---- */
  .tcard { padding: 20px 16px; border-radius: 15px; }
  .tcard:hover { transform: none; box-shadow: none; }
  .tcard__head { margin-bottom: 14px; }
  .tcard__icon { width: 46px; height: 46px; border-radius: 13px; }
  .tcard__icon svg { width: 21px; height: 21px; }
  .tcard:hover .tcard__icon { transform: none; box-shadow: none; }
  .tcard__num { font-size: 22px; }
  .tcard h3 { font-size: 15px; margin-bottom: 7px; line-height: 1.28; }
  .tcard p { font-size: 12.8px; line-height: 1.5; }

  /* ---- Stat band: 2 x 2 grid ---- */
  .statband { margin-top: 36px; border-radius: 18px; }
  .kstat { padding: 24px 12px; }
  .kstat__rule { width: 22px; margin-bottom: 12px; }
  .kstat__num { font-size: 34px; letter-spacing: -.5px; }
  .kstat__num i { font-size: .44em; }
  .kstat__label { margin-top: 9px; font-size: 10.5px; letter-spacing: 1px; }

  /* ---- Our Expertise: one square box per view, as a carousel ---- */
  .expertise { padding: 50px 0; }
  .kslider--grid { --per-view: 1; --slider-gap: 14px; }
  .kslider--grid .kslider__dots { display: flex; }   /* only 6 dots, they fit */

  /* In carousel mode the off-screen slides are clipped by the
     viewport, so they never intersect and would stay invisible.
     The whole slider animates in as one block instead. */
  .kslider--grid .kslider__slide[data-anim] { opacity: 1; transform: none; }

  .xbox { padding: 24px; min-height: 198px; gap: 18px; }

  /* No real hover on touch — a tap must not leave a card stuck in its hover state */
  .xbox:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(11,58,34,.18);
    background:
      radial-gradient(95% 70% at 14% 0%, rgba(255,255,255,.17) 0%, transparent 58%),
      linear-gradient(158deg, #0A7C45 0%, #066039 48%, #0B3A21 100%);
    border-color: rgba(255,255,255,.13);
  }
  .xbox:hover::before { opacity: .55; transform: none; }
  .xbox:hover .xbox__icon {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.22);
    color: #fff;
    transform: none;
    animation: none;
  }
  .xbox:hover .xbox__title { transform: none; }
  .xbox:hover .xbox__title::after { width: 30px; background: rgba(255,255,255,.55); }
  .xbox:hover .xbox__num { opacity: .13; transform: none; }
  .xbox::after { display: none; }   /* no shine sweep without a pointer */
  .xbox__icon { width: 56px; height: 56px; border-radius: 15px; }
  .xbox__icon svg { width: 25px; height: 25px; }
  .xbox__num { font-size: 84px; right: 12px; bottom: -16px; }
  .xbox__title { font-size: 16.5px; max-width: 100%; }
  .xbox__title::after { margin-top: 13px; }

  /* Quick bar — 2 x 2, tighter */
  .qbar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
    margin-bottom: 36px;
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(46,30,12,.2);
  }
  /* Stacked and centred, with a shared minimum height so the
     2 x 2 grid reads as a clean block rather than four
     different-sized cells */
  .qbar__item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 10px;
    padding: 20px 12px;
    min-height: 148px;
  }
  .qbar__item:nth-child(3) { border-left: 0; }
  .qbar__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .qbar__item:hover { background: #fff; }        /* no hover state on touch */
  .qbar__item:hover .qbar__num { color: var(--sand); opacity: .3; transform: none; }
  .qbar__icon { width: 44px; height: 44px; border-radius: 12px; }
  .qbar__icon svg { width: 20px; height: 20px; }
  .qbar__text b { font-size: 14.5px; margin-bottom: 3px; }
  .qbar__text span { font-size: 12px; line-height: 1.4; }
  /* Small and faint — it was colliding with the copy */
  .qbar__num { font-size: 28px; right: 8px; bottom: 4px; opacity: .3; }

  /* About */
  .about__media  { margin-bottom: 54px; }
  .about__inset  { width: 160px; right: 0; bottom: -24px; border-width: 5px; }
  .about__badge  { left: 0; top: 20px; padding: 14px 18px; }
  .about__badge b { font-size: 27px; }
  .about__badge span { font-size: 11.5px; }
  .about__points { margin: 22px 0 26px; }

  /* Stats */
  .stat-box { padding: 6px; }
  .stat-box b { font-size: 34px; }
  .stat-box span { font-size: 13px; }

  /* Cards */
  .pcard__body, .bcard__body { padding: 20px; }
  .fcard { padding: 26px 22px; }
  .fcard__icon { width: 50px; height: 50px; margin-bottom: 16px; }

  /* Hover lifts off on touch */
  .pcard:hover, .bcard:hover, .fcard:hover, .hub-card:hover { transform: none; }

  /* CTA */
  .cta-band { padding: 56px 0; text-align: center; }
  .cta-band::after {
    background: linear-gradient(180deg, rgba(96,57,19,.9) 0%, rgba(96,57,19,.94) 100%);
  }
  .cta-band h2 { font-size: 27px; }
  .cta-band p  { font-size: 15px; }
  .cta-band__actions { justify-content: center; margin-top: 26px; }

  /* Footer */
  .footer__top { padding: 48px 0 30px; }
  .footer h5 { margin-bottom: 16px; margin-top: 26px; }
  .footer__bottom { padding: 18px 0; text-align: center; }
  .footer__legal { justify-content: center; gap: 16px; margin-top: 10px; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }


  /* ---------- ABOUT PAGE ---------- */

  /* Inner page hero */
  .phero { min-height: 300px; padding: 58px 0 66px; }
  .phero__tag { font-size: 10px; padding: 7px 14px; letter-spacing: 1.1px; }
  .phero__title { font-size: 31px; line-height: 1.14; }
  .phero__text { font-size: 14.6px; line-height: 1.75; }
  .phero__scroll { display: none; }
  .crumb { font-size: 12px; margin-bottom: 14px; }

  /* Director's message — portrait on top, quote below */
  .dmsg-sec { padding-top: 46px; }
  .dmsg { border-radius: 20px; }
  .dmsg__media { padding: 20px; height: 320px; }
  .dmsg__media img { border-radius: 16px; }
  .dmsg__disc { width: 250px; height: 250px; margin-left: -125px; }
  .dmsg__body { padding: 26px 20px 32px; }
  .dmsg__body p { font-size: 14.4px; line-height: 1.8; }
  .dmsg__mark { width: 34px; height: 26px; margin-bottom: 12px; }
  .dmsg__lead { font-size: 18px; margin-bottom: 16px; }
  .dmsg__sign b { font-size: 15.5px; }
  .dmsg__sign span { font-size: 12.5px; }

  /* Story */
  .story__media { margin-bottom: 34px; }
  .story__inset { width: 130px; left: -10px; bottom: -18px; border-width: 5px; }
  .story__badge { right: -8px; top: 18px; padding: 12px 15px; }
  .story__badge b { font-size: 24px; }
  .story__badge span { font-size: 11px; }
  .msrail { margin-top: 40px; }
  .msnode { padding: 0 0 22px 30px; }
  .msnode__dot { width: 16px; height: 16px; top: 4px; }
  .msnode::before { left: 7px; }
  .msnode__year { font-size: 19px; }
  .msnode__title { font-size: 14.6px; }
  .msnode__text { font-size: 13.4px; }

  /* Purpose */
  .pbento { gap: 14px; }
  .pcell { border-radius: 18px; padding: 24px 20px; }
  .pcell--lead { gap: 18px; }
  .pcell--lead .pcell__statement { font-size: 22px; line-height: 1.36; }
  .pcell__icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 13px; }
  .pcell__icon svg { width: 21px; height: 21px; }
  .pcell h3 { font-size: 18px; }
  .pcell p { font-size: 14.4px; }

  /* Values — the pill keeps its shape, everything inside steps down */
  .values__intro { margin-bottom: 4px; }
  .values__mark { width: 50px; height: 50px; margin-top: 18px; }
  .values__mark svg { width: 22px; height: 22px; }
  .vlist { gap: 12px; }
  .vrow { padding: 14px 16px; gap: 13px; border-radius: 50px 16px 16px 50px; }
  .vrow:hover { transform: none; }
  .vrow__icon { width: 46px; height: 46px; }
  .vrow__icon svg { width: 21px; height: 21px; }
  .vrow__body { padding-right: 24px; }
  .vrow__body b { font-size: 15px; }
  .vrow__body span { font-size: 13.4px; line-height: 1.6; }
  .vrow__num { font-size: 24px; right: 12px; }

  /* Why partner — steps 2 x 2 so the block does not run to four screens */
  .whyk__panel { border-radius: 18px; padding: 22px 18px; margin-top: 6px; }
  .whyk__lead { font-size: 15px; padding-left: 14px; margin-bottom: 20px; }
  .wsteps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wstep { padding: 16px 13px 15px; border-radius: 15px; }
  .wstep:hover { transform: none; }
  .wstep__num { font-size: 22px; right: 11px; top: 9px; }
  .wstep__icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 11px; }
  .wstep__icon svg { width: 19px; height: 19px; }
  .wstep b { font-size: 13.8px; }
  .wstep span { font-size: 12.2px; line-height: 1.6; }
  .whyk__stats { margin-top: 36px; }

  /* Industries — stays the 2-column mosaic (its mobile default),
     just tightens the row height and gap */
  .isgrid { grid-auto-rows: 185px; gap: 10px; }
  .istile { border-radius: 15px; }
  .istile__icon { width: 34px; height: 34px; border-radius: 10px; left: 12px; top: 12px; }
  .istile__icon svg { width: 16px; height: 16px; }
  .istile__name { font-size: 12.6px; left: 12px; right: 12px; bottom: 12px; }
  .inds__foot { margin-top: 26px; font-size: 14.4px; }

  /* --- Team group tabs ---
     A 2-column segmented control instead of a squeezed single row.
     Three tabs at a readable size cannot fit one row at 375px, and
     flex-wrap put them at arbitrary widths; the grid makes the last
     tab span the full width so the block always reads as deliberate.
     Padding is set to keep every tab at a ~44px touch target. */
  .ttabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    width: 100%;
    padding: 7px;
    border-radius: 20px;
    margin-bottom: 24px;
  }
  .ttab {
    padding: 15px 10px;
    font-size: 13.2px;
    border-radius: 40px;
  }
  .ttab:last-child { grid-column: 1 / -1; }

  /* Team — one portrait at a time */
  .kslider.team__slider { --per-view: 1; --slider-gap: 16px; }
  .tmcard { border-radius: 9px; }
  .tmcard:hover { transform: none; }
  .tmcard__body { left: 12px; right: 12px; bottom: 12px; padding: 12px 10px 13px; }
  .tmcard__name { font-size: 15.5px; }
  .tmcard__name::after { width: 36px; margin: 7px auto; }
  .tmcard__role { font-size: 12.2px; }
  .tmcard__in { width: 34px; height: 34px; right: 10px; top: 10px; border-radius: 9px; }
  .tmcard__in svg { width: 15px; height: 15px; }


  /* ---------- BLOG LISTING ---------- */

  /* Search on its own row, pills scrolling horizontally below it.
     The bar stays sticky on phones — the client asked for that
     explicitly — so its height is fixed and declared here. */
  :root { --bfilter-h: 108px; }

  .bfilter { box-shadow: 0 4px 16px rgba(96,57,19,.07); }
  .bfilter__inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; min-height: 0; }
  .bfilter__tools { order: -1; width: 100%; justify-content: space-between; gap: 12px; }
  .bsearch { flex: 1 1 auto; width: auto; }
  .bsearch input { padding: 10px 34px 10px 36px; font-size: 13.5px; }
  .bfilter__count { font-size: 11.5px; }
  .bfilter__count b { font-size: 15px; }
  .bfilter__scroll { width: 100%; flex: 1 1 100%; }
  .bpill { padding: 9px 13px; font-size: 12.5px; gap: 6px; }
  .bpill span { font-size: 9.5px; padding: 2px 5px; }

  /* One article per row */
  .bgrid { grid-template-columns: 1fr; gap: 18px; }

  /* Featured returns to a stacked card — a side-by-side split at
     this width leaves both halves too narrow to read */
  .bcard--wide { display: flex; }
  .bcard--wide .bcard__media { aspect-ratio: 16/10; height: auto; }
  .bcard--wide .bcard__body { padding: 20px 18px; }
  .bcard--wide .bcard__body h3 { font-size: 19px; }

  .bcard__body { padding: 18px 16px; }
  .bcard__body h3 { font-size: 17px; }
  .bcard__body p { font-size: 13.8px; }
  .bcard__flag { left: 11px; top: 11px; padding: 5px 11px; font-size: 9.5px; }

  /* Sidebar below the list, single column, not sticky */
  .bside { position: static; gap: 16px; margin-top: 40px; }
  .swidget { padding: 20px 17px; }
  .swidget__title { font-size: 16px; }
  .slist button { padding: 9px 11px; font-size: 13.8px; }
  .spost__media { width: 66px; height: 56px; }
  .spost__body b { font-size: 13.2px; }
  .scta { padding: 24px 20px; }

  .blog-main { padding-top: 34px; }
  .bempty { padding: 40px 18px; }
  .bmore { margin-top: 28px; }


  /* ---------- BLOG DETAIL ---------- */

  .artbar { padding: 12px 0; }
  .crumb--dark { font-size: 12px; }

  .artlead { margin-bottom: 18px; }
  .artlead img { aspect-ratio: 4 / 3; border-radius: var(--radius); }

  .artmeta2 { gap: 8px 13px; margin-bottom: 13px; }
  .artmeta2__cat { padding: 5px 11px; font-size: 10px; }
  .artmeta2__item { font-size: 12px; gap: 6px; }
  .artmeta2__item svg { width: 13px; height: 13px; }

  .arttitle { font-size: 25px; line-height: 1.24; margin-bottom: 20px; }

  .artbody { padding-top: 34px; }
  .prose { max-width: 100%; }
  .prose > p { font-size: 15.4px; line-height: 1.85; margin-bottom: 17px; }
  .prose__lead { font-size: 16.5px !important; padding-left: 15px; margin-bottom: 24px !important; }
  .prose h2 { margin: 30px 0 12px; }
  .prose ul li { font-size: 15px; padding-left: 25px; }

  /* Quote mark moves above the text — a 40px left column plus a
     rule leaves too little room for the quote itself on a phone */
  .pullquote { flex-direction: column; gap: 14px; padding: 22px 18px; margin: 26px 0; }
  .pullquote__mark { width: 32px; padding-right: 0; border-right: 0; }
  .pullquote p { font-size: 16.5px; }

  .prose__fig { margin: 24px 0; }
  .prose__fig figcaption { font-size: 12.4px; }

  .keybox { padding: 22px 18px; margin: 26px 0; }
  .keybox h3 { font-size: 16.5px; }
  .keybox ul li { font-size: 14px; }

  /* Tags and share stack rather than sharing a row */
  .artfoot { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 30px; padding-top: 22px; }
  .arttags { gap: 7px; }
  .arttags a { padding: 7px 12px; font-size: 12px; }
  .share__links { flex-wrap: wrap; }

  /* Author block goes vertical, avatar centred */
  .authorbox { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 22px 18px; }
  .authorbox__avatar img { width: 72px; height: 72px; }
  .authorbox h3 { font-size: 17.5px; }
  .authorbox p { font-size: 14px; }

  /* Prev / next stack, and "next" stops being right-aligned */
  .artnav { grid-template-columns: 1fr; gap: 12px; }
  .artnav__item { padding: 16px 17px; }
  .artnav__item--next { text-align: left; }
  .artnav__item b { font-size: 14.6px; }

  /* Related posts and comments */
  .blockhead { font-size: 18.5px; padding-bottom: 12px; margin-bottom: 20px; }
  .relblock { margin-top: 38px; }
  .relgrid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .relcard b { font-size: 13.4px; }
  .relcard__cat { font-size: 9.5px; letter-spacing: 1.1px; }
  .relcard__date { font-size: 11.5px; }

  .comments { margin-top: 40px; }
  .comment { gap: 12px; padding: 18px 0; }
  .comment__avatar img { width: 48px; height: 48px; }
  .comment--reply { margin-left: 18px; padding-left: 14px; }
  .comment__head b { font-size: 14.6px; }
  .comment__date { font-size: 11.6px; }
  .comment__body p { font-size: 14px; }
  .replyform__note { font-size: 12.8px; }
  .kfield { padding: 12px 14px; font-size: 14px; }

  /* Sidebar drops below the article, single column, not sticky */
  .artbody .bside { position: static; display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .toc a { font-size: 13.6px; padding: 9px 11px; }
  .spromo { aspect-ratio: 16 / 9; }
  .spromo__body b { font-size: 22px; }
  .sabout__avatar { width: 88px; height: 88px; }
  .pop__media { width: 58px; height: 52px; }
  .pop__num { font-size: 17px; }
  .pop__body b { font-size: 13px; }


  /* ---------- CONTACT ---------- */

  .cform { padding: 24px 18px 26px; border-radius: 18px; }
  .kfield--soft { padding: 13px 15px; border-radius: 11px; }
  .cform .sec-head { margin-bottom: 22px; }
  .cform__status { font-size: 13.6px; padding: 12px 15px; }

  /* One card per row — three across at this width leaves the
     phone number and email address breaking mid-string */
  .cgrid { grid-template-columns: 1fr; gap: 14px; }
  .ccard { padding: 22px 18px; border-radius: 16px; }
  .ccard:hover { transform: none; }
  .ccard__icon { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 13px; }
  .ccard__icon svg { width: 22px; height: 22px; }
  .ccard__value { font-size: 17px; }
  .ccard p { font-size: 13.4px; }

  .cmap { margin-top: 22px; border-radius: 16px; }
  .cmap iframe { height: 300px; }


  /* ---------- LEGAL PAGES ---------- */
  .legal p { font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
  .legal h2 { font-size: 17.5px; margin: 30px 0 10px; }

  /* Product pages */
  .comm-card { padding: 24px 20px; }
  .comm-card h3 { font-size: 17px; }
  .comm-card p { font-size: 13.8px; }
  .comm-card--photo { padding: 0; }
  .comm-card--photo .comm-card__body { padding: 16px 14px 18px; }
  .comm-card--photo h3 { font-size: 14.5px; }

  .strength-box { padding: 26px 22px; }
  .strength-box__title { font-size: 17px; }
  .strength-box__text { font-size: 13.8px; }

  .feature-card { padding: 24px 20px; gap: 14px; }
  .feature-card__icon { width: 46px; height: 46px; }
  .feature-card__icon svg { width: 22px; height: 22px; }
  .feature-card__body h3 { font-size: 16px; }
  .feature-card__body p { font-size: 13.5px; }

  .tag-group { padding: 24px 20px; }
  .tag-group__title { font-size: 16px; }
  .tag-pill { font-size: 12.5px; padding: 7px 13px; }

  .cta-band { padding: 60px 0; }
  .cta-band h2 { font-size: 32px; }
  .cta-band .btn-k { flex: 0 1 auto; }

  .sep { padding: 32px 0 48px; }
  .sep__line { max-width: 200px; }
}


/* ============================================================
   MOBILE — max-width: 480px
============================================================ */
@media (max-width: 480px) {

  :root { --header-h: 74px; --topbar-h: 0px; }

  .logo img { height: 50px; }
  .burger { width: 44px; height: 44px; border-radius: 12px; }
  .burger__box { width: 19px; height: 14px; }
  .burger__line:nth-child(2) { top: 6px; }
  .burger.is-open .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger.is-open .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .section    { padding: 12px 0; }
  .section-sm { padding: 9px 0; }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  /* Hero */
  .hero__slide  { padding: 74px 0 96px; }
  .hero__actions .btn-k { width: 100%; min-width: 0; }
  .hero__bottom { bottom: 16px; }
  .hero__dot    { width: 22px; }
  .hero__dot.is-active { width: 42px; }
  .hero__count  { font-size: 11px; }
  .hero__count b { font-size: 17px; }

  .btn-k { padding: 12px 20px; font-size: 13.5px; }

  .stat-box b { font-size: 30px; }

  .hub-card { padding: 14px 12px; }
  .hub-card__pin { width: 34px; height: 34px; border-radius: 10px; }
  .hub-card__pin svg { width: 15px; height: 15px; }
  .hub-card h4 { font-size: 13.5px; }
  .hub-card p { font-size: 11.5px; }

  .tcard { padding: 17px 13px; }
  .tcard__icon { width: 42px; height: 42px; border-radius: 12px; }
  .tcard__icon svg { width: 19px; height: 19px; }
  .tcard__num { font-size: 19px; }
  .tcard h3 { font-size: 13.8px; }
  .tcard p { font-size: 12px; }

  .kstat { padding: 20px 8px; }
  .kstat__num { font-size: 29px; }
  .kstat__label { font-size: 9.8px; letter-spacing: .8px; }

  /* Product tiles — title only, one step down */
  .pslider { --page-gap: 11px; }
  .ptile__name { font-size: 13.5px; letter-spacing: .9px; }
  .ptile__name::after { width: 22px; margin-top: 9px; }

  .pcard__body, .bcard__body { padding: 18px; }
  .pcard__list li { font-size: 11px; padding: 4px 9px; }

  .cta-band h2 { font-size: 24px; }
  .mobile-menu__link { font-size: 16px; }


  /* ---------- ABOUT PAGE ---------- */

  .phero { min-height: 264px; padding: 48px 0 56px; }
  .phero__title { font-size: 27px; }
  .phero__text { font-size: 14px; }
  .phero__tag { margin-bottom: 14px; }

  .dmsg__media { padding: 16px; height: 240px; }
  .dmsg__disc { width: 212px; height: 212px; margin-left: -106px; }
  .dmsg__body { padding: 22px 17px 26px; }
  .dmsg__body p { font-size: 13.8px; }
  .dmsg__lead { font-size: 16.5px; }

  .story__inset { width: 112px; }
  .story__badge b { font-size: 21px; }
  .msnode__year { font-size: 17.5px; }

  .pcell { padding: 20px 17px; border-radius: 16px; }
  .pcell--lead .pcell__statement { font-size: 20px; }

  .vrow { padding: 12px 13px; gap: 11px; }
  .vrow__icon { width: 42px; height: 42px; }
  .vrow__icon svg { width: 19px; height: 19px; }
  .vrow__body b { font-size: 14px; }
  .vrow__body span { font-size: 12.4px; }
  .vrow__num { font-size: 21px; right: 10px; }

  .whyk__panel { padding: 18px 14px; }
  .whyk__lead { font-size: 14.2px; }
  .wsteps { gap: 10px; }
  .wstep { padding: 14px 11px 13px; }
  .wstep__icon { width: 36px; height: 36px; border-radius: 11px; }
  .wstep__icon svg { width: 17px; height: 17px; }
  .wstep b { font-size: 13px; }
  .wstep span { font-size: 11.4px; }

  .isgrid { grid-auto-rows: 168px; gap: 9px; }
  .istile__icon { width: 30px; height: 30px; border-radius: 9px; left: 10px; top: 10px; }
  .istile__icon svg { width: 14px; height: 14px; }
  .istile__name { font-size: 10.8px; letter-spacing: .3px; left: 10px; right: 10px; bottom: 10px; }
  .inds__foot { font-size: 13.6px; }

  .tmcard__body { padding: 13px 12px; }
  .tmcard__name { font-size: 14.5px; }
  .ttab { padding: 10px 12px; font-size: 12.6px; }

  /* ---------- BLOG LISTING ---------- */
  :root { --bfilter-h: 108px; }
  .bsearch input { font-size: 13px; }
  .bpill { padding: 8px 12px; font-size: 12px; }
  .bfilter__count { font-size: 11px; }
  .bcard--wide .bcard__body h3 { font-size: 18px; }
  .bcard__body h3 { font-size: 16.4px; }
  .bempty__icon { width: 54px; height: 54px; }

  /* ---------- BLOG DETAIL ---------- */
  .arttitle { font-size: 22.5px; }
  .prose > p { font-size: 15px; }
  .prose__lead { font-size: 15.8px !important; }
  .pullquote p { font-size: 15.6px; }
  .share__links a, .share__copy { height: 38px; }
  .relgrid { grid-template-columns: 1fr; gap: 16px; }
  .blockhead { font-size: 17.5px; }

  /* ---------- CONTACT ---------- */
  .cform { padding: 20px 15px 22px; }
  .ccard__value { font-size: 15.8px; }
  .ccard p { font-size: 12.8px; }
  .cmap iframe { height: 260px; }

  /* Product pages */
  .comm-card { padding: 20px 16px; }
  .comm-card h3 { font-size: 16px; margin-bottom: 6px; }
  .comm-card p { font-size: 13px; }
  .comm-card--photo { padding: 0; }
  .comm-card--photo .comm-card__body { padding: 14px 12px 16px; }
  .comm-card--photo h3 { font-size: 13.8px; margin-bottom: 0; }

  .strength-box { padding: 22px 18px; }
  .strength-box__title { font-size: 16px; margin-bottom: 10px; }
  .strength-box__text { font-size: 13.2px; }

  .feature-card { flex-direction: column; align-items: flex-start; padding: 18px 14px; gap: 10px; }
  .feature-card__icon { width: 40px; height: 40px; }
  .feature-card__icon svg { width: 19px; height: 19px; }
  .feature-card__body h3 { font-size: 14.5px; margin-bottom: 4px; }
  .feature-card__body p { font-size: 12.5px; }

  .tag-group { padding: 20px 16px; }
  .tag-group__icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .tag-group__icon svg { width: 20px; height: 20px; }
  .tag-group__title { font-size: 15px; margin-bottom: 12px; }
  .tag-pill { font-size: 12px; padding: 6px 12px; }

  .cta-band { padding: 50px 0; }
  .cta-band h2 { font-size: 22px; }

  .sep { padding: 28px 0 40px; }
}


/* ============================================================
   MOBILE SMALL — max-width: 375px
============================================================ */
@media (max-width: 375px) {

  .section { padding: 40px 0; }

  h1 { font-size: 25px; }
  h2 { font-size: 22px; }

  .hero__slide { padding: 66px 0 92px; }
  .hero__tag   { padding: 6px 12px; }

  .stat-box b { font-size: 27px; }
  .stat-box span { font-size: 12px; }

  .about__inset { width: 132px; }
  .about__badge b { font-size: 24px; }

  .fcard { padding: 22px 18px; }
  .cta-band h2 { font-size: 22px; }

  /* Product tiles stay 2 across, title only — just tighter */
  .pslider { --page-gap: 10px; }
  .ptile__body { padding: 12px 8px; }
  .ptile__name { font-size: 12.5px; letter-spacing: .8px; }
  .ptile__name::after { width: 20px; margin-top: 8px; }

  .intro { padding: 38px 0 32px; }
  .intro__divider { width: 160px; }
  .xbox { padding: 20px; min-height: 176px; gap: 16px; }
  .xbox__icon { width: 50px; height: 50px; border-radius: 13px; }
  .xbox__icon svg { width: 23px; height: 23px; }
  .xbox__num { font-size: 70px; right: 10px; bottom: -14px; }
  .xbox__title { font-size: 15px; }
  .xbox__title::after { margin-top: 11px; }

  /* Quick bar stays 2 x 2 — a single column would make the card
     four rows tall and impossible to straddle the boundary with */
  .qbar__item { padding: 16px 10px; min-height: 132px; gap: 8px; }
  .qbar__icon { width: 40px; height: 40px; border-radius: 11px; }
  .qbar__icon svg { width: 18px; height: 18px; }
  .qbar__text b { font-size: 13.5px; }
  .qbar__text span { font-size: 11px; }
  .qbar__num { font-size: 24px; }


  /* ---------- ABOUT PAGE ---------- */

  .phero { min-height: 236px; padding: 40px 0 48px; }
  .phero__title { font-size: 24px; }
  .phero__text { font-size: 13.4px; }
  .crumb { font-size: 11.5px; }

  .dmsg__media { height: 210px; }
  .dmsg__disc { width: 186px; height: 186px; margin-left: -93px; }
  .dmsg__lead { font-size: 15.5px; }
  .dmsg__body p { font-size: 13.2px; }

  .story__inset { width: 98px; }
  .story__badge { padding: 10px 12px; }
  .story__badge b { font-size: 19px; }

  .pcell--lead .pcell__statement { font-size: 18px; }

  /* The number watermark has nowhere left to sit at this width */
  .vrow__num { display: none; }
  .vrow__body { padding-right: 0; }
  .vrow__icon { width: 38px; height: 38px; }
  .vrow__icon svg { width: 17px; height: 17px; }
  .vrow { border-radius: 44px 14px 14px 44px; }

  .wstep { padding: 12px 9px 11px; }
  .wstep__num { font-size: 19px; right: 9px; top: 8px; }
  .wstep b { font-size: 12.2px; }
  .wstep span { font-size: 10.8px; }

  .isgrid { grid-auto-rows: 150px; gap: 8px; }
  .istile__icon { width: 28px; height: 28px; border-radius: 8px; left: 9px; top: 9px; }
  .istile__icon svg { width: 13px; height: 13px; }
  .istile__name { font-size: 10.2px; left: 9px; right: 9px; bottom: 9px; }

  .tmcard__name { font-size: 13.8px; }
  .tmcard__role { font-size: 11.4px; }
  .ttabs { padding: 6px; gap: 6px; border-radius: 20px; }
  .ttab { padding: 10px 10px; font-size: 11.8px; }

  /* ---------- BLOG LISTING ---------- */
  /* The total count reads as clutter next to a search box this
     narrow — each pill already carries its own count */
  .bfilter__count { display: none; }
  .bsearch { width: 100%; }
  .bpill { padding: 8px 11px; font-size: 11.5px; }
  .bcard__body { padding: 16px 14px; }
  .bcard__body h3 { font-size: 15.6px; }
  .swidget { padding: 18px 15px; }
  .spost__media { width: 58px; height: 50px; }
}


/* ============================================================
   LANDSCAPE PHONES — keep the hero usable when height is tiny
============================================================ */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1023px) {
  .hero__slide { padding: 70px 0 84px; height: auto; min-height: 0; }
  .hero__text  { display: none; }
  .hero__side  { display: none; }
}


/* ============================================================
   PRINT
============================================================ */
@media print {
  .header, .mobile-menu, .to-top,
  .hero__bottom, .hero__side, .hero__deco, .hero__rule{ display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .hero__tag, .hero__title, .hero__text, .hero__actions { opacity: 1 !important; transform: none !important; }
  .section { padding: 16px 0; break-inside: avoid; }
}
