/* ════════════════════════════════════════════════════════════
   DESIGN TOKENS — pure white, Geist sans
   ════════════════════════════════════════════════════════════ */
:root{
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;
  --ink: #0A0A0A;
  --ink-2: #2A2A2A;
  --ink-3: #6B6B6B;
  --ink-4: #A8A8A8;
  --line: #EAEAEA;
  --line-2: #D4D4D4;
  --accent: #0A0A0A;
  --accent-2: #2A2A2A;

  --serif: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Geist Mono", "SF Mono", Menlo, monospace;
  --arabic: "Noto Naskh Arabic", "Times New Roman", serif;

  --shell-max: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  /* Apple-style easing curves */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);            /* default — refined ease-out */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* subtle overshoot */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* hero CTAs */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);      /* material-like */
  --radius: 12px;
  --radius-card: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 2px 8px rgba(10, 10, 10, 0.03);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06), 0 12px 32px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 8px 24px rgba(10, 10, 10, 0.08), 0 24px 64px rgba(10, 10, 10, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL — Apple-style fade-in on scroll
   Only hides elements if JS adds the .reveal class.
   If JS is disabled or fails, content stays visible.
   ════════════════════════════════════════════════════════════ */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger card grids slightly so they don't all pop in together */
.js-reveal .div-grid .reveal:nth-child(2),
.js-reveal .services-grid .reveal:nth-child(2),
.js-reveal .apps-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.js-reveal .div-grid .reveal:nth-child(3),
.js-reveal .services-grid .reveal:nth-child(3),
.js-reveal .apps-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.js-reveal .div-grid .reveal:nth-child(4),
.js-reveal .services-grid .reveal:nth-child(4),
.js-reveal .apps-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.js-reveal .div-grid .reveal:nth-child(5),
.js-reveal .services-grid .reveal:nth-child(5),
.js-reveal .apps-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.js-reveal .div-grid .reveal:nth-child(6),
.js-reveal .services-grid .reveal:nth-child(6),
.js-reveal .apps-grid .reveal:nth-child(6) { transition-delay: 0.30s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Force text-style rendering of arrows on mobile — prevents Android/iOS emoji conversion */
.arr, .meta .url, .footer-col a {
  font-variant-emoji: text;
  font-feature-settings: "ss01";
}
.arr {
  font-family: var(--mono), "Segoe UI Symbol", "DejaVu Sans", sans-serif;
}

a:hover { color: var(--accent-2); }

html[dir="rtl"] body {
  font-family: var(--arabic);
  word-spacing: 0.2em;
  letter-spacing: 0 !important;
  line-height: 1.85;
}
html[dir="rtl"] .mono, html[dir="rtl"] .eyebrow { font-family: var(--mono); }
/* Override any letter-spacing from Latin styles for Arabic text */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] p, html[dir="rtl"] span, html[dir="rtl"] a,
html[dir="rtl"] .name, html[dir="rtl"] .desc,
html[dir="rtl"] .svc-title, html[dir="rtl"] .svc-body,
html[dir="rtl"] .lede, html[dir="rtl"] .tagline,
html[dir="rtl"] .form-label, html[dir="rtl"] .pillar,
html[dir="rtl"] .contact-block .value,
html[dir="rtl"] .h-display, html[dir="rtl"] .h-section,
html[dir="rtl"] .footer-col a, html[dir="rtl"] .nav-links a,
html[dir="rtl"] .btn span:not(.arr) {
  letter-spacing: 0 !important;
  word-spacing: 0.15em;
}
html[dir="rtl"] .h-display, html[dir="rtl"] .h-section {
  word-spacing: 0.05em;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════ */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.s {
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.s.alt { background: var(--paper-2); }
.s:first-of-type { border-top: none; }


/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════════════ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
html[dir="rtl"] .eyebrow { font-size: 12px; letter-spacing: 0.05em; }

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.99;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.h-display .it { font-style: italic; font-weight: 300; color: var(--ink-2); }

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin: 0 0 32px;
  max-width: 18ch;
}
.h-section.wide { max-width: 22ch; }
.h-section .it { font-style: italic; font-weight: 300; color: var(--ink-2); }

html[dir="rtl"] .h-display,
html[dir="rtl"] .h-section {
  font-family: var(--arabic);
  font-weight: 500;
  line-height: 1.22;
}
html[dir="rtl"] .h-display { font-size: clamp(40px, 5.6vw, 80px); }
html[dir="rtl"] .h-section { font-size: clamp(30px, 4vw, 56px); }
html[dir="rtl"] .h-display .it,
html[dir="rtl"] .h-section .it {
  font-style: normal;
  font-weight: 400;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 40px;
  font-weight: 400;
}

.body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(10, 10, 10, 0.08);
}
.nav-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
  transform-origin: right;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
html[dir="rtl"] .nav-links a::after { transform-origin: left; }
html[dir="rtl"] .nav-links a:hover::after { transform-origin: right; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang-wrap { position: relative; }
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-btn svg { width: 8px; height: 8px; opacity: 0.6; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  min-width: 140px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(20, 17, 13, 0.08);
  overflow: hidden;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 16px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.lang-menu button:last-child { border-bottom: none; }
.lang-menu button:hover { background: var(--paper-2); color: var(--ink); }
html[dir="rtl"] .lang-menu { right: auto; left: 0; text-align: right; }

/* ════════════════════════════════════════════════════════════
   BUTTONS — rounded, softer
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  will-change: transform;
}
.btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
  box-shadow: var(--shadow-sm);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.5s var(--ease-spring);
}
.btn:hover .arr { transform: translateX(5px); }
html[dir="rtl"] .btn:hover .arr { transform: translateX(-5px); }
.btn-sm {
  padding: 10px 18px;
  font-size: 10.5px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius);
}
.menu-toggle svg { width: 18px; height: 14px; }
.menu-toggle line { stroke: var(--ink); stroke-width: 1.5; }

@media (max-width: 980px){
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
}
@media (max-width: 560px){
  .nav-cta-text { display: none; }
  .nav-cta-arr { display: inline; }
  .brand-logo { height: 44px; }
  .nav-inner { gap: 16px; }
  .nav-right { gap: 12px; }
  .lang-btn { padding: 8px 11px; letter-spacing: 0.12em; }
}
@media (max-width: 400px){
  .brand-logo { height: 38px; }
  .nav-inner { gap: 10px; }
  .nav-right { gap: 8px; }
  .lang-btn { padding: 8px 9px; }
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.hero-actions {
  margin-top: 56px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 80px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-trust .dot { color: var(--accent); }

.hero-mark {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 32vw, 480px);
  height: auto;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(calc(-50% - 8px)) scale(1.015); }
}
html[dir="rtl"] .hero-mark { right: auto; left: var(--gutter); }
@media (max-width: 720px){ .hero-mark { width: 320px; opacity: 0.12; right: -40px; } }

/* ════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 880px){ .about-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  gap: 16px;
}
@media (max-width: 880px){ .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .services-grid { grid-template-columns: 1fr; } }

.svc {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 28px 36px;
  background: var(--paper);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  will-change: transform;
}
.s.alt .svc { background: var(--paper); }
.svc:hover {
  border-color: rgba(10, 10, 10, 0.18);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.svc-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.svc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.svc-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
html[dir="rtl"] .svc-title { font-family: var(--arabic); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   DIVISIONS — with brand logos
   ════════════════════════════════════════════════════════════ */
.div-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 980px){ .div-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .div-grid { grid-template-columns: 1fr; } }

.div-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s var(--ease);
  min-height: 280px;
  will-change: transform;
}
.s.alt .div-card { background: var(--paper); }
.div-card:hover {
  border-color: rgba(10, 10, 10, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.div-card:active {
  transform: translateY(-2px) scale(0.998);
  transition-duration: 0.15s;
}

.div-logo-plaque {
  width: 100%;
  height: 112px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.div-logo-plaque img {
  max-height: 72px;
  max-width: 75%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s var(--ease-spring);
}
.div-card:hover .div-logo-plaque img {
  transform: scale(1.04);
}
/* Per-logo overrides — keep optical size consistent regardless of aspect ratio */
.div-logo-plaque img.logo-square  { max-height: 88px; max-width: 38%; }  /* MB Labs */
.div-logo-plaque img.logo-stacked-tall { max-height: 88px; max-width: 36%; }  /* Biolyze (mark+text stacked) */
.div-logo-plaque img.logo-wide    { max-height: 56px; max-width: 56%; }  /* BuildMyApp */
.div-logo-plaque img.logo-xwide   { max-height: 52px; max-width: 60%; }  /* Elevra */
.div-logo-plaque img.logo-sokommerce { max-height: 44px; max-width: 66%; }  /* Sokommerce (icon + wordmark) */
.div-logo-plaque img.logo-aktp    { max-height: 78px; max-width: 74%; }  /* A&K TECHPARTS (icon + wordmark) */

/* .light kept as a no-op for backward compatibility */
.div-logo-plaque.light { background: transparent; }

.div-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}
.div-card .meta .url {
  color: var(--accent-2);
  font-size: 10.5px;
}
.div-card .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.div-card .name .arr {
  font-size: 16px;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.div-card:hover .name .arr { color: var(--accent-2); transform: translate(3px, -3px); }
html[dir="rtl"] .div-card:hover .name .arr { transform: translate(-3px, -3px); }
.div-card .desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
html[dir="rtl"] .div-card .name { font-family: var(--arabic); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   PRODUCTION
   ════════════════════════════════════════════════════════════ */
.prod-media {
  margin: 64px 0 0;
  position: relative;
  height: clamp(320px, 42vw, 580px);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  border-radius: var(--radius-card);
}
.prod-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Subtle vignette + bottom gradient for text legibility */
.prod-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,13,0.05) 0%, rgba(20,17,13,0) 30%, rgba(20,17,13,0) 60%, rgba(20,17,13,0.6) 100%);
  pointer-events: none;
  z-index: 2;
}
.prod-media-caption {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 17, 13, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 999px;
}
html[dir="rtl"] .prod-media-caption { right: auto; left: 28px; }
.prod-media-label {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.prod-media-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #fff;
  opacity: 0.7;
}
html[dir="rtl"] .prod-media-label { left: auto; right: 28px; }

.prod-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  gap: 16px;
}
@media (max-width: 900px){ .prod-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .prod-pillars { grid-template-columns: 1fr; } }
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px 32px;
  background: var(--paper);
  transition: all 0.35s var(--ease);
}
.s.alt .pillar { background: var(--paper); }
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pillar-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.pillar-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
html[dir="rtl"] .pillar-title { font-family: var(--arabic); font-weight: 600; }

