/* =========================================================
   novexa-dz — Organic Minimalism.
   Pale cream, coral/teal/yellow split-complementary,
   blob image masks, wave dividers, friendly geometric sans.
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg:          #FEFDF5;
  --bg-soft:     #F9FAFB;
  --ink:         #1F2937;
  --ink-2:       #374151;
  --fg:          #1F2937;
  --fg-2:        #4B5563;
  --muted:       #6B7280;
  --muted-2:     #9CA3AF;

  --coral:       #FF6B6B;
  --coral-soft:  #FFB4B4;
  --teal:        #06B6D4;
  --teal-soft:   #9EE7F2;
  --yellow:      #FBBF24;
  --yellow-soft: #FDE68A;

  --card-bg:     #FFFFFF;
  --card-tint:   #FFF8F0;

  --shadow-soft: 0 4px 20px rgba(255, 107, 107, 0.08), 0 1px 4px rgba(31, 41, 55, 0.04);
  --shadow-lift: 0 20px 50px rgba(255, 107, 107, 0.14), 0 6px 18px rgba(6, 182, 212, 0.08);
  --shadow-glow: 0 14px 30px rgba(251, 191, 36, 0.28), 0 6px 14px rgba(255, 107, 107, 0.28);

  --radius:      22px;
  --radius-lg:   32px;
  --radius-pill: 999px;

  --maxw:   1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-sans:    "Quicksand", "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Quicksand", var(--font-sans);
  --font-mono:    "Quicksand", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-ar-body: "Readex Pro", var(--font-sans);
  --font-ar-disp: "Readex Pro", var(--font-ar-body);

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-soft: cubic-bezier(.65, .05, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
:lang(ar) body { font-family: var(--font-ar-body); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { padding-inline-start: 1.2em; }

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- pale organic background ---------- */
.mesh-bg {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.mesh-blob--fuchsia {
  width: 60vw; height: 60vw;
  top: -12vw; inset-inline-start: -14vw;
  background: radial-gradient(circle, var(--coral-soft) 0%, rgba(255, 180, 180, 0) 65%);
  border-radius: 62% 38% 58% 42% / 55% 48% 52% 45%;
  animation: blob-a 32s var(--ease-soft) infinite alternate;
}
.mesh-blob--cyan {
  width: 54vw; height: 54vw;
  top: 24vw; inset-inline-end: -18vw;
  background: radial-gradient(circle, var(--teal-soft) 0%, rgba(158, 231, 242, 0) 65%);
  border-radius: 45% 55% 42% 58% / 60% 40% 60% 40%;
  opacity: 0.5;
  animation: blob-b 36s var(--ease-soft) infinite alternate;
}
.mesh-blob--orange {
  width: 48vw; height: 48vw;
  bottom: -14vw; inset-inline-start: 22vw;
  background: radial-gradient(circle, var(--yellow-soft) 0%, rgba(253, 230, 138, 0) 65%);
  border-radius: 55% 45% 60% 40% / 48% 55% 45% 52%;
  opacity: 0.55;
  animation: blob-c 28s var(--ease-soft) infinite alternate;
}
.mesh-grain {
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 253, 245, 0.6), transparent 60%);
  pointer-events: none;
}

