/* تخطيطاتك — landing page. Brand: #5A473A brown, #C7BDB1 sand, #DDD9D6 mist, #161412 charcoal; Tajawal only.
   Rules from the brand guide: no letter-spacing and no italics on Arabic; status colours only for status. */

:root {
  --brown: #5A473A;
  --sand: #C7BDB1;
  --mist: #DDD9D6;
  --charcoal: #161412;

  --bg: #FAF8F6;
  --surface: #FFFFFF;
  --surface-2: #F2EEEA;
  --text: #161412;
  --muted: #5E544C;
  --border: #DDD9D6;
  --primary: #5A473A;
  --primary-hover: #4A3A2F;
  --on-primary: #FFFFFF;
  --accent-soft: #EDE7E0;
  --focus: #5A473A;

  --ok: #2F6B3A; --ok-bg: #E4EFE6;
  --warn: #7A5000; --warn-bg: #F6EBD4;
  --soon: #5A473A; --soon-bg: #EDE7E0;

  --shadow-sm: 0 1px 2px rgb(22 20 18 / 0.06);
  --shadow-md: 0 8px 24px -8px rgb(22 20 18 / 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412; --surface: #1F1C19; --surface-2: #26221F; --text: #DDD9D6; --muted: #B3ABA3;
    --border: #3A3430; --primary: #C7BDB1; --primary-hover: #D8D0C6; --on-primary: #161412;
    --accent-soft: #2C2723; --focus: #C7BDB1;
    --ok: #8CC79A; --ok-bg: #1C2A1F; --warn: #E3BD6B; --warn-bg: #2E2616; --soon: #C7BDB1; --soon-bg: #2C2723;
    --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
/* dark: the drifting glow behind card grids stays faint */
:root[data-theme="dark"] { --glow-strength: 9%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glow-strength: 9%; } }
:root[data-theme="dark"] {
  --bg: #161412; --surface: #1F1C19; --surface-2: #26221F; --text: #DDD9D6; --muted: #B3ABA3;
  --border: #3A3430; --primary: #C7BDB1; --primary-hover: #D8D0C6; --on-primary: #161412;
  --accent-soft: #2C2723; --focus: #C7BDB1;
  --ok: #8CC79A; --ok-bg: #1C2A1F; --warn: #E3BD6B; --warn-bg: #2E2616; --soon: #C7BDB1; --soon-bg: #2C2723;
  --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); }

/* ---------- header ---------- */
.preview-bar {
  background: var(--warn-bg); color: var(--warn); text-align: center; padding: 8px 16px; font-weight: 700; font-size: .95rem;
}
.preview-bar a { color: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(22 20 18 / .45); }
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand__name { font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.brand__latin { font-size: .85rem; color: var(--muted); font-weight: 500; }
.brand__logo { height: 36px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--text); border: 1px solid var(--border);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.lang-switch:hover { background: var(--accent-soft); border-color: var(--primary); }

.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; }
.site-nav ul a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav .btn--nav-mobile { display: none; }

.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: block; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}
.menu-btn, .menu-icon--close { display: none; }

@media (max-width: 959px) {
  .menu-btn { display: inline-grid; }
  .btn--header { display: none; }
  .site-nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 39;
    background: var(--bg); padding: 16px; overflow-y: auto;
    border-top: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 14px 12px; font-size: 1.1rem; color: var(--text); }
  .site-nav .btn--nav-mobile { display: flex; width: 100%; margin-top: 16px; }
  .menu-btn[aria-expanded="true"] .menu-icon--open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-icon--close { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 40px 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--sand) 45%, transparent) 0%, transparent 70%),
    radial-gradient(40% 40% at 5% 30%, color-mix(in srgb, var(--mist) 60%, transparent) 0%, transparent 70%);
  opacity: .8;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-block: 72px 96px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--primary);
  background: var(--accent-soft); border: 1px solid var(--border); padding: 4px 14px; border-radius: 999px;
}
.hero__title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; line-height: 1.3; margin-top: 18px; }
.hero__lead { margin-top: 18px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__highlights { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-weight: 500; }
.hero__highlights li { display: inline-flex; align-items: center; gap: 8px; }
.hero__highlights .icon { color: var(--ok); }
.hero__media {
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgb(90 71 58 / 0.45); padding: 10px; overflow: hidden;
}
.hero__media img { width: 100%; border-radius: 12px; }
/* The default mock-up has its menu on the right (Arabic); mirror it on the English page so the menu sits on the left. */
[dir="ltr"] .hero__media img[src$="/hero-dashboard.svg"] { transform: scaleX(-1); }

/* ---------- sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 96px; } }
.section--tinted { background: var(--surface-2); }
.section--band { background: var(--primary); color: var(--on-primary); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
/* an accent line under section titles that draws in with the heading */
.section__title::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; border-radius: 3px;
  background: linear-gradient(to left, var(--primary), var(--sand));
  transform-origin: right; transition: transform .8s var(--ease) .2s;
}
[dir="ltr"] .section__title::after { transform-origin: left; background: linear-gradient(to right, var(--primary), var(--sand)); }
.section__head--center .section__title::after, .section__title--center::after { margin-inline: auto; transform-origin: center; }

/* sections that hold card grids: a faint dot grid and a slow drifting glow behind the cards */
.section:has(.cards) { position: relative; isolation: isolate; overflow: clip; }
.section:has(.cards)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--sand) 45%, transparent) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000, transparent 75%);
  opacity: .45;
}
.section:has(.cards)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; top: -160px; inset-inline-start: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sand) var(--glow-strength, 26%), transparent), transparent);
  animation: glow-drift 22s ease-in-out infinite alternate;
}
.section:has(.cards):nth-of-type(even)::after { inset-inline-start: auto; inset-inline-end: -180px; }
@keyframes glow-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 220px) scale(1.2); } }
.section__title--center { text-align: center; margin-bottom: 32px; }
.section__lead { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

/* status badges: text + dot, never colour alone */
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .8rem; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* "available now" breathes: a soft ring pulses out of the dot */
.badge--available .badge__dot { animation: dot-pulse 2.4s ease-out infinite; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.badge--available { color: var(--ok); background: var(--ok-bg); }
.badge--partial { color: var(--warn); background: var(--warn-bg); }
.badge--soon { color: var(--soon); background: var(--soon-bg); }
.badge--soon .badge__dot { background: transparent; border: 1.5px solid currentColor; }

/* cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
/* A card lights up where the cursor is: a soft glow inside, and the border brightening nearest the pointer
   (a radial gradient on the border box, positioned by site.js through --mx/--my). It also tilts a little
   toward the pointer (--rx/--ry) and carries a large outlined number that fills in on hover. */
.cards { counter-reset: card; }
.card {
  --mx: -400px; --my: -400px; --rx: 0deg; --ry: 0deg; --lift: 0px;
  counter-increment: card;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid transparent; border-radius: var(--radius); padding: 24px 24px 44px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    radial-gradient(240px circle at var(--mx) var(--my), var(--sand), var(--border) 62%) border-box;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--sand) 22%, transparent), transparent 65%);
  transition: opacity .3s var(--ease);
}
.card::after {
  content: counter(card, decimal-leading-zero);
  position: absolute; inset-block-end: -12px; inset-inline-end: 14px; z-index: -1; pointer-events: none;
  font-size: 4.25rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1.5px var(--border);
  transition: color .35s var(--ease), -webkit-text-stroke-color .35s var(--ease), transform .45s var(--ease);
}
.card:hover { --lift: -4px; box-shadow: 0 26px 50px -28px rgb(90 71 58 / 0.55); }
.card:hover::before { opacity: 1; }
.card:hover::after { color: color-mix(in srgb, var(--sand) 16%, transparent); -webkit-text-stroke-color: var(--sand); transform: translateY(-6px); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--accent-soft); color: var(--primary);
  transition: transform .45s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--primary); color: var(--on-primary); }
/* icons draw themselves: every shape has pathLength=1, so one dash covers it */
.card__icon svg > * { stroke-dasharray: 1; }
.card:hover .card__icon svg > * { animation: icon-draw .9s var(--ease); }
@keyframes icon-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.card__title { font-size: 1.2rem; }
.card__text { color: var(--muted); }

/* modules */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.modules { display: grid; gap: 20px; }
@media (min-width: 768px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.module-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.module-group__title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 14px; }
.module-group__title .card__icon { width: 40px; height: 40px; }
.module-list { display: grid; gap: 2px; }
.module { padding: 12px 0; border-top: 1px solid var(--border); }
.module:first-child { border-top: 0; }
.module__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.module__name { font-size: 1rem; font-weight: 700; }
.module__desc { color: var(--muted); font-size: .95rem; margin-top: 4px; line-height: 1.7; }

