/* Hexagon site: shared by the English and Persian pages (system.css gives the grid, type, nav, buttons) */
:root {
  --p-bg: #f9f8fc; --p-surface: #f0ecf9; --p-ink: #1f1633; --p-muted: #4e4466;
  --p-accent: #6d28d9; --p-accent-ink: #ffffff; --p-action: #5b21b6; --p-action-ink: #ffffff;
  --p-inv-bg: #1a1230; --p-inv-surface: #2d2247; --p-inv-ink: #f9f8fc; --p-inv-muted: #cbc3dd;
  --p-inv-accent: #c4b5fd; --p-inv-accent-ink: #1f1633; --p-inv-action: #f9f8fc; --p-inv-action-ink: #1f1633;
  --violet: #7c3aed; --violet-soft: #ede7fb;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
.nav__logo img { width: 28px; height: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* right to left: physical sides and glyphs the kit draws left to right */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .m-arrow, [dir="rtl"] .link::after, [dir="rtl"] .btn::after { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { [dir="rtl"] .btn:hover::after { transform: scaleX(-1) translateX(3px); } }

/* ---------- language switch: two flags in a pill, the thumb slides before the page changes ---------- */
.lang { --dir: 1; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 99px; background: var(--p-surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 500 14px/1 system-ui, sans-serif; isolation: isolate; }
[dir="rtl"] .lang { --dir: -1; }
.lang__opt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border-radius: 99px; color: var(--muted); transition: color .3s ease; }
.lang__opt svg { width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); transition: transform .35s var(--ease-out); }
.lang__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--p-bg); box-shadow: 0 1px 3px rgb(0 0 0 / .14), 0 4px 10px -4px rgb(40 20 80 / .25); transition: transform .38s var(--ease-out); }
.lang[data-cur="2"] .lang__thumb, .lang.is-going[data-cur="1"] .lang__thumb { transform: translateX(calc(var(--dir) * 100%)); }
.lang.is-going[data-cur="2"] .lang__thumb { transform: none; }
.lang:not(.is-going)[data-cur="1"] .lang__opt:first-of-type, .lang:not(.is-going)[data-cur="2"] .lang__opt:nth-of-type(2),
.lang.is-going[data-cur="1"] .lang__opt:nth-of-type(2), .lang.is-going[data-cur="2"] .lang__opt:first-of-type { color: var(--ink); }
.lang:hover .lang__opt svg { transform: scale(1.08); }
.lang:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 1023px) {
  .nav:not(.is-open) .nav__actions > .lang { display: inline-grid; }
  .nav.is-open .nav__actions > .lang { justify-self: center; }
  [dir="rtl"] .nav:not(.is-open) .nav__actions { margin-left: 0; margin-right: auto; }
}
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions > .btn--primary { display: none; }
  .nav:not(.is-open) .lang__opt { font-size: 0; gap: 0; padding: 8px 10px; }
}

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); box-shadow: 0 6px 18px -12px rgb(40 20 80 / .4); }
[dir="rtl"] .eyebrow { padding: 6px 8px 6px 14px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.ic-line { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sec-head { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: var(--s-8, 64px); }
.sec-head p { color: var(--muted); font-size: var(--t-lead, 19px); }
.t-label { color: var(--p-accent); }
.ground-inverse .t-label { color: #c4b5fd; }

/* scroll reveal: a soft rise with a little 3D tilt; only when scripts run and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: perspective(900px) translateY(28px) rotateX(10deg); transform-origin: 50% 100%; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hx-hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); overflow: clip; }
.hx-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(40% 50% at 72% 45%, rgb(124 58 237 / .16), transparent 70%), radial-gradient(30% 40% at 20% 10%, rgb(196 181 253 / .25), transparent 70%); pointer-events: none; z-index: -1; }
[dir="rtl"] .hx-hero::before { transform: scaleX(-1); }
.hx-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7, 48px); align-items: center; }
.hx-hero__text { display: grid; gap: var(--s-5); justify-items: start; }
.hx-hero h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; margin: 0; }
[dir="rtl"] .hx-hero h1 { line-height: 1.3; }
.hx-hero h1 em { font-style: normal; background: linear-gradient(100deg, #5b21b6, #8b5cf6 55%, #5b21b6); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hx-hero__lead { font-size: var(--t-lead, 19px); color: var(--muted); max-width: 46ch; margin: 0; }
.hx-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 15px; }
.hx-proof li { display: flex; align-items: center; gap: 6px; }
.hx-proof svg { width: 16px; height: 16px; color: var(--p-accent); fill: none; stroke: currentColor; stroke-width: 1.8; }

/* the 3D hexagon: a prism built from the logo, floating over a perspective grid; chips orbit at other depths */
.hx-stage { --u: 1; position: relative; height: calc(520px * var(--u)); perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; }
.hx-world { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s linear; }
.hx-floor { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; transform: translateY(calc(210px * var(--u))) rotateX(78deg) scale(var(--u)); background-image: linear-gradient(rgb(91 33 182 / .22) 1px, transparent 1px), linear-gradient(90deg, rgb(91 33 182 / .22) 1px, transparent 1px); background-size: 45px 45px; -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); animation: floor 8s linear infinite; }
@keyframes floor { to { background-position: 0 45px, 0 0; } }
.hx-shadow { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; transform: translateY(calc(212px * var(--u))) rotateX(90deg) scale(var(--u)); background: radial-gradient(closest-side, rgb(46 16 101 / .45), transparent); animation: shadow 6s ease-in-out infinite; }
@keyframes shadow { 50% { opacity: .55; transform: translateY(calc(212px * var(--u))) rotateX(90deg) scale(calc(var(--u) * .82)); } }
.hx-float { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(-10px) scale(var(--u)); } 50% { transform: translateY(14px) scale(var(--u)); } }
.hx { position: absolute; transform-style: preserve-3d; animation: sway 14s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotateY(-28deg) rotateX(12deg); } 50% { transform: rotateY(24deg) rotateX(-6deg); } }
.hx__face { position: absolute; left: -110px; top: -95.26px; width: 220px; height: 190.52px; backface-visibility: hidden; }
.hx__face svg { display: block; width: 100%; height: 100%; }
.hx__front { transform: translateZ(32px); filter: drop-shadow(0 0 24px rgb(124 58 237 / .35)); }
.hx__back { transform: rotateY(180deg) translateZ(32px); }
.hx__side { position: absolute; left: -55px; top: -32px; width: 110px; height: 64px; backface-visibility: hidden; background: linear-gradient(90deg, #2e1065, #4c1d95 50%, #2e1065); transform: rotateZ(calc(var(--k) * 60deg)) translateY(-95.26px) rotateX(90deg); filter: brightness(var(--b, 1)); }
.hx__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0 46%, rgb(196 181 253 / .55) 50%, transparent 54%); opacity: .6; }
.hx-chip { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgb(124 58 237 / .18); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 36px -18px rgb(40 20 80 / .45); font: 500 14px/1 var(--font-text); color: var(--ink); white-space: nowrap; transform: translate(-50%, -50%) translate3d(calc(var(--x) * var(--u) * var(--sx, 1)), calc(var(--y) * var(--u)), var(--z)); }
.hx-chip > span { display: inline-flex; animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); gap: 8px; align-items: center; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hx-chip svg { flex: none; width: 18px; height: 18px; color: var(--p-accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-chip img { width: 18px; height: 18px; }
.hx-orbit { position: absolute; left: 50%; top: 50%; width: calc(440px * var(--u)); height: calc(440px * var(--u)); margin: calc(-220px * var(--u)) 0 0 calc(-220px * var(--u)); border-radius: 50%; border: 1px dashed rgb(124 58 237 / .3); transform: rotateX(72deg); animation: spin 30s linear infinite; }
.hx-orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
@keyframes spin { to { transform: rotateX(72deg) rotateZ(360deg); } }

@media (max-width: 1023px) {
  .hx-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hx-stage { --u: .8; }
}
@media (max-width: 639px) {
  .hx-stage { --u: .6; margin-block: -24px -40px; }
  .hx-chip { font-size: 12px; padding: 7px 10px; }
  .hx-chip.is-far { display: none; }
}

/* ---------- services: cards that tilt toward the pointer, with a light that follows it ---------- */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); perspective: 1200px; }
.svc__card { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 20px 40px -32px rgb(40 20 80 / .45); transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease-out), box-shadow .3s ease; overflow: hidden; }
.svc__card.is-tilting { transition: transform .08s linear, box-shadow .3s ease; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 32px 56px -30px rgb(40 20 80 / .55); }
.svc__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(124 58 237 / .12), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.svc__card:hover::before { opacity: 1; }
.svc__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #f3effd, #e4dafb); color: var(--p-accent); transform: translateZ(30px); box-shadow: inset 0 0 0 1px rgb(124 58 237 / .12); }
.svc__card h3 { margin: var(--s-2) 0 0; font: 500 var(--t-card, 21px)/1.3 var(--font-text); transform: translateZ(20px); }
.svc__card p { margin: 0; color: var(--muted); transform: translateZ(12px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: #f5f2fc; color: var(--muted); }
@media (max-width: 1023px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc__card { padding: var(--s-5); } }

/* ---------- engineering: dark band, principles and the hub diagram ---------- */
.eng { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8, 64px); align-items: center; }
.principles { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.principles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.principles .pi { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgb(196 181 253 / .12); color: #c4b5fd; box-shadow: inset 0 0 0 1px rgb(196 181 253 / .2); }
.principles b { display: block; font-weight: 500; margin-bottom: 2px; }
.principles span { color: var(--p-inv-muted); }
.eng__visual { position: relative; border-radius: 24px; padding: var(--s-5); background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transform: perspective(1200px) rotateY(var(--vy, -8deg)) rotateX(4deg); transition: transform .6s var(--ease-out); }
[dir="rtl"] .eng__visual { --vy: 8deg; }
.eng__visual:hover { --vy: 0deg; }
[dir="rtl"] .eng__visual:hover { --vy: 0deg; }
[dir="rtl"] .dg { direction: ltr; transform: scaleX(-1); }
[dir="rtl"] .dg-node > * { transform: scaleX(-1); }
@media (max-width: 1023px) { .eng { grid-template-columns: minmax(0, 1fr); } .eng__visual { transform: none; } }

/* ---------- process: a line that fills with the scroll, steps that light up as it passes ---------- */
.proc { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); list-style: none; margin: 0; padding: 0; counter-reset: st; }
.proc::before, .proc::after { content: ""; position: absolute; top: 27px; inset-inline: 28px; height: 2px; border-radius: 2px; background: var(--line); }
.proc::after { background: linear-gradient(90deg, #8b5cf6, #5b21b6); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .proc::after { transform-origin: right; background: linear-gradient(-90deg, #8b5cf6, #5b21b6); }
.proc li { position: relative; z-index: 1; display: grid; gap: var(--s-3); counter-increment: st; }
.proc li::before { content: counter(st, decimal-leading-zero); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 1px solid var(--line); font: 500 16px/1 var(--font-mono); color: var(--muted); transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s var(--ease-out); }
[dir="rtl"] .proc li::before { content: counter(st, persian); font-family: var(--font-text); }
.proc li.is-lit::before { background: var(--p-action); color: #fff; border-color: transparent; transform: translateY(-3px) rotate(-4deg); box-shadow: 0 14px 28px -14px rgb(91 33 182 / .7); }
.proc b { display: block; font: 500 var(--t-card, 21px)/1.3 var(--font-text); }
.proc span { color: var(--muted); }
@media (max-width: 1023px) {
  .proc { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .proc li { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); }
  .proc li::before { grid-row: span 2; }
  .proc::before, .proc::after { top: 28px; bottom: 28px; inset-inline: 27px auto; width: 2px; height: auto; }
  .proc::after { transform: scaleY(var(--p, 0)); transform-origin: top; background: linear-gradient(#8b5cf6, #5b21b6); }
  [dir="rtl"] .proc::after { transform-origin: top; background: linear-gradient(#8b5cf6, #5b21b6); }
}

/* ---------- stack: a slow marquee of the tools we use ---------- */
.stack { margin-top: var(--s-8, 64px); display: grid; gap: var(--s-4); }
.stack__label { color: var(--muted); font-size: 15px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); direction: ltr; }
.marquee__row { display: flex; gap: var(--s-4); width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-4) / 2)); } }
.tool { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 500; white-space: nowrap; transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgb(40 20 80 / .5); }
.tool img { height: 26px; width: auto; }

/* ---------- product: Kafeban in short, with a stack of floating cards ---------- */
.prod { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7, 48px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: linear-gradient(135deg, #f3effd, #fff 60%); border: 1px solid var(--line); overflow: hidden; }
.prod__text { display: grid; gap: var(--s-4); justify-items: start; }
.prod__text p { color: var(--muted); margin: 0; max-width: 52ch; }
.prod__cards { position: relative; height: 300px; perspective: 1000px; }
.prod__card { position: absolute; width: 74%; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -24px rgb(40 20 80 / .45); display: grid; gap: 10px; font-size: 15px; transform: rotateY(-18deg) rotateX(8deg) translateZ(var(--z)) translateY(var(--sy, 0px)); transition: transform .6s var(--ease-out); }
[dir="rtl"] .prod__card { transform: rotateY(18deg) rotateX(8deg) translateZ(var(--z)) translateY(var(--sy, 0px)); }
.prod:hover .prod__card { --sy: calc(var(--n) * -10px); }
.prod__card small { color: var(--muted); }
.prod__card .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.prod__card .ok { color: #1f7a4d; font-weight: 500; }
.prod__card big { font: 500 24px/1.1 var(--font-display); }
@media (max-width: 1023px) { .prod { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .prod__cards { height: 260px; } .prod__card { width: 86%; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8, 64px); }
@media (max-width: 1023px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 80px); background: var(--p-inv-bg); color: var(--p-inv-ink); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-7, 48px); align-items: end; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 0%, rgb(124 58 237 / .55), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgb(91 33 182 / .4), transparent 70%); }
[dir="rtl"] .contact::before { transform: scaleX(-1); }
.contact h2 { margin: 0; color: #fff; }
.contact__main { display: grid; gap: var(--s-5); justify-items: start; }
.contact__main > p { margin: 0; color: var(--p-inv-muted); max-width: 52ch; font-size: var(--t-lead, 19px); }
.contact__mail { font: 500 clamp(22px, 3.6vw, 44px)/1.15 var(--font-display); letter-spacing: -0.02em; color: #fff; text-decoration: none; overflow-wrap: normal; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease-out); padding-bottom: 4px; }
.contact__mail:hover { background-size: 100% 2px; }
html .contact .btn.btn--primary { background: #fff; color: var(--p-ink); border-color: #fff; }
html .contact .btn.btn--secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
html .contact .btn.btn--secondary:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.contact__facts { display: grid; gap: var(--s-4); margin: 0; padding: var(--s-5); border-radius: 20px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.contact__facts div { display: grid; gap: 2px; }
.contact__facts dt { display: flex; align-items: center; gap: 8px; color: var(--p-inv-muted); font-size: 14px; }
.contact__facts dt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__facts dd { margin: 0; font-weight: 500; }
.contact__facts a { color: #fff; }
@media (max-width: 1023px) { .contact { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- footer ---------- */
.site-foot { padding-block: var(--s-8, 64px) var(--s-6); }
.site-foot__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.site-foot__brand { display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
.site-foot__brand p { margin: 0; color: var(--muted); max-width: 36ch; }
.site-foot h3 { font: 500 14px/1.4 var(--font-text); color: var(--muted); margin: 0 0 var(--s-3); letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-foot ul a { color: var(--ink); text-decoration: none; }
.site-foot ul a:hover { color: var(--p-action); text-decoration: underline; text-underline-offset: 4px; }
.site-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); color: var(--muted); font-size: 14px; }
@media (max-width: 639px) { .site-foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot__brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  .hx-floor, .hx-shadow, .hx-float, .hx, .hx-orbit, .hx-chip > span, .marquee__row, .eyebrow i, .hx-hero h1 em { animation: none !important; }
  .marquee { overflow-x: auto; }
  .lang__thumb, .lang__opt svg, .svc__card, .prod__card { transition: none; }
}

/* the diagram's pause control shows only on hover or keyboard focus */
.dg-pause { opacity: 0; transition: opacity .2s ease; }
.dg:hover .dg-pause, .dg-pause:focus-visible { opacity: 1; }
.section { padding-block: clamp(64px, 8vw, 120px); }
.prod__cards { height: 330px; }

/* sections take the height of their content: no forced full-screen blocks and no empty grounds */
html main > section.section, html main > section.hx-hero { height: auto !important; min-height: 0 !important; display: block !important; }
html main > section > .wrap { display: block !important; height: auto !important; min-height: 0 !important; }
#contact { padding-bottom: 0; }
@media (max-width: 639px) {
  .hx-hero { padding-top: 8px; }
  .hx-hero__grid { gap: 0; }
  .hx-stage { order: -1; height: 300px; margin: 0 0 8px; --sx: .72; }
}
@media (max-width: 639px) {
  .contact { padding: 32px 20px; border-radius: 24px; }
  .contact__mail { font-size: clamp(18px, 5.2vw, 22px); white-space: nowrap; }
}
