/* ==========================================================================
   Glowious CNC – website stylesheet
   Layout follows the 3DPlex design; the theme is a dark "glow" look built on
   the logo colours (orange + graphite, with a touch of the logo blue).
   ========================================================================== */

:root {
    color-scheme: dark;
    --bg: #0a0a0b;
    --bg-2: #0f0f11;
    --surface: #141416;
    --surface-2: #1b1b1f;
    --surface-3: #25252a;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --dark: #0a0a0b;
    --accent: #ef7f1a;
    --accent-2: #d56b09;
    --accent-3: #ffb15c;
    --accent-soft: rgba(239, 127, 26, .12);
    --accent-glow: rgba(239, 127, 26, .45);
    --blue: #5681bd;
    --grad: linear-gradient(135deg, #ffb15c 0%, #ef7f1a 45%, #d56b09 100%);
    --heading: #f7f5f2;
    --text: #a4a4ab;
    --text-dark: #d3d3d9;
    --muted: #74747c;
    --border: var(--line);
    --light: var(--surface);
    --white: #fff;
    --radius: 20px;
    --radius-sm: 10px;
    --container: 1400px;
    --gutter: 20px;
    --header-h: 84px;
    --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-accent: "Exo 2", "Space Grotesk", system-ui, sans-serif;
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
    --shadow-glow: 0 30px 70px -28px rgba(239, 127, 26, .45);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--bg); }
/* On phones the root clip alone doesn't stop the page zooming out to fit the slide-in offsets. */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
/* Film grain over the whole page: keeps the large dark areas from looking flat. */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .045;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Lenis smooth scrolling (desktop). */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth .modal iframe, .lenis.lenis-smooth .map-frame iframe { pointer-events: auto; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; color: var(--heading); letter-spacing: -.025em; line-height: 1.02; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 400; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Highlighted words (*text* in admin titles): glowing orange gradient with a slow shimmer. */
.accent { color: var(--accent); }
.accent:not(:has(> .split-word)), .accent .split-word > span {
    background: linear-gradient(100deg, #ffb15c 0%, #ef7f1a 30%, #ffd9ad 48%, #ef7f1a 66%, #d56b09 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 7s linear infinite;
}
.accent:has(> .split-word) { color: var(--heading); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
/* In the big headings the highlighted words switch to a bold italic tech font. */
:is(.hero-title, .section-title, .cta-title, .aside-title, .page-banner-title, .page-heading-title, .detail-title) .accent {
    font-family: var(--font-accent); font-style: italic; font-weight: 800; font-size: 1.04em; letter-spacing: -.02em;
}
/* Room for the slanted last letter, which background-clip would otherwise cut off. */
:is(.hero-title, .section-title, .cta-title, .aside-title, .page-banner-title, .page-heading-title, .detail-title) .accent .split-word { padding-right: .08em; margin-right: -.08em; }
/* Plain heading words get a brushed-metal gradient. */
:is(.hero-title, .section-title, .cta-title, .aside-title, .page-banner-title, .page-heading-title) > .split-word > span {
    background: linear-gradient(180deg, #ffffff 0%, #f4f2ef 45%, #a9a9b2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Typography ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 13px; border-radius: 40px;
    border: 1px solid rgba(239, 127, 26, .32); background: rgba(239, 127, 26, .08);
    font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-3);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px var(--accent-glow); flex-shrink: 0; }
.eyebrow.center { display: flex; width: fit-content; margin-inline: auto; }
.section-title { font-size: clamp(34px, 4vw, 58px); line-height: 1.02; }
.section-text { font-size: 18px; line-height: 1.6; color: var(--text); }
.section-text + .section-text { margin-top: 16px; }
.section { position: relative; padding: 120px 0; }
.section-head { max-width: 820px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .section-title { margin-top: 20px; }
.section-head .section-text { margin-top: 24px; }
.section-head.center .section-text { max-width: 720px; margin-inline: auto; }

/* Section backgrounds alternate between two near-blacks, with soft orange light spots. */
.section-highlights, .section-products, .section-clients, .section-faq, .section-infrastructure, .section-counters { background: var(--bg-2); }
.section-about, .section-journey, .section-contact, .section-intro, .section-quote { isolation: isolate; overflow: hidden; }
.section-about::before, .section-journey::before, .section-contact::before, .section-intro::before, .section-quote::before {
    content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(239, 127, 26, .13), transparent 65%);
}
.section-about::before { left: -260px; top: -120px; }
.section-journey::before, .section-intro::before { right: -280px; top: 10%; }
.section-contact::before, .section-quote::before { left: 30%; bottom: -380px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 17px 36px; border-radius: 500px; border: 1px solid transparent;
    font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1;
    cursor: pointer; white-space: nowrap; transition: all .35s var(--ease);
}
.btn .icon { font-size: 20px; }
.btn-lg { padding: 19px 40px; }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
/* .btn-dark is the main call-to-action button of the design. */
.btn-dark, .btn-accent {
    background: var(--grad); background-size: 180% 100%; background-position: 0 0; color: #fff;
    box-shadow: 0 12px 32px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-dark:hover, .btn-accent:hover { background-position: 100% 0; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(239, 127, 26, .75), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-outline, .btn-outline-light { border-color: var(--line-2); color: var(--heading); background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn-outline:hover, .btn-outline-light:hover { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .6); }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-pair { display: flex; align-items: center; gap: 10px; margin-top: 40px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.btn-circle {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--heading); font-size: 24px;
    transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn-circle:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); box-shadow: 0 0 30px var(--accent-glow); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; color: var(--heading); }
.link-more .icon { font-size: 18px; color: var(--accent); transition: transform .3s var(--ease); }
.link-more:hover { color: var(--accent-3); }
.link-more:hover .icon { transform: translate(3px, -3px); }

/* ---------- Grid background (perspective room) ---------- */
.has-grid-bg { position: relative; isolation: isolate; }
.has-grid-bg::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(239, 127, 26, .12), transparent 60%), url("../img/grid-dark.svg") center / cover no-repeat;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, .6);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(10, 10, 11, .86); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); position: relative; }
.header-inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.site-header.is-scrolled .header-inner::after { background: linear-gradient(90deg, transparent, rgba(239, 127, 26, .5), transparent); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--heading); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { position: relative; display: block; white-space: nowrap; padding: 30px 15px; font-size: 17px; font-weight: 500; line-height: 1; color: rgba(255, 255, 255, .78); }
.nav-list > li > a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 20px; height: 2px; border-radius: 2px;
    background: var(--grad); box-shadow: 0 0 12px var(--accent-glow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list > li.has-dropdown > a { padding-right: 4px; }
.nav-list > li.has-dropdown > a::after { right: 4px; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: #fff; }
.nav-list > li > a:hover::after, .nav-list > li > a.active::after { transform: scaleX(1); }
.dropdown-toggle { background: none; border: 0; padding: 4px 12px 4px 2px; cursor: pointer; color: var(--muted); font-size: 16px; display: grid; place-items: center; }
.dropdown-toggle .icon { transition: transform .3s var(--ease); }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px; background: rgba(20, 20, 23, .97);
    border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); border: 1px solid var(--line-2); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); z-index: 10;
}
.dropdown-wide { min-width: 320px; }
.dropdown a { display: block; padding: 10px 16px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--text-dark); }
.dropdown a:hover { color: var(--accent-3); background: rgba(239, 127, 26, .08); }
.dropdown-all { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.dropdown-all a { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover > .dropdown-toggle .icon { transform: rotate(45deg); }
.nav-drawer-head, .nav-drawer-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.social-squares { display: flex; gap: 6px; }
.social-squares a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-dark); font-size: 16px; }
.social-squares a:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }
.header-cta { padding: 16px 32px; }
.header-brochure { gap: 8px; padding: 15px 24px; }
.header-brochure .icon { font-size: 19px; color: var(--accent); transition: color .25s; }
.header-brochure:hover .icon { color: #fff; }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; font-size: 22px; cursor: pointer; color: var(--heading); }
.nav-toggle { display: none; }
/* Below the header (z 50, which contains the drawer) but above the page. */
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); z-index: 45; opacity: 0; visibility: hidden; transition: all .3s; }
.nav-open .floating-actions { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; padding: 48px 0 56px; isolation: isolate;
    display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    background:
        radial-gradient(900px 640px at 78% 42%, rgba(239, 127, 26, .2), transparent 62%),
        radial-gradient(760px 520px at 6% 4%, rgba(86, 129, 189, .16), transparent 65%),
        linear-gradient(180deg, #0d0d0f 0%, var(--bg) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-bg {
    position: absolute; inset: -10% 0 -10% 25%; z-index: -1; pointer-events: none;
    background: url("../img/grid-dark.svg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
    animation: gridDrift 18s ease-in-out infinite alternate;
}
@keyframes gridDrift { from { scale: 1; } to { scale: 1.08; } }

/* Glowing sparks drifting up behind the hero (created by site.js). */
.hero-embers { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ember {
    position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
    background: #ffc27a; box-shadow: 0 0 6px 1px rgba(255, 150, 50, .9), 0 0 16px 4px rgba(239, 127, 26, .45);
    opacity: 0; animation: emberRise var(--d) linear var(--delay) infinite;
}
@keyframes emberRise {
    0% { opacity: 0; transform: translate(0, 0) scale(1); }
    10% { opacity: 1; }
    70% { opacity: .8; }
    100% { opacity: 0; transform: translate(var(--dx), -760px) scale(.3); }
}

.hero-slides { display: grid; position: relative; }
.hero-slide {
    grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px;
    visibility: hidden; transition: visibility 0s .9s;
}
.hero-slide.is-active { visibility: visible; transition: none; }
.hero-slide:not(.is-active) { pointer-events: none; }

/* Text: eyebrow pops in, title words rise out of a mask, then text and buttons. */
.hero-eyebrow { opacity: 0; transform: translateX(-24px); transition: opacity .4s ease, transform .4s ease; }
.hero-eyebrow::before { scale: 0; transition: scale .4s ease; }
.hero-slide.is-active .hero-eyebrow { opacity: 1; transform: none; transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.hero-slide.is-active .hero-eyebrow::before { scale: 1; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) .6s; }
.hero-title { font-size: clamp(44px, 5.2vw, 80px); font-weight: 700; line-height: .98; letter-spacing: -.035em; margin-top: 22px; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .2em; margin: 0 -.04em -.2em; }
.split-word > span { display: inline-block; will-change: transform; }
.hero-title .split-word > span { transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; transition: transform .45s cubic-bezier(.55, 0, .7, .2); }
.hero-slide.is-active .hero-title .split-word > span { transform: none; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(.4s + var(--w, 0) * 75ms); }
.hero-text { margin-top: 24px; max-width: 640px; font-size: 18px; color: var(--text); opacity: 0; filter: blur(8px); transform: translateY(20px); transition: all .4s ease; }
.hero-slide.is-active .hero-text { opacity: 1; filter: blur(0); transform: none; transition: opacity 1s var(--ease) .85s, filter 1s var(--ease) .85s, transform 1s var(--ease) .85s; }
.hero .btn-pair { margin-top: 32px; }
.hero .btn-pair > * { opacity: 0; transform: translateY(24px) scale(.9); transition: all .35s ease; }
.hero-slide.is-active .btn-pair > * { opacity: 1; transform: none; transition: opacity .8s var(--ease) 1.05s, transform .9s cubic-bezier(.34, 1.56, .64, 1) 1.05s; }
.hero-slide.is-active .btn-pair > :nth-child(2) { transition-delay: 1.2s; }
.hero-slide.is-active .btn-pair .btn-circle { animation: circleSpin 1s cubic-bezier(.34, 1.56, .64, 1) 1.2s both; }
@keyframes circleSpin { from { rotate: -180deg; } to { rotate: 0deg; } }

/* Machine: glow + rotating rings + floor light, slides in with depth, then floats and follows the mouse. */
.hero-media { position: relative; display: grid; place-items: center; }
.hero-media::after {
    content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 60px; border-radius: 50%; z-index: -1;
    background: radial-gradient(ellipse at center, rgba(239, 127, 26, .55), rgba(239, 127, 26, .12) 45%, transparent 72%);
    filter: blur(8px); opacity: 0; transition: opacity .5s;
}
.hero-slide.is-active .hero-media::after { opacity: 1; transition: opacity 1.4s var(--ease) .6s; }
.hero-glow { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(239, 127, 26, .5) 0%, rgba(239, 127, 26, .16) 38%, transparent 68%); opacity: 0; scale: .4; transition: opacity .5s, scale .5s; }
.hero-slide.is-active .hero-glow { opacity: 1; scale: 1; transition: opacity 1.4s var(--ease) .2s, scale 1.6s cubic-bezier(.16, 1, .3, 1) .2s; animation: glowPulse 5s ease-in-out 1.8s infinite; }
@keyframes glowPulse { 50% { scale: 1.08; opacity: .75; } }
.hero-ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(239, 127, 26, .5); opacity: 0; scale: .5; transition: opacity .5s, scale .5s; animation: spin 40s linear infinite; }
.hero-ring-2 { width: 94%; border: 1px solid rgba(255, 255, 255, .07); border-top-color: var(--accent); border-right-color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); animation-duration: 14s; animation-direction: reverse; }
.hero-slide.is-active .hero-ring { opacity: 1; scale: 1; transition: opacity 1.2s var(--ease) .35s, scale 1.4s cubic-bezier(.16, 1, .3, 1) .35s; }
@keyframes spin { to { rotate: 360deg; } }
.hero-parallax { position: relative; width: 100%; translate: calc(var(--mx, 0) * 22px) calc(var(--my, 0) * 16px); transition: translate .6s var(--ease); }
.hero-float { animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 50% { translate: 0 -16px; } }