/* spotlight / ask bar */
.spotlight { background: var(--charcoal); color: #DDD9D6; --muted: #B3ABA3; --border: #3A3430; }
.spotlight .badge--soon { color: #C7BDB1; background: #2C2723; }
.spotlight .eyebrow { color: #C7BDB1; background: #2C2723; border-color: #3A3430; }
.spotlight__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .spotlight__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
@media (min-width: 960px) { .spotlight__grid--solo { grid-template-columns: minmax(0, 760px); } }

/* e-invoice mock-up (sample tax invoice) beside the e-invoicing spotlight */
.einv {
  background: #FBFAF8; color: #161412; border-radius: 18px; padding: 22px; max-width: 460px; margin-inline: auto; width: 100%;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .06);
  font-size: .88rem;
}
.einv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid #5A473A; }
.einv__title { font-weight: 800; font-size: 1.15rem; color: #5A473A; }
.einv__sample { font-size: .75rem; font-weight: 700; color: #5A473A; background: #EFEAE5; border-radius: 999px; padding: 2px 10px; }
.einv__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; }
.einv__meta dt, .einv__sums dt { color: #7A6E64; font-size: .76rem; }
.einv__meta dd { margin: 0; font-weight: 700; }
.einv__lines { border-block: 1px solid #E4DED8; padding-block: 6px; }
.einv__line { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.einv__line + .einv__line { border-top: 1px dashed #E4DED8; }
.einv__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-top: 12px; }
.einv__sums div { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; }
.einv__sums dd { margin: 0; font-weight: 700; white-space: nowrap; }
.einv__sums .einv__total { border-top: 2px solid #161412; margin-top: 4px; padding-top: 8px; }
.einv__total dt { color: #161412; font-weight: 800; font-size: .85rem; }
.einv__total dd { font-size: 1rem; font-weight: 800; color: #5A473A; }
.einv__qr { width: 88px; height: 88px; color: #161412; border-radius: 6px; }
.einv__steps { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #E4DED8; }
.einv__step { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.einv__check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2F7A4F; color: #FFFFFF; font-size: .72rem; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .einv.reveal .einv__line, .einv.reveal .einv__step, .einv.reveal .einv__qr { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .einv.is-visible .einv__line, .einv.is-visible .einv__step, .einv.is-visible .einv__qr { opacity: 1; transform: none; }
  .einv.is-visible .einv__line--1 { transition-delay: .25s; } .einv.is-visible .einv__line--2 { transition-delay: .4s; }
  .einv.is-visible .einv__line--3 { transition-delay: .55s; } .einv.is-visible .einv__qr { transition-delay: .8s; }
  .einv.is-visible .einv__step--1 { transition-delay: 1.05s; } .einv.is-visible .einv__step--2 { transition-delay: 1.3s; }
  .einv.is-visible .einv__step--3 { transition-delay: 1.55s; }
}
@media (max-width: 420px) { .einv { padding: 16px; } .einv__qr { width: 72px; height: 72px; } }
.spotlight__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.spotlight .section__title { color: #FFFFFF; }
.checklist { display: grid; gap: 10px; margin-top: 24px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: #8CC79A; margin-top: 5px; }
.askbar { background: #1F1C19; border: 1px solid #3A3430; border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7); }
.askbar__input {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: #26221F; border: 1px solid #3A3430; color: #B3ABA3;
}
.askbar__input span { flex: 1; }
.askbar__input kbd {
  font-family: inherit; font-size: .8rem; direction: ltr; padding: 2px 8px; border-radius: 6px;
  border: 1px solid #3A3430; color: #C7BDB1;
}
.askbar__list { display: grid; gap: 10px; margin-top: 12px; }
.ask { padding: 14px; border-radius: 12px; background: #26221F; }
.ask__q { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: #FFFFFF; }
.ask__q .icon { color: #C7BDB1; margin-top: 5px; }
.ask__a { margin-top: 6px; color: #B3ABA3; font-size: .95rem; padding-inline-start: 26px; }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: 1.1rem; }
.step__text { color: var(--muted); margin-top: 6px; }

/* stats */
.stats { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); align-items: start; margin: 0; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center; }
.stat__value { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat__label { opacity: .9; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq__q {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-inline-end: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); /* physical sides: a down chevron in any direction */
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(225deg); }
.faq__a { padding: 0 20px 20px; color: var(--muted); }
.faq__a p + p { margin-top: 10px; }

.prose p { margin-top: 14px; color: var(--muted); max-width: 70ch; }
.prose__h { margin: 36px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.prose__h + p { margin-top: 8px; }

/* cta + form */
.section--cta { background: var(--surface-2); }
.cta__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .cta__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } .cta__copy { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-list { display: grid; gap: 10px; margin-top: 24px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-height: 44px; }
.contact-list a:hover { color: var(--primary); }
.contact-list .icon { color: var(--primary); }

.lead-form { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .lead-form { padding: 32px; } }
.lead-form__title { font-size: 1.3rem; margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
.req { color: #A0331F; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg); font-size: 1rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A0331F; }
.field__error { color: #A0331F; font-size: .9rem; font-weight: 500; }
:root[data-theme="dark"] .field__error, :root[data-theme="dark"] .req { color: #F0A08F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__error, :root:not([data-theme="light"]) .req { color: #F0A08F; } }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 4px; accent-color: var(--primary); flex: none; }
.field--check label { flex: 1; font-weight: 500; }
.field--check .field__error { flex-basis: 100%; }
.field--hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.8em; margin-bottom: 10px; font-weight: 700; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: #A0331F; }
:root[data-theme="dark"] .form-status.is-error { color: #F0A08F; }

/* footer: part of the page, no border — a soft glow rising from the bottom instead of a dividing line.
   Laid out across the full width: logo + about, a strip of Saudi trust points, three link columns,
   then copyright / by-line / display controls spread along the bottom. */
.site-footer { position: relative; isolation: isolate; padding-block: 80px 28px; overflow: clip; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 115%, color-mix(in srgb, var(--sand) 26%, transparent), transparent 70%),
    linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface-2) 70%, transparent) 40%);
}
.site-footer__hero { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .site-footer__hero { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } }
.site-footer__brand { display: inline-block; margin: 0; }
.footer-logo { height: 120px; width: auto; }
.site-footer__desc { color: var(--muted); max-width: 58ch; line-height: 1.9; font-size: 1.05rem; }

.site-footer__trust { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: 0 10px 30px -24px rgb(22 20 18 / .6);
}
.trust__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--primary); }
.trust__body { display: grid; }
.trust__title { font-weight: 800; }
.trust__text { color: var(--muted); font-size: .88rem; }

/* e-invoicing statement (requested by ZATCA): a clear band on every page */
.site-footer__einv {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center;
  margin-top: 28px; padding: 18px 20px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
}
.site-footer__einv-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: var(--bg); }
.site-footer__einv-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.site-footer__einv-text { margin-top: 4px; color: var(--muted); font-size: .92rem; max-width: 90ch; }
.site-footer__einv-link {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--primary); text-decoration: none;
}
.site-footer__einv-link:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .site-footer__einv { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-footer__einv-link { grid-column: auto; }
}

.site-footer__grid { display: grid; gap: 32px; margin-top: 48px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.site-footer__heading { font-weight: 800; margin-bottom: 12px; }
.site-footer__col ul { display: grid; gap: 2px; }
.site-footer__col a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; min-height: 36px; color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
.site-footer__col a:hover, .site-footer__col a[aria-current="page"] { color: var(--text); }
.site-footer__col a[aria-current="page"] { font-weight: 700; }
.site-footer__col .icon { color: var(--primary); opacity: .85; }
.company-mark { font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; color: var(--text); direction: ltr; text-align: start; }
[dir="rtl"] .company-mark { text-align: end; }
.company-mark span { color: var(--primary); font-weight: 500; margin-inline-start: 6px; }
.site-footer__small { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.site-footer__ext { margin-top: 6px; }

.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 56px; color: var(--muted); font-size: .9rem; }
.site-footer__bottom a { color: inherit; }
.site-footer__bottom a:hover { color: var(--text); }
.site-footer__controls { display: flex; align-items: center; gap: 6px; }
.site-footer__made { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 22px; color: var(--muted); font-size: .92rem; text-align: center; }
.site-footer__made-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--primary); font-weight: 800; font-size: .85rem;
}
.site-footer__made-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: currentColor; }
@media (max-width: 699px) { .site-footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- page intro (every page except home) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: 56px 24px; }
@media (min-width: 960px) { .page-hero { padding-block: 80px 32px; } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--sand) 30%, transparent), transparent 70%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--primary); font-weight: 700; }
.page-hero__title { margin-top: 14px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; line-height: 1.3; max-width: 22ch; }
.page-hero__lead { margin-top: 14px; color: var(--muted); font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); max-width: 60ch; line-height: 1.8; }
[lang="en"] .page-hero__title { line-height: 1.15; }
.page-hero + .section { padding-top: 24px; }

/* ---------- closing call to action (every page except contact) ---------- */
.page-cta { padding-block: 32px 16px; }
.page-cta__box {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 24px; align-items: center;
  padding: 40px clamp(20px, 4vw, 48px); border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--charcoal)));
  color: var(--on-primary);
}
.page-cta__box::after {
  content: ""; position: absolute; z-index: -1; inset-inline-end: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .16), transparent);
}
@media (min-width: 900px) { .page-cta__box { grid-template-columns: 1fr auto; } }
.page-cta__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; }
.page-cta__text { margin-top: 8px; opacity: .85; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-cta .btn--primary { background: var(--on-primary); color: var(--primary); }
.page-cta .btn--primary:hover { background: color-mix(in srgb, var(--on-primary) 88%, var(--primary)); }
.page-cta .btn--ghost { color: var(--on-primary); border-color: color-mix(in srgb, var(--on-primary) 45%, transparent); }
.page-cta .btn--ghost:hover { background: color-mix(in srgb, var(--on-primary) 12%, transparent); }

/* current page in the header menu */
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 700; }


.error-page { padding-block: 120px; text-align: center; }
.error-page h1 { font-size: 2rem; margin-bottom: 24px; }

/* entrance motion — only when the user allows it */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  /* cards rise into focus one after another, then their icons draw in */
  .js .card.reveal:not(.is-settled) {
    transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease), box-shadow .3s var(--ease);
  }
  .js .card.reveal:not(.is-visible) { opacity: 0; filter: blur(6px); transform: perspective(900px) translateY(32px) scale(.96); }
  .js .card.reveal.is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); }
  .js .card.reveal .card__icon svg > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
  .js .card.reveal.is-visible .card__icon svg > * { stroke-dashoffset: 0; transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .reveal:not(.is-visible) .section__title::after { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- small screens: keep the header on one line ---------- */
@media (max-width: 520px) {
  .brand__latin { display: none; }
  .site-header__bar { gap: 8px; }
  .site-header__actions { gap: 2px; }
  .lang-switch { padding: 0 10px; font-size: .9rem; }
}
/* narrow phones (360 px and below): the Latin brand name is wider than the Arabic one */
@media (max-width: 400px) {
  .brand { gap: 6px; min-width: 0; }
  .brand__name { font-size: 1.2rem; }
  .lang-switch { padding: 0 8px; font-size: .85rem; }
}
@media (max-width: 340px) {
  .site-header__bar { gap: 4px; }
  .brand__name { font-size: 1.05rem; }
  .site-header__actions .icon-btn { width: 40px; }
}

/* ---------- English (LTR) typography: Latin needs less leading than Arabic ---------- */
:lang(en) body, body:lang(en) { line-height: 1.65; }
[lang="en"] .hero__title { line-height: 1.15; }
[lang="en"] .section__title { line-height: 1.25; }
[lang="en"] .card__title, [lang="en"] .module__name, [lang="en"] .step__title { line-height: 1.35; }

/* ---------- the interactive tower (hero, one screen) ----------
   Light theme: a warm beige day scene. Dark theme: a night scene. tower.js picks the matching canvas palette.
   Without JS (or canvas) it is the intro plus a grid of feature cards.
   With tower.js (.is-live): exactly one screen tall — intro on top, the tower in the middle, and the active
   floor's plate beside its floor. Nothing here scrolls or widens the page. */
.tower {
  position: relative; background: var(--tw-bg); color: var(--text); overflow: clip;
  --tw-bg: #F1EAE1; --tw-title: #161412; --tw-accent: #5A473A; --tw-chip: #E6DCD0; --tw-line: #D2C6B8;
  --tw-line-strong: #A8998A; --tw-strong: #161412; --tw-soft: #5E544C; --tw-hover-bg: rgb(90 71 58 / 0.07);
  --tw-plate: rgb(250 248 246 / 0.92); --tw-plate-border: rgb(90 71 58 / 0.28); --tw-plate-hover: rgb(90 71 58 / 0.55);
  --tw-plate-shadow: 0 0 0 1px rgb(90 71 58 / 0.05), 0 24px 48px -24px rgb(90 71 58 / 0.4);
  --tw-num-on-bg: #5A473A; --tw-num-on-fg: #FFFFFF; --tw-play-bg: rgb(250 248 246 / 0.7);
}
:root[data-theme="dark"] .tower {
  --tw-bg: #161412; --tw-title: #FFFFFF; --tw-accent: #C7BDB1; --tw-chip: #2C2723; --tw-line: #3A3430;
  --tw-line-strong: #5E544C; --tw-strong: #FFFFFF; --tw-soft: #B3ABA3; --tw-hover-bg: rgb(199 189 177 / 0.08);
  --tw-plate: rgb(22 20 18 / 0.9); --tw-plate-border: rgb(199 189 177 / 0.45); --tw-plate-hover: #C7BDB1;
  --tw-plate-shadow: 0 0 0 1px rgb(22 20 18 / 0.5), 0 0 48px -12px rgb(236 214 186 / 0.25), 0 24px 48px -24px rgb(0 0 0 / 0.9);
  --tw-num-on-bg: #C7BDB1; --tw-num-on-fg: #161412; --tw-play-bg: rgb(22 20 18 / 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tower {
    --tw-bg: #161412; --tw-title: #FFFFFF; --tw-accent: #C7BDB1; --tw-chip: #2C2723; --tw-line: #3A3430;
    --tw-line-strong: #5E544C; --tw-strong: #FFFFFF; --tw-soft: #B3ABA3; --tw-hover-bg: rgb(199 189 177 / 0.08);
    --tw-plate: rgb(22 20 18 / 0.9); --tw-plate-border: rgb(199 189 177 / 0.45); --tw-plate-hover: #C7BDB1;
    --tw-plate-shadow: 0 0 0 1px rgb(22 20 18 / 0.5), 0 0 48px -12px rgb(236 214 186 / 0.25), 0 24px 48px -24px rgb(0 0 0 / 0.9);
    --tw-num-on-bg: #C7BDB1; --tw-num-on-fg: #161412; --tw-play-bg: rgb(22 20 18 / 0.6);
  }
}
.tower .eyebrow { color: var(--tw-accent); background: var(--tw-chip); border-color: var(--tw-line); }
.tower .btn--ghost { color: var(--text); border-color: var(--tw-line-strong); }
.tower .btn--ghost:hover { border-color: var(--tw-accent); background: var(--tw-hover-bg); }
.tower__canvas, .elevator { display: none; }

.tower__intro { padding-top: 48px; text-align: center; }
.tower__title { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem); font-weight: 800; line-height: 1.3; margin-top: 14px; color: var(--tw-title); }
.tower__lead { margin: 12px auto 0; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); color: var(--muted); max-width: 60ch; line-height: 1.7; }
.tower__intro .hero__actions { justify-content: center; margin-top: 20px; }

/* floors as plain cards (no JS) */
.tower__floors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); width: 100%; max-width: 1200px; margin-inline: auto; padding: 40px 16px 56px; }
@media (min-width: 768px) { .tower__floors { padding-inline: 32px; } }
.tower-floor__plate { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--tw-line); border-radius: 16px; padding: 16px 18px; }
.tower-floor__num { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--tw-accent); font-weight: 700; font-size: .85rem; }
.tower-floor__num > span:first-child { font-variant-numeric: tabular-nums; }
.tower-floor__title { margin-top: 6px; font-size: 1.15rem; line-height: 1.45; font-weight: 800; color: var(--tw-title); }
.tower-floor__text { margin-top: 6px; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.tower-floor__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 32px;
  color: var(--tw-accent); font-weight: 700; font-size: .95rem; text-decoration: none;
}
/* the whole plate is the link */
.tower-floor__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tower-floor__plate:hover { border-color: var(--tw-plate-hover); }
.tower-floor__plate:hover .tower-floor__link { color: var(--tw-strong); }
.tower-floor__link:focus-visible { outline: none; }
.tower-floor__link:focus-visible::after { outline: 3px solid var(--tw-accent); outline-offset: 2px; }