/* Production showcase gallery */
.showcase-header {
  margin-top: 80px;
  margin-bottom: 32px;
}
.showcase-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.showcase-sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
  max-width: 64ch;
}
.prod-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .prod-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .prod-gallery { grid-template-columns: 1fr 1fr; gap: 12px; } }
.prod-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #F0F0F0;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.prod-img-pending {
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img-pending::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(10,10,10,0.04) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10,10,10,0.03) 0, transparent 50%);
}
.prod-mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
}
.prod-item:hover .prod-img {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.prod-item figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

/* ════════════════════════════════════════════════════════════
   APPS PORTFOLIO — dark cards section
   ════════════════════════════════════════════════════════════ */
.apps-section {
  background: #0E0C0A;
  color: #EAE5D9;
  padding: clamp(80px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}
.apps-section .eyebrow { color: rgba(234, 229, 217, 0.55); }
.apps-section .eyebrow::before { background: var(--accent); }
.apps-section .h-section { color: #EAE5D9; }
.apps-section .h-section .it { color: rgba(234, 229, 217, 0.7); }
.apps-section .lede { color: rgba(234, 229, 217, 0.7); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 900px){ .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  background: #16130F;
  border: 1px solid rgba(234, 229, 217, 0.08);
  border-radius: var(--radius-card);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  will-change: transform;
}
.app-card:hover { color: inherit; }
.app-card:hover {
  border-color: rgba(234, 229, 217, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.app-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.app-card .top .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(234, 229, 217, 0.45);
}
.app-card .badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-active {
  background: rgba(76, 175, 116, 0.15);
  color: #6FCB94;
}
.badge-active::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6FCB94;
}
.badge-beta {
  background: rgba(204, 144, 80, 0.15);
  color: #D6A465;
}
.badge-beta::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D6A465;
}
.badge-dev {
  background: rgba(122, 162, 224, 0.15);
  color: #92B2E6;
}
.badge-dev::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #92B2E6;
}
.app-card .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #F4F1EA;
  margin: 0 0 8px;
}
.app-card .subname {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234, 229, 217, 0.55);
  margin-bottom: 14px;
}
.app-card .desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(234, 229, 217, 0.75);
  margin-bottom: 20px;
}
.app-card .icon-wrap {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.app-card .icon-wrap img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring), box-shadow 0.4s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.app-card:hover .icon-wrap img {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.app-card.placeholder .icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1F1B16, #14110D);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto auto 0;
  font-family: var(--serif);
  font-size: 32px;
  color: rgba(234, 229, 217, 0.4);
  padding: 0;
}
html[dir="rtl"] .app-card .name { font-family: var(--arabic); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   GROWTH
   ════════════════════════════════════════════════════════════ */
.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 880px){ .growth-grid { grid-template-columns: 1fr; } }
.growth-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.growth-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  display: flex;
  gap: 20px;
}
.growth-list li:first-child { border-top: 1px solid var(--line); }
.growth-list li .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  flex-shrink: 0;
  padding-top: 4px;
}

