/* =========================================================================
   خشنود | Khoshnud.com — Design System v3  (websima-inspired)
   Navy + purple waves + coral accent, curved nav, wavy dividers,
   Farhang accent headlines. RTL, Persian-first.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "Farhang"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/farhang-400.woff2") format("woff2"); }
@font-face { font-family: "Farhang"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/farhang-500.woff2") format("woff2"); }
@font-face { font-family: "Farhang"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/farhang-600.woff2") format("woff2"); }
@font-face { font-family: "Farhang"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/farhang-700.woff2") format("woff2"); }
@font-face { font-family: "Farhang"; font-style: normal; font-display: swap; font-weight: 800; src: url("../fonts/farhang-800.woff2") format("woff2"); }
@font-face { font-family: "Farhang"; font-style: normal; font-display: swap; font-weight: 900; src: url("../fonts/farhang-900.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #090b34;
  --navy-900: #0e1046;
  --navy-850: #141663;
  --navy-800: #1b1f7a;
  --navy-700: #262a9c;

  --indigo: #3a3fb0;
  --purple: #7b6cf0;
  --purple-2: #9a7cf6;
  --purple-bright: #b9a3ff;

  --coral: #ef653e;
  --coral-2: #ff7d4f;
  --coral-soft: #ff9d78;

  --white: #ffffff;
  --paper: #f5f6fd;
  --paper-2: #eceefb;

  --ink: #14163f;
  --ink-soft: #585d90;

  --paper-on-navy: #eef0ff;
  --muted: #a6abe0;

  --line-light: rgba(20, 22, 63, 0.1);
  --line-navy: rgba(255, 255, 255, 0.12);

  --font: "Farhang", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --grad-purple: linear-gradient(100deg, #9a7cf6, #3a3fb0);
  --grad-coral: linear-gradient(100deg, #ff8a5c, #ef653e);
  --grad-hero: linear-gradient(120deg, #1b1f7a 0%, #3a2a6e 55%, #7a3f5e 100%);

  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 60px);
  --nav-h: 84px;

  --r: 22px;
  --r-lg: 34px;
  --r-xl: 46px;
  --pill: 999px;

  --shadow-1: 0 20px 50px -24px rgba(14, 16, 70, 0.5);
  --shadow-2: 0 40px 90px -40px rgba(9, 11, 52, 0.55);
  --shadow-coral: 0 18px 44px -16px rgba(239, 101, 62, 0.6);
  --shadow-navy: 0 18px 44px -16px rgba(38, 42, 156, 0.55);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--paper-on-navy);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--coral-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Section framing ---------- */
.sec { position: relative; }
.sec--navy { background: var(--navy-900); color: var(--paper-on-navy); }
.sec--navy-d { background: var(--navy-950); color: var(--paper-on-navy); }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--white { background: var(--white); color: var(--ink); }
.pad { padding-block: clamp(72px, 10vw, 140px); }
.pad-sm { padding-block: clamp(46px, 6vw, 80px); }

