/* Pro Algorithm — enterprise site
   One theme (ink), one accent (redline). Logical properties throughout for RTL/LTR. */

:root {
  --ink: #0a0c0f;
  --ink-2: #101318;
  --ink-3: #171b21;
  --line: rgba(237, 238, 240, 0.09);
  --line-strong: rgba(237, 238, 240, 0.18);
  --text: #edeef0;
  --muted: #a1a7b0;
  --faint: #6f7680;
  --redline: #ff5b2e;
  --redline-soft: rgba(255, 91, 46, 0.14);

  --font: "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-3) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  caret-color: var(--redline);
}

html[lang="en"] body { font-family: "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, sans-serif; }

::selection { background: var(--redline); color: var(--ink); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
p a:not([class]) { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }

:focus-visible {
  outline: 2px solid var(--redline);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--redline);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.02em; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-block-end: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.header.is-scrolled { border-block-end-color: var(--line); }

.header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 22px; width: auto; }

.nav {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  transition: color 160ms var(--ease-out);
  padding-block: 6px;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.lang:hover { border-color: var(--text); }
.lang:active { transform: scale(0.97); }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 18px; transition: transform 200ms var(--ease-out); }
.btn:hover i { transform: translateX(-3px); }
html[dir="ltr"] .btn i { transform: scaleX(-1); }
html[dir="ltr"] .btn:hover i { transform: scaleX(-1) translateX(-3px); }

.btn--primary { background: var(--redline); color: var(--ink); }
.btn--primary:hover { background: #ff7650; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 44px; padding-inline: 20px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 7vh, 88px) clamp(56px, 9vh, 112px);
  overflow: hidden;
}
.hero::before {
  /* drafting grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
html[dir="ltr"] .hero::before {
  mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  min-height: min(600px, calc(100svh - 76px - 200px));
}

.hero h1 {
  font-size: clamp(2.3rem, 3.3vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero h1 .thin { font-weight: 300; color: var(--muted); display: block; white-space: nowrap; }

.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 40px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Clients ---------- */

.clients {
  border-block: 1px solid var(--line);
  padding-block: 36px;
}
.clients__row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.clients__label { color: var(--faint); font-size: 14px; flex-shrink: 0; max-width: 13ch; line-height: 1.4; }
.clients__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.clients__list li {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.clients__list li.en { font-family: "IBM Plex Sans", sans-serif; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 12vw, 160px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }

.h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.h2 .thin { font-weight: 300; color: var(--muted); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px 64px;
  align-items: end;
  margin-block-end: clamp(48px, 6vw, 80px);
}
.section__head p { color: var(--muted); margin: 0; max-width: 46ch; font-size: 18px; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-block-start: 1px solid var(--line);
}
.stat {
  padding-block: 40px 8px;
  padding-inline-end: 24px;
  border-inline-end: 1px solid var(--line);
  padding-inline-start: 24px;
}
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat__n {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.stat__n sup { font-size: 0.45em; color: var(--redline); vertical-align: 0.9em; margin-inline-start: 2px; }
.stat__l { color: var(--muted); margin-block-start: 16px; font-size: 16px; }

/* ---------- Divisions bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 200ms var(--ease-out);
}
a.tile:hover { border-color: var(--line-strong); }
.tile i.ph { font-size: 28px; color: var(--redline); margin-block-end: auto; }
.tile h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; line-height: 1.25; margin: 32px 0 10px; letter-spacing: -0.01em; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; max-width: 44ch; }

.tile--hero { grid-column: span 4; grid-row: span 2; padding: 0; }
.tile--hero .tile__img {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out);
}
.tile--hero:hover .tile__img { transform: scale(1.05); }
.tile--hero .tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 15, 0.96) 18%, rgba(10, 12, 15, 0.55) 55%, rgba(10, 12, 15, 0.2));
}
.tile--hero .tile__body { position: relative; margin-block-start: auto; padding: clamp(28px, 3vw, 44px); }
.tile--hero h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-block-start: 0; max-width: 20ch; }
.tile--hero p { color: #c3c8cf; font-size: 17px; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
.tile__tags span {
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(10, 12, 15, 0.6);
}

.tile--a { grid-column: span 2; }
.tile--b { grid-column: span 2; }
.tile--c { grid-column: span 3; }
.tile--d { grid-column: span 3; }

/* ---------- Construction (pinned) ---------- */

.pin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.pin__visual {
  position: sticky;
  top: 110px;
  align-self: start;
}

.caps { list-style: none; margin: 0; padding: 0; }
.cap {
  padding-block: clamp(40px, 7vh, 88px);
  border-block-start: 1px solid var(--line);
  opacity: 0.42;
  transition: opacity 300ms var(--ease-out);
}
.cap:last-child { border-block-end: 1px solid var(--line); }
.cap.is-active { opacity: 1; }
.cap h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; margin: 0 0 14px; line-height: 1.2; letter-spacing: -0.01em; }
.cap p { color: var(--muted); margin: 0; max-width: 48ch; }
.cap__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block-start: 22px; color: var(--faint); font-size: 14px; }
.cap__meta span::before { content: "+"; color: var(--redline); margin-inline-end: 8px; }

/* ---------- Products index ---------- */

.pindex { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.pindex li { border-block-end: 1px solid var(--line); }
.pindex a {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.9fr) 40px;
  gap: 24px;
  align-items: center;
  padding-block: 28px;
  position: relative;
  transition: color 160ms var(--ease-out);
}
.pindex a::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  background: var(--ink-2);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  z-index: -1;
}
.pindex a:hover::before { opacity: 1; }
.pindex__name { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 500; letter-spacing: -0.01em; }
.pindex__desc { color: var(--muted); font-size: 16px; }
.pindex__domain { color: var(--faint); font-family: var(--mono); font-size: 13px; direction: ltr; text-align: end; }
.pindex__arrow { font-size: 22px; color: var(--muted); justify-self: end; transition: transform 200ms var(--ease-out), color 160ms var(--ease-out); }
html[dir="ltr"] .pindex__arrow { transform: scaleX(-1); }
.pindex a:hover .pindex__arrow { color: var(--redline); transform: translateX(-4px); }
html[dir="ltr"] .pindex a:hover .pindex__arrow { transform: scaleX(-1) translateX(-4px); }
.pindex__group {
  font-size: 14px;
  color: var(--faint);
  padding-block: 28px 12px;
  border-block-end: 1px solid var(--line);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.step { padding-inline-end: 28px; }
.step__line {
  position: relative;
  height: 1px;
  background: var(--line-strong);
  margin-block-end: 32px;
}
.step__line::before,
.step__line::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 1px;
  height: 13px;
  background: var(--line-strong);
}
.step__line::before { inset-inline-start: 0; }
.step__line::after { inset-inline-end: 0; }
.step__line span {
  position: absolute;
  inset-inline-start: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--redline);
}
.step h3 { font-size: 1.35rem; font-weight: 500; margin: 0 0 10px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; max-width: 30ch; }

