/* ============================================================
   BinAref — site styles (design 1, "Studio").
   One token set per theme; every other stylesheet (detail,
   testers, admin, the alternate designs) reads the same names,
   so a colour change here reaches the whole site.

   Shape scale: controls 12px, cards 20px, panels 28px,
   chips and badges fully rounded. One accent: the logo blue.
   ============================================================ */

/* ---------- tokens: dark (default) ---------- */
:root {
  --bg: #0e0e0d;
  --bg-raise: #151514;
  --panel: #171716;
  --panel2: #1e1e1c;
  --text: #f2f0eb;
  --dim: #aca89f;
  --faint: #8a867e;
  --line: rgba(255,250,240,.08);
  --line-2: rgba(255,250,240,.14);

  --accent: #52a8f5;
  --accent-strong: #1090f0;
  --accent-soft: rgba(82,168,245,.12);
  --accent-line: rgba(82,168,245,.34);
  --on-accent: #121211;
  --btn: #f2f0eb;
  --btn-hover: #ffffff;

  --dot: rgba(255,250,240,.07);
  --trace: rgba(255,245,225,.1);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.035) inset, 0 1px 2px rgba(0,0,0,.35);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px -28px rgba(0,0,0,.75);
  --shadow-lg: 0 40px 80px -40px rgba(0,0,0,.8);

  --font: 'Geist', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Sans Arabic', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --page: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 68px;

  /* names the other stylesheets were written against */
  --ice: var(--accent);
  --ice-hi: color-mix(in srgb, var(--accent) 72%, #fff);
  --ice-deep: var(--accent-strong);
  --ice-soft: var(--accent-soft);
  --border: var(--line);
  --border2: var(--line-2);
  --glass: var(--panel);
  --glass-hi: var(--panel2);
  --ink: var(--on-accent);
  --lava: var(--accent);
  --lava2: var(--accent-strong);
  --lava-soft: var(--accent-soft);
  --lava-line: var(--accent-line);

  color-scheme: dark;
}
[lang="ar"] { --mono: 'IBM Plex Sans Arabic', 'Geist Mono', ui-monospace, monospace; }

/* ---------- tokens: light ---------- */
[data-theme="light"] {
  --bg: #f4f2ed;
  --bg-raise: #ebe8e1;
  --panel: #fbfaf7;
  --panel2: #ffffff;
  --text: #171613;
  --dim: #57544c;
  --faint: #6b675e;
  --line: rgba(40,32,18,.1);
  --line-2: rgba(40,32,18,.17);

  --accent: #0b6fd0;
  --accent-strong: #1090f0;
  --accent-soft: rgba(11,111,208,.08);
  --accent-line: rgba(11,111,208,.28);
  --on-accent: #ffffff;
  --btn: #171613;
  --btn-hover: #34322c;

  --dot: rgba(40,32,18,.08);
  --trace: rgba(40,32,18,.1);
  --shadow-sm: 0 1px 2px rgba(40,32,18,.06);
  --shadow: 0 1px 2px rgba(40,32,18,.05), 0 18px 40px -24px rgba(40,32,18,.2);
  --shadow-lg: 0 40px 80px -40px rgba(40,32,18,.28);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
[lang="ar"] body { font-family: 'IBM Plex Sans Arabic', 'Geist', system-ui, sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* a single-copy page (testers) waiting for its saved language */
html[data-i18n-wait] body { visibility: hidden; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* backdrop (owner 2026-10-01: no dot field or grid — they read as
   generated): a plain surface; the app icons and banners carry the
   colour, the hero light fades into it */
body::before { content: none; }
body::after { content: none; }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }
/* elements choreographed by motion.js wait for it (never longer than 2.4s) */
.js-motion:not(.motion-on) [data-motion] { opacity: 0; animation: motionFallback 0s 2.4s forwards; }
@keyframes motionFallback { to { opacity: 1; } }

/* ---------- background canvas + brandmark ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* the Studio theme paints its own backdrop in CSS */
html:not([data-design])[data-bgtype="color"] #bg-canvas,
html:not([data-design]):not([data-bgtype]) #bg-canvas { visibility: hidden; }

#brandmark {
  position: fixed; inset: 0; z-index: 1; display: none;
  align-items: flex-end; justify-content: center;
  pointer-events: none; user-select: none; overflow: hidden;
}
#brandmark img { width: min(92vw, 1180px); height: auto; }
html[data-brand="off"] #brandmark { display: none !important; }
html:not([data-design])[data-bgtype="code"] #brandmark,
html:not([data-design])[data-bgtype="gradient"] #brandmark,
html:not([data-design])[data-bgtype="color"] #brandmark,
html:not([data-design])[data-bgtype="image"] #brandmark { display: flex; }
/* Studio: the wordmark rests under the home hero only and scrolls away */
html:not([data-design]) #brandmark { position: absolute; height: 100vh; height: 100svh; }
html:not([data-design]):not(:has(.hero-shelf)) #brandmark { display: none !important; }
html:not([data-design]) #brandmark img {
  opacity: .03; transform: translateY(34%);
  filter: grayscale(1) contrast(1.1);
}
[data-theme="light"]:not([data-design]) #brandmark img { opacity: .045; }

/* ---------- layout helpers ---------- */
.nav, .hero, .facts, .about, .skills, .projects, .team-sec, .contact, .footer, main, .t-wrap { position: relative; z-index: 2; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.sec-h2, .proj-h2 {
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08;
  letter-spacing: -.035em; font-weight: 620; color: var(--text);
}
.sec-lead { margin-top: 18px; font-size: 17.5px; line-height: 1.65; color: var(--dim); max-width: 60ch; }

/* ---------- buttons ---------- */
.cta-primary, .cta-secondary, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 560; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease), box-shadow .2s;
}
.cta-primary {
  font-size: 15.5px; padding: 15px 24px;
  color: var(--on-accent); background: var(--btn);
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.cta-primary:active, .cta-secondary:active, .nav-cta:active { transform: translateY(0) scale(.98); }
.cta-primary span:last-child { transition: transform .25s var(--ease); }
.cta-primary:hover span:last-child { transform: translateX(3px); }
[dir="rtl"] .cta-primary span:last-child, [dir="rtl"] .all-link span:last-child { transform: scaleX(-1); }
[dir="rtl"] .cta-primary:hover span:last-child { transform: scaleX(-1) translateX(3px); }
.cta-secondary {
  font-size: 15.5px; padding: 14px 22px;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.cta-secondary:hover { border-color: var(--accent-line); color: var(--text); background: var(--panel2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; margin-inline-end: auto; flex: none; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--dim);
  text-decoration: none; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-cta {
  font-size: 14px; padding: 10px 16px; margin-inline-start: 8px;
  color: var(--on-accent); background: var(--btn); flex: none;
}
.nav-cta:hover { background: var(--btn-hover); }

/* capability / project dropdowns (built by navigation.js) */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-chev { font-size: 9px; opacity: .55; margin-inline-start: 4px; display: inline-block; transition: transform .2s; }
.nav-dd:hover .nav-dd-chev { transform: rotate(180deg); }
.nav-dd::after { content: ""; position: absolute; top: 100%; height: 16px; left: -24px; right: -24px; display: none; }
.nav-dd:hover::after { display: block; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(600px, calc(100vw - 40px));
  padding: 10px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .25s var(--ease), visibility .2s;
  z-index: 61;
}
.nav-dd:hover .nav-dd-panel, .nav-dd-panel:hover { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd-panel:empty { display: none; }
.nav-dd-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.nav-dd-head a { color: var(--accent); text-decoration: none; font-weight: 500; }
.nav-dd-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dd-item { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.nav-dd-item:hover { background: var(--accent-soft); }
.nav-dd-t { font-size: 14px; font-weight: 600; color: var(--text); }
.nav-dd-d { font-size: 12.5px; line-height: 1.5; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* language + theme controls */
.lang-toggle, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  height: 38px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--dim);
  font: 600 12.5px/1 var(--font); letter-spacing: .02em;
  transition: color .2s, border-color .2s, background-color .2s;
}
.lang-toggle { padding: 0 11px; }
.theme-toggle { width: 38px; }
.lang-toggle:hover, .theme-toggle:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.lang-toggle svg { width: 16px; height: 16px; }
.theme-toggle svg { width: 17px; height: 17px; }
.lang-code { min-width: 1.4em; text-align: center; }
.lang-toggle::after { content: "▾"; font-size: 9px; opacity: .6; }
[data-theme="dark"] .theme-toggle .ic-moon, :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }

.lang-menu {
  position: fixed; z-index: 4300; min-width: 176px; display: none; flex-direction: column;
  padding: 6px; border-radius: 14px; gap: 2px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.lang-menu.open { display: flex; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-opt {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer; text-align: start; width: 100%;
  font: 500 14.5px/1 var(--font);
}
.lang-opt:hover { background: var(--accent-soft); }
.lang-opt.cur { color: var(--accent); }
.lang-opt-code { font: 600 11px/1 var(--mono); letter-spacing: .04em; color: var(--faint); min-width: 2.2em; }
.lang-opt-name { flex: 1; }

/* hamburger + mobile sheet */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 0 9px; cursor: pointer; flex: none;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
}
.nav-hamburger span { display: block; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 59;
  background: var(--bg);
  flex-direction: column; padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  gap: 2px; overflow-y: auto;
}
.nav-mobile.open { display: flex; animation: sheet .28s var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-mobile a {
  font-size: 26px; font-weight: 560; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-mobile-cta {
  margin-top: 28px; text-align: center; font-size: 16px; letter-spacing: 0;
  background: var(--btn); color: var(--on-accent);
  border-radius: var(--r-sm); padding: 16px; border: none;
}
.nav-mobile .nav-mobile-cta:hover { background: var(--btn-hover); color: var(--on-accent); }

/* ---------- hero: a plain statement, then the work itself ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 112px)) 0 clamp(36px, 4vw, 56px);
}
.hero-grid { position: relative; z-index: 2; width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero-content > * { grid-column: 1 / -1; }
.hero-content > .hero-sub { grid-column: 1; margin-bottom: 0; }
.hero-content > .hero-ctas { grid-column: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 26px;
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); flex: none; }
.hero-h1 {
  font-size: clamp(40px, 6vw, 88px); line-height: 1;
  letter-spacing: -.045em; font-weight: 640;
  color: var(--text); margin-bottom: clamp(28px, 3vw, 44px); max-width: 17ch;
}
.hero-h1 .hero-accent { color: var(--accent); }
.hero-h1 .word { display: inline-block; will-change: transform; }
.hero-sub {
  font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.6;
  color: var(--dim); max-width: 54ch; margin-bottom: 32px;
}
.hero-sub em { font-style: normal; color: var(--text); font-weight: 560; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; max-width: 620px; }
.hero-tags:empty { display: none; }
.tech-tag, .stack-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
  background: var(--panel); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px;
}
.stack-chip svg, .proj-chip svg { width: 14px; height: 14px; flex: none; }
.scroll-ind { display: none; }

/* the wall: every project's banner, two rows drifting apart */
.hero-wall {
  position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 84px);
  display: flex; flex-direction: column; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero-wall:empty { display: none; }
/* each row is a real horizontal scroller: motion.js drifts it, a
   finger or a mouse can move it (see initDrift) */
.wall-row, .more-rail {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wall-row::-webkit-scrollbar, .more-rail::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .wall-row, .more-rail { cursor: grab; }
  .wall-row.dragging, .more-rail.dragging { cursor: grabbing; user-select: none; }
  .dragging a { pointer-events: none; }
}
.wall-track, .drift-track { display: flex; gap: 14px; padding-inline-end: 14px; width: max-content; }
.wall-row img, .more-rail img { -webkit-user-drag: none; user-select: none; }
.wall-card {
  flex: none; width: clamp(236px, 21vw, 312px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: transform .45s var(--ease-out), border-color .25s;
}
.wall-media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg-raise); }
.wall-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-media.from-icon > img { filter: blur(26px) saturate(1.3); transform: scale(1.5); opacity: .6; }
.wall-media-icon {
  position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1; height: auto;
  border-radius: 22%; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(0,0,0,.55);
}
.wall-media-icon img { filter: none !important; transform: none !important; opacity: 1 !important; }
.wall-meta { display: flex; align-items: center; gap: 10px; padding: 11px 13px 12px; min-width: 0; }
.wall-ic { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; flex: none; background: var(--panel2); box-shadow: 0 0 0 1px var(--line); }
.wall-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-ic.mono { display: flex; align-items: center; justify-content: center; font: 600 12px/1 var(--font); color: var(--dim); }
.wall-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.wall-name { font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.wall-cat { font-size: 12.5px; color: var(--faint); line-height: 1.2; }
@media (hover: hover) and (pointer: fine) {
  .wall-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
}
.js-motion .wall-row { opacity: 0; }
.js-motion:not(.motion-on) .wall-row { animation: motionFallback 0s 2.4s forwards; }

/* ---------- facts band ---------- */
.facts {
  max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter);
}
.facts-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts-row:empty { display: none; }
.fact { padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact-n { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.fact-l { font-size: 14px; color: var(--dim); }
.fact-os { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fact-os span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--text);
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.fact-os svg { width: 15px; height: 15px; color: var(--dim); }

/* ---------- about ---------- */
.about {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(96px, 12vw, 170px) var(--gutter) clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.about-bio .sec-h2 { margin-bottom: 30px; max-width: 18ch; }
.about-bio p { font-size: 17.5px; line-height: 1.75; color: var(--dim); margin-bottom: 20px; max-width: 62ch; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio p strong { color: var(--text); font-weight: 600; }
/* the lead paragraph brightens word by word as it scrolls through */
.about-bio p.about-lead, .about-bio p[data-i18n="about_p1"] {
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.4; letter-spacing: -.02em;
  color: var(--text); font-weight: 500; max-width: 30ch; margin-bottom: 28px;
}
.scrub .word { opacity: .22; transition: opacity .1s linear; }
.phil-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 26px 10px;
  box-shadow: var(--shadow);
}
.phil-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--accent); }
.phil-head svg rect, .phil-head svg path { stroke: currentColor; }
.phil-head svg rect + rect { fill: currentColor; stroke: none; }
.phil-head-label { font-size: 15px; font-weight: 600; color: var(--text); }
.phil-item { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.phil-item:first-of-type { border-top: 0; }
.phil-k { font: 500 12px/1.6 var(--mono); color: var(--faint); padding-top: 2px; }
.phil-ic {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
}
.phil-ic svg { width: 19px; height: 19px; }
.phil-title { font-size: 16.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.phil-body { font-size: 15px; line-height: 1.6; color: var(--dim); }

/* ---------- capabilities (bento) ---------- */
.skills {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px);
}
.skills-head { margin-bottom: 40px; max-width: 760px; }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 236px; padding: 26px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.skill-card { display: flex; }
.skills-grid > .skill-card:nth-child(6n+1), .skills-grid > .skill-card:nth-child(6n) { grid-column: span 2; }

[dir="rtl"] .skills-grid > .skill-card:nth-child(6n+1)::before, [dir="rtl"] .skills-grid > .skill-card:nth-child(6n)::before {
  -webkit-mask-image: linear-gradient(-115deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(-115deg, transparent 35%, #000 100%);
}
.skills-grid > .skill-card:nth-child(6n+1) {
  background:
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--accent-strong) 13%, transparent), transparent 60%),
    var(--panel);
}
[dir="rtl"] .skills-grid > .skill-card:nth-child(6n+1) {
  background:
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--accent-strong) 13%, transparent), transparent 60%),
    var(--panel);
}
.skill-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; z-index: -1;
  pointer-events: none; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
}
.skill-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.skill-card:hover::after { opacity: 1; }
.skill-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  margin-bottom: auto; overflow: hidden;
  font: 600 18px/1 var(--mono);
}
.skill-icon svg { width: 24px; height: 24px; }
.skill-icon-img { width: 100%; height: 100%; object-fit: cover; }
.skill-emoji { font-size: 24px; line-height: 1; }
.skill-title { margin-top: 36px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--text); margin-bottom: 8px; }
.skill-body { font-size: 15px; line-height: 1.6; color: var(--dim); max-width: 46ch; }
.skills-grid > .skill-card:nth-child(6n+1) .skill-title, .skills-grid > .skill-card:nth-child(6n) .skill-title { font-size: 23px; }
.skill-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 13.5px; font-weight: 500; color: var(--accent);
}
.skill-more-arr { display: inline-block; transition: transform .25s var(--ease); }
.skill-card:hover .skill-more-arr { transform: translateX(4px); }
[dir="rtl"] .skill-more-arr { transform: scaleX(-1); }
[dir="rtl"] .skill-card:hover .skill-more-arr { transform: scaleX(-1) translateX(4px); }