@keyframes blob-a {
  0%   { transform: translate3d(0, 0, 0)        scale(1)    rotate(0deg); }
  50%  { transform: translate3d(6vw, 4vw, 0)    scale(1.08) rotate(20deg); }
  100% { transform: translate3d(2vw, 8vw, 0)    scale(0.95) rotate(40deg); }
}
@keyframes blob-b {
  0%   { transform: translate3d(0, 0, 0)        scale(1)    rotate(0deg); }
  50%  { transform: translate3d(-6vw, -3vw, 0)  scale(1.06) rotate(-18deg); }
  100% { transform: translate3d(-2vw, 5vw, 0)   scale(0.94) rotate(-36deg); }
}
@keyframes blob-c {
  0%   { transform: translate3d(0, 0, 0)        scale(1)    rotate(0deg); }
  50%  { transform: translate3d(-4vw, -6vw, 0)  scale(1.1)  rotate(14deg); }
  100% { transform: translate3d(4vw, -2vw, 0)   scale(1)    rotate(28deg); }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 {
  font-family: var(--font-ar-disp);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 0 0 1.6em;
}
.kicker .dot {
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  border-radius: 52% 48% 55% 45% / 48% 52% 48% 52%;
  display: inline-block;
  flex: none;
  box-shadow: 0 0 14px rgba(255, 107, 107, 0.5);
  animation: wobble 6s var(--ease-soft) infinite alternate;
}
@keyframes wobble {
  0%   { border-radius: 52% 48% 55% 45% / 48% 52% 48% 52%; transform: rotate(0deg); }
  100% { border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%; transform: rotate(90deg); }
}
:lang(ar) .kicker { direction: ltr; }

.headline {
  font-size: clamp(2.6rem, 8.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.headline em {
  font-style: normal;
  background: linear-gradient(110deg, var(--coral) 0%, var(--yellow) 55%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  position: relative;
}
.headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 0.12em;
  background: var(--yellow);
  border-radius: 999px;
  opacity: 0.6;
  transform: scaleX(0.9);
  transform-origin: left;
}
:lang(ar) .headline { font-weight: 700; letter-spacing: 0; }
:lang(ar) .headline em { font-family: var(--font-ar-disp); }

.lede {
  font-size: 1.12rem;
  color: var(--fg-2);
  max-width: 58ch;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.7;
}
:lang(ar) .lede { font-weight: 500; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.section { padding-block: clamp(80px, 10vw, 150px); position: relative; }
.section-head { margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- wave dividers ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: clamp(60px, 8vw, 120px);
  margin: 0;
  pointer-events: none;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }
.wave-top    { margin-top: calc(-1 * clamp(60px, 8vw, 120px)); }
.wave-bottom { margin-bottom: calc(-1 * clamp(60px, 8vw, 120px)); }

.section-tint {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #FFF8F0 100%);
  position: relative;
}
.section-coral {
  background: linear-gradient(180deg, #FFF1EC 0%, #FFE8E8 100%);
}
.section-teal {
  background: linear-gradient(180deg, #E8FAFD 0%, #F0F9FF 100%);
}

/* reveal (inner) */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* legacy class — keep simple */
.liquid-section { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0;
  max-width: calc(var(--maxw) - 24px);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 245, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s var(--ease);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 16px 10px 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-block;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--coral), var(--yellow) 60%, var(--teal));
  border-radius: 62% 38% 55% 45% / 52% 48% 52% 48%;
  flex: none;
  position: relative;
  box-shadow: 0 0 14px rgba(255, 107, 107, 0.45);
  animation: wobble 5s var(--ease-soft) infinite alternate;
}
.brand-name {
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-weight: 700;
}

.primary-nav {
  display: flex; gap: 2px;
  margin-inline-start: auto;
  font-family: var(--font-sans);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.primary-nav a {
  padding: 10px 16px;
  color: var(--fg-2);
  border-radius: var(--radius-pill);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.primary-nav a:hover {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
}
.lang {
  padding: 6px 11px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}
.lang:hover:not(.is-active) { color: var(--coral); }

.skip-link { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus {
  position: fixed; inset-inline-start: 12px; top: 12px; width: auto; height: auto;
  background: #fff; padding: 10px 14px; border-radius: var(--radius-pill); z-index: 100;
  box-shadow: var(--shadow-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
:lang(ar) .btn { font-family: var(--font-ar-disp); font-weight: 600; letter-spacing: 0; }

.btn-primary {
  background: linear-gradient(120deg, var(--coral) 0%, #FF8A5B 50%, var(--yellow) 100%);
  color: #fff;
  font-weight: 700;
  padding: 18px 36px;
  font-size: 1.02rem;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 44px rgba(251, 191, 36, 0.4), 0 10px 20px rgba(255, 107, 107, 0.35);
}
.btn-primary.btn-lg {
  padding: 22px 44px;
  font-size: 1.1rem;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover {
  background: var(--card-tint);
  color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.15);
}

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: 0.01em;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
  border-radius: 999px;
  transform: scaleX(0.3); transform-origin: left;
  transition: transform .35s var(--ease);
}
.btn-link:hover { color: var(--coral); }
.btn-link:hover::after { transform: scaleX(1); }

.cta-nav { padding: 12px 22px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(100px, 14vw, 180px) clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }
.hero .kicker { margin-bottom: 1.4em; }
.hero .headline { margin-bottom: 32px; max-width: 18ch; }
.hero .lede { margin-bottom: 40px; font-size: 1.18rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px 48px;
  padding: 26px 30px;
  margin-top: 48px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--muted);
  max-width: 640px;
  position: relative;
}
.hero-meta::before {
  content: "";
  position: absolute;
  inset-inline-start: -14px; top: -14px;
  width: 32px; height: 32px;
  background: var(--yellow);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  opacity: 0.8;
  z-index: -1;
}
.hero-meta div { display: grid; gap: 4px; }
.hero-meta .k {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-meta .v { color: var(--ink); font-weight: 700; }
.hero-meta .v.g {
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* hero illustration — team + mockups */
.hero-illus {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline-start: auto;
}
.hero-illus .blob-photo {
  position: absolute;
  width: 68%;
  aspect-ratio: 4 / 5;
  top: 6%;
  inset-inline-start: 6%;
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.85), rgba(251, 191, 36, 0.8)),
    url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=900&auto=format&fit=crop") center/cover;
  background-blend-mode: soft-light;
  -webkit-mask: radial-gradient(circle, #000 98%, transparent 100%);
  mask: radial-gradient(circle, #000 98%, transparent 100%);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  box-shadow: 0 24px 48px rgba(255, 107, 107, 0.28);
  animation: wobble 9s var(--ease-soft) infinite alternate;
}
.hero-illus .blob-mockup {
  position: absolute;
  width: 52%;
  aspect-ratio: 4 / 5;
  bottom: 4%;
  inset-inline-end: 2%;
  background: linear-gradient(150deg, #fff 0%, #F0F9FF 100%);
  border-radius: 48% 52% 58% 42% / 55% 45% 60% 40%;
  box-shadow: 0 20px 42px rgba(6, 182, 212, 0.25);
  overflow: hidden;
  padding: 22px;
  animation: wobble 11s var(--ease-soft) infinite alternate-reverse;
}
.hero-illus .blob-mockup .mock-bar {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  margin-bottom: 12px;
  width: 70%;
}
.hero-illus .blob-mockup .mock-line {
  height: 8px; border-radius: 999px;
  background: #E5E7EB;
  margin-bottom: 8px;
}
.hero-illus .blob-mockup .mock-line.s { width: 85%; }
.hero-illus .blob-mockup .mock-line.m { width: 60%; }
.hero-illus .blob-mockup .mock-line.l { width: 92%; background: var(--yellow-soft); }
.hero-illus .blob-mockup .mock-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  background: var(--coral);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .08em;
}
.hero-illus .blob-dot {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  animation: wobble 7s var(--ease-soft) infinite alternate;
}
.hero-illus .blob-dot.d1 {
  width: 18%; aspect-ratio: 1;
  top: -2%; inset-inline-end: 14%;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}
.hero-illus .blob-dot.d2 {
  width: 12%; aspect-ratio: 1;
  bottom: 22%; inset-inline-start: -2%;
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.4);
}

/* ---------- page head ---------- */
.page-head {
  padding-block: clamp(90px, 12vw, 160px) clamp(36px, 5vw, 72px);
}

/* ---------- cards grid ---------- */
.cards-grid {
  display: grid;
  gap: 22px;
  background: transparent;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card-service { padding-top: 60px; }
.card-service::before {
  content: attr(data-num);
  position: absolute;
  inset-block-start: 26px;
  inset-inline-start: 36px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  background: linear-gradient(120deg, var(--coral), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.18), rgba(251, 191, 36, 0.22));
  color: var(--coral);
  transition: transform .4s var(--ease-soft), border-radius .8s var(--ease-soft);
}
.card:hover .card-icon {
  transform: rotate(-8deg);
  border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%;
}
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card-icon-lg { width: 64px; height: 64px; }
.card-icon-lg svg { width: 30px; height: 30px; }
.card-service h3 { margin-bottom: 10px; }

.card-service-lg { padding: 44px; padding-top: 44px; }
.card-service-lg::before { content: none; }
.card-service-lg h2 { font-size: 1.6rem; margin-bottom: 14px; font-weight: 700; }
.card-service-lg .btn { margin-top: 20px; }

/* Project card — blob image mask */
.card-project { padding: 0; background: transparent; box-shadow: none; }
.card-project:hover { background: transparent; transform: none; box-shadow: none; }
.card-project .card-link { display: block; color: inherit; }
.card-project .card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border-radius: 58% 42% 52% 48% / 48% 55% 45% 52%;
  background: linear-gradient(135deg, var(--coral-soft), var(--teal-soft));
  box-shadow: 0 18px 40px rgba(255, 107, 107, 0.18);
  transition: border-radius 1.1s var(--ease-soft), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card-project:hover .card-thumb {
  border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%;
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(255, 107, 107, 0.26);
}
.card-project .card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card-project:hover .card-thumb img { transform: scale(1.06); }
.thumb-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.5), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.5), transparent 55%),
    linear-gradient(135deg, var(--coral-soft), var(--yellow-soft) 60%, var(--teal-soft));
  position: relative;
  overflow: hidden;
}
.thumb-placeholder::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.5), transparent 55%);
  filter: blur(30px);
}
.thumb-placeholder span {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 700;
  color: #fff; position: relative; z-index: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(31, 41, 55, 0.2);
}
.card-project .card-body { padding: 22px 10px 4px; }
.card-project h3 { margin-bottom: 6px; font-weight: 700; }
.card-project .card-body .muted { font-size: .94rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 16px;
  background: #fff;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: all .25s var(--ease);
}
.chip:hover {
  color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.18);
}
.chip.is-active {
  background: linear-gradient(120deg, var(--coral), var(--yellow));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}
.chip-static { pointer-events: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 52px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* ---------- process steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.steps li {
  padding: 36px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.steps li::after {
  content: "";
  position: absolute;
  top: -10px; inset-inline-end: -10px;
  width: 28px; height: 28px;
  background: var(--teal);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  opacity: 0.85;
}
.steps li:nth-child(2n)::after { background: var(--yellow); }
.steps li:nth-child(3n)::after { background: var(--coral); }
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--coral), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  letter-spacing: .16em;
}
.steps-inline {
  list-style: none; padding: 0;
  display: grid; gap: 16px;
  font-family: var(--font-sans); font-size: .98rem;
  font-weight: 500;
}
.steps-inline strong {
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  margin: clamp(60px, 8vw, 120px) auto;
  max-width: calc(var(--maxw) - 24px);
  border-radius: var(--radius-lg);
  padding: clamp(70px, 9vw, 130px) clamp(30px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8E8 50%, #E8FAFD 100%);
  box-shadow: var(--shadow-lift);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 40%;
  aspect-ratio: 1;
  top: -18%; inset-inline-start: -10%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 65%);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(30px);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 50%;
  aspect-ratio: 1;
  bottom: -24%; inset-inline-end: -12%;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(40px);
  z-index: -1;
}
.cta-inner { display: grid; gap: 24px; justify-items: center; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band h2 { max-width: 20ch; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- about / contact ---------- */
.contact-section { padding-block: clamp(80px, 10vw, 150px); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start;
  padding: clamp(32px, 4vw, 56px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  top: -60px; inset-inline-end: -60px;
  background: var(--yellow-soft);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  opacity: 0.6;
  z-index: 0;
}
.contact-wrap > * { position: relative; z-index: 1; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 36px; } }
.contact-intro h2 { margin-bottom: 20px; font-weight: 700; letter-spacing: -0.02em; }
.contact-list {
  list-style: none; padding: 0;
  display: grid; gap: 12px; margin-top: 26px;
  font-family: var(--font-sans); font-size: 1rem;
  font-weight: 600;
}
.contact-list a {
  color: var(--ink);
  padding: 10px 0;
  transition: color .25s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
}
.contact-list a:hover { color: var(--coral); }

.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.field input,
.field select,
.field textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-soft);
  border: 2px solid transparent;
  color: var(--ink);
  padding: 14px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: 100%;
  border-radius: 18px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}
.field .errorlist,
.contact-form .errorlist {
  list-style: none; padding: 0; margin: 4px 0 0;
  color: #E11D48; font-size: .84rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.hp { position: absolute; left: -10000px; }

.alert {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  font-family: var(--font-sans);
  font-size: .94rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.alert-success {
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.15), rgba(251, 191, 36, 0.18));
  color: var(--ink);
}
.alert-error {
  background: rgba(225, 29, 72, 0.1);
  color: #BE123C;
}

/* ---------- stack list ---------- */
.stack-list {
  list-style: none; padding: 0;
  display: grid; gap: 10px;
  font-family: var(--font-sans); font-size: .98rem;
  font-weight: 500;
}
.stack-list li {
  padding: 14px 20px;
  color: var(--fg-2);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 14px;
  transition: transform .3s var(--ease);
}
.stack-list li:hover { transform: translateX(6px); }
.stack-list li::before {
  content: "";
  width: 12px; height: 12px;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  flex: none;
  animation: wobble 5s var(--ease-soft) infinite alternate;
}

/* ---------- team illustration (about) ---------- */
.team-illus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.team-blob {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  box-shadow: var(--shadow-soft);
  transition: border-radius 1.2s var(--ease-soft), transform .4s var(--ease);
  position: relative;
}
.team-blob:nth-child(2n) { border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%; }
.team-blob:nth-child(3n) { border-radius: 50% 50% 42% 58% / 58% 42% 55% 45%; }
.team-blob:hover { transform: translateY(-4px) rotate(-3deg); border-radius: 50%; }
.team-blob.t1 { background-image: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(251, 191, 36, 0.3)), url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=500&auto=format&fit=crop"); }
.team-blob.t2 { background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(251, 191, 36, 0.3)), url("https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=500&auto=format&fit=crop"); }
.team-blob.t3 { background-image: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(6, 182, 212, 0.3)), url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=500&auto=format&fit=crop"); }