/* ---------- Press ---------- */

.press {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.press blockquote {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.press blockquote footer { color: var(--faint); font-size: 15px; margin-block-start: 20px; font-weight: 400; letter-spacing: 0; }
.press__outlets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.press__outlets li {
  border-block-end: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  height: 112px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__info { display: grid; gap: 28px; margin-block-start: 48px; }
.contact__info a { display: flex; align-items: center; gap: 14px; font-size: 18px; transition: color 160ms var(--ease-out); }
.contact__info a:hover { color: var(--redline); }
.contact__info i { font-size: 22px; color: var(--muted); }
.contact__info .ltr { direction: ltr; unicode-bidi: isolate; }

.form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 52px;
  transition: border-color 160ms var(--ease-out);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8a9099; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: rgba(237, 238, 240, 0.3); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--redline); }
.field input[aria-invalid="true"] { border-color: var(--redline); }
.field .err { color: #ff8a6b; font-size: 13px; min-height: 0; }
.field .err:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-block-start: 8px; }
.form__note { color: var(--faint); font-size: 13px; }
.form__status { font-size: 15px; color: var(--text); }
.form__status:empty { display: none; }

/* ---------- Footer ---------- */

.footer { border-block-start: 1px solid var(--line); padding-block: 64px 40px; color: var(--muted); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--text); font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color 160ms var(--ease-out); }
.footer a:hover { color: var(--text); }
.footer__brand p { max-width: 32ch; margin: 20px 0 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: 56px; padding-block-start: 24px; border-block-start: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Products page ---------- */

.phero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 6vw, 80px); border-block-end: 1px solid var(--line); }
.phero h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 16ch; text-wrap: balance; }
.phero h1 .thin { font-weight: 300; color: var(--muted); display: block; }
.phero p { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 52ch; margin: 0; }

.catalog {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(56px, 7vw, 96px);
}
.toc { position: sticky; top: 110px; align-self: start; }
.toc h2 { font-size: 13px; color: var(--faint); font-weight: 500; margin: 20px 0 8px; }
.toc h2:first-child { margin-block-start: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block;
  padding: 8px 14px;
  border-inline-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-inline-start-color: var(--redline); }

