/* ==========================================================================
   Zain Basm — Portfolio (v7 Master Mix)
   - v4/v5 Warm Architectural Palette, Header Capsule, Tactile Buttons & Fonts
     (EN: Inter + Instrument Serif italic | AR: Thmanyah Serif + Thmanyah Sans)
   - Hero & Contact Interactive Flow-Field Canvases + Drifting Grid & Aurora
   - Slow 3.1s Sequential Fountain-Pen Vector Signature (Z -> a -> i -> n -> B -> a -> s -> m)
   - Tracwell Smooth Sliding Nav Highlight & Floating Scroll-Capsule Morph
   - AlignCanvas Scroll-Lit Word-by-Word Statement & Blur-Rise Headings
   - ReactBits Monochrome (B&W) Works, Perimeter Spotlight Cards, Bento & ClickSpark
   ========================================================================== */

@font-face {
  font-family: "Thmanyah Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/thmanyahsans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Thmanyah Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/thmanyahsans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Thmanyah Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/thmanyahseriftext-Medium.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --stage-bg: #f3f4f6;
  --ink: #0f1115;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --accent: #1f4fd8;
  --ok: #16a34a;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 10px 28px -12px rgba(15, 17, 21, .10);
  --shadow-lg: 0 2px 6px rgba(15, 17, 21, .05), 0 32px 68px -26px rgba(15, 17, 21, .24);
  --spotlight-fill: rgba(15, 17, 21, 0.04);
  --spotlight-border: rgba(15, 17, 21, 0.42);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-alt: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --stage-bg: #121216;
  --ink: #f3f3f1;
  --ink-2: #c9c9c6;
  --muted: #8e8e93;
  --line: #232327;
  --line-2: #34343a;
  --accent: #7c9cff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 30px -12px rgba(0, 0, 0, .68);
  --shadow-lg: 0 32px 72px -26px rgba(0, 0, 0, .88);
  --spotlight-fill: rgba(255, 255, 255, 0.055);
  --spotlight-border: rgba(255, 255, 255, 0.48);
  color-scheme: dark;
}

[lang="ar"] {
  --font-sans: "Thmanyah Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Thmanyah Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: clip;
  transition: background-color .3s ease, color .3s ease;
}
[lang="ar"] body { font-size: 16.5px; line-height: 1.75; }

body.is-booting { overflow: hidden; }
.no-boot body.is-booting { overflow: visible; }
.no-boot #boot { display: none !important; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] .project-info h3,
[lang="ar"] .bento-card h3,
[lang="ar"] .contact h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.24;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
svg .fill, svg.fill { fill: currentColor; stroke: none; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}
.skip {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 200;
  transition: top .2s;
}
.skip:focus { top: 14px; }

/* ---------- Scroll progress & film grain ---------- */
.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 95;
  background: var(--ink);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}
[dir="rtl"] .progress { transform-origin: right; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .01;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .page-noise { mix-blend-mode: screen; opacity: .035; }

/* ==========================================================================
   Slow Sequential Fountain-Pen Vector Signature (3.1s letter-by-letter)
   ========================================================================== */
.sign, .boot-sign {
  display: block;
  width: min(290px, 68vw);
  height: auto;
  aspect-ratio: 344 / 112;
  overflow: visible;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--ink);
  cursor: pointer;
}
.sign-light, .boot-sign { color: #f5f5f3; }

.sign .sg, .boot-sign .sg {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.sign.drawn .sg,
.boot-sign.drawn .sg {
  animation:
    sg-stroke .76s cubic-bezier(.38, .05, .24, 1) calc(var(--si, 0) * .31s) forwards,
    sg-fill .52s ease calc(var(--si, 0) * .31s + .48s) forwards;
}

@keyframes sg-stroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes sg-fill {
  0% { fill-opacity: 0; }
  100% { fill-opacity: 1; stroke-width: 0.45; }
}

.is-static .sign .sg {
  animation: none !important;
  stroke-dashoffset: 0 !important;
  fill-opacity: 1 !important;
  stroke-width: 0.45 !important;
}

/* Header brand signature */
.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .2s;
}
.brand:hover { transform: translateY(-1px); }
.brand-sign {
  width: 150px;
  height: 46px;
  display: block;
}
.brand-sign .sg {
  stroke-width: 1.55;
}

/* ==========================================================================
   Boot Sequence (#boot)
   ========================================================================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #0b0b0d;
  color: #f5f5f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3.6vw, 40px);
  clip-path: inset(0 0 0 0);
  transition: clip-path .9s cubic-bezier(.76, 0, .24, 1);
}
.boot.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.boot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
}
.boot-top, .boot-bottom, .boot-center { position: relative; z-index: 1; }
.boot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: #9e9ea4;
}
.boot-sys { display: inline-flex; align-items: center; gap: 9px; }
.boot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5f5f3;
  box-shadow: 0 0 12px rgba(255, 255, 255, .6);
  animation: boot-pulse 1.6s ease-in-out infinite;
}
@keyframes boot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: .55; }
}
.boot-skip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d4d4d8;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .04);
  transition: background .2s, border-color .2s;
}
.boot-skip:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}
.boot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.boot-sign {
  width: min(350px, 78vw);
  height: auto;
}
.boot-log {
  min-height: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #9e9ea4;
}
.boot-log .ok { color: #f5f5f3; }
.boot-log .caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 5px;
  vertical-align: -2px;
  background: #f5f5f3;
  animation: caret-blink .9s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.boot-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.boot-hint { font-size: 13px; color: #9e9ea4; }
.boot-count {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.boot-bar {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, .12);
  border-radius: 2px;
  overflow: hidden;
}
.boot-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #f5f5f3;
  transform-origin: 0% 50%;
  transform: scaleX(0);
}

/* ==========================================================================
   CueDesign Mercury-Prism Animated Border & Tactile Buttons
   ========================================================================== */
@property --mercury-angle {
  syntax: "<angle>";
  initial-value: 212deg;
  inherits: false;
}
@keyframes mercury-spin-angle {
  from { --mercury-angle: 212deg; }
  to   { --mercury-angle: 572deg; }
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  will-change: transform;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), background-color .2s, border-color .2s, color .2s, box-shadow .25s;
}
[dir="rtl"] .btn {
  padding: 0 24px 0 8px;
  letter-spacing: 0;
}