/* ---------- project detail ---------- */
.project-hero {
  margin: 0 0 56px;
  overflow: hidden;
  border-radius: 48% 52% 55% 45% / 42% 55% 45% 58%;
  box-shadow: var(--shadow-lift);
  transition: border-radius 1.2s var(--ease-soft);
}
.project-hero:hover { border-radius: 55% 45% 48% 52% / 50% 50% 50% 50%; }
.project-hero img { width: 100%; height: auto; display: block; }
.prose p {
  font-size: 1.14rem; max-width: 70ch;
  color: var(--fg-2); font-weight: 500; line-height: 1.8;
  letter-spacing: 0.005em;
}

/* ---------- footer ---------- */
.site-footer {
  margin: clamp(40px, 6vw, 80px) auto 24px;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px) 28px;
  max-width: calc(var(--maxw) - 24px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  bottom: -80px; inset-inline-start: -70px;
  background: var(--coral-soft);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  opacity: 0.4;
  z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.5fr 1fr 1fr;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h4 {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; color: var(--ink); text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-grid a {
  color: var(--fg-2); font-family: var(--font-sans); font-size: .98rem; font-weight: 500;
  transition: color .25s var(--ease);
}
.footer-grid a:hover { color: var(--coral); }
.footer-grid p { color: var(--muted); font-size: .96rem; max-width: 34ch; margin-top: 10px; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}
.footer-bottom .flag-rule {
  display: inline-flex; align-items: center; gap: 0;
  height: 4px; width: 40px; overflow: hidden;
  margin-inline-end: 12px; border-radius: 999px;
  opacity: .9;
}
.footer-bottom .flag-rule::before {
  content: "";
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--coral) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--teal) 66.66% 100%);
}

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .site-header { top: 10px; margin: 10px auto 0; }
  .primary-nav { display: none; }
  .cta-nav { display: none; }
  .hero-meta {
    grid-template-columns: repeat(2, auto);
    gap: 20px 36px;
    padding: 22px 24px;
  }
}

/* ---------- a11y ---------- */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .mesh-blob { animation: none; }
}

/* ---------- RTL tweaks ---------- */
[dir="rtl"] .section-head.split { flex-direction: row-reverse; }
[dir="rtl"] .hero-meta { grid-auto-flow: column; }
[dir="rtl"] .btn-link::after { transform-origin: right; }
[dir="rtl"] .hero-illus { margin-inline-start: 0; margin-inline-end: auto; }

/* ---------- card "Live ↗" pill ---------- */
.card-project .card-live {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font: 600 12px/1 "Sora", system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(31, 41, 55, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.card-project .card-live:hover,
.card-project .card-live:focus-visible {
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 107, 107, 0.38);
}