/* ----- live: one screen ----- */
.tower.is-live .tower__stage {
  position: relative; isolation: isolate;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 600px; max-height: 1000px;
}
.tower.is-live .tower__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.tower.is-live .tower__intro { position: relative; padding-top: clamp(20px, 4vh, 44px); }
.tower.is-live .tower__floors { position: absolute; inset: 0; display: block; padding: 0; max-width: none; pointer-events: none; }
.tower.is-live .tower-floor {
  position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform, opacity;
  transition: none;
}
.tower.is-live .tower-floor.is-off { visibility: hidden; pointer-events: none; }
.tower.is-live .tower-floor__plate {
  background: var(--tw-plate); border-color: var(--tw-plate-border); cursor: pointer;
  box-shadow: var(--tw-plate-shadow);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tower.is-live .tower-floor__plate:hover { border-color: var(--tw-plate-hover); }

/* floor list (bottom corner, end side) */
.tower.is-live .elevator {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  position: absolute; inset-inline-end: 20px; bottom: clamp(16px, 5vh, 40px);
}
.elevator__list { display: grid; gap: 0; }
.elevator__btn {
  display: flex; align-items: center; gap: 10px; min-height: 32px; width: 100%; padding: 0 6px;
  background: none; border: 0; border-radius: 8px; color: var(--tw-soft); cursor: pointer; text-align: start;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.elevator__btn:hover { color: var(--tw-strong); background: var(--tw-hover-bg); }
.elevator__num {
  display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--tw-line-strong); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.elevator__label { font-size: .875rem; font-weight: 500; white-space: nowrap; }
.elevator__btn.is-active { color: var(--tw-strong); }
.elevator__btn.is-active .elevator__num { background: var(--tw-num-on-bg); border-color: var(--tw-num-on-bg); color: var(--tw-num-on-fg); }
.elevator__play {
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tw-line-strong); background: var(--tw-play-bg);
  color: var(--text); font-size: .8rem; font-weight: 700; cursor: pointer;
}
.elevator__play:hover { border-color: var(--tw-accent); color: var(--tw-strong); }
@media (prefers-reduced-motion: reduce) { .elevator__play { display: none; } }

/* medium screens: numbers only */
@media (max-width: 1180px) {
  .elevator__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .elevator__btn { justify-content: center; }
  .elevator__play { padding: 0 8px; font-size: .75rem; }
}
/* phones: compact intro, list at the end edge, plate over the tower */
@media (max-width: 799px) {
  .tower.is-live .tower__stage { min-height: 620px; }
  .tower.is-live .tower__intro { padding-top: 20px; }
  .tower__title { font-size: clamp(1.45rem, 1rem + 3vw, 1.9rem); margin-top: 10px; }
  .tower__lead { font-size: .95rem; margin-top: 8px; }
  .tower__intro .hero__actions { margin-top: 14px; gap: 8px; }
  .tower__intro .hero__actions .btn { min-height: 44px; padding-inline: 16px; font-size: .95rem; }
  /* floor numbers: one row along the bottom, first floor at the reading start */
  .tower.is-live .elevator { inset-inline: 0; bottom: 12px; flex-direction: row; justify-content: center; }
  .tower.is-live .elevator__list { display: flex; flex-direction: row-reverse; gap: 2px; }
  .elevator__btn { min-height: 36px; min-width: 32px; padding: 0 2px; }
  .elevator__num { width: 28px; height: 28px; font-size: .72rem; }
  .elevator__play { display: none; }
  /* compact plate so the tower stays visible */
  .tower.is-live .tower-floor__text { display: none; }
  .tower.is-live .tower-floor__plate { padding: 12px 14px; }
  .tower.is-live .tower-floor__link { margin-top: 2px; }
}
@media (max-width: 799px) and (max-height: 700px) {
  .tower__lead { display: none; }
}
[lang="en"] .tower__title { line-height: 1.15; }
[lang="en"] .tower-floor__title { line-height: 1.3; }

/* ---------- planning doodles (doodles.js scatters them behind each section) ---------- */
:root { --doodle: #5A473A; --doodle-opacity: .09; }
:root[data-theme="dark"] { --doodle: #C7BDB1; --doodle-opacity: .08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --doodle: #C7BDB1; --doodle-opacity: .08; } }
.section.has-doodles { position: relative; isolation: isolate; }
.doodles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.doodle {
  position: absolute; color: var(--doodle); opacity: var(--doodle-opacity);
  transform: rotate(var(--rot, 0deg));
  animation: doodle-float var(--float, 12s) ease-in-out var(--delay, 0s) infinite alternate;
}
.doodle svg { display: block; width: 100%; height: auto; overflow: visible; }
.doodle svg * { transform-box: fill-box; }
.doodle .d-faint { opacity: .45; }
@keyframes doodle-float { from { transform: rotate(var(--rot, 0deg)) translateY(-8px); } to { transform: rotate(var(--rot, 0deg)) translateY(8px); } }

/* staggering helpers */
.doodle .d-2 { animation-delay: calc(var(--delay, 0s) + .5s) !important; }
.doodle .d-3 { animation-delay: calc(var(--delay, 0s) + 1s) !important; }
.doodle .d-4 { animation-delay: calc(var(--delay, 0s) + 1.5s) !important; }
.doodle .d-5 { animation-delay: calc(var(--delay, 0s) + 2s) !important; }

/* gantt bars grow along the timeline */
.doodle .d-bar { transform-origin: left center; animation: d-grow 7s var(--ease) var(--delay, 0s) infinite; }
@keyframes d-grow { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); opacity: 0; } }
/* kanban card travels to done */
.doodle .d-move { animation: d-move 8s var(--ease) var(--delay, 0s) infinite; }
@keyframes d-move { 0%, 15% { transform: translate(0, 0); } 35%, 50% { transform: translate(38px, 22px); } 70%, 88% { transform: translate(76px, 44px); } 100% { transform: translate(0, 0); opacity: 0; } }
/* ticks and lines draw themselves */
.doodle .d-tick, .doodle .d-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: d-draw 6s var(--ease) var(--delay, 0s) infinite; }
.doodle .d-late { animation-delay: calc(var(--delay, 0s) + 2.2s) !important; }
@keyframes d-draw { 0%, 10% { stroke-dashoffset: 1; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
/* progress ring fills */
.doodle .d-ring { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 3; animation: d-ring 6s var(--ease) var(--delay, 0s) infinite; }
@keyframes d-ring { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
/* calendar: the selected day hops along */
.doodle .d-day { animation: d-day 8s steps(1) var(--delay, 0s) infinite; }
@keyframes d-day { 0% { transform: translate(0, 0); } 25% { transform: translate(39px, 0); } 50% { transform: translate(65px, 13px); } 75% { transform: translate(26px, 26px); } }
/* mind-map nodes pop in */
.doodle .d-node { transform-origin: center; animation: d-pop 6s var(--ease) var(--delay, 0s) infinite; }
@keyframes d-pop { 0%, 20% { transform: scale(0); } 35%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
/* clock hands turn */
.doodle .d-hand-m { transform-box: view-box; transform-origin: 60px 45px; animation: d-spin 6s linear infinite; }
.doodle .d-hand-h { transform-box: view-box; transform-origin: 60px 45px; animation: d-spin 72s linear infinite; }
@keyframes d-spin { to { transform: rotate(360deg); } }
/* chart columns rise and settle */
.doodle .d-col { transform-origin: center bottom; animation: d-rise 5s var(--ease) var(--delay, 0s) infinite alternate; }
@keyframes d-rise { 0% { transform: scaleY(.3); } 60%, 100% { transform: scaleY(1); } }
/* timeline milestones light up in turn */
.doodle .d-dot { transform-origin: center; opacity: .3; animation: d-blink 5s ease-in-out var(--delay, 0s) infinite; }
@keyframes d-blink { 0%, 100% { opacity: .3; transform: scale(.8); } 20% { opacity: 1; transform: scale(1.25); } 40% { opacity: .3; transform: scale(.8); } }

.doodles.is-paused .doodle, .doodles.is-paused .doodle * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .doodle, .doodle * { animation: none !important; }
  .doodle .d-tick, .doodle .d-line, .doodle .d-ring { stroke-dashoffset: 0; }
}
/* always-dark bands keep light doodles */
.spotlight .doodle, .section--band .doodle { color: #C7BDB1; --doodle-opacity: .08; }

/* =====================================================================
   Animated layouts: bento grid, views showcase, capability ribbon, counters
   ===================================================================== */
:root { --dir: 1; --vz-ink: color-mix(in srgb, var(--text) 13%, transparent); --vz-ink-2: color-mix(in srgb, var(--text) 24%, transparent); }
:root[dir="rtl"] { --dir: -1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@property --p { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --s { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --m { syntax: '<integer>'; initial-value: 0; inherits: false; }

/* shared mock-up pieces */
.vz { width: 100%; max-width: 440px; }
.vz-line { display: block; height: 8px; width: 70%; border-radius: 4px; background: var(--vz-ink); }
.vz-ava { width: 22px; height: 22px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--brown)); box-shadow: 0 0 0 2px var(--surface); }
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- bento grid ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide, .bento__item--big { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .bento__item--tall, .bento__item--big { grid-row: span 2; }
  .bento__item--wide { flex-direction: row; }
  .bento__item--wide .bento__visual { flex: 1.15; border-bottom: 0; border-inline-end: 1px solid var(--border); }
  .bento__item--wide .bento__body { flex: 1; justify-content: center; }
}
.bento__item {
  --mx: -400px; --my: -400px;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid transparent; border-radius: 22px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    radial-gradient(260px circle at var(--mx) var(--my), var(--sand), var(--border) 62%) border-box;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bento__item:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgb(90 71 58 / 0.6); }
.bento__visual {
  position: relative; flex: 1; min-height: 190px; display: grid; place-items: center; padding: 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--sand) 22%, transparent), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.bento__visual::after { /* fine grid behind the mock-up */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--vz-ink) 1px, transparent 1px), linear-gradient(90deg, var(--vz-ink) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%); mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}
.bento__visual > .vz { position: relative; z-index: 1; }
.bento__item--big .bento__visual { min-height: 320px; }
.bento__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px 22px; }
.bento__title { font-size: 1.2rem; font-weight: 800; }
.bento__item--big .bento__title { font-size: 1.5rem; }
.bento__text { color: var(--muted); font-size: .98rem; line-height: 1.75; }

/* projects: progress fills + counting percent + milestones */
.vz-projects { display: grid; gap: 12px; }
.vz-proj {
  display: grid; grid-template-columns: 12px 1fr 1.3fr 42px; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 24px -18px rgb(22 20 18 / .6);
}
.vz-proj--1 { --to: 72%; --p-to: 72; } .vz-proj--2 { --to: 45%; --p-to: 45; } .vz-proj--3 { --to: 90%; --p-to: 90; }
.vz-swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--brown); }
.vz-proj--2 .vz-swatch { background: var(--sand); } .vz-proj--3 .vz-swatch { background: color-mix(in srgb, var(--brown) 55%, var(--sand)); }
.vz-line--name { width: 80%; }
.vz-progress { height: 8px; border-radius: 4px; background: var(--vz-ink); overflow: hidden; }
.vz-progress i { display: block; height: 100%; width: var(--to); border-radius: inherit; background: linear-gradient(to left, var(--brown), var(--sand)); transform-origin: right; animation: vz-fill 7s var(--ease) infinite; }
[dir="ltr"] .vz-progress i { transform-origin: left; background: linear-gradient(to right, var(--brown), var(--sand)); }
.vz-proj--2 .vz-progress i { animation-delay: .4s; } .vz-proj--3 .vz-progress i { animation-delay: .8s; }
@keyframes vz-fill { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.vz-pct { font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: end; color: var(--muted); }
.vz-pct::after { counter-reset: p var(--p); content: counter(p) "%"; animation: vz-count 7s var(--ease) infinite; }
.vz-proj--2 .vz-pct::after { animation-delay: .4s; } .vz-proj--3 .vz-pct::after { animation-delay: .8s; }
@keyframes vz-count { 0% { --p: 0; } 40%, 85% { --p: var(--p-to); } 100% { --p: 0; } }
.vz-track { position: relative; height: 22px; margin: 6px 8px 0; border-top: 2px dashed var(--vz-ink-2); }
.vz-ms { position: absolute; top: -7px; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; background: var(--surface); border: 2px solid var(--sand); }
.vz-ms:nth-child(1) { inset-inline-start: 6%; background: var(--brown); border-color: var(--brown); }
.vz-ms:nth-child(2) { inset-inline-start: 34%; background: var(--brown); border-color: var(--brown); }
.vz-ms:nth-child(3) { inset-inline-start: 62%; } .vz-ms:nth-child(4) { inset-inline-start: 90%; }
.vz-today { position: absolute; top: -14px; width: 2px; height: 26px; border-radius: 2px; background: var(--brown); animation: vz-today 9s ease-in-out infinite alternate; }
.vz-today::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brown); }
@keyframes vz-today { from { inset-inline-start: 18%; } to { inset-inline-start: 78%; } }