.btn-dark {
  isolation: isolate;
  background: linear-gradient(180deg, #2b2c32 0%, #111215 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 2px 4px rgba(0, 0, 0, .18),
    0 12px 26px -8px rgba(15, 17, 25, .42);
}
.btn-dark:hover {
  background: linear-gradient(180deg, #34363e 0%, #15161a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 4px 10px rgba(0, 0, 0, .22),
    0 16px 32px -8px rgba(15, 17, 25, .52);
}
/* Authentic CueDesign rotating mercury-prism rim around .btn-dark (Let's talk & View my work) */
.btn-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.9px;
  background: conic-gradient(
    from var(--mercury-angle),
    #fff,
    #0a0a0a 8%,
    #fff 12%,
    #ff4500 15%,
    gold 17%,
    #fff 22%,
    silver,
    #111 38%,
    #fff 45%,
    #0a0a0a,
    #fff,
    #05f,
    #fff 65%,
    #222,
    #fff 85%,
    #111 92%,
    #fff
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: mercury-spin-angle 4s linear infinite;
}
.btn-dark > * {
  position: relative;
  z-index: 3;
}
.btn-dark .arrow {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  background: #ffffff;
  color: #111215;
  stroke-width: 2;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.btn-dark:hover .arrow { transform: rotate(-45deg); }
[dir="rtl"] .btn-dark .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn-dark:hover .arrow { transform: scaleX(-1) rotate(-45deg); }

.btn-dark::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  left: -65%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-20deg);
  transition: left .72s cubic-bezier(.2, .7, .2, 1);
}
.btn-dark:hover::after { left: 135%; }

.btn-ghost {
  padding: 0 26px !important;
  isolation: isolate;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: color .35s, border-color .35s, transform .22s cubic-bezier(.2, .7, .2, 1);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .42s cubic-bezier(.2, .7, .2, 1);
}
.btn-ghost:hover {
  color: var(--bg);
  border-color: var(--ink);
}
.btn-ghost:hover::before { transform: scaleY(1); }

.btn-sm {
  height: 38px;
  padding: 0 18px !important;
  font-size: 14px;
}

/* ==========================================================================
   Header / Menu (Floating Rounded Capsule Pill at All Times + Sliding Pill)
   ========================================================================== */
.header {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 70;
  padding: 0 16px;
  pointer-events: none;
  transition: top .35s cubic-bezier(.2, .8, .2, 1);
}
.header.scrolled {
  top: 10px;
}

.header-inner {
  pointer-events: auto;
  width: min(100%, 960px);
  margin-inline: auto;
  height: 58px;
  padding-inline: 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: saturate(165%) blur(18px);
  -webkit-backdrop-filter: saturate(165%) blur(18px);
  box-shadow: var(--shadow);
  transition:
    width .45s cubic-bezier(.2, .85, .25, 1),
    height .38s cubic-bezier(.2, .85, .25, 1),
    padding .38s cubic-bezier(.2, .85, .25, 1),
    background-color .3s ease,
    border-color .3s ease,
    box-shadow .35s ease;
}

.header.scrolled .header-inner {
  width: min(100%, 920px);
  height: 54px;
  padding-inline: 16px 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.nav-highlight {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--surface-2);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .28s cubic-bezier(.2, .9, .25, 1),
    width .28s cubic-bezier(.2, .9, .25, 1),
    height .22s ease,
    opacity .18s ease;
}
[data-theme="dark"] .nav-highlight {
  background: rgba(255, 255, 255, .09);
}
.nav-highlight.is-instant {
  transition: opacity .15s ease;
}

.nav a {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.active {
  color: var(--ink);
  background: var(--surface-2);
}
.nav:hover a.active {
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover {
  border-color: var(--line-2);
  color: var(--ink);
  transform: translateY(-1px);
}
.lang-btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px;
}
.lang-btn .lang-ar { font-family: "Thmanyah Sans", sans-serif; font-size: 14.5px; }
.lang-btn .lang-sep { color: var(--line-2); }
.lang-btn span:not(.lang-sep) { color: var(--muted); }
[lang="en"] .lang-btn .lang-en,
[lang="ar"] .lang-btn .lang-ar {
  color: var(--ink);
  font-weight: 600;
}

.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* ==========================================================================
   Hero (Full-Viewport First Fold + Flow-Field Canvas + Clean Stage Below)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 0 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 76% 62% at 68% 28%, #000 12%, transparent 76%);
          mask-image: radial-gradient(ellipse 76% 62% at 68% 28%, #000 12%, transparent 76%);
  opacity: .72;
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift { to { background-position: 64px 64px, 64px 64px; } }

.aurora {
  position: absolute;
  inset: -15%;
  filter: blur(74px);
  opacity: .36;
}
[data-theme="dark"] .aurora { opacity: .28; }
.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .aurora i { mix-blend-mode: screen; }
.aurora .a1 { width: 520px; height: 520px; top: 8%; inset-inline-end: 12%; background: #c7d2fe; animation: float-a 22s ease-in-out infinite; }
.aurora .a2 { width: 420px; height: 420px; top: 24%; inset-inline-end: 30%; background: #fbcfe8; animation: float-b 26s ease-in-out infinite; }
.aurora .a3 { width: 460px; height: 460px; top: 2%; inset-inline-end: 0; background: #bae6fd; animation: float-c 30s ease-in-out infinite; }
[data-theme="dark"] .aurora .a1 { background: #312e81; }
[data-theme="dark"] .aurora .a2 { background: #701a45; }
[data-theme="dark"] .aurora .a3 { background: #0c4a6e; }

@keyframes float-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-80px, 60px) scale(1.12); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(90px, -40px) scale(.9); } }
@keyframes float-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 90px) scale(1.08); } }

canvas.flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero canvas.flow {
  -webkit-mask-image: radial-gradient(ellipse 80% 66% at 68% 34%, #000 22%, transparent 82%);
          mask-image: radial-gradient(ellipse 80% 66% at 68% 34%, #000 22%, transparent 82%);
}
[dir="rtl"] .hero canvas.flow,
[dir="rtl"] .grid-pattern {
  -webkit-mask-image: radial-gradient(ellipse 80% 66% at 32% 34%, #000 22%, transparent 82%);
          mask-image: radial-gradient(ellipse 80% 66% at 32% 34%, #000 22%, transparent 82%);
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 820px;
  min-height: 0;
  padding: 112px 0 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ReactBits Pro Minimal Top Eyebrow: [Orbital Icon] Zain Basm [Available] */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.hb-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hb-name {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--ink);
}
[lang="ar"] .hb-name {
  font-size: 17px;
  letter-spacing: 0;
}
.hb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1.15px solid color-mix(in srgb, var(--ink) 52%, transparent);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
[lang="ar"] .hb-badge {
  font-size: 12.5px;
  letter-spacing: 0;
}

.hero-title {
  margin-top: 18px;
  max-width: 780px;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.07;
  text-wrap: balance;
  color: var(--ink);
}
.hero-title em {
  color: #6b7280;
}
[data-theme="dark"] .hero-title em {
  color: #8f96a3;
}
.hero-title em,
.contact h2 em,
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
[lang="ar"] .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
}
[lang="ar"] .hero-title em {
  color: #6b7280;
}
[data-theme="dark"][lang="ar"] .hero-title em {
  color: #8f96a3;
}
[lang="ar"] .hero-title em,
[lang="ar"] .contact h2 em,
[lang="ar"] .section-head h2 em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.js:not(.is-static) .hero-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.36em);
  filter: blur(5px);
  animation: word-in .82s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 48ms + 80ms);
}
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }

.hero-lead {
  margin: 16px auto 0;
  max-width: 580px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.62;
}
[lang="ar"] .hero-lead {
  font-size: 16.5px;
  line-height: 1.76;
}

.hero-actions {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-checks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.hero-checks svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
}

.scroll-cue {
  margin-top: clamp(28px, 4.5vh, 48px);
  width: 24px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  display: inline-grid;
  place-items: start center;
  padding-top: 7px;
  opacity: .78;
  transition: border-color .25s, opacity .25s, transform .25s;
}
.scroll-cue:hover {
  opacity: 1;
  border-color: var(--ink);
  transform: translateY(2px);
}
.scroll-cue i {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-2);
  animation: scroll-wheel 2.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: .15; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ReactBits Pro 3D Cylindrical Monochrome Screen Ring (#hero-stage)
   ========================================================================== */
.hero-stage-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0 0 18px;
  overflow-x: clip;
  overflow-y: visible;
}
#hero-stage {
  scroll-margin-top: 86px;
}

.pro-ring-viewport {
  --ring-w: 334px;
  --ring-h: 228px;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 416px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.pro-ring-viewport.is-dragging {
  cursor: grabbing;
}

.pro-ring-stage {
  position: relative;
  width: var(--ring-w);
  height: var(--ring-h);
  transform: translateY(34px);
  perspective: 3400px;
  perspective-origin: 50% 42%;
}

.ring-card {
  position: absolute;
  inset: 0;
  width: var(--ring-w);
  height: var(--ring-h);
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 21, .085);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 12px 30px -14px rgba(15, 18, 28, .12),
    0 2px 5px rgba(15, 18, 28, .04);
  transition: border-color .25s ease, box-shadow .3s ease;
  will-change: transform, opacity;
}
[data-theme="dark"] .ring-card {
  background: #101116;
  border-color: rgba(255, 255, 255, .13);
  box-shadow:
    0 20px 44px -14px rgba(0, 0, 0, .82),
    0 0 0 .5px rgba(255, 255, 255, .07);
}
.ring-card:hover {
  border-color: rgba(15, 17, 21, .28);
}
[data-theme="dark"] .ring-card:hover {
  border-color: rgba(255, 255, 255, .32);
}
.ring-card.is-dimmed {
  filter: grayscale(100%) opacity(.32);
}

.ring-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* Subtle glass sheen across front-facing ring screens */
.ring-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, transparent 42%);
  pointer-events: none;
}
[data-theme="dark"] .ring-card::after {
  background: linear-gradient(125deg, rgba(255, 255, 255, .09) 0%, transparent 42%);
}

/* Minimal Bottom Category Tabs with Active Underline (matches reactbits.dev/pro) */
.pro-ring-tabs {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.pr-tab {
  position: relative;
  padding: 8px 2px 10px;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color .22s ease;
}
.pr-tab:hover {
  color: var(--ink);
}
.pr-tab.is-on {
  color: var(--ink);
  font-weight: 600;
}
.pr-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
[dir="rtl"] .pr-tab::after {
  left: auto;
  right: 0;
  transform-origin: right center;
}
.pr-tab.is-on::after {
  transform: scaleX(1);
}

/* Strict ReactBits Monochrome Black & White Media Filter */
.mono-media img,
.mono-media video {
  filter: grayscale(100%) contrast(1.06);
}

/* ==========================================================================
   ReactBits Infinite Marquee Ribbon
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 52px;
  animation: marquee 38s linear infinite;
  direction: ltr;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 52px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
}
[lang="ar"] .marquee span {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
}
.marquee span::after {
  content: "✦";
  font-size: 10px;
  color: var(--line-2);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   AlignCanvas-style Scroll-Lit Word-by-Word Statement & Reveals
   ========================================================================== */
.statement-sec {
  padding: 112px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.eyebrow span:first-child { color: var(--ink); font-weight: 600; }
.eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--line-2);
  vertical-align: middle;
  margin-inline-end: 12px;
}
[lang="ar"] .eyebrow {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 14px;
  text-transform: none;
}
[lang="ar"] .eyebrow span:first-child { font-family: var(--font-mono); }

.statement-text {
  margin: 22px 0 56px;
  max-width: 26ch;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.032em;
  font-weight: 600;
  color: var(--ink);
}
.statement-text .sw2.em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
[lang="ar"] .statement-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.9vw, 48px);
  line-height: 1.48;
  letter-spacing: 0;
  max-width: 30ch;
}
[lang="ar"] .statement-text .sw2.em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
}

.statement-text .sw2 {
  opacity: 0.15;
  transition: opacity .26s ease, color .26s ease;
}
.statement-text .sw2.em {
  color: var(--accent);
  opacity: 0.22;
}
.statement-text .sw2.lit { opacity: 1; }
.statement-text .sw2.lit.em {
  color: var(--accent);
  opacity: 1;
}

.about-strip {
  padding-top: 38px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.about-bio p {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
}
.signature {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.signature small {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
[lang="ar"] .signature small {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 13.5px;
  text-transform: none;
}

.facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.facts-grid > div {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.facts-grid > div:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.facts-grid dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 5px;
}
[lang="ar"] .facts-grid dt {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}
.facts-grid dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

/* AlignCanvas Scroll Blur-Rise Animations */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity .75s cubic-bezier(.16, 1, .3, 1) var(--d, 0s),
    transform .75s cubic-bezier(.16, 1, .3, 1) var(--d, 0s),
    filter .75s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

.js [data-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(7px);
  transition:
    opacity .68s cubic-bezier(.16, 1, .3, 1) var(--wd, 0s),
    transform .68s cubic-bezier(.16, 1, .3, 1) var(--wd, 0s),
    filter .68s cubic-bezier(.16, 1, .3, 1) var(--wd, 0s);
}
.js [data-words].in .w {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ==========================================================================
   Sections & ReactBits Dual-Layer Spotlight Cards (.rb-card)
   ========================================================================== */
.section {
  padding: 108px 0;
  border-top: 1px solid var(--line);
}
.section-alt {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  opacity: .55;
}
.section-alt > * { position: relative; }

.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
[lang="ar"] .section-head h2 { letter-spacing: 0; }

/* ReactBits Dual-Layer Spotlight Card (Inner Glow + Masked 1px Perimeter Border Glow) */
.rb-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 17, 21, .03), 0 10px 26px -16px rgba(15, 17, 21, .08);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.rb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-fill),
    transparent 55%
  );
  opacity: 0;
  transition: opacity .35s ease;
}
.rb-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.25px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-border),
    transparent 62%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
}
.rb-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.rb-card:hover::before,
.rb-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   ReactBits-style Monochrome 2 + 3 Bento Selected Work (#work)
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition:
    border-color .3s ease,
    box-shadow .35s ease,
    transform .35s cubic-bezier(.2, .8, .2, 1);
}
.work-card-wide {
  grid-column: span 3;
}
[data-theme="dark"] .work-card {
  background: #0d0d11;
  border-color: #212129;
}
.work-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 18px 44px -16px rgba(15, 17, 21, .13);
}
[data-theme="dark"] .work-card:hover {
  border-color: rgba(255, 255, 255, .24);
  box-shadow:
    0 0 42px -10px rgba(255, 255, 255, .14),
    0 22px 48px -18px rgba(0, 0, 0, .88);
}

