/*
Theme Name: RoboArt
Theme URI: https://roboart.io
Author: RoboArt
Description: RoboArt corporate site. Artisans of Technology.
Version: 0.1.0
Text Domain: roboart
*/
/* fonts: saved on this site (no request to Google) */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('assets/fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('assets/fonts/nunito-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/nunito-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/nunito-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --card: #ffffff;
  --line: #e0dede;
  --text: #111111;
  --muted: #555555;
  --accent: #111111;      /* ink: primary buttons, numbers, links */
  --accent-2: #0693e3;    /* single cool highlight, used sparingly */
  --radius: 14px;
  --max: 1180px;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Nunito", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; gap: .6em; align-items: center; font: 600 .78rem/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.accent { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.5em; border-radius: 999px;
  font: 600 .95rem/1 var(--display); border: 1px solid var(--line); transition: .2s;
  cursor: pointer; background: transparent; color: var(--text);
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #333; border-color: #333; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .95rem; color: var(--muted); transition: .15s; }
.menu > li > a:hover, .menu > li:focus-within > a, .menu > li.current > a { color: var(--text); }
.has-sub > a::after { content: "▾"; margin-left: .4em; font-size: .7em; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 300px; padding: 10px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; }
.sub a:hover { background: var(--bg-2); }
.sub svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-2); }
.sub strong { display: block; font: 600 .93rem/1.3 var(--display); }
.sub small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; }
.nav-cta { margin-left: 10px; padding: .7em 1.2em; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: 0; background: url("assets/network.svg") right center / min(58%, 760px) auto no-repeat; opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 75%); mask-image: linear-gradient(90deg, transparent 35%, #000 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #111, #0693e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.2em; font-size: 1.25rem; }
.hero.small { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 80px); }
.hero.small h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6em; }
.crumbs a:hover { color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts div { font: 600 1.6rem/1 var(--display); }
.facts span { display: block; margin-top: 6px; font: 400 .85rem/1.3 var(--font); color: var(--muted); }

/* grids and cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .22s; position: relative;
}
a.card:hover { border-color: #bdbdbd; transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,.10); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(6,147,227,.09); color: var(--accent-2); margin-bottom: 20px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { margin: 0; font-size: .95rem; }
.card .more { display: inline-block; margin-top: 18px; font: 600 .88rem/1 var(--display); color: var(--accent); }
.card.prod .ico { background: #111; color: #fff; }
.num { font: 600 .85rem/1 var(--display); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; display: block; }

/* pillars */
.pillars { grid-template-columns: repeat(3, 1fr); }
.pillar h3 { font-size: 1.5rem; }
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; }
.pillar li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; }
.pipe { padding: 26px 22px; border: 1px solid var(--line); background: var(--card); position: relative; }
.pipe:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipe:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.pipe + .pipe { border-left: 0; }
.pipe + .pipe::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -5px;
  background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg-2);
}
.pipe h3 { font-size: 1.05rem; margin-bottom: .3em; }
.pipe p { font-size: .85rem; margin: 0; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--text); background: var(--card); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.split.flip { grid-template-columns: 1.3fr 1fr; }
.sticky { position: sticky; top: 110px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.checks li strong { color: var(--text); display: block; font: 600 1.02rem/1.3 var(--display); margin-bottom: 2px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: rgba(6,147,227,.12); border: 1px solid var(--accent-2); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 24px; width: 6px; height: 3px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

/* cta band */
.cta {
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(36px, 6vw, 72px);
  background: #ffffff;
}
.cta h2 { max-width: 18ch; }

/* locations / contact */
.loc h3 { display: flex; align-items: center; gap: .5em; }
.loc .flag { font: 600 .72rem/1 var(--display); padding: .4em .7em; border-radius: 6px; background: rgba(6,147,227,.10); color: var(--accent-2); letter-spacing: .08em; }
.loc p { margin-bottom: .4em; }
.loc a:hover { color: var(--text); }
form.contact { display: grid; gap: 14px; }
form.contact label { font: 600 .85rem/1 var(--display); color: var(--muted); display: grid; gap: 8px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 1rem var(--font);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; border: 1px solid var(--accent-2); color: var(--accent-2); background: rgba(6,147,227,.07); }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { --text: #fff; --muted: #a9a9a9; --line: #2c2c2c; padding: 72px 0 32px; background: #111; color: #fff; }
.site-footer .logo img { filter: invert(1); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .6em; font-size: .93rem; color: var(--muted); }
.foot a:hover { color: var(--text); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* responsive */
@media (max-width: 960px) {
  .g3, .pillars { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .sticky { position: static; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe, .pipe:first-child, .pipe:last-child { border-radius: 0; border: 1px solid var(--line); border-top: 0; }
  .pipe:first-child { border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
  .pipe:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .pipe + .pipe::before { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
    max-height: calc(100vh - 84px); overflow: auto; display: none;
  }
  .menu.open { display: flex; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 8px; min-width: 0; }
  .has-sub > a::after { display: none; }
  .sub small { display: none; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 600px) {
  .g2, .g3, .pillars, .row2, .foot { grid-template-columns: 1fr; }
  .facts { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.btn svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 760px) { .hero::before { opacity: .22; background-size: 120% auto; background-position: right top; } }
.hero.small::before { background-size: min(40%, 520px) auto; opacity: .55; }

@media (max-width: 600px) { .logo img { height: 42px; } .nav { height: 76px; } .menu { top: 76px; } }
.site-footer .logo img { height: 56px; }

/* company profile */
.profile { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; background: #111; color: #fff; border-radius: 20px; overflow: hidden; position: relative; }
.profile::before { content: ""; position: absolute; inset: 0; background: url("assets/network.svg") right center / 60% auto no-repeat; opacity: .12; filter: invert(1); pointer-events: none; }
.p-item { position: relative; padding: 34px 28px; border-left: 1px solid #2c2c2c; }
.p-item:first-child { border-left: 0; }
.p-k { display: block; font: 700 1.35rem/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 10px; }
.p-item:first-child .p-k, .p-item:nth-child(2) .p-k { font-size: 1.9rem; }
.p-v { display: block; font-size: .9rem; line-height: 1.5; color: #a9a9a9; }
@media (max-width: 960px) { .profile { grid-template-columns: 1fr 1fr; } .p-item:nth-child(3) { border-left: 0; } .p-item:nth-child(n+3) { border-top: 1px solid #2c2c2c; } }
@media (max-width: 600px) { .profile { grid-template-columns: 1fr; } .p-item { border-left: 0; border-top: 1px solid #2c2c2c; } .p-item:first-child { border-top: 0; } }
#company-profile { padding-top: clamp(24px, 4vw, 48px); }

/* clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.clients li { aspect-ratio: 3 / 2; position: relative; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.clients li:hover { border-color: #bdbdbd; transform: translateY(-2px); }
.clients img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; transition: .2s; }
.clients li:hover img { transform: scale(1.04); }
@media (max-width: 960px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .clients { grid-template-columns: repeat(3, 1fr); gap: 10px; } .clients img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); } }

/* ---------- motion ---------- */
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); }

/* nav underline slide */
.menu > li:not(.has-sub) > a:not(.btn) { position: relative; }
.menu > li:not(.has-sub) > a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu > li:not(.has-sub) > a:not(.btn):hover::after, .menu > li.current:not(.has-sub) > a:not(.btn)::after { transform: scaleX(1); }

/* buttons: arrow nudge + press */
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }
.card .more { transition: letter-spacing .2s, margin-left .2s; }
a.card:hover .more { margin-left: 6px; }
.card .ico { transition: transform .25s, background .25s, color .25s; }
a.card:hover .ico { transform: translateY(-3px) rotate(-4deg); background: var(--accent-2); color: #fff; }
a.card.prod:hover .ico { background: var(--accent-2); }


/* hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(1) { animation-delay: .05s; }
.hero .wrap > :nth-child(2) { animation-delay: .15s; }
.hero .wrap > :nth-child(3) { animation-delay: .27s; }
.hero .wrap > :nth-child(4) { animation-delay: .38s; }
.hero .wrap > :nth-child(5) { animation-delay: .5s; }
.hero .wrap > :nth-child(6) { animation-delay: .6s; }
.hero h1 em { background-size: 200% 100%; animation: sheen 6s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* animated network (home hero) */
.hero.home::before { display: none; }
.net { position: absolute; z-index: 0; right: 0; top: 50%; width: min(58%, 760px); pointer-events: none;
  transform: translateY(-50%); animation: drift 14s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 70%); mask-image: linear-gradient(90deg, transparent 18%, #000 70%); }
.net svg { width: 100%; height: auto; }
.net circle { transform-box: fill-box; transform-origin: center; animation: pulse 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.net line { stroke-dasharray: 3 7; animation: flow 18s linear infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
@keyframes flow { to { stroke-dashoffset: -200; } }
@keyframes drift { from { transform: translate(0, -50%); } to { transform: translate(-14px, calc(-50% + 12px)); } }
@media (max-width: 760px) { .net { opacity: .25; width: 120%; right: -30%; top: 30%; } }

/* pipeline dots pulse in sequence */
.pipe + .pipe::before { animation: dot 2.4s ease-in-out infinite; }
.pipe:nth-child(3)::before { animation-delay: .3s; } .pipe:nth-child(4)::before { animation-delay: .6s; } .pipe:nth-child(5)::before { animation-delay: .9s; }
@keyframes dot { 0%, 100% { box-shadow: 0 0 0 4px var(--bg-2); } 50% { box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 10px rgba(17,17,17,.12); } }

/* scroll reveal (only when JS is on) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js a.card[data-reveal].in:hover { transform: translateY(-3px); transition-delay: 0s; transition-duration: .22s; }
.js .clients li[data-reveal].in:hover { transform: translateY(-2px); transition-delay: 0s; transition-duration: .2s; }

@media (prefers-reduced-motion: reduce) {
  .hero .wrap > *, .net, .net circle, .net line, .pipe + .pipe::before, .hero h1 em { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* tech stack tabs + cards */
.tech-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tech-filter { display: inline-flex; align-items: center; gap: .6em; padding: .65em 1.15em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font: 600 .92rem/1 var(--display); cursor: pointer; transition: .2s; }
.tech-filter:hover { border-color: #bdbdbd; color: var(--text); }
.tech-filter.active { background: #111; border-color: #111; color: #fff; }
.tech-filter .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f0f0f1; color: #555; font-size: .75rem; transition: .2s; }
.tech-filter.active .count { background: rgba(255,255,255,.18); color: #fff; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-card { padding: 24px; }
.tech-card:hover { border-color: #bdbdbd; transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(6,147,227,.09); color: var(--accent-2); transition: .25s; }
.tc-ico svg { width: 22px; height: 22px; }
.tech-card:hover .tc-ico { background: var(--accent-2); color: #fff; transform: rotate(-4deg); }
.tc-badge { padding: .45em .8em; border-radius: 6px; background: #f1f1f2; color: #555; font: 700 .68rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.tech-card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.tech-card p { font-size: .93rem; }
.tech-card.is-hidden { display: none; }
.tech-card.pop { animation: pop .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } .tech-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; } .tech-filter { flex: none; } }
@media (prefers-reduced-motion: reduce) { .tech-card.pop { animation: none; } }

/* ---------- improved home hero ---------- */
.hero.home { padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
.hero.home::before { display: block; background: none; mask-image: none; -webkit-mask-image: none; opacity: 1;
  background-image: radial-gradient(circle at 1px 1px, #d9d9dc 1px, transparent 0); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000, transparent 75%); }
.hero.home::after { content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(6,147,227,.10), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero.home .wrap > * { animation: none; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; } .hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .27s; } .hero-copy > :nth-child(4) { animation-delay: .38s; } .hero-copy > :nth-child(5) { animation-delay: .5s; }
.hero.home h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
.hero.home .facts { margin-top: clamp(40px, 6vw, 72px); animation: rise .8s .65s cubic-bezier(.2,.7,.2,1) both; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: .55em; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 .88rem/1 var(--display); }
.chips svg { width: 16px; height: 16px; color: var(--accent-2); }

/* illustration */
.hv { position: relative; width: 100%; aspect-ratio: 520 / 460; animation: rise 1s .3s cubic-bezier(.2,.7,.2,1) both; }
.hv-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-lines path { fill: none; stroke: #c4c4c8; stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 14s linear infinite; }
.hv-lines circle { fill: var(--accent-2); }
.hv-chip { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 24px; background: #111; color: #fff; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(0,0,0,.25); z-index: 2; }
.hv-chip svg { width: 40px; height: 40px; }
.hv-chip .ring { position: absolute; inset: -14px; border-radius: 34px; border: 1.5px solid rgba(6,147,227,.5); animation: ring 3s ease-out infinite; }
.hv-chip .ring.r2 { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

.hv-card { position: absolute; z-index: 3; width: 31%; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.09); animation: bob 6s ease-in-out infinite alternate; }
.c-device { left: 0; top: 6%; }
.c-app { right: 0; top: 4%; width: 33%; animation-delay: -2s; }
.c-dash { left: 2%; bottom: 4%; width: 34%; animation-delay: -4s; }
.c-auto { right: 1%; bottom: 6%; width: 35%; animation-delay: -1s; }
@keyframes bob { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.hv-t { font: 700 .72rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.hv-t .dot { width: 8px; height: 8px; border-radius: 50%; background: #1fb870; box-shadow: 0 0 0 0 rgba(31,184,112,.5); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(31,184,112,0); } 100% { box-shadow: 0 0 0 0 rgba(31,184,112,0); } }
.hv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--text); margin-bottom: 8px; }
.tog { width: 34px; height: 20px; border-radius: 99px; background: #111; position: relative; animation: togbg 5s infinite; }
.tog i { position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: togdot 5s infinite; }
@keyframes togbg { 0%, 45% { background: #111; } 50%, 95% { background: #cfcfd3; } 100% { background: #111; } }
@keyframes togdot { 0%, 45% { left: 17px; } 50%, 95% { left: 3px; } 100% { left: 17px; } }
.hv-big { font: 700 1.9rem/1 var(--display); }
.hv-big small { font-size: .95rem; color: var(--muted); margin-left: 2px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 30px; }
.bars b { width: 7px; border-radius: 2px; background: var(--accent-2); animation: sig 2.4s ease-in-out infinite; }
.bars b:nth-child(1) { height: 30%; } .bars b:nth-child(2) { height: 55%; animation-delay: .2s; } .bars b:nth-child(3) { height: 80%; animation-delay: .4s; } .bars b:nth-child(4) { height: 100%; animation-delay: .6s; }
@keyframes sig { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.chart b { flex: 1; border-radius: 3px 3px 0 0; background: #111; transform-origin: bottom; animation: grow 3.6s ease-in-out infinite alternate; }
.chart b:nth-child(1) { height: 40%; } .chart b:nth-child(2) { height: 65%; animation-delay: .3s; } .chart b:nth-child(3) { height: 50%; animation-delay: .6s; background: var(--accent-2); }
.chart b:nth-child(4) { height: 85%; animation-delay: .9s; } .chart b:nth-child(5) { height: 60%; animation-delay: 1.2s; } .chart b:nth-child(6) { height: 95%; animation-delay: 1.5s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.tick { width: 14px; height: 14px; border-radius: 50%; background: rgba(6,147,227,.14); border: 1px solid var(--accent-2); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 2.5px; border-left: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2); transform: rotate(-45deg); }
.c-auto .hv-row { justify-content: flex-start; font-size: .76rem; }

@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hv { max-width: 520px; margin: 24px auto 0; } }
@media (max-width: 520px) { .hv-card { padding: 10px 11px; } .hv-row { font-size: .7rem; } .hv-big { font-size: 1.4rem; } .hv-t { font-size: .6rem; } .hv-chip { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 18px; } .hv-chip svg { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .hv, .hv-card, .hv-chip .ring, .hv-lines path, .tog, .tog i, .bars b, .chart b, .hero-copy > *, .hero.home .facts, .hv-t .dot { animation: none !important; } .hv-lines circle { display: none; } }

/* hero cards: real offering text */
.hv-card { width: 38%; }
.c-device { left: 0; top: 4%; width: 37%; }
.c-app { right: 0; top: 8%; width: 38%; }
.c-dash { left: 1%; bottom: 3%; width: 37%; }
.c-auto { right: 0; bottom: 5%; width: 38%; }
.hv-h { display: flex; align-items: center; gap: 9px; font: 700 .95rem/1.2 var(--display); margin-bottom: 6px; }
.hv-i { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(6,147,227,.1); color: var(--accent-2); }
.hv-i svg { width: 16px; height: 16px; }
.hv-card p { font-size: .78rem; line-height: 1.4; margin: 0 0 12px; }
.c-auto .hv-row { font-size: .8rem; margin: 8px 0 0; }
.c-app .hv-row { justify-content: flex-start; margin: 0; }
@media (max-width: 520px) { .hv-h { font-size: .76rem; gap: 6px; } .hv-i { width: 22px; height: 22px; } .hv-i svg { width: 12px; height: 12px; } .hv-card p { font-size: .62rem; margin-bottom: 8px; } .c-auto .hv-row { font-size: .64rem; } }

/* ---------- enquiry card straddling content and footer ---------- */
.lead-wrap { background: #fff; padding-top: clamp(56px, 8vw, 100px); position: relative; z-index: 2; }
.lead-split { background: linear-gradient(#fff 0 52%, #111 52%); }
.lead-narrow { max-width: 1000px; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 4.5vw, 52px); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.lead-head { text-align: center; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.lead-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .3em; }
.lead-head p { margin: 0; }
.lead-form { display: grid; gap: 14px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form select, .lead-form textarea {
  width: 100%; padding: 16px 22px; border: 1px solid transparent; border-radius: 999px; background: #f3f3f4; color: var(--text); font: 400 .98rem var(--font); appearance: none; -webkit-appearance: none; }
.lead-form select { background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 24px) 52%, calc(100% - 18px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.lead-form textarea { border-radius: 22px; resize: vertical; min-height: 110px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid #111; outline-offset: 1px; background: #fff; border-color: #d4d4d8; }
.lead-form ::placeholder { color: #8a8a90; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 20px; border: 1.5px dashed #c9c9cf; border-radius: 22px; background: #f8f8f9; text-align: center; cursor: pointer; transition: .2s; }
.drop:hover, .drop.has-file { border-color: #111; background: #fff; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; }
.drop-ico svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.drop-t { font-size: .92rem; color: var(--muted); } .drop-t strong { color: var(--text); }
.drop-f { font-size: .8rem; color: #8a8a90; word-break: break-all; }
.drop.has-file .drop-f { color: var(--text); font-weight: 600; }
.lf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.consent { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: #111; }
.lead-card .notice { margin-bottom: 18px; background: #fff; border-color: #111; color: #111; }
.lead-card .notice.bad { border-color: #111; background: #f3f3f4; }
.site-footer { padding-top: 56px; }
.site-footer.no-lead { padding-top: 72px; }
@media (max-width: 700px) { .lf-row { grid-template-columns: 1fr; } .lf-foot { flex-direction: column; align-items: stretch; } .lf-foot .btn { justify-content: center; } }
.site-footer .logo img { mix-blend-mode: screen; }

/* no rubber-band overscroll: stops white showing under the dark footer */
html { overscroll-behavior-y: none; background: #fff; }

/* team: endless sliding photo strip */
.team { overflow: hidden; }
.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); }
.marquee .track { display: flex; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0 9px; }
.marquee li { flex: none; width: 280px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #eee; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.marquee li:nth-child(even) { margin-top: 28px; }
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.marquee li:hover img { transform: scale(1.05); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee li { width: 210px; } .marquee ul { gap: 12px; } .marquee .track { animation-duration: 35s; } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none !important; width: auto; overflow-x: auto; } .marquee ul[aria-hidden] { display: none; } .marquee { overflow-x: auto; } }

/* ---------- inner-page hero: white, still ---------- */
.hero.page { background: #fff; padding: clamp(32px, 4.5vw, 56px) 0 clamp(44px, 5.5vw, 76px); border-bottom: 1px solid var(--line); }
.hero.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: auto; inset-inline-end: max(20px, calc((100% - 1180px) / 2)); width: min(40%, 540px);
  background: var(--art) right center / contain no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero.page::after { display: none; }
.hero.page .wrap > * { animation: none; }
.hero.page .crumbs { margin-bottom: clamp(26px, 4vw, 44px); }
.hero.page h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.pg-grid { display: block; }
.pg-copy { max-width: 820px; }
.pg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; position: relative; }
.pg-chips a, .pg-chips span { display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font: 600 .88rem/1 var(--display); transition: .2s; }
.pg-chips a:hover { background: #111; color: #fff; border-color: #111; }
.pg-chips svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; }
.pg-chips a:hover svg { color: #fff; }
@media (max-width: 760px) { .hero.page::before { opacity: .3; background-size: 90% auto; background-position: right top; } }

/* ---- 3D trial (hardware page only) ---- */
.hero-3d { position: absolute; z-index: 1; top: 0; bottom: 0; right: max(0px, calc((100% - 1180px) / 2 - 40px)); width: min(52%, 700px); pointer-events: none; }
.hero-3d canvas { display: block; }
.hero.page.has-3d.ok-3d::before { display: none; }
.hero.page .wrap { position: relative; z-index: 2; }
@media (max-width: 900px) { .hero-3d { opacity: .35; width: 80%; } }

.hero.page.has-3d .pg-copy { max-width: 620px; }

/* still 3D logo tiles ("Tools we use") */
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.tools li { width: 124px; text-align: center; }
.tools img { display: block; width: 110px; height: 110px; margin: 0 auto 8px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(15, 30, 50, .16)); }
.tools li > span { display: block; font: 600 .88rem/1.3 var(--display); color: var(--text); }
/* still 3D hero picture (smart home, solar, battery) */
.hero-img { position: absolute; z-index: 1; right: max(20px, calc((100% - 1180px) / 2)); top: 50%; transform: translateY(-50%); width: auto; height: auto; max-width: min(33%, 440px); max-height: 74%; pointer-events: none; filter: drop-shadow(0 26px 24px rgba(15, 30, 50, .18)); }
.hero.page:has(.hero-img)::before { display: none; }
@media (max-width: 900px) { .hero-img { display: none; } }

/* still 3D picture on product cards */
.card .pimg { height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: -4px 0 14px; }
.card .pimg img { max-width: 80%; max-height: 160px; width: auto; height: auto; flex: none; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(15, 30, 50, .18)); transition: transform .3s; }
a.card:hover .pimg img { transform: translateY(-4px) scale(1.03); }

/* Smart Gate Unlock feature block */
.sgu .sgu-logo { display: block; max-width: 260px; height: auto; margin: 6px 0 12px; }
.sgu-intro { max-width: 760px; margin: 0 0 8px; color: var(--muted, #555); }
.sgu-h { margin: 34px 0 16px; font: 700 1.05rem/1.2 var(--display); }
.sgu-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.sgu-feats li { background: #fff; border: 1px solid #e0dede; border-radius: 18px; padding: 20px 18px; }
.sgu-feats img { display: block; width: 72px; height: 72px; object-fit: contain; margin-bottom: 10px; }
.sgu-feats strong { display: block; font: 700 1rem/1.3 var(--display); margin-bottom: 4px; }
.sgu-feats span { font-size: .92rem; color: #555; }
.sgu-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sgu-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.sgu-items li { width: 130px; text-align: center; background: #fff; border: 1px solid #e0dede; border-radius: 16px; padding: 12px 8px 14px; }
.sgu-items img { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 auto 6px; }
.sgu-items span { font: 600 .84rem/1.3 var(--display); }
.sgu .btn-row { margin-top: 34px; }
@media (max-width: 800px) { .sgu-two { grid-template-columns: 1fr; } }

/* spotlight stats row + wider item cards for photos */
.sgu .sgu-logo { height: auto; max-height: 90px; width: auto; }
.sgu-stats { list-style: none; margin: 28px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.sgu-stats li { background: #111; color: #fff; border-radius: 18px; padding: 20px 18px; }
.sgu-stats b { display: block; font: 800 1.7rem/1.1 var(--display); margin-bottom: 6px; }
.sgu-stats span { font-size: .86rem; color: rgba(255,255,255,.75); line-height: 1.4; display: block; }
.sgu-two { grid-template-columns: 1fr; }
.sgu-items li { width: 170px; }
.sgu-items img { width: 100%; height: 130px; object-fit: contain; }
.sgu .tags { margin: 0; }

/* home hero: still 3D picture */
.hv-img { display: grid; place-items: center; animation: rise 1s .3s cubic-bezier(.2,.7,.2,1) both; }
.hv-img img { width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 30px 30px rgba(15, 30, 50, .2)); }

.hv-img img { max-width: 600px; }

@media (min-width: 901px) { .hero.home .hero-3d { top: -70px; bottom: 70px; } }

/* 3D heroes: no flash of the flat stand-in picture; it only appears if 3D can't run */
.hero.page.has-3d::before { opacity: 0; }
.hero.page.has-3d.no-3d::before { opacity: 1; }
@media (max-width: 760px) { .hero.page.has-3d.no-3d::before { opacity: .3; } }
.hero-3d canvas { animation: fade3d .8s ease both; }
@keyframes fade3d { from { opacity: 0; } to { opacity: 1; } }

/* MoboKey block: feature columns, models, large image cards */
.sgu-secs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
.sgu-list { list-style: none; margin: 0; padding: 0; }
.sgu-list li { padding: 12px 0; border-top: 1px solid #e0dede; }
.sgu-list strong { display: block; font: 700 .98rem/1.3 var(--display); }
.sgu-list span { font-size: .9rem; color: #555; }
.sgu-models { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.sgu-models > li { background: #fff; border: 1px solid #e0dede; border-radius: 18px; padding: 22px 20px; }
.sgu-models strong { display: block; font: 700 1.05rem/1.3 var(--display); }
.sgu-models b { display: inline-block; margin-top: 8px; font: 800 1.8rem/1 var(--display); }
.sgu-models em { font-style: normal; font-size: .82rem; color: #777; margin-left: 6px; }
.sgu-models ul { list-style: none; margin: 14px 0 0; padding: 0; }
.sgu-models ul li { padding: 5px 0 5px 22px; font-size: .92rem; position: relative; }
.sgu-models ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 7px; border-left: 2px solid var(--accent-2, #0693e3); border-bottom: 2px solid var(--accent-2, #0693e3); transform: rotate(-45deg) translateY(-4px); }
.sgu-items.big li { width: 230px; }
.sgu-items.big img { height: 330px; }
@media (max-width: 900px) { .sgu-secs { grid-template-columns: 1fr; } }
.sgu-items.big li:only-child { width: 360px; }
.sgu-items.big li:only-child img { height: 240px; }

/* two real photos side by side on a product card */
.card .pimg.multi { gap: 6px; }
.card .pimg.multi img { max-width: 48%; max-height: 165px; mix-blend-mode: multiply; filter: none; }

.card .pimg img.photo { mix-blend-mode: multiply; filter: none; }

.card .pimg img.cutout { filter: drop-shadow(0 14px 14px rgba(15, 30, 50, .18)); }

/* breathing room between a page hero and the content that follows it */
.section.after-hero { padding-top: clamp(36px, 5vw, 64px); }

/* company profile strip: three equal columns, matching headline sizes */
.profile { grid-template-columns: repeat(2, 1fr); }
.p-item .p-k { font-size: 1.9rem; }
@media (max-width: 960px) { .profile { grid-template-columns: 1fr; } .p-item { border-left: 0; border-top: 1px solid #2c2c2c; } .p-item:first-child { border-top: 0; } }

/* footer social icons */
.socials { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); color: #fff; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.socials a:hover { background: #fff; color: #111; border-color: #fff; transform: translateY(-2px); }

/* ======== motion pack: page transitions, headline words, scroll story, product explorer ======== */

/* page transitions (browsers that support View Transitions fade between pages) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@supports not (view-transition-name: x) { body { animation: pagein .4s ease both; } }
@keyframes pagein { from { opacity: 0; } }

/* headline words */
.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js .hero h1 .w > span { display: inline-block; animation: wordUp .8s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--wi, 0) * 80ms + .1s); }
@keyframes wordUp { from { transform: translateY(105%); } }

/* shared look for scenes that are not heroes */
.scene-host { position: relative; width: 100%; }
.scene-host canvas { display: block; animation: fade3d .8s ease both; }

/* scroll story: a tall section with a pinned stage */
.scrolly { position: relative; height: 320vh; border-top: 1px solid var(--line); background: #fff; }
.scrolly-stick { position: sticky; top: 84px; height: calc(100vh - 84px); display: flex; align-items: center; }
.scrolly-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.scrolly-copy h2 { margin: .15em 0 .5em; }
.scrolly .scene-host { height: min(72vh, 660px); }
.scrolly-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.scrolly-steps li { position: relative; padding: 14px 0 14px 22px; border-left: 2px solid #e4e4e6; opacity: .38; transition: opacity .35s, border-color .35s, transform .35s; }
.scrolly-steps li.is-done { opacity: .6; border-color: #bfe0f5; }
.scrolly-steps li.is-active { opacity: 1; border-color: var(--accent-2, #0693e3); transform: translateX(4px); }
.scrolly-steps b { display: block; font: 700 1.05rem/1.3 var(--display); }
.scrolly-steps span { display: block; font-size: .95rem; color: #555; margin-top: 2px; }
.scrolly-bar { height: 3px; background: #e9e9ea; border-radius: 3px; margin-top: 22px; overflow: hidden; }
.scrolly-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent-2, #0693e3); }
@media (max-width: 860px) {
  .scrolly { height: 280vh; }
  .scrolly-grid { grid-template-columns: 1fr; gap: 6px; }
  .scrolly .scene-host { order: -1; height: 36vh; }
  .scrolly-stick { align-items: flex-start; padding-top: 10px; }
  .scrolly-steps li { padding: 8px 0 8px 16px; } .scrolly-steps span { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scrolly { height: auto; } .scrolly-stick { position: static; height: auto; padding: 56px 0; } .scrolly-steps li { opacity: 1; }
  @view-transition { navigation: none; }
}

/* product explorer */
.explorer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: stretch; margin-top: 8px; }
.explore-host { height: clamp(340px, 52vh, 520px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 40%, #f5f8fb, #fff 70%); cursor: grab; overflow: hidden; user-select: none; -webkit-user-select: none; }
.explore-host.grabbing { cursor: grabbing; }
.explore-host .hs { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .25s; z-index: 2; }
.explore-host .hs.off { opacity: 0; pointer-events: none; }
.explore-host .hs i { position: absolute; inset: 7px; border-radius: 50%; background: #111; box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 4px 12px rgba(0,0,0,.3); }
.explore-host .hs i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(6,147,227,.6); animation: hspulse 2s ease-out infinite; }
.explore-host .hs.on i { background: var(--accent-2, #0693e3); }
@keyframes hspulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.explore-info { border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px; background: #fff; display: flex; flex-direction: column; }
.explore-info h3 { margin: 0 0 8px; font: 700 1.3rem/1.25 var(--display); }
.explore-info p { margin: 0 0 20px; color: #555; min-height: 4.5em; }
.ei-list { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ei-list button { font: 600 .84rem/1 var(--display); padding: .6em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: background .2s, color .2s; }
.ei-list button:hover, .ei-list button.on { background: #111; color: #fff; border-color: #111; }
@media (max-width: 860px) { .explorer-grid { grid-template-columns: 1fr; } }

/* four product cards in a row */
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.g4 { grid-template-columns: 1fr; } }

/* ======== phone and tablet polish ======== */
body { overflow-x: clip; }

/* "How we work": four steps in a row, then two, then one */
.grid.steps4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.steps4 { grid-template-columns: repeat(2, 1fr); } }


/* 3D heroes: on small screens the scene sits above the text instead of behind it */
@media (max-width: 900px) {
  .hero-3d { position: relative; top: auto; bottom: auto; right: auto; width: 100%; height: clamp(210px, 62vw, 340px); opacity: 1; margin: 0 auto; pointer-events: none; }
  .hero.home { padding-top: 8px; }
  .hero.page.has-3d { padding-top: 8px; }
  .hero.page.has-3d::before { display: none; }
  .hero.page.has-3d.no-3d::before { display: block; }
  .hero.home::before { opacity: .18; }
}
@media (max-width: 600px) {
  .hero .wrap > * { animation-duration: .6s; }
}

/* technology filter row: scrolls sideways inside itself, never widens the page */
.tech-filters { max-width: 100%; }
@media (max-width: 600px) { .tech-filters { margin-inline: 0; padding-inline: 0; -webkit-overflow-scrolling: touch; } }

/* service cards: two per row on phones, so there is less scrolling */
@media (max-width: 600px) {
  .grid.cards2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cards2 .card { padding: 16px 14px 18px; }
  .cards2 .card .ico { width: 36px; height: 36px; margin-bottom: 12px; }
  .cards2 .card .ico svg { width: 18px; height: 18px; }
  .cards2 .card h3 { font-size: 1rem; line-height: 1.25; margin-bottom: .35em; overflow-wrap: anywhere; hyphens: auto; }
  .cards2 .card p { font-size: .8rem; line-height: 1.45; }
  .cards2 .card .more { font-size: .78rem; margin-top: 12px; }
  .cards2 .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* tech stack cards: two per row on phones */
@media (max-width: 600px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tech-card { padding: 14px 14px 16px; }
  .tech-card .tc-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
  .tech-card .tc-ico { width: 34px; height: 34px; border-radius: 10px; }
  .tech-card .tc-ico svg { width: 18px; height: 18px; }
  .tech-card .tc-badge { padding: .4em .6em; font-size: .58rem; letter-spacing: .06em; text-align: left; }
  .tech-card h3 { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
  .tech-card p { font-size: .8rem; line-height: 1.45; }
}

/* "From silicon to the cloud": two boxes per row on phones */
@media (max-width: 600px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pipeline .pipe, .pipeline .pipe:first-child, .pipeline .pipe:last-child { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 18px; }
  .pipeline .pipe h3 { font-size: 1rem; }
  .pipeline .pipe p { font-size: .8rem; line-height: 1.45; }
  .pipeline .pipe:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* "A clear path from idea to launch": 2 x 2 on phones */
@media (max-width: 600px) {
  .grid.steps4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps4 .card { padding: 16px 14px 18px; }
  .steps4 .card .num { font-size: .8rem; }
  .steps4 .card h3 { font-size: 1.05rem; margin-bottom: .3em; }
  .steps4 .card p { font-size: .8rem; line-height: 1.45; }
}

/* "What you get": the feature list becomes small cards, two per row, on phones */
@media (max-width: 600px) {
  .checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .checks li { padding: 44px 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: .8rem; line-height: 1.45; }
  .checks li strong { font-size: .95rem; line-height: 1.25; margin-bottom: 4px; overflow-wrap: anywhere; }
  .checks li::before { left: 12px; top: 14px; }
  .checks li::after { left: 18px; top: 19px; }
  .checks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* featured product sections (AQI Purifier, Smart Gate Unlock, MoboKey): spec and feature cards two per row on phones */
@media (max-width: 600px) {
  .sgu-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
  .sgu-stats li { padding: 14px 14px 16px; border-radius: 14px; }
  .sgu-stats b { font-size: 1.3rem; margin-bottom: 4px; }
  .sgu-stats span { font-size: .75rem; }
  .sgu-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sgu-feats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sgu-feats li { padding: 14px 12px 16px; border-radius: 14px; }
  .sgu-feats img { width: 44px; height: 44px; margin-bottom: 8px; }
  .sgu-feats strong { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
  .sgu-feats span { font-size: .8rem; line-height: 1.45; }
  .sgu-feats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .sgu-feats li { line-height: 1.45; } .sgu-feats span { display: block; } .sgu-stats li { line-height: 1.35; } }

/* product photo cards (Available models, package, works with, app screens): two per row on phones */
@media (max-width: 600px) {
  .sgu-items { gap: 10px; }
  .sgu-items li, .sgu-items.big li { width: calc(50% - 5px); padding: 10px 8px 12px; border-radius: 14px; }
  .sgu-items img { height: 110px; }
  .sgu-items.big img { height: 230px; }
  .sgu-items span { font-size: .8rem; line-height: 1.3; }
  .sgu-items.big li:only-child { width: 100%; }
  .sgu-items.big li:only-child img { height: 180px; }
}

/* "Which solar system is right for you?" */
.cmp h3 { font-size: 1.3rem; margin: 0 0 .5em; }
.cmp h4 { margin: 1.1em 0 .25em; font: 700 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2, #0693e3); }
.cmp p { font-size: .95rem; margin: 0; }
.cmp-foot { margin: 26px 0 0; color: #555; }
.cmp-foot a { font-weight: 700; color: var(--text); white-space: nowrap; }
@media (max-width: 600px) { .compare .grid.g3 { grid-template-columns: 1fr; } }
.cmp-foot svg { width: 16px; height: 16px; vertical-align: -3px; }
.cmp-foot { max-width: none; }
.cmp-foot a { display: inline-flex; align-items: center; gap: .35em; }
.cmp-foot svg { display: inline-block; flex: none; vertical-align: middle; }

/* two white sections in a row: half the space between them, plus a thin divider */
.compare, .built { padding-bottom: clamp(28px, 4vw, 56px); }
.compare + .section:not(.alt), .built + .section:not(.alt) { padding-top: clamp(28px, 4vw, 56px); }
.compare + .section:not(.alt) > .wrap, .built + .section:not(.alt) > .wrap { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }

/* "Explore the rest": two cards per row on phones, the third spans the row */
@media (max-width: 600px) {
  .rest .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* MoboKey: Access and Security side by side on phones, Free car sharing below */
@media (max-width: 600px) {
  .sgu-secs { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sgu-secs > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sgu-secs .sgu-h { margin: 22px 0 8px; font-size: .98rem; }
  .sgu-list li { padding: 10px 0; }
  .sgu-list strong { font-size: .85rem; line-height: 1.25; overflow-wrap: anywhere; }
  .sgu-list span { font-size: .76rem; line-height: 1.4; display: block; }
}

/* MoboKey: groups stacked (Access, then Security, then Free car sharing), each with its items two per row */
@media (max-width: 600px) {
  .sgu-secs { grid-template-columns: 1fr; gap: 6px; }
  .sgu-secs > div:last-child:nth-child(odd) { grid-column: auto; }
  .sgu-secs .sgu-h { margin: 24px 0 12px; font-size: 1.05rem; }
  .sgu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sgu-list li { padding: 12px 12px 14px; border: 1px solid #e0dede; border-radius: 14px; background: #fff; }
  .sgu-list strong { font-size: .88rem; line-height: 1.25; margin-bottom: 4px; overflow-wrap: anywhere; }
  .sgu-list span { font-size: .76rem; line-height: 1.4; display: block; }
}

/* MoboKey models: two per row on phones, the third spans the row */
@media (max-width: 600px) {
  .sgu-models { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sgu-models > li { padding: 14px 12px 16px; border-radius: 14px; }
  .sgu-models strong { font-size: .92rem; line-height: 1.25; }
  .sgu-models b { font-size: 1.45rem; margin-top: 6px; display: block; }
  .sgu-models em { display: block; margin: 2px 0 0; font-size: .72rem; }
  .sgu-models ul { margin-top: 10px; }
  .sgu-models ul li { font-size: .78rem; padding: 4px 0 4px 18px; }
  .sgu-models > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}


/* reCAPTCHA: the floating badge is hidden and the notice above the button is shown instead (allowed by Google) */
.grecaptcha-badge { visibility: hidden; }
.rc-note { margin: 14px 0 0; font-size: .74rem; line-height: 1.5; color: #777; }
.rc-note a { color: inherit; text-decoration: underline; }

/* ordinary WordPress pages (for example app privacy policies) */
.entry { max-width: 820px; }
.entry h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.entry h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.entry p, .entry li { color: var(--muted); line-height: 1.7; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry a { color: var(--accent-2); text-decoration: underline; }
.entry img { max-width: 100%; height: auto; }

/* Safari cannot paint a gradient clipped to text across the split, animated headline words (they turn invisible), so those words get a solid blue instead */
.js .hero h1 em { background: none; -webkit-text-fill-color: #0b6fae; color: #0b6fae; animation: none; }

/* the accent phrase of the headline ("built with craft.") is one piece: it fades in after the words before it */
.js .hero h1 em.w-em { animation: emIn .8s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--wi, 0) * 80ms + .1s); }
@keyframes emIn { from { opacity: 0; } }



/* company profile strip (option A): two plain, large figures on the dark panel */
.profile .p-item { padding: 34px 44px; }
.profile .p-item .p-k { font-size: 2.5rem; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 10px; }
.profile .p-v { font-size: .98rem; line-height: 1.5; color: #a9a9a9; }
@media (max-width: 600px) { .profile .p-item { padding: 26px 24px; } .profile .p-item .p-k { font-size: 2.1rem; } }

/* the right-hand line of the profile strip runs the full width of its column */
.profile .p-item + .p-item .p-v { max-width: none; }

/* footer offices: one address per line */
.legal .offices { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.legal .offices b { color: #d6d6d6; font-weight: 600; }
@media (max-width: 960px) { .legal .offices { text-align: left; } }

/* full-width line between the home hero and the next section, like the other section dividers */
.hero.home { border-bottom: 1px solid var(--line); padding-bottom: clamp(50px, 7vw, 90px); }

/* ordinary pages (e.g. app privacy policies): keep the heading and the text close together */
.hero.small.entry-hero { padding-bottom: clamp(20px, 3vw, 32px); }
.entry-hero + .section.after-hero { padding-top: clamp(20px, 3vw, 36px); }