.stack-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack-lbl { font: 500 14px/1 var(--font); color: var(--faint); margin-inline-end: 6px; }

/* ---------- projects ---------- */
.projects {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(72px, 9vw, 120px);
}
.proj-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px 40px; margin-bottom: 36px;
}
.proj-count { display: flex; align-items: baseline; gap: 10px; }
.count-num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.count-lbl { font-size: 14px; color: var(--dim); max-width: 150px; line-height: 1.4; }
.all-row { display: flex; justify-content: center; margin-top: 40px; }
.all-link span:last-child { display: inline-block; }

.listing { padding-top: calc(var(--nav-h) + 72px); min-height: 72vh; }
.listing-sub { margin-top: 14px; font-size: 17px; color: var(--dim); max-width: 52ch; line-height: 1.6; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  font: 500 14px/1 var(--font); cursor: pointer;
  color: var(--dim); background: var(--panel);
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px;
  transition: color .2s, border-color .2s, background-color .2s;
}
.filter-btn:hover:not(.active) { color: var(--text); border-color: var(--line-2); }
.filter-btn.active { color: var(--on-accent); background: var(--btn); border-color: transparent; }

.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.proj-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  text-decoration: none; color: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.proj-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-card.hidden { display: none; }
.proj-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg-raise); border-bottom: 1px solid var(--line);
}
.proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.proj-card:hover .proj-media img { transform: scale(1.035); }
/* no banner: a blurred wash of the app's own icon */
.proj-media.from-icon img { filter: blur(26px) saturate(1.3); transform: scale(1.5); opacity: .6; }
.proj-card:hover .proj-media.from-icon img { transform: scale(1.55); }
.proj-media.from-icon .proj-media-icon {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 23%; overflow: hidden; box-shadow: 0 16px 36px -16px rgba(0,0,0,.6), 0 0 0 1px var(--line-2);
}
.proj-media.from-icon .proj-media-icon img { filter: none; transform: none; opacity: 1; }
.proj-media.blank {
  background:
    var(--bg-raise);
}
.proj-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.proj-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.proj-thumb {
  width: 42px; height: 42px; border-radius: 11px; flex: none; overflow: hidden;
  background: var(--panel2); box-shadow: 0 0 0 1px var(--line);
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb.mono { display: flex; align-items: center; justify-content: center; font: 600 15px/1 var(--mono); color: var(--accent); }
.proj-heading { min-width: 0; }
.proj-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--text); }
.proj-cat { font-size: 13px; color: var(--faint); margin-top: 2px; }
/* three lines, always: cards in a row line up and nothing leaves a
   hole; the full text lives on the project page */
.proj-summary {
  font-size: 15px; line-height: 1.6; color: var(--dim);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  min-height: calc(1.6em * 3);
}
[dir="rtl"] .proj-summary { min-height: calc(1.85em * 3); }
.proj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.proj-chips:empty { display: none; }
.proj-chip { font: 500 12px/1 var(--mono); color: var(--dim); border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; }
.proj-num { display: none; }
.proj-arrow {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text); font-size: 16px; opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s var(--ease);
}
.proj-card:hover .proj-arrow { opacity: 1; transform: none; }
[dir="rtl"] .proj-arrow { transform: scaleX(-1) translateY(4px); }
[dir="rtl"] .proj-card:hover .proj-arrow { transform: scaleX(-1); }

/* every card the same shape; the home grid picks 3 or 4 columns so
   each row is full (home.js sets data-cols) */
@media (min-width: 701px) { .proj-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1081px) {
  .proj-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .proj-grid[data-cols="4"] .proj-body { padding: 16px 18px 18px; }
  .proj-grid[data-cols="4"] .proj-title { font-size: 16.5px; }
  .proj-grid[data-cols="4"] .proj-summary { font-size: 14.5px; }
}
/* the ring (owner 2026-10-04): cards or screenshots on a band that is flat
   in front and bends away on both sides — round, not folded. js/ring.js
   cuts every item into thin strips (.ring-sl) and lays them on the bend;
   --rw/--rh are an item's size, --sw a strip's width, --rr the corners,
   --fade the room left at each side, where the band dissolves. A strip
   gets more see-through the further it turns, never darker (owner
   2026-10-05). The home's projects use it when the admin picks the ring;
   app pages for their screenshots; phones for what we build's cards. */
.proj-grid.proj-ring { display: block; }
.ring-flow {
  position: relative; height: calc(var(--rh, 280px) + 58px); overflow: hidden;
  perspective: 1500px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; border-radius: 22px;
}
.ring-flow:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
/* the sides dissolve like light instead of meeting a hard line (owner
   2026-10-04); the view carries the perspective so the stage keeps its 3D */