/* Inset Studio Preview Stage (top of card, 8px inset like reactbits.dev) */
.work-stage {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eceef2;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card-wide .work-stage {
  aspect-ratio: 16 / 9.3;
}
[data-theme="dark"] .work-stage {
  border-color: #191921;
  background: #07070a;
}

/* ==========================================================================
   ReactBits Center-Stage 3D Angled MacBook Mockup (.work-stage-laptop)
   ========================================================================== */
.laptop-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  direction: ltr;
}
/* Soft studio ambient halo behind screen (subtle shadow in light, soft glow in dark) */
.laptop-scene::before {
  content: "";
  position: absolute;
  width: 58%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 18, 28, .065) 0%, transparent 72%);
  transform: translate(2%, -2%);
  pointer-events: none;
}
[data-theme="dark"] .laptop-scene::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .075) 0%, transparent 72%);
}

.laptop-rig {
  position: relative;
  width: 45%;
  transform-style: preserve-3d;
  transform:
    translate3d(-4.5%, -14%, 0)
    rotateX(calc(-18.5deg + var(--rx, 0deg)))
    rotateY(calc(19.5deg + var(--ry, 0deg)))
    scale(var(--sc, 1));
  transition: transform .5s cubic-bezier(.2, .75, .2, 1);
  will-change: transform;
}
.work-card:hover .laptop-rig {
  --sc: 1.032;
}

/* 3D Screen Lid (tilted slightly open past 90deg like Center Stage) */
.laptop-lid {
  position: relative;
  width: 100%;
  transform-origin: bottom center;
  transform: rotateX(8.5deg);
  transform-style: preserve-3d;
}
/* CNC Aluminum Lid Back Shell Slices (seamless rounded 3D left rim!) */
.laptop-lid-edge,
.laptop-lid-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px 9px 2px 2px;
  background: linear-gradient(135deg, #eef0f4 0%, #cfd4de 45%, #aeb5c2 100%);
  pointer-events: none;
}
.laptop-lid-edge {
  transform: translateZ(-1.6px);
}
.laptop-lid-edge::before {
  transform: translateZ(-1.6px);
  background: linear-gradient(135deg, #dfe3ea 0%, #bcc2ce 50%, #9aa1af 100%);
}
[data-theme="dark"] .laptop-lid-edge {
  background: linear-gradient(135deg, #8b909b 0%, #5e626c 50%, #40434b 100%);
}
[data-theme="dark"] .laptop-lid-edge::before {
  background: linear-gradient(135deg, #707580 0%, #4a4e57 50%, #303239 100%);
}

.laptop-bezel {
  position: relative;
  padding: 2.3% 2.3% 2%;
  border-radius: 9px 9px 0 0;
  background: #0a0a0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.laptop-notch {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 12.5%;
  height: 3.4%;
  background: #0a0a0d;
  border-radius: 0 0 3px 3px;
  z-index: 3;
}
.laptop-notch::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #23252e;
}

.stage-screen {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: 3.5px 3.5px 1.5px 1.5px;
  background: #0d0d10;
  overflow: hidden;
}
/* Subtle studio glass sheen across screen */
.stage-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .025) 36%, transparent 44%);
  pointer-events: none;
  z-index: 2;
}
.stage-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .48s cubic-bezier(.22, 1, .36, 1);
}
.stage-screen .scr-a { transform: translateX(0%); }
.stage-screen .scr-b { transform: translateX(100%); }
.work-card:hover .stage-screen .scr-a { transform: translateX(-100%); }
.work-card:hover .stage-screen .scr-b { transform: translateX(0%); }

/* Silver Lower Chin & Dark Hinge Bar beneath screen */
.laptop-chin {
  height: 7.5px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, #f2f4f8 0%, #dcdfe6 68%, #22242a 72%, #141519 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
[data-theme="dark"] .laptop-chin {
  background: linear-gradient(180deg, #9fa4ae 0%, #787d87 68%, #18191e 72%, #0c0d10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
}

/* 3D Hinged Aluminum Keyboard Base (rotates +90deg forward toward viewer) */
.laptop-base {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  aspect-ratio: 340 / 226;
  transform-origin: top center;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
}
.laptop-deck {
  position: absolute;
  inset: 0;
  border-radius: 2px 2px 9px 9px;
  background: linear-gradient(135deg, #f7f8fa 0%, #e7eaef 48%, #d5d9e2 100%);
  box-shadow:
    inset 0 0 0 .9px rgba(255, 255, 255, .9),
    inset 0 -1px 2px rgba(15, 17, 25, .12);
  overflow: hidden;
}
[data-theme="dark"] .laptop-deck {
  background: linear-gradient(135deg, #9ea3ad 0%, #767b85 50%, #575b65 100%);
  box-shadow:
    inset 0 0 0 .9px rgba(255, 255, 255, .36),
    inset 0 -1px 2px rgba(0, 0, 0, .4);
}
.laptop-deck-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Stacked CNC Unibody Slices -> Seamless Rounded 3D Aluminum Rim & Front Lip */
.laptop-lip,
.laptop-lip::before,
.laptop-side {
  position: absolute;
  inset: 0;
  border-radius: 2px 2px 9px 9px;
  pointer-events: none;
}
.laptop-lip {
  content: "";
  transform: translateZ(-2px);
  background: linear-gradient(125deg, #d8dde5 0%, #eef0f4 36%, #c6cbd5 74%, #b3b9c5 100%);
}
.laptop-lip::before {
  content: "";
  transform: translateZ(-2px);
  background: linear-gradient(125deg, #cbd0da 0%, #e3e6ec 36%, #b8bec9 74%, #a3aab7 100%);
}
/* Front Thumb-Scoop Indentation on Aluminum Lip */
.laptop-lip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: rgba(25, 28, 36, .32);
}
.laptop-side {
  transform: translateZ(-5.8px);
  border-radius: 3px 3px 10px 10px;
  background: linear-gradient(125deg, #b8bec9 0%, #cfd4dd 36%, #a6adba 78%, #939aa8 100%);
}
[data-theme="dark"] .laptop-lip {
  background: linear-gradient(125deg, #6d727d 0%, #8e939e 36%, #525660 74%, #41444d 100%);
}
[data-theme="dark"] .laptop-lip::before {
  background: linear-gradient(125deg, #5c606a 0%, #7a7f8a 36%, #454851 74%, #353840 100%);
}
[data-theme="dark"] .laptop-lip::after {
  background: rgba(0, 0, 0, .55);
}
[data-theme="dark"] .laptop-side {
  background: linear-gradient(125deg, #474a53 0%, #616570 36%, #363941 78%, #282a31 100%);
}

/* Soft Multi-Layer Studio Floor Shadow Beneath Laptop Base */
.laptop-shadow {
  position: absolute;
  inset: 2% -5% -6% -3%;
  border-radius: 14px;
  transform: translateZ(-9px);
  background: rgba(15, 18, 28, .21);
  filter: blur(11px);
  pointer-events: none;
}
[data-theme="dark"] .laptop-shadow {
  inset: 1% -7% -8% -4%;
  background: rgba(0, 0, 0, .86);
  filter: blur(14px);
}

/* ==========================================================================
   Card 2 (Najda): Interactive ReactBits MetallicPaint Liquid-Chrome Logo
   ========================================================================== */
.work-stage-metal {
  background: #ffffff;
  perspective: 950px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.work-stage-metal:active {
  cursor: grabbing;
}
[data-theme="dark"] .work-stage-metal {
  background: #07070a;
}
.najda-metal-tilt {
  position: relative;
  height: 86%;
  aspect-ratio: 1 / 1;
  max-width: 86%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform:
    rotateX(var(--nrx, 0deg))
    rotateY(var(--nry, 0deg))
    scale(var(--nsc, 1));
  will-change: transform;
}
#najda-metal {
  width: 100%;
  height: 100%;
  display: block;
}
.work-meta-link {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   Card 3 (Matilda): Layered Web Templates Stack (ReactBits Templates style)
   ========================================================================== */
.work-stage-stack {
  background:
    radial-gradient(90% 80% at 50% 25%, #f9fafb 0%, #eceef2 100%);
}
[data-theme="dark"] .work-stage-stack {
  background:
    radial-gradient(90% 80% at 50% 25%, #181920 0%, #0a0a0e 100%);
}
/* Subtle fine grain texture matching ReactBits templates backdrop */
.work-stage-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 17, 21, .06) .75px, transparent .75px);
  background-size: 5px 5px;
  opacity: .55;
  pointer-events: none;
}
[data-theme="dark"] .work-stage-stack::before {
  background-image: radial-gradient(rgba(255, 255, 255, .07) .75px, transparent .75px);
}

.web-stack {
  position: relative;
  width: 100%;
  height: 100%;
  direction: ltr;
}
.web-sheet {
  position: absolute;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(15, 17, 21, .08);
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), box-shadow .38s ease;
}
[data-theme="dark"] .web-sheet {
  border-color: rgba(255, 255, 255, .14);
}
.web-sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-sheet-left {
  top: 9%;
  left: 4%;
  width: 56%;
  height: 76%;
  border-radius: 9px;
  box-shadow: 0 8px 22px -6px rgba(15, 17, 21, .10);
  z-index: 1;
}
.web-sheet-left img {
  object-position: 0% top;
}

.web-sheet-right {
  top: 9%;
  right: 4%;
  width: 56%;
  height: 76%;
  border-radius: 9px;
  box-shadow: 0 8px 22px -6px rgba(15, 17, 21, .10);
  z-index: 1;
}
.web-sheet-right img {
  object-position: 88% top;
}

.web-sheet-front {
  top: 23%;
  left: 14.5%;
  right: 14.5%;
  bottom: -4%;
  border-radius: 10px 10px 0 0;
  border-color: rgba(15, 17, 21, .11);
  box-shadow:
    0 -1px 4px rgba(15, 17, 21, .04),
    0 20px 44px -10px rgba(15, 17, 21, .24);
  z-index: 2;
}
[data-theme="dark"] .web-sheet-front {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14),
    0 24px 50px -10px rgba(0, 0, 0, .86);
}
.web-sheet-front img {
  object-position: 47% top;
}

#project-matilda:hover .web-sheet-front {
  transform: translateY(-6px);
  box-shadow:
    0 -1px 6px rgba(15, 17, 21, .05),
    0 26px 52px -10px rgba(15, 17, 21, .30);
}
#project-matilda:hover .web-sheet-left {
  transform: translate3d(-5px, -2px, 0) rotate(-1.2deg);
}
#project-matilda:hover .web-sheet-right {
  transform: translate3d(5px, -2px, 0) rotate(1.2deg);
}

/* ==========================================================================
   Card 4 (Zol — Upcoming Project): Draggable & Multi-Pose Interactive Companion
   ========================================================================== */
.work-card-zol {
  user-select: none;
}
.work-stage-zol {
  background: radial-gradient(75% 75% at 50% 45%, #ffffff 0%, #f8f9fb 100%);
  flex-direction: column;
  touch-action: none;
}
[data-theme="dark"] .work-stage-zol {
  background: radial-gradient(70% 70% at 50% 46%, #13151b 0%, #07070a 100%);
}

/* Floating Dark Speech Bubble above Zol (styled after Zol's real desktop panel) */
.zol-bubble {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate3d(calc(-50% + var(--zbx, 0px)), 0, 0);
  z-index: 4;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(23, 27, 31, .90);
  border: 1px solid rgba(145, 239, 209, .24);
  box-shadow: 0 6px 16px rgba(15, 17, 25, .14);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #eaf6f0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .22s ease, border-color .22s ease;
}
.zol-bubble::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #91efd1;
  box-shadow: 0 0 7px #91efd1;
  margin-inline-end: 6px;
  vertical-align: middle;
}

/* Floating Sparkles / Music Notes / Hearts Layer */
.zol-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.zol-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #36b390;
  text-shadow: 0 0 8px rgba(145, 239, 209, .55);
  transform: translate(-50%, -50%);
  animation: zol-fx-float .95s cubic-bezier(.16, 1, .3, 1) forwards;
}
[data-theme="dark"] .zol-fx {
  color: #91efd1;
}
@keyframes zol-fx-float {
  0% {
    opacity: .95;
    transform: translate(calc(-50% + var(--fx0, 0px)), calc(-50% + var(--fy0, 0px))) scale(.7);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--fx1, 0px)), calc(-50% + var(--fy1, -38px))) scale(1.18);
  }
}

/* Grounding floor shadow directly under Zol (tracks Zol's dragged X/Y & lift!) */
.zol-floor-shadow {
  position: absolute;
  top: calc(50% + 40px);
  left: 50%;
  width: 108px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16, 14, 26, .24) 0%, rgba(16, 14, 26, .08) 52%, transparent 76%);
  transform: translate3d(calc(-50% + var(--zsx, 0px)), var(--zsy, 0px), 0) scale(var(--zss, 1));
  transition: width .36s cubic-bezier(.22, 1, .36, 1), opacity .25s;
  pointer-events: none;
}
[data-theme="dark"] .zol-floor-shadow {
  background: radial-gradient(ellipse at center, rgba(145, 239, 209, .15) 0%, rgba(0, 0, 0, .78) 55%, transparent 78%);
}
.zol-stage-listening .zol-floor-shadow {
  width: 178px;
}