.group-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.group-title:not(:first-child) { margin-block-start: clamp(64px, 8vw, 112px); }
.group-lead { color: var(--faint); margin: 0 0 32px; max-width: 56ch; }

.product {
  border-block-start: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px);
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 24px clamp(32px, 4vw, 64px);
}
.product__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.product h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
.product__tag { color: var(--redline); font-size: 15px; margin: 10px 0 0; }
.product__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product__desc { color: #c3c8cf; font-size: 18px; margin: 0; max-width: 56ch; }
.product__desc + .product__desc { margin-block-start: 16px; color: var(--muted); font-size: 16px; }
.spec { margin: 0; border-block-start: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--faint); }
.spec dd { margin: 0; color: var(--text); }
.feats { grid-column: 1 / -1; list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.feats li { padding-block: 16px; border-block-start: 1px solid var(--line); display: flex; gap: 14px; color: var(--muted); font-size: 16px; }
.feats li i { color: var(--redline); font-size: 20px; flex-shrink: 0; margin-block-start: 3px; }
.feats strong { color: var(--text); font-weight: 500; display: block; }

.product--flag .product__desc:first-of-type { font-size: 20px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

/* Language crossfade */
.i18n-swap main,
.i18n-swap .header__bar,
.i18n-swap .footer { opacity: 0; filter: blur(2px); }
main, .header__bar, .footer { transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--hero { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: span 1; }
  .pindex a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 32px; }
  .pindex__domain { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-block-end: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav a { padding-block: 14px; font-size: 18px; border-block-end: 1px solid var(--line); }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .menu-btn { display: inline-flex; }
  .header__actions { margin-inline-start: auto; }
  .header__actions .btn { display: none; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
  .section__head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-end: 0; }
  .stat { padding-inline: 0 16px; border-inline-end: 0; border-block-end: 1px solid var(--line); padding-block: 28px; }
  .stat:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .stat:nth-child(even) { padding-inline-start: 20px; }
  .clients__row { flex-direction: column; align-items: flex-start; }
  .clients__label { max-width: none; }
  .clients__list { justify-content: flex-start; gap: 14px 28px; }

  .pin { grid-template-columns: 1fr; }
  .pin { gap: 0; }
  .pin__visual { top: 76px; z-index: 2; background: var(--ink); padding-block: 12px; }
  .cap { padding-block: 40px; }

  .pindex a { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; padding-block: 22px; }
  .pindex__desc { grid-column: 1; grid-row: 2; }
  .pindex__arrow { grid-row: 1 / span 2; grid-column: 2; }

  .process { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .press { grid-template-columns: 1fr; }
  .press__outlets li { height: 88px; font-size: 17px; }
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }

  .catalog { grid-template-columns: 1fr; }
  .toc { display: none; }
  .product { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile--hero, .tile--a, .tile--b, .tile--c, .tile--d { grid-column: auto; }
  .tile--hero { min-height: 520px; }
  .process { grid-template-columns: 1fr; }
  .press__outlets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .spec div { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 400ms linear; }
  .tile--hero .tile__img, .tile--hero:hover .tile__img { transform: none; }
  .btn:active, .lang:active { transform: none; }
}

/* =====================================================================
   Content pages (generated by tools/build.py)
   ===================================================================== */

.hp { position: absolute; inset-inline-start: -9999px; }
.muted { color: var(--faint); }
.nav__cta { display: none; }

.section__more { margin-block-start: 48px; display: flex; }

.h3 { font-size: 1.1rem; font-weight: 500; color: var(--redline); margin: 0 0 16px; }
p.big { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; font-weight: 300; margin: 0; max-width: 34ch; text-wrap: pretty; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }

/* crumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; margin-block-end: 28px; }
.crumbs a { color: var(--muted); transition: color 160ms var(--ease-out); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: 12px; }
html[dir="ltr"] .crumbs i { transform: scaleX(-1); }

/* logo wall: logos come with mixed backgrounds, so they sit on paper tiles */
.clients { padding-block: clamp(48px, 6vw, 80px); }
.clients .clients__label { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; color: var(--text); letter-spacing: -0.01em; margin: 0 0 32px; max-width: none; text-align: center; }
.logo-wall { display: grid; gap: 14px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 14px; }
.logo-row li[aria-hidden] { display: none; }
.logo-wall li {
  flex: 0 1 calc((100% - 70px) / 6);
  background: #fff; border-radius: 12px; height: 128px;
  display: grid; place-items: center; padding: 16px 22px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  transition: transform 250ms var(--ease-out);
}
.logo-wall img { max-height: 80px; max-width: 86%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.logo-wall li:hover { transform: translateY(-3px); }

/* press */
.press-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.press-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 200ms var(--ease-out);
}
.press-card:hover { border-color: var(--line-strong); }
.press-card__logo { background: #f4f4f2; border-radius: 8px; height: 56px; display: grid; place-items: center; padding: 8px 14px; margin-block-end: 22px; }
.press-card__logo img { max-height: 34px; width: auto; max-width: 100%; object-fit: contain; }
.press-card__title { font-size: 1.1rem; font-weight: 500; line-height: 1.35; margin-block-end: 10px; }
.press-card__body { color: var(--muted); font-size: 15px; line-height: 1.55; margin-block-end: 20px; }
.press-card__more { margin-block-start: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--redline); font-size: 14px; font-weight: 500; }
html[dir="ltr"] .press-card__more i { transform: scaleX(-1); }

/* podcast */
.pod-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.pod-list { display: grid; gap: 16px; align-content: start; }
.pod-list .ep { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: start; background: transparent; border: 0; border-radius: 0; }
.pod-list .ep__body { padding: 0; }
.pod-list .ep p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ep__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.pod-list .ep__media { border-radius: 10px; }
.ep__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 250ms var(--ease-out), transform 600ms var(--ease-out); }
.ep__media:hover img { opacity: 1; transform: scale(1.03); }
.ep__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--redline); color: var(--ink); display: grid; place-items: center; font-size: 22px; transition: transform 160ms var(--ease-out); }
.pod-list .ep__play { width: 38px; height: 38px; font-size: 16px; }
.ep__media:active .ep__play { transform: scale(0.95); }
.ep__kind { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: rgba(10, 12, 15, 0.8); color: var(--text); font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.pod-list .ep__kind { display: none; }
.ep__body { padding: 20px 22px 22px; }
.ep h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0 0 8px; }
.ep--big h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ep p { color: var(--muted); font-size: 15px; margin: 0 0 10px; line-height: 1.55; }
.ep__meta { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 40px; }
.ep-grid--feature { grid-template-columns: 1fr 1fr; margin-block-start: 0; }

/* blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card[hidden] { display: none; }
.post-card__link { display: flex; flex-direction: column; height: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 200ms var(--ease-out); }
.post-card__link:hover { border-color: var(--line-strong); }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.post-card__link:hover .post-card__img img { transform: scale(1.03); }
.post-card__meta { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 0; font-size: 13px; color: var(--faint); }
.post-card__meta span:first-child { color: var(--redline); }
.post-card__title { padding: 10px 22px 0; font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.post-card__excerpt { padding: 10px 22px 24px; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 32px; }
.chip { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; min-height: 44px; cursor: pointer; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-on { background: var(--text); color: var(--ink); border-color: var(--text); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__list { border-block-start: 1px solid var(--line); }
.faq__item { border-block-end: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-size: 1.15rem; font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--muted); font-size: 18px; transition: transform 200ms var(--ease-out); flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(45deg); color: var(--redline); }
.faq__item p { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }

/* expertise */
.svcs { display: grid; border-block-start: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; padding-block: 40px; border-block-end: 1px solid var(--line); align-items: start; }
.svc > i { font-size: 30px; color: var(--redline); }
.svc h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 500; margin: 0 0 12px; line-height: 1.2; }
.svc p { color: var(--muted); margin: 0; max-width: 52ch; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text); font-size: 15px; }
.svc li::before { content: "+"; color: var(--redline); margin-inline-end: 10px; }
.trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.trio > div { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.trio h3 { font-size: 1.3rem; font-weight: 500; margin: 0 0 10px; }
.trio p { color: var(--muted); margin: 0; font-size: 16px; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); background: var(--ink-2); }
.cta-band .h2 { max-width: 20ch; }

/* article */
.article__head { padding-block: clamp(48px, 7vw, 96px) 40px; }
.article__head h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 24ch; text-wrap: balance; }
.article__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--faint); font-size: 14px; }
.article__img { margin-block: 0; }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--ink-3); }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 96px); padding-block: clamp(40px, 6vw, 80px); }
.article__aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 24px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--ink-2); }
.aside-card h2 { font-size: 1.15rem; font-weight: 500; margin: 0 0 8px; }
.aside-card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; }