/* views: switcher pill + hopping card */
.vz-seg { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.vz-seg span { position: relative; z-index: 1; height: 20px; border-radius: 7px; }
.vz-seg span::after { content: ""; position: absolute; inset: 7px 25%; border-radius: 3px; background: var(--vz-ink-2); }
.vz-seg__pill { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc((100% - 28px) / 6); border-radius: 7px; background: var(--sand); animation: vz-seg 12s var(--ease) infinite; }
@keyframes vz-seg {
  0%, 12% { transform: translateX(0); }
  16%, 29% { transform: translateX(calc(var(--dir) * (100% + 4px))); }
  33%, 45% { transform: translateX(calc(var(--dir) * (200% + 8px))); }
  49%, 62% { transform: translateX(calc(var(--dir) * (300% + 12px))); }
  66%, 79% { transform: translateX(calc(var(--dir) * (400% + 16px))); }
  83%, 96% { transform: translateX(calc(var(--dir) * (500% + 20px))); }
  100% { transform: translateX(0); }
}
.vz-board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vz-col { display: grid; align-content: start; gap: 6px; min-height: 96px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.vz-chip { display: block; height: 18px; border-radius: 6px; background: var(--vz-ink); }
.vz-board__lane { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; pointer-events: none; }
.vz-chip--move { grid-column: 1; align-self: end; margin: 0 9px 9px; background: var(--brown); box-shadow: 0 8px 16px -8px rgb(22 20 18 / .6); animation: vz-hop 6s var(--ease) infinite; }
@keyframes vz-hop {
  0%, 18% { transform: translateX(0); }
  26% { transform: translateX(calc(var(--dir) * 50%)) translateY(-10px) rotate(-4deg); }
  36%, 56% { transform: translateX(calc(var(--dir) * (100% + 26px))); }
  64% { transform: translateX(calc(var(--dir) * (150% + 39px))) translateY(-10px) rotate(-4deg); }
  74%, 92% { transform: translateX(calc(var(--dir) * (200% + 52px))); opacity: 1; }
  100% { transform: translateX(calc(var(--dir) * (200% + 52px))); opacity: 0; }
}

/* chat: bubbles arrive, typing dots */
.vz-chat { display: grid; gap: 10px; max-width: 360px; }
.vz-msg { display: flex; align-items: flex-end; gap: 8px; opacity: 0; animation: vz-msg 9s var(--ease) infinite; }
.vz-msg:nth-child(2) { justify-content: flex-end; animation-delay: 1.3s; }
.vz-msg:nth-child(3) { animation-delay: 2.6s; }
@keyframes vz-msg { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 8%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
.vz-bubble { display: grid; gap: 6px; min-width: 130px; padding: 11px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 20px -16px rgb(22 20 18 / .6); }
.vz-bubble .vz-line:last-child { width: 55%; }
.vz-msg--out .vz-bubble { background: var(--brown); border-color: transparent; min-width: 150px; }
.vz-msg--out .vz-line { background: rgb(255 255 255 / .3); }
.vz-mention { display: block; width: 58px; height: 12px; border-radius: 6px; background: var(--sand); }
.vz-msg--typing .vz-bubble { display: flex; gap: 5px; min-width: 0; padding: 13px 14px; }
.vz-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--vz-ink-2); animation: vz-type 1.2s ease-in-out infinite; }
.vz-msg--typing i:nth-child(2) { animation-delay: .15s; } .vz-msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vz-type { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* time: live timer + weekly hours */
.vz-time { max-width: 300px; }
.vz-timer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); direction: ltr; box-shadow: 0 10px 24px -18px rgb(22 20 18 / .6); }
.vz-live { width: 10px; height: 10px; border-radius: 50%; background: var(--brown); animation: dot-pulse 1.6s ease-out infinite; color: var(--brown); }
.vz-clock { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vz-clock b { font-weight: inherit; }
.vz-sec::after { counter-reset: s var(--s); content: counter(s, decimal-leading-zero); animation: vz-sec 60s steps(60) infinite; }
.vz-min::after { counter-reset: m var(--m); content: counter(m); animation: vz-min 600s steps(10) infinite; }
@keyframes vz-sec { from { --s: 0; } to { --s: 60; } }
@keyframes vz-min { from { --m: 0; } to { --m: 10; } }
.vz-week { display: flex; align-items: flex-end; gap: 10px; height: 78px; margin-top: 14px; padding: 0 6px; }
.vz-week span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.vz-week i { display: block; width: 100%; border-radius: 7px 7px 3px 3px; background: var(--sand); transform-origin: bottom; animation: vz-rise 4.5s var(--ease) infinite alternate; }
.vz-week span:nth-child(1) i { height: 62%; } .vz-week span:nth-child(2) i { height: 88%; animation-delay: .3s; }
.vz-week span:nth-child(3) i { height: 46%; animation-delay: .6s; } .vz-week span:nth-child(4) i { height: 96%; animation-delay: .9s; background: var(--brown); }
.vz-week span:nth-child(5) i { height: 70%; animation-delay: 1.2s; }
@keyframes vz-rise { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* assets: package handed over, check pops */
.vz-assets { display: flex; align-items: center; gap: 12px; max-width: 380px; }
.vz-person { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--brown)); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border); }
.vz-person::after { content: ""; position: absolute; inset: 11px 16px 20px; border-radius: 50%; background: rgb(255 255 255 / .55); }
.vz-person::before { content: ""; position: absolute; inset: 30px 11px 8px; border-radius: 12px 12px 6px 6px; background: rgb(255 255 255 / .55); }
.vz-path { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--vz-ink-2) 0 6px, transparent 6px 12px); }
.vz-box { position: absolute; top: -17px; inset-inline-start: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--brown); box-shadow: 0 10px 18px -10px rgb(22 20 18 / .7); animation: vz-carry 6s var(--ease) infinite; }
.vz-box::before { content: ""; position: absolute; inset: 15px 5px auto; height: 2px; background: rgb(255 255 255 / .5); }
.vz-box::after { content: ""; position: absolute; inset: 5px auto 5px 15px; width: 2px; background: rgb(255 255 255 / .35); }
@keyframes vz-carry { 0%, 12% { inset-inline-start: 0; transform: none; } 30% { transform: translateY(-8px) rotate(-6deg); } 50%, 88% { inset-inline-start: calc(100% - 34px); transform: none; opacity: 1; } 100% { inset-inline-start: calc(100% - 34px); opacity: 0; } }
.vz-ok { position: absolute; z-index: 1; inset-block-end: -4px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brown); box-shadow: 0 0 0 3px var(--surface); transform: scale(0); animation: vz-ok 6s var(--ease) infinite; }
.vz-ok::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes vz-ok { 0%, 52% { transform: scale(0); } 60%, 88% { transform: scale(1); } 100% { transform: scale(0); } }