/* 3D stage (hero-3d.js): pedestal and light beam drawn in WebGL behind the machine. */
.hero > .container { width: 100%; }
.hero-stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-stage.is-on { opacity: 1; }
.hero-stage canvas { display: block; width: 100%; height: 100%; }
.hero.has-3d .hero-ring, .hero.has-3d .hero-media::after { display: none; }
.hero.has-3d .hero-glow { width: 70%; background: radial-gradient(circle, rgba(239, 127, 26, .22) 0%, rgba(239, 127, 26, .06) 45%, transparent 70%); }
.hero.has-3d .hero-float { animation-name: heroHover; }
@keyframes heroHover { 50% { translate: 0 -10px; } }
.hero-media img {
    width: 100%; max-height: 560px; object-fit: contain; filter: drop-shadow(0 40px 45px rgba(0, 0, 0, .65)) blur(10px);
    opacity: 0; transform: perspective(1400px) translateX(-90px) rotateY(18deg) scale(.86);
    transition: opacity .45s ease, transform .6s ease, filter .45s ease;
}
.hero-slide.is-active .hero-media img {
    opacity: 1; filter: drop-shadow(0 40px 45px rgba(0, 0, 0, .65)) blur(0); transform: none;
    transition: opacity 1s var(--ease) .3s, transform 1.5s cubic-bezier(.16, 1, .3, 1) .3s, filter 1.2s var(--ease) .3s;
}
.hero-slide.is-entering .hero-media img { transform: perspective(1400px) translateX(120px) rotateY(-22deg) scale(.86); transition: none; }

/* Bottom: stats, arrows, dots, counter and the autoplay progress bar. */
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 30px 40px; margin-top: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; }
.stat-card {
    position: relative; min-width: 280px; padding: 26px 28px 22px; border: 1px solid var(--line-2); border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); backdrop-filter: blur(10px);
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(239, 127, 26, .5); }
.js .hero:not(.is-ready) .stat-card { opacity: 0; }
.js .hero.is-ready .stat-card { animation: cardRise 1s cubic-bezier(.16, 1, .3, 1) var(--delay, 0ms) both; }
@keyframes cardRise { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.stat-label { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; color: var(--text-dark); line-height: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(239, 127, 26, .6); animation: dotPing 2.4s infinite; }
@keyframes dotPing { 70% { box-shadow: 0 0 0 9px rgba(239, 127, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 127, 26, 0); } }
.stat-value { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; font-family: var(--font-head); font-size: 48px; font-weight: 700; color: var(--heading); line-height: 1; letter-spacing: -.03em; }
.stat-icon { font-size: 42px; color: var(--accent); stroke-width: 1.3; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.stat-card:hover .stat-icon { animation: iconWiggle .8s ease; }
@keyframes iconWiggle { 30% { rotate: -14deg; scale: 1.15; } 60% { rotate: 10deg; } }
.hero-controls { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 16px; padding-bottom: 10px; }
.hero-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); display: grid; place-items: center; font-size: 22px; color: var(--heading); cursor: pointer; transition: all .3s var(--ease); }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 0 26px var(--accent-glow); }
/* Side arrows: an overlay that mirrors the slide grid, so they sit either side of the machine. */
.hero-side-nav { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; pointer-events: none; }
.hero-side-nav-inner { grid-column: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 0 -20px; }
.hero-side-nav .hero-arrow { pointer-events: auto; width: 54px; height: 54px; background: rgba(20, 20, 24, .55); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.js .hero:not(.is-ready) .hero-side-nav { opacity: 0; }
.js .hero.is-ready .hero-side-nav { animation: heroNavIn 1s var(--ease) 1.2s both; }
@keyframes heroNavIn { from { opacity: 0; } }
.hero-controls .hero-arrow { display: none; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); cursor: pointer; padding: 0; transition: all .4s var(--ease); }
.hero-dots button.is-active { background: var(--grad); width: 36px; border-radius: 10px; box-shadow: 0 0 14px var(--accent-glow); }
.hero-count { font-family: var(--font-head); font-size: 16px; color: var(--muted); min-width: 58px; }
.hero-count b { font-size: 22px; color: var(--heading); }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .05); }
.hero-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #ffb26b); box-shadow: 0 0 12px var(--accent-glow); transform-origin: left; transform: scaleX(0); }
.hero-progress span.is-running { animation: heroProgress var(--hero-interval, 6500ms) linear forwards; }
.hero:hover .hero-progress span { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   Scrolling category bands
   ========================================================================== */
.section-marquee { position: relative; padding: 64px 0; overflow: hidden; background: var(--bg); }
.marquee-band { position: relative; width: 110%; margin-left: -5%; overflow: hidden; }
.marquee-band-front { z-index: 2; padding: 22px 0; rotate: -2deg; background: var(--grad); box-shadow: 0 24px 60px -18px rgba(239, 127, 26, .6); }
.marquee-band-back { position: absolute; left: 0; top: 50%; z-index: 1; padding: 18px 0; translate: 0 -50%; rotate: 2.5deg; background: var(--surface-2); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-band-back .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee-band-front:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.marquee-band-front .marquee-item { color: #160b02; }
.marquee-band-front a.marquee-item:hover { color: #fff; }
.marquee-band-back .marquee-item { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.marquee-item .icon { font-size: .8em; animation: spin 8s linear infinite; }
.marquee-band-back .marquee-item .icon { color: var(--accent); -webkit-text-stroke: 0; }

/* ==========================================================================
   Highlights (feature cards)
   ========================================================================== */
.section-highlights { padding: 70px 0; border-block: 1px solid var(--line); }
.highlights-grid { display: grid; grid-template-columns: repeat(var(--cards), minmax(0, 1fr)) minmax(250px, 1.1fr); gap: 24px; align-items: stretch; }
.highlight-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--radius);
    background: linear-gradient(165deg, #1d1d21 0%, #121214 100%); border: 1px solid var(--line); color: #fff;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.highlight-card:hover { border-color: rgba(239, 127, 26, .45); box-shadow: var(--shadow-glow); }
.highlight-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-size: 28px; color: #fff; box-shadow: 0 12px 28px -8px var(--accent-glow); }
.highlight-card h3 { color: var(--heading); font-size: 23px; line-height: 1.1; margin-top: 12px; }
.highlight-card p { font-size: 15px; line-height: 1.55; color: var(--text); }
.highlights-aside { display: flex; flex-direction: column; justify-content: center; padding-left: 10px; }
.aside-title { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.02; margin-bottom: 28px; }
.aside-stat {
    font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1; margin-top: 12px; letter-spacing: -.03em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(239, 127, 26, .35));
}
.highlights-aside .section-text { margin-bottom: 22px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr); gap: 36px; align-items: start; }
.about-grid.no-image { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-text .section-head { margin-bottom: 30px; }
.progress-list { display: grid; gap: 26px; margin: 34px 0 40px; }
.progress-head { display: flex; justify-content: space-between; font-size: 17px; font-weight: 500; color: var(--heading); margin-bottom: 12px; }
.progress-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: var(--value); background: var(--grad); box-shadow: 0 0 14px var(--accent-glow); border-radius: 6px; transition: width 1.6s var(--ease); }
.js .reveal:not(.is-visible) .progress-bar { width: 0; }
.about-text .btn { margin-top: 36px; }
.about-image { box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(239, 127, 26, .35); }
.about-image img { width: 100%; min-height: 540px; max-height: 700px; object-fit: cover; border-radius: var(--radius); }
.about-side { padding-top: 26px; }
.about-point { position: relative; padding: 26px 26px 4px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.about-point h3 { font-size: 23px; padding-left: 14px; border-left: 3px solid var(--accent); margin-bottom: 16px; }
.about-point p { font-size: 17px; line-height: 1.6; color: var(--text); margin-bottom: 22px; }
.about-quote { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }
.about-quote p { font-family: var(--font-head); font-style: italic; font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--heading); }
.about-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 15px; color: var(--accent); }

/* ==========================================================================
   Products
   ========================================================================== */
.product-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.product-cards > div { display: flex; }
.product-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
    position: relative; width: 100%; display: flex; flex-direction: column; padding: 14px; overflow: hidden;
    background: linear-gradient(180deg, #18181b 0%, #111113 100%); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .4s, transform .4s var(--ease), box-shadow .4s;
}
/* A lit "studio" panel so cut-out machines and photos both sit well on the dark card. */
.product-card-media {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; margin-bottom: 22px;
    background: radial-gradient(120% 95% at 50% 30%, #3b3b41 0%, #212125 55%, #161618 100%);
}
.product-card-media::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 6%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(239, 127, 26, .35), transparent 70%); filter: blur(6px); opacity: 0; transition: opacity .5s; }
.product-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 12px; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
.product-card-placeholder { font-size: 64px; color: rgba(255, 255, 255, .18); }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 0 10px 8px; }
.product-card-cat { align-self: flex-start; padding: 5px 11px; border-radius: 30px; background: var(--accent-soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 14px; }
.product-card-title { font-size: 22px; line-height: 1.15; min-height: 2.3em; margin-bottom: 20px; }
.product-card-title a:hover { color: var(--accent-3); }
.product-card-text { font-size: 15px; margin: -8px 0 20px; }
.product-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.link-quote { font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 1px solid currentColor; line-height: 1.2; }
.link-quote:hover { color: var(--accent); }
.product-card:hover { border-color: rgba(239, 127, 26, .5); box-shadow: var(--shadow-glow); }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card:hover .product-card-media::after { opacity: 1; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; margin-top: 50px; }
.section-foot span { font-size: 17px; font-weight: 500; color: var(--text-dark); }

.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -16px auto 48px; max-width: 1100px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 40px; border: 1px solid var(--line-2);
    background: var(--surface); font-size: 15px; font-weight: 500; color: var(--text-dark); cursor: pointer; transition: all .3s;
}
.pill small { font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--text-dark); }
.pill:hover { border-color: rgba(239, 127, 26, .6); color: #fff; }
.pill.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -10px var(--accent-glow); }
.pill.is-active small { background: rgba(0, 0, 0, .25); color: #fff; }

/* Chosen category's description, below the category buttons: intro text + title/text points as cards. */
.category-intro { max-width: 1100px; margin: 0 auto 56px; }
.category-intro > .section-text { max-width: 860px; margin-inline: auto; text-align: center; }
.category-intro > .section-text + .category-points { margin-top: 32px; }
.category-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.category-points.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-point {
    position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 18px; padding: 26px 28px; border-radius: var(--radius);
    background: linear-gradient(165deg, #1d1d21 0%, #121214 100%); border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s;
}
.category-point::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); opacity: .7; }
.category-point:hover { border-color: rgba(239, 127, 26, .45); box-shadow: var(--shadow-glow); }
.category-point-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 24px; color: #fff; box-shadow: 0 12px 28px -8px var(--accent-glow); }
.category-point h3 { margin: 2px 0 8px; font-size: 21px; line-height: 1.15; color: var(--heading); }
.category-point p { font-size: 15px; line-height: 1.6; color: var(--text); }
@media (max-width: 760px) {
    .category-intro { margin-bottom: 40px; }
    .category-points.is-even { grid-template-columns: minmax(0, 1fr); }
    .category-point { gap: 14px; padding: 20px; }
    .category-point-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 21px; }
}