.ring-view {
  position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .14) calc(var(--fade, 40px) * .22), rgba(0, 0, 0, .5) calc(var(--fade, 40px) * .55), #000 var(--fade, 40px), #000 calc(100% - var(--fade, 40px)), rgba(0, 0, 0, .5) calc(100% - var(--fade, 40px) * .55), rgba(0, 0, 0, .14) calc(100% - var(--fade, 40px) * .22), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .14) calc(var(--fade, 40px) * .22), rgba(0, 0, 0, .5) calc(var(--fade, 40px) * .55), #000 var(--fade, 40px), #000 calc(100% - var(--fade, 40px)), rgba(0, 0, 0, .5) calc(100% - var(--fade, 40px) * .55), rgba(0, 0, 0, .14) calc(100% - var(--fade, 40px) * .22), transparent 100%);
}
.ring-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.ring-item { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.ring-sl {
  position: absolute; left: 50%; top: 12px; width: calc(var(--sw, 20px) + .8px); height: var(--rh, 280px);
  overflow: hidden; backface-visibility: hidden; pointer-events: auto; cursor: pointer;
  background-color: var(--panel, #111); background-repeat: no-repeat;
}
.ring-sl.first { border-radius: var(--rr, 18px) 0 0 var(--rr, 18px); }
.ring-sl.last { border-radius: 0 var(--rr, 18px) var(--rr, 18px) 0; }
.ring-item.front .ring-sl { cursor: zoom-in; }
.ring-flow.ring-drag .ring-sl { cursor: grabbing; }
/* a card inside every strip, moved left by the strip's place */
.ring-clone { position: absolute !important; left: 0; top: 0; margin: 0 !important; transition: none !important; animation: none !important; }
.ring-clone *, .ring-clone:hover, .ring-clone:hover * { transition: none !important; animation: none !important; }
.ring-measure { position: static !important; transform: none !important; }
.proj-ring .ring-flow { --rr: 20px; }
.proj-ring .ring-clone { height: var(--rh) !important; }
/* phones: what we build as before — the names, the apps circling the icon,
   the card — with the cards on the ring: swiped or turned, the next one
   comes out of the depth (owner 2026-10-05). The stage above stays live
   (its apps keep circling); it shows its upper half, and the card's top
   edge is where they go behind it. js/home.js capExplorer. */
html:not([data-design]) .cap-x.cx-ringed { display: block; isolation: isolate; }
.cx-ringed .cx-tabs { margin-bottom: 14px; }
.cx-ringed .cx-panels { position: relative; z-index: 2; }
.cx-ringed .cx-panel { overflow: visible; display: flex; flex-direction: column; justify-content: flex-end; }
.cx-ringed .cx-panel > .cx-body, .cx-ringed .cx-dots { display: none !important; }
.cx-ringed .cx-orbit { position: absolute; inset: 0; clip-path: inset(-80px -100vw 0 -100vw); }
.cx-cards { position: relative; z-index: 1; margin-top: -12px; }
.cx-cards .ring-flow { --rr: 24px; }
.cx-cards .ring-clone { height: var(--rh) !important; }
.ring-nav {
  position: absolute; top: calc(50% - 30px); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: color-mix(in oklab, var(--panel) 80%, transparent); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0, 0, 0, .7);
}
.ring-nav svg { width: 20px; height: 20px; }
/* at the left and the right whatever the language: each brings the item on
   its side (js/ring.js) */
.ring-nav.l { left: 8px; }
.ring-nav.r { right: 8px; }
.ring-nav.l svg { transform: scaleX(-1); }
.ring-dots { position: absolute; inset-inline: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.ring-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; background: var(--line-2); transition: width .3s, background .3s; }
.ring-dot.on { width: 18px; background: var(--accent); }
@media (max-width: 599px) { .ring-nav { display: none; } }
/* the status rides on the image, so the title row keeps its width */
.proj-card-top .badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; margin: 0;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
[data-theme="light"] .proj-card-top .badge { background: color-mix(in srgb, #fff 88%, transparent); }

/* badges: the colour is the status colour set in the admin (--c) */
.badge {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--font); white-space: nowrap;
  padding: 6px 10px; border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
[data-theme="light"] .badge { color: color-mix(in srgb, var(--c) 58%, #0b111b); background: color-mix(in srgb, var(--c) 16%, #fff); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-live      { --c: #5fd394; }
.badge-published { --c: #6db8f7; }
.badge-active    { --c: #6db8f7; }
.badge-beta      { --c: #e5b957; }
.badge-dev       { --c: #a898ea; }
.badge-concept   { --c: #8a95a5; }

/* ---------- team ---------- */
.team-sec { max-width: var(--page); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter); }
.team-head { margin-bottom: 36px; }
.team-sub { color: var(--dim); font-size: 17px; margin-top: 12px; max-width: 60ch; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.team-card {
  display: flex; flex-direction: column; align-items: stretch; text-align: start;
  padding: 0; overflow: hidden; cursor: pointer; color: var(--text); font: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.team-ava { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--bg-raise); }
.team-ava-mono { display: flex; align-items: center; justify-content: center; font: 600 44px/1 var(--mono); color: var(--accent); }
.team-cardbody { padding: 14px 16px 18px; }
.team-name { font-size: 16px; font-weight: 600; }
.team-role { font-size: 14px; color: var(--dim); margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tm-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tm-card {
  position: relative; z-index: 1; width: min(92vw, 440px); max-height: 88vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-lg); animation: pop .22s var(--ease);
}
.tm-x { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; }
.tm-x:hover { color: var(--text); border-color: var(--accent-line); }
.tm-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 16px; background: var(--bg-raise); margin-bottom: 18px; }
.tm-photo-mono { display: flex; align-items: center; justify-content: center; font: 600 60px/1 var(--mono); color: var(--accent); }
.tm-name { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.tm-role { font-size: 14.5px; color: var(--accent); margin-top: 4px; }
.tm-bio { color: var(--dim); font-size: 15px; line-height: 1.7; margin: 16px 0 18px; white-space: pre-line; }
.tm-links { display: flex; flex-direction: column; gap: 8px; }
.team-link { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-raise); color: var(--text); font-size: 14px; text-decoration: none; transition: border-color .2s; }
.team-link:hover { border-color: var(--accent-line); }
.team-link-ic { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.team-link-ar { margin-inline-start: auto; color: var(--dim); }

/* ---------- contact: the page's own colours, a plain list ---------- */
.contact { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 104px); }
.contact-inner {
  position: relative;
  max-width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
  border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 40px);
}
.contact-copy { position: relative; }
.contact-h2 {
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 620;
  color: var(--text); margin-bottom: 16px;
}
.contact-sub { font-size: 17px; line-height: 1.65; color: var(--dim); max-width: 44ch; }
.focus-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.focus-item {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
}
.focus-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.focus-text { font-size: 14.5px; color: var(--dim); }
.contact-card { display: flex; flex-direction: column; }
.contact-card > .contact-link:first-of-type { border-top: 1px solid var(--line); }
/* the email leads: set large, with a copy button beside it */
.contact-lead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 26px; }
.contact-mail {
  display: inline-flex; align-items: baseline; gap: 10px; min-width: 0;
  font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15;
  color: var(--text); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.contact-mail:hover { background-size: 100% 1.5px; }
.contact-mail-arr { font-size: .6em; color: var(--faint); transition: transform .3s var(--ease-out), color .2s; }
.contact-mail:hover .contact-mail-arr { color: var(--text); transform: translate(2px, -2px); }
.contact-copy-btn {
  flex: none; font: 500 14px/1 var(--font); cursor: pointer;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  padding: 10px 16px; border-radius: 999px; transition: background-color .2s, border-color .2s, transform .15s var(--ease-out);
}
.contact-copy-btn:hover { border-color: var(--faint); }
.contact-copy-btn:active { transform: scale(.97); }
.contact-copy-btn.done { color: var(--on-accent); background: var(--btn); border-color: transparent; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 6px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s, padding .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-link:hover { background: var(--panel); padding-inline: 14px; }
}
.contact-link:active { background: var(--panel2); }
.contact-link-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  font: 600 16px/1 var(--font);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-icon img { width: 100%; height: 100%; object-fit: cover; }
.contact-lbl { font-size: 13px; color: var(--faint); margin-bottom: 3px; }
.contact-val { font-size: 17.5px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
[dir="rtl"] .contact-val { unicode-bidi: plaintext; text-align: right; }
.contact-arr { color: var(--faint); font-size: 18px; transition: transform .25s var(--ease-out), color .2s; flex: none; }
.contact-link:hover .contact-arr { color: var(--text); transform: translate(2px, -2px); }
[dir="rtl"] .contact-arr { transform: scaleX(-1); }
[dir="rtl"] .contact-link:hover .contact-arr { transform: scaleX(-1) translate(2px, -2px); }

/* ---------- footer ---------- */
.footer {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.footer-top {
  max-width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1fr);
  gap: 32px; padding-bottom: 36px;
}
.footer-brand img, .footer > img { height: 24px; width: auto; display: block; }
.footer-tag { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--dim); max-width: 38ch; }
.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
/* languages as a row of pills; the current one filled */
.footer-col:has(> a[data-lang-set]) { flex-direction: row; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.footer-col:has(> a[data-lang-set]) > .footer-h { flex-basis: 100%; margin-bottom: 3px; }
.footer-col > a[data-lang-set] {
  display: inline-flex; align-items: center; font-size: 14px; line-height: 1;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim);
  transition: color .2s, border-color .2s, background-color .2s;
}
.footer-col > a[data-lang-set]:hover { border-color: var(--faint); }
.footer-col > a[data-lang-set][aria-current="true"] { color: var(--on-accent); background: var(--btn); border-color: transparent; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 13px/1 var(--font); color: var(--dim); text-decoration: none;
  padding: 9px 14px 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  transition: color .2s, border-color .2s;
}
.to-top:hover { color: var(--text); border-color: var(--faint); }
.to-top svg { width: 15px; height: 15px; }
.footer-h { font: 600 14.5px/1.2 var(--font); color: var(--text); margin-bottom: 6px; }
.footer-col a {
  font-size: 15px; color: var(--dim); text-decoration: none; transition: color .2s;
  background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0;
}
.footer-col a:hover { color: var(--text); }
.footer-col a[aria-current="true"] { color: var(--text); }
.footer-bottom {
  max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.footer-copy { font-size: 13.5px; color: var(--faint); }
.footer-extra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-install, .footer-privacy {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 13px/1 var(--font); cursor: pointer; text-decoration: none;
  color: var(--dim); background: transparent; border: 1px solid var(--line-2);
  padding: 9px 14px; border-radius: 999px; transition: color .2s, border-color .2s;
}
.footer-install:hover, .footer-privacy:hover { color: var(--text); border-color: var(--accent-line); }
.footer-privacy svg { width: 14px; height: 14px; }
/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .wall-row { opacity: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1080px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-content > .hero-sub, .hero-content > .hero-ctas { grid-column: 1; }
  .hero-content > .hero-sub { margin-bottom: 28px; }
  .about { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid > .skill-card:nth-child(6n+1), .skills-grid > .skill-card:nth-child(6n) { grid-column: span 2; }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-platforms { grid-column: 1 / -1; border-inline-start: 0 !important; border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --nav-h: 60px; }
  .nav-logo img { height: 21px; }
  .lang-toggle .lang-code { display: none; }
  .lang-toggle::after { display: none; }
  .lang-toggle { width: 38px; padding: 0; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-h1 { font-size: clamp(36px, 10.4vw, 52px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-wall { gap: 10px; margin-top: 40px; }
  .wall-track, .drift-track { gap: 10px; padding-inline-end: 10px; }
  .wall-card { width: 208px; border-radius: 14px; }
  .wall-meta { padding: 9px 10px 10px; gap: 8px; }
  .wall-ic { width: 26px; height: 26px; border-radius: 7px; }
  .wall-name { font-size: 13px; }
  .wall-cat { font-size: 11.5px; }
  .facts-row { grid-template-columns: 1fr 1fr 1fr; }
  .fact { padding: 20px 12px; }
  .fact-l { font-size: 13px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid > .skill-card:nth-child(6n+1), .skills-grid > .skill-card:nth-child(6n) { grid-column: auto; }
  .skill-card { min-height: 0; }
  .skill-title { margin-top: 26px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-header-row { align-items: flex-start; flex-direction: column; }
  .contact-link { padding: 16px 2px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (min-width: 1600px) {
  :root { --page: 1360px; }
}

/* ---------- Arabic ---------- */
[dir="rtl"] .hero-h1 { line-height: 1.22; letter-spacing: 0; font-weight: 700; }
[dir="rtl"] .sec-h2, [dir="rtl"] .proj-h2, [dir="rtl"] .contact-h2 { line-height: 1.3; letter-spacing: 0; font-weight: 700; }
[dir="rtl"] .skill-title, [dir="rtl"] .proj-title, [dir="rtl"] .fact-n, [dir="rtl"] .count-num { letter-spacing: 0; }
[dir="rtl"] .hero-eyebrow, [dir="rtl"] .sec-label, [dir="rtl"] .stack-lbl, [dir="rtl"] .footer-h { letter-spacing: 0; }
[dir="rtl"] .hero-sub, [dir="rtl"] .about-bio p, [dir="rtl"] .skill-body, [dir="rtl"] .proj-summary, [dir="rtl"] .contact-sub { line-height: 1.85; }
[dir="rtl"] .about-bio p[data-i18n="about_p1"] { letter-spacing: 0; line-height: 1.7; }
[dir="rtl"] .nav-mobile a { letter-spacing: 0; }
[dir="rtl"] .nav-dd-panel { transform: translateX(50%) translateY(6px); left: auto; right: 50%; }
[dir="rtl"] .nav-dd:hover .nav-dd-panel, [dir="rtl"] .nav-dd-panel:hover { transform: translateX(50%) translateY(0); }

/* ---------- capability cards: the apps that use each skill ---------- */
.skill-apps { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.skill-apps-lbl { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.skill-apps-row { display: flex; align-items: center; }
.skill-app {
  position: relative; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px var(--panel), 0 4px 10px -4px rgba(0,0,0,.4);
  background: var(--panel2);
  transition: transform .35s var(--ease-out), margin .35s var(--ease-out);
}
.skill-app + .skill-app { margin-inline-start: -10px; }
.skill-app img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) {
  .skill-card:hover .skill-app + .skill-app { margin-inline-start: 4px; }
  .skill-card:hover .skill-app { transform: translateY(-2px); }
}
.skills-grid > .skill-card:nth-child(6n+1) .skill-app, .skills-grid > .skill-card:nth-child(6n) .skill-app { width: 48px; height: 48px; border-radius: 13px; }
.skill-app-more {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--font); color: var(--text); background: var(--bg-raise);
  box-shadow: 0 0 0 2px var(--panel), inset 0 0 0 1px var(--line-2);
  font-variant-numeric: tabular-nums;
}

/* the technologies behind the projects, as their real marks */
/* a drifting, swipeable row (motion.js initDrift), both directions */
.logo-marquee {
  position: relative; margin-top: 44px; padding: 6px 0;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee::-webkit-scrollbar { display: none; }
.logo-marquee:empty { display: none; }
.logo-track { display: flex; gap: 12px; padding-inline-end: 12px; width: max-content; }
@media (hover: hover) and (pointer: fine) { .logo-marquee { cursor: grab; } .logo-marquee.dragging { cursor: grabbing; user-select: none; } }
.logo-item {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 10px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  font: 500 14px/1 var(--font); color: var(--dim);
}
.logo-item svg { width: 20px; height: 20px; color: var(--text); }


/* sliding indicator behind the active filter */
.filter-row { position: relative; isolation: isolate; }
.filter-pill {
  position: absolute; z-index: -1; top: 0; left: 0; height: 100%;
  border-radius: 999px; background: var(--btn);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out);
  pointer-events: none;
}
.filter-pill.no-anim { transition: none; }
.filter-row.has-pill .filter-btn.active { background: transparent; }
.filter-row.has-pill .filter-btn { transition: color .3s; }

/* headings rise in word by word (motion.js) */
.split-h .word { display: inline-block; }
.split-h .word-mask { display: inline-block; overflow: clip; overflow-clip-margin: 0.2em; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }

/* the magnetic primary button keeps its press feedback */
.cta-primary { will-change: transform; }

/* ---------- Studio-only choices (the alternate designs keep theirs) ---------- */
/* no labels above headings: the headings carry the section */
html:not([data-design]) .sec-label,
html:not([data-design]) .hero-eyebrow { display: none; }
html:not([data-design]) .phil-k { display: none; }
html:not([data-design]) .phil-item:not(:has(.phil-ic)) { grid-template-columns: 1fr; }
html:not([data-design]) .hero-tags,
html:not([data-design]) .focus-list { display: none; }
html[data-design]:not([data-design="d16"]) .hero-wall { display: none; }
/* each section opens on a hairline with its heading, like an index */
html:not([data-design]) .skills-head,
html:not([data-design]) .proj-header-row { border-top: 1px solid var(--line); padding-top: clamp(24px, 2.6vw, 34px); max-width: none; }
html:not([data-design]) .about { padding-top: clamp(72px, 9vw, 120px); }
html:not([data-design]) .about::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: calc(clamp(24px, 2.6vw, 34px) - clamp(40px, 6vw, 96px)); }

/* ---------- about + how we work (Studio) ----------
   The heading sits beside the text; the principles read as a
   process, in order, joined by a line that draws in on arrival
   (motion.js adds .drawn). A vertical timeline on phones. */
html:not([data-design]) .about { grid-template-columns: minmax(0, 1fr); row-gap: clamp(48px, 6vw, 88px); }
html:not([data-design]) .about::before { margin-bottom: calc(clamp(24px, 2.6vw, 34px) - clamp(48px, 6vw, 88px)); }
html:not([data-design]) .about-bio { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); column-gap: clamp(32px, 6vw, 96px); }
html:not([data-design]) .about-bio > .sec-h2 { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
html:not([data-design]) .about-bio > p, html:not([data-design]) .about-bio > .about-sign { grid-column: 2; }
html:not([data-design]) .phil-card {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 34px); counter-reset: step;
  background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
}
html:not([data-design]) .phil-head { grid-column: 1 / -1; margin: 0 0 26px; color: var(--text); }
html:not([data-design]) .phil-head svg { display: none; }
html:not([data-design]) .phil-head-label { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
html:not([data-design]) .phil-item {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 0; border: 0; align-items: flex-start;
}
html:not([data-design]) .phil-item { counter-increment: step; }
html:not([data-design]) .phil-item::before {
  content: ""; position: absolute; top: 22px; height: 1px;
  inset-inline-start: 58px; inset-inline-end: calc(-1 * clamp(20px, 3vw, 40px) + 10px);
  background: var(--line-2); transform-origin: left center;
  transition: transform 1s var(--ease-out);
}
[dir="rtl"]:not([data-design]) .phil-item::before { transform-origin: right center; }
html:not([data-design]) .phil-item:last-child::before { display: none; }
html.js-motion:not([data-design]) .phil-card:not(.drawn) .phil-item::before { transform: scaleX(0); }
html:not([data-design]) .phil-card .phil-item:nth-child(2)::before { transition-delay: .1s; }
html:not([data-design]) .phil-card .phil-item:nth-child(3)::before { transition-delay: .35s; }
html:not([data-design]) .phil-card .phil-item:nth-child(4)::before { transition-delay: .6s; }
html:not([data-design]) .phil-card .phil-item:nth-child(5)::before { transition-delay: .85s; }
html:not([data-design]) .phil-ic {
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
}
html:not([data-design]) .phil-ic svg { width: 20px; height: 20px; }
html:not([data-design]) .phil-title { font-size: 17px; margin-bottom: 6px; }
html:not([data-design]) .phil-body { font-size: 15px; max-width: 30ch; }
@media (max-width: 900px) {
  html:not([data-design]) .about-bio { grid-template-columns: minmax(0, 1fr); }
  html:not([data-design]) .about-bio > .sec-h2 { grid-row: auto; margin-bottom: 22px; }
  html:not([data-design]) .about-bio > p { grid-column: 1; }
  html:not([data-design]) .phil-card { grid-template-columns: minmax(0, 1fr); }
  html:not([data-design]) .phil-head { margin-bottom: 22px; }
  html:not([data-design]) .phil-item { flex-direction: row; gap: 16px; padding-bottom: 28px; }
  html:not([data-design]) .phil-item:last-child { padding-bottom: 0; }
  html:not([data-design]) .phil-item::before {
    top: 50px; bottom: 6px; height: auto; width: 1px;
    inset-inline-start: 21.5px; inset-inline-end: auto; transform-origin: center top;
  }
  html.js-motion:not([data-design]) .phil-card:not(.drawn) .phil-item::before { transform: scaleY(0); }
  html:not([data-design]) .phil-item > div { padding-top: 10px; }
  html:not([data-design]) .phil-body { max-width: none; }
}

/* ---------- phones: laid out for a thumb, not a shrunken desktop ----------
   Rows that would stack into a long scroll become swipe rows with a
   peek of the next card; controls are lighter; spacing is tighter. */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
@media (max-width: 700px) {
  .lang-toggle, .theme-toggle, .nav-hamburger { width: 40px; height: 40px; border-color: transparent; border-radius: 12px; }
  .nav-hamburger { background: var(--panel); border-color: var(--line); padding: 0 11px; }
  .lang-toggle:active, .theme-toggle:active, .nav-hamburger:active { background: var(--panel2); }
  .nav-mobile a:active { color: var(--dim); }

  html:not([data-design]) .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 28px; }
  html:not([data-design]) .hero-h1 { margin-bottom: 18px; }
  html:not([data-design]) .hero-sub { font-size: 16.5px; }
  html:not([data-design]) .hero-ctas { flex-direction: row; gap: 10px; }
  html:not([data-design]) .hero-ctas > a { flex: 1; justify-content: center; padding-inline: 12px; }
  html:not([data-design]) .hero-wall { margin-top: 32px; }

  html:not([data-design]) .about { padding-top: 56px; padding-bottom: 40px; row-gap: 44px; }
  html:not([data-design]) .about-bio p[data-i18n="about_p1"] { font-size: 21px; }
  html:not([data-design]) .skills, html:not([data-design]) .projects:not(.listing) { padding-top: 44px; padding-bottom: 44px; }
  html:not([data-design]) .contact { padding-top: 24px; padding-bottom: 56px; }
  html:not([data-design]) .skills-head, html:not([data-design]) .proj-header-row { margin-bottom: 22px; }

  /* swipe rows */
  html:not([data-design]) .skills-grid,
  html:not([data-design]) #projects:not(.listing) .proj-grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 14px;
    scrollbar-width: none;
  }
  html:not([data-design]) .skills-grid::-webkit-scrollbar,
  html:not([data-design]) #projects:not(.listing) .proj-grid::-webkit-scrollbar { display: none; }
  html:not([data-design]) .skills-grid > .skill-card,
  html:not([data-design]) #projects:not(.listing) .proj-grid > .proj-card { flex: 0 0 84%; scroll-snap-align: start; }
  /* the ring turns by itself: no swipe row under it, the whole width its stage */
  html:not([data-design]) #projects:not(.listing) .proj-grid.proj-ring { display: block; overflow: visible; scroll-snap-type: none; padding: 2px 0 0; }
  html:not([data-design]) .skills-grid > .skill-card { padding: 22px; }
  html:not([data-design]) .skill-title { margin-top: 18px; }
  html:not([data-design]) .logo-marquee { margin-top: 24px; }
  html:not([data-design]) .all-row { margin-top: 20px; }

  /* the listing keeps a list, just tighter */
  .listing .proj-grid { gap: 12px; }
  .proj-body { padding: 16px 18px 18px; }
  .proj-card:active { transform: scale(.99); }
}

/* ---------- contact: channels as buttons, never raw numbers ---------- */
.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.contact-act {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 13px 14px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-2);
  transition: transform .25s var(--ease-out), border-color .2s, background-color .2s;
}
.contact-act:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .contact-act:hover { transform: translateY(-2px); border-color: var(--faint); }
}
.act-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-raise); color: var(--text);
}
.act-ic svg { width: 21px; height: 21px; }
.act-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.act-wa .act-ic { color: #fff; background: #25d366; }
.act-call .act-ic { color: var(--on-accent); background: var(--btn); }
.act-play .act-ic { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.act-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-txt b { font: 600 15.5px/1.2 var(--font); }
.act-txt small { font-size: 12.5px; color: var(--faint); line-height: 1.3; }
.cl-ic, .cl-k { display: none; }
.cl-txt { display: contents; }
/* phones (owner 2026-09-30: the old mix of a half and a full button
   looked uneven): the email as one card, the channels as equal tiles */
@media (max-width: 700px) {
  .contact-lead {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); margin-bottom: 10px;
  }
  .cl-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
  .cl-ic svg { width: 22px; height: 22px; }
  .cl-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cl-k { display: block; font-size: 12.5px; color: var(--faint); }
  .contact-lead .contact-mail { font-size: 16.5px; letter-spacing: -.01em; font-weight: 600; gap: 6px; overflow-wrap: anywhere; }
  .contact-lead .contact-mail-arr { display: none; }
  .contact-lead .contact-copy-btn { padding: 9px 13px; font-size: 13.5px; }
  .contact-actions { grid-template-columns: 1fr 1fr; gap: 10px; border-top: 0; padding-top: 0; }
  .contact-actions .contact-act { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 20px; }
  .contact-actions .contact-act:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .contact-actions .act-ic { width: 42px; height: 42px; }
}

/* ---------- what we build (Studio): cards that open on their apps ----------
   A coloured stage (a wash of the first app's icon) with the apps
   fanned across it; they spread when the card is hovered. */
.skill-apps-wash, .skill-apps-count { display: none; }
html:not([data-design]) .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html:not([data-design]) .skills-grid > .skill-card {
  grid-column: auto !important; min-height: 0; padding: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "stage stage" "icon title" "body body" "more more";
  background: var(--panel);
}
html:not([data-design]) .skills-grid > .skill-card::before { display: none; }
html:not([data-design]) .skill-card .skill-apps {
  grid-area: stage; position: relative; height: 156px; margin: 0; padding: 0; border: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  background: var(--bg-raise); border-bottom: 1px solid var(--line);
}
html:not([data-design]) .skill-apps-wash { display: block; position: absolute; inset: 0; z-index: -1; }
html:not([data-design]) .skill-apps-wash img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.5); transform: scale(1.8); opacity: .5; }
[data-theme="light"]:not([data-design]) .skill-apps-wash img { opacity: .38; }
html:not([data-design]) .skill-card .skill-apps-lbl { display: none; }
html:not([data-design]) .skill-card .skill-apps-row { display: flex; align-items: center; padding-inline-start: 14px; }
html:not([data-design]) .skill-card .skill-app {
  width: 58px !important; height: 58px !important; border-radius: 16px !important;
  margin-inline-start: -14px; transform: rotate(var(--r, 0deg));
  box-shadow: 0 0 0 2px var(--panel), 0 14px 26px -12px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease-out), margin .5s var(--ease-out);
}
html:not([data-design]) .skill-card .skill-app-more { font-size: 15px; background: var(--panel); }
@media (hover: hover) and (pointer: fine) {
  html:not([data-design]) .skill-card:hover .skill-app { margin-inline-start: 6px; transform: rotate(0deg) translateY(-4px); }
}
html:not([data-design]) .skill-apps-count {
  display: inline-flex; position: absolute; bottom: 10px; inset-inline-start: 12px;
  font: 500 12px/1 var(--font); color: var(--text); padding: 6px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
html:not([data-design]) .skill-card .skill-icon { grid-area: icon; width: 38px; height: 38px; border-radius: 11px; margin: 20px 0 0; margin-inline-start: 22px; color: var(--text); background: var(--bg-raise); border-color: var(--line-2); }
html:not([data-design]) .skill-card .skill-icon svg { width: 20px; height: 20px; }
html:not([data-design]) .skill-card .skill-title { grid-area: title; align-self: center; margin: 20px 22px 0 12px; margin-inline: 12px 22px; font-size: 18px !important; }
html:not([data-design]) .skill-card .skill-body { grid-area: body; padding: 12px 22px 0; font-size: 14.5px; }
html:not([data-design]) .skill-card .skill-more { grid-area: more; margin: 0; padding: 16px 22px 20px; align-self: end; }
html:not([data-design]) .skills-grid > .skill-card:hover { border-color: var(--line-2); }
@media (max-width: 1080px) { html:not([data-design]) .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  html:not([data-design]) .skills-grid > .skill-card { padding: 0; }
  html:not([data-design]) .skill-card .skill-apps { height: 132px; }
  html:not([data-design]) .skill-card .skill-app { width: 50px !important; height: 50px !important; border-radius: 14px !important; }
}

/* ---------- facts: each number with a picture of what it counts ---------- */
.facts-row:has(.fact-top) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  border: 0;
}
.facts-row .fact:has(.fact-top) {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 24px 24px 22px; border: 1px solid var(--line) !important; border-radius: var(--r);
  background: var(--panel); min-height: 208px;
}
.fact-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fact-top .fact-n { font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -.05em; }
.fact-top .fact-l { font-size: 14.5px; color: var(--dim); max-width: 14ch; line-height: 1.35; }
.fact-viz { min-height: 72px; display: flex; align-items: flex-end; }
/* 17 real icons, packed */
.fact-mosaic { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-content: end; }
.fact-mosaic > span { aspect-ratio: 1; border-radius: 26%; overflow: hidden; background: var(--bg-raise); box-shadow: 0 0 0 1px var(--line); }
.fact-mosaic > span img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fact-mosaic > span.blank { background: var(--line-2); }
/* the live share: one segment per project, the live ones filled */
.fact-live .fact-viz { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 10px; }
.fact-bar { display: flex; gap: 4px; height: 40px; align-items: stretch; }
.fact-bar i { flex: 1; border-radius: 4px; background: var(--line-2); transform-origin: bottom; }
.fact-bar i.on { background: var(--text); }
.fact-of { font: 500 13px/1 var(--mono); color: var(--faint); }
/* the platforms as tiles */
.facts-row .fact-os { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; align-items: end; }
.facts-row .fact-os > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 4px 10px; border-radius: 14px; background: var(--bg-raise); border: 1px solid var(--line); color: var(--text);
}
.facts-row .fact-os svg { width: 22px; height: 22px; color: var(--text); }
.facts-row .fact-os em { font-style: normal; font-size: 12px; color: var(--dim); line-height: 1; white-space: nowrap; }
@media (max-width: 1080px) {
  .facts-row:has(.fact-top) { grid-template-columns: 1fr 1fr; }
  .facts-row .fact-platforms-n { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .facts-row:has(.fact-top) { grid-template-columns: 1fr; gap: 10px; }
  .facts-row .fact:has(.fact-top) { min-height: 0; padding: 18px; gap: 16px; }
  .fact-viz { min-height: 0; }
  .fact-mosaic { grid-template-columns: repeat(9, 1fr); gap: 5px; }
  .fact-bar { height: 30px; }
}

/* ---------- how we work: a pulse walks the line, step to step ---------- */
html:not([data-design]) .phil-item::after {
  content: ""; position: absolute; top: 21.5px; height: 1px; pointer-events: none;
  inset-inline-start: 58px; inset-inline-end: calc(-1 * clamp(20px, 3vw, 40px) + 10px);
  background: linear-gradient(90deg, transparent 44%, var(--text) 50%, transparent 56%) 100% 0 / 300% 100% no-repeat;
  opacity: 0;
}
html:not([data-design]) .phil-item:last-child::after { display: none; }
html:not([data-design]) .phil-card.drawn .phil-item::after { opacity: .9; animation: philRun 6.4s linear infinite; }
html:not([data-design]) .phil-card.drawn .phil-item:nth-child(2)::after { animation-delay: .9s; }
html:not([data-design]) .phil-card.drawn .phil-item:nth-child(3)::after { animation-delay: 2.5s; }
html:not([data-design]) .phil-card.drawn .phil-item:nth-child(4)::after { animation-delay: 4.1s; }
html:not([data-design]) .phil-card.drawn .phil-item:nth-child(5)::after { animation-delay: 5.7s; }
@keyframes philRun { 0% { background-position: 100% 0; } 25%, 100% { background-position: 0% 0; } }
[dir="rtl"]:not([data-design]) .phil-card.drawn .phil-item::after { animation-name: philRunRtl; }
@keyframes philRunRtl { 0% { background-position: 0% 0; } 25%, 100% { background-position: 100% 0; } }
/* the step number, quiet, above each title (in the order shown) */
html:not([data-design]) .phil-title::before {
  display: block; margin-bottom: 6px; font: 500 12px/1 var(--mono); color: var(--faint); letter-spacing: .04em;
}
html:not([data-design]) .phil-title::before { content: counter(step, decimal-leading-zero); }
html:not([data-design]) .phil-ic { transition: transform .35s var(--ease-out), border-color .25s, background-color .25s; }
@media (hover: hover) and (pointer: fine) {
  html:not([data-design]) .phil-item:hover .phil-ic { transform: translateY(-3px); border-color: var(--faint); background: var(--panel2); }
}
@media (max-width: 900px) {
  html:not([data-design]) .phil-item::after {
    top: 50px; bottom: 6px; height: auto; width: 1px; inset-inline-start: 21.5px; inset-inline-end: auto;
    background: linear-gradient(180deg, transparent 44%, var(--text) 50%, transparent 56%) 0 100% / 100% 300% no-repeat;
  }
  html:not([data-design]) .phil-card.drawn .phil-item::after, [dir="rtl"]:not([data-design]) .phil-card.drawn .phil-item::after { animation-name: philRunY; }
  @keyframes philRunY { 0% { background-position: 0 100%; } 25%, 100% { background-position: 0 0%; } }
}
@media (prefers-reduced-motion: reduce) { html:not([data-design]) .phil-item::after { display: none; } }

/* ---------- hero backdrop (Studio): our banners as light + a fine grid ---------- */
.hero-ambient { display: none; }
html:not([data-design]) .hero-ambient {
  display: block; position: absolute; top: 0; left: 0; right: 0; height: max(1150px, 150vh); z-index: -1;
  pointer-events: none; overflow: hidden;
  /* a long, even fade: strongest behind the headline, gone well into
     the next section, so there is no edge where the hero ends */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 28%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .12) 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 28%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .12) 78%, transparent 100%);
}
html:not([data-design]) .hero-ambient .amb {
  position: absolute; width: 58vw; aspect-ratio: 2 / 1; border-radius: 50%; overflow: hidden;
  filter: blur(110px) saturate(1.2); opacity: .3; will-change: transform;
}
[data-theme="light"]:not([data-design]) .hero-ambient .amb { opacity: .2; filter: blur(110px) saturate(1.1); }
html:not([data-design]) .hero-ambient .amb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:not([data-design]) .hero-ambient .amb-0 { top: -12%; inset-inline-end: -12%; animation: ambA 26s var(--ease-in-out) infinite alternate; }
html:not([data-design]) .hero-ambient .amb-1 { top: 14%; inset-inline-start: -18%; width: 48vw; animation: ambB 32s var(--ease-in-out) infinite alternate; }
html:not([data-design]) .hero-ambient .amb-2 { top: 34%; inset-inline-end: 12%; width: 40vw; opacity: .16; animation: ambA 38s var(--ease-in-out) infinite alternate-reverse; }
@keyframes ambA { to { transform: translate(-6vw, 4vh) scale(1.12); } }
@keyframes ambB { to { transform: translate(7vw, -3vh) scale(1.08); } }
/* (the fine grid behind the headline was removed, owner 2026-10-01) */
@media (prefers-reduced-motion: reduce) { html:not([data-design]) .hero-ambient .amb { animation: none; } }

/* ---------- about (Studio): a raised band with the wordmark, faint ---------- */
.about-mark { display: none; }
html:not([data-design]) section.about {
  position: relative; isolation: isolate;
  /* a full-width band that fades in and out rather than starting on
     a hard line (border-image paints past the box without widening
     the page) */
  border-image: linear-gradient(180deg, transparent, var(--bg-raise) 160px, var(--bg-raise) calc(100% - 160px), transparent) fill 0 / 0 / 0 100vmax;
  margin-top: clamp(40px, 6vw, 80px);
}
html:not([data-design]) section.about::before { background: transparent; }
html:not([data-design]) .about-mark {
  display: block; position: absolute; z-index: -1; pointer-events: none;
  /* hangs past the section edge, never past the screen's (in RTL that
     would widen the page) */
  inset-inline-end: max(-6%, calc((100% - 100vw) / 2 + 12px)); bottom: -2%; width: min(78vw, 1100px); opacity: .045;
}
[data-theme="light"]:not([data-design]) .about-mark { opacity: .06; }
html:not([data-design]) .about-mark img { width: 100%; height: auto; display: block; }
html:not([data-design]) .about .phil-ic { background: var(--panel); }

/* ---------- footer: the app, presented like an app ----------
   The icon sits in a tile with a soft glow; a slow light passes over
   it now and then. The rest is a quiet card and one line below it. */
.footer { border-top: 0; background: none; padding: 0 var(--gutter); }
.footer-top {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--line);
}
.footer-top::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 420px; height: 420px; top: -210px; inset-inline-start: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-strong) 20%, transparent), transparent);
}
.footer-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 12px; align-items: center; align-content: start; }
.footer-brand > img[data-logo] { grid-column: 2; }
.footer-brand .footer-tag { grid-column: 1 / -1; margin-top: 4px; }
.footer-app-icon {
  grid-row: 1; position: relative; display: block; width: 76px; height: 76px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), 0 16px 34px -14px color-mix(in srgb, var(--accent-strong) 60%, transparent);
  transition: transform .5s var(--ease-out);
}
.footer-app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-app-icon::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat;
  animation: iconShine 7s var(--ease-in-out) infinite 2s;
}
@keyframes iconShine { 0%, 70% { background-position: 150% 0; } 100% { background-position: -60% 0; } }
@media (hover: hover) and (pointer: fine) { .footer-top:hover .footer-app-icon { transform: translateY(-3px) rotate(-3deg); } }
.footer-brand > img[data-logo] { height: 26px; }
.footer-bottom { border-top: 0; padding: 20px 4px 28px; }
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; column-gap: 16px; }
  .footer-app-icon { width: 64px; height: 64px; border-radius: 18px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .footer-app-icon::after { animation: none; } }