/* Authentic Zol Pebble Body (from C:\Users\h\Desktop\zol\character.css & personality.css) */
.zol-creature {
  position: relative;
  z-index: 2;
  width: 102px;
  height: 90px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 46% 46% 39% 39% / 46% 46% 38% 38%;
  background:
    radial-gradient(ellipse at 24% 0%, rgba(132, 125, 150, .52), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(49, 86, 76, .28), transparent 58%),
    linear-gradient(150deg, #25242f, #090b0d 72%);
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, .26),
    inset 0 -3px 7px rgba(0, 0, 0, .68),
    0 10px 24px -6px rgba(15, 14, 24, .28);
  cursor: grab;
  touch-action: none;
  transform:
    translate3d(var(--zx, 0px), calc(-6px + var(--zy, 0px)), 0)
    rotate(var(--zrot, 0deg))
    scale(var(--zscx, 1), var(--zscy, 1));
  transition:
    width .36s cubic-bezier(.22, 1, .36, 1),
    border-radius .36s cubic-bezier(.22, 1, .36, 1),
    box-shadow .26s ease;
  will-change: transform, width;
}
.zol-creature.is-dragging {
  cursor: grabbing;
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, .3),
    inset 0 -3px 7px rgba(0, 0, 0, .7),
    0 20px 36px -8px rgba(15, 14, 24, .38);
}
.zol-creature::before {
  content: "";
  position: absolute;
  inset: 4.5px;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, .10);
  pointer-events: none;
}

/* Listening Pose: Morphs wider with mint halo, smile & waveform (matches listening-reference.png!) */
.zol-creature[data-pose="listening"] {
  width: 188px;
  border-radius: 44px 44px 36px 36px;
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, .26),
    inset 0 -3px 7px rgba(0, 0, 0, .72),
    0 0 0 2px #369d83,
    0 0 0 3.5px rgba(255, 255, 255, .82),
    0 12px 28px rgba(40, 145, 118, .25);
}
.zol-creature[data-pose="listening"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1.5px solid #91efd1;
  pointer-events: none;
  animation: zol-halo 1.7s ease-out infinite;
}

/* Warm Glowing Ivory Eyes & Cursor-Tracking Gaze */
.zol-face {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 56px;
  height: 30px;
  transform: translateX(-50%);
  transition: width .36s cubic-bezier(.22, 1, .36, 1), top .3s ease;
  pointer-events: none;
}
.zol-creature[data-pose="listening"] .zol-face {
  top: 22px;
  width: 90px;
}
.zol-gaze {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
  transition: transform .12s ease-out;
}
.zol-gaze i {
  display: block;
  width: 16.5px;
  height: 26px;
  border-radius: 48%;
  background: #fff8df;
  box-shadow:
    0 0 7px rgba(255, 242, 197, .48),
    0 0 16px rgba(255, 244, 220, .24);
  transform-origin: center;
  transition: height .22s ease, width .22s ease, border-radius .22s ease, transform .22s ease;
  animation: zol-blink 6.4s infinite;
}
.zol-gaze i + i { animation-delay: .04s; }

/* Zol's Authentic 8 Eye Expressions */
.zol-creature[data-emotion="happy"] .zol-gaze i {
  height: 12.5px;
  border-radius: 14px 14px 4px 4px;
  transform: rotate(-7deg);
}
.zol-creature[data-emotion="happy"] .zol-gaze i + i {
  transform: rotate(7deg);
}
.zol-creature[data-emotion="curious"] .zol-gaze i:first-child {
  height: 17px;
  transform: rotate(-10deg);
}
.zol-creature[data-emotion="curious"] .zol-gaze i + i {
  height: 29px;
  transform: translateY(-2px);
}
.zol-creature[data-emotion="surprised"] .zol-gaze i {
  height: 30px;
  width: 19.5px;
}
.zol-creature[data-emotion="sleepy"] .zol-gaze i,
.zol-creature[data-pose="sleeping"] .zol-gaze i {
  height: 4.5px;
  border-radius: 4px;
  animation: none;
}
.zol-creature[data-emotion="wink"] .zol-gaze i:first-child {
  height: 5px;
  border-radius: 4px;
  transform: rotate(-6deg);
}
.zol-creature[data-emotion="focused"] .zol-gaze i {
  height: 14px;
  border-radius: 3px 4px 9px 9px;
  transform: rotate(12deg);
}
.zol-creature[data-emotion="focused"] .zol-gaze i + i {
  transform: rotate(-12deg);
}
.zol-creature[data-emotion="confused"] .zol-gaze i:first-child {
  height: 11px;
  transform: rotate(-16deg);
}
.zol-creature[data-emotion="confused"] .zol-gaze i + i {
  height: 24px;
  transform: rotate(-9deg) translateY(-2px);
}

/* Signature Mint Status Dot */
.zol-dot {
  position: absolute;
  top: 19px;
  right: 18px;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #91efd1;
  box-shadow: 0 0 8px rgba(134, 232, 196, .75);
  transition: transform .25s, box-shadow .25s;
}
.zol-creature[data-pose="listening"] .zol-dot,
.zol-creature[data-pose="music"] .zol-dot {
  animation: zol-dot-pulse 1.1s ease-in-out infinite alternate;
}

/* Cute Mint Smile Arc (visible in Listening & Happy states like listening-reference.png) */
.zol-smile {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 15px;
  height: 7px;
  border-bottom: 2.2px solid #91efd1;
  border-radius: 0 0 14px 14px;
  transform: translateX(-50%) scale(.7);
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(145, 239, 209, .6));
  transition: opacity .24s ease, transform .24s ease, top .24s ease;
  pointer-events: none;
}
.zol-creature[data-pose="listening"] .zol-smile {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.zol-creature[data-emotion="happy"]:not([data-pose="listening"]) .zol-smile {
  top: 54px;
  opacity: .9;
  transform: translateX(-50%) scale(.92);
}

/* 3-Dot Mint Alien Chatter Mouth when Vocalizing */
.zol-mouth {
  position: absolute;
  top: 61px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  height: 7px;
  opacity: 0;
  transition: opacity .14s;
  pointer-events: none;
}
.zol-mouth i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #b0f8dc;
  box-shadow: 0 0 7px rgba(166, 247, 216, .8);
}
.zol-creature[data-vocalizing="true"] .zol-mouth { opacity: .92; }
.zol-creature[data-vocalizing="true"] .zol-mouth i {
  animation: zol-chatter .115s ease-in-out infinite alternate;
}
.zol-creature[data-vocalizing="true"] .zol-mouth i:nth-child(2) { animation-delay: -.07s; }
.zol-creature[data-vocalizing="true"] .zol-mouth i:nth-child(3) { animation-delay: -.03s; }

/* Listening Waveform Row inside Zol */
.zol-listen-row {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s ease, transform .24s ease;
  pointer-events: none;
}
.zol-creature[data-pose="listening"] .zol-listen-row {
  opacity: 1;
  transform: translateY(0);
}
.zol-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}
.zol-wave i {
  width: 2.4px;
  height: 8px;
  border-radius: 2px;
  background: #91efd1;
  animation: zol-wave-bar .56s ease-in-out infinite alternate;
}
.zol-wave i:nth-child(2) { height: 12px; animation-delay: -.2s; }
.zol-wave i:nth-child(3) { height: 15px; animation-delay: -.4s; }
.zol-wave i:nth-child(4) { height: 10px; animation-delay: -.1s; }
.zol-wave i:nth-child(5) { height: 7px; animation-delay: -.3s; }
.zol-listen-txt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #d6f5e9;
  letter-spacing: .01em;
}