.empty-state { text-align: center; max-width: 560px; margin: 0 auto; padding: 50px 30px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty-state .icon { font-size: 48px; color: var(--accent); margin: 0 auto 18px; }
.empty-state h3 { font-size: 24px; margin-bottom: 12px; }
.empty-state .btn { margin-top: 24px; }
.empty-state.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1100px; padding: 24px; text-align: left; border-style: solid; }
.empty-state.has-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.empty-state.has-image h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
@media (max-width: 760px) { .empty-state.has-image { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ==========================================================================
   Journey / numbered points
   ========================================================================== */
.journey-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.journey-grid.no-image { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.journey-media { box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(239, 127, 26, .3); }
.journey-media img { width: 100%; min-height: 560px; max-height: 720px; object-fit: cover; border-radius: var(--radius); }
.journey-content .section-head { margin-bottom: 36px; }
.journey-list { border-top: 1px solid var(--line); }
.journey-list li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 18px; padding: 26px 16px 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.journey-list li::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px; background: linear-gradient(90deg, rgba(239, 127, 26, .12), transparent 80%); opacity: 0; transition: opacity .4s; }
.journey-num { font-family: var(--font-head); font-size: 46px; font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 1.4px var(--accent); transition: color .4s, text-shadow .4s; }
.journey-list h3 { font-size: 23px; margin-bottom: 10px; }
.journey-list p { font-size: 16px; }
.journey-icon { font-size: 34px; color: rgba(255, 255, 255, .22); transition: color .3s, transform .4s var(--ease); }
.journey-list li:hover::before { opacity: 1; }
.journey-list li:hover .journey-num { color: var(--accent); text-shadow: 0 0 24px var(--accent-glow); }
.journey-list li:hover .journey-icon { color: var(--accent); transform: rotate(-8deg) scale(1.08); }

/* ==========================================================================
   Call to action
   ========================================================================== */
.section-cta {
    position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 580px; padding: 100px 0 80px;
    background: var(--bg); color: #fff; overflow: hidden; border-block: 1px solid rgba(239, 127, 26, .25);
}
.cta-bg { position: absolute; inset: -18% 0; z-index: -2; background: center / cover no-repeat; will-change: translate; }
.section-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(700px 420px at 12% 100%, rgba(239, 127, 26, .38), transparent 70%),
        linear-gradient(90deg, rgba(10, 10, 11, .95) 0%, rgba(10, 10, 11, .72) 55%, rgba(10, 10, 11, .4) 100%),
        linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; }
.cta-title { color: #fff; font-size: clamp(38px, 4.8vw, 70px); font-weight: 700; line-height: 1; max-width: 960px; letter-spacing: -.035em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 36px; }
.cta-text { max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .8); }
.cta-inner .play-btn { grid-column: 2; grid-row: 1; align-self: start; margin-right: 110px; }
.play-btn {
    position: relative; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--grad); border: 8px solid rgba(255, 255, 255, .12); color: #fff; font-size: 34px; background-clip: padding-box;
    box-shadow: 0 0 50px var(--accent-glow); transition: transform .4s var(--ease), box-shadow .3s;
}
.play-btn::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(239, 127, 26, .7); animation: pulse 2.2s infinite; }
.play-btn:hover { transform: scale(1.08); box-shadow: 0 0 80px rgba(239, 127, 26, .7); }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }

/* ==========================================================================
   Counters
   ========================================================================== */
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.counter-card { position: relative; padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, #1b1b1f, #121214); transition: all .4s var(--ease); }
.counter-icon { font-size: 44px; color: var(--accent); filter: drop-shadow(0 0 12px var(--accent-glow)); }
.counter-value { font-family: var(--font-head); font-size: 60px; font-weight: 700; line-height: 1; margin: 24px 0 12px; letter-spacing: -.03em; background: linear-gradient(180deg, #fff 30%, #b9b9c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter-label { font-size: 17px; font-weight: 500; color: var(--text-dark); }
.counter-card:hover { border-color: rgba(239, 127, 26, .5); transform: translateY(-6px); box-shadow: var(--shadow-glow); }

/* ==========================================================================
   Clients
   ========================================================================== */
.section-clients { padding: 70px 0; border-block: 1px solid var(--line); }
.section-clients .section-title { margin-top: 16px; font-size: clamp(28px, 3vw, 40px); }
.clients-track { margin-top: 36px; }
.clients-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
/* Logos show as white marks on dark chips (the white logo background drops out), and in
   their real colours on a light chip on hover. */
.client-logo {
    display: grid; place-items: center; min-width: 200px; height: 104px; padding: 16px 28px; border-radius: 16px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); font-family: var(--font-head); font-size: 20px; color: var(--heading);
    transition: box-shadow .35s, transform .35s var(--ease), background .35s;
}
.client-logo img { height: 70px; width: auto; max-width: 180px; object-fit: contain; mix-blend-mode: screen; filter: grayscale(1) invert(1) contrast(1.2); opacity: .75; transition: filter .35s, opacity .35s; }
.client-logo:hover { transform: translateY(-4px); background: #eeede9; box-shadow: 0 0 0 1px rgba(239, 127, 26, .6), 0 18px 40px -14px var(--accent-glow); }
.client-logo:hover img { mix-blend-mode: multiply; filter: none; opacity: 1; }
.clients-track.is-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 8px; }
.is-marquee .clients-list { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: marquee 35s linear infinite; }
.is-marquee .client-logo { margin: 0 12px; }
.is-marquee:hover .clients-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid { display: grid; grid-template-columns: 405px minmax(0, 1fr); gap: 50px; align-items: stretch; }
.testimonials-grid.no-image { grid-template-columns: minmax(0, 1fr); }
.testimonials-media img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; border-radius: var(--radius); }
.testimonials-content .section-head { margin-bottom: 26px; }
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-bottom: 36px; }
.rating-value { font-family: var(--font-head); font-size: 60px; font-weight: 700; color: var(--heading); line-height: 1; }
.rating-stars { display: inline-flex; gap: 4px; padding: 7px 12px; border-radius: 30px; background: var(--grad); color: #fff; font-size: 13px; }
.rating-count { margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--heading); }
.rating-text { max-width: 460px; font-size: 18px; line-height: 1.2; color: var(--text-dark); }
.slider-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.slider-track::-webkit-scrollbar { display: none; }
.testimonial-card { position: relative; flex: 0 0 calc(50% - 13px); scroll-snap-align: start; padding: 36px 30px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(165deg, #1b1b1f, #121214); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.testimonial-card blockquote { font-family: var(--font-head); font-style: italic; font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--heading); }
.testimonial-card figcaption { display: flex; align-items: center; gap: 18px; }
.testimonial-card figcaption img, .avatar-initial { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-head); font-size: 24px; }
.testimonial-card strong { display: block; font-size: 17px; font-weight: 600; color: var(--heading); }
.testimonial-card small { display: block; font-size: 15px; color: var(--accent); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); cursor: pointer; transition: all .3s; }
.slider-dots button.is-active { background: var(--accent); width: 26px; border-radius: 6px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.project-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.project-card { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 447 / 520; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: saturate(.85) brightness(.9); }
.project-card figcaption {
    position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 90px 32px 32px;
    background: linear-gradient(180deg, transparent, rgba(8, 8, 9, .92));
}
.project-card h3 { color: #fff; font-size: 25px; }
.project-card .btn { opacity: 0; transform: translateY(12px); transition: all .4s var(--ease); }
.project-card:hover { box-shadow: 0 0 0 1px rgba(239, 127, 26, .6), var(--shadow-glow); }
.project-card:hover img { transform: scale(1.06); filter: none; }
.project-card:hover .btn, .project-card:focus-within .btn { opacity: 1; transform: none; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(180deg, rgba(10, 10, 11, .35), rgba(10, 10, 11, .8)); color: #fff; font-size: 16px; font-weight: 500; opacity: 0; transition: opacity .35s;
}
.gallery-overlay .icon { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 26px var(--accent-glow); }
.gallery-item:hover { box-shadow: 0 0 0 1px rgba(239, 127, 26, .6), var(--shadow-glow); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover .gallery-overlay, .gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-item.is-hidden { display: none; }

.filter-pills-sm { margin: 0 auto 32px; gap: 8px; }
.filter-pills-sm .pill { padding: 8px 18px; font-size: 14px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-head { display: grid; grid-template-columns: 235px minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-bottom: 40px; }
.faq-head .eyebrow { justify-self: start; }
.faq-head .section-title { max-width: 640px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.faq-grid.no-side { grid-template-columns: minmax(0, 1fr); }
.accordion { display: grid; gap: 12px; }
.accordion-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 26px; transition: border-color .35s, background .35s, box-shadow .35s; }
.accordion-item:hover { border-color: var(--line-2); }
.accordion-item.is-open { border-color: rgba(239, 127, 26, .45); background: linear-gradient(180deg, rgba(239, 127, 26, .08), rgba(239, 127, 26, .01) 70%), var(--surface); box-shadow: 0 20px 50px -30px var(--accent-glow); }
.accordion-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0;
    background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-head); font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--heading);
}
.accordion-trigger:hover { color: var(--accent-3); }
.accordion-icon { position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, color .3s; }
.accordion-icon::before, .accordion-icon::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .3s var(--ease); }
.accordion-icon::after { transform: rotate(90deg); }
.is-open .accordion-icon { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 18px var(--accent-glow); }
.is-open .accordion-icon::after { transform: rotate(0deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p { padding: 0 50px 24px 0; font-size: 16px; line-height: 1.65; }
.faq-side { position: relative; padding: 14px 14px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, #1b1b1f, #121214); }
.faq-side img { width: 100%; aspect-ratio: 340 / 330; object-fit: cover; border-radius: 14px; margin-bottom: 28px; }
.faq-side h3, .faq-side p { padding-inline: 12px; }
.faq-side h3 { font-size: 24px; line-height: 1.1; margin-bottom: 16px; }
.faq-side p { font-size: 17px; }

/* ==========================================================================
   Contact & forms
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.contact-image { box-shadow: 0 0 0 1px var(--line-2); }
.contact-image img { width: 100%; aspect-ratio: 675 / 465; object-fit: cover; border-radius: var(--radius); }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.contact-details > div { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(165deg, #1b1b1f, #121214); }
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.contact-address { font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--text-dark); }
.contact-phone { display: block; font-size: 20px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 6px; }
.contact-phone:hover { color: var(--accent-3); }
.contact-email { display: block; margin-top: 10px; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--heading); word-break: break-word; }
.contact-email:hover { color: var(--accent); }
.contact-hours { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 16px; }
.contact-form { padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); }
.contact-form .section-head { margin-bottom: 30px; }
.contact-form .section-title { font-size: clamp(32px, 3.2vw, 44px); }
.map-frame { margin-top: 80px; height: 450px; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.7) contrast(.9); }

.enquiry-form-wrap { scroll-margin-top: calc(var(--header-h) + 30px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.form-field-full { grid-column: 1 / -1; }
/* Quote form: Model Name sits right below Product (Quantity / City beside them). */
.form-grid:has(.form-field-model) { grid-auto-flow: row dense; }
.form-field-model { grid-column: 1; }
.form-field-qty { grid-column: 2; }
.form-field select:disabled { opacity: .55; cursor: not-allowed; }
.form-field label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.req { color: #ff6b5b; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; height: 58px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, .35);
    font-family: var(--font-body); font-size: 16px; color: var(--heading); transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef7f1a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.form-field select option, .form-field select optgroup { background: #17171a; color: var(--heading); }
.form-field textarea { height: auto; min-height: 150px; padding: 16px 18px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #66666e; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: rgba(255, 255, 255, .24); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); background: rgba(239, 127, 26, .04); box-shadow: 0 0 0 4px rgba(239, 127, 26, .14), 0 0 24px -6px var(--accent-glow); }
.field-error { margin-top: 6px; font-size: 14px; color: #ff7a6b; }
.form-error { margin: 0 0 14px; }
.form-success { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; padding: 18px 20px; border-radius: 14px; background: rgba(37, 211, 102, .08); border: 1px solid rgba(37, 211, 102, .35); color: #8fe6b3; }
.form-success .icon { font-size: 26px; margin-top: 2px; }
.form-success strong { display: block; color: #b6f3cf; }
.form-success p { font-size: 16px; }
/* Captcha: code image + refresh button next to the input. */
.captcha-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 14px; }
.captcha-field > label, .captcha-field > .field-error { grid-column: 1 / -1; }
.captcha-box { display: flex; align-items: center; gap: 8px; }
.captcha-box img { width: 170px; height: 56px; border-radius: 12px; border: 1px solid var(--line-2); background: #141417; }
.captcha-box .icon-btn { width: 44px; height: 44px; font-size: 19px; color: var(--accent); transition: transform .4s var(--ease), border-color .25s; }
.captcha-box .icon-btn:hover { border-color: var(--accent); transform: rotate(180deg); }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ==========================================================================
   Intro (image & text) + Infrastructure
   ========================================================================== */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.intro-grid.no-image { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.intro-media { position: relative; isolation: isolate; }
.intro-media img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: var(--radius); }
.intro-accent { position: absolute; right: -20px; bottom: -20px; width: 45%; height: 45%; border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1; box-shadow: 0 0 40px -6px var(--accent-glow), inset 0 0 30px -10px var(--accent-glow); }
.intro-content .section-head { margin-bottom: 26px; }

.infra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.infra-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #18181b, #111113); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.infra-card:hover { transform: translateY(-6px); border-color: rgba(239, 127, 26, .5); box-shadow: var(--shadow-glow); }
.infra-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.infra-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.infra-card:hover .infra-media img { transform: scale(1.05); }
.infra-num { position: absolute; left: 20px; top: 20px; padding: 8px 16px; border-radius: 30px; background: var(--grad); color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 700; box-shadow: 0 0 22px var(--accent-glow); }
.infra-body { padding: 30px 32px 34px; }
.infra-body h3 { font-size: 25px; margin-bottom: 14px; }
.infra-body p { font-size: 17px; }

/* ==========================================================================
   Quote page, help card, brochure card
   ========================================================================== */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.quote-main { padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); }
.quote-main .section-head { margin-bottom: 32px; }
.quote-main .section-title { font-size: clamp(32px, 3.2vw, 44px); }
.quote-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

.help-card {
    position: relative; isolation: isolate; overflow: hidden; padding: 60px 30px 40px; border-radius: var(--radius); text-align: center; color: #fff;
    background: var(--surface) var(--help-image, none) center / cover no-repeat; border: 1px solid rgba(239, 127, 26, .3);
}
.help-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 50% 0%, rgba(239, 127, 26, .3), transparent 70%), rgba(12, 12, 13, .86); }
.help-card h3 { color: #fff; font-size: 28px; line-height: 1.05; }
.help-card p { margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.help-phone { display: block; margin: 30px 0 10px; font-family: var(--font-head); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; color: var(--accent); text-shadow: 0 0 24px var(--accent-glow); }
.help-phone:hover { color: #fff; }
.help-email { display: block; margin-bottom: 26px; font-family: var(--font-head); font-size: 19px; font-weight: 600; color: #fff; word-break: break-word; }
.help-card .btn { margin-top: 4px; }

.brochure-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: all .3s; }
.brochure-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.brochure-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 24px; flex-shrink: 0; }
.brochure-card strong { display: block; font-size: 17px; color: var(--heading); }
.brochure-card small { font-size: 14px; color: var(--text); }
.brochure-dl { margin-left: auto; font-size: 22px; color: var(--heading); }

/* ==========================================================================
   Product details
   ========================================================================== */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 40px; align-items: start; }
.detail-main { grid-column: 1; min-width: 0; }
.detail-side { grid-column: 2; grid-row: 1; display: grid; gap: 26px; }
.detail-specs { grid-column: 1 / -1; min-width: 0; }
/* Job components: 2 × 2 photos in the side column next to the feature lists (or 4 in a row without lists). */
.detail-jobs { grid-column: 1; min-width: 0; }
.detail-jobs.is-beside { grid-column: 2; }
.job-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.detail-jobs.is-beside .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.job-card {
    display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 16px; cursor: zoom-in;
    background: radial-gradient(110% 90% at 50% 30%, #3b3b41 0%, #202024 55%, #141416 100%); box-shadow: 0 0 0 1px var(--line-2);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.job-card img { width: 100%; height: 100%; object-fit: contain; padding: 14px; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); transition: transform .5s var(--ease); }
.job-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent), 0 0 26px var(--accent-glow); }
.job-card:hover img { transform: scale(1.06); }
.product-gallery-main {
    display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); cursor: zoom-in;
    background: radial-gradient(110% 90% at 50% 30%, #3b3b41 0%, #202024 55%, #141416 100%); box-shadow: 0 0 0 1px var(--line-2);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); transition: opacity .3s; }
.product-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: #3a3a40 transparent; }
.product-thumb { flex: 0 0 100px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; transition: border-color .25s; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-thumb.is-active, .product-thumb:hover { border-color: var(--accent); }
.product-summary { margin-top: 40px; }
.detail-title { font-size: clamp(32px, 3.6vw, 54px); font-weight: 700; line-height: 1.02; margin: 18px 0 20px; }
.product-model { font-size: 17px; color: var(--text); margin-bottom: 16px; }
.product-model strong { color: var(--accent-3); }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-dark); margin-bottom: 16px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.detail-block { margin-top: 64px; }
.block-title { font-size: 30px; line-height: 1; padding-left: 14px; border-left: 3px solid var(--accent); margin-bottom: 26px; }
.spec-table-wrap + .spec-table-wrap { margin-top: 38px; }
.spec-title { font-size: 30px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 18px; color: var(--accent-3); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; -webkit-overflow-scrolling: touch; scrollbar-color: #3a3a40 transparent; }
.spec-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
/* Every value and parameter name stays on one line (e.g. "32 x 10 / 40 x 10"). */
.spec-table th, .spec-table td { white-space: nowrap; }
.spec-table thead th { padding: 15px 12px; background: #221710; color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 600; text-align: center; white-space: nowrap; border-bottom: 1px solid rgba(239, 127, 26, .45); }
.spec-table thead th:first-child { text-align: left; padding-left: 18px; }
.spec-table tbody th { padding: 12px 12px 12px 18px; text-align: left; font-weight: 500; color: var(--heading); background: #141416; min-width: 200px; border-top: 1px solid var(--line); }
.spec-table td { padding: 12px; text-align: center; color: var(--text-dark); background: #101012; border-top: 1px solid var(--line); border-left: 1px solid rgba(255, 255, 255, .05); }
.spec-table tbody tr:hover td { background: #1c140d; }
.spec-table tbody tr:hover th { background: #24180e; }
.spec-table .spec-group th { padding: 13px 18px; background: #1a120b; color: var(--accent-3); font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
/* A value shared by every model (e.g. "Siemens / Fanuc / Mitsubishi", "As Per Our Design"). */
.spec-table .spec-span { font-size: 17px; font-weight: 600; color: var(--heading); }
.spec-table .spec-heading .spec-span { font-family: var(--font-head); font-size: 19px; letter-spacing: .01em; }
/* Keep the parameter names visible while scrolling across many models. */
.spec-table thead th:first-child, .spec-table tbody tr:not(.spec-group) th { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line-2); }
.spec-table thead th:first-child { background: #221710; }
/* Many model columns: site.js steps down to fit-1, then fit-2, until every column fits. */
.spec-table.fit-1 { font-size: 14px; }
.spec-table.fit-1 thead th { padding: 14px 8px; font-size: 14px; }
.spec-table.fit-1 tbody th { min-width: 160px; padding: 11px 8px 11px 14px; }
.spec-table.fit-1 thead th:first-child, .spec-table.fit-1 .spec-group th { padding-left: 14px; }
.spec-table.fit-1 td { padding: 11px 8px; }
.spec-table.fit-2 { font-size: 13px; }
.spec-table.fit-2 thead th { padding: 12px 5px; font-size: 13px; }
.spec-table.fit-2 tbody th { min-width: 130px; padding: 10px 6px 10px 12px; }
.spec-table.fit-2 thead th:first-child, .spec-table.fit-2 .spec-group th { padding-left: 12px; }
.spec-table.fit-2 td { padding: 10px 5px; }
/* Still too wide (or a phone): fade the right edge and show a hint until scrolled to the end. */
.spec-scroll-hint { display: none; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.spec-scroll-hint .icon { color: var(--accent); animation: hintNudge 1.6s ease-in-out infinite; }
@keyframes hintNudge { 50% { translate: 5px 0; } }
.spec-table-wrap.is-scrollable .spec-scroll-hint { display: flex; }
.spec-table-wrap.is-scrollable:not(.is-end) .table-scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), rgba(0, 0, 0, .25)); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), rgba(0, 0, 0, .25)); }
.detail-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); column-gap: 44px; }
.check-list { display: grid; gap: 4px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 17px; color: var(--text-dark); line-height: 1.45; }
.check-list .icon { font-size: 20px; color: var(--accent); margin-top: 1px; }
.video-card {
    position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
    border-radius: var(--radius); overflow: hidden; background: var(--surface) var(--video-poster, none) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2);
}
.video-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, .5); transition: background .3s; }
.video-card:hover::before { background: rgba(10, 10, 10, .3); }
.side-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, #1b1b1f, #121214); }
.side-card h3 { font-size: 24px; margin-bottom: 18px; }
.side-list a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--text-dark); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.side-list a:hover, .side-list a.is-active { color: var(--accent-3); }
.side-list small { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Page banner
   ========================================================================== */
.page-banner {
    position: relative; isolation: isolate; overflow: hidden; padding: 130px 0 120px; text-align: center;
    background: radial-gradient(800px 380px at 50% 100%, rgba(239, 127, 26, .2), transparent 70%), linear-gradient(180deg, #0d0d0f 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.page-banner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: url("../img/grid-dark.svg") center / 1100px auto no-repeat;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.page-banner.has-image { background: var(--bg); padding: 150px 0 140px; }
.banner-bg { position: absolute; inset: -22% 0; z-index: -2; background: center / cover no-repeat; animation: kenBurns 14s ease-out both; will-change: translate, scale; }
@keyframes kenBurns { from { scale: 1.18; } to { scale: 1; } }
/* Dark photo overlay with an orange glow, and the design's grid lines drawn over the photo. */
.page-banner.has-image::before {
    background: radial-gradient(800px 380px at 50% 100%, rgba(239, 127, 26, .28), transparent 70%), linear-gradient(180deg, rgba(10, 10, 11, .8) 0%, rgba(10, 10, 11, .6) 50%, rgba(10, 10, 11, .95) 100%);
    -webkit-mask-image: none; mask-image: none;
}
.page-banner.has-image::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("../img/grid-dark.svg") center / 1100px auto no-repeat;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}
.js body:not(.is-loaded) .page-banner .breadcrumb { opacity: 0; }
.js .is-loaded .page-banner .breadcrumb { animation: fadeUp .9s var(--ease) .6s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
.page-banner-title { font-size: clamp(38px, 4.8vw, 68px); font-weight: 700; line-height: 1.02; max-width: 1000px; margin: 0 auto 26px; color: #fff; }
.breadcrumb {
    display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; padding: 10px 20px; border-radius: 40px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); font-size: 16px; color: var(--text-dark);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; color: var(--muted); }

/* Heading-only page top (Contact, Gallery, Get a Quote): no photo, content starts right below. */
.page-heading { position: relative; isolation: isolate; padding: 70px 0 0; text-align: center; }
.page-heading::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(760px 300px at 50% 0%, rgba(239, 127, 26, .17), transparent 70%), url("../img/grid-dark.svg") center top / 1100px auto no-repeat;
    /* Fades out before the bottom edge, where the next section's background starts. */
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 35%, transparent 100%);
}
.page-heading .breadcrumb { padding: 7px 16px; font-size: 14px; }
.page-heading-title { margin-top: 22px; font-size: clamp(42px, 5.4vw, 80px); font-weight: 700; line-height: 1; color: #fff; }
.page-heading + .section { padding-top: 64px; }
.js body:not(.is-loaded) .page-heading .breadcrumb { opacity: 0; }
.js .is-loaded .page-heading .breadcrumb { animation: fadeUp .9s var(--ease) .3s both; }

/* ==========================================================================
   Owner Profile
   ========================================================================== */
.owner-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 90px; align-items: center; }
.owner-media { position: relative; isolation: isolate; max-width: 560px; width: 100%; justify-self: center; }
.owner-photo {
    position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 28px; background: linear-gradient(165deg, #1f1f23, #121214);
    box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.owner-photo > img { width: 100%; height: 100%; object-fit: cover; }
/* Soft orange light rising from the bottom of the portrait. */
.owner-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(0deg, rgba(239, 127, 26, .28), transparent); pointer-events: none; }
.owner-photo.is-empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(239, 127, 26, .2), transparent 60%), linear-gradient(165deg, #1f1f23, #121214); }
.owner-photo.is-empty > .icon { font-size: 120px; color: var(--accent); opacity: .7; }
.owner-photo .owner-photo-logo { width: 60%; height: auto; object-fit: contain; opacity: .9; filter: drop-shadow(0 0 30px rgba(239, 127, 26, .35)); }
.owner-frame { position: absolute; inset: 28px -28px -28px 28px; z-index: -1; border: 2px solid var(--accent); border-radius: 28px; box-shadow: 0 0 50px -10px var(--accent-glow), inset 0 0 40px -16px var(--accent-glow); }
.owner-badge {
    position: absolute; left: -34px; bottom: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 150px; padding: 22px 24px;
    border-radius: 22px; background: var(--grad); color: #fff; text-align: center; box-shadow: 0 24px 50px -16px var(--accent-glow);
    animation: ownerFloat 5s ease-in-out infinite;
}
.owner-badge strong { font-family: var(--font-head); font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.owner-badge span { margin-top: 6px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@keyframes ownerFloat { 50% { transform: translateY(-10px); } }
.owner-content .section-head { margin-bottom: 22px; }
.owner-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.owner-name { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--heading); }
.owner-role { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); }
.owner-content .section-text + .section-text { margin-top: 16px; }
.owner-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 34px 0 0; }
.owner-facts > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(165deg, #1b1b1f, #121214); }
.owner-facts dt { font-family: var(--font-head); font-size: 32px; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.owner-facts dd { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--text); }
.owner-quote { position: relative; margin: 34px 0 0; padding: 26px 28px 24px 70px; border-radius: 18px; border: 1px solid rgba(239, 127, 26, .3); background: rgba(239, 127, 26, .06); }
.owner-quote > .icon { position: absolute; left: 24px; top: 26px; font-size: 30px; color: var(--accent); }
.owner-quote p { font-family: var(--font-head); font-size: 21px; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--heading); }
.owner-quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--accent-3); }
.owner-content .btn-pair { margin-top: 34px; }

/* History timeline: a glowing line down the middle, steps alternating left / right. */
.timeline { position: relative; max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--accent) 8%, rgba(239, 127, 26, .35) 92%, transparent); }
.timeline-item { position: relative; width: 50%; padding: 0 56px 40px 0; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 40px 56px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 30px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(239, 127, 26, .2), 0 0 24px var(--accent-glow); }
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -9px; }
.timeline-card { position: relative; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, #1d1d21, #121214); transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.timeline-card:hover { border-color: rgba(239, 127, 26, .45); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.timeline-card .timeline-year { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 30px; background: var(--grad); font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff; box-shadow: 0 10px 24px -10px var(--accent-glow); }
.timeline-card h3 { font-size: 24px; line-height: 1.15; color: var(--heading); }
.timeline-card p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text); }
.timeline-image { display: block; margin-top: 18px; overflow: hidden; border-radius: 14px; }
.timeline-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.timeline-image:hover img { transform: scale(1.05); }