/* the capabilities page lists every card; on a phone that is a list, not a swipe row */
@media (max-width: 700px) {
  html:not([data-design]) .skills.listing .skills-grid { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; gap: 12px; }
  html:not([data-design]) .skills.listing .skills-grid > .skill-card { flex: none; }
}

/* ---------- what we build, on the home page: short rows, quick to scan ----------
   (the /skills/ page keeps the fuller cards) */
html:not([data-design]) #skills:not(.listing) .skills-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); gap-row: 0; row-gap: 0;
  overflow: visible; margin: 0; padding: 0; border-top: 1px solid var(--line);
}
html:not([data-design]) #skills:not(.listing) .skills-grid > .skill-card {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "icon title apps" "icon body apps";
  column-gap: 16px; row-gap: 3px; align-items: center;
  padding: 20px 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; box-shadow: none; transform: none; min-height: 0; flex: none;
  transition: background-color .25s;
}
html:not([data-design]) #skills:not(.listing) .skill-card::after { display: none; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-icon {
  grid-area: icon; align-self: start; margin: 2px 0 0; width: 42px; height: 42px; border-radius: 12px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
}
html:not([data-design]) #skills:not(.listing) .skill-card .skill-icon svg { width: 20px; height: 20px; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-title { grid-area: title; margin: 0; font-size: 17px !important; align-self: end; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-body {
  grid-area: body; padding: 0; font-size: 14.5px; line-height: 1.5; align-self: start;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