/* accent headlines (Farhang, not decorative script) */
.hand {
  font-family: var(--font);
  font-style: normal;
  font-weight: 800;
  color: var(--coral);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.hand-xl { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; }
.hand-lg { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }

.num-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* headings */
.title {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  max-width: 58ch;
}
.sec--paper .lead, .sec--white .lead { color: var(--ink-soft); }
.head-c { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 62px); }
.coral-text { color: var(--coral); }
.purple-text { color: var(--purple-2); }
.grad-text {
  background: var(--grad-coral);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kick {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--purple-2);
  background: rgba(123, 108, 240, 0.12);
  padding: 8px 16px; border-radius: var(--pill);
}
.sec--paper .kick, .sec--white .kick { color: var(--indigo); background: rgba(58, 63, 176, 0.09); }
.kick.coral { color: var(--coral); background: rgba(239, 101, 62, 0.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; padding: 14px 28px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-3px); }
.btn--coral { background: var(--grad-coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn--navy { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-navy); }
.btn--purple { background: var(--grad-purple); color: #fff; box-shadow: var(--shadow-navy); }
.btn--ghost { border-color: var(--line-navy); color: var(--paper-on-navy); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: var(--coral); background: rgba(239, 101, 62, 0.1); }
.sec--paper .btn--ghost, .sec--white .btn--ghost { color: var(--ink); border-color: var(--line-light); }
.sec--paper .btn--ghost:hover, .sec--white .btn--ghost:hover { border-color: var(--coral); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Canvas waves ---------- */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(90px, 11vw, 165px); z-index: 3; pointer-events: none; }
.wave canvas { display: block; width: 100%; height: 100%; }

/* section background video */
.sec__bgvideo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sec__bgvideo video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.sec__bgvideo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(9, 11, 52, 0.35) 42%, transparent 72%); pointer-events: none; }
#work.sec--navy { background: var(--navy-950); }
#work .wrap { position: relative; z-index: 1; }

/* ---------- Curved Nav ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s;
}
.nav.scrolled { height: 78px; }
.nav__curve {
  position: absolute; inset-block-start: 0; inset-inline: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.nav__curve path { fill: #ffffff; }
.nav.scrolled .nav__curve { opacity: 1; filter: drop-shadow(0 12px 34px rgba(9, 11, 52, 0.16)); }
.nav__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.nav.scrolled .brand { transform: none; transition: transform 0.4s; }
.nav__side { display: flex; align-items: center; gap: 4px; }
.nav__side--start { justify-content: flex-end; padding-inline-end: clamp(6px, 2vw, 26px); }
.nav__side--end { justify-content: flex-start; padding-inline-start: clamp(6px, 2vw, 26px); gap: 10px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--pill);
  font-size: 0.97rem; font-weight: 600; color: var(--paper-on-navy); opacity: 0.85;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.nav__links a svg { width: 16px; height: 16px; opacity: 0.7; }
.nav__links a:hover { opacity: 1; color: var(--coral-2); background: rgba(255, 255, 255, 0.06); }
.nav.scrolled .nav__links a { color: var(--ink); }
.nav.scrolled .nav__links a:hover { color: var(--coral); background: rgba(20, 22, 63, 0.05); }

/* center brand with notch */
.brand {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0 20px;
}
.brand__mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent;
  transition: transform 0.3s;
}
.brand__mark img { width: 48px; height: 48px; }
.nav.scrolled .brand__mark { box-shadow: none; }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__name { font-size: 1.04rem; font-weight: 800; letter-spacing: 0.02em; color: var(--paper-on-navy); }
.brand__name small { display:block; font-size: .5rem; letter-spacing:.28em; opacity:.6; direction:ltr; margin-top:-2px; }
.nav.scrolled .brand__name { color: var(--ink); }

.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line-navy); color: var(--paper-on-navy); align-items: center; justify-content: center; }
.nav.scrolled .nav__toggle { color: var(--ink); border-color: var(--line-light); }
.nav__toggle svg { width: 24px; height: 24px; }
header.nav .nav__cta,
header.nav .nav__cta-desktop,
header.nav .btn--coral,
.drawer .btn--coral { display: none !important; }

/* drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: linear-gradient(160deg, var(--navy-850), var(--navy-950));
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-102%); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.drawer.open { transform: translateY(0); }
.drawer a { font-size: 1.4rem; font-weight: 800; padding: 14px 4px; border-bottom: 1px solid var(--line-navy); display: flex; justify-content: space-between; align-items: center; color: #fff; }
.drawer a .num { color: var(--coral); font-size: 0.9rem; }
.drawer .btn { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: calc(var(--nav-h) + 30px) 120px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(9,11,52,0.92) 6%, rgba(14,16,70,0.72) 42%, rgba(122,63,94,0.45) 100%), linear-gradient(0deg, var(--navy-900) 1%, transparent 40%); }
.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.hero__blob--1 { width: 420px; height: 420px; background: #7b6cf0; top: -120px; inset-inline-start: -120px; }
.hero__blob--2 { width: 360px; height: 360px; background: #ef653e; bottom: -120px; inset-inline-end: -60px; opacity: 0.35; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: #fff; padding: 9px 18px; border: 1px solid var(--line-navy); border-radius: var(--pill); background: rgba(9, 11, 52, 0.4); backdrop-filter: blur(6px); }
.hero__badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: #4ce0a0; box-shadow: 0 0 10px #4ce0a0; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__hand { margin-top: 0; }
.typewriter { display: inline-flex; align-items: center; min-height: 1.35em; }
.typewriter__cursor {
  width: 3px; height: 0.82em; margin-inline-start: 4px; flex-shrink: 0;
  background: var(--coral-2); border-radius: 2px;
  animation: type-cursor 0.9s step-end infinite;
}
@keyframes type-cursor { 50% { opacity: 0; } }
.hero__title { font-size: clamp(2.1rem, 5.6vw, 4.3rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; max-width: 20ch; }
.hero__sub { margin-top: 22px; color: #d5d8f5; font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 50ch; }
.hero__sub .name { color: var(--coral-2); font-weight: 800; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.help-bubble {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.08); border: 1.5px solid var(--line-navy);
  padding: 6px 22px 6px 6px; border-radius: var(--pill);
  backdrop-filter: blur(8px); flex-shrink: 0;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.help-bubble:hover { transform: translateY(-3px); border-color: var(--coral); background: rgba(239, 101, 62, 0.12); }
.help-bubble span { color: #fff; font-size: 0.97rem; font-weight: 600; white-space: nowrap; }
.help-bubble .av { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--coral-2); flex-shrink: 0; }
.help-bubble .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.help-bubble .av::after { content: ""; position: absolute; inset-block-end: 2px; inset-inline-end: 2px; width: 12px; height: 12px; border-radius: 50%; background: #4ce0a0; border: 2px solid var(--navy-900); }

/* floating CTA bar */
.cta-bar { position: fixed; inset-block-end: 22px; inset-inline: 0; z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.cta-bar__in { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; background: rgba(14, 16, 70, 0.9); border: 1px solid var(--line-navy); padding: 8px 8px 8px 22px; border-radius: var(--pill); backdrop-filter: blur(12px); box-shadow: var(--shadow-2); }
.cta-bar__phone { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; }
.cta-bar__phone svg { width: 18px; height: 18px; color: var(--coral-2); }
@media (max-width: 640px){ .cta-bar__phone .num-ltr { display: none; } }

/* ---------- Intro / brand ---------- */
.intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.intro__logo { font-family: var(--font); font-weight: 900; font-style: normal; font-size: clamp(3rem, 8vw, 5.5rem); background: var(--grad-coral); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.intro__vec { position: relative; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { position: relative; padding: 32px 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-1); overflow: hidden; transition: transform 0.35s, box-shadow 0.35s; }
.sec--paper .svc { background: #fff; }
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); }
.svc__ico { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; background: var(--grad-purple); }
.svc__ico svg { width: 32px; height: 32px; }
.svc:nth-child(2) .svc__ico { background: var(--grad-coral); }
.svc:nth-child(3) .svc__ico { background: linear-gradient(100deg,#3ac1a0,#1f8f8f); }
.svc:nth-child(4) .svc__ico { background: linear-gradient(100deg,#e15b9c,#9a4bd0); }
.svc:nth-child(5) .svc__ico { background: linear-gradient(100deg,#5aa7ff,#3a52d0); }
.svc:nth-child(6) .svc__ico { background: linear-gradient(100deg,#f0a63e,#e07a2e); }
.svc h3 { font-size: 1.24rem; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.svc p { color: var(--ink-soft); font-size: 0.98rem; }
.svc__no { position: absolute; inset-block-start: 20px; inset-inline-end: 24px; font-size: 2.6rem; font-weight: 900; color: rgba(20,22,63,0.05); font-family: var(--font); }

/* ---------- Portfolio ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab { padding: 11px 22px; border-radius: var(--pill); border: 1px solid var(--line-navy); color: var(--paper-on-navy); font-weight: 600; font-size: 0.95rem; transition: all 0.25s; }
.tab.active, .tab:hover { background: var(--grad-purple); border-color: transparent; color: #fff; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 26px 24px 28px; color: #fff; display: flex; flex-direction: column; min-height: 400px; transition: transform 0.4s, box-shadow 0.4s; box-shadow: var(--shadow-2); }
.pcard:hover { transform: translateY(-10px); }
.pcard--1 { background: linear-gradient(160deg, #2b3080, #171a5e); }
.pcard--2 { background: linear-gradient(160deg, #e86a43, #b83c5e); }
.pcard--3 { background: linear-gradient(160deg, #3aa88f, #1f6a7e); }
.pcard--more { background: linear-gradient(160deg, #6d5bd0, #3a2a7e); border: 1px dashed rgba(255,255,255,0.3); }
.pcard__ribbon { position: absolute; inset-block-start: 18px; inset-inline-start: 18px; z-index: 3; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; padding: 6px 13px; border-radius: var(--pill); background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); display: inline-flex; align-items: center; gap: 6px; }
.pcard__ribbon::before { content:""; width:7px; height:7px; border-radius:50%; background:#4ce0a0; box-shadow:0 0 8px #4ce0a0; }
.pcard__shot { border-radius: 18px 18px 6px 6px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 16/11; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.15); }
.pcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s; }
.pcard:hover .pcard__shot img { transform: scale(1.06); }
.pcard h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.pcard__url { direction: ltr; text-align: right; font-size: 0.8rem; opacity: 0.75; margin-bottom: 12px; }
.pcard p { font-size: 0.95rem; opacity: 0.9; flex: 1; }
.pcard__go { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; align-self: flex-start; padding: 10px 20px; border-radius: var(--pill); background: rgba(255,255,255,0.15); transition: gap 0.25s, background 0.25s; }
.pcard__go svg { width: 18px; height: 18px; }
.pcard:hover .pcard__go { gap: 14px; background: rgba(255,255,255,0.25); }
.pcard--more .mp { display: grid; place-items: center; flex: 1; text-align: center; gap: 16px; }
.pcard--more .mp .lk { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; }
.pcard--more .mp .lk svg { width: 34px; height: 34px; }

/* ---------- About / CEO ---------- */
.ceo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 5vw, 76px); align-items: center; }
.ceo__media { position: relative; display: flex; justify-content: center; }
.ceo__blob { position: absolute; inset: 0; margin: auto; width: 96%; height: 96%; background: var(--grad-purple); border-radius: 46% 54% 55% 45% / 52% 44% 56% 48%; z-index: 0; animation: blobMorph 12s ease-in-out infinite; }
@keyframes blobMorph { 0%,100%{border-radius:46% 54% 55% 45% / 52% 44% 56% 48%} 50%{border-radius:56% 44% 43% 57% / 44% 56% 44% 56%} }
.ceo__photo { position: relative; z-index: 1; width: 90%; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); align-self: end; }
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 14%; }
.ceo__chip { position: absolute; z-index: 2; inset-block-end: 22px; inset-inline-start: 0; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: var(--pill); box-shadow: var(--shadow-1); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.ceo__chip .d { width: 10px; height: 10px; border-radius: 50%; background: #4ce0a0; }
.ceo__name { font-size: 1.5rem; font-weight: 800; margin: 6px 0 2px; }
.ceo__role { color: var(--coral); font-weight: 700; direction: ltr; text-align: right; margin-bottom: 18px; }
.sign { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.sign b { font-size: 1.2rem; }
.sign__line { height: 2px; flex: 1; background: linear-gradient(90deg, var(--coral), transparent); border-radius: 2px; }
.prose p + p { margin-top: 14px; }
.prose strong { font-weight: 800; }
.sec--paper .prose, .sec--white .prose { color: #3a3f68; }
.sec--paper .prose strong, .sec--white .prose strong { color: var(--ink); }
.sec--navy .prose, .sec--navy-d .prose { color: #cfd3f2; }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 50px); align-items: stretch; }
.showcase__photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); position: relative; min-height: 280px; }
.showcase__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.showcase__photo--desk img { object-position: center center; }
.showcase__photo figcaption { position: absolute; inset-block-end: 0; inset-inline: 0; padding: 26px 20px 16px; background: linear-gradient(0deg, rgba(9,11,52,0.85), transparent); font-weight: 700; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 12px; }
.stat b { display: block; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; background: var(--grad-coral); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.95rem; margin-top: 8px; display: block; }
.sec--paper .stat span { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.phone-big { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 900; color: #fff; display: inline-flex; align-items: center; gap: 14px; }
.phone-big svg { width: 32px; height: 32px; color: var(--coral-2); }
.cmethods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmethod { display: flex; align-items: center; gap: 13px; padding: 18px; border-radius: var(--r); background: rgba(255,255,255,0.05); border: 1px solid var(--line-navy); transition: transform 0.25s, background 0.25s, border-color 0.25s; }
.cmethod:hover { transform: translateY(-4px); background: rgba(239,101,62,0.12); border-color: var(--coral); }
.cmethod .cm-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(123,108,240,0.2); color: var(--purple-bright); flex-shrink: 0; }
.cmethod .cm-ico svg { width: 24px; height: 24px; }
.cmethod b { display: block; }
.cmethod .num-ltr { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--navy-950); color: var(--paper-on-navy); padding-block: clamp(90px, 10vw, 130px) 34px; }
.footer__logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; }
.footer__logo .m { width: 56px; height: 56px; display: grid; place-items: center; background: transparent; box-shadow: none; }
.footer__logo .m img { width: 56px; height: 56px; }
.footer__logo b { font-size: 1.4rem; font-weight: 800; }
.footer__logo small { font-size: 0.62rem; letter-spacing: 0.28em; opacity: 0.6; direction: ltr; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.footer__about { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.footer h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 16px; }
.footer__links a { display: flex; align-items: center; gap: 9px; color: var(--muted); padding: 6px 0; transition: color 0.2s, padding-inline-start 0.2s; }
.footer__links a:hover { color: var(--coral-2); padding-inline-start: 6px; }
.footer__watermark { position: absolute; inset-block-start: 40px; inset-inline-start: 4%; font-family: var(--font); font-weight: 900; font-style: normal; font-size: clamp(4rem, 12vw, 9rem); color: rgba(255,255,255,0.03); pointer-events: none; line-height: 1; }
.footer__bottom { border-top: 1px solid var(--line-navy); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-navy); display: grid; place-items: center; color: var(--paper-on-navy); transition: all 0.2s; }
.socials a:hover { color: #fff; background: var(--grad-coral); border-color: transparent; transform: translateY(-3px); }
.socials a svg { width: 19px; height: 19px; }

/* =========================================================================
   PROJECT DETAIL PAGES
   ========================================================================= */
.crumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.crumb a:hover { color: var(--coral-2); }
.crumb .sep { opacity: 0.5; }
.crumb .cur { color: var(--paper-on-navy); }

.phero { position: relative; padding-block: calc(var(--nav-h) + 44px) 40px; overflow: hidden; }
.phero__blob { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(80px); background: #7b6cf0; opacity: 0.3; top: -140px; inset-inline-start: -100px; z-index: 0; }
.phero .wrap { position: relative; z-index: 1; }
.phero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; margin-top: 26px; }
.phero__title { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 900; line-height: 1.14; margin: 14px 0; }
.phero__sub { color: #d5d8f5; font-size: 1.1rem; max-width: 52ch; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 30px; }
.phero__meta .m b { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
.phero__meta .m span { font-weight: 700; font-size: 1.02rem; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mock { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-2); background: var(--navy-850); border: 1px solid var(--line-navy); }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--line-navy); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: #47508e; }
.mock__dots i:nth-child(1){ background:#ef653e } .mock__dots i:nth-child(2){ background:#f0a63e } .mock__dots i:nth-child(3){ background:#4ce0a0 }
.mock__url { flex: 1; text-align: center; font-size: 0.78rem; color: var(--muted); direction: ltr; background: rgba(0,0,0,0.25); padding: 5px 12px; border-radius: var(--pill); max-width: 320px; margin-inline: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__img { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-800); }
.mock__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.block-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.block-title .bt-line { width: 34px; height: 4px; border-radius: 4px; background: var(--grad-coral); }
.feature-list { display: grid; gap: 15px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(123,108,240,0.16); color: var(--purple-2); margin-top: 3px; }
.sec--paper .feature-list .fi, .sec--white .feature-list .fi { background: rgba(58,63,176,0.1); color: var(--indigo); }
.feature-list .fi svg { width: 17px; height: 17px; }
.feature-list b { font-weight: 700; }
.feature-list p { color: var(--ink-soft); font-size: 0.95rem; }
.sec--navy .feature-list p, .sec--navy-d .feature-list p { color: var(--muted); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.shot { cursor: zoom-in; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); background: var(--navy-800); transition: transform 0.3s; }
.shot:hover { transform: translateY(-5px); }
.shot img { width: 100%; display: block; }
.shot--phone { max-width: 260px; margin-inline: auto; border-radius: 26px; padding: 8px; background: var(--navy-950); }
.shot--phone img { border-radius: 18px; }

.grid-cards { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.challenge { border-radius: var(--r-lg); padding: 28px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-navy); }
.sec--paper .challenge, .sec--white .challenge { background: #fff; border-color: var(--line-light); box-shadow: var(--shadow-1); }
.challenge h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.challenge h3 .ch-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-coral); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.challenge h3 .ch-ico svg { width: 22px; height: 22px; }
.challenge p { color: var(--muted); font-size: 0.97rem; }
.sec--paper .challenge p, .sec--white .challenge p { color: var(--ink-soft); }
.challenge .sol { margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--line-navy); display: flex; gap: 10px; align-items: flex-start; }
.sec--paper .challenge .sol, .sec--white .challenge .sol { border-color: var(--line-light); }
.challenge .sol .tick { color: #3ac18f; flex-shrink: 0; margin-top: 3px; }
.challenge .sol .tick svg { width: 18px; height: 18px; }
.challenge .sol p { color: inherit; font-weight: 500; font-size: 0.95rem; }

.techgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border-radius: var(--r-lg); padding: 26px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-navy); transition: transform 0.3s, box-shadow 0.3s; }
.sec--paper .card, .sec--white .card { background: #fff; border-color: var(--line-light); box-shadow: var(--shadow-1); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 14px; color: var(--coral); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.82rem; font-weight: 600; padding: 6px 13px; border-radius: var(--pill); border: 1px solid var(--line-navy); color: var(--muted); }
.sec--paper .tag, .sec--white .tag { border-color: var(--line-light); color: var(--ink-soft); }

.stats-box { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-navy); }
.stats-box .stat { padding: 34px 14px; border-inline-start: 1px solid var(--line-navy); }
.stats-box .stat:first-child { border-inline-start: 0; }

.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); background: var(--grad-hero); text-align: center; }
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }

.pagernav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.pagernav a { display: inline-flex; align-items: center; gap: 12px; padding: 18px 24px; border-radius: var(--r); border: 1px solid var(--line-navy); transition: border-color 0.25s, transform 0.25s; }
.pagernav a:hover { border-color: var(--coral); transform: translateY(-3px); }
.pagernav small { display: block; color: var(--muted); font-size: 0.78rem; }
.pagernav b { font-weight: 800; }

/* section headers for project pages */
.head { margin-bottom: clamp(34px, 5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.head--center { align-items: center; text-align: center; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; font-size:0.9rem; font-weight:700; color: var(--purple-2); background: rgba(123,108,240,0.12); padding: 8px 16px; border-radius: var(--pill); align-self: flex-start; }
.head--center .eyebrow { align-self: center; }
.sec--paper .eyebrow, .sec--white .eyebrow { color: var(--indigo); background: rgba(58,63,176,0.09); }
.h-title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.h-lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.sec--paper .h-lead, .sec--white .h-lead { color: var(--ink-soft); }
.gold-text, .emerald-text { color: var(--coral); }
.sec--paper .emerald-text, .sec--white .emerald-text { color: var(--indigo); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,8,40,0.94); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); box-shadow: var(--shadow-2); }
.lightbox__close { position: absolute; inset-block-start: 24px; inset-inline-end: 24px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-navy); color: #fff; display: grid; place-items: center; }
.lightbox__close svg { width: 26px; height: 26px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2,0.7,0.2,1), transform 0.8s cubic-bezier(0.2,0.7,0.2,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Compatibility (project detail pages) ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(46px, 6vw, 82px); }
.section--cream { background: var(--paper); color: var(--ink); }
.section--ink-2 { background: var(--navy-950); color: var(--paper-on-navy); }
.hero__glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(80px); background: #7b6cf0; opacity: 0.28; top: -140px; inset-inline-start: -100px; z-index: 0; }
.phero .hero__glow { z-index: 0; }
.section--cream .lead, .section--cream .h-lead { color: var(--ink-soft); }
.section--cream .eyebrow { color: var(--indigo); background: rgba(58, 63, 176, 0.09); }
.section--cream .prose { color: #3a3f68; }
.section--cream .prose strong { color: var(--ink); }
.section--cream .feature-list .fi { background: rgba(58, 63, 176, 0.1); color: var(--indigo); }
.section--cream .feature-list p { color: var(--ink-soft); }
.section--cream .challenge { background: #fff; border-color: var(--line-light); box-shadow: var(--shadow-1); }
.section--cream .challenge p { color: var(--ink-soft); }
.section--cream .challenge .sol { border-color: var(--line-light); }
.section--cream .card { background: #fff; border-color: var(--line-light); box-shadow: var(--shadow-1); }
.section--cream .tag { border-color: var(--line-light); color: var(--ink-soft); }
.section--cream .emerald-text { color: var(--indigo); }
.section--cream .btn--ghost { color: var(--ink); border-color: var(--line-light); }
.section--cream .btn--ghost:hover { border-color: var(--coral); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .intro, .ceo, .contact, .showcase, .split, .phero__grid { grid-template-columns: 1fr; }
  .svc-grid, .pcards, .techgrid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ceo__media { max-width: 460px; margin-inline: auto; }
  .showcase__photo { min-height: 300px; }
}
@media (max-width: 860px) {
  .nav__side--start .nav__links { display: none; }
  .nav__side--end { display: none; }
  .nav__side--start .nav__toggle { display: inline-flex; }
  .nav__side--start { padding-inline-end: 0; justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid, .pcards, .techgrid, .stats, .cmethods, .footer__grid, .stats-box, .grid-2 { grid-template-columns: 1fr; }
  .stats-box .stat { border-inline-start: 0; border-block-start: 1px solid var(--line-navy); }
  .stats-box .stat:first-child { border-block-start: 0; }
  .help-bubble .av { width: 44px; height: 44px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