.prose { max-width: 70ch; font-size: 18px; line-height: 1.8; color: #d4d8dd; }
.prose--page { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.65rem; line-height: 1.25; font-weight: 500; color: var(--text); margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.25rem; font-weight: 500; color: var(--text); margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 1.5em 0 0.4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-block-end: 0.4em; }
.prose li::marker { color: var(--redline); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--redline); text-underline-offset: 0.22em; }
.prose a:hover { color: var(--redline); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--ink-3); border-radius: 5px; padding: 0.1em 0.4em; direction: ltr; unicode-bidi: isolate; }
.prose pre { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; overflow-x: auto; direction: ltr; text-align: left; margin: 0 0 1.4em; }
.prose pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; }
.prose blockquote { margin: 0 0 1.2em; padding-inline-start: 20px; border-inline-start: 1px solid var(--redline); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-block-end: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 500; background: var(--ink-2); }
.prose tr:last-child td { border-block-end: 0; }

.phero--404 { min-height: 60vh; display: flex; align-items: center; }
.err-code { font-family: var(--mono); color: var(--redline); margin: 0 0 12px; }

/* footer additions */
.footer__h { color: var(--text); font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.footer__h--gap { margin-block-start: 28px; }
.footer__social { display: flex; gap: 8px; margin-block-start: 24px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 19px; color: var(--muted); transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.footer__social a:hover { color: var(--text); border-color: var(--text); }
.footer__quick { margin-block-start: 48px; }
.footer__quick ul { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__quick a { display: inline-block; font-size: 13px; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.footer__quick a:hover { color: var(--text); border-color: var(--line-strong); }

/* floating buttons */
.fab { position: fixed; inset-block-end: 20px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; cursor: pointer; border: 1px solid var(--line-strong); transition: transform 160ms var(--ease-out); }
.fab:active { transform: scale(0.95); }
.fab--wa { inset-inline-start: 20px; background: #1f9d55; color: #fff; border-color: transparent; }
.fab--a11y { inset-inline-end: 20px; background: var(--ink-2); color: var(--text); }
.a11y {
  position: fixed; inset-block-end: 84px; inset-inline-end: 20px; z-index: 61; width: min(300px, calc(100vw - 40px));
  background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px;
  display: grid; gap: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transform-origin: bottom left; animation: pop 180ms var(--ease-out);
}
html[dir="ltr"] .a11y { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.a11y[hidden] { display: none; }
.a11y__head { display: flex; justify-content: space-between; align-items: center; margin-block-end: 6px; }
.a11y__close { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; width: 44px; height: 44px; }
.a11y__row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.a11y__steps { display: flex; gap: 6px; }
.a11y__steps button, .a11y__opt, .a11y__reset { font: inherit; background: var(--ink); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; min-height: 44px; padding: 8px 14px; cursor: pointer; font-size: 15px; text-align: start; }
.a11y__opt[aria-pressed="true"] { border-color: var(--redline); background: var(--redline-soft); }
.a11y__reset { color: var(--muted); }
.a11y__link { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; margin-block-start: 4px; }

/* accessibility modes */
html.a11y-contrast { --text: #ffffff; --muted: #e3e6ea; --faint: #c9cdd3; --line: rgba(255, 255, 255, 0.35); --line-strong: rgba(255, 255, 255, 0.6); --ink: #000; --ink-2: #000; --ink-3: #111; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 0.2em; text-decoration-color: var(--redline) !important; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: 0.01em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .reveal { opacity: 1; transform: none; }

@media (max-width: 1180px) and (min-width: 861px) {
  .header__actions .btn { display: none; }
  .nav { gap: 18px; font-size: 14px; }
}

@media (max-width: 1080px) {
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid, .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav__cta { display: block; color: var(--redline) !important; }
  .split, .faq, .pod-feature, .article__grid { grid-template-columns: 1fr; }
  .post-grid, .ep-grid, .ep-grid--feature { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 14px; padding-block: 32px; }
  .trio { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .prose { font-size: 17px; }
  /* mobile: each row is a marquee, the second runs the other way */
  .logo-wall { gap: 8px; overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .logo-row { width: max-content; justify-content: flex-start; gap: 0; animation: logo-marquee 32s linear infinite; }
  .logo-row--rev { animation-direction: reverse; }
  .logo-row li[aria-hidden] { display: grid; }
  .logo-wall li { flex: 0 0 156px; margin-inline-end: 10px; height: 88px; padding: 12px 14px; }
  .logo-wall img { max-height: 58px; }
  .logo-wall li:hover { transform: none; }
  .pod-list .ep { grid-template-columns: 128px minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .press-grid { grid-template-columns: 1fr; }
  .fab { width: 48px; height: 48px; font-size: 22px; inset-block-end: 16px; }
  .fab--wa { inset-inline-start: 16px; }
  .fab--a11y { inset-inline-end: 16px; }
}

/* ---------- Floor-plan model (assets/js/model.js) ---------- */

.model {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(237, 238, 240, 0.035), transparent 70%),
    var(--ink-2);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.model--hero { min-height: 360px; aspect-ratio: 5 / 4; }
.model[data-mode="bim"], .model[data-mode="gnn"] { cursor: grab; }
.model.is-dragging { cursor: grabbing; }
.model canvas, .model__labels { position: absolute; inset: 0 0 52px 0; width: 100%; height: calc(100% - 52px); }
.model canvas { opacity: 0; transition: opacity 600ms var(--ease-out); }
.model--ready canvas { opacity: 1; }
.model__labels { pointer-events: none; overflow: hidden; }
.model--fallback { background: center / cover no-repeat url("/assets/img/brand/hero-construction.webp"); }
.model--fallback canvas, .model--fallback .model__labels, .model--fallback .seg, .model--fallback .model__hint { display: none; }

.ml {
  position: absolute; left: 0; top: 0;
  white-space: nowrap; line-height: 1.2;
  font-size: 12px; color: var(--muted);
  will-change: transform, opacity;
  visibility: hidden;
}
.ml--dim { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--ink-2); padding: 0 5px; direction: ltr; }
.ml--axis { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text); }
.ml--room { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; padding: 2px 4px;
  text-shadow: 0 0 3px var(--ink-2), 0 0 3px var(--ink-2), 0 0 6px var(--ink-2), 0 0 6px var(--ink-2); }
.ml--room b { letter-spacing: 0.01em; }
.ml--room i { border-top: 1px solid rgba(237, 238, 240, 0.35); padding-top: 2px; min-width: 100%; }
.ml--room em { display: none; font-style: normal; font-size: 10.5px; line-height: 1; padding: 3px 7px; margin-top: 3px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.ml--room em.fail { border-color: var(--redline); color: var(--redline); }
.model[data-mode="reg"] .ml--room em { display: inline-block; }
.ml--room b { font-weight: 500; color: var(--text); font-size: 13px; }
.ml--room i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); direction: ltr; }
.ml--small b { font-size: 11px; color: var(--muted); }
.ml--small i { display: none; }
.ml--new b { color: var(--redline); }
.ml--flag { background: var(--redline); color: var(--ink); font-weight: 600; font-size: 12px; padding: 4px 9px; border-radius: 5px; }
.ml--reg { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); background: rgba(10, 12, 15, 0.85); }
.ml--fail { border-color: var(--redline); color: var(--redline); }

.model__tb {
  position: absolute; inset-inline: 0; bottom: 0; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); background: rgba(10, 12, 15, 0.92);
  padding-inline-end: 8px;
}
.model__tb dl { display: flex; margin: 0; height: 100%; flex: 1; min-width: 0; }
.model__tb dl div { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding-inline: 14px; border-inline-end: 1px solid var(--line); min-width: 0; }
.model__tb dl div.grow { flex: 1; }
.model__tb dt { color: var(--faint); font-size: 10.5px; }
.model__tb dd { margin: 0; color: var(--text); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.seg button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); background: none; border: 0; border-radius: 999px;
  min-height: 34px; min-width: 44px; padding: 0 12px; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.seg button span { font-weight: 400; opacity: 0.7; margin-inline-start: 3px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.model__hint {
  position: absolute; top: 12px; inset-inline-start: 14px; margin: 0;
  font-size: 12px; color: var(--faint); opacity: 0; transition: opacity 300ms var(--ease-out); pointer-events: none;
}
.model[data-mode="bim"] .model__hint { opacity: 1; }

.pin__visual .model { aspect-ratio: 1 / 1; }

@media (max-width: 860px) {
  .model--hero { min-height: 0; aspect-ratio: 1 / 1; }
  .pin__visual .model { aspect-ratio: auto; height: min(42vh, 360px); }
  .ml--room i, .ml--dim { display: none; }
  .model__tb dl div:first-child { display: none; }
}
@media (max-width: 520px) {
  .model__tb dl div:last-child { display: none; }
}

/* ---------- Leadership (typographic) and organization ---------- */

.leaders-t { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-block-end: 16px; }
.leader-t { padding: 28px 28px 28px 0; border-inline-end: 1px solid var(--line); padding-inline: 0 28px; }
.leader-t + .leader-t { padding-inline-start: 28px; }
.leader-t:last-child { border-inline-end: 0; }
.leader-t__role { font-size: 13px; color: var(--redline); margin-block-end: 8px; letter-spacing: 0.02em; }
.leader-t h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; margin: 0; letter-spacing: -0.015em; line-height: 1.15; }
.leader-t p { color: var(--muted); font-size: 16px; margin: 16px 0 0; max-width: 40ch; }
.leaders-t--big .leader-t { padding-block: 40px; }
.leaders-t--big h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.unit { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.unit > i { font-size: 26px; color: var(--redline); margin-block-end: 28px; }
.unit h3 { font-size: 1.25rem; font-weight: 500; margin: 0 0 10px; }
.unit p { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.6; }
.unit__tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.unit__tags li { font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; }

@media (max-width: 1080px) {
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .leaders-t { grid-template-columns: 1fr; }
  .leader-t, .leader-t + .leader-t { padding-inline: 0; padding-block: 22px; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .leader-t:last-child { border-block-end: 0; }
}
@media (max-width: 520px) {
  .units { grid-template-columns: 1fr; }
}

/* ---------- Leadership with portraits ---------- */

.leaders-t { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.leader-t { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; }
.leader-t__img { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; filter: grayscale(1) contrast(1.05); background: var(--ink-3); transition: filter 400ms var(--ease-out); }
.leader-t:hover .leader-t__img { filter: none; }
.leaders-t--big .leader-t { grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: 28px; }
.leaders-t--big .leader-t__img { width: 200px; height: 200px; border-radius: var(--radius); }
html.a11y-contrast .leader-t__img { filter: none; }

@media (max-width: 860px) {
  .leaders-t { grid-template-columns: 1fr; }
  .leader-t { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
  .leader-t__img { width: 88px; height: 88px; }
  .leaders-t--big .leader-t { grid-template-columns: 120px minmax(0, 1fr); }
  .leaders-t--big .leader-t__img { width: 120px; height: 120px; }
}

@keyframes logo-marquee { to { transform: translateX(-50%); } }
/* no motion: the rows stop and scroll by hand instead */
@media (prefers-reduced-motion: reduce) { .logo-row { animation: none; } .logo-wall { overflow-x: auto; } }
html.a11y-motion .logo-wall { overflow-x: auto; }

/* two-line flags: the deviation, then engineer vs drawn */
.ml--flag-2 { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 10px; line-height: 1.25; }
.ml--flag-2 b { font-weight: 700; font-size: 12.5px; }
.ml--flag-2 span { font-weight: 500; font-size: 11px; opacity: 0.85; direction: rtl; }
html[dir="ltr"] .ml--flag-2 span { direction: ltr; }

/* ---------- Product cubes (home) ---------- */

.pcubes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcube {
  display: flex; flex-direction: column; height: 100%; min-height: 210px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.pcube:hover { border-color: var(--line-strong); background: var(--ink-3); }
.pcube__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 28px; }
.pcube__top i { font-size: 30px; color: var(--redline); }
.pcube__group { font-size: 13px; color: var(--faint); }
.pcube__name { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 500; letter-spacing: -0.01em; margin-block-end: 8px; }
.pcube__desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.pcube__foot { margin-block-start: auto; padding-block-start: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcube__domain { color: var(--faint); font-family: var(--mono); font-size: 12px; direction: ltr; }
.pcube__arrow { font-size: 20px; color: var(--muted); transition: transform 200ms var(--ease-out), color 160ms var(--ease-out); }
html[dir="ltr"] .pcube__arrow { transform: scaleX(-1); }
.pcube:hover .pcube__arrow { color: var(--redline); transform: translateX(-4px); }
html[dir="ltr"] .pcube:hover .pcube__arrow { transform: scaleX(-1) translateX(-4px); }

/* ---------- Live demos (home teaser and gallery) ---------- */

.live-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px; border: 1px solid var(--redline-soft); background: var(--redline-soft); border-radius: 999px; font-size: 14px; color: var(--text); }
.live-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--redline); animation: live-pulse 1.8s var(--ease-out) infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 91, 46, 0); } }
.demo-card .post-card__img { position: relative; }
.demo-card__play {
  position: absolute; inset-block-end: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 12, 15, 0.82); color: var(--text); font-size: 13px; font-weight: 500;
  backdrop-filter: blur(6px); transition: background-color 200ms var(--ease-out);
}
.demo-card__play i { color: var(--redline); font-size: 16px; }
.demo-card .post-card__link:hover .demo-card__play { background: var(--redline); }
.demo-card .post-card__link:hover .demo-card__play i { color: var(--text); }

/* ---------- Press: the article about us ---------- */

.press-feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  margin-block-end: 16px; padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 91, 46, 0.35); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 91, 46, 0.16), transparent 55%), var(--ink-2);
  transition: border-color 200ms var(--ease-out);
}
.press-feature:hover { border-color: var(--redline); }
.press-feature__mark { position: absolute; inset-block-start: -40px; inset-inline-end: 24px; font-size: 220px; line-height: 1; color: rgba(255, 91, 46, 0.14); font-family: Georgia, serif; pointer-events: none; }
.press-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.press-feature__badge { background: var(--redline); color: #fff; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.press-feature__meta .ltr { font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.press-feature__title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; max-width: 32ch; text-wrap: balance; }
.press-feature__body { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 70ch; }
.press-feature .press-card__more { margin-block-start: 6px; }

/* ---------- Conferences carousel (home) ---------- */

.carousel__track {
  list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.conf-slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.conf {
  display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 300px; padding: 26px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 200ms var(--ease-out);
}
.conf:hover { border-color: var(--line-strong); }
.conf--past { background: transparent; }
.conf__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-block-end: 8px; }
.conf__date { display: flex; align-items: center; gap: 14px; }
.conf__date time { display: grid; }
.conf__day { font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.conf__month { font-size: 14px; color: var(--muted); margin-block-start: 4px; }
.conf__time { font-family: var(--mono); font-size: 13px; color: var(--faint); border-inline-start: 1px solid var(--line-strong); padding-inline-start: 14px; align-self: stretch; display: grid; align-items: center; }
.conf__icon { font-size: 30px; color: var(--redline); }
.conf--past .conf__icon, .event--past .conf__icon { color: var(--faint); }
.conf__status { align-self: flex-start; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--redline-soft); color: #ff8a66; }
.conf__status--past { background: var(--ink-3); color: var(--faint); }
.conf__audience { font-size: 14px; color: var(--muted); }
.conf__title { font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.conf__more { margin-block-start: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--redline); font-size: 14px; font-weight: 500; }
html[dir="ltr"] .conf__more i { transform: scaleX(-1); }
.carousel__nav { display: flex; align-items: center; gap: 10px; margin-block-start: 28px; }
.carousel__nav .btn { margin-inline-start: auto; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--line-strong);
  transition: border-color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.carousel__btn:hover { border-color: var(--text); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; border-color: var(--line-strong); }
html[dir="ltr"] .carousel__btn i { transform: scaleX(-1); }

/* ---------- Conferences page ---------- */

.events__h { margin-block-end: 40px; }
.events { display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.5vw, 40px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  scroll-margin-block-start: 100px;
}
.event--past { background: transparent; }
.event__when { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.event__when .conf__day { font-size: 64px; }
.event__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.event__audience { font-size: 14px; color: var(--muted); }
.event h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 14px 0 12px; }
.event__lead { color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.event__topics { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.event__topics li { position: relative; padding-inline-start: 22px; line-height: 1.55; }
.event__topics li::before { content: "+"; position: absolute; inset-inline-start: 0; color: var(--redline); }
.event__speakers { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.event__speakers li { display: grid; gap: 2px; }
.event__speakers strong { font-weight: 500; }
.event__speakers span { font-size: 14px; color: var(--faint); }
.event__facts { margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 15px; }
.event__facts div { display: flex; gap: 10px; }
.event__facts dt { color: var(--faint); }
.event__facts dd { margin: 0; }
.event__demos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 24px; font-size: 14px; color: var(--faint); }
.event__demos > span { margin-inline-end: 4px; }
.event__demos .chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; }
.contact__lead { color: var(--muted); font-size: 18px; margin: 20px 0 0; max-width: 40ch; }

@media (max-width: 1080px) {
  .pcubes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conf-slide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 860px) {
  .event { grid-template-columns: 1fr; }
  .event__when { flex-direction: row; align-items: center; }
  .event__when .conf__day { font-size: 48px; }
}
@media (max-width: 600px) {
  .pcubes { gap: 10px; }
  .pcube { min-height: 0; padding: 18px 16px; }
  .pcube__top { margin-block-end: 14px; }
  .pcube__top i { font-size: 24px; }
  .pcube__group, .pcube__foot { display: none; }
  .pcube__name { font-size: 1.05rem; }
  .pcube__desc { font-size: 13px; line-height: 1.45; }
  .conf-slide { flex-basis: 86%; }
  .carousel__nav .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .live-badge__dot { animation: none; }
  .carousel__track { scroll-behavior: auto; }
}