html:not([data-design]) #skills:not(.listing) .skill-card .skill-more { display: none; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-apps {
  grid-area: apps; height: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; display: flex; align-items: center; gap: 12px;
}
html:not([data-design]) #skills:not(.listing) .skill-apps-wash,
html:not([data-design]) #skills:not(.listing) .skill-apps-count { display: none; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-apps-row { padding: 0; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-app {
  width: 28px !important; height: 28px !important; border-radius: 8px !important; margin-inline-start: -8px; transform: none;
  box-shadow: 0 0 0 2px var(--bg);
}
html:not([data-design]) #skills:not(.listing) .skill-card .skill-app:first-child { margin-inline-start: 0; }
html:not([data-design]) #skills:not(.listing) .skill-card .skill-app-more { font-size: 11px; }
/* the row's arrow */
html:not([data-design]) #skills:not(.listing) .skill-card .skill-apps::after {
  content: "→"; color: var(--faint); font-size: 16px; transition: transform .25s var(--ease-out), color .2s;
}
[dir="rtl"]:not([data-design]) #skills:not(.listing) .skill-card .skill-apps::after { content: "←"; }
@media (hover: hover) and (pointer: fine) {
  html:not([data-design]) #skills:not(.listing) .skill-card:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
  html:not([data-design]) #skills:not(.listing) .skill-card:hover .skill-apps::after { color: var(--text); transform: translateX(3px); }
  [dir="rtl"]:not([data-design]) #skills:not(.listing) .skill-card:hover .skill-apps::after { transform: translateX(-3px); }
  html:not([data-design]) #skills:not(.listing) .skill-card:hover .skill-app { margin-inline-start: -8px; transform: none; }
}
@media (max-width: 900px) {
  html:not([data-design]) #skills:not(.listing) .skills-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  html:not([data-design]) #skills:not(.listing) .skills-grid { display: grid; }
  html:not([data-design]) #skills:not(.listing) .skills-grid > .skill-card { padding: 16px 2px; column-gap: 14px; grid-template-columns: 40px minmax(0, 1fr) auto; }
  html:not([data-design]) #skills:not(.listing) .skill-card .skill-app:nth-child(n+3):not(.skill-app-more) { display: none; }
}

/* ---------- stats: the orbit ----------
   Our apps circle the company: the live ones on the inner ring, the
   rest further out. Rings turn slowly in opposite directions; the
   icons stay upright; hovering holds it still. */
.facts-row:has(.orbit-stats) { display: block; border: 0; }
.orbit-stats {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden; isolation: isolate;
}
.os-copy { display: flex; flex-direction: column; gap: 28px; }
.os-stat { display: flex; flex-direction: column; gap: 6px; }
.os-stat .fact-n { font-size: clamp(36px, 3.6vw, 52px); font-weight: 620; letter-spacing: -.045em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.os-stat.os-lead .fact-n { font-size: clamp(72px, 9vw, 132px); letter-spacing: -.06em; }
.os-stat.os-lead .os-l { font-size: 17px; color: var(--text); }
.os-l { font-size: 14.5px; line-height: 1.45; color: var(--dim); max-width: 26ch; }
.os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.os-plats { display: flex; gap: 8px; margin-top: 8px; color: var(--text); }
.os-plats svg { width: 18px; height: 18px; }

.os-orbit {
  --size: min(100%, 460px); position: relative; width: var(--size); aspect-ratio: 1; margin-inline: auto;
  container-type: inline-size;
}
.os-orbit::before, .os-orbit::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px dashed var(--line-2); pointer-events: none;
}
.os-orbit::after { inset: 2%; border-style: solid; border-color: var(--line); }
.os-glow {
  position: absolute; inset: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-strong) 30%, transparent), transparent);
  filter: blur(10px);
}
.os-core {
  position: absolute; left: 50%; top: 50%; width: 22cqi; height: 22cqi; margin: -11cqi 0 0 -11cqi;
  border-radius: 24%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), 0 22px 50px -18px color-mix(in srgb, var(--accent-strong) 70%, transparent);
}
.os-core img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* three tracks, each drawn by its own ring so it turns with it; the
   apps are shared out by track length, offset so no two line up */