/* ==========================================================================
   Events
   ========================================================================== */
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.event-grid > div { display: flex; }
.event-card {
    display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(165deg, #1d1d21, #121214); transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.event-card:hover { border-color: rgba(239, 127, 26, .45); box-shadow: var(--shadow-glow); transform: translateY(-6px); }
.event-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--surface-2); }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.event-card:hover .event-card-media img { transform: scale(1.06); }
.event-card-placeholder { font-size: 64px; color: var(--accent); opacity: .5; }
.event-date {
    position: absolute; left: 18px; top: 18px; display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 10px 12px;
    border-radius: 14px; background: var(--grad); color: #fff; line-height: 1; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7);
}
.event-date strong { font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.event-date small { margin-top: 5px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.event-video-tag { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(10, 10, 11, .75); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: #fff; }
.event-video-tag .icon { color: var(--accent); }
.event-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.event-location { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14px; color: var(--accent-3); }
.event-card h3 { font-size: 23px; line-height: 1.2; }
.event-card h3 a { color: var(--heading); }
.event-card h3 a:hover { color: var(--accent-3); }
.event-excerpt { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text); }
.event-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--accent); }
.event-more .icon { transition: transform .3s var(--ease); }
.event-more:hover .icon { transform: translateX(4px); }

.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.event-main { min-width: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.event-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 30px; background: var(--surface); font-size: 15px; color: var(--text-dark); }
.event-meta .icon { color: var(--accent); }
.event-cover { display: block; overflow: hidden; margin-bottom: 30px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2); }
.event-cover img { width: 100%; max-height: 640px; object-fit: cover; transition: transform .7s var(--ease); }
.event-cover:hover img { transform: scale(1.03); }
.event-main .section-text + .section-text { margin-top: 16px; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; box-shadow: 0 0 0 1px var(--line-2); }
.event-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-photos.count-1 { grid-template-columns: minmax(0, 1fr); }
.event-photos.count-3 .event-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.event-photo { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.event-photo:hover { box-shadow: 0 0 0 1px rgba(239, 127, 26, .6), var(--shadow-glow); }
.event-photo:hover img { transform: scale(1.07); }
.event-photo:hover .gallery-overlay, .event-photo:focus-visible .gallery-overlay { opacity: 1; }
.event-side { position: sticky; top: calc(var(--header-h) + 20px); }
.event-facts { display: grid; gap: 0; margin: 0 0 24px; }
.event-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.event-facts dt { color: var(--muted); }
.event-facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--text-dark); }
.event-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--accent); }

@media (max-width: 1100px) {
    .owner-grid { gap: 60px; }
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-detail { grid-template-columns: minmax(0, 1fr); }
    .event-side { position: static; }
}
@media (max-width: 900px) {
    .owner-grid { grid-template-columns: minmax(0, 1fr); gap: 70px; }
    .owner-media { max-width: 460px; }
    .timeline::before { left: 9px; }
    .timeline-item, .timeline-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 28px 44px; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; top: 28px; }
}
@media (max-width: 640px) {
    .owner-photo, .owner-frame { border-radius: 22px; }
    .owner-frame { inset: 18px -14px -18px 18px; }
    .owner-badge { left: -8px; bottom: 26px; min-width: 120px; padding: 16px 18px; }
    .owner-badge strong { font-size: 40px; }
    .owner-name { font-size: 24px; }
    .owner-quote { padding: 22px 20px 20px 58px; }
    .owner-quote > .icon { left: 18px; top: 22px; font-size: 26px; }
    .owner-quote p { font-size: 18px; }
    .timeline-card { padding: 22px; }
    .timeline-card h3 { font-size: 21px; }
    .event-grid { grid-template-columns: minmax(0, 1fr); }
    .event-photos { grid-template-columns: minmax(0, 1fr); }
    .event-photos.count-3 .event-photo:first-child { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Long text (Robotics content, long product descriptions)
   ========================================================================== */
.rich-text { font-size: 18px; line-height: 1.75; color: var(--text-dark); }
.rich-text > * + * { margin-top: 18px; }
.rich-text p { color: var(--text); }
.rich-text .rich-h3 { margin-top: 30px; font-size: 22px; line-height: 1.2; color: var(--heading); }
.rich-text .rich-h3 + p { margin-top: 10px; }
.rich-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.rich-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); font-size: 17px; line-height: 1.5; color: var(--text-dark); }
.rich-list .icon { flex-shrink: 0; margin-top: 3px; font-size: 18px; color: var(--accent); }

