/* Berlabs site. Background, text, and one accent family: blue in tones (brand blue, teal-blue, violet-blue, pastels). */



:root {
  --bg: #D0D4DB;
  --surface: #DEE1E6;
  --fg: #1A1C20;
  --fg-2: #343841;
  --line: rgba(16, 24, 40, .11);
  --line-strong: rgba(16, 24, 40, .22);
  --edge: rgba(16, 24, 40, .15);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .08), 0 12px 30px -14px rgba(16, 24, 40, .22);
  --shadow-2: 0 2px 6px rgba(16, 24, 40, .1), 0 30px 60px -22px rgba(16, 24, 40, .34);
  --media-bg: #C2C9D4;
  --band: #9EA8B7;
  --accent: #3A5A96;
  --accent-strong: #2F4C82;
  --accent-soft: #D2DAE8;
  --btn: #4061A0;
  --btn-hover: #34518A;
  --header-bg: rgba(208, 212, 219, .62);
  --rest-filter: saturate(.6);
  --photo-filter: saturate(.9) brightness(.96);
  --screen-dim: brightness(.93);
  --teal: #1D6170;
  --violet: #4E51A3;
  --sky: #3F76B6;
  --baby: #C0CDE3;
  --mint: #BCD5DB;
  --lilac: #D3D2EA;
  --ghost: #AAB3C2;
  --ghost-2: #93ABD9;

  --font: 'DM Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent: 'Geist', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --hh: 64px;
  --col: 720px;
  --wide: 1080px;
  --ease: cubic-bezier(.33, 0, .13, 1);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1C1C;
    --surface: #28292C;
    --fg: #E6EAF2;
    --fg-2: #C4C9D4;
    --line: rgba(230, 234, 242, .12);
    --line-strong: rgba(230, 234, 242, .24);
    --edge: rgba(230, 234, 242, .11);
    --shadow-1: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .45), 0 14px 34px -16px rgba(0, 0, 0, .7);
    --shadow-2: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45), 0 30px 60px -24px rgba(0, 0, 0, .85);
    --accent: #6B8BD1;
    --accent-strong: #8FA8DE;
    --accent-soft: rgba(107, 139, 209, .14);
    --btn-hover: #4E70B5;
    --header-bg: rgba(28, 28, 28, .62);
    --rest-filter: grayscale(1) contrast(.96);
    --photo-filter: saturate(.82) brightness(.8);
    --screen-dim: none;
    --media-bg: #1C1C1C;
    --band: #4A4C53;
    --teal: #73C2D0;
    --violet: #A6A9F0;
    --sky: #8DB6EA;
    --baby: rgba(141, 182, 234, .15);
    --mint: rgba(115, 194, 208, .14);
    --lilac: rgba(166, 169, 240, .15);
    --ghost: #292929;
    --ghost-2: #253041;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1C1C;
  --surface: #28292C;
  --fg: #E6EAF2;
  --fg-2: #C4C9D4;
  --line: rgba(230, 234, 242, .12);
  --line-strong: rgba(230, 234, 242, .24);
  --edge: rgba(230, 234, 242, .11);
  --shadow-1: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .45), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --shadow-2: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .45), 0 30px 60px -24px rgba(0, 0, 0, .85);
  --accent: #6B8BD1;
  --accent-strong: #8FA8DE;
  --accent-soft: rgba(107, 139, 209, .14);
  --btn-hover: #4E70B5;
  --header-bg: rgba(28, 28, 28, .62);
    --rest-filter: grayscale(1) contrast(.96);
    --photo-filter: saturate(.82) brightness(.8);
    --screen-dim: none;
    --media-bg: #1C1C1C;
    --band: #4A4C53;
  --teal: #73C2D0;
  --violet: #A6A9F0;
  --sky: #8DB6EA;
  --baby: rgba(141, 182, 234, .15);
  --mint: rgba(115, 194, 208, .14);
  --lilac: rgba(166, 169, 240, .15);
  --ghost: #292929;
  --ghost-2: #253041;
  color-scheme: dark;
}

:root[lang="ar"] { --font: 'IBM Plex Sans Arabic', system-ui, sans-serif; --font-display: var(--font); --font-accent: var(--font); }

/* Theme and language switches crossfade the whole page as one image. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-top: var(--hh);
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--btn); color: #fff; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.55s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 84px); line-height: 1.04; letter-spacing: -.038em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.012em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--fg-2); }
.small { font-size: 15px; color: var(--fg-2); }



/* ---------- layout ---------- */
.section { padding-block: clamp(88px, 12vw, 148px); }
.section + .section { border-top: 1px solid var(--line); }
.center { max-width: var(--col); margin-inline: auto; padding-inline: 24px; text-align: center; }
.wide { max-width: var(--wide); margin-inline: auto; padding-inline: 24px; }
.stack > * + * { margin-top: 20px; }
.head { max-width: var(--col); margin: 0 auto clamp(48px, 6vw, 72px); padding-inline: 24px; text-align: center; }
.head p { margin-top: 18px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color 0.55s var(--ease), border-color 0.55s var(--ease), transform 0.55s var(--ease), color 0.55s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

.link {
  color: var(--accent); text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}
:root[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover { background-size: 100% 1px; }
.link .arrow { display: inline-block; transition: transform 0.65s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
:root[dir="rtl"] .link .arrow { transform: scaleX(-1); }
:root[dir="rtl"] .link:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hh);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.7s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { height: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); justify-self: start; }
.brand .mark-icon { width: 22px; height: 25px; }
.brand .wordmark { width: 96px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--fg-2);
  transition: color 0.55s var(--ease), background-color 0.55s var(--ease);
}
.nav a:hover { color: var(--fg); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent);
}
.tools { display: flex; align-items: center; gap: 6px; justify-self: end; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--fg-2);
  transition: background-color 0.55s var(--ease), color 0.55s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); color: var(--fg); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