.os-orbit::before, .os-orbit::after { display: none; }
.os-ring { position: absolute; inset: 0; animation: osSpin 80s linear infinite; }
.os-ring::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--rad) * 2); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed var(--line-2); pointer-events: none;
}
.os-ring.r1 { --rad: 24cqi; }
.os-ring.r2 { --rad: 36cqi; animation-duration: 115s; animation-direction: reverse; }
.os-ring.r3 { --rad: 48cqi; animation-duration: 150s; }
.os-ring.r3::before { border-style: solid; border-color: var(--line); }
.os-sat {
  position: absolute; left: 50%; top: 50%; width: 10cqi; aspect-ratio: 1; margin: -5cqi;
  transform: rotate(calc((var(--i) + var(--o, 0)) * 360deg / var(--n))) translateX(var(--rad)) rotate(calc((var(--i) + var(--o, 0)) * -360deg / var(--n)));
}
.os-ring.r2 .os-sat { width: 9cqi; margin: -4.5cqi; }
.os-ring.r3 .os-sat { width: 8cqi; margin: -4cqi; }
.os-sat > span {
  display: block; width: 100%; height: 100%; border-radius: 26%; overflow: hidden; background: var(--panel2);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -12px rgba(0,0,0,.55);
  animation: osSpin 90s linear infinite reverse;
  transition: transform .3s var(--ease-out);
}
.os-ring.r2 .os-sat > span { animation-duration: 115s; animation-direction: normal; }
.os-ring.r3 .os-sat > span { animation-duration: 150s; }
.os-sat img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes osSpin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .os-orbit:hover .os-ring, .os-orbit:hover .os-sat > span { animation-play-state: paused; }
  .os-sat:hover > span { box-shadow: 0 0 0 2px var(--text), 0 12px 26px -10px rgba(0,0,0,.6); }
}
@media (prefers-reduced-motion: reduce) { .os-ring, .os-sat > span { animation: none; } }
/* the small print under three of the numbers: how many of all are
   live, the most used tools, the languages themselves */
.os-meter { display: block; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 180px; }
.os-meter i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--accent); }
.os-names { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
[dir="rtl"] .os-names { text-align: right; }
.os-langs { display: flex; gap: 6px; margin-top: 8px; }
.os-langs b {
  min-width: 30px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid var(--line-2); font: 600 11.5px/1 var(--font); color: var(--text); letter-spacing: .02em;
}
.os-fade { display: none; }

/* phones and tablets: the orbit rises over the numbers like a sunrise;
   the lower half sinks behind the card so the icons come up over the
   edge as the rings turn, and the numbers sit in four small tiles */
@media (max-width: 900px) {
  .orbit-stats { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .os-orbit {
    --ow: min(124%, 540px); order: -1; width: var(--ow); max-width: none;
    /* room above, so the outer ring's apps pass inside the card's top
       edge instead of under it (owner 2026-10-02) */
    margin: calc(var(--ow) * .06) calc((100% - var(--ow)) / 2) calc(var(--ow) * -.34);
  }
  .os-fade {
    display: block; position: absolute; left: -2%; right: -2%; top: 44%; bottom: -2%; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--panel) 38%);
  }
  .os-core { z-index: 3; }
  .os-copy { position: relative; z-index: 4; gap: 22px; }
  .os-stat.os-lead { align-items: center; text-align: center; gap: 4px; }
  .os-stat.os-lead .os-l { max-width: none; }
  .os-grid { gap: 10px; padding-top: 0; border-top: 0; }
  .os-grid .os-stat {
    padding: 15px 15px 16px; border: 1px solid var(--line); border-radius: 16px; gap: 5px;
    background: color-mix(in srgb, var(--bg) 45%, var(--panel));
  }
  .os-grid .os-l { font-size: 13.5px; }
}
@media (max-width: 700px) {
  .orbit-stats { padding: 0 14px 14px; }
  .os-stat.os-lead .fact-n { font-size: 76px; }
  .os-stat.os-lead .os-l { font-size: 15.5px; }
  .os-stat .fact-n { font-size: 32px; }
  .os-meter { max-width: none; }
}

/* ---------- what we build: the explorer (Studio home) ----------
   The names read at a glance on one side; the open one shows its
   line and the apps behind it. */
