/* DG Tech Machinery — inner page components (uses tokens from styles.css) */
.has-mega > a.active { color: var(--cobalt); }
.mega .mega-all { color: var(--cobalt); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }

/* ---------- page hero with live 3D ---------- */
.page-hero { position: relative; overflow: hidden; background:
  radial-gradient(55% 60% at 75% 60%, rgba(41, 171, 226, .16), transparent 70%),
  linear-gradient(180deg, #fff 0%, #f1f6fb 70%, #e8f0f9 100%); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding-block: clamp(40px, 7vw, 90px); }
.page-hero.solo .wrap { grid-template-columns: 1fr; text-align: center; }
.page-hero.solo .lead { margin-inline: auto; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 900; letter-spacing: -0.035em; text-wrap: balance; }
.page-hero .lead { margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-hero.solo .hero-actions { justify-content: center; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.page-hero.solo .crumbs { justify-content: center; }
.crumbs a { color: var(--cobalt); }
.crumbs span[aria-hidden] { opacity: .5; }
.hero-stats { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 32px; flex-wrap: wrap; }
.hero-stats div { min-width: 0; }
.hero-stats b { display: block; font: 800 clamp(24px, 2.6vw, 34px)/1 var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- 3D viewer ---------- */
.viewer3d { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 100%; border-radius: 28px; }
.viewer3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.viewer3d canvas:active { cursor: grabbing; }
.viewer3d.no-webgl { background: center / contain no-repeat var(--fallback, none); }
.viewer-btn { position: absolute; right: 14px; bottom: 14px; z-index: 2; border: 0; cursor: pointer; font: 600 14px/1 var(--body); padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--cobalt); box-shadow: var(--shadow); backdrop-filter: blur(10px); min-height: 44px; }
.viewer-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.viewer-hint { position: absolute; left: 14px; bottom: 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; pointer-events: none; }
.viewer-hint.gone { opacity: 0; }
.switch-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.switch-row button { border: 1px solid var(--line); background: #fff; font: 600 14px/1 var(--body); padding: 11px 16px; border-radius: 999px; cursor: pointer; min-height: 44px; color: #333; }
.switch-row button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- category overview tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.cat-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; }
.cat-tile:hover { box-shadow: var(--shadow-lg); }
.cat-tile .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 22px; background: radial-gradient(70% 60% at 50% 60%, #fff, #eaf1f9); }
.cat-tile .ph img { max-height: 100%; width: auto; object-fit: contain; transform: translateZ(40px); transition: transform .5s; }
.cat-tile:hover .ph img { transform: translateZ(60px) scale(1.04); }
.cat-tile .bd { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-tile .num { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.cat-tile h3 { font-size: 22px; font-weight: 800; }
.cat-tile p { color: var(--muted); font-size: 15px; }
.cat-tile .go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--cobalt); font-size: 15px; }

/* ---------- series cards ---------- */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.series-grid.two { grid-template-columns: repeat(2, 1fr); }
.series-grid.four { grid-template-columns: repeat(4, 1fr); }
.series { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s, border-color .3s; }
.series:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.series .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px; background: radial-gradient(70% 60% at 50% 60%, #fff, #eef3f9 75%); }
.series .ph img { max-height: 100%; width: auto; object-fit: contain; transform: translateZ(30px); }
.series.tall .ph { aspect-ratio: 4 / 5; }
.series .bd { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.series h3 { font-size: 19px; font-weight: 700; }
.series p { color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chips span { font-size: 12px; font-weight: 600; color: var(--indigo); background: rgba(41, 171, 226, .12); padding: 6px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.series .tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 10px; border-radius: 999px; }

/* ---------- featured / spotlight block ---------- */
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; background: var(--grad-soft); border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 4vw, 50px); margin-bottom: 26px; }
.spotlight.flip > :first-child { order: 2; }
.spotlight .badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--cobalt); background: #fff; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }
.spotlight h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; text-wrap: balance; }
.spotlight p { color: var(--muted); margin-top: 12px; }
.spotlight .art img { width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(15, 40, 100, .18)); }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.spec-row div { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.spec-row b { display: block; font: 800 24px/1.1 var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.spec-row span { font-size: 12.5px; color: var(--muted); }

/* ---------- brand block (injection molding partners) ---------- */
.brand-block { border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 70px); margin-top: clamp(40px, 6vw, 70px); }
.brand-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.brand-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 30px; }
.brand-head img.logo { height: 44px; width: auto; margin-bottom: 16px; }
.brand-head .brand-name { font: 800 14px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 10px; }
.brand-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
.brand-head p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 26px; }
.features div { background: var(--tint); border-radius: 18px; padding: 18px; }
.features b { display: block; font-family: var(--head); font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.features span { font-size: 13.5px; color: var(--muted); }

/* ---------- list grids (industries, process, etc.) ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.icon-grid > div { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #fff; }
.icon-grid i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.icon-grid i svg { width: 22px; height: 22px; }
.icon-grid h3 { font-size: 17px; font-weight: 700; }
.icon-grid p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.process > div { padding: 26px 22px; border-left: 1px solid var(--line); position: relative; }
.process > div:first-child { border-left: 0; }
.process > div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 800 14px/1 var(--head); color: var(--cyan); display: block; margin-bottom: 14px; }
.process h3 { font-size: 18px; font-weight: 700; }
.process p { color: var(--muted); font-size: 14.5px; margin-top: 6px; white-space: pre-line; }
.section-dark .process > div { border-color: rgba(255, 255, 255, .14); }
.section-dark .process p { color: #aebdd6; }

/* ---------- about ---------- */
.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.value-cards article { border-radius: var(--radius); padding: 30px; background: #fff; border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; }
.value-cards article:hover { box-shadow: var(--shadow-lg); }
.value-cards h3 { font-size: 19px; font-weight: 800; letter-spacing: .01em; margin: 6px 0 10px; }
.value-cards p { color: var(--muted); font-size: 15px; }
.value-cards .k { font: 800 13px/1 var(--head); color: var(--cyan); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv article { border-radius: 28px; padding: clamp(26px, 4vw, 44px); background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.mv article + article { background: linear-gradient(150deg, #0b0f2e, #121a5c 60%, #0f4ba1); }
.mv h3 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.mv p { font-size: 18px; color: rgba(255, 255, 255, .88); }
.ceo { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.ceo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.ceo blockquote { margin: 0; font: 700 clamp(24px, 3vw, 38px)/1.25 var(--head); color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
.ceo blockquote::before { content: "“"; display: block; font-size: 80px; line-height: .6; color: var(--cyan); }
.ceo cite { display: block; margin-top: 22px; font-style: normal; font-weight: 700; color: var(--ink); }
.ceo cite span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; border-radius: 22px; overflow: hidden; position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quotes figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.quotes blockquote { margin: 0; font-size: 16px; color: var(--text); }
.quotes blockquote::before { content: "“"; font: 800 44px/0.6 var(--head); color: var(--cyan); display: block; margin-bottom: 10px; }
.quotes figcaption { margin-top: auto; font-weight: 700; color: var(--ink); }
.quotes figcaption span { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- solutions ---------- */
.sol-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-cards > div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 0; }
.contact-cards h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.contact-cards p { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.contact-cards a { color: var(--cobalt); font-weight: 600; }
.contact-cards .wide { grid-column: 1 / -1; background: var(--grad); border: 0; }
.contact-cards .wide h3, .contact-cards .wide p, .contact-cards .wide a { color: #fff; }
.copy-btn { border: 0; background: rgba(15, 75, 161, .1); color: var(--cobalt); font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; cursor: pointer; margin-left: 6px; }
.quote.static { position: static; }
.careers { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--tint); border-radius: 28px; padding: clamp(24px, 4vw, 40px); }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.video-card { display: block; border-radius: var(--radius); padding: 30px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background .3s, transform .3s; }
.video-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.video-card .play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--indigo); font-size: 18px; margin-bottom: 18px; }
.video-card h3 { color: #fff; font-size: 19px; }
.video-card p { color: #aebdd6; margin-top: 6px; font-size: 14px; }
.careers-mail { font: 700 clamp(18px, 2vw, 22px)/1.4 var(--head); color: var(--ink); overflow-wrap: anywhere; }

/* photo boxes: fixed height so tall product shots never stretch a row */
.cat-tile .ph, .series .ph { aspect-ratio: auto; height: 230px; }
.series.tall .ph { aspect-ratio: auto; height: 280px; }
.cat-tile .ph img, .series .ph img { max-height: 100%; max-width: 100%; height: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .series-grid.four { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .page-hero .wrap, .spotlight, .brand-head, .sol-feature, .contact-grid, .ceo, .mv { grid-template-columns: 1fr; }
  .spotlight.flip > :first-child { order: 0; }
  .cat-tiles, .series-grid, .series-grid.four, .value-cards { grid-template-columns: 1fr 1fr; }
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process > div:nth-child(3) { border-left: 0; }
  .ceo img { max-width: 280px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}
@media (max-width: 760px) {
  .cat-tiles, .series-grid, .series-grid.two, .series-grid.four, .value-cards, .quotes, .icon-grid { grid-template-columns: 1fr; }
  .series-grid.compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .series-grid.compact .series p { display: none; }
  .series .ph, .cat-tile .ph { height: 200px; }
  .series.tall .ph, .series-grid.compact .series .ph { height: 170px; }
  .features { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .spec-row b { font-size: 19px; }
  .spec-row.long { grid-template-columns: 1fr; }
  .series .bd { padding-top: 16px; }
  .process { grid-template-columns: 1fr; }
  .process > div { border-left: 0; border-top: 1px solid var(--line); }
  .contact-cards { grid-template-columns: 1fr; }
  .careers { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery figure:first-child { grid-row: auto; }
  .viewer3d { aspect-ratio: 1 / 1; }
}

/* photo boxes: the image always fits inside the box (no overflow), whatever its proportions */
.mcard .ph, .series .ph, .cat-tile .ph { display: block; overflow: hidden; position: relative; }
.mcard .ph img, .series .ph img, .cat-tile .ph img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; }
.mcard .ph .badge { z-index: 1; }

/* ---------- customer video gallery (Success Stories) ---------- */
.vg { overflow: hidden; }
.vg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 50px); }
.vg-head .lead { color: #aebdd6; margin-top: 12px; }
.vg-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.vg-track { display: flex; gap: 22px; width: max-content; padding: 10px 0 18px; animation: vgScroll var(--vg-dur, 40s) linear infinite; }
@keyframes vgScroll { to { transform: translateX(var(--vg-shift, -50%)); } }
.vg-gallery:hover .vg-track, .vg-gallery:focus-within .vg-track, .vg-paused .vg-track { animation-play-state: paused; }
.vg-card { flex: none; width: 380px; text-align: left; border: 0; padding: 0; font: inherit; color: inherit; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; overflow: hidden; transition: transform .35s, background .35s, box-shadow .35s; }
button.vg-card { cursor: pointer; }
button.vg-card:hover, button.vg-card:focus-visible { transform: translateY(-6px); background: rgba(255, 255, 255, .1); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6); }
.vg-thumb { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(70% 70% at 50% 60%, #fff, #dfe8f3); overflow: hidden; }
.vg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.vg-card.soon .vg-thumb img { object-fit: contain; padding: 18px; opacity: .55; filter: grayscale(.4); }
button.vg-card:hover .vg-thumb img { transform: scale(1.05); }
.vg-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s; }
.vg-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--indigo); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
button.vg-card:hover .vg-play { transform: scale(1.1); }
.vg-chip { position: absolute; left: 12px; top: 12px; font: 600 12px/1 var(--body); color: #fff; background: rgba(10, 15, 46, .7); backdrop-filter: blur(8px); padding: 7px 10px; border-radius: 999px; }
.vg-soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); background: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.vg-meta { padding: 16px 18px 18px; }
.vg-meta h3 { color: #fff; font-size: 17px; font-weight: 700; }
.vg-meta p { color: #aebdd6; font-size: 14px; margin-top: 4px; min-height: 1.4em; }
.vg-controls { display: flex; justify-content: flex-end; }
.vg-pause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; cursor: pointer; display: grid; place-items: center; }
.vg-pause span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.vg-pause.paused span { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.vg-dialog { width: min(1000px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 22px; background: #0a0a0f; color: #fff; overflow: visible; }
.vg-dialog::backdrop { background: rgba(5, 8, 25, .82); backdrop-filter: blur(6px); }
.vg-box { position: relative; }
.vg-frame { aspect-ratio: 16 / 9; border-radius: 22px 22px 0 0; overflow: hidden; background: #000; }
.vg-frame iframe, .vg-frame video { width: 100%; height: 100%; border: 0; display: block; }
.vg-caption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 16px 20px 20px; font-size: 14px; color: #aebdd6; }
.vg-caption b { color: #fff; font-size: 17px; }
.vg-caption a { color: var(--sky); margin-left: auto; }
.vg-close { position: absolute; right: -10px; top: -14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 400 28px/1 var(--body); cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .vg-card { width: 280px; }
  .vg-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .vg-play::after { left: 22px; top: 16px; border-left-width: 15px; border-top-width: 11px; border-bottom-width: 11px; }
  .vg-close { right: 6px; top: -52px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-viewport { overflow-x: auto; }
  .vg-track { animation: none; }
}
.section.vg { padding-bottom: clamp(50px, 6vw, 80px); }

/* solution cards with a square (1:1) image */
.sol.has-img { padding: 14px 14px 24px; display: flex; flex-direction: column; }
.sol.has-img > :not(.sol-img) { margin-inline: 10px; }
.sol-img { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; margin-bottom: 18px; background: var(--tint); }
.sol-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.sol.has-img:hover .sol-img img { transform: scale(1.05); }
@media (max-width: 760px) {
  .sol-grid:has(.has-img) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sol.has-img { padding: 8px 8px 16px; }
  .sol.has-img > :not(.sol-img) { margin-inline: 6px; }
  .sol.has-img h3 { font-size: 15px; margin-top: 8px; }
  .sol.has-img p { font-size: 13px; }
  .sol-img { border-radius: 12px; margin-bottom: 10px; }
}
.sol.has-img h3 { transform: none; }

/* ================= About page (v2) ================= */
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(380px, 70%); height: auto; filter: drop-shadow(0 30px 40px rgba(15, 75, 161, .25)); animation: float 7s ease-in-out infinite; }

/* leadership: two framed director photos under the CEO */
.team { display: flex; justify-content: center; gap: clamp(20px, 5vw, 60px); margin-top: clamp(40px, 6vw, 70px); flex-wrap: wrap; }
.team-card { margin: 0; text-align: center; width: 240px; max-width: calc(50% - 10px); }
.team-frame { padding: 10px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: transform .4s; }
.team-card:hover .team-frame { transform: translateY(-6px) rotate(-1deg); }
.team-frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; }
.team-card figcaption { margin-top: 16px; }
.team-card b { display: block; font: 700 18px/1.2 var(--head); color: var(--ink); }
.team-card span { display: block; margin-top: 4px; font-size: 14px; color: var(--cobalt); font-weight: 600; }

/* introduction & history */
.history-head { margin-bottom: clamp(32px, 4vw, 48px) !important; }
.history-tag { margin-top: 10px; font: italic 600 18px/1.3 var(--body); color: var(--cobalt); }
.history { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.history-text p { color: var(--text); font-size: 16.5px; line-height: 1.75; margin-bottom: 18px; max-width: 68ch; }
.history-text b { color: var(--ink); }
.history-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 24px); }
.parent-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.parent-label { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.parent-card img { width: 100%; max-width: 280px; height: auto; }
.parent-name { font: 800 20px/1.2 var(--head); color: var(--ink); margin-top: 14px; }
.parent-sub { font-size: 14px; color: var(--cobalt); font-weight: 600; margin-top: 4px; }
.parent-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.parent-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.parent-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.motto { border-radius: 24px; padding: 26px; background: linear-gradient(135deg, #01411c 0%, #01411c 62%, #0b6b35 100%); color: #fff; position: relative; overflow: hidden; }
.motto span { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.motto strong { display: block; font: 900 clamp(26px, 3vw, 34px)/1.05 var(--head); letter-spacing: .01em; margin-top: 10px; }
.motto p { margin-top: 10px; font-size: 14.5px; opacity: .88; }

/* partners' factories: alternating rows */
.pf-rows { display: grid; gap: clamp(40px, 6vw, 80px); }
.pf-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.pf-row:nth-child(even) .pf-photo { order: 2; }
.pf-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--tint); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.pf-row:hover .pf-photo img { transform: scale(1.04); }
.pf-logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; object-position: left; mix-blend-mode: multiply; margin-bottom: 14px; }
.pf-word { font: 900 24px/1 var(--head); color: var(--indigo); letter-spacing: .02em; margin-bottom: 14px; }
.pf-kicker { font: 700 12.5px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.pf-copy h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; margin-top: 10px; text-wrap: balance; }
.pf-copy > p:not(.pf-kicker):not(.pf-word) { color: var(--muted); margin-top: 14px; }
.pf-copy .chips { margin-top: 18px; padding-top: 0; }
.pf-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--cobalt); }
.pf-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .history { grid-template-columns: 1fr; }
  .history-side { position: static; grid-template-columns: 1fr 1fr; }
  .pf-row { grid-template-columns: 1fr; }
  .pf-row:nth-child(even) .pf-photo { order: 0; }
}
@media (max-width: 760px) {
  .hero-logo img { width: 200px; }
  .team-card { width: auto; }
  .history-side { grid-template-columns: 1fr; }
  .history-text p { font-size: 15.5px; }
}

/* keep slide-in animations from causing sideways scroll on phones */
main{overflow-x:clip}

/* ================= Product cards → PDF catalogs ================= */
/* The whole card is clickable: the "View catalog" link stretches over it. */
.series.has-pdf { position: relative; cursor: pointer; }
.series.has-pdf:hover { border-color: var(--cyan); }
.pdf-link { margin-top: auto; align-self: flex-start; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--cobalt); text-decoration: none; }
.pdf-link span { display: inline-block; transition: transform .25s; }
.pdf-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.series.has-pdf:hover .pdf-link span { transform: translate(3px, -3px); }
.pdf-link:focus-visible { outline: none; }
.pdf-link:focus-visible::after { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pdf-btn { margin-top: 22px; }

/* ================= Catalogs page ================= */
.kfilters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }
.kfilters button { font: 600 14px/1 var(--body); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.kfilters button span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.kfilters button:hover { border-color: var(--cyan); }
.kfilters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.kfilters button.on span { color: rgba(255,255,255,.7); }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s, border-color .3s; }
.kcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.kcard[hidden] { display: none; }
.kc-cover { display: grid; place-items: center; height: 250px; padding: 20px; overflow: hidden; background: radial-gradient(70% 60% at 50% 55%, #fff, #eef3f9 80%); }
.kc-cover img { max-height: 210px; width: auto; height: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 14px 30px rgba(15, 37, 90, .18); transition: transform .4s; }
.kcard:hover .kc-cover img { transform: scale(1.04) rotate(-1deg); }
.kc-noimg { font: 800 28px var(--head); color: var(--cobalt); }
.kc-bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kc-brand { font: 700 11.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.kc-bd h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.kc-bd p { color: var(--muted); font-size: 14px; }
.kc-meta { font-size: 12.5px !important; }
.kc-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.kc-actions .btn { padding: 10px 16px; font-size: 14px; }
.kc-link { font-size: 13.5px; font-weight: 600; color: var(--cobalt); }
.kc-link:hover { text-decoration: underline; }

/* ================= Blog ================= */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 22px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.bcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.bc-in { display: flex; flex-direction: column; height: 100%; color: inherit; }
.bc-ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad); display: grid; place-items: center; }
.bc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .6s; }
.bcard:hover .bc-ph img { transform: scale(1.05); }
.bc-noimg { font: 900 42px var(--head); color: rgba(255,255,255,.9); }
.bc-bd { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bc-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bc-meta span { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); background: var(--ice); padding: 6px 9px; border-radius: 999px; }
.bc-bd h3 { font-size: 20px; line-height: 1.25; }
.bc-bd p { color: var(--muted); font-size: 15px; }
.bc-bd .go { margin-top: auto; font-weight: 600; color: var(--cobalt); font-size: 14.5px; }
.bcard.big .bc-in { display: grid; grid-template-columns: 1.25fr 1fr; }
.bcard.big .bc-ph { aspect-ratio: auto; min-height: 340px; }
.bcard.big .bc-bd { padding: clamp(24px, 4vw, 44px); justify-content: center; }
.bcard.big h3 { font-size: clamp(24px, 2.6vw, 34px); }
@media (max-width: 800px) { .bcard.big .bc-in { grid-template-columns: 1fr; } .bcard.big .bc-ph { min-height: 0; aspect-ratio: 16 / 9; } }

.post-head { max-width: 820px; padding-top: calc(var(--nav-h, 72px) + clamp(48px, 7vw, 90px)); padding-bottom: 28px; }
.post-head h1 { font: 800 clamp(32px, 5vw, 54px)/1.08 var(--head); letter-spacing: -.02em; margin-top: 10px; color: var(--ink); }
.post-meta { margin-top: 16px; color: var(--muted); font-size: 15px; }
.post-cover { margin: 0 auto; max-width: 1100px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 7.5; background: var(--ice); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 760px; padding-top: clamp(32px, 5vw, 56px); font-size: 18px; line-height: 1.75; color: var(--text); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font: 800 clamp(24px, 3vw, 30px)/1.2 var(--head); color: var(--ink); margin-top: 1.8em; }
.post-body h3 { font: 700 22px/1.3 var(--head); color: var(--ink); margin-top: 1.5em; }
.post-body a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .45em; }
.post-body strong { color: var(--ink); }
.post-body img { border-radius: 18px; margin-inline: auto; }
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; }
.post-body blockquote { border-left: 4px solid var(--cyan); padding: 6px 0 6px 22px; font-size: 20px; color: var(--ink); font-style: italic; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.post-body code { background: var(--ice); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-foot { max-width: 760px; padding-top: 40px; padding-bottom: clamp(60px, 8vw, 100px); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-share span { font-weight: 700; color: var(--ink); margin-right: 6px; }
.post-share a { font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: var(--ice); color: var(--indigo); }
.post-share a:hover { background: var(--ink); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.post-nav a:hover { border-color: var(--cyan); }
.post-nav a span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.post-nav a.r { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.r { text-align: left; } .post-body { font-size: 17px; } }

/* 3D viewers fade in once their scripts have loaded */
.viewer3d canvas { animation: v3dIn .8s ease both; }
@keyframes v3dIn { from { opacity: 0; } to { opacity: 1; } }