/* security: shield + switches */
.vz-security { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; max-width: 400px; }
.vz-shield { width: 64px; height: 76px; background: linear-gradient(160deg, var(--sand), var(--brown)); clip-path: polygon(50% 0, 100% 14%, 100% 52%, 50% 100%, 0 52%, 0 14%); animation: vz-shield 3s ease-in-out infinite; }
@keyframes vz-shield { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.06); } }
.vz-perms { display: grid; gap: 8px; }
.vz-perm { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.vz-perm .vz-line { flex: 1; }
.vz-toggle { position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--vz-ink-2); animation: vz-toggle 8s var(--ease) infinite; }
.vz-toggle i { position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); animation: vz-knob 8s var(--ease) infinite; }
.vz-perm:nth-child(2) .vz-toggle, .vz-perm:nth-child(2) .vz-toggle i { animation-delay: .6s; }
.vz-perm:nth-child(3) .vz-toggle, .vz-perm:nth-child(3) .vz-toggle i { animation-delay: 1.2s; }
.vz-perm:nth-child(4) .vz-toggle, .vz-perm:nth-child(4) .vz-toggle i { animation-delay: 1.8s; }
@keyframes vz-toggle { 0%, 10% { background: var(--vz-ink-2); } 18%, 85% { background: var(--brown); } 95%, 100% { background: var(--vz-ink-2); } }
@keyframes vz-knob { 0%, 10% { transform: translateX(0); } 18%, 85% { transform: translateX(calc(var(--dir) * 16px)); } 95%, 100% { transform: translateX(0); } }

/* ---------- views showcase ---------- */
.section--showcase { position: relative; overflow: clip; }
.showcase { display: grid; gap: 24px; }
@media (min-width: 960px) { .showcase { grid-template-columns: minmax(280px, .75fr) 1.6fr; align-items: center; gap: 48px; } }
.showcase__tabs { display: grid; gap: 8px; }
.showcase__tab {
  position: relative; overflow: hidden; display: grid; gap: 4px; padding: 14px 18px; text-align: start;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.showcase__tab:hover { border-color: var(--sand); }
.showcase__label { font-weight: 800; font-size: 1.02rem; }
.showcase__title, .showcase__text { display: none; }
.showcase__tab.is-active { border-color: var(--primary); box-shadow: 0 18px 40px -26px rgb(90 71 58 / .7); }
.showcase__tab.is-active .showcase__label { color: var(--primary); font-size: .9rem; }
.showcase__tab.is-active .showcase__title { display: block; font-weight: 800; font-size: 1.15rem; animation: sc-in .4s var(--ease); }
.showcase__tab.is-active .showcase__text { display: block; color: var(--muted); font-size: .95rem; line-height: 1.7; animation: sc-in .5s var(--ease); }
@keyframes sc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.showcase__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .showcase__progress { transform-origin: left; }
.showcase.is-playing .showcase__tab.is-active .showcase__progress { animation: sc-progress var(--sc-dur, 6s) linear forwards; }
.showcase.is-held .showcase__progress { animation-play-state: paused !important; }
@keyframes sc-progress { to { transform: scaleX(1); } }
@media (max-width: 959px) {
  .showcase__stage { order: -1; }
  .showcase__tabs { grid-template-columns: repeat(3, 1fr); }
  .showcase__tab { padding: 10px 12px; text-align: center; }
  .showcase__tab.is-active { grid-column: 1 / -1; text-align: start; }
}

.vw-frame {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 50px 90px -50px rgb(90 71 58 / .7), 0 0 0 8px color-mix(in srgb, var(--sand) 18%, transparent);
}
.vw-frame__bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.vw-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--vz-ink-2); }
.vw-frame__bar span { margin-inline-start: 14px; width: 34%; height: 14px; border-radius: 7px; background: var(--vz-ink); }
.showcase__panel { position: absolute; inset: 60px 18px 18px; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s linear .45s; }
.showcase__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.showcase__panel > div, .vw { height: 100%; }
@media (max-width: 600px) { .showcase__panel { inset: 54px 10px 10px; } .vw-frame { aspect-ratio: 4 / 3.6; } }