.cap-x { display: none; }
html:not([data-design]) #skills:not(.listing) .skills-grid { display: none; }
html:not([data-design]) .cap-x {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: stretch;
}
.cx-tabs { display: flex; flex-direction: column; gap: 4px; }
.cx-tab {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 13px 16px; border: 1px solid transparent; border-radius: 16px; background: none; color: var(--dim);
  font: 560 16.5px/1.3 var(--font); letter-spacing: -.01em; text-align: start; cursor: pointer; overflow: hidden;
  transition: color .2s, background-color .25s, border-color .25s;
}
[lang="ar"] .cx-tab { font-family: inherit; letter-spacing: 0; }
.cx-tab-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--dim); transition: color .25s, background-color .25s, border-color .25s;
}
.cx-tab-ic svg { width: 19px; height: 19px; }
.cx-tab-ic img { width: 22px; height: 22px; object-fit: contain; }
.cx-tab-n {
  min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums;
}
.cx-tab-bar {
  position: absolute; inset-inline: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
}
[dir="rtl"] .cx-tab-bar { transform-origin: 100% 50%; }
.cx-tab:hover { color: var(--text); }
.cx-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-tab.on { color: var(--text); background: var(--panel); border-color: var(--line); }
.cx-tab.on .cx-tab-ic { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.cx-tab.on .cx-tab-n { color: var(--text); border-color: var(--line-2); }
.cap-x.run:not(.manual) .cx-tab.on .cx-tab-bar { opacity: 1; animation: cxRun 6.5s linear forwards; }
.cap-x.hold .cx-tab.on .cx-tab-bar { animation-play-state: paused; }
@keyframes cxRun { to { transform: scaleX(1); } }

.cx-panels { display: grid; }
.cx-panel {
  grid-area: 1 / 1; position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.cx-panel.on { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
.cx-wash {
  position: absolute; z-index: -1; top: -34%; inset-inline-end: -20%; width: 72%; aspect-ratio: 1; pointer-events: none;
  filter: blur(64px) saturate(1.4); opacity: .26;
}
[data-theme="light"] .cx-wash { opacity: .2; }
.cx-wash img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.cx-p-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.cx-p-ic svg { width: 24px; height: 24px; }
.cx-p-ic img { width: 28px; height: 28px; object-fit: contain; }
.cx-p-t { font-size: clamp(24px, 2.4vw, 32px); font-weight: 620; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 10px; color: var(--text); }
[dir="rtl"] .cx-p-t { letter-spacing: 0; line-height: 1.35; }
.cx-p-b { font-size: 16.5px; line-height: 1.65; color: var(--dim); max-width: 46ch; margin: 0 0 28px; }
.cx-apps-l { font-size: 13px; color: var(--faint); margin-bottom: 12px; }
.cx-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 14px 10px; margin-bottom: 28px; }
.cx-app { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--dim); text-align: center; }
.cx-app-ic {
  width: 100%; max-width: 62px; aspect-ratio: 1; border-radius: 24%; overflow: hidden; display: grid; place-items: center;
  background: var(--panel2); box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -14px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.cx-app-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-app-n { font-size: 12px; line-height: 1.3; }
.cx-app-more .cx-app-ic { font: 600 15px/1 var(--font); color: var(--text); }
.cx-app:hover .cx-app-ic { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--text), 0 14px 26px -14px rgba(0, 0, 0, .6); }
.cx-app:hover .cx-app-n { color: var(--text); }
.cx-go {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none; transition: background-color .2s;
}
.cx-go:hover { background: var(--panel2); }
.cx-go-arr { display: inline-block; transition: transform .25s var(--ease-out); }
[dir="rtl"] .cx-go-arr { transform: scaleX(-1); }
.cx-go:hover .cx-go-arr { transform: translateX(3px); }
[dir="rtl"] .cx-go:hover .cx-go-arr { transform: scaleX(-1) translateX(3px); }
@media (prefers-reduced-motion: reduce) { .cx-panel { transition: none; transform: none; } }

@media (max-width: 760px) {
  html:not([data-design]) .cap-x { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cx-tabs {
    flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
  }
  .cx-tabs::-webkit-scrollbar { display: none; }
  .cx-tab {
    flex: none; width: auto; grid-template-columns: auto auto; gap: 8px; padding: 6px 14px 6px 6px; padding-inline: 6px 14px;
    border-radius: 999px; border-color: var(--line); font-size: 14.5px;
  }
  .cx-tab-ic { width: 30px; height: 30px; border-radius: 50%; }
  .cx-tab-ic svg { width: 15px; height: 15px; }
  .cx-tab-n { display: none; }
  .cx-tab-bar { inset-inline: 14px; }
  .cx-tab.on { background: var(--accent-soft); border-color: var(--accent-line); }
  .cx-panel { padding: 22px 18px 20px; border-radius: 22px; }
  .cx-p-ic { display: none; }
  .cx-p-t { font-size: 24px; }
  .cx-p-b { font-size: 15.5px; margin-bottom: 22px; }
  /* the apps as one sideways row, so the panel stays short */
  .cx-apps {
    display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 -18px 20px; padding: 2px 18px 4px; scroll-snap-type: x proximity; scroll-padding-inline: 18px;
  }
  .cx-apps::-webkit-scrollbar { display: none; }
  .cx-app { flex: 0 0 64px; scroll-snap-align: start; }
  .cx-app-ic { max-width: 56px; }
  .cx-app-n { font-size: 11.5px; }
}
.cx-dots { display: none; }
@media (max-width: 760px) {
  html:not([data-design]) .cx-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .cx-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .3s var(--ease-out), background-color .3s; }
  .cx-dots i.on { width: 18px; background: var(--accent); }
}

/* ---------- field kit: paste / clear at the end of every field ---------- */
.fk { position: relative; display: block; min-width: 0; }
.fk > input, .fk > textarea { box-sizing: border-box; }
.fk-btn {
  position: absolute; top: 50%; inset-inline-end: 7px; transform: translateY(-50%);
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; color: var(--faint, #8a867e); background: transparent;
  transition: color .15s, background-color .15s; -webkit-tap-highlight-color: transparent;
}
.fk-area .fk-btn { top: 8px; transform: none; }
.fk-btn svg { width: 16px; height: 16px; }
.fk-btn.is-clear svg { width: 14px; height: 14px; }
.fk-btn:hover, .fk-btn:focus-visible { color: var(--text, #f2f0eb); background: color-mix(in srgb, currentColor 12%, transparent); outline: none; }
.fk-btn[hidden] { display: none; }
@media (pointer: coarse) { .fk-btn { width: 34px; height: 34px; inset-inline-end: 4px; } }

/* ---------- footer, slim (owner 2026-09-30): the brand, the few links,
   the copyright. Languages and the company line already live in the
   top bar and the hero; on a phone only the brand line stays. ---------- */
.footer-tag, .footer-col:has(> a[data-lang-set]) { display: none !important; }
.footer .footer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px;
  padding: 18px 22px; border-radius: 22px;
}
.footer-top::before { width: 260px; height: 260px; top: -130px; inset-inline-start: -60px; }
.footer .footer-brand { display: flex; align-items: center; gap: 14px; }
.footer .footer-app-icon { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -12px color-mix(in srgb, var(--accent-strong) 60%, transparent); }
.footer .footer-brand > img[data-logo] { height: 22px; }
.footer .footer-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.footer .footer-col .footer-h { display: none; }
.footer .footer-col a { font-size: 14.5px; }
.footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 6px 26px; }
@media (max-width: 700px) {
  .footer .footer-top { justify-content: center; padding: 14px 16px; }
  .footer .footer-col { display: none; }
  .footer .footer-bottom { flex-direction: row; justify-content: center; padding: 12px 0 calc(84px + env(safe-area-inset-bottom)); }
  .footer .footer-extra { display: none; }
}

/* install, in the phone menu */
.nav-mobile .nav-mobile-install {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  font: 600 15.5px/1.2 var(--font); cursor: pointer; text-align: start;
}
.nav-mobile .nav-mobile-install svg { width: 20px; height: 20px; color: var(--accent); }
.nav-mobile .nav-mobile-install[hidden] { display: none; }
.nav-mobile .nav-mobile-install + .nav-mobile-cta { margin-top: 10px; }

/* ---------- the floating dock: up / down + help ---------- */
.dock {
  position: fixed; z-index: 70; inset-inline-end: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: row; align-items: center; gap: 8px; pointer-events: none;
}
.dock > * { pointer-events: auto; }
.dock-scroll {
  display: flex; flex-direction: row; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateX(8px) scale(.96); visibility: hidden;
  transition: opacity .22s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
}
.dock.scrolling .dock-scroll { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.dock.ask-open .dock-scroll { opacity: 0; visibility: hidden; }
.dock-b {
  width: 42px; height: 40px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: background-color .15s;
}
.dock-b + .dock-b { border-inline-start: 1px solid var(--line); }
[dir="rtl"] .dock-scroll { transform: translateX(-8px) scale(.96); }
[dir="rtl"] .dock.scrolling .dock-scroll { transform: none; }
.dock-b svg { width: 18px; height: 18px; }
.dock-b[hidden] { display: none; }
.dock-b:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.dock-ask {
  position: relative; width: 54px; height: 54px; border-radius: 17px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #1a2231, #0a0d14 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 0 0 1px rgba(0, 0, 0, .25), 0 14px 30px -12px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease-out), background-color .2s; -webkit-tap-highlight-color: transparent;
}
.dock-ask:hover { transform: translateY(-2px); }
.dock-ask:active { transform: scale(.94); }
.dock-ask svg { width: 30px; height: 30px; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease-out); }
.dock-ask .dock-ic-x { width: 22px; height: 22px; }
.dock-ask .dock-ic-x { opacity: 0; transform: rotate(-60deg) scale(.6); }
.dock.ask-open .dock-ask .dock-ic-ask { opacity: 0; transform: rotate(60deg) scale(.6); }
.dock.ask-open .dock-ask .dock-ic-x { opacity: 1; transform: none; }
.dock.busy .dock-ask { opacity: .8; }
html:has(.adm-overlay.open) .dock, html.as-open .nav-mobile.open ~ .dock { display: none; }
@media (max-width: 700px) { .dock-ask { width: 52px; height: 52px; border-radius: 16px; } }
@media print { .dock, .as { display: none !important; } }

/* ---------- the help assistant ---------- */
.as { position: fixed; inset: 0; z-index: 69; pointer-events: none; }
.as[hidden] { display: none; }
.as-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.as-card {
  position: absolute; inset-inline-end: max(14px, env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 28px)); height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden; pointer-events: auto; outline: none;
  border-radius: 24px; background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .6), 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
  opacity: 0; transform: translateY(14px) scale(.97); transform-origin: 100% 100%;
  transition: opacity .22s var(--ease-out), transform .32s var(--ease-out);
}
[dir="rtl"] .as-card { transform-origin: 0 100%; }
.as.on .as-card { opacity: 1; transform: none; }
@media (min-width: 701px) { .as-scrim { display: none; } }
.as.on .as-scrim { opacity: 1; }
.as-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; padding-inline: 16px 10px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, var(--bg));
}
.as-av { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.as-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.as-ht b { font-size: 15.5px; font-weight: 640; color: var(--text); }
.as-sub { font-size: 12.5px; color: var(--faint); }
.as-ib {
  width: 36px; height: 36px; border-radius: 11px; border: 0; background: none; color: var(--dim); cursor: pointer;
  display: grid; place-items: center; flex: none;
}
.as-ib:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.as-ib svg { width: 18px; height: 18px; }
.as-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.as-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; animation: asIn .3s var(--ease-out); }
@keyframes asIn { from { opacity: 0; transform: translateY(6px); } }
.as-bot { align-self: flex-start; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-end-start-radius: 6px; }
.as-me { align-self: flex-end; color: var(--on-accent); background: var(--btn); border-end-end-radius: 6px; }
.as-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.as-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: asDot 1s infinite ease-in-out; }
.as-dots i:nth-child(2) { animation-delay: .15s; } .as-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.as-gos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.as-go {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none;
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color .15s, background-color .15s;
}
.as-go:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.as-go svg { width: 15px; height: 15px; flex: none; }
.as-go .as-go-ar { width: 13px; height: 13px; color: var(--faint); }
[dir="rtl"] .as-go .as-go-ar { transform: scaleX(-1); }
.as-go-wa svg { color: #25d366; }
.as-chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 10px; max-height: 38%; overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.as-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 8px 12px; border-radius: 14px;
  font: 560 13.5px/1.35 var(--font); color: var(--text); text-align: start; cursor: pointer;
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent); border: 1px solid var(--accent-line);
  transition: background-color .15s, transform .15s;
}
[lang="ar"] .as-chip { font-family: inherit; }
.as-chip:hover { background: var(--accent-soft); }
.as-chip:active { transform: scale(.97); }
.as-chip-sv { width: 16px; height: 16px; flex: none; color: var(--accent); }
.as-chip-ic { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; flex: none; }
.as-chip-nav { background: none; border-color: var(--line-2); color: var(--dim); }
.as-chip-nav .as-chip-sv { color: var(--dim); }
[dir="rtl"] .as-chip-nav .as-chip-sv { transform: scaleX(-1); }
.as-chip-app { background: var(--panel); border-color: var(--line-2); }
.as-none { width: 100%; font-size: 13.5px; color: var(--dim); margin: 2px 0 0; }
.as-foot { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.as-q {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font: 15px/1 var(--font); outline: none;
}
.as-q:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.as-q::-webkit-search-cancel-button { display: none; }
@media (max-width: 700px) {
  .as-card {
    inset-inline: 0; bottom: 0; width: 100%; height: min(78dvh, 640px); border-radius: 24px 24px 0 0;
    border-bottom: 0; transform: translateY(24px); transform-origin: 50% 100%;
  }
  .as-q { font-size: 16px; }
  html.as-open .dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { .as-card, .as-scrim, .as-msg { transition: none; animation: none; } }

/* the orbit, driven by script (home.js orbitDrive): the rings take
   their angle from --a, the icons turn back by the same to stay
   upright; a finger sideways turns it, up and down still scrolls */
.os-orbit.js-orbit { touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.os-orbit.js-orbit.grabbing { cursor: grabbing; }
.os-orbit.js-orbit .os-ring { animation: none; transform: rotate(var(--a, 0deg)); }
.os-orbit.js-orbit .os-ring .os-sat > span { animation: none; transform: rotate(calc(-1 * var(--a, 0deg))); transition: box-shadow .2s; }
/* the company icon in the middle is a way back to the top */
a.os-core { display: block; cursor: pointer; transition: box-shadow .25s, filter .25s; }
a.os-core:hover { filter: brightness(1.1); box-shadow: 0 0 0 2px var(--accent), 0 22px 50px -18px color-mix(in srgb, var(--accent-strong) 70%, transparent); }
.os-orbit.js-orbit .os-sat img { -webkit-user-drag: none; pointer-events: none; }


/* about (Studio, owner 2026-10-01): the heading and the signed card on
   the left, the words on the right; the lead large, the second
   paragraph set off by a thin accent rule */
.about-sign { display: none; }
html:not([data-design]) .about-bio { row-gap: 0; align-items: start; }
html:not([data-design]) .about-bio > .sec-h2 { grid-column: 1; grid-row: 1; align-self: start; }
html:not([data-design]) .about-bio > p[data-i18n="about_p1"] { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
html:not([data-design]) .about-bio > p[data-i18n="about_p2"] {
  grid-column: 2; grid-row: 3; margin: 30px 0 0; padding: 2px 0 2px 22px; max-width: 60ch;
  font-size: 16.5px; line-height: 1.8; border-left: 2px solid var(--accent-line);
}
html[dir="rtl"]:not([data-design]):not([data-ltr~="about"]) .about-bio > p[data-i18n="about_p2"] { border-left: 0; padding: 2px 22px 2px 0; border-right: 2px solid var(--accent-line); }
html:not([data-design]) .about-bio > .about-sign {
  grid-column: 1; grid-row: 2 / span 2; align-self: end; margin-top: 30px; max-width: 300px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
}
html:not([data-design]) .about-sign .sg-ico { grid-row: 1; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -14px rgba(0, 0, 0, .6); }
html:not([data-design]) .about-sign .sg-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:not([data-design]) .about-sign .sg-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
html:not([data-design]) .about-sign .sg-who b { font-size: 16px; color: var(--text); }
html:not([data-design]) .about-sign .sg-who small { font-size: 13px; color: var(--faint); }
html:not([data-design]) .about-sign .sg-cta {
  grid-column: 1 / -1; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 13px; font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--on-accent); background: var(--btn); transition: background-color .2s, transform .2s var(--ease-out);
}
html:not([data-design]) .about-sign .sg-cta:hover { background: var(--btn-hover); transform: translateY(-1px); }
html[dir="rtl"]:not([data-design]) .about-sign .sg-cta span { display: inline-block; transform: scaleX(-1); }
@media (max-width: 900px) {
  html:not([data-design]) .about-bio > .sec-h2,
  html:not([data-design]) .about-bio > p[data-i18n],
  html:not([data-design]) .about-bio > .about-sign { grid-column: 1; grid-row: auto; }
  html:not([data-design]) .about-bio > p[data-i18n="about_p1"] { font-size: clamp(19px, 5vw, 22px); line-height: 1.5; }
  html:not([data-design]) .about-bio > p[data-i18n="about_p2"] { margin-top: 20px; font-size: 15.5px; }
  html:not([data-design]) .about-bio > .about-sign { margin-top: 24px; max-width: none; grid-template-columns: auto minmax(0, 1fr) auto; }
  html:not([data-design]) .about-sign .sg-cta { grid-column: 3; grid-row: 1; margin-top: 0; }
}
@media (max-width: 380px) { html:not([data-design]) .about-sign .sg-who small { display: none; } }

/* ---------- project cards (Studio + Scrollfield): the icon sits on the
   banner's edge like an app on its store page; the foot says where it
   runs and how to open it ---------- */
.proj-foot { display: none; }
html:not([data-design]) .proj-card, html[data-design="d16"] .proj-card { border-radius: 22px; }
html:not([data-design]) .proj-chips, html[data-design="d16"] .proj-chips { display: none; }
html:not([data-design]) .proj-foot, html[data-design="d16"] .proj-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
html:not([data-design]) .proj-summary, html[data-design="d16"] .proj-summary { margin-bottom: 16px; }
.proj-plats { display: inline-flex; align-items: center; gap: 10px; color: var(--faint); min-height: 18px; }
.proj-plats svg { width: 17px; height: 17px; }
.proj-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--dim); transition: color .2s; }
.proj-go-ar { display: inline-block; transition: transform .25s var(--ease-out); }
[dir="rtl"] .proj-go-ar { transform: scaleX(-1); }
.proj-card:hover .proj-go { color: var(--text); }
.proj-card:hover .proj-go-ar { transform: translateX(3px); }
[dir="rtl"] .proj-card:hover .proj-go-ar { transform: scaleX(-1) translateX(3px); }
html:not([data-design]) .proj-card .proj-arrow { display: none; }
/* the icon rides the banner's lower edge */
html:not([data-design]) .proj-card-top, html[data-design="d16"] .proj-card-top { align-items: flex-end; }
html:not([data-design]) .proj-thumb, html[data-design="d16"] .proj-thumb {
  width: 56px; height: 56px; border-radius: 16px; margin-top: -40px; position: relative; z-index: 2;
  box-shadow: 0 0 0 4px var(--panel), 0 12px 24px -12px rgba(0, 0, 0, .6);
}
html:not([data-design]) .proj-media::after, html[data-design="d16"] .proj-media::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--panel) 45%, transparent));
}
html:not([data-design]) .proj-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
@media (max-width: 700px) {
  html:not([data-design]) .proj-thumb, html[data-design="d16"] .proj-thumb { width: 50px; height: 50px; border-radius: 14px; margin-top: -36px; }
}

/* ---------- what we build v3 (owner 2026-10-01): no card behind the
   top of the panel; the capability's apps circle its icon and pass
   behind the card, coming out of it again. The text sits in the card. */