/* ==========================================================================
   Robotics page
   ========================================================================== */
/* Top of the Robotics page: photos with the introduction right beside them. */
/* Features / accessories / job components and the video, near the end of the Robotics page. */
.section-robot-specs .detail-specs, .section-robot-specs .detail-lists:first-child > .detail-block, .section-robot-specs .detail-jobs:nth-child(2) { margin-top: 0; }
.section-robot-specs .detail-specs + .detail-lists > .detail-block, .section-robot-specs .detail-specs ~ .detail-jobs { margin-top: 64px; }
.section-robot-specs .detail-lists { row-gap: 44px; }
.robot-video { max-width: 1100px; }

/* No sidebar on the Robotics page: the photos + introduction span the full width. */
.robot-detail .robot-hero { grid-column: 1 / -1; }
.robot-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.robot-hero .product-gallery-main { aspect-ratio: 4 / 3; }
.robot-hero .product-gallery-main img { padding: 0; filter: none; }
.robot-hero .product-thumb { flex-basis: 84px; }
.robot-hero .product-summary { margin-top: 0; }
.robot-hero .detail-title { font-size: clamp(30px, 2.7vw, 44px); margin: 16px 0 16px; }
.robot-hero .lead { font-size: 19px; }
.robot-hero .product-actions { margin-top: 26px; }
.robot-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.robot-benefits.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.robot-benefits.count-2, .robot-benefits.count-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.robot-benefit {
    position: relative; overflow: hidden; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(165deg, #1d1d21, #121214); transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.robot-benefit::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 127, 26, .18), transparent 70%); pointer-events: none; }
.robot-benefit:hover { border-color: rgba(239, 127, 26, .45); box-shadow: var(--shadow-glow); transform: translateY(-6px); }
.robot-benefit-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--grad); font-size: 28px; color: #fff; box-shadow: 0 12px 28px -8px var(--accent-glow); }
.robot-benefit h3 { margin-top: 22px; font-size: 22px; line-height: 1.15; color: var(--heading); }
.robot-benefit p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text); }

/* Robotics list: one row per product, photo right / left in turn. */
.robotics-list { display: grid; gap: 90px; }
.robotics-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.robotics-row-media { position: relative; display: grid; place-items: center; order: 2; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -36px rgba(0, 0, 0, .9); }
.robotics-row-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(239, 127, 26, .22), transparent); pointer-events: none; }
.robotics-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.robotics-row-media:hover img { transform: scale(1.05); }
.robotics-row-num { position: absolute; left: 20px; top: 20px; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--grad); font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; box-shadow: 0 14px 30px -10px var(--accent-glow); }
.robotics-row.is-flipped .robotics-row-media { order: 0; }
.robotics-row-title { margin: 16px 0 14px; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.05; }
.robotics-row-title a { color: var(--heading); }
.robotics-row-title a:hover { color: var(--accent-3); }
.robotics-row-body .lead { margin-top: 14px; }
.robotics-row-features { margin-top: 18px; }
.robotics-row-features li { padding: 6px 0; font-size: 16px; }
.robotics-row-body .product-actions { margin-top: 28px; }