/* language picker (custom, not a native select) */
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 12px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.lang-btn svg { width: 12px; height: 12px; transition: transform 0.55s var(--ease); }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-out);
}
:root[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: start; font-size: 15px;
  transition: background-color 0.35s var(--ease);
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.lang-menu button[aria-selected="true"] { color: var(--accent); font-weight: 500; }
.lang-menu .code { font-size: 12px; color: var(--fg-2); letter-spacing: .04em; }

.menu-btn { display: none; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars i { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.65s var(--ease), top 0.65s var(--ease); }
.menu-btn .bars i:first-child { top: 2px; }
.menu-btn .bars i:last-child { top: 9px; }
.menu-open .menu-btn .bars i:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars i:last-child { top: 5.5px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: var(--hh) 0 auto 0; z-index: 49; padding: 12px 24px 28px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease-out), visibility 0s linear .35s;
}
.menu-open .sheet { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.sheet a { display: block; padding: 14px 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet a[aria-current="page"] { color: var(--accent); }
.sheet .btn { margin-top: 24px; width: 100%; }

@media (max-width: 860px) {
  .nav, .tools .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .bar { grid-template-columns: 1fr auto; }
}

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - var(--hh)); display: grid; place-items: center; padding-block: 64px 96px; }
.hero .center { max-width: 860px; }
.hero-mark { width: clamp(96px, 13vw, 144px); height: auto; margin: 0 auto 44px; color: var(--fg); cursor: pointer; overflow: visible; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 620px; margin-inline: auto; }

/* logo build: flask draws, code bars slide in, then text rises */
.js .mark-anim .flask { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .mark-anim .bar-r { transform-box: fill-box; transform-origin: left center; opacity: 0; transform: translateX(14px) scaleX(.3); }
.mark-anim.play .flask { animation: draw 1.35s var(--ease) .1s forwards; }
.mark-anim.play .bar-r { animation: bar .85s var(--ease-out) forwards; animation-delay: calc(1.05s + var(--i) * .11s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bar { to { opacity: 1; transform: none; } }
.js .rise { opacity: 0; transform: translateY(14px); }
.played .rise { animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(1.55s + var(--d, 0) * .17s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- accordion (services rows and FAQ) ---------- */
.acc { max-width: 860px; margin-inline: auto; padding-inline: 24px; }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-trigger {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; width: 100%;
  padding: 28px 0; border: 0; background: none; cursor: pointer; text-align: start;
}
.acc-trigger .t { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.022em; line-height: 1.2; transition: color 0.55s var(--ease); }
.acc-trigger .s { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.acc-trigger:hover .t { color: var(--accent); }
.plus {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none;
  transition: transform 0.8s var(--ease), border-color 0.55s var(--ease), background-color 0.55s var(--ease);
}
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--fg); border-radius: 2px; transition: background-color 0.55s var(--ease); }
.plus::after { transform: rotate(90deg); }
.acc-trigger:hover .plus { border-color: var(--accent); }
.acc-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--btn); border-color: var(--btn); }
.acc-trigger[aria-expanded="true"] .plus::before, .acc-trigger[aria-expanded="true"] .plus::after { background: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.9s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-body { padding: 0 60px 32px 0; color: var(--fg-2); opacity: 0; transform: translateY(-6px); transition: opacity 0.65s var(--ease), transform 0.8s var(--ease); }
:root[dir="rtl"] .acc-body { padding: 0 0 32px 60px; }
.acc-item.open .acc-body { opacity: 1; transform: none; transition-delay: .08s; }
.acc-body p + p, .acc-body p + .chips { margin-top: 16px; }
.faq .acc-trigger .t { font-size: clamp(19px, 2vw, 22px); letter-spacing: -.012em; }
.faq .acc-trigger { padding: 22px 0; }
.faq .plus { width: 30px; height: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); font-size: 14px; }
.more { margin-top: 40px; text-align: center; }

/* ---------- two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 44px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden;
  transition: border-color 0.7s var(--ease), transform 0.9s var(--ease);
}
.door::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: var(--accent-soft);
  transition: opacity 0.9s var(--ease);
}
.door:hover { border-color: var(--accent); transform: translateY(-3px); }
.door:hover::before { opacity: 1; }
.door > * { position: relative; }
.door h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.022em; }
.door p { color: var(--fg-2); max-width: 400px; }
.door .link { margin-top: auto; padding-top: 8px; }
.door-icon { width: 44px; height: 44px; color: var(--accent); }

/* ---------- principles ---------- */
.prin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 72px); max-width: 900px; margin-inline: auto; padding-inline: 24px; text-align: center; }
.prin h3 { font-size: clamp(21px, 2.1vw, 25px); margin-bottom: 10px; }
.prin p { color: var(--fg-2); }
.prin .dot { display: block; width: 8px; height: 8px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }

/* ---------- closing call ---------- */
.end h2 { font-size: clamp(36px, 5vw, 64px); }
.end .lead { margin-top: 20px; }
.mailline { margin-top: 28px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--fg-2); font-size: 16px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; font-size: 15px; color: var(--fg);
  transition: border-color 0.55s var(--ease), color 0.55s var(--ease);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn svg { width: 15px; height: 15px; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(80px, 11vw, 140px) clamp(56px, 7vw, 88px); }
.page-head .lead { margin-top: 24px; }

/* ---------- process stepper ---------- */
.steps { max-width: 900px; margin-inline: auto; padding-inline: 24px; }
.step-track { position: relative; }
.step-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.step-track::before, .step-fill { content: ''; position: absolute; top: 19px; height: 2px; border-radius: 2px; }
.step-track::before { inset-inline: calc(100% / 12); background: var(--line); }
.step-fill { inset-inline-start: calc(100% / 12); width: 0; background: var(--accent); transition: width 1.1s var(--ease); }
.step-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%;
  padding: 0 4px; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--fg-2);
  transition: color 0.55s var(--ease);
}
.step-btn .n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 15px; color: var(--fg);
  transition: background-color 0.65s var(--ease), border-color 0.65s var(--ease), color 0.65s var(--ease), transform 0.65s var(--ease);
}
.step-btn:hover .n { border-color: var(--accent); transform: scale(1.06); }
.step-btn.done .n { border-color: var(--accent); color: var(--accent); }
.step-btn[aria-selected="true"] { color: var(--fg); font-weight: 500; }
.step-btn[aria-selected="true"] .n { background: var(--btn); border-color: var(--btn); color: #fff; }
.step-panel {
  margin-top: 48px; padding: clamp(28px, 4vw, 44px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; text-align: start;
}
.step-panel .top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.step-panel h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.step-panel h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--fg); }
.step-panel p { color: var(--fg-2); }
.swap { animation: swap 0.8s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 720px) {
  .step-list { grid-template-columns: 1fr; gap: 0; }
  .step-track::before { inset-inline: auto; inset-inline-start: 19px; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .step-fill { inset-inline-start: 19px; top: 20px; width: 2px !important; height: 0; transition: height 1.1s var(--ease); }
  .step-btn { flex-direction: row; gap: 16px; padding: 8px 0; font-size: 17px; }
  .step-panel { grid-template-columns: 1fr; margin-top: 28px; }
}

/* ---------- about ---------- */
.prose { max-width: 640px; margin-inline: auto; padding-inline: 24px; text-align: center; }
.prose p { font-size: 19px; line-height: 1.65; color: var(--fg-2); }
.prose p + p { margin-top: 20px; }
.prose h2 { margin-bottom: 28px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.monogram {
  display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 14px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 34px; font-weight: 600; letter-spacing: -.02em;
}
.person .name { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.person .role { color: var(--accent); font-weight: 500; }
.person p { max-width: 520px; margin-top: 8px; color: var(--fg-2); }
.mark-big { width: clamp(150px, 22vw, 210px); height: auto; margin: 0 auto 40px; cursor: pointer; color: var(--fg); overflow: visible; }
.hint { margin-top: 18px; font-size: 14px; color: var(--fg-2); }

.facts { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.facts dl { margin: 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.facts .row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 18px 28px; border-top: 1px solid var(--line); text-align: start; transition: background-color 0.55s var(--ease); }
.facts .row:first-child { border-top: 0; }
.facts .row:hover { background: var(--accent-soft); }
.facts dt { color: var(--fg-2); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .facts .row { grid-template-columns: 1fr; gap: 2px; padding: 16px 20px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; max-width: var(--wide); margin-inline: auto; padding-inline: 24px; align-items: start; }
.form { padding: clamp(24px, 4vw, 44px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.field + .field { margin-top: 26px; }
.field label, .field .label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--fg-2); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg);
  font: inherit; font-size: 16px; transition: border-color 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-2); opacity: .7; }
.field input:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: #C0392B; }
.err { display: none; margin-top: 8px; font-size: 14px; color: #C0392B; }
:root[data-theme="dark"] .err { color: #F08A7E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F08A7E; } }
.field.invalid .err { display: block; }
.field .hint2 { margin: -4px 0 12px; font-size: 14px; color: var(--fg-2); }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 15px;
  transition: border-color 0.55s var(--ease), background-color 0.55s var(--ease), color 0.55s var(--ease);
}
:root[dir="rtl"] .topic { padding: 10px 12px 10px 16px; }
.topic:hover { border-color: var(--accent); }
.topic .box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); transition: background-color 0.55s var(--ease), border-color 0.55s var(--ease); }
.topic .box svg { width: 12px; height: 12px; }
.topic .box path { stroke: #fff; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.65s var(--ease) .05s; }
.topic[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.topic[aria-pressed="true"] .box { background: var(--btn); border-color: var(--btn); }
.topic[aria-pressed="true"] .box path { stroke-dashoffset: 0; }
.form .btn { margin-top: 32px; width: 100%; }
.form .note { margin-top: 16px; font-size: 14px; color: var(--fg-2); text-align: center; }
.status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--fg); font-size: 15px; display: none; }
.status.show { display: block; animation: swap 0.8s var(--ease-out); }

.side { display: flex; flex-direction: column; gap: 12px; }
.side-item {
  display: block; width: 100%; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  text-align: start; text-decoration: none; cursor: pointer;
  transition: border-color 0.55s var(--ease), transform 0.7s var(--ease);
}
a.side-item:hover, button.side-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.side-item .k { display: block; font-size: 14px; color: var(--fg-2); }
.side-item .v { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; word-break: break-word; }
.side-item .a { display: block; margin-top: 8px; font-size: 14px; color: var(--accent); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 4.3s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- privacy ---------- */
.legal { max-width: 680px; margin-inline: auto; padding-inline: 24px; }
.legal section + section { margin-top: 44px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.018em; margin-bottom: 12px; }
.legal p { color: var(--fg-2); }
.updated { margin-top: 16px; color: var(--fg-2); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 24px 48px; text-align: center; }
.site-footer .f-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: var(--fg); }
.site-footer .f-mark svg.mark-icon { width: 34px; height: 38px; }
.site-footer .f-mark svg.wordmark { width: 128px; }
.f-tag { margin-top: 14px; color: var(--fg-2); font-size: 15px; }
.f-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 32px 0 0; padding: 0; list-style: none; }
.f-nav a { text-decoration: none; color: var(--fg-2); font-size: 15px; transition: color 0.55s var(--ease); }
.f-nav a:hover { color: var(--accent); }
.f-legal { max-width: 720px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--fg-2); }
.f-legal strong { font-weight: 500; color: var(--fg); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; padding: 12px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 500;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform 0.8s var(--ease-out), opacity 0.55s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .doors, .prin { grid-template-columns: 1fr; }
  .acc-body { padding-inline-end: 0; }
  :root[dir="rtl"] .acc-body { padding-inline-start: 0; }
  .hero { min-height: auto; padding-block: 56px 88px; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .mark-anim .flask { stroke-dashoffset: 0; }
  .js .mark-anim .bar-r, .js .rise { opacity: 1; transform: none; }
}

.hero-mark svg, .mark-big svg { width: 100%; height: auto; overflow: visible; }

/* services page: one centered block per service */
.svc-list { border-top: 1px solid var(--line); }
.svc { padding: clamp(64px, 8vw, 104px) 24px; text-align: center; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc > * { max-width: 672px; margin-inline: auto; }
.svc h2 { font-size: clamp(30px, 3.6vw, 46px); }
.svc .lead { margin-top: 14px; color: var(--fg); }
.svc p:not(.lead) { margin-top: 18px; color: var(--fg-2); }
.svc .chips { justify-content: center; margin-top: 28px; }
.contact-wrap { padding-bottom: clamp(88px, 12vw, 148px); }
.legal-wrap { padding-bottom: 24px; }
/* The logo never mirrors in RTL. */
.brand, .site-footer .f-mark { direction: ltr; }
.page-head .center { max-width: 960px; }

/* ---------- blue tones ---------- */
::selection { background: var(--violet); color: #fff; }
.nav a:hover, .icon-btn:hover, .lang-menu button:hover, .lang-menu button:focus-visible { background: var(--baby); }
.chips li:nth-child(3n+1) { background: var(--baby); }
.chips li:nth-child(3n+2) { background: var(--mint); }
.chips li:nth-child(3n) { background: var(--lilac); }
.prin > div:nth-child(1) .dot { background: var(--teal); box-shadow: 0 0 0 6px var(--mint); }
.prin > div:nth-child(2) .dot { background: var(--accent); box-shadow: 0 0 0 6px var(--baby); }
.prin > div:nth-child(3) .dot { background: var(--violet); box-shadow: 0 0 0 6px var(--lilac); }
.prin > div:nth-child(4) .dot { background: var(--sky); box-shadow: 0 0 0 6px var(--baby); }
.door:nth-child(1) .door-icon, .door:nth-child(1) .link { color: var(--teal); }
.door:nth-child(2) .door-icon, .door:nth-child(2) .link { color: var(--violet); }
.door:nth-child(1)::before { background: var(--mint); }
.door:nth-child(2)::before { background: var(--lilac); }
.door:nth-child(1):hover { border-color: var(--teal); }
.door:nth-child(2):hover { border-color: var(--violet); }
.acc-trigger:hover .t { color: var(--violet); }
.acc-trigger:hover .plus { border-color: var(--violet); }
.step-btn.done .n { border-color: var(--teal); color: var(--teal); }
.step-btn:hover .n { border-color: var(--violet); }
.step-fill { background: var(--accent); }
.pill { background: var(--lilac); color: var(--violet); }
.live::before { background: var(--teal); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.topic:hover { border-color: var(--teal); }
.topic[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.monogram { background: var(--lilac); color: var(--violet); }
.facts .row:hover { background: var(--baby); }
a.side-item:hover, button.side-item:hover { border-color: var(--teal); }
.side-item .a { color: var(--teal); }
.copy-btn:hover { border-color: var(--teal); color: var(--teal); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px var(--baby); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- slow scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.6s var(--ease), transform 1.9s var(--ease-out); transition-delay: calc(var(--rd, 0) * 150ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- magnetic buttons: a small pull toward the cursor ---------- */
.btn, .icon-btn, .copy-btn {
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: background-color .7s var(--ease), border-color .7s var(--ease), color .7s var(--ease), transform 1.1s var(--ease-out);
}
.btn:active, .icon-btn:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.97); transition-duration: .7s, .7s, .7s, .25s; }

/* ---------- logo tilt follows the cursor ---------- */
.hero-mark, .mark-big { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }

/* ---------- cursor ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.has-cursor .cur.on { opacity: 1; }
.cur-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.cur-dot i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--accent); transition: transform 1.1s var(--ease-out), background-color .9s var(--ease); }
.cur-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; }
.cur-ring i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sky) 70%, transparent);
  transform: scale(var(--s, 1));
  transition: transform 1.2s var(--ease-out), background-color .9s var(--ease), border-color .9s var(--ease);
}
.cur-ring.is-link i { border-color: color-mix(in srgb, var(--teal) 75%, transparent); }
.cur-ring.is-text i { border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.cur-dot.is-link i { transform: scale(1.8); background: var(--teal); }
.cur-dot.is-down i { transform: scale(.7); }
.cur-dot.is-link.is-down i { transform: scale(1.35); }
.cur-dot.is-text i { background: var(--violet); }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }

/* ---------- type roles: titles / subtitles / body ---------- */
h1, h2, h3, h4, .acc-trigger .t, .person .name, .monogram, .sheet a { font-family: var(--font-display); }
.lead, .acc-trigger .s, .f-tag, .person .role, .svc .lead, .door p, .prin p, .updated { font-family: var(--font-accent); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; letter-spacing: -.005em; }
.acc-trigger .s { margin-top: 8px; font-size: 17px; line-height: 1.45; }
.door p, .prin p { font-size: 17px; line-height: 1.55; }
.f-tag { font-size: 16px; }
.person .role { font-size: 17px; }
.updated { font-size: 16px; }
:root[lang="ar"] .lead, :root[lang="ar"] .acc-trigger .s, :root[lang="ar"] .door p, :root[lang="ar"] .prin p { font-size: revert-layer; }
:root[lang="ar"] .f-tag, :root[lang="ar"] .person .role, :root[lang="ar"] .updated { font-style: normal; }

/* ---------- living backgrounds: drifting code and logo silhouettes ---------- */
[data-bg] { position: relative; overflow: hidden; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; direction: ltr; }
.code-row {
  position: absolute; left: 0; right: 0; white-space: nowrap;
  font: 14px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace; color: var(--ghost);
  transform: translateX(var(--sx, 0px));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.code-row em { font-style: normal; color: var(--ghost-2); }
.code-track { display: inline-flex; animation: drift var(--dur, 140s) linear infinite; animation-direction: var(--dir, normal); animation-play-state: paused; }
.code-track span { padding-inline-end: 64px; }
.bg-live .code-track, .bg-live .ghost-mark, .bg-live .ghost-mark rect { animation-play-state: running; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero .bg { -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 52%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 46% 42% at 50% 52%, transparent 55%, #000 100%); }

.ghost-wrap { position: absolute; top: 50%; width: clamp(300px, 38vw, 540px); transform: translateY(calc(-50% + var(--py, 0px))); }
.ghost-wrap.right { right: -9%; }
.ghost-wrap.left { left: -9%; }
.ghost-mark { width: 100%; height: auto; overflow: visible; animation: float 22s ease-in-out infinite alternate; animation-play-state: paused; }
.ghost-wrap.left .ghost-mark { animation-delay: -9s; }
.ghost-mark path { stroke: var(--ghost); }
.ghost-mark rect { fill: var(--ghost-2); transform-box: fill-box; animation: slide 14s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -2.3s); animation-play-state: paused; }
@keyframes float { from { transform: translateY(-12px) rotate(-2deg); } to { transform: translateY(12px) rotate(2deg); } }
@keyframes slide { from { transform: translateX(-3px); } to { transform: translateX(4px); } }
@media (max-width: 720px) { .ghost-wrap { width: 280px; opacity: .8; } .ghost-wrap.right { right: -30%; } .ghost-wrap.left { left: -30%; } .code-row { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .code-track, .ghost-mark, .ghost-mark rect { animation: none !important; } }
/* Code rows stay out of the reading column: they live at the sides and fade toward the middle. */
[data-bg="code"]:not(.hero) > .bg {
  -webkit-mask-image: linear-gradient(90deg, #000 6%, transparent 32%, transparent 68%, #000 94%);
  mask-image: linear-gradient(90deg, #000 6%, transparent 32%, transparent 68%, #000 94%);
}
@media (max-width: 720px) {
  [data-bg="code"]:not(.hero) > .bg, .hero .bg { -webkit-mask-image: linear-gradient(180deg, #000, transparent 22%, transparent 78%, #000); mask-image: linear-gradient(180deg, #000, transparent 22%, transparent 78%, #000); }
}

.side-item .v.live { display: flex; align-items: center; gap: 10px; }
.live::before { flex: none; }

/* ---------- sample work (grey until hovered, colour fades in slowly) ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work {
  display: flex; flex-direction: column; gap: 18px; padding: 20px 20px 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg);
  transition: border-color 1.2s var(--ease-out);
}
.work-tags { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--fg-2); }
.work-tags .sample { display: inline-flex; align-items: center; gap: 8px; }
.work-tags .sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.work-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-inline: 6px; }
.work-foot h3 { font-size: clamp(21px, 2vw, 25px); margin-bottom: 6px; }
.work-foot p { color: var(--fg-2); font-size: 16px; line-height: 1.55; }
.work-arrow { flex: none; font-size: 22px; line-height: 1; color: var(--fg-2); transition: transform 1.4s var(--ease-out), color 1.2s var(--ease-out); }
:root[dir="rtl"] .work-arrow { transform: scaleX(-1); }
@media (hover: hover) {
  .work .work-media { filter: var(--rest-filter); }
  .work:hover .work-media, .work:focus-visible .work-media { filter: none; }
  .work:hover { border-color: var(--line-strong); }
  .work:hover .work-arrow { transform: translate(3px, -3px); color: var(--accent); }
  :root[dir="rtl"] .work:hover .work-arrow { transform: scaleX(-1) translate(3px, -3px); }
}
@media (max-width: 860px) { .works { grid-template-columns: 1fr; } }

/* ---------- sample screens: tilted app windows on a dot grid ---------- */
.work-media {
  position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(var(--line-strong) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--media-bg);
  transition: filter 1.8s var(--ease-out);
}
.work:nth-child(2) .work-media { background: radial-gradient(var(--line-strong) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--media-bg); }
.work:nth-child(3) .work-media { background: radial-gradient(var(--line-strong) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--media-bg); }
/* Cards show the whole screen facing the viewer (CSS zoom keeps it crisp).
   On hover it lifts and leans toward the pointer; site.js sets --rx/--ry. */
.stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; }
.tilt { position: relative; transition: transform 1.6s var(--ease-out); }
.note {
  position: absolute; right: 4%; bottom: 7%; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px;
  border-radius: 14px; background: #3D63B0; color: #fff; box-shadow: 0 18px 40px -14px rgba(20, 40, 90, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
  font: 10.5px/1.3 'DM Sans', sans-serif; opacity: 0; transform: translateY(12px);
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out);
}
:root[dir="rtl"] .note { right: auto; left: 4%; }
.note.left { right: auto; left: 4%; }
:root[dir="rtl"] .note.left { left: auto; right: 4%; }
.note .ic { width: 24px; height: 24px; padding: 5px; border-radius: 8px; background: rgba(255, 255, 255, .2); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.note b { display: block; font-size: 11.5px; }
@media (hover: hover) {
  .work:hover .tilt, .work:focus-visible .tilt { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.03); }
  .work:hover .note, .work:focus-visible .note { opacity: 1; transform: none; }
}
@media (hover: none) { .note { opacity: 1; transform: none; } }

/* the app UI itself, always light like a real product screen */
.app {
  position: relative; width: 1100px; height: 700px; zoom: var(--k, .5);
  border-radius: 16px; overflow: hidden; background: #F4F6FA; color: #17191F; box-shadow: 0 0 0 1px rgba(20, 32, 64, .12), 0 30px 60px -26px rgba(20, 32, 64, .5);
  font: 13px/1.4 'DM Sans', system-ui, sans-serif; text-align: start; filter: var(--screen-dim, none);
  --blue: #4061A0; --teal: #2A9DB0; --vio: #6C6FD0; --sky: #7FB0EE; --red: #D35D52; --ink2: #5B6170; --ln: #E6E9F0;
}
:root[lang="ar"] .app { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.app * { box-sizing: border-box; }
.app h4, .app h5, .app h3, .app p { margin: 0; font-family: inherit; letter-spacing: 0; }
.app em { font-style: normal; }
.app .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app .av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E3EAF7; color: var(--blue); font-style: normal; font-size: 11px; font-weight: 600; }
.app .av.sm { width: 32px; height: 32px; }
.app .card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 0 var(--ln); }
.app h5 { font-size: 14px; font-weight: 600; }
.app .c-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.app .pill::before { content: none; }
.app .pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.app .pill.ok, .app .pill.ready { background: #DDF1F4; color: #1F7F8F; }
.app .pill.wait, .app .pill.prep { background: #E6E6FA; color: #5558B8; }
.app .pill.late { background: #FBE3E0; color: #B4473D; }
.app .pill.new { background: #E3EAF7; color: var(--blue); }
.a-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.a-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); }
.a-logo.t { background: var(--teal); }

/* dashboard */
.dash { display: grid; grid-template-columns: 200px 1fr; }
.a-side { display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; background: #fff; border-inline-end: 1px solid var(--ln); }
.a-side nav { display: grid; gap: 4px; }
.a-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink2); font-size: 13.5px; }
.a-side nav a.on { background: #EBF0FA; color: var(--blue); font-weight: 600; }
.a-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #F4F6FA; font-size: 12px; color: var(--ink2); }
.a-user b { display: block; color: #17191F; font-size: 13px; }
.a-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; padding: 18px 22px; min-width: 0; min-height: 0; }
.a-top { display: flex; align-items: center; gap: 14px; }
.a-top > div:first-child { margin-inline-end: auto; color: var(--ink2); }
.a-top h4 { font-size: 20px; font-weight: 600; color: #17191F; }
.a-search { display: flex; align-items: center; gap: 8px; width: 230px; padding: 9px 12px; border-radius: 10px; background: #fff; color: #9AA0AE; box-shadow: 0 1px 0 var(--ln); }
.a-bell { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: #fff; color: var(--ink2); box-shadow: 0 1px 0 var(--ln); }
.kpi b { font-size: 26px; font-weight: 600; color: #17191F; letter-spacing: -.01em; }
.kpi b.red { color: var(--red); }
.kpi small { font-size: 12px; }
.kpi small em { color: var(--teal); font-weight: 600; }
.kpi .tag-late { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: #FBE3E0; color: #B4473D; }
.kpi.prime { background: var(--blue); color: rgba(255, 255, 255, .8); }
.kpi.prime b { color: #fff; }
.kpi.prime small em { color: #BDF0F6; }
.spark { width: 120px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; min-height: 0; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend .l1 { background: var(--blue); }
.legend .l2 { background: #CFE0F7; margin-inline-start: 8px; }
.plot { display: grid; grid-template-columns: 38px 1fr; height: calc(100% - 34px); min-height: 0; }
.yax { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 20px; color: #9AA0AE; font-size: 11px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; border-bottom: 1px solid var(--ln); background: repeating-linear-gradient(to top, transparent 0 calc(33.3% - 1px), #F0F2F6 calc(33.3% - 1px) 33.3%); }
.grp { display: grid; grid-template-rows: 1fr 20px; justify-items: center; color: #9AA0AE; font-size: 11px; }
.pair { display: flex; align-items: flex-end; gap: 5px; height: 100%; width: 100%; justify-content: center; }
.pair i { width: 34%; border-radius: 5px 5px 2px 2px; }
.pair .b1 { background: var(--blue); }
.pair .b2 { background: #DCE7F8; }
.grp:last-child .b1 { background: var(--teal); }
.due h5 { margin-bottom: 10px; }
.due-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #F0F2F6; }
.due-row div { flex: 1; min-width: 0; }
.due-row b { display: block; font-size: 13px; font-weight: 600; }
.due-row span { color: var(--ink2); font-size: 12px; }
.due-row strong { font-size: 13px; }
.table { padding-top: 12px; padding-bottom: 6px; }
.table .c-head { margin-bottom: 6px; }
.table .tr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 110px; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid #F0F2F6; }
.table .th { border-top: 0; padding-top: 0; color: #9AA0AE; font-size: 11.5px; }
.table .who { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.table .who .av { width: 26px; height: 26px; font-size: 10px; }
.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-btn { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; }

/* calendar */
.cal2 { display: grid; grid-template-columns: 230px 1fr; }
.c-side { display: flex; flex-direction: column; gap: 20px; padding: 22px 18px; background: #fff; border-inline-end: 1px solid var(--ln); }
.c-today { color: var(--ink2); }
.c-today h4 { margin-top: 2px; font-size: 19px; font-weight: 600; color: #17191F; }
.month .wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; color: #9AA0AE; font-size: 11px; text-align: center; }
.month .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 11.5px; text-align: center; }
.month .grid i { display: grid; place-items: center; height: 24px; border-radius: 7px; font-style: normal; color: #3B404C; }
.month .grid i.today { background: var(--teal); color: #fff; font-weight: 600; }
.month .grid i.dot { box-shadow: inset 0 -3px 0 -1px #fff, inset 0 -5px 0 -2px var(--vio); }
.c-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-stats div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: #F4F6FA; color: var(--ink2); font-size: 11px; }
.c-stats b { font-size: 18px; color: #17191F; }
.c-new { margin-top: auto; padding: 11px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 600; text-align: center; }
.c-main { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 18px 20px; min-width: 0; }
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #DDF1F4; color: #1C6672; font-weight: 500; }
.banner .ic { color: var(--teal); }
.sched { display: grid; grid-template-rows: auto 1fr; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--ln); overflow: hidden; }
.s-head { display: grid; grid-template-columns: 60px repeat(4, 1fr); border-bottom: 1px solid var(--ln); }
.s-head .who { display: flex; align-items: center; gap: 8px; padding: 12px 12px; font-size: 13px; border-inline-start: 1px solid #F0F2F6; }
.s-head .who em { margin-inline-start: auto; padding: 3px 8px; border-radius: 999px; background: #FBE3E0; color: #B4473D; font-size: 10.5px; font-weight: 600; }
.s-head .who.off { color: #9AA0AE; }
.s-body { position: relative; display: grid; grid-template-columns: 60px repeat(4, 1fr); }
.hours { display: grid; grid-template-rows: repeat(8, 1fr); color: #9AA0AE; font-size: 11px; }
.hours span { padding: 6px 10px; border-top: 1px solid #F3F4F8; }
.col { position: relative; border-inline-start: 1px solid #F0F2F6; background: repeating-linear-gradient(to bottom, transparent 0 calc(12.5% - 1px), #F3F4F8 calc(12.5% - 1px) 12.5%); }
.col.off { background: repeating-linear-gradient(135deg, #F6F7FA 0 8px, #fff 8px 16px); }
.evt { position: absolute; left: 6px; right: 6px; margin-top: 3px; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border-radius: 9px; font-size: 11.5px; color: var(--ink2); overflow: hidden; }
.evt b { color: #17191F; font-size: 12.5px; }
.evt em { position: absolute; top: 6px; inset-inline-end: 6px; padding: 2px 6px; border-radius: 999px; background: #fff; color: var(--teal); font-size: 10px; font-weight: 600; }
.evt.t { background: #DDF1F4; border-inline-start: 3px solid var(--teal); }
.evt.v { background: #E6E6FA; border-inline-start: 3px solid var(--vio); }
.evt.s { background: #E1ECFA; border-inline-start: 3px solid var(--sky); }
.now-line { position: absolute; left: 60px; right: 0; height: 2px; background: var(--red); }
.now-line i { position: absolute; inset-inline-start: -52px; top: -9px; padding: 2px 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; }

/* company website */
.web2 { display: grid; grid-template-rows: auto 1fr; background: #E9ECF2; }
.chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #E9ECF2; }
.chrome > i { width: 11px; height: 11px; border-radius: 50%; background: #CDD2DB; }
.chrome .url { display: flex; align-items: center; gap: 6px; margin-inline-start: 18px; padding: 6px 14px; width: 320px; border-radius: 8px; background: #fff; color: var(--ink2); font-size: 12px; direction: ltr; }
.chrome .url .ic { width: 13px; height: 13px; }
.page { display: grid; grid-template-rows: auto 1fr auto; background: #fff; }
.w-nav { display: flex; align-items: center; gap: 28px; padding: 18px 36px; border-bottom: 1px solid #F0F2F6; }
.w-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: .14em; color: #0F2A3D; direction: ltr; }
.w-logo i { width: 18px; height: 18px; border-radius: 5px; background: #E06A3B; }
.w-nav nav { display: flex; gap: 22px; margin-inline-end: auto; color: var(--ink2); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #F1F3F7; font-size: 11px; font-weight: 600; color: var(--ink2); }
.langs em { padding: 4px 9px; border-radius: 999px; }
.langs em.on { background: #fff; color: #0F2A3D; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.w-btn { display: inline-block; padding: 9px 16px; border-radius: 10px; background: #0F2A3D; color: #fff; font-weight: 600; font-size: 12.5px; }
.w-btn.big { padding: 13px 22px; font-size: 14px; background: #E06A3B; }
.w-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 30px 36px 10px; }
.w-copy h3 { font-size: 38px; line-height: 1.1; font-weight: 700; color: #0F2A3D; letter-spacing: -.02em; }
.w-copy p { margin-top: 14px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.w-actions { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.w-ghost { padding: 12px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px #D5DAE3; color: #0F2A3D; font-weight: 600; }
.w-stats { display: flex; gap: 26px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #F0F2F6; color: var(--ink2); font-size: 12px; }
.w-stats b { display: block; font-size: 22px; color: #0F2A3D; }
.w-visual { position: relative; height: 330px; border-radius: 18px; background: #143047; overflow: hidden; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .land { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .18); stroke-width: 1.2; }
.map .route { fill: none; stroke: #F2A541; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.map .route.r2 { stroke: rgba(255, 255, 255, .45); }
.map .city { fill: #fff; stroke: rgba(242, 165, 65, .5); stroke-width: 6; }
.map text { fill: rgba(255, 255, 255, .85); font: 600 13px 'DM Sans', sans-serif; }
.track { position: absolute; inset-inline-start: 22px; bottom: 22px; width: 250px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); font-size: 12px; color: var(--ink2); }
.tr-top { display: flex; align-items: center; gap: 8px; color: #0F2A3D; }
.tr-top em { margin-inline-start: auto; padding: 3px 8px; border-radius: 999px; background: #FDEEDC; color: #B5651D; font-size: 10.5px; font-weight: 600; }
.tr-route { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; color: #0F2A3D; font-weight: 600; direction: ltr; }
.tr-route i { flex: 1; height: 0; border-top: 2px dashed #D5DAE3; }
.track .pbar { height: 6px; margin-bottom: 8px; border-radius: 3px; background: #F1F3F7; overflow: hidden; }
.track .pbar i { display: block; width: 64%; height: 100%; border-radius: 3px; background: #E06A3B; }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 36px 26px; }
.w-cards div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #F5F7FA; color: #0F2A3D; font-weight: 600; }
.w-cards .ic { color: #E06A3B; }

/* WhatsApp orders */
.orders2 { display: grid; grid-template-columns: 340px 1fr; }
.o-chat { display: grid; grid-template-rows: auto 1fr auto; background: #ECE7DF; border-inline-end: 1px solid var(--ln); }
.o-chat header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #1F5C4F; color: rgba(255, 255, 255, .75); font-size: 12px; }
.o-chat header b { display: block; color: #fff; font-size: 14px; }
.o-chat .av.g { background: #CFE8DD; color: #1F5C4F; }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; }
.msgs p { position: relative; max-width: 82%; padding: 9px 12px 18px; border-radius: 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.msgs .in { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msgs .out { align-self: flex-end; background: #D6F5C9; border-start-end-radius: 4px; }
.msgs time { position: absolute; inset-inline-end: 10px; bottom: 4px; font-size: 10px; color: #7A8290; }
.o-input { margin: 0 12px 14px; padding: 11px 14px; border-radius: 999px; background: #fff; color: #9AA0AE; }
.o-main { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 22px; min-width: 0; }
.o-top { display: flex; align-items: center; justify-content: space-between; }
.o-top h4 { font-size: 20px; font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--ln); }
.tabs em { padding: 7px 12px; border-radius: 9px; color: var(--ink2); font-size: 12.5px; }
.tabs em b { margin-inline-start: 4px; padding: 1px 6px; border-radius: 6px; background: #F1F3F7; font-size: 11px; }
.tabs em.on { background: #EBF0FA; color: var(--blue); font-weight: 600; }
.o-table { align-self: start; padding: 6px 18px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--ln); }
.o-table .tr { display: grid; grid-template-columns: 80px 140px 1fr 120px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #F0F2F6; }
.o-table .th { border-top: 0; color: #9AA0AE; font-size: 11.5px; padding-bottom: 6px; }
.o-table .tr.fresh { position: relative; }
.o-table .tr.fresh::before { content: ""; position: absolute; inset: 4px -10px; z-index: 0; border-radius: 10px; background: #F2F6FD; }
.o-table .tr.fresh > * { position: relative; }
.o-table .num { color: var(--blue); }
.o-table .who { font-weight: 600; }
.o-table .items { color: var(--ink2); }
.o-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.o-bottom > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--ln); color: var(--ink2); font-size: 12.5px; }
.o-bottom b { display: block; color: #17191F; font-size: 13.5px; }
.o-bottom .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.stock .ic { background: #FDEEDC; color: #B5651D; }
.sent .ic { background: #DDF1F4; color: var(--teal); }

/* ---------- capability band ---------- */
.band {
  overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.band-track { display: inline-flex; white-space: nowrap; animation: drift 80s linear infinite; animation-play-state: paused; }
.band.bg-live .band-track { animation-play-state: running; }
.band-track > span { display: inline-flex; align-items: center; }
.band-item {
  padding-inline: 34px; font: 500 clamp(28px, 3.6vw, 46px)/1.1 var(--font-display); letter-spacing: -.02em;
  color: var(--band);
  transition: color 1.6s var(--ease-out), -webkit-text-stroke-color 1.6s var(--ease-out);
}
.band:hover .band-item { color: var(--fg-2); }
.band .band-item:hover { color: var(--violet); }
.band-sep { flex: none; width: 34px; height: 8px; border-radius: 4px; background: var(--teal); }
.band-sep.v { width: 22px; background: var(--violet); }
.band-sep.s { width: 28px; background: var(--sky); }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none !important; } }

/* ---------- approach statement ---------- */
.vision blockquote { margin: 0; }
.vision .center { max-width: 920px; }
.vq { font: 300 clamp(30px, 4.4vw, 54px)/1.2 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.vision footer { margin-top: 28px; font-size: 15px; color: var(--fg-2); }
:root[lang="ar"] .vq { letter-spacing: 0; line-height: 1.45; }

/* ---------- sectors and technology chips ---------- */
.sectors { max-width: 860px; margin: 56px auto 0; padding-inline: 24px; text-align: center; }
.sectors p { margin-bottom: 18px; color: var(--fg-2); font-size: 15px; }
.sectors .chips { justify-content: center; }
.sectors .chips li { transition: background-color 1s var(--ease-out), color 1s var(--ease-out); }
.sectors .chips li:hover { background: var(--btn); color: #fff; }
.chips.tech { margin-top: 12px; }
.chips.tech li { background: transparent; border: 1px solid var(--line-strong); color: var(--fg-2); font: 13px/1.4 ui-monospace, 'Cascadia Code', Consolas, monospace; }
.svc .chips.tech li { background: transparent; }
.js .work.reveal { transition: opacity 1.6s var(--ease), transform 1.9s var(--ease-out), border-color 1.2s var(--ease-out), box-shadow 1.4s var(--ease-out); transition-delay: calc(var(--rd, 0) * 150ms), calc(var(--rd, 0) * 150ms), 0s, 0s; }
.note em { font-style: normal; }

/* ---------- sectors: tabs on one side, the chosen sector explained on the other ---------- */
.ind { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.ind-tabs { display: grid; gap: 6px; }
.ind-tab {
  position: relative; display: flex; align-items: center; width: 100%; padding: 16px 20px; border: 1px solid transparent; border-radius: 16px;
  background: transparent; cursor: pointer; text-align: start; font-size: 17px; color: var(--fg-2);
  transition: background-color 1s var(--ease-out), color 1s var(--ease-out), border-color 1s var(--ease-out);
}
.ind-tab::after {
  content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--teal); opacity: 0; transform: scale(.4); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.ind-tab:hover { background: var(--baby); color: var(--fg); }
.ind-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--fg); font-weight: 500; }
.ind-tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.ind-panel { min-height: 100%; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: start; }
.ind-panel h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.022em; margin-bottom: 28px; }
.ind-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ind-cols h4, .model h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.ind-cols p { font-family: var(--font-accent); font-size: 18px; line-height: 1.55; color: var(--fg); }
.ind-panel.swap-soft > * { animation: softIn 1.1s var(--ease-out) both; }
.ind-panel.swap-soft > *:nth-child(2) { animation-delay: .08s; }
@keyframes softIn { from { opacity: 0; transform: translateY(6px); } }
.ticks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 7px; background: var(--mint); fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .ind { grid-template-columns: 1fr; }
  .ind-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .ind-tab { width: auto; padding: 10px 16px; border-color: var(--line); border-radius: 999px; font-size: 15px; }
  .ind-tab::after { display: none; }
  .ind-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- ways to work with us ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 36px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-align: start;
  transition: border-color 1.2s var(--ease-out), transform 1.6s var(--ease-out);
}
.model:hover { border-color: var(--teal); transform: translateY(-3px); }
.model:nth-child(2):hover { border-color: var(--accent); }
.model:nth-child(3):hover { border-color: var(--violet); }
.model:nth-child(2) .ticks svg { background: var(--baby); stroke: var(--accent); }
.model:nth-child(3) .ticks svg { background: var(--lilac); stroke: var(--violet); }
.model h3 { font-size: clamp(21px, 2vw, 25px); }
.model > p:not(.fit) { color: var(--fg-2); }
.model .fit { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-accent); font-size: 15px; color: var(--fg-2); }
.js .model.reveal { transition: opacity 1.6s var(--ease), transform 1.9s var(--ease-out), border-color 1.2s var(--ease-out), box-shadow 1.4s var(--ease-out); }
@media (max-width: 960px) { .models { grid-template-columns: 1fr; } }

.sectors .chips a { color: inherit; text-decoration: none; }
.js .model.reveal.in:hover { transform: translateY(-3px); }

/* ---------- example pages (work-*.html) ---------- */
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; font-size: 14px; color: var(--fg-2); }
.crumbs a { color: inherit; text-decoration: none; transition: color 1s var(--ease-out); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--fg); }
.work-head .work-tags { justify-content: center; gap: 22px; margin-bottom: 22px; }
.work-head .chips.tech { justify-content: center; margin-top: 30px; }
.screen-sec { padding-bottom: clamp(72px, 9vw, 120px); }
.screen-frame {
  padding: clamp(10px, 1.8vw, 22px); border-radius: 30px; border: 1px solid var(--line);
  background: radial-gradient(var(--line-strong) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--bg);
}
.screen-full { width: 100%; }
.screen-full .app { box-shadow: 0 0 0 1px rgba(20, 32, 64, .08), 0 50px 90px -50px rgba(20, 32, 64, .5); }
.caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--fg-2); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  padding: clamp(24px, 3vw, 32px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: start;
  transition: border-color 1.2s var(--ease-out);
}
.feat .dot { display: block; width: 10px; height: 10px; margin-bottom: 20px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--mint); }
.feat:nth-child(3n+2) .dot { background: var(--accent); box-shadow: 0 0 0 6px var(--baby); }
.feat:nth-child(3n) .dot { background: var(--violet); box-shadow: 0 0 0 6px var(--lilac); }
.feat:hover { border-color: var(--line-strong); }
.feat h3 { font-size: 20px; margin-bottom: 8px; }
.feat p { color: var(--fg-2); }
.js .feat.reveal { transition: opacity 1.6s var(--ease), transform 1.9s var(--ease-out), border-color 1.2s var(--ease-out), box-shadow 1.4s var(--ease-out); }
.api-note { max-width: 720px; margin: 32px auto 0; padding: 14px 20px; border-radius: 16px; background: var(--baby); color: var(--fg); font-size: 15px; text-align: center; }
.chips.who { justify-content: center; margin-top: 28px; }
.chips.who a { color: inherit; text-decoration: none; }
.chips.who li { transition: background-color 1s var(--ease-out), color 1s var(--ease-out); }
.chips.who li:hover { background: var(--btn); color: #fff; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 auto; padding-inline: 24px; list-style: none; counter-reset: none; }
.how li { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); text-align: start; }
.how .n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 600; font-size: 14px; }
.how li:nth-child(2) .n { background: var(--teal); }
.how li:nth-child(3) .n { background: var(--violet); }
.how li:nth-child(4) .n { background: var(--sky); }
.how h3 { font-size: 19px; margin-bottom: 8px; }
.how p { color: var(--fg-2); font-size: 16px; }

.works.more3 { grid-template-columns: repeat(3, 1fr); }
.works.more3 .work-foot p { font-size: 15px; }
@media (max-width: 960px) {
  .feats, .works.more3 { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feats, .works.more3, .how { grid-template-columns: 1fr; }
}

/* Work cards use more of the page so the screens are big enough to read. */
.works:not(.more3) { max-width: 1440px; gap: 24px; }
.works:not(.more3) .work { padding: 16px 16px 26px; }
.works:not(.more3) .work-tags, .works:not(.more3) .work-foot { padding-inline: 8px; }

/* ---------- elevation: every box sits clearly on top of the page ---------- */
.work, .door, .model, .feat, .ind-panel, .step-panel, .form, .side-item, .facts dl, .screen-frame, .ind-tab[aria-selected="true"] {
  border-color: var(--edge); box-shadow: var(--shadow-1);
}
.door { transition: border-color 1.2s var(--ease-out), transform 1.6s var(--ease-out), box-shadow 1.4s var(--ease-out); }
.side-item { transition: border-color 1.2s var(--ease-out), transform 1.6s var(--ease-out), box-shadow 1.4s var(--ease-out); }
.feat, .ind-tab { transition: border-color 1.2s var(--ease-out), box-shadow 1.4s var(--ease-out), background-color 1s var(--ease-out), color 1s var(--ease-out); }
.work:hover, .door:hover, .model:hover, .feat:hover, a.side-item:hover, button.side-item:hover { box-shadow: var(--shadow-2); }
.work-media { box-shadow: inset 0 0 0 1px var(--line); }
.chips li { box-shadow: inset 0 0 0 1px var(--line); }
.chips.tech li { box-shadow: none; }

/* Services, accordion rows and principles become their own boxes too. */
.svc-list { border-top: 0; padding: 8px 24px clamp(56px, 7vw, 96px); display: grid; gap: 20px; }
.svc, .svc + .svc { width: 100%; max-width: 920px; margin-inline: auto; padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px); border: 1px solid var(--edge); border-top: 1px solid var(--edge); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.acc-item, .acc-item:last-child { margin-bottom: 12px; padding-inline: clamp(18px, 3vw, 28px); border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); transition: box-shadow 1.4s var(--ease-out), border-color 1.2s var(--ease-out); }
.acc-item:hover, .acc-item.open { box-shadow: var(--shadow-2); }
.js .acc-item.reveal { transition: opacity 1.6s var(--ease), transform 1.9s var(--ease-out), box-shadow 1.4s var(--ease-out); }
.acc-trigger { padding-block: 24px; }
.faq .acc-trigger { padding-block: 20px; }
.prin > div { padding: clamp(28px, 3.5vw, 40px) clamp(22px, 3vw, 32px); border: 1px solid var(--edge); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.prin { gap: 20px; }

/* ---------- compact screens inside the cards: smaller canvas, bigger type, only what matters ---------- */
.work-media .app { width: 780px; height: 500px; font-size: 14px; }
.work-media .app h5 { font-size: 15px; }
.work-media .app .pill { font-size: 12.5px; padding: 4px 10px; }

.work-media .dash { grid-template-columns: 166px 1fr; }
.work-media .a-side { gap: 20px; padding: 18px 12px; }
.work-media .a-side nav a { font-size: 14.5px; padding: 8px 10px; }
.work-media .a-user, .work-media .a-search, .work-media .a-bell, .work-media .dash .table, .work-media .legend { display: none; }
.work-media .a-main { grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
.work-media .a-top h4 { font-size: 21px; }
.work-media .a-top > div:first-child { font-size: 13px; }
.work-media .kpis { gap: 10px; }
.work-media .kpi { padding: 13px 14px; font-size: 13px; }
.work-media .kpi b { font-size: 24px; }
.work-media .kpi small { font-size: 12.5px; }
.work-media .spark { width: 100px; }
.work-media .mid { grid-template-columns: 1.35fr 1fr; gap: 10px; }
.work-media .card { padding: 14px 16px; }
.work-media .yax, .work-media .grp { font-size: 12px; }
.work-media .bars { gap: 8px; }
.work-media .due-row b { font-size: 14px; }
.work-media .due-row span { font-size: 12.5px; }
.work-media .due-row strong { font-size: 14px; }

.work-media .cal2 { grid-template-columns: 1fr; }
.work-media .c-side { display: none; }
.work-media .c-main { gap: 10px; padding: 14px 16px; }
.work-media .banner { padding: 10px 12px; font-size: 13.5px; }
.work-media .s-head { grid-template-columns: 54px repeat(4, 1fr); }
.work-media .s-body { grid-template-columns: 54px repeat(4, 1fr); }
.work-media .s-head .who { padding: 10px 8px; font-size: 14px; }
.work-media .s-head .who .av { width: 26px; height: 26px; font-size: 10.5px; }
.work-media .s-head .who em { font-size: 11.5px; }
.work-media .hours { font-size: 12.5px; }
.work-media .hours span { padding: 5px 8px; }
.work-media .now-line { left: 54px; }
.work-media .now-line i { inset-inline-start: -50px; font-size: 11px; }
.work-media .evt { padding: 5px 8px; font-size: 12.5px; }
.work-media .evt b { font-size: 14px; }
.work-media .evt em { font-size: 11px; }

.work-media .chrome { padding: 9px 12px; }
.work-media .chrome .url { width: 230px; font-size: 12.5px; }
.work-media .w-nav { gap: 16px; padding: 12px 22px; }
.work-media .w-nav nav, .work-media .w-cards { display: none; }
.work-media .w-nav .langs { margin-inline-start: auto; font-size: 12px; }
.work-media .w-btn { font-size: 13px; }
.work-media .w-hero { grid-template-columns: 1.05fr 1fr; gap: 20px; padding: 20px 22px; }
.work-media .w-copy h3 { font-size: 31px; }
.work-media .w-copy p { font-size: 14.5px; }
.work-media .w-btn.big { font-size: 14px; padding: 11px 18px; }
.work-media .w-ghost { font-size: 13.5px; padding: 10px 14px; }
.work-media .w-stats { gap: 18px; margin-top: 18px; padding-top: 14px; font-size: 12.5px; }
.work-media .w-visual { height: 330px; }
.work-media .track { width: 236px; font-size: 12.5px; }
.work-media .due .due-row:nth-child(4) { display: none; }

.work-media .orders2 { grid-template-columns: 286px 1fr; }
.work-media .msgs { gap: 9px; padding: 14px 12px; }
.work-media .msgs p { font-size: 14px; padding: 9px 12px 20px; }
.work-media .msgs time { font-size: 11px; }
.work-media .o-chat header { font-size: 12.5px; }
.work-media .o-input { font-size: 13.5px; }
.work-media .o-main { gap: 12px; padding: 16px; }
.work-media .o-top h4 { font-size: 19px; }
.work-media .tabs em { font-size: 13px; padding: 6px 10px; }
.work-media .tabs em:nth-child(3), .work-media .o-bottom, .work-media .o-table .items, .work-media .o-table .th span:nth-child(3) { display: none; }
.work-media .o-table { padding: 4px 14px; }
.work-media .o-table .tr { grid-template-columns: 70px 1fr 116px; padding: 10px 0; font-size: 14px; }
.work-media .o-table .th { font-size: 12.5px; }

/* ---------- iPhone Pro Max style phone next to the website screen ---------- */
.note.iphone { right: 3%; bottom: 4%; padding: 0; background: none; box-shadow: none; opacity: 1; transform: translateY(6px); }
:root[dir="rtl"] .note.iphone { right: auto; left: 4%; }
.ip-frame {
  position: relative; width: 150px; zoom: calc(var(--k, .77) * .82); aspect-ratio: 9 / 19.5; padding: 4px; border-radius: 32px;
  background: #26272B;
  box-shadow: 0 0 0 1px #0b0b0d, inset 0 0 0 1px rgba(255, 255, 255, .14), 0 26px 50px -18px rgba(20, 32, 64, .6);
}
.ip-frame::before, .ip-frame::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2b2f; }
.ip-frame::before { left: -3px; top: 22%; height: 16%; box-shadow: 0 -24px 0 -1px #2a2b2f; }
.ip-frame::after { right: -3px; top: 27%; height: 20%; }
.ip-screen { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #fff; color: #0F2A3D; font-family: 'DM Sans', sans-serif; }
.ip-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 14px 0 18px; font-size: 10px; font-weight: 600; color: #111; }
.ip-island { position: absolute; top: 7px; left: 50%; width: 44px; height: 14px; margin-left: -22px; border-radius: 10px; background: #000; }
.ip-icons { display: flex; align-items: center; gap: 3px; }
.ip-icons svg { height: 7px; width: auto; fill: currentColor; }
.ip-icons svg.batt { height: 8px; }
.ip-site { display: grid; gap: 8px; padding: 4px 11px 0; }
.ip-nav { display: flex; align-items: center; justify-content: space-between; }
.ip-nav .w-logo { font-size: 9.5px; letter-spacing: .12em; }
.ip-nav .w-logo i { width: 12px; height: 12px; border-radius: 4px; }
.ip-burger { display: grid; gap: 3px; }
.ip-burger i { display: block; width: 13px; height: 1.6px; border-radius: 1px; background: #0F2A3D; }
.ip-hero { height: 54px; border-radius: 10px; background: #143047; position: relative; overflow: hidden; }
.ip-hero::before { content: ""; position: absolute; left: 14%; right: 18%; top: 58%; border-top: 2px dashed #F2A541; transform: rotate(-14deg); }
.ip-hero::after { content: ""; position: absolute; right: 16%; top: 30%; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: -66px 22px 0 #fff; }
.ip-site h6 { margin: 0; font: 700 12.5px/1.22 'DM Sans', sans-serif; color: #0F2A3D; }
.ip-site .w-btn { justify-self: start; padding: 6px 11px; border-radius: 8px; font-size: 10.5px; background: #E06A3B; }
.ip-track { padding: 8px 9px; border-radius: 10px; background: #F2F5FA; font-size: 10px; }
.ip-track .tr-top { gap: 5px; font-size: 10.5px; }
.ip-track .tr-top em { padding: 2px 6px; font-size: 9px; font-style: normal; }
.ip-track .ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ip-track .tr-route { margin: 6px 0 5px; gap: 5px; font-size: 10px; }
.ip-track .pbar { height: 4px; border-radius: 2px; background: #E2E7EF; overflow: hidden; }
.ip-track .pbar i { display: block; width: 64%; height: 100%; background: #E06A3B; }
.ip-home { position: absolute; bottom: 6px; left: 50%; width: 46px; height: 4px; margin-left: -23px; border-radius: 3px; background: #111; }
@media (hover: hover) { .work:hover .note.iphone { transform: translateY(-8px); } }

.tr-top em, .tr-top b { white-space: nowrap; }

/* ---------- hero: three short lines, each with its own weight ---------- */
.hero-title { display: flex; flex-direction: column; align-items: center; font-size: clamp(44px, 7.2vw, 96px); line-height: 1.04; letter-spacing: -.04em; }
.hero-title span { display: block; }
.hero-title .l1 { font-weight: 600; }
.hero-title .l2 { font-weight: 300; }
.hero-title .l3 { font-weight: 600; padding-bottom: .06em; color: var(--accent); -webkit-text-fill-color: var(--accent); }
:root[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.3; }

/* header logo: the code bars slide and tint one after another on hover */
.brand .mark-icon .bar-r { transform-box: fill-box; transition: transform .9s var(--ease-out), fill .9s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.brand:hover .mark-icon .bar-r { transform: translateX(3px); fill: var(--accent); }
.brand:hover .mark-icon .bar-r:nth-child(odd) { fill: var(--teal); }
.brand .wordmark { transition: color 1s var(--ease-out); }
.brand:hover .wordmark { color: var(--accent); }

/* example pages: who it is for, right under the intro */
.who-line { margin-top: 26px; font-size: 16px; color: var(--fg-2); }
.who-line b { font-weight: 600; color: var(--fg); }
.work-head .chips.who { margin-top: 14px; }

/* ---------- finance dashboard ---------- */
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.kpi b.teal { color: var(--teal); }
.kpi small em.neg { color: #B4473D; }
.kpi .meter { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: #E6EAF2; overflow: hidden; }
.kpi .meter i { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.pair .b2 { background: #D9DAF6; }
.legend .l2 { background: #D9DAF6; }
.grp:last-child .b1 { background: var(--teal); }
.recv .stat { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; color: var(--ink2); font-size: 12.5px; }
.recv .stat strong { color: #17191F; font-size: 15px; }
.recv .stat strong.red { color: var(--red); }
.recv .stat .tag-late { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-inline-start: 4px; border-radius: 5px; background: #FBE3E0; color: #B4473D; font-size: 11px; }
.recv .stat + .stat { border-top: 1px solid #F0F2F6; margin-bottom: 4px; }
.work-media .kpis.k4 { gap: 8px; }
.work-media .kpi b { font-size: 20px; }
.work-media .kpi { padding: 12px; }
.work-media .recv .due-row:nth-child(n+5) { display: none; }
.work-media .recv .stat { font-size: 13px; }

/* ---------- interactive full screens (example pages) ---------- */
.try { margin-bottom: 14px; text-align: center; font-size: 14px; color: var(--fg-2); }
.try::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--mint); vertical-align: 1px; }
.screen-full [data-act] { cursor: pointer; }
.screen-full .a-side nav a { transition: background-color .6s var(--ease-out), color .6s var(--ease-out); }
.screen-full .a-side nav a:not(.on):hover { background: #F4F6FA; color: #17191F; }
.screen-full .kpi { transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.screen-full .kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(20, 32, 64, .35); }
.screen-full .table .tr:not(.th), .screen-full .o-table .tr:not(.th) { transition: background-color .5s var(--ease-out); }
.screen-full .table .tr:not(.th):hover { background: #F7F9FC; }
.plot { position: relative; }
.screen-full .grp { cursor: default; }
.screen-full .grp:hover .pair i { filter: brightness(1.08) saturate(1.1); }
.tip {
  position: absolute; top: 4px; z-index: 3; display: grid; gap: 4px; min-width: 170px; padding: 10px 12px; border-radius: 10px;
  background: #17191F; color: #fff; font-size: 12px; transform: translate(-50%, 4px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out), left .45s var(--ease-out);
}
.tip.on { opacity: 1; transform: translate(-50%, 0); }
.tip b { font-size: 12.5px; }
.tip span { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.tip span.p { color: #9BE3EC; font-weight: 600; }
.tip i { width: 8px; height: 8px; border-radius: 2px; }
.tip .l1 { background: #7FB0EE; }
.tip .l2 { background: #D9DAF6; }
.mini-btn { transition: background-color .6s var(--ease-out), color .6s var(--ease-out); }
.mini-btn.done { background: #DDF1F4; color: #1F7F8F; }
.app-toast {
  position: absolute; top: 18px; right: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: #3D63B0; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 16px 34px -14px rgba(20, 40, 90, .6);
  animation: toastIn .7s var(--ease-out) both;
}
.app-toast .ic { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: rgba(255, 255, 255, .2); stroke: #fff; }
.app-toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.screen-full .evt { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.screen-full .evt:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(20, 32, 64, .35); }
.screen-full .evt.sel { box-shadow: 0 0 0 2px var(--blue), 0 10px 22px -10px rgba(20, 32, 64, .4); }
.evt.new { border: 1.5px dashed var(--sky); background: #EEF4FD; animation: toastIn .7s var(--ease-out) both; }
.evt-pop {
  position: absolute; z-index: 4; display: grid; gap: 3px; width: 200px; padding: 10px 12px; border-radius: 10px; background: #17191F; color: rgba(255, 255, 255, .8);
  font-size: 12px; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.evt-pop.on { opacity: 1; transform: none; }
.evt-pop b { color: #fff; font-size: 13px; }
.evt-pop .t { color: #9BE3EC; font-weight: 600; }
.screen-full .month .grid i:not(.pad) { transition: background-color .5s var(--ease-out), color .5s var(--ease-out); }
.screen-full .month .grid i:not(.pad):not(.today):hover { background: #EEF2FB; }
.screen-full .c-new, .screen-full .w-btn, .screen-full .w-ghost, .screen-full .langs em, .screen-full .tabs em, .screen-full .o-table .pill { transition: filter .5s var(--ease-out), background-color .5s var(--ease-out), color .5s var(--ease-out), transform .5s var(--ease-out); }
.screen-full .c-new:hover, .screen-full .w-btn:hover { filter: brightness(1.08); }
.screen-full .langs em:not(.on):hover, .screen-full .tabs em:not(.on):hover { color: #17191F; }
.screen-full .o-table .pill:hover { transform: scale(1.05); }
.o-table .tr.hide { display: none; }
.msgs .fresh-msg { animation: toastIn .8s var(--ease-out) both; }
.hero .center { max-width: 1160px; }
.hero .lead { max-width: 640px; }
.code-row .cm { font-style: normal; }

/* ---------- word hover: each word lifts a little, shines softly, turns one solid blue tone ---------- */
.hl { width: fit-content; max-width: 100%; }
.head .hl, .center .hl, .prose .hl, .page-head .hl, .svc .hl, .door .hl, .prin .hl, .person .hl, .vision .hl { margin-inline: auto; }
.acc-trigger .t.hl { display: block; }
.hl[data-tone="1"] { --tone: var(--accent); }
.hl[data-tone="2"] { --tone: var(--teal); }
.hl[data-tone="3"] { --tone: var(--violet); }
.hl[data-tone="4"] { --tone: var(--sky); }
.hero-title .l3.hl { --tone: var(--teal); }
.hl .w { display: inline-block; transition: color .6s var(--ease-out), -webkit-text-fill-color .6s var(--ease-out), translate .7s var(--ease-out), text-shadow .7s var(--ease-out); }
@media (hover: hover) {
  .hl .w:hover {
    color: var(--tone); -webkit-text-fill-color: var(--tone);
    translate: 0 -3px;
    text-shadow: 0 4px 18px color-mix(in srgb, var(--tone) 38%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) { .hl .w:hover { translate: none; } }

/* photos: free Unsplash images (docs/photo-sources.md), self-hosted, toned down a little so they sit with the palette */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--media-bg); border: 1px solid var(--edge); box-shadow: var(--shadow-1); }
.photo img, .door-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); transition: filter 1.6s var(--ease-out), transform 2.4s var(--ease-out), opacity .9s var(--ease); }
.photo-wide { margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 16 / 8; }
.photo-wide img { object-position: 50% 45%; }
.door-photo { align-self: stretch; margin: 0 0 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--media-bg); }
.door:hover .door-photo img { filter: none; transform: scale(1.03); }
.ind-photo { aspect-ratio: 16 / 7; margin-bottom: 28px; border-radius: 14px; box-shadow: none; }
.ind-photo img.is-loading { opacity: 0; }
@media (max-width: 760px) {
  .photo-wide, .ind-photo { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .door:hover .door-photo img { transform: none; } }