/* Growth flow diagram */
.growth-flow {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.growth-flow-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.growth-flow-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.growth-flow-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 780px;
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
  position: relative;
}
@media (max-width: 980px) {
  .flow-track { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 520px) {
  .flow-track { grid-template-columns: 1fr; }
}
.flow-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.flow-step::after {
  content: "→";
  font-variant-emoji: text;
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 18px;
  font-weight: 300;
  z-index: 2;
  pointer-events: none;
}
.flow-step:last-child::after { display: none; }
@media (max-width: 980px) {
  .flow-step::after { display: none; }
}
.flow-step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.flow-step-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.flow-step-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 2px;
}
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
}
.flow-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  text-transform: uppercase;
}

/* Brands strip */
.brands-strip {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.brands-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-align: center;
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
  row-gap: 32px;
}
.partner-logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
  opacity: 0.72;
  filter: grayscale(15%);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
  text-decoration: none;
}
.partner-logo img {
  height: 100%;
  width: auto;
  display: block;
}
.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
/* Per-logo height overrides — visually balance different logo aspect ratios */
.partner-logo.pl-mindabolics { height: 36px; }    /* wide wordmark + icon */
.partner-logo.pl-suppleply   { height: 42px; }    /* wide wordmark + icon */
.partner-logo.pl-darajo      { height: 96px; }    /* stacked logo (icon + 2 lines text) */
.partner-logo.pl-biolyze     { height: 64px; }    /* stacked mark + wordmark */