/* Robotics categories list: the number of products on the photo, and the category's products as links. */
.robotics-row-count {
    position: absolute; right: 20px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 40px; background: rgba(12, 12, 14, .62); backdrop-filter: blur(10px);
    font-size: 14px; font-weight: 600; color: #fff;
}
.robotics-row-count .icon { font-size: 16px; color: var(--accent-3); }
.robotics-row-body .section-text { margin-top: 12px; }
.robotics-row-products { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.robotics-row-label { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.robotics-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.robotics-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 40px;
    background: rgba(255, 255, 255, .03); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--heading); transition: border-color .3s, background .3s, color .3s;
}
.robotics-chip .icon { flex-shrink: 0; font-size: 16px; color: var(--accent); }
.robotics-chip small { padding-left: 9px; border-left: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--accent-3); white-space: nowrap; }
.robotics-chip:hover { border-color: rgba(239, 127, 26, .55); background: rgba(239, 127, 26, .1); color: #fff; }

/* Robotics category page: the description, then its products (each opens the product's own page). */
.robot-cat-intro { max-width: 880px; margin: 0 auto; text-align: center; }
.robot-cat-intro p { font-size: 19px; line-height: 1.7; color: var(--text-dark); }
.robot-cat-intro p + p { margin-top: 14px; }
.robot-models { margin-top: 60px; }
.robot-models:first-child { margin-top: 0; }
.robot-models-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 30px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.robot-models-title { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.robot-models-head p { font-size: 16px; color: var(--text); }
.robot-cat-empty { margin-top: 50px; }
.robot-cat-empty p { margin-top: 4px; }
.robot-cat-intro + .robot-cat-empty { margin-top: 44px; }
/* Robotics product and category cards: photos fill the card. */
.robot-cat-cards .product-card-media img { padding: 0; object-fit: cover; filter: none; }
.robot-cat-cards.count-1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
.robot-cat-cards.count-2 { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }

/* Robotics page write-up below the categories, section by section (Admin > Robotics Content). */
.section-robot-story { padding-top: 40px; }
.robot-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.robot-block + .robot-block, .robot-band + .robot-block, .robot-block + .robot-band { margin-top: 110px; }
.robot-block-title { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; margin-bottom: 26px; }
.robot-block-title.center { max-width: 900px; margin-inline: auto; text-align: center; }
.robot-columns-text { column-count: 2; column-gap: 56px; max-width: 1160px; margin-inline: auto; }
.robot-columns-text > * { break-inside: avoid; }
.robot-columns-text > p:first-child { margin-top: 0; }
.robot-columns-image { display: block; max-width: 1160px; margin: 44px auto 0; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2); }
.robot-columns-image img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.robot-band {
    position: relative; isolation: isolate; overflow: hidden; padding: 70px 0; text-align: center;
    background: radial-gradient(700px 240px at 50% 50%, rgba(239, 127, 26, .28), transparent 70%), linear-gradient(90deg, #120c07, #1c120a 50%, #120c07);
    border-block: 1px solid rgba(239, 127, 26, .35);
}
.robot-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/grid-dark.svg") center / 1100px auto no-repeat; opacity: .5; }
.robot-band p { max-width: 980px; margin: 0 auto; font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; line-height: 1.25; color: #fff; }
.robot-split { max-width: 980px; }
.robot-split.has-image { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: none; }
.robot-split.has-image.is-flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.robot-split.has-image.is-flipped .robot-split-image { order: -1; }
.robot-split-image { display: block; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.robot-split-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.robot-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 50px; }
.robot-point {
    display: flex; align-items: flex-start; gap: 20px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(165deg, #1d1d21, #121214); transition: border-color .4s, box-shadow .4s;
}
.robot-point:hover { border-color: rgba(239, 127, 26, .45); box-shadow: var(--shadow-glow); }
.robot-point:last-child:nth-child(odd) { grid-column: 1 / -1; }
.robot-point-icon { flex: 0 0 54px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(239, 127, 26, .45); background: rgba(239, 127, 26, .1); font-size: 24px; color: var(--accent-3); box-shadow: 0 0 24px -6px var(--accent-glow); }
.robot-point h3 { font-size: 21px; line-height: 1.2; color: var(--heading); }
.robot-point .rich-text { margin-top: 8px; font-size: 16px; line-height: 1.65; }

/* Long product description: full width below the photos, folded with "Read more". */
.detail-overview { grid-column: 1 / -1; min-width: 0; }
.overview-text { position: relative; max-width: 980px; }
.overview-text.is-folded { max-height: 430px; overflow: hidden; }
.overview-text.is-folded::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.overview-toggle { margin-top: 18px; }
.overview-toggle .icon { transition: transform .3s; }
.overview-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.read-more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--accent); }

@media (max-width: 1100px) {
    .robot-benefits, .robot-benefits.count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .robotics-row { gap: 40px; }
    .robot-split.has-image, .robot-split.has-image.is-flipped { gap: 40px; }
}
@media (max-width: 900px) {
    .robot-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .robot-hero .product-gallery-main { aspect-ratio: 4 / 3; }
    .robot-hero .product-summary { margin-top: 36px; }
    .robotics-list { gap: 70px; }
    .robotics-row, .robot-split.has-image, .robot-split.has-image.is-flipped { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .robotics-row-media, .robotics-row.is-flipped .robotics-row-media, .robot-split.has-image .robot-split-image { order: -1; }
    .robot-columns-text { column-count: 1; }
    .robot-points { grid-template-columns: minmax(0, 1fr); }
    .robot-block + .robot-block, .robot-band + .robot-block, .robot-block + .robot-band { margin-top: 80px; }
}
@media (max-width: 760px) {
    .robot-benefits, .robot-benefits.count-3, .robot-benefits.count-2 { grid-template-columns: minmax(0, 1fr); }
    .robotics-row-num { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
    .robot-band { padding: 50px 0; }
    .robot-point { gap: 14px; padding: 22px 20px; }
    .robot-point-icon { flex-basis: 46px; width: 46px; height: 46px; font-size: 20px; }
    .robot-columns-image img { aspect-ratio: 4 / 3; }
    .rich-text { font-size: 17px; }
    .robotics-row-count { right: 14px; bottom: 14px; padding: 7px 13px; font-size: 13px; }
    .robotics-chip { font-size: 14px; padding: 8px 14px; }
    .robot-cat-intro p { font-size: 17px; }
    .robot-models { margin-top: 44px; }
    .robot-models-head { margin-bottom: 18px; }
    .robot-cat-cards.count-1, .robot-cat-cards.count-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; isolation: isolate; overflow: hidden; padding: 100px 0 32px; background: #070708; color: #fff; border-top: 1px solid var(--line); }
.site-footer::before {
    content: ""; position: absolute; inset: 0 0 35% 0; z-index: -1;
    background: radial-gradient(700px 300px at 50% 0%, rgba(239, 127, 26, .16), transparent 70%), url("../img/grid-dark.svg") center top / 1500px auto no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent);
    mask-image: linear-gradient(180deg, #000 20%, transparent);
}
.site-footer::after { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 20px var(--accent-glow); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand img { height: 64px; }
.footer-about { max-width: 330px; margin: 30px 0 26px; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--text-dark); }
/* Make in India lion: site.js draws it on the canvas without its black background;
   until then (or without JS) the plain video shows with its edges faded out. */
.footer-badge { position: relative; width: 100%; max-width: 300px; aspect-ratio: 620 / 350; }
.footer-badge video, .footer-badge canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer-badge video { -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%); }
.footer-badge.is-keyed video { opacity: 0; }
.footer-col h4 { color: #fff; font-size: 22px; margin-bottom: 26px; }
.footer-col li a { display: inline-flex; align-items: center; gap: 0; padding: 6px 0; font-size: 16px; font-weight: 500; color: var(--text); transition: color .25s, gap .3s var(--ease); }
.footer-col li a::before { content: ""; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.footer-col li a:hover { color: #fff; gap: 10px; }
.footer-col li a:hover::before { width: 14px; }
.footer-phone { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.footer-phone-sm { font-size: 20px; }
.footer-phone:hover { color: #fff; }
.footer-email { display: block; margin: 16px 0; font-size: 17px; font-weight: 500; color: #fff; word-break: break-word; }
.footer-email:hover { color: var(--accent); }
.footer-address { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--text); }
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px;
    margin-top: 0; padding: 24px 80px 0 0; border-top: 1px solid var(--line);
    font-size: 15px; color: var(--text);
}
.developer a { color: var(--accent); font-weight: 700; }
.developer a:hover { color: #fff; }
.social-squares-light a { border-color: var(--line-2); color: #fff; }
.social-squares-light a:hover { background: var(--accent); border-color: var(--accent); }
/* Huge faded company name just above the copyright / developer line. */
.footer-watermark {
    margin-top: 50px; padding-bottom: .06em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
    font-family: var(--font-head); font-size: clamp(34px, 13.4vw, 225px); font-weight: 700; line-height: 1; letter-spacing: -.05em;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(239, 127, 26, .1) 45%, transparent 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Floating buttons (Call / WhatsApp / Back to top)
   ========================================================================== */
.floating-actions { position: fixed; right: 20px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-btn { position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), opacity .3s, visibility .3s; }
.float-btn:hover { transform: translateY(-3px); }
.float-call { background: var(--grad); box-shadow: 0 12px 28px -6px var(--accent-glow); }
.float-whatsapp { background: #25d366; font-size: 30px; }
.float-whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }
.float-top { width: 46px; height: 46px; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 20px; opacity: 0; visibility: hidden; }
.show-top .float-top { opacity: 1; visibility: visible; }
.float-label { position: absolute; right: calc(100% + 12px); padding: 7px 12px; border-radius: 8px; background: var(--surface-3); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: all .25s; pointer-events: none; }
.float-btn:hover .float-label { opacity: 1; transform: none; }
/* Computer: the call button shows the number (no dialer to open). */
.call-pop {
    position: absolute; right: calc(100% + 14px); bottom: 70px; width: 260px; padding: 22px 22px 20px; border-radius: 18px; text-align: center;
    background: linear-gradient(165deg, #1f1f23 0%, #141416 100%); border: 1px solid rgba(239, 127, 26, .35); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px -10px var(--accent-glow);
    animation: fadeUp .35s var(--ease) both;
}
.call-pop[hidden] { display: none; }
.call-pop-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.call-pop-close:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.call-pop-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-3); }
.call-pop-number { display: block; margin: 8px 0 2px; font-family: var(--font-head); font-size: 24px; font-weight: 700; color: #fff; white-space: nowrap; }
.call-pop-number:hover { color: var(--accent); }
.call-pop-number-sm { margin-top: 2px; font-size: 17px; color: var(--text-dark); }
.call-pop .btn { margin-top: 14px; }

/* ==========================================================================
   Lightbox & video modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: rgba(5, 5, 6, .94); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: all .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-close, .modal-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; transition: background .25s; }
.modal-close:hover, .modal-nav:hover { background: var(--accent); border-color: var(--accent); }
.modal-close { top: 18px; right: 18px; }
.modal-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.modal-next { right: 18px; top: 50%; transform: translateY(-50%); }
.modal figure { text-align: center; }
.modal figure img { max-width: min(1200px, 90vw); max-height: 80vh; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.modal figcaption { margin-top: 16px; color: #fff; font-size: 16px; }
.modal-video { width: min(1100px, 92vw); aspect-ratio: 16 / 9; }
.modal-video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
body.modal-open { overflow: hidden; }

/* ==========================================================================
   Error page
   ========================================================================== */
.error-page { padding: 150px 0; text-align: center; }
.error-code { font-family: var(--font-head); font-size: clamp(110px, 16vw, 200px); font-weight: 700; line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(239, 127, 26, .35)); }
.error-page .section-text { margin-top: 20px; }

/* ==========================================================================
   Animations & effects
   ========================================================================== */

/* Scroll reveal: up (default), from left / right, and zoom. */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0ms); }
.js .reveal-left { transform: translateX(-60px); }
.js .reveal-right { transform: translateX(60px); }
.js .reveal-zoom { transform: translateY(30px) scale(.9); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Image curtain: an orange panel wipes away while the photo settles from a zoom. */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); }
.js .img-reveal::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--grad); transform-origin: right; transition: transform 1.1s cubic-bezier(.77, 0, .18, 1) .1s; pointer-events: none; }
.js .img-reveal img { scale: 1.35; transition: scale 1.8s cubic-bezier(.16, 1, .3, 1) .35s; }
.js .img-reveal.is-visible::after { transform: scaleX(0); }
.js .img-reveal.is-visible img { scale: 1; }

/* Headings: each word flips up out of a mask in 3D when the heading scrolls into view. */
.split-word { perspective: 700px; }
.js [data-split]:not(.hero-title) .split-word > span { transform: translateY(105%) rotateX(-75deg); transform-origin: 50% 100%; }
.js [data-split]:not(.hero-title).is-visible .split-word > span { transform: none; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--w, 0) * 60ms + 80ms); }

/* 3D entrances: cards come up out of depth instead of just fading in. */
.product-cards, .highlights-grid, .project-cards, .infra-grid, .counter-grid, .gallery-grid, .journey-list, .contact-details, .hero-stats, .footer-grid { perspective: 1500px; }
.js .reveal { transition: opacity 1.1s var(--ease), transform 1.4s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0ms); }
.js .product-cards > .reveal:not(.is-visible) { transform: translateY(120px) rotateX(42deg) translateZ(-160px); transform-origin: 50% 100%; }
.js .highlight-card.reveal:not(.is-visible) { transform: translateX(60px) rotateY(-48deg) translateZ(-200px); transform-origin: 0 50%; }
.js .project-card.reveal:not(.is-visible) { transform: translateY(140px) rotateX(30deg) scale(.88); transform-origin: 50% 100%; }
.js .project-card.reveal:nth-child(3n + 1):not(.is-visible) { transform: translateX(-80px) translateY(120px) rotateY(24deg) rotateX(20deg) scale(.88); }
.js .project-card.reveal:nth-child(3n):not(.is-visible) { transform: translateX(80px) translateY(120px) rotateY(-24deg) rotateX(20deg) scale(.88); }
.js .journey-list > .reveal:not(.is-visible) { transform: rotateX(-80deg) translateY(-20px); transform-origin: 50% 0; }
.js :is(.infra-card, .counter-card, .gallery-item, .contact-details > div).reveal:not(.is-visible) { transform: translateY(90px) rotateX(35deg) scale(.94); transform-origin: 50% 100%; }

/* Photos settle inside their frames, then drift slowly with the scroll (site.js). */
.js .img-reveal.is-visible img { scale: 1.12; }
.project-card img { scale: 1.12; }
/* Until site.js has split a heading into words, keep it hidden (shown after 1.5s if JS never runs). */
.js [data-split]:not(.is-split) { opacity: 0; animation: splitFailsafe 0s 1.5s forwards; }
@keyframes splitFailsafe { to { opacity: 1; } }

/* Buttons: light sweep on hover. */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }

/* Cards: spotlight + glowing edge that follow the mouse (position set by site.js). */
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.spot::before {
    z-index: 3; padding: 1px;
    background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 170, 90, .95), rgba(239, 127, 26, .35) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot::after { z-index: 0; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(239, 127, 26, .12), transparent 60%); }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Cards: 3D tilt that follows the mouse (set by site.js), icon bounce. */
.product-card, .highlight-card, .infra-card, .counter-card { transform-style: preserve-3d; }
:is(.product-card, .highlight-card, .project-card, .infra-card, .counter-card).is-tilting { transition: border-color .4s, box-shadow .4s, transform .15s linear; }
:is(.product-card, .highlight-card, .project-card, .infra-card, .counter-card).is-visible:hover,
:is(.product-card, .highlight-card):hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
.highlight-card:hover .highlight-icon, .counter-card:hover .counter-icon { animation: iconPop .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes iconPop { 0% { transform: scale(1); } 40% { transform: scale(.8) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
.infra-card:hover .infra-num, .journey-list li:hover .journey-num { animation: iconPop .7s cubic-bezier(.34, 1.56, .64, 1); }
.journey-list li { transition: padding-left .4s var(--ease); }
.journey-list li:hover { padding-left: 14px; }
.project-card img, .gallery-item img { will-change: transform; }

/* Soft orange light that follows the mouse across the page (desktop only). */
.cursor-glow {
    position: fixed; left: 0; top: 0; z-index: 40; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(239, 127, 26, .09) 0%, rgba(239, 127, 26, .03) 35%, transparent 65%);
    mix-blend-mode: screen; opacity: 0; transition: opacity .6s; will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* Custom cursor: a dot plus a trailing ring that grows over links and shows "View" / "Play" over cards. */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, select) { cursor: auto !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); box-shadow: 0 0 10px 1px var(--accent); }
.cursor-ring {
    display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .45);
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .35s, border-color .35s, opacity .3s, scale .2s;
}
.cursor-ring span { opacity: 0; transition: opacity .25s; }
.cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(239, 127, 26, .1); }
.cursor-ring.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-color: transparent; background: var(--grad); box-shadow: 0 0 40px var(--accent-glow); }
.cursor-ring.is-view span { opacity: 1; }
.cursor-ring.is-press { scale: .82; }
.cursor-on .cursor-ring.is-text, .cursor-on .cursor-dot.is-text { opacity: 0; }

/* Layered sections (desktop): every section slides over the previous one like a sheet, and the
   covered section tilts back and darkens (transform + shade are driven by site.js). */