/* Music Sway & Sleeping Drift Poses */
.zol-creature[data-pose="music"] .zol-gaze {
  animation: zol-music-sway 1.1s ease-in-out infinite;
}
.zol-zzz {
  position: absolute;
  top: -4px;
  right: -12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #5bc9a6;
  opacity: 0;
  pointer-events: none;
}
.zol-creature[data-pose="sleeping"] .zol-zzz {
  animation: zol-zzz-drift 3.2s ease-out infinite;
}

/* Interactive Bottom Pose Switcher Pills inside Zol's Stage */
.zol-pills {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.zol-pill {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.zol-pill:hover {
  color: var(--ink);
  background: rgba(128, 128, 128, .08);
}
.zol-pill.is-on {
  background: #14171c;
  color: #91efd1;
}
[data-theme="dark"] .zol-pill.is-on {
  background: rgba(145, 239, 209, .16);
  color: #91efd1;
}

/* Upcoming Badge & Pulsing Mint Dot in Zol's Footer */
.work-badge-upcoming {
  background: rgba(54, 157, 131, .10);
  border-color: rgba(54, 157, 131, .28);
  color: #1f7a63;
}
[data-theme="dark"] .work-badge-upcoming {
  background: rgba(145, 239, 209, .11);
  border-color: rgba(145, 239, 209, .28);
  color: #91efd1;
}
.zol-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35b493;
  box-shadow: 0 0 0 3px rgba(53, 180, 147, .18);
  flex-shrink: 0;
}
[data-theme="dark"] .zol-meta-dot {
  background: #91efd1;
  box-shadow: 0 0 0 3px rgba(145, 239, 209, .18);
}

@keyframes zol-blink { 0%, 44%, 48%, 100% { scale: 1 1; } 46% { scale: 1 .1; } }
@keyframes zol-halo { from { opacity: .75; transform: scale(.98); } to { opacity: 0; transform: scale(1.08); } }
@keyframes zol-dot-pulse { to { box-shadow: 0 0 12px #91efd1; opacity: .65; } }
@keyframes zol-chatter { to { transform: scaleY(2.2); opacity: .55; } }
@keyframes zol-wave-bar { to { transform: scaleY(.32); opacity: .65; } }
@keyframes zol-music-sway { 0%, 100% { translate: -2px 0; rotate: -5deg; } 50% { translate: 2px 1px; rotate: 5deg; } }
@keyframes zol-zzz-drift { 0% { transform: translateY(4px); opacity: 0; } 25% { opacity: .95; } 100% { transform: translateY(-16px); opacity: 0; } }

/* Card 5: Live Topographic Ridge Stage (ReactBits Background Studio style) */
.work-stage-topo {
  padding: 0;
  background: #ffffff;
}
[data-theme="dark"] .work-stage-topo {
  background: #07070a;
}
#work-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.topo-tag {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .25s, border-color .25s;
}
.work-card:hover .topo-tag {
  color: var(--ink);
  border-color: var(--line-2);
}

/* Compact Bottom Info Area (Exact reactbits.dev card footer proportions) */
.work-meta {
  padding: 15px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.work-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.work-meta h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .25s;
}
[lang="ar"] .work-meta h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.work-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
[lang="ar"] .work-badge {
  font-family: var(--font-sans);
  font-size: 11.5px;
}
.work-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), stroke .25s;
}
[dir="rtl"] .work-arrow {
  transform: scaleX(-1);
}
.work-card:hover .work-arrow {
  stroke: var(--ink);
  transform: translate(2px, -2px);
}
[dir="rtl"] .work-card:hover .work-arrow {
  transform: scaleX(-1) translate(2px, -2px);
}
.work-meta p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--muted);
  max-width: 56ch;
}
[lang="ar"] .work-meta p {
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   ReactBits Interactive Monochrome Bento Services (#services)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bento-card {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-3px);
}

.bento-visual {
  height: 144px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 14px;
  background: var(--stage-bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  direction: ltr;
}

/* Bento 1: Cursor-Reactive Live Telemetry Bars */
.bv-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bv-bars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.bv-bars-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bv-bars-head span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: boot-pulse 1.8s ease-in-out infinite;
}
.bv-bars-head b {
  color: var(--ink);
  font-weight: 600;
}
.bv-bars-row {
  height: 80px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 7px;
}
.bv-bars-row i {
  display: block;
  width: 100%;
  height: var(--h, 60%);
  border-radius: 5px 5px 2px 2px;
  background: var(--ink);
  opacity: .24;
  transform-origin: 50% 100%;
  transform: scaleY(var(--sy, 1));
  transition: opacity .25s ease, transform .28s cubic-bezier(.16, 1, .3, 1);
}
.bv-bars-row i:nth-child(even) { opacity: .46; }
.bv-bars-row i:last-child { opacity: .88; }
.bento-card:hover .bv-bars-row i { opacity: .78; }
.bento-card:hover .bv-bars-row i:last-child { opacity: 1; }

/* Bento 2: Dual-Stream Drifting Component Chips */
.bv-chips {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.chip-row {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: chip-drift 17s linear infinite;
}
.chip-row.rev {
  animation-direction: reverse;
  animation-duration: 20s;
}
.bento-card:hover .chip-row { animation-duration: 10s; }
.chip-row span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .25s, color .25s;
}
.bento-card:hover .chip-row span:nth-child(odd) {
  border-color: var(--ink);
  color: var(--ink);
}
@keyframes chip-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-33.33%); }
}

/* Bento 3: Pulsing Connected Architecture Nodes */
.bv-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bv-node {
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, color .3s ease;
}
.bv-node.core {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.bento-card:hover .bv-node.core { transform: scale(1.08); }
.bento-card:hover .bv-node:not(.core) {
  border-color: var(--ink);
  color: var(--ink);
}
.bv-wire {
  position: relative;
  width: 38px;
  height: 1.5px;
  background: var(--line-2);
  overflow: hidden;
}
.bv-wire::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  transform: translateX(-100%);
  animation: wire-pulse 2.2s ease-in-out infinite;
}
@keyframes wire-pulse {
  0% { transform: translateX(-100%); }
  65%, 100% { transform: translateX(100%); }
}