@keyframes vw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vw-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* list */
.vw-list { display: grid; align-content: start; gap: 8px; }
.vw-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.vw-row .vz-line { margin-inline-end: auto; }
.vz-line--w1 { width: 52%; } .vz-line--w2 { width: 38%; } .vz-line--w3 { width: 64%; }
.vw-check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--vz-ink-2); }
.vw-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vw-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vw-tag { flex: none; width: 48px; height: 18px; border-radius: 9px; background: var(--vz-ink); }
.vw-tag--1 { background: color-mix(in srgb, var(--brown) 30%, transparent); } .vw-tag--2 { background: color-mix(in srgb, var(--sand) 70%, transparent); }
.is-active .vw-row { animation: vw-in .5s var(--ease) both; }
.is-active .vw-row:nth-child(2) { animation-delay: .07s; } .is-active .vw-row:nth-child(3) { animation-delay: .14s; }
.is-active .vw-row:nth-child(4) { animation-delay: .21s; } .is-active .vw-row:nth-child(5) { animation-delay: .28s; } .is-active .vw-row:nth-child(6) { animation-delay: .35s; }
.is-active .vw-row:nth-child(-n+3) .vw-check { animation: vw-checked .3s var(--ease) forwards; }
.is-active .vw-row:nth-child(-n+3) .vw-check path { animation: vw-draw .4s var(--ease) forwards; }
.is-active .vw-row:nth-child(1) .vw-check, .is-active .vw-row:nth-child(1) .vw-check path { animation-delay: 1s; }
.is-active .vw-row:nth-child(2) .vw-check, .is-active .vw-row:nth-child(2) .vw-check path { animation-delay: 1.8s; }
.is-active .vw-row:nth-child(3) .vw-check, .is-active .vw-row:nth-child(3) .vw-check path { animation-delay: 2.6s; }
.is-active .vw-row:nth-child(-n+3) .vz-line { animation: vw-done .3s var(--ease) forwards; }
.is-active .vw-row:nth-child(1) .vz-line { animation-delay: 1.1s; } .is-active .vw-row:nth-child(2) .vz-line { animation-delay: 1.9s; } .is-active .vw-row:nth-child(3) .vz-line { animation-delay: 2.7s; }
@keyframes vw-checked { to { background: var(--brown); border-color: var(--brown); } }
@keyframes vw-draw { to { stroke-dashoffset: 0; } }
@keyframes vw-done { to { opacity: .45; } }

/* grid */
.vw-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; }
.vw-tile { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 22px -18px rgb(22 20 18 / .6); }
.vw-tile__cover { height: 44%; min-height: 40px; border-radius: 9px; background: linear-gradient(135deg, var(--sand), color-mix(in srgb, var(--brown) 55%, var(--sand))); }
.vw-tile__cover--2 { background: linear-gradient(135deg, var(--mist), var(--sand)); } .vw-tile__cover--3 { background: linear-gradient(135deg, var(--brown), var(--sand)); }
.vw-tile .vz-line:nth-of-type(2) { width: 50%; }
.is-active .vw-tile { animation: vw-pop .5s var(--ease) both; }
.is-active .vw-tile:nth-child(2) { animation-delay: .08s; } .is-active .vw-tile:nth-child(3) { animation-delay: .16s; }
.is-active .vw-tile:nth-child(4) { animation-delay: .24s; } .is-active .vw-tile:nth-child(5) { animation-delay: .32s; } .is-active .vw-tile:nth-child(6) { animation-delay: .4s; }

/* calendar */
.vw-cal { position: relative; }
.vw-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(5, 1fr); gap: 4px; height: 100%; }
.vw-day { border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.vw-day.has-chip::after { content: ""; display: block; height: 10px; margin: 8px 6px 0; border-radius: 4px; background: var(--sand); }
.vw-event {
  position: absolute; height: 12px; width: calc((100% - 24px) / 7 - 12px); border-radius: 4px; background: var(--brown);
  box-shadow: 0 8px 16px -8px rgb(22 20 18 / .7);
  top: calc((100% - 16px) / 5 * 1 + 4px + 8px); inset-inline-start: calc((100% - 24px) / 7 * 1 + 4px + 6px);
}
.is-active .vw-event { animation: vw-drag 5s var(--ease) .6s infinite; }
@keyframes vw-drag {
  0%, 15% { top: calc((100% - 16px) / 5 * 1 + 4px + 8px); inset-inline-start: calc((100% - 24px) / 7 * 1 + 4px + 6px); transform: none; }
  25% { transform: scale(1.12) rotate(-3deg); }
  45%, 80% { top: calc((100% - 16px) / 5 * 3 + 12px + 8px); inset-inline-start: calc((100% - 24px) / 7 * 4 + 16px + 6px); transform: none; }
  100% { top: calc((100% - 16px) / 5 * 1 + 4px + 8px); inset-inline-start: calc((100% - 24px) / 7 * 1 + 4px + 6px); }
}

/* kanban */
.vw-kanban { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vw-kcol { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.vz-line--head { width: 46%; height: 10px; margin-bottom: 4px; background: var(--vz-ink-2); }
.vw-kcard { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 12px -10px rgb(22 20 18 / .6); }
.vw-kcard .vz-line { flex: 1; }
.vw-klane { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; pointer-events: none; }
.vw-kcard--move { grid-column: 1; align-self: end; margin: 0 12px 12px; border-color: var(--brown); }
.is-active .vw-kcard--move { animation: vw-kmove 6s var(--ease) .4s infinite; }
@keyframes vw-kmove {
  0%, 14% { transform: none; }
  22% { transform: translateX(calc(var(--dir) * 50%)) translateY(-14px) rotate(-3deg); box-shadow: 0 24px 30px -18px rgb(22 20 18 / .7); }
  32%, 52% { transform: translateX(calc(var(--dir) * (100% + 36px))); }
  60% { transform: translateX(calc(var(--dir) * (150% + 54px))) translateY(-14px) rotate(-3deg); }
  70%, 90% { transform: translateX(calc(var(--dir) * (200% + 72px))); opacity: 1; }
  100% { transform: translateX(calc(var(--dir) * (200% + 72px))); opacity: 0; }
}

/* mind map */
.vw-mind { position: relative; }
.vw-mind__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.vw-mind__lines path { fill: none; stroke: var(--sand); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-active .vw-mind__lines path { animation: vw-draw .7s var(--ease) forwards; }
.is-active .vw-mind__lines path:nth-child(1) { animation-delay: .3s; } .is-active .vw-mind__lines path:nth-child(2) { animation-delay: .45s; }
.is-active .vw-mind__lines path:nth-child(3) { animation-delay: .6s; } .is-active .vw-mind__lines path:nth-child(4) { animation-delay: .75s; }
.is-active .vw-mind__lines path:nth-child(5) { animation-delay: .9s; }
.vw-node { position: absolute; width: 18%; height: 30px; transform: translate(-50%, -50%); border-radius: 15px; background: var(--surface); border: 1.5px solid var(--sand); box-shadow: 0 10px 18px -14px rgb(22 20 18 / .7); }
.vw-node::after { content: ""; position: absolute; inset: 11px 18%; border-radius: 4px; background: var(--vz-ink-2); }
.vw-node--root { left: 50%; top: 50%; width: 24%; height: 42px; border-radius: 21px; background: var(--brown); border-color: var(--brown); }
.vw-node--root::after { inset: 16px 20%; background: rgb(255 255 255 / .45); }
.vw-node--1 { left: 20%; top: 20.8%; } .vw-node--2 { left: 20%; top: 79.2%; } .vw-node--3 { left: 80%; top: 16.7%; }
.vw-node--4 { left: 82.5%; top: 50%; } .vw-node--5 { left: 80%; top: 83.3%; }
.is-active .vw-node { animation: vw-node .45s var(--ease) both; }
.is-active .vw-node--1 { animation-delay: .7s; } .is-active .vw-node--2 { animation-delay: .85s; } .is-active .vw-node--3 { animation-delay: 1s; }
.is-active .vw-node--4 { animation-delay: 1.15s; } .is-active .vw-node--5 { animation-delay: 1.3s; }
@keyframes vw-node { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* gantt */
.vw-gantt { position: relative; display: grid; grid-template-rows: auto repeat(6, 1fr); gap: 8px; }
.vw-gantt__scale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-inline-start: 28%; }
.vw-gantt__scale span { height: 8px; border-radius: 4px; background: var(--vz-ink); }
.vw-grow { display: grid; grid-template-columns: 28% 1fr; align-items: center; min-height: 26px; border-radius: 8px; }
.vw-grow:nth-child(odd) { background: color-mix(in srgb, var(--sand) 10%, transparent); }
.vw-grow .vz-line { width: 70%; margin-inline-start: 8px; }
.vw-gbar { display: block; height: 16px; border-radius: 8px; background: var(--brown); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .vw-gbar { transform-origin: left; }
.vw-gbar--1 { margin-inline-start: 0; width: 34%; } .vw-gbar--2 { margin-inline-start: 26%; width: 30%; background: var(--sand); }
.vw-gbar--3 { margin-inline-start: 44%; width: 22%; } .vw-gbar--4 { margin-inline-start: 12%; width: 50%; background: var(--sand); }
.vw-gbar--5 { margin-inline-start: 58%; width: 30%; } .vw-gbar--6 { margin-inline-start: 70%; width: 26%; background: var(--sand); }
.is-active .vw-gbar { animation: vw-bar .7s var(--ease) forwards; }
.is-active .vw-grow:nth-child(3) .vw-gbar { animation-delay: .12s; } .is-active .vw-grow:nth-child(4) .vw-gbar { animation-delay: .24s; }
.is-active .vw-grow:nth-child(5) .vw-gbar { animation-delay: .36s; } .is-active .vw-grow:nth-child(6) .vw-gbar { animation-delay: .48s; }
.is-active .vw-grow:nth-child(7) .vw-gbar { animation-delay: .6s; }
@keyframes vw-bar { to { transform: scaleX(1); } }
.vw-todayline { position: absolute; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--brown); inset-inline-start: calc(28% + 40%); }
.vw-todayline::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brown); }
.is-active .vw-todayline { animation: vw-today 8s ease-in-out infinite alternate; }
@keyframes vw-today { from { inset-inline-start: calc(28% + 30%); } to { inset-inline-start: calc(28% + 55%); } }

/* ---------- capability ribbon ---------- */
.marquee {
  display: grid; gap: 12px; padding-block: 28px; overflow: hidden;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row { display: flex; width: max-content; animation: mq 48s linear infinite; }
.marquee__row--reverse { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; gap: 12px; padding-inline-end: 12px; }
.marquee__list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); font-weight: 700; color: var(--text);
}
.marquee__list li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--sand); }
.marquee__row--reverse .marquee__list li { background: transparent; }
.marquee__row--reverse .marquee__list li::before { background: var(--brown); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(calc(var(--dir) * -50%)); } }