.stack-shade { display: none; }
main > section { background-color: var(--bg); }
.has-stack main > section { position: sticky; }
.has-stack main > section + section { border-radius: 44px 44px 0 0; box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07); }
.has-stack .stack-shade { display: block; position: absolute; inset: 0; z-index: 30; border-radius: inherit; background: #030304; opacity: 0; pointer-events: none; }

/* Header, floating buttons and CTA play button entrances. */
.js:not(.no-preloader) .is-loaded .site-header { animation: headerIn .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes headerIn { from { transform: translateY(-100%); } }
.js body:not(.is-loaded) .floating-actions .float-btn:not(.float-top) { opacity: 0; }
.js .is-loaded .floating-actions .float-btn:not(.float-top) { animation: floatIn .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.js .is-loaded .floating-actions .float-whatsapp { animation-delay: 1s; }
.js .is-loaded .floating-actions .float-call { animation-delay: .8s; }
@keyframes floatIn { from { opacity: 0; transform: translateX(80px) scale(.5); } }
.play-btn { animation: playBreath 3s ease-in-out infinite; }
@keyframes playBreath { 50% { box-shadow: 0 0 0 18px rgba(239, 127, 26, .08), 0 0 60px var(--accent-glow); } }

/* Scroll progress bar. */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffb26b); box-shadow: 0 0 12px var(--accent-glow); transform-origin: left; transform: scaleX(0); }

/* Intro loader (first page of a visit only): logo with a light sweep and a counter,
   then a glowing seam draws across and the two halves of the screen part. */
.preloader { display: none; }
.js .preloader { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; animation: preloaderFailsafe .01s 5s forwards; }
.no-preloader .preloader, .preloader.is-gone { display: none !important; }
@keyframes preloaderFailsafe { to { visibility: hidden; opacity: 0; } }
.preloader-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: radial-gradient(900px 420px at 50% 100%, rgba(239, 127, 26, .12), transparent 70%), var(--bg); transition: transform 1.15s cubic-bezier(.77, 0, .18, 1) .35s; }
.preloader-panel-top { top: 0; }
.preloader-panel-bottom { bottom: 0; background: radial-gradient(900px 420px at 50% 0%, rgba(239, 127, 26, .12), transparent 70%), var(--bg); }
.preloader-seam { position: absolute; left: 0; right: 0; top: 50%; z-index: 1; height: 2px; margin-top: -1px; background: linear-gradient(90deg, transparent, #ffc48f 30%, #fff 50%, #ffc48f 70%, transparent); box-shadow: 0 0 24px 4px var(--accent-glow); transform: scaleX(0); opacity: 0; }
.preloader-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s; }
.preloader-logo {
    height: 96px; width: auto; margin-bottom: 8px;
    -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .35) 35%, #000 50%, rgba(0, 0, 0, .35) 65%); mask-image: linear-gradient(100deg, rgba(0, 0, 0, .35) 35%, #000 50%, rgba(0, 0, 0, .35) 65%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%; animation: logoSweep 1.8s linear infinite, logoIn 1s var(--ease) both;
}
@keyframes logoSweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: -50% 0; mask-position: -50% 0; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(.94); filter: blur(8px); } }
.preloader-count {
    display: flex; align-items: flex-start; font-family: var(--font-head); font-size: clamp(64px, 9vw, 128px); font-weight: 400; line-height: .9; letter-spacing: -.04em;
    font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #6d6d75); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.preloader-count small { margin: .12em 0 0 .08em; font-size: .28em; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.preloader-bar { width: 240px; height: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; background: var(--grad); box-shadow: 0 0 12px var(--accent-glow); transform-origin: left; transform: scaleX(0); }
.preloader-tag { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); animation: logoIn 1s var(--ease) .3s both; }
.preloader.is-done { pointer-events: none; }
.preloader.is-done .preloader-inner { opacity: 0; transform: translateY(-24px) scale(.96); filter: blur(6px); }
.preloader.is-done .preloader-seam { animation: seam 1.1s var(--ease) .15s forwards; }
@keyframes seam { 0% { opacity: 1; transform: scaleX(0); } 45% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1) scaleY(8); } }
.preloader.is-done .preloader-panel-top { transform: translateY(-101%); }
.preloader.is-done .preloader-panel-bottom { transform: translateY(101%); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal, .js [data-split] .split-word > span, .hero-title .split-word > span, .js [data-split] { opacity: 1; transform: none; }
    .js .img-reveal::after { display: none; }
    .js .img-reveal img { scale: 1; }
    .js .preloader, .hero-embers, .cursor-glow { display: none; }
    .marquee-track, .clients-list { animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1500px) {
    .social-squares { display: none; }
    .footer-bottom .social-squares { display: flex; }
}

@media (max-width: 1280px) {
    .btn.header-brochure { width: 46px; height: 46px; padding: 0; border-radius: 12px; }
    .header-brochure span { display: none; }
    .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlights-aside { grid-column: 1 / -1; order: -1; padding-left: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; }
    .highlights-aside .aside-title { margin-bottom: 0; max-width: 620px; }
    .highlights-aside .stat-label { margin-left: auto; }
    .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding-top: 0; }
    .about-quote { grid-column: 1 / -1; }
    .product-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .faq-head { grid-template-columns: minmax(0, 1fr) auto; }
    .faq-head .eyebrow { grid-column: 1 / -1; }
}

/* Header: the menu moves into the slide-in drawer below 1240px (the 7 menu links no longer fit in one row). */
@media (max-width: 1240px) {
    :root { --header-h: 76px; }
    /* backdrop-filter would become the containing block of the fixed drawer */
    .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 10, 11, .97); }
    .brand img { height: 48px; }
    .nav-toggle { display: grid; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(380px, 88vw); flex-direction: column; align-items: stretch;
        padding: 20px 24px 30px; background: #111113; border-left: 1px solid var(--line-2); overflow-y: auto; transform: translateX(105%); visibility: hidden;
        transition: transform .4s var(--ease), visibility 0s .4s; box-shadow: -20px 0 60px rgba(0, 0, 0, .6);
    }
    .nav-open .main-nav { transform: none; visibility: visible; transition: transform .4s var(--ease); }
    html.nav-lock { overflow: hidden; }
    .nav-open .nav-overlay { opacity: 1; visibility: visible; }
    .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
    .nav-drawer-head .brand img { height: 42px; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .nav-list > li > a { flex: 1; padding: 16px 0; font-size: 18px; }
    .nav-list > li > a::after { display: none; }
    .nav-list > li > a.active { color: var(--accent); }
    .dropdown-toggle { width: 44px; height: 44px; padding: 0; }
    .dropdown { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 10px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; backdrop-filter: none; display: none; }
    .has-dropdown.is-open > .dropdown { display: block; }
    .has-dropdown.is-open > .dropdown-toggle .icon { transform: rotate(45deg); }
    .has-dropdown:hover > .dropdown-toggle .icon { transform: none; }
    .dropdown a { padding: 9px 14px; }
    .nav-drawer-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 30px; }
    .drawer-contact { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text-dark); }
    .drawer-contact .icon { color: var(--accent); }
    .nav-drawer-foot .btn { margin-top: 8px; }
}

@media (max-width: 1100px) {
    .section { padding: 96px 0; }
    .journey-grid, .intro-grid, .testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
    .journey-media img, .testimonials-media img { min-height: 0; aspect-ratio: 16 / 10; max-height: 520px; }
    .detail-grid, .quote-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-side, .quote-side { position: static; }
    .detail-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .detail-main, .detail-side, .detail-jobs.is-beside { grid-column: 1; }
    .detail-side { grid-row: auto; order: 1; margin-top: 64px; }
    .detail-jobs.is-beside .job-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .faq-side { display: grid; grid-template-columns: 280px 1fr; gap: 0 30px; align-items: center; padding-bottom: 14px; }
    .faq-side img { grid-row: span 2; margin-bottom: 0; }
    .faq-side h3 { align-self: end; }
    .faq-side p { align-self: start; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 40px; }
    .contact-grid { gap: 40px; }
    .contact-form { padding: 34px; }
    .hero-slide { gap: 24px; }
    .hero-side-nav { gap: 24px; }
}

@media (max-width: 900px) {
    .hero { padding-top: 40px; }
    .hero-slide { grid-template-columns: minmax(0, 1fr); }
    .hero-media { order: -1; max-width: 560px; }
    .hero.has-3d .hero-media { margin-bottom: 44px; }
    .hero-media img { max-height: 340px; }
    .hero-bg { inset: 0; }
    .hero-bottom { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
    .hero-controls { grid-column: 1; justify-content: flex-start; order: -1; }
    .hero-side-nav { display: none; }
    .hero-controls .hero-arrow { display: grid; }
    .product-cards, .product-cards-grid, .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid, .infra-grid { grid-template-columns: minmax(0, 1fr); }
    .cta-inner { grid-template-columns: minmax(0, 1fr); }
    .cta-inner .play-btn { grid-column: 1; grid-row: 1; width: 88px; height: 88px; margin-right: 0; font-size: 28px; }
    .section-cta { min-height: 0; }
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .about-image img { min-height: 0; aspect-ratio: 4 / 3.4; }
    .about-side { grid-template-columns: minmax(0, 1fr); }
    .testimonial-card { flex-basis: 100%; }
    .section-marquee { padding: 48px 0; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .section-text { font-size: 16px; }
    .eyebrow { font-size: 12px; letter-spacing: .12em; }
    .header-cta { display: none; }
    .brand img { height: 44px; }
    .btn { padding: 15px 28px; font-size: 16px; }
    .hero-title { font-size: clamp(38px, 11vw, 52px); }
    .hero-stats { width: 100%; gap: 14px; }
    .stat-card { min-width: 0; flex: 1 1 100%; padding: 20px; }
    .stat-value { font-size: 38px; }
    .section-highlights { padding: 56px 0; }
    .highlights-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .highlights-aside { flex-direction: column; align-items: flex-start; }
    .highlights-aside .stat-label { margin-left: 0; }
    .aside-stat { font-size: 50px; }
    .marquee-band-front { padding: 16px 0; }
    .marquee-band-back { padding: 13px 0; }
    .marquee-item { gap: 22px; padding-right: 22px; }
    .product-cards, .product-cards-grid, .project-cards { grid-template-columns: minmax(0, 1fr); }
    .form-grid, .contact-details { grid-template-columns: minmax(0, 1fr); }
    .form-field-model, .form-field-qty { grid-column: auto; }
    .captcha-field { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .captcha-field > label { margin-bottom: -2px; }
    .contact-form, .quote-main { padding: 26px 18px; }
    .journey-list li { grid-template-columns: 56px minmax(0, 1fr); padding-right: 8px; }
    .journey-icon { display: none; }
    .journey-num { font-size: 36px; }
    .accordion-item { padding: 0 18px; }
    .accordion-trigger { font-size: 18px; }
    .accordion-panel p { padding-right: 0; }
    .faq-head { grid-template-columns: minmax(0, 1fr); }
    .faq-side { grid-template-columns: minmax(0, 1fr); padding-bottom: 26px; }
    .faq-side img { margin-bottom: 24px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .page-banner { padding: 84px 0 74px; }
    .page-banner.has-image { padding: 100px 0 90px; }
    .page-heading { padding-top: 44px; }
    .page-heading-title { margin-top: 16px; }
    .page-heading + .section { padding-top: 40px; }
    .intro-accent { right: -10px; bottom: -10px; }
    .breadcrumb { font-size: 14px; padding: 8px 16px; }
    .block-title { font-size: 25px; }
    .spec-title { font-size: 25px; }
    .job-grid, .detail-jobs.is-beside .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .spec-table { font-size: 14px; }
    .spec-table .spec-span { font-size: 15px; }
    .spec-table .spec-group th, .spec-table .spec-heading .spec-span { font-size: 16px; }
    .spec-table tbody th { min-width: 140px; padding-left: 12px; white-space: normal; } /* keeps the sticky name column narrow on phones */
    .spec-table td { padding: 10px 8px; }
    .map-frame { height: 340px; margin-top: 50px; }
    .counter-value { font-size: 48px; }
    .client-logo { min-width: 160px; height: 88px; padding: 12px 20px; }
    .client-logo img { height: 56px; max-width: 140px; }
    .floating-actions { right: 14px; bottom: 16px; }
    .float-btn { width: 50px; height: 50px; }
    .float-label { display: none; }
    .modal-nav { top: auto; bottom: 18px; transform: none; }
}