.bento-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
[lang="ar"] .bento-card h3 { font-size: 23px; }
.bento-card p {
  flex: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
}
.skill-proof {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
[lang="ar"] .skill-proof {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
}

/* 4-Step Responsive Spotlight Process Cards (Desktop 4-Col + Mobile Compact Horizontal Cards) */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.process-card {
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.process-card:hover {
  transform: translateY(-2px);
}
.pr-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pr-num {
  width: 34px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.process-card:hover .pr-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.pr-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
[dir="rtl"] .pr-line {
  background: linear-gradient(270deg, var(--line-2), transparent);
}
.pr-body {
  min-width: 0;
}
.pr-body strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
[lang="ar"] .pr-body strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
}
.pr-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

/* ==========================================================================
   Contact Box (with Interactive Flow-Field Canvas!) & Footer
   ========================================================================== */
.contact-wrap { padding-top: 32px; padding-bottom: 88px; border-top: 0; }
.contact {
  position: relative;
  overflow: hidden;
  padding: 76px 68px;
  border-radius: 28px;
  background: #111113;
  color: #f5f5f3;
}
[data-theme="dark"] .contact {
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 300px at 90% 0%, rgba(124, 156, 255, .17), transparent 70%);
}
[dir="rtl"] .contact::after {
  background: radial-gradient(600px 300px at 10% 0%, rgba(124, 156, 255, .17), transparent 70%);
}
.contact canvas.flow {
  opacity: .56;
  z-index: 0;
}
.contact > :not(canvas) {
  position: relative;
  z-index: 1;
}
.eyebrow.light { color: #9a9a96; }
.eyebrow.light span:first-child { color: #ffffff; }
.eyebrow.light span + span::before { background: #3a3a3a; }

.contact h2 {
  margin-top: 20px;
  max-width: 820px;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
[lang="ar"] .contact h2 {
  letter-spacing: 0;
  line-height: 1.25;
}
[lang="ar"] .contact h2 em { color: #9a9a96; }

.contact-lead {
  margin-top: 20px;
  max-width: 560px;
  color: #a8a8a4;
  font-size: 17px;
}
.socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
  max-width: 780px;
}
.socials a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(6px);
  transition: background-color .22s, border-color .22s, transform .22s;
}
.socials a:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #525258;
  transform: translateY(-2px);
}
.socials svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
}
.socials span { font-weight: 500; font-size: 15px; }
.socials small {
  color: #8d8d8a;
  font-size: 13px;
  direction: ltr;
  text-align: start;
}

.contact .sign {
  margin-top: 38px;
  width: 240px;
  opacity: .94;
}

/* Footer */
.footer {
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer a { transition: color .2s, background-color .2s, border-color .2s, transform .2s; }
.footer a:hover { color: var(--ink); }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
}
.back-top:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.footer .sign { width: 132px; }

/* ==========================================================================
   04 · ReactBits Album Rail — Personal Coding Soundtrack (#soundtrack)
   ========================================================================== */
.soundtrack-head {
  margin-bottom: 40px;
}

.rail-stage {
  --track-accent: #5585ff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 28px 42px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}
[data-theme="dark"] .rail-stage {
  background: #0b0b0e;
  border-color: #1e1e26;
}

.rail-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    290px circle at 50% 42%,
    color-mix(in srgb, var(--track-accent) 14%, transparent),
    transparent 74%
  );
  transition: background .45s ease;
}
[data-theme="dark"] .rail-ambient {
  background: radial-gradient(
    320px circle at 50% 42%,
    color-mix(in srgb, var(--track-accent) 20%, transparent),
    transparent 74%
  );
}

.rail-fan {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  height: 266px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.rail-item {
  position: absolute;
  width: 242px;
  height: 242px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 85%;
  transition:
    transform .56s cubic-bezier(.22, 1, .36, 1),
    filter .42s ease,
    opacity .42s ease;
  will-change: transform;
}
.rail-item:focus-visible .rail-sleeve {
  outline: 2px solid var(--track-accent);
  outline-offset: 4px;
}

/* Fanned Left / Center / Right Arc Positions (matches ReactBits Album Rail) */
.rail-item[data-offset="0"] {
  z-index: 6;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  filter: brightness(1);
}
.rail-stage.is-playing .rail-item[data-offset="0"] {
  transform: translate3d(-24px, 0, 0) scale(1) rotate(0deg);
}

.rail-item[data-offset="-1"] {
  z-index: 3;
  transform: translate3d(-152px, 18px, 0) scale(.835) rotate(-8.5deg);
  filter: brightness(.88);
}
.rail-item[data-offset="-1"]:hover {
  transform: translate3d(-162px, 12px, 0) scale(.855) rotate(-9.5deg);
  filter: brightness(.98);
}

.rail-item[data-offset="1"] {
  z-index: 3;
  transform: translate3d(152px, 18px, 0) scale(.835) rotate(8.5deg);
  filter: brightness(.88);
}
.rail-item[data-offset="1"]:hover {
  transform: translate3d(162px, 12px, 0) scale(.855) rotate(9.5deg);
  filter: brightness(.98);
}

/* Square Album Cover Sleeve */
.rail-sleeve {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #14151a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    0 20px 44px -12px rgba(15, 17, 25, .28),
    0 6px 16px -4px rgba(15, 17, 25, .14);
  transition: box-shadow .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
[data-theme="dark"] .rail-sleeve {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 26px 56px -12px rgba(0, 0, 0, .78),
    0 8px 20px -4px rgba(0, 0, 0, .55);
}
.rail-item[data-offset="0"]:hover .rail-sleeve {
  transform: translateY(-2px);
}
.rail-sleeve img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Subtle glossy paper sleeve sheen */
.rail-sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(132deg, rgba(255, 255, 255, .14) 0%, transparent 38%, rgba(0, 0, 0, .14) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
}

/* 12-Inch Grooved Vinyl Record Tucked Inside Each Sleeve */
.rail-vinyl {
  position: absolute;
  top: 4%;
  right: 4%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  z-index: 1;
  background:
    conic-gradient(
      from 28deg,
      transparent 0deg,
      rgba(255, 255, 255, .12) 22deg,
      transparent 48deg,
      transparent 168deg,
      rgba(255, 255, 255, .11) 198deg,
      transparent 226deg,
      transparent 360deg
    ),
    repeating-radial-gradient(
      circle at center,
      #141519 0px,
      #141519 2.2px,
      #1e2027 2.8px,
      #111216 3.8px
    );
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 12px 28px -6px rgba(0, 0, 0, .46);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0);
  transition: transform .56s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
/* Active center sleeve shows a subtle tucked vinyl rim, peeks further on hover, and slides out & spins when playing! */
.rail-item[data-offset="0"] .rail-vinyl {
  transform: translate3d(11px, 0, 0);
}
.rail-item[data-offset="0"]:hover .rail-vinyl {
  transform: translate3d(20px, 0, 0);
}
.rail-stage.is-playing .rail-item[data-offset="0"] .rail-vinyl {
  transform: translate3d(96px, 0, 0);
}

.rail-vinyl-label {
  position: relative;
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 3px #0c0d10,
    inset 0 0 0 1px rgba(255, 255, 255, .24);
  animation: vinyl-spin 3.4s linear infinite;
  animation-play-state: paused;
}
.rail-stage.is-playing .rail-item[data-offset="0"] .rail-vinyl-label {
  animation-play-state: running;
}
/* Center vinyl spindle hole */
.rail-vinyl-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #0b0b0e;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25);
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

/* Centered Track Title & Artist Metadata */
.rail-info {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.rail-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.rail-artist {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

/* Signature Album Rail Tick-Mark Scrubber & Play Transport Bar */
.rail-controls {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rail-nav {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .18s ease;
}
.rail-nav:hover {
  color: var(--ink);
  background: rgba(128, 128, 128, .10);
}
.rail-nav:active {
  transform: scale(.92);
}
.rail-nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-ticks {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rail-tick {
  position: relative;
  width: 9px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rail-tick::before {
  content: "";
  width: 1.5px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  transform: scaleY(var(--ty, 1));
  transition: transform .14s ease-out, background-color .2s ease, opacity .2s ease;
}
/* Outer edge feather fade matching ReactBits Album Rail reference */
.rail-ticks-left .rail-tick:nth-child(1)::before,
.rail-ticks-right .rail-tick:nth-child(7)::before { opacity: .35; }
.rail-ticks-left .rail-tick:nth-child(2)::before,
.rail-ticks-right .rail-tick:nth-child(6)::before { opacity: .58; }
.rail-ticks-left .rail-tick:nth-child(3)::before,
.rail-ticks-right .rail-tick:nth-child(5)::before { opacity: .80; }

.rail-tick:hover::before {
  opacity: 1 !important;
  transform: scaleY(1.65);
  background: var(--ink);
}
.rail-tick.is-lit::before {
  opacity: 1 !important;
  background: var(--track-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--track-accent) 55%, transparent);
}

.rail-play {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--track-accent) 26%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--track-accent) 16%, transparent);
  color: var(--track-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-inline: 4px;
  transition:
    background-color .24s ease,
    border-color .24s ease,
    color .24s ease,
    transform .2s cubic-bezier(.22, 1, .36, 1),
    box-shadow .24s ease;
}
[data-theme="dark"] .rail-play {
  background: color-mix(in srgb, var(--track-accent) 20%, rgba(255, 255, 255, .03));
}
.rail-play:hover {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--track-accent) 26%, transparent);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--track-accent) 45%, transparent);
}
.rail-play:active {
  transform: scale(.95);
}
.rail-play svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.rail-play .ico-play {
  transform: translateX(1px);
}
.rail-play .ico-pause {
  display: none;
}
.rail-stage.is-playing .rail-play .ico-play {
  display: none;
}
.rail-stage.is-playing .rail-play .ico-pause {
  display: block;
}

/* ==========================================================================
   ReactBits ClickSpark Global Micro-Interaction
   ========================================================================== */
.click-spark-wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 120;
}
.click-spark-ray {
  position: absolute;
  left: 0;
  top: -1px;
  width: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: 0% 50%;
  transform: rotate(var(--ang)) translateX(4px) scaleX(1);
  animation: spark-shoot .48s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes spark-shoot {
  0% {
    opacity: .95;
    transform: rotate(var(--ang)) translateX(3px) scaleX(1.1);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--ang)) translateX(24px) scaleX(0.15);
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1020px) {
  .nav { display: none; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card,
  .work-card-wide { grid-column: span 1; }
  .work-card-zol { grid-column: 1 / -1; }
  .bento-grid { grid-template-columns: minmax(0, 1fr); }
  .about-strip { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pro-ring-viewport { height: 344px; }
  .pro-ring-stage { transform: translateY(24px); }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 28px); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-card,
  .work-card-wide,
  .work-card-zol { grid-column: span 1; }
  .header { top: 10px; padding: 0 10px; }
  .header-inner,
  .header.scrolled .header-inner { height: 52px; padding-inline: 14px 8px; }
  .brand-sign { width: 120px; height: 38px; }
  .header-cta { display: none; }
  .hero { padding: 0 0 24px; }
  .hero-inner { min-height: 0; padding: 92px 0 0; }
  .hero-title,
  [lang="ar"] .hero-title {
    font-size: clamp(30px, 8vw, 42px);
  }
  .hero-lead { font-size: 15.5px; }
  .pro-ring-viewport { height: 268px; }
  .pro-ring-stage { transform: translateY(16px); }
  .pro-ring-tabs { gap: 18px; }
  .pr-tab { font-size: 12.5px; }
  .section, .statement-sec { padding: 76px 0; }
  .facts-grid,
  .process,
  .socials { grid-template-columns: minmax(0, 1fr); }
  .process { gap: 12px; margin-top: 18px; }
  .process-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
    border-radius: 16px;
  }
  .pr-line { display: none; }
  .pr-num {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    margin-top: 1px;
  }
  .pr-body strong { font-size: 16px; }
  [lang="ar"] .pr-body strong { font-size: 18.5px; }
  .pr-body p { margin-top: 4px; font-size: 13.5px; }
  .rail-stage { padding: 38px 14px 32px; border-radius: 20px; }
  .rail-fan { height: 204px; }
  .rail-item { width: 178px; height: 178px; }
  .rail-item[data-offset="-1"] { transform: translate3d(-102px, 14px, 0) scale(.82) rotate(-8deg); }
  .rail-item[data-offset="1"] { transform: translate3d(102px, 14px, 0) scale(.82) rotate(8deg); }
  .rail-stage.is-playing .rail-item[data-offset="0"] { transform: translate3d(-18px, 0, 0) scale(1) rotate(0deg); }
  .rail-stage.is-playing .rail-item[data-offset="0"] .rail-vinyl { transform: translate3d(68px, 0, 0); }
  .rail-controls { gap: 6px; }
  .rail-ticks { gap: 3px; }
  .rail-tick { width: 7px; }
  .contact { padding: 44px 24px; border-radius: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* LUMI logo and local liquid-metal interaction. */
.work-stage-lumi { background: #fff; isolation: isolate; }
[data-theme="dark"] .work-stage-lumi { background: #08090d; }
.lumi-logo-wrap { width: 38%; max-width: 190px; aspect-ratio: 1; pointer-events: none; }
.lumi-logo-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lumi-blob-canvas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.lumi-blob-canvas canvas { display: block; width: 100%; height: 100%; }
.lumi-hint { position: absolute; bottom: 18px; inset-inline: 0; text-align: center; font-size: 10px; color: var(--text-muted); pointer-events: none; }
.work-stage-lumi.jelly-ready .lumi-logo-wrap { visibility: hidden; }

/* Logo Loop: two equal sequences, hover pause and soft edge fades. */
.logo-loop { overflow: hidden; padding: 25px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.logo-loop-track { display: flex; width: max-content; animation: logo-loop 32s linear infinite; }
.logo-loop-group { display: flex; align-items: center; justify-content: space-around; flex: 0 0 auto; min-width: 100vw; gap: 64px; padding-inline: 32px; }
.logo-loop-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.logo-loop-item img { display: block; object-fit: contain; opacity: .65; transition: transform .25s,opacity .25s; }
.logo-loop-item:hover img { transform: scale(1.15); opacity: 1; }
.logo-loop:hover .logo-loop-track { animation-play-state: paused; }
[data-theme="dark"] .logo-loop-item img { filter: invert(1); }
@keyframes logo-loop { to { transform: translateX(-50%); } }
@media(prefers-reduced-motion:reduce) { .logo-loop-track { animation: none; } }

/* Ghost Fibers belongs only to the hero, behind its readable content. */
.hero-ghost { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .78; mask-image: linear-gradient(transparent,#000 12%,#000 80%,transparent); }
.hero-ghost canvas { width: 100%; height: 100%; display: block; }
.hero-stage-wrap { position: relative; z-index: 1; }
[data-theme="dark"] .hero-ghost { filter: invert(1); opacity: .5; }
.work-stage-lumi { touch-action: none; }

/* Dentix: pearly tooth, removable stain layer and local brush cursor. */
.dentix-clean { touch-action: none; cursor: none; background: radial-gradient(ellipse at center,#fff 20%,#f3eff8 100%); }
[data-theme="dark"] .dentix-clean { background: radial-gradient(ellipse at center,#292631,#0a0a0e); }
.tooth-figure { position: relative; height: 92%; aspect-ratio: 1121 / 1403; max-width: 72%; filter: drop-shadow(0 14px 16px rgba(35,20,45,.12)); }
.tooth-figure img,.tooth-figure canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tooth-figure img { transition: filter .6s; }
.dentix-clean.is-clean .tooth-figure img { filter: brightness(1.08) contrast(1.03); }
.tooth-brush { position: absolute; left: 0; top: 0; width: 76px; height: 44px; z-index: 3; pointer-events: none; opacity: 0; filter: drop-shadow(0 3px 3px #0002); }
.tooth-brush svg { display: block; width: 100%; height: 100%; }
.brush-visible .tooth-brush { opacity: 1; }
.tooth-glint { position: absolute; right: 24%; top: 25%; color: #fff; font-size: 42px; opacity: 0; pointer-events: none; }
.is-clean .tooth-glint { animation: tooth-shine 2.4s ease-in-out infinite; }
@keyframes tooth-shine { 0%,100% {opacity:0;transform:scale(.5) rotate(0)} 45% {opacity:1;transform:scale(1.1) rotate(45deg)} }
.tooth-progress { position: absolute; bottom: 14px; left: 18px; font: 11px var(--font-mono,monospace); color: var(--text-muted); }
.tooth-reset { position: absolute; bottom: 9px; right: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); border-radius: 50%; width: 34px; height: 34px; font-size: 20px; cursor: pointer; }
@media (prefers-reduced-motion:reduce) { .is-clean .tooth-glint {animation:none;opacity:1;} }

/* Larger showcase, tucked just below the introduction as in the reference. */
.hero-inner { min-height:0; padding-top:154px; padding-bottom:0; }
.hero-stage-wrap { margin-top:-70px; padding-top:0; padding-bottom:20px; }
.pro-ring-viewport { height:clamp(380px,24vw,500px); }
.pro-ring-stage { transform:translateY(10px); }
@media(max-width:760px) {
 .hero-inner { min-height:0; padding-top:110px; padding-bottom:24px; }
 .hero-stage-wrap { margin-top:0; }
 .pro-ring-viewport { height:320px; }
 .pro-ring-stage { transform:translateY(4px); }
}

/* Approved Dentix case card keeps the preview's blush art and golden foil. */
.work-stage-holo { min-height:0; aspect-ratio:16 / 9.3!important; flex-direction:column; gap:8px; padding:14px; background:#fff; }
.work-stage-holo .holo-card__shadow { background:rgba(104,71,96,.16); }
.dentix-next { border:0; border-radius:28px; padding:9px 18px; background:#543847; color:#fff; font:inherit; font-size:10px; cursor:pointer; position:relative; z-index:2; }
[data-theme="dark"] .work-stage-holo { background:#fff; }
@media(max-width:640px) { .work-stage-holo {min-height:0;padding:12px;} }

/* Keep all approved project display canvases clean white. */
.work-stage-stack,[data-theme="dark"] .work-stage-stack,
.work-stage-zol,[data-theme="dark"] .work-stage-zol { background:#fff; }
.work-stage-stack::before,[data-theme="dark"] .work-stage-stack::before { display:none; }
.work-stage-holo { justify-content:center;align-items:center;gap:0; }
.work-stage-holo .holo-card { cursor:pointer; }

/* Crisp live typography is separate from the foil-rendered artwork. */
.dentix-card-copy { position:absolute;inset:0;z-index:3;pointer-events:none;color:#493441;text-align:left;direction:ltr;font-family:Arial,sans-serif; }
.dentix-card-copy>* {position:absolute;left:10%;}
.dc-brand {top:7.8%;font-size:17px;letter-spacing:-.8px;line-height:1;}
.dc-brand span {color:#ae729d;}
.dc-status {top:18%;font-size:7px;font-weight:700;letter-spacing:.3px;color:#80576e;}
.dc-id {top:58.8%;font-size:8px;letter-spacing:1px;color:#88717f;}
.dc-title {top:64%;font-size:15px;font-weight:500;letter-spacing:-.5px;line-height:1.2;}
.dc-sub {top:71%;font-size:7px;color:#735e6b;}
.dc-phases {top:78.5%;right:10%;display:flex;justify-content:space-between;font-size:6px;color:#6e5966;}
.dc-footer {top:91%;font-size:5.5px;letter-spacing:.5px;color:#7b6573;}
.dc-count {top:91%;left:auto;right:10%;font-size:7px;color:#7b6573;}

/* White display canvases by day, dark display canvases by night. */
[data-theme="dark"] .work-stage-holo,
[data-theme="dark"] .work-stage-stack,
[data-theme="dark"] .work-stage-zol,
[data-theme="dark"] .work-stage-lumi { background:#08090b; }

/* Opening: the same quiet surfaces, signature and capsule details as the portfolio. */
.boot { background:var(--bg);color:var(--ink);padding:clamp(24px,4vw,64px);transition:clip-path .85s cubic-bezier(.76,0,.24,1); }
.boot-grid { background:none;inset:15%;border:1px solid var(--line);border-radius:50%;mask-image:none;-webkit-mask-image:none;opacity:.55;transform:rotate(-18deg) scaleX(1.4); }
.boot-grid::after {content:"";position:absolute;inset:12%;border:1px solid var(--line);border-radius:50%;}
.boot-top {font-family:var(--font-sans);letter-spacing:0;color:var(--muted);}
.boot-sys {padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:var(--bg);font-size:11px;}
.boot-dot {background:var(--ink);box-shadow:none;width:5px;height:5px;}
.boot-skip {color:var(--ink);border-color:var(--line);background:var(--surface);font-family:var(--font-sans);}
.boot-skip:hover {background:var(--surface-2);border-color:var(--line-2);}
.boot-center {gap:24px;}
.boot .boot-sign {width:min(390px,72vw);color:var(--ink);}
.boot-sign.drawn .sg {animation:sg-stroke .6s ease calc(var(--si,0)*.19s) forwards,sg-fill .4s ease calc(var(--si,0)*.19s + .38s) forwards;}
.boot-log {font:italic clamp(22px,3vw,30px) var(--font-serif);color:var(--muted);min-height:42px;}
.boot-bottom {width:min(420px,100%);align-self:center;}
.boot-hint {color:var(--muted);font-size:12px;}
.boot-count {color:var(--ink);font-size:20px;}
.boot-bar {background:var(--line);height:2px;}
.boot-bar i {background:var(--ink);}
body.has-entered .hero-inner {animation:opening-content .9s cubic-bezier(.2,.7,.2,1) both;}
body.has-entered .hero-stage-wrap {animation:opening-content 1.15s .12s cubic-bezier(.2,.7,.2,1) both;}
@keyframes opening-content {from {opacity:0;transform:translateY(26px)}to {opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.boot,.boot * {animation:none!important;transition:none!important}.boot-sign .sg {fill-opacity:1;stroke-dashoffset:0}body.has-entered .hero-inner,body.has-entered .hero-stage-wrap {animation:none}}

.boot-top {justify-content:flex-end}
.boot {clip-path:none;transition:opacity .65s ease,visibility .65s;}
.boot.is-done {clip-path:none;opacity:0;visibility:hidden;}
body.has-entered .hero-inner,body.has-entered .hero-stage-wrap {transform-origin:50% 35%;animation-name:opening-focus;}
@keyframes opening-focus {from {opacity:0;transform:scale(.975);filter:blur(5px)}to {opacity:1;transform:scale(1);filter:blur(0)}}

/* Keep the live lettering in the same coordinate system as the card artwork. */
.dentix-card-copy {-webkit-text-size-adjust:none;text-size-adjust:none;line-height:1.2;}
.dc-brand {font-size:calc(var(--hc-w)*.085);letter-spacing:calc(var(--hc-w)*-.004);}
.dc-status {font-size:calc(var(--hc-w)*.035);letter-spacing:calc(var(--hc-w)*.0015);white-space:nowrap;}
.dc-id {font-size:calc(var(--hc-w)*.04);letter-spacing:calc(var(--hc-w)*.005);}
.dc-title {font-size:calc(var(--hc-w)*.075);letter-spacing:calc(var(--hc-w)*-.0025);white-space:nowrap;}
.dc-sub {font-size:calc(var(--hc-w)*.035);white-space:nowrap;}
.dc-phases {font-size:calc(var(--hc-w)*.027);gap:calc(var(--hc-w)*.025);white-space:nowrap;}
.dc-footer {font-size:calc(var(--hc-w)*.025);letter-spacing:calc(var(--hc-w)*.0015);}
.dc-count {font-size:calc(var(--hc-w)*.035);}

@font-face {font-family:"Thmanyah Sans";src:url("assets/fonts/thmanyahsans-Bold.woff2") format("woff2");font-weight:700;font-display:swap;}
@font-face {font-family:"Thmanyah Sans";src:url("assets/fonts/thmanyahsans-Black.woff2") format("woff2");font-weight:900;font-display:swap;}
[lang="ar"] {--font-serif:"Thmanyah Sans",sans-serif;}
[lang="ar"] h1,[lang="ar"] h2,[lang="ar"] .statement-text {font-family:"Thmanyah Sans",sans-serif;font-weight:900;line-height:1.45;letter-spacing:0;}
[lang="ar"] .hero-title em,[lang="ar"] .contact h2 em {font-family:"Thmanyah Sans",sans-serif;font-weight:900;}
[lang="ar"] .work-meta,[lang="ar"] .bento-card {text-align:start;}
.project-brand,[lang="ar"] .project-brand {font-family:"Inter",system-ui,sans-serif;font-weight:500;letter-spacing:-.02em;unicode-bidi:isolate;}
.logo-loop-item {font-family:"Inter",system-ui,sans-serif;}
.socials a[href^="tel:"] small {direction:ltr;unicode-bidi:isolate;display:block;}
.work-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.work-grid>.work-card {grid-column:auto;}
.work-stage-laptop .laptop-rig {width:76%;}
.work-stage-laptop .stage-screen {aspect-ratio:16/9;}
.work-stage-laptop .stage-screen img {object-fit:contain;filter:none!important;transform:none;}
.work-stage-laptop .stage-screen::after {opacity:.15;}

@media(max-width:760px){.work-grid{grid-template-columns:minmax(0,1fr);}}
/* Soft paper folds behind the opening section, rendered without a canvas. */
.hero-paper {position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;opacity:.7;mask-image:linear-gradient(#000 65%,transparent);}
.hero-paper i {position:absolute;inset:-25% -40%;border-radius:48%;border-top:1px solid rgba(125,130,145,.15);background:linear-gradient(175deg,transparent 42%,rgba(145,150,165,.09) 49%,rgba(255,255,255,.65) 50%,transparent 57%);transform:rotate(-16deg);}
.hero-paper i:nth-child(2){transform:translateY(28%) rotate(-16deg);opacity:.65;}
.hero-paper i:nth-child(3){transform:translateY(-26%) rotate(-16deg);opacity:.45;}
[data-theme="dark"] .hero-paper i {background:linear-gradient(175deg,transparent 42%,rgba(145,150,165,.075) 49%,rgba(255,255,255,.05) 50%,transparent 57%);border-color:rgba(255,255,255,.04);}
@media(prefers-reduced-motion:no-preference) and (min-width:761px){.hero-paper {animation:paper-breathe 16s ease-in-out infinite alternate;}@keyframes paper-breathe {to{transform:translateY(14px);opacity:.9;}}}

[lang="ar"] .hero-title {font-family:"Thmanyah Sans",sans-serif;font-weight:900;line-height:1.45;}
[lang="ar"] .work-meta .project-brand,[lang="ar"] .project-brand {font-family:"Inter",system-ui,sans-serif;font-weight:500;font-size:16px;line-height:1.3;}

/* All Arabic weights come from the same reference family. */
@font-face{font-family:"Cono Thmanyah";src:url("assets/fonts/cono-thmanyah-light.woff2") format("woff2");font-weight:300;font-display:swap;}
@font-face{font-family:"Cono Thmanyah";src:url("assets/fonts/cono-thmanyah-regular.woff2") format("woff2");font-weight:400;font-display:swap;}
@font-face{font-family:"Cono Thmanyah";src:url("assets/fonts/cono-thmanyah-medium.woff2") format("woff2");font-weight:500;font-display:swap;}
@font-face{font-family:"Cono Thmanyah";src:url("assets/fonts/cono-thmanyah-bold.woff2") format("woff2");font-weight:700;font-display:swap;}
@font-face{font-family:"Cono Thmanyah";src:url("assets/fonts/cono-thmanyah-black.woff2") format("woff2");font-weight:900;font-display:swap;}

[lang="ar"] {--font-sans:"Cono Thmanyah",system-ui,sans-serif;--font-serif:"Cono Thmanyah",sans-serif;}
[lang="ar"] .hero-title,[lang="ar"] h1,[lang="ar"] h2,[lang="ar"] .statement-text,[lang="ar"] .hero-title em,[lang="ar"] .contact h2 em {font-family:"Cono Thmanyah",sans-serif;font-weight:900;}
[lang="ar"] .work-meta .project-brand,.work-meta .project-brand {font-family:"Inter",system-ui,sans-serif;font-weight:500;font-size:16px;line-height:1.3;direction:ltr;unicode-bidi:isolate;}
.work-stage-laptop .laptop-rig {width:76%;transform:translate3d(0,-10%,0) rotateX(calc(-7deg + var(--rx,0deg))) rotateY(calc(-6deg + var(--ry,0deg))) scale(var(--sc,1));}
.work-stage-laptop {aspect-ratio:16/10.5!important;}
.work-stage-laptop .laptop-lid {transform:rotateX(3deg);}
.work-stage-laptop .laptop-scene::before {display:none;}

.work-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:760px){.work-grid {grid-template-columns:minmax(0,1fr);}}

.work-stage-laptop {background:#fff;aspect-ratio:16/9.3!important;}
[data-theme="dark"] .work-stage-laptop {background:#08090b;}
.work-stage-laptop .laptop-rig {width:60%;transform:translate3d(0,-14%,0) rotateX(calc(-12deg + var(--rx,0deg))) rotateY(calc(-7deg + var(--ry,0deg))) scale(var(--sc,1));}
.work-stage-laptop .laptop-shadow {inset:auto;bottom:10%;left:20%;width:60%;height:5%;border-radius:50%;transform:none;background:rgba(15,18,28,.14);filter:blur(9px);}
[data-theme="dark"] .work-stage-laptop .laptop-shadow {background:rgba(0,0,0,.5);}

/* Original centered laptop proportions, with the requested colour screen. */
.work-stage-laptop .laptop-rig {width:45%;transform:translate3d(-4.5%,-14%,0) rotateX(calc(-18.5deg + var(--rx,0deg))) rotateY(calc(19.5deg + var(--ry,0deg))) scale(var(--sc,1));}
.work-stage-laptop .laptop-lid {transform:rotateX(8.5deg);}
.work-stage-laptop .laptop-shadow {left:28%;width:47%;bottom:12%;height:5%;}

/* Match the reference's Arabic stylistic alternates and reading rhythm. */
[lang="ar"] body {font-feature-settings:"ss01" 1,"salt" 1;font-size:17px;line-height:1.9;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;}
[lang="ar"] .hero-title,[lang="ar"] h1,[lang="ar"] h2,[lang="ar"] .statement-text {font-feature-settings:"ss01" 1,"salt" 1;line-height:1.5;letter-spacing:normal;}
[lang="ar"] .statement-text {font-size:clamp(36px,5.4vw,80px);max-width:21em;}
.project-brand {font-feature-settings:normal!important;}
.hero-paper {opacity:1;}
.hero-paper i {border-color:rgba(115,122,140,.23);background:linear-gradient(175deg,transparent 39%,rgba(130,140,160,.035) 44%,rgba(115,125,145,.22) 49.3%,rgba(255,255,255,.9) 50%,rgba(240,242,247,.6) 52%,transparent 60%);}
.hero-paper i:nth-child(2){opacity:.8;}
.hero-paper i:nth-child(3){opacity:.65;}
[data-theme="dark"] .hero-paper i {background:linear-gradient(175deg,transparent 39%,rgba(145,155,180,.025) 44%,rgba(145,155,180,.14) 49.3%,rgba(255,255,255,.12) 50%,rgba(70,75,90,.05) 52%,transparent 60%);border-color:rgba(255,255,255,.09);}
@media(max-width:640px){[lang="ar"] .statement-text{font-size:34px;line-height:1.55;}}

/* The title keeps its expressive alternates; body copy uses quieter letterforms. */
[lang="ar"] .hero-lead,[lang="ar"] .work-meta p,[lang="ar"] .bento-card p,[lang="ar"] .contact-lead {font-feature-settings:"ss01" 0,"salt" 0;line-height:1.95;font-weight:400;}
[lang="ar"] .hero-title {word-spacing:.025em;line-height:1.45;text-wrap:balance;}
[lang="ar"] .hero-title em {font-weight:700;}
[lang="ar"] .section-head h2 {text-wrap:balance;line-height:1.5;}
.hero-waves {position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;mask-image:linear-gradient(#000 78%,transparent);}
.hero-waves canvas {display:block;width:100%;height:100%;}

::view-transition-old(root),::view-transition-new(root){animation-duration:.22s;animation-timing-function:ease-in-out;}
body.lang-switching .hero-title .w {animation:none!important;opacity:1;transform:none;filter:none;}
body.lang-switching [data-words] .ww {animation:none!important;}
body.lang-switching main {transition:opacity .14s ease;}
body.language-fade main {opacity:.25;}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important;}}

/* Identical hero geometry when the language changes. */
.hero-title {height:128px;min-height:128px;align-content:center;}
.hero-lead {height:96px;min-height:96px;align-content:center;}
[lang="ar"] .hero-title {font-size:clamp(32px,3.6vw,52px);line-height:1.23;}
[lang="ar"] .hero-lead {font-size:16px;line-height:1.7;}
@media(max-width:760px){
 .hero-title {height:148px;min-height:148px;}
 .hero-lead {height:170px;min-height:170px;}
 [lang="ar"] .hero-title {font-size:clamp(30px,8vw,42px);line-height:1.23;}
 [lang="ar"] .hero-lead {font-size:15.5px;line-height:1.7;}
}
@media(max-width:380px){.hero-lead {height:192px;min-height:192px;}}

/* Unified 16:10 captures fill their identical frames edge to edge. */
.ring-card img {object-fit:cover;object-position:center;}

.hero-eyebrow {height:28px;min-height:28px;}
.hero-actions .btn {height:52px;box-sizing:border-box;}

/* Bring the showcase closer without changing the card size or bilingual layout. */
.hero-stage-wrap {margin-top:-110px;}
@media(max-width:760px){.hero-stage-wrap {margin-top:-18px;}}

@media(max-width:760px){.hero-stage-wrap{margin-top:-62px;}}
.message-options{width:min(360px,calc(100vw - 40px));padding:30px;border:1px solid var(--line,#ddd);border-radius:24px;background:var(--bg,#fff);color:var(--ink,#111);box-shadow:0 24px 90px #0003;}
.message-options::backdrop{background:#0006;backdrop-filter:blur(5px);}
.message-options h2{font-size:24px;margin:8px 0;}
.message-options p{color:var(--muted,#777);margin:0 0 24px;}
.message-options>a{display:block;padding:14px 18px;margin-top:10px;border:1px solid var(--line,#ddd);border-radius:14px;text-align:center;}
.message-options>a:hover{background:#8882;}
.message-close{position:absolute;inset-inline-end:14px;top:8px;border:0;background:none;color:inherit;font-size:28px;cursor:pointer;}
.copy-ar{display:none;}[lang="ar"] .copy-ar{display:inline;}[lang="ar"] .copy-en{display:none;}

/* Compact phone introduction: shared slots keep both languages aligned. */
@media(max-width:760px){
 .hero-inner{padding-top:92px;padding-bottom:12px;}
 .hero-title{height:116px;min-height:116px;margin-top:12px;}
 .hero-lead,[lang="ar"] .hero-lead{height:156px;min-height:156px;margin-top:12px;font-size:15px;line-height:1.6;}
 .hero-actions{margin-top:18px;}
 .hero-stage-wrap{margin-top:-50px;}
 .pro-ring-viewport{height:300px;}
}
@media(max-width:380px){.hero-lead,[lang="ar"] .hero-lead{height:172px;min-height:172px;}}

/* Keep the technology strip below the opening viewport. */
@media(max-width:760px){.hero{min-height:100svh;box-sizing:border-box;}}