/* ---------- counters band ---------- */
.stat__value[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .vz *, .vz *::before, .vz *::after, .vw *, .vw *::before, .vw *::after, .marquee__row { animation: none !important; }
  .vz-progress i, .vw-gbar { transform: none; }
  .vz-msg, .vw-row, .vw-tile, .vw-node { opacity: 1; }
  .vw-mind__lines path, .vw-check path { stroke-dashoffset: 0; }
  .marquee__row { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__list[aria-hidden] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; }
}

/* ---------- floating contact button ---------- */
.fab { position: fixed; z-index: 45; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; transition: bottom .35s var(--ease), opacity .3s var(--ease), transform .3s var(--ease); }
.fab--start { inset-inline-start: 20px; }
.fab--end { inset-inline-end: 20px; align-items: flex-end; }
.fab.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
.fab__btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
  border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); cursor: pointer;
  font-weight: 800; font-size: 1rem; box-shadow: 0 16px 34px -14px rgb(22 20 18 / .6), 0 0 0 1px rgb(255 255 255 / .06) inset;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fab__btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgb(22 20 18 / .7); }
.fab__btn:active { transform: scale(.97); }
/* a soft ring that breathes now and then to draw the eye */
.fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); animation: fab-ring 4s ease-out 2s infinite; }
.fab__btn[aria-expanded="true"]::before { animation: none; }
@keyframes fab-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 35%, 100% { box-shadow: 0 0 0 14px transparent; } }
.fab__glyph { display: grid; place-items: center; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.fab__glyph--close { position: absolute; inset-inline-start: 18px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab__btn[aria-expanded="true"] .fab__glyph--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab__btn[aria-expanded="true"] .fab__glyph--close { opacity: 1; transform: none; }

.fab__menu {
  width: min(320px, calc(100vw - 40px)); padding: 8px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 60px -24px rgb(22 20 18 / .5);
  transform-origin: bottom right; animation: fab-menu .25s var(--ease);
}
.fab--start .fab__menu { transform-origin: bottom left; }
[dir="rtl"] .fab--start .fab__menu { transform-origin: bottom right; }
[dir="rtl"] .fab--end .fab__menu { transform-origin: bottom left; }
@keyframes fab-menu { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.fab__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background-color .15s var(--ease); }
.fab__item:hover, .fab__item:focus-visible { background: var(--accent-soft); }
.fab__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--primary); }
.fab__item:hover .fab__icon { background: var(--primary); color: var(--on-primary); }
.fab__text { display: grid; min-width: 0; }
.fab__title { font-weight: 800; font-size: .98rem; }
.fab__sub { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.fab__sub[dir="ltr"] { text-align: end; }
[dir="ltr"] .fab__sub[dir="ltr"] { text-align: start; }

/* phones: a round icon button */
@media (max-width: 799px) {
  .fab--start { inset-inline-start: 16px; } .fab--end { inset-inline-end: 16px; }
  .fab__btn { width: 56px; padding: 0; justify-content: center; }
  .fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fab__glyph--close { inset-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) { .fab__btn::before { animation: none; } .fab__menu { animation: none; } }


/* ---------- one continuous page: sections fade into each other instead of meeting at a hard edge ---------- */
.section--tinted, .section--cta {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
/* the night scene melts into the page below it */
.tower.is-live .tower__stage::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 110px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(22 20 18 / 0), var(--bg));
}

/* ---------- logo: brown symbol on light pages, sand on dark ---------- */
.brand { align-items: center; }
.brand__mark { display: inline-grid; flex: none; width: 36px; height: 36px; }
.brand__mark-img { grid-area: 1 / 1; width: 100%; height: 100%; }
.brand__mark-img--dark, .footer-logo--dark { display: none; }
:root[data-theme="dark"] .brand__mark-img--light, :root[data-theme="dark"] .footer-logo--light { display: none; }
:root[data-theme="dark"] .brand__mark-img--dark { display: block; }
:root[data-theme="dark"] .footer-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark-img--light, :root:not([data-theme="light"]) .footer-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__mark-img--dark, :root:not([data-theme="light"]) .footer-logo--dark { display: block; }
}
.brand:hover .brand__mark { animation: mark-turn .9s var(--ease); }
@keyframes mark-turn { to { transform: rotate(90deg); } }
@media (max-width: 520px) { .brand__mark { width: 30px; height: 30px; } }

/* ---------- mock-ups with real sample content ---------- */
.vz-txt { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 700; line-height: 1.45; color: var(--text); }
.vz-proj__name { font-size: .82rem; }
.vz-proj { grid-template-columns: 12px minmax(0, 1.2fr) minmax(0, 1fr) 42px; }