@media (max-width: 520px) {
  .brands-row { gap: 32px; }
  .partner-logo.pl-mindabolics { height: 28px; }
  .partner-logo.pl-suppleply   { height: 34px; }
  .partner-logo.pl-darajo      { height: 80px; }
  .partner-logo.pl-biolyze     { height: 54px; }
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  margin-top: 56px;
  align-items: start;
}
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-block:first-child { border-top: 1px solid var(--line); }
.contact-block .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.contact-block .value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-block .value.small {
  font-size: 17px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}
.contact-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
html[dir="rtl"] .contact-block .value { font-family: var(--arabic); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form .form-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B6B6B' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--sans);
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: rgba(10, 10, 10, 0.22);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.06);
  background: #FAFAFA;
}
.contact-form .form-submit {
  align-self: flex-start;
  margin-top: 6px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.contact-form .form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-height: 16px;
}
.contact-form .form-status.success { color: #2A7A4A; }
.contact-form .form-status.error { color: #B33A3A; }

/* ════════════════════════════════════════════════════════════
   LEADERSHIP
   ════════════════════════════════════════════════════════════ */
.leadership {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.leadership-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 64ch;
  letter-spacing: -0.005em;
}
html[dir="rtl"] .leadership-quote { font-family: var(--arabic); font-style: normal; font-weight: 400; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: #0E0C0A;
  color: var(--paper);
  padding: 80px 0 36px;
}
.footer .shell { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}
@media (max-width: 880px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px){
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
  height: 96px;
  width: auto;
  margin-bottom: 22px;
  display: block;
}
@media (max-width: 720px){
  .footer-brand .footer-logo { height: 72px; }
}
.footer-brand .tagline {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.65);
  max-width: 38ch;
}
.footer-col .title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(244, 241, 234, 0.85);
  font-size: 13.5px;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}

/* ════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 13, 0.65);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-inner {
  background: var(--paper);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px clamp(28px, 5vw, 56px);
  position: relative;
  border-radius: var(--radius-card);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 8px 12px;
  font-family: var(--sans);
}
.modal-close:hover { color: var(--ink); }
.modal-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 24px;
  color: var(--ink);
}
.modal-inner h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.modal-inner p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }

html[dir="rtl"] .nav-inner { direction: rtl; }
html[dir="rtl"] .div-card .meta { direction: rtl; }
html[dir="rtl"] .footer-bottom { direction: rtl; }