html:not([data-design]) #skills:not(.listing) { overflow-x: clip; }
.cx-panel {
  container-type: inline-size; --D: min(86cqi, 420px); --s: clamp(38px, calc(var(--D) * .13), 56px);
  background: none; border: 0; border-radius: 0; padding: 0; overflow: visible; overflow-y: clip; isolation: isolate;
}
.cx-panel .cx-wash, .cx-panel .cx-p-ic { display: none; }
.cx-stage { position: relative; height: calc(var(--D) / 2 + var(--s) / 2 + 8px); pointer-events: none; }
.cx-panel.no-ring .cx-stage { height: 64px; }
.cx-ring {
  position: absolute; left: 50%; top: calc(var(--s) / 2 + 8px); width: var(--D); aspect-ratio: 1; margin-left: calc(var(--D) / -2);
  border-radius: 50%; animation: cxSpin 70s linear infinite;
}
.cx-ring::before, .cx-ring::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cx-ring::before { inset: 0; border: 1px solid var(--line); }
.cx-ring::after { inset: 18%; border: 1px dashed var(--line-2); }
@keyframes cxSpin { to { transform: rotate(360deg); } }
.cx-sat {
  position: absolute; left: 50%; top: 50%; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2); pointer-events: auto;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateX(calc(var(--D) / 2)) rotate(calc(var(--i) * -360deg / var(--n)));
}
.cx-sat > span {
  display: block; width: 100%; height: 100%; border-radius: 27%; overflow: hidden; background: var(--panel2);
  box-shadow: 0 0 0 1px var(--line-2), 0 12px 24px -14px rgba(0, 0, 0, .6);
  animation: cxSpin 70s linear infinite reverse; transition: box-shadow .2s;
}
.cx-sat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-sat:hover > span { box-shadow: 0 0 0 2px var(--accent), 0 12px 24px -14px rgba(0, 0, 0, .6); }
.cx-panel:not(.on) .cx-ring, .cx-panel:not(.on) .cx-sat > span { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .cx-panel:has(.cx-sat:hover) .cx-ring, .cx-panel:has(.cx-sat:hover) .cx-sat > span { animation-play-state: paused; }
}
.cx-glow {
  position: absolute; left: 50%; bottom: -60px; width: min(70cqi, 300px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent); z-index: 1;
}
.cx-core {
  position: absolute; z-index: 4; left: 50%; bottom: 0; width: 70px; height: 70px; border-radius: 22px; transform: translate(-50%, 50%);
  display: grid; place-items: center; color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 0 7px color-mix(in srgb, var(--accent) 9%, transparent), 0 20px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent);
}
.cx-core svg { width: 30px; height: 30px; }
.cx-core img { width: 36px; height: 36px; object-fit: contain; }
.cx-body {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 54px clamp(18px, 3vw, 30px) 24px; border-radius: 26px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 -24px 44px -34px rgba(0, 0, 0, .55);
}
.cx-body .cx-p-t { margin: 0 0 8px; }
.cx-body .cx-p-b { margin: 0 auto 16px; max-width: 46ch; }
.cx-names { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 6px; margin: 0 auto 20px; max-width: 52ch; font-size: 13.5px; color: var(--faint); }
.cx-names-l { color: var(--faint); }
.cx-names a { color: var(--dim); text-decoration: none; font-weight: 560; }
.cx-names a:hover { color: var(--text); }
.cx-names i { font-style: normal; color: var(--line-2); }
.cx-names .cx-names-more { color: var(--accent); }
.cx-body .cx-go { align-self: center; margin-top: 0; }
@media (max-width: 760px) {
  .cx-panel { --D: 112cqi; --s: 46px; }
  .cx-body { padding: 50px 16px 20px; border-radius: 24px; }
  .cx-core { width: 62px; height: 62px; border-radius: 19px; }
  .cx-core svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) { .cx-ring, .cx-sat > span { animation: none; } }

/* ---------- assistant v2: topics as tiles, items and questions as rows,
   a path with a way back, a saved conversation ---------- */
.as-nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.as-nav[hidden] { display: none; }
.as-nav + .as-chips { border-top: 0; }
.as-back {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; padding-inline: 6px 10px; border-radius: 10px;
  border: 1px solid var(--line-2); background: none; color: var(--text); font: 600 12.5px/1 var(--font); cursor: pointer;
}
.as-back svg { width: 15px; height: 15px; }
[dir="rtl"] .as-back svg { transform: scaleX(-1); }
.as-back:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.as-crumb { min-width: 0; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-crumb i { font-style: normal; margin: 0 5px; color: var(--line-2); }
.as-chips { flex-direction: column; flex-wrap: nowrap; gap: 6px; max-height: 46%; }
/* topics as compact chips (owner 2026-10-04: the big tiles took the whole
   chat for six words): the icon beside the name, the count under it */
.as-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.as-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 1px;
  padding: 7px 10px; border-radius: 11px; text-align: start; cursor: pointer; min-height: 40px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 600 12.5px/1.25 var(--font);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.as-tile .as-tile-ic { grid-row: span 2; }
.as-tile-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-tile small { grid-column: 2; }
[lang="ar"] .as-tile, [lang="ar"] .as-row { font-family: inherit; }
.as-tile:hover { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 60%, var(--panel)); }
.as-tile:active { transform: scale(.98); }
.as-tile-ic { width: 17px; height: 17px; color: var(--accent); }
.as-tile small { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.as-sub { font-size: 11.5px; font-weight: 600; color: var(--faint); margin: 4px 2px 0; letter-spacing: .01em; }
.as-row {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 11px; border-radius: 11px; text-align: start; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 560 13px/1.4 var(--font);
  transition: border-color .15s, background-color .15s;
}
.as-row:hover { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 55%, var(--panel)); }
.as-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.as-row-t small { font-size: 11.5px; font-weight: 450; color: var(--faint); }
.as-row-chev { width: 15px; height: 15px; flex: none; color: var(--faint); }
[dir="rtl"] .as-row-chev { transform: scaleX(-1); }
.as-row-ok { width: 15px; height: 15px; flex: none; color: var(--accent); }
.as-row.done { color: var(--dim); }
.as-row-ic { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.as-row-sv { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.as-row-sv svg { width: 16px; height: 16px; }
.as-div { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 11.5px; color: var(--faint); }
.as-div::before, .as-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.as-pad { flex: none; pointer-events: none; }
.as-confirm { padding: 6px 2px; }
.as-confirm p { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.as-confirm div { display: flex; gap: 8px; }
.as-btn { flex: 1; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 13.5px/1 var(--font); cursor: pointer; }
.as-btn.danger { border-color: transparent; background: #d93c3c; color: #fff; }

/* ---------- fixed layout: parts listed in config.js LTR_PARTS keep
   the left-to-right arrangement in every language; the words inside
   still read right-to-left in Arabic ---------- */
html[dir="rtl"][data-ltr~="nav"] .nav { direction: ltr; }
html[dir="rtl"][data-ltr~="nav"] .nav-link,
html[dir="rtl"][data-ltr~="nav"] .nav-cta,
html[dir="rtl"][data-ltr~="nav"] .nav-dd-panel { direction: rtl; }
html[dir="rtl"][data-ltr~="footer"] .footer-top,
html[dir="rtl"][data-ltr~="footer"] .footer-bottom { direction: ltr; }
html[dir="rtl"][data-ltr~="footer"] .footer-col a,
html[dir="rtl"][data-ltr~="footer"] .footer-copy,
html[dir="rtl"][data-ltr~="footer"] .footer-extra > * { direction: rtl; }
html[dir="rtl"][data-ltr~="dock"] .dock { direction: ltr; right: max(14px, env(safe-area-inset-right)); left: auto; }
html[dir="rtl"][data-ltr~="dock"] .dock-scroll { transform: translateX(8px) scale(.96); }
html[dir="rtl"][data-ltr~="dock"] .dock.scrolling .dock-scroll { transform: none; }
@media (min-width: 701px) {
  html[dir="rtl"][data-ltr~="dock"] .as-card { right: max(14px, env(safe-area-inset-right)); left: auto; transform-origin: 100% 100%; }
}
html[dir="rtl"][data-ltr~="about"] section.about { direction: ltr; }
html[dir="rtl"][data-ltr~="about"] section.about :is(.sec-label, .sec-h2, .about-bio > p, .sg-who, .sg-cta, .phil-head-label, .phil-title, .phil-body, .phil-k) { direction: rtl; }

/* what we build: the ring is turned by script (home.js spinDrive) */
.cx-stage { pointer-events: auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.cx-stage.grabbing { cursor: grabbing; }
.cx-ring.js-spin { animation: none; transform: rotate(var(--a, 0deg)); }
.cx-ring.js-spin .cx-sat > span { animation: none; transform: rotate(calc(-1 * var(--a, 0deg))); }
.cx-sat img { -webkit-user-drag: none; pointer-events: none; }
a.cx-core { text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s; }
a.cx-core:hover { transform: translate(-50%, 50%) scale(1.05); box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent), 0 20px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent); }

/* rails: no link callout or text selection on a long press (see navigation.js) */
:is(#projects:not(.listing) .proj-grid, .wall-row, .more-rail, .logo-marquee, .cx-apps) :is(a, img) {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}

/* ---------- assistant v3: one conversation; the choices sit under the
   last answer, three at a time; a box to ask in your own words ---------- */
.as-log { gap: 10px; padding-bottom: 14px; }
.as-msg p { margin: 0; }
.as-msg p + p, .as-msg p + ul, .as-msg ul + p { margin-top: 8px; }
.as-msg ul { margin: 6px 0 0; padding-inline-start: 18px; }
.as-msg li + li { margin-top: 3px; }
.as-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; animation: asIn .3s var(--ease-out); }
.as-group { display: flex; flex-direction: column; gap: 6px; }
.as-group .as-sub { margin: 0 2px 2px; }
.as-row[hidden] { display: none; }
.as-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 7px 12px; border-radius: 11px;
  border: 1px dashed var(--line-2); background: none; color: var(--dim); font: 600 13px/1 var(--font); cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
[lang="ar"] .as-more { font-family: inherit; }
.as-more svg { width: 15px; height: 15px; }
.as-more b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11.5px; color: var(--text); background: var(--panel2); }
.as-more:hover { color: var(--text); border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.as-choices .as-nav { display: flex; gap: 8px; padding: 0; border: 0; }
.as-navb {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; padding-inline: 9px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; color: var(--dim); font: 600 12.5px/1 var(--font); cursor: pointer;
}
[lang="ar"] .as-navb { font-family: inherit; }
.as-navb svg { width: 14px; height: 14px; }
.as-navb:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
[dir="rtl"] .as-navb:first-child svg { transform: scaleX(-1); }
.as-hint { margin: 2px 2px 0; font-size: 12.5px; color: var(--faint); }
.as-row-ai { border-style: dashed; border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 60%, var(--panel)); }
.as-row-ai .as-row-chev { color: var(--accent); }
.as-row-ai small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-go-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.as-go-ic svg { width: 16px; height: 16px; }
.as-foot { display: flex; gap: 8px; align-items: center; }
.as-foot .as-q { flex: 1; min-width: 0; }
.as-send {
  flex: none; width: 42px; height: 42px; border-radius: 13px; border: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--on-accent); background: var(--btn); transition: opacity .15s, transform .15s;
}
.as-send svg { width: 19px; height: 19px; }
[dir="rtl"] .as-send svg { transform: scaleX(-1); }
.as-send:disabled { opacity: .35; cursor: default; }
.as-send:not(:disabled):active { transform: scale(.94); }
.as-tiles { margin-top: 2px; }

/* the help button stands out on the dark theme by its lighter tile and
   the light sweeping through its icon, without a glow (owner 2026-10-02) */
:root:not([data-theme="light"]) .dock-ask {
  background: linear-gradient(160deg, #26354d, #131b29 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 1px rgba(0, 0, 0, .3), 0 14px 30px -12px rgba(0, 0, 0, .7);
}
/* in the fixed-layout about, short texts sit by their icons */
html[dir="rtl"][data-ltr~="about"] section.about .sg-who { text-align: left; }
/* "How we work" follows the language (right to left in Arabic) unless
   "process" is in LTR_PARTS too (js/config.js) */
html[dir="rtl"][data-ltr~="about"]:not([data-ltr~="process"]) section.about .phil-card { direction: rtl; }
html[dir="rtl"][data-ltr~="process"] section.about .phil-card { direction: ltr; }
html[dir="rtl"][data-ltr~="process"] section.about .phil-card :is(.phil-head-label, .phil-title, .phil-body) { direction: rtl; text-align: left; }
@media (min-width: 901px) {
  html[dir="rtl"][data-ltr~="about"] section.about .about-bio > .sec-h2 { text-align: left; }
}

/* the footer's icon and logo scroll back to the top (navigation.js) */
.footer-brand .footer-app-icon, .footer-brand > img[data-logo] { cursor: pointer; }
.footer-brand .footer-app-icon:focus-visible, .footer-brand > img[data-logo]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* a chat written in a left-to-right language on a right-to-left page:
   its arrows point the way it reads (assistant.js chatDir) */
[dir="rtl"] .as-log[dir="ltr"] :is(.as-go .as-go-ar, .as-chip-nav .as-chip-sv, .as-back svg, .as-row-chev, .as-navb:first-child svg) { transform: none; }

/* the orbit's tracks are drawn by full-size layers; let clicks fall
   through them to the apps (owner 2026-10-03: the apps are links) */
.os-orbit .os-ring { pointer-events: none; }
.os-orbit .os-sat { pointer-events: auto; cursor: pointer; }

/* footer as one card (owner 2026-10-03): the copyright and the install
   button sit inside the bar, under a hairline, instead of below it */
.footer { padding-bottom: 26px; }
.footer .footer-top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.footer .footer-bottom {
  background: var(--panel); border: 1px solid var(--line); border-top-color: color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 0 0 22px 22px; margin-top: -1px; padding: 12px 22px;
}
@media (max-width: 700px) {
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* phones too: the install button beside the copyright, in the bar */
  .footer .footer-bottom { padding: 12px 16px; justify-content: space-between; }
  .footer .footer-extra { display: flex; }
}