.vz-seg span { display: grid; place-items: center; height: 24px; font-size: .66rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.vz-seg span::after { display: none; }
.vz-chip { height: auto; min-height: 22px; padding: 4px 7px; font-size: .66rem; font-weight: 700; line-height: 1.3; color: var(--text); background: var(--surface-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vz-chip--move { color: #fff; background: var(--brown); }

.vz-bubble { min-width: 0; max-width: 250px; }
.vz-bubble .vz-say { white-space: normal; font-weight: 500; font-size: .78rem; }
.vz-who { font-size: .72rem; color: var(--primary); }
.vz-msg--out .vz-say { color: #fff; }
.vz-mention { width: auto; height: auto; padding: 1px 8px; font-size: .72rem; font-weight: 800; color: var(--charcoal); justify-self: start; }
.vz-msg--typing .vz-bubble { align-items: center; }
.vz-typing { margin-inline-start: 6px; font-size: .72rem; color: var(--muted); white-space: nowrap; }

.vz-timer { flex-wrap: wrap; gap: 6px 12px; }
.vz-timer__label { font-size: .75rem; font-weight: 700; color: var(--muted); }
[dir="rtl"] .vz-timer { direction: rtl; }
.vz-clock { direction: ltr; unicode-bidi: isolate; }
.vz-week { height: 96px; }
.vz-week span { flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; }
.vz-week i { flex: none; }
.vz-week b { font-size: .64rem; font-weight: 700; color: var(--muted); text-align: center; }
.vz-week span:nth-child(1) i { height: 50%; } .vz-week span:nth-child(2) i { height: 72%; }
.vz-week span:nth-child(3) i { height: 38%; } .vz-week span:nth-child(4) i { height: 78%; } .vz-week span:nth-child(5) i { height: 58%; }

.vz-assets-wrap { display: grid; gap: 12px; max-width: 380px; }
.vz-assets__names { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vz-assets__names .vz-txt { width: 60px; text-align: center; }
.vz-item { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--primary); font-size: .72rem; font-weight: 800; white-space: nowrap; }

.vz-perm .vz-txt { flex: 1; font-size: .78rem; }

/* list */
.vw-row .vz-txt { flex: 1; margin-inline-end: auto; }
.vw-tag { width: auto; height: auto; padding: 2px 10px; font-size: .68rem; font-weight: 800; color: var(--text); }
.vw-tag--1 { color: #fff; background: var(--brown); }
.is-active .vw-row:nth-child(-n+3) .vz-txt { animation: vw-done .3s var(--ease) forwards; }
.is-active .vw-row:nth-child(1) .vz-txt { animation-delay: 1.1s; } .is-active .vw-row:nth-child(2) .vz-txt { animation-delay: 1.9s; } .is-active .vw-row:nth-child(3) .vz-txt { animation-delay: 2.7s; }
@keyframes vw-done { to { opacity: .45; text-decoration: line-through; } }

/* grid */
.vw-tile__cover { height: 36%; }
.vw-tile__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .78rem; }
.vw-tile__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: .68rem; color: var(--muted); }
.vw-tile__meta .vz-ava { width: 18px; height: 18px; }

/* calendar */
.vw-cal { display: grid; grid-template-rows: auto 1fr; gap: 4px; }
.vw-cal__head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vw-cal__head span { font-size: .62rem; font-weight: 800; color: var(--muted); text-align: center; }
.vw-day { display: flex; flex-direction: column; gap: 2px; padding: 3px 4px; overflow: hidden; }
.vw-day b { font-size: .6rem; font-weight: 700; color: var(--muted); }
.vw-day em { font-style: normal; font-size: .58rem; font-weight: 800; padding: 1px 4px; border-radius: 4px; background: var(--sand); color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-day.has-chip::after { display: none; }
.vw-event { display: grid; place-items: center; height: 16px; font-size: .58rem; font-weight: 800; color: #fff; overflow: hidden; white-space: nowrap; }

/* kanban */
.vw-khead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; font-size: .74rem; font-weight: 800; }
.vw-khead i { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--vz-ink); font-size: .66rem; text-align: center; }
.vw-kcard .vz-txt { flex: 1; font-size: .74rem; }

/* mind map */
.vw-node { display: grid; place-items: center; width: auto; min-width: 16%; padding: 0 10px; font-size: .72rem; font-weight: 700; white-space: nowrap; color: var(--text); }
.vw-node::after { display: none; }
.vw-node--root { color: #fff; font-size: .8rem; font-weight: 800; }

/* gantt */
.vw-gantt__scale span { display: grid; place-items: center; height: auto; background: none; font-size: .62rem; font-weight: 700; color: var(--muted); }
.vw-grow__name { padding-inline-start: 8px; font-size: .74rem; }

/* dark and brown feature blocks float as rounded panels instead of full-width bands, so no hard edge crosses the page */
.spotlight, .section--band { background: transparent; }
.spotlight > .container {
  background: var(--charcoal); border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 40px 80px -50px rgb(22 20 18 / .8);
}
.section--band { color: var(--text); }
.section--band > .container {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--charcoal)));
  color: var(--on-primary); border-radius: 32px; padding: clamp(28px, 5vw, 56px);
}
@media (max-width: 767px) {
  .spotlight > .container, .section--band > .container { border-radius: 24px; margin-inline: 12px; width: auto; }
}

/* ---------- hero: live dashboard mock-up ----------
   Sized in em off a container-relative font size, so the whole screen scales as one piece.
   With JS it waits off to the side, slides in when it enters the view, then types itself out. */
.hero__media--live { padding: 0; container-type: inline-size; }
.db { font-size: clamp(8.5px, 2.15cqi, 13.5px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 12px; background: var(--surface); color: var(--text); text-align: start; }
.db__bar { display: flex; align-items: center; gap: .5em; padding: .8em 1.2em; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.db__bar > i { width: .75em; height: .75em; border-radius: 50%; background: var(--vz-ink-2); }
.db__url { flex: 1; max-width: 55%; margin-inline: auto; padding: .35em 1em; border-radius: 1em; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85em; text-align: center; white-space: nowrap; overflow: hidden; }
.db__me { width: 1.8em; height: 1.8em; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--brown)); }
.db__body { display: grid; grid-template-columns: 1fr 24%; min-height: 0; }
[dir="ltr"] .db__body { grid-template-columns: 24% 1fr; }
.db__side { order: 2; display: flex; flex-direction: column; gap: .35em; padding: 1.2em .8em; background: var(--brown); color: #fff; }
[dir="ltr"] .db__side { order: 0; }
.db__brand { margin-bottom: .8em; padding-inline: .6em; font-weight: 800; font-size: 1.15em; color: var(--sand); min-height: 1.5em; }
.db__nav { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border-radius: .6em; font-size: .92em; color: rgb(255 255 255 / .75); min-height: 2.2em; }
.db__nav i { flex: none; width: .75em; height: .75em; border-radius: .2em; background: rgb(255 255 255 / .35); }
.db__nav.is-on { background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; }
.db__nav.is-on i { background: #fff; }
.db__main { display: grid; grid-template-rows: auto auto auto auto; gap: .8em; padding: 1.1em 1.3em 1.3em; min-width: 0; background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.db__head { display: grid; gap: .15em; }
.db__title { font-size: 1.35em; font-weight: 800; min-height: 1.4em; }
.db__sub { color: var(--muted); font-size: .9em; min-height: 1.3em; }
.db__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.db__kpi { display: grid; gap: .2em; padding: .75em .8em; border-radius: .8em; background: var(--surface); border: 1px solid var(--border); }
.db__kpi.is-on { background: var(--brown); border-color: var(--brown); color: #fff; }
.db__kpi-label { font-size: .78em; color: var(--muted); min-height: 1.2em; white-space: nowrap; overflow: hidden; }
.db__kpi.is-on .db__kpi-label { color: rgb(255 255 255 / .75); }
.db__kpi-value { font-size: 1.55em; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.db__kpi-trend { height: .35em; width: 55%; border-radius: .2em; background: color-mix(in srgb, var(--sand) 55%, transparent); }
.db__row { display: grid; grid-template-columns: 1fr 1.6fr; gap: .7em; min-height: 0; }
.db__card { display: grid; align-content: start; gap: .6em; padding: .8em .9em; border-radius: .8em; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.db__card-title { font-size: .85em; font-weight: 800; min-height: 1.3em; white-space: nowrap; overflow: hidden; }
.db__donut { position: relative; display: grid; place-items: center; width: 6.2em; height: 6.2em; margin: .2em auto 0; }
.db__donut svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .db__donut svg { transform: rotate(-90deg) scaleY(-1); }
.db__donut circle { fill: none; stroke-width: 5.5; }
.db__donut-track { stroke: var(--vz-ink); }
.db__donut-fill { stroke: var(--brown); stroke-linecap: round; stroke-dasharray: 72 100; }
.db__donut b { font-size: 1.15em; font-weight: 800; font-variant-numeric: tabular-nums; }
.db__bars { display: flex; align-items: flex-end; gap: .45em; height: 5.2em; padding-inline: .2em; border-bottom: 1px solid var(--border); }
.db__b { flex: 1; border-radius: .3em .3em .1em .1em; background: linear-gradient(to top, var(--brown), color-mix(in srgb, var(--brown) 70%, var(--sand))); transform-origin: bottom; }
.db__b--1 { height: 46%; background: var(--sand); } .db__b--2 { height: 62%; } .db__b--3 { height: 55%; } .db__b--4 { height: 88%; }
.db__b--5 { height: 70%; } .db__b--6 { height: 94%; } .db__b--7 { height: 58%; } .db__b--8 { height: 76%; } .db__b--9 { height: 64%; }
.db__days { display: flex; justify-content: space-between; font-size: .7em; color: var(--muted); }
.db__card--gantt { position: relative; gap: .45em; }
.db__grow { display: grid; grid-template-columns: 22% 1fr; align-items: center; gap: .6em; }
.db__glabel { font-size: .78em; color: var(--muted); min-height: 1.2em; white-space: nowrap; overflow: hidden; }
.db__gtrack { position: relative; height: .75em; }
.db__gbar { position: absolute; top: 0; bottom: 0; border-radius: .4em; background: var(--brown); transform-origin: right; }
[dir="ltr"] .db__gbar { transform-origin: left; }
.db__gbar--1 { inset-inline-start: 0; width: 40%; background: var(--sand); } .db__gbar--2 { inset-inline-start: 28%; width: 46%; } .db__gbar--3 { inset-inline-start: 66%; width: 30%; background: color-mix(in srgb, var(--brown) 70%, var(--sand)); }
.db__today { position: absolute; top: 2.2em; bottom: .8em; inset-inline-start: 58%; width: 1.5px; background: #B04A3A; opacity: .8; }

/* motion: waits off to the side, slides in, then everything builds up */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media--live.is-ready { opacity: 0; transform: perspective(1200px) translateX(calc(var(--dir) * 90px)) rotateY(calc(var(--dir) * 10deg)) scale(.96); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
  .js .hero__media--live.is-in { opacity: 1; transform: none; }
  .hero__media--live.is-ready .db__nav { opacity: 0; transform: translateX(calc(var(--dir) * -10px)); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .hero__media--live.is-in .db__nav { opacity: 1; transform: none; }
  .hero__media--live.is-in .db__nav:nth-child(3) { transition-delay: .55s; } .hero__media--live.is-in .db__nav:nth-child(4) { transition-delay: .62s; }
  .hero__media--live.is-in .db__nav:nth-child(5) { transition-delay: .69s; } .hero__media--live.is-in .db__nav:nth-child(6) { transition-delay: .76s; }
  .hero__media--live.is-in .db__nav:nth-child(7) { transition-delay: .83s; } .hero__media--live.is-in .db__nav:nth-child(8) { transition-delay: .9s; }
  .hero__media--live.is-in .db__nav:nth-child(2) { transition-delay: .48s; }
  .hero__media--live.is-ready .db__kpi, .hero__media--live.is-ready .db__card { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .hero__media--live.is-in .db__kpi, .hero__media--live.is-in .db__card { opacity: 1; transform: none; }
  .hero__media--live.is-in .db__kpi:nth-child(1) { transition-delay: .7s; } .hero__media--live.is-in .db__kpi:nth-child(2) { transition-delay: .8s; }
  .hero__media--live.is-in .db__kpi:nth-child(3) { transition-delay: .9s; } .hero__media--live.is-in .db__kpi:nth-child(4) { transition-delay: 1s; }
  .hero__media--live.is-in .db__card--donut { transition-delay: 1.1s; } .hero__media--live.is-in .db__card--bars { transition-delay: 1.2s; } .hero__media--live.is-in .db__card--gantt { transition-delay: 1.3s; }
  .hero__media--live.is-ready .db__b { transform: scaleY(0); }
  .hero__media--live.is-in .db__b { transform: scaleY(1); transition: transform .8s var(--ease); }
  .hero__media--live.is-in .db__b--2 { transition-delay: 1.35s; } .hero__media--live.is-in .db__b--3 { transition-delay: 1.4s; } .hero__media--live.is-in .db__b--4 { transition-delay: 1.45s; }
  .hero__media--live.is-in .db__b--5 { transition-delay: 1.5s; } .hero__media--live.is-in .db__b--6 { transition-delay: 1.55s; } .hero__media--live.is-in .db__b--7 { transition-delay: 1.6s; }
  .hero__media--live.is-in .db__b--8 { transition-delay: 1.65s; } .hero__media--live.is-in .db__b--9 { transition-delay: 1.7s; } .hero__media--live.is-in .db__b--1 { transition-delay: 1.3s; }
  .hero__media--live.is-ready .db__donut-fill { stroke-dasharray: 0 100; }
  .hero__media--live.is-in .db__donut-fill { stroke-dasharray: 72 100; transition: stroke-dasharray 1.4s var(--ease) 1.3s; }
  .hero__media--live.is-ready .db__gbar { transform: scaleX(0); }
  .hero__media--live.is-in .db__gbar { transform: scaleX(1); transition: transform .9s var(--ease) 1.6s; }
  .hero__media--live.is-in .db__gbar--2 { transition-delay: 1.8s; } .hero__media--live.is-in .db__gbar--3 { transition-delay: 2s; }
  /* the caret while a line is being typed */
  .db .is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-inline-start: 1px; vertical-align: -.12em; background: currentColor; animation: db-caret .6s steps(1) infinite; }
  @keyframes db-caret { 50% { opacity: 0; } }
}
@media (max-width: 959px) { .hero__media--live { max-width: 640px; margin-inline: auto; width: 100%; } }

/* seamless hand-off from the tower to the section below: the glow fades in instead of starting at a hard edge */
.hero::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 220px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 220px);
}
.tower.is-live .tower__stage::after { height: 180px; background: linear-gradient(to bottom, rgb(22 20 18 / 0), color-mix(in srgb, var(--bg) 70%, transparent) 55%, var(--bg)); }
.tower + .hero { margin-top: -1px; }

/* comfortable tap targets for short links and the consent box */
.site-footer__col a { min-width: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 4px; margin-inline: -4px; }
.lead-form input[type="checkbox"] { width: 24px; height: 24px; flex: none; }
