/* =============================================================================
   MohammadKalim.com — public website styles
   Corporate, modern, fully responsive. Apple-style smooth scrolling (Lenis).
   Developer by: Muhammad Kalim | Phone/WhatsApp: +92 333 3836851
   Product of LogixInventor (PVT) Ltd. | info@logixinventor.com | www.logixinventor.com
   ============================================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #2b3345;
  --muted: #5b6474;
  --line: #e6e8ef;
  --bg: #ffffff;
  --tint: #f5f7fb;
  --navy: #060b1a;
  --navy-2: #0c1733;
  --brand: #3056f5;
  --brand-2: #6d4df2;
  --brand-soft: rgba(48, 86, 245, .09);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 2px 8px rgba(11, 18, 32, .04);
  --shadow: 0 20px 50px -20px rgba(11, 18, 32, .25), 0 4px 14px rgba(11, 18, 32, .05);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------ Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(48, 86, 245, .55); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(48, 86, 245, .2); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- Buttons ---- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px -10px rgba(48, 86, 245, .7); }
.btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(48, 86, 245, .75); }
.btn--outline { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--outline:hover { border-color: #cfd4e0; box-shadow: var(--shadow-sm); }
.btn--ghost-light { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--light { color: var(--navy); background: #fff; }
.btn--danger { color: #fff; background: #e5484d; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------- Nav ----- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0; transition: background .35s, padding .35s var(--ease), box-shadow .35s; }
.nav.is-scrolled { padding: 8px 0; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 rgba(11, 18, 32, .06); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: .95rem; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px -8px rgba(48, 86, 245, .8);
}
.brand__mark--lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.1rem; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: 1rem; letter-spacing: -.01em; }
.brand__text small { font-size: .74rem; opacity: .7; }
.nav.is-scrolled .brand, .page-default .brand { color: var(--ink); }
.nav__links { margin-left: auto; display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: rgba(255, 255, 255, .78); transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .12); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); background: rgba(11, 18, 32, .05); }
.nav.is-scrolled .nav__links a.is-active { color: var(--ink); background: rgba(11, 18, 32, .06); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; place-items: center; }
.nav.is-scrolled .nav__toggle { background: rgba(11, 18, 32, .06); color: var(--ink); }
.nav__toggle .ico { width: 22px; height: 22px; }

.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(6, 11, 26, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 28px 28px 0 0; transform: translateY(100%); transition: transform .5s var(--ease);
  display: grid; gap: 4px; touch-action: none;
}
.mobile-menu.is-open .mobile-menu__sheet { transform: none; }
.mobile-menu__sheet > a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 16px 6px; font-size: 1.25rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu__sheet > a.is-active { color: var(--brand); }
.mobile-menu__sheet .btn { margin-top: 14px; }
.sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: #d5d9e3; margin: 0 auto 10px; }

/* ------------------------------------------------------------ Hero ----- */
.hero, .page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, #16275c 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); isolation: isolate; }
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.hero__glow--1 { width: 520px; height: 520px; left: -120px; top: 10%; background: #2d4de0; animation: float 14s var(--ease) infinite alternate; }
.hero__glow--2 { width: 460px; height: 460px; right: -100px; bottom: -80px; background: #6d4df2; animation: float 16s var(--ease) infinite alternate-reverse; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
@keyframes float { to { transform: translate3d(60px, -40px, 0) scale(1.08); } }
.hero__inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow--light { color: #a9b8ff; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 22px; background: linear-gradient(180deg, #fff 30%, #b9c5ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead, .page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(233, 237, 255, .78); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: .82rem; color: rgba(233, 237, 255, .6); }
.hero__stats dd { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__company { font-size: 1.35rem !important; line-height: 2.1rem; }
.glass-card {
  padding: 26px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
.hero__card:hover .glass-card { transform: none; }
.glass-card__head { display: flex; gap: 14px; align-items: center; }
.glass-card__head strong { display: block; font-size: 1.1rem; }
.glass-card__head small { color: rgba(233, 237, 255, .65); }
.status-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; background: rgba(61, 220, 151, .12); color: #7cf0bf; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.glass-card__list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.glass-card__list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: .95rem; }
.glass-card__list .ico { color: #a9b8ff; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.page-hero { padding: 150px 0 80px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.04em; }
.page-hero--project { padding-bottom: 60px; }
.project-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.project-tags .eyebrow { margin: 0; }
.tag-glass { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #dfe5ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.tag-glass .ico { width: 14px; height: 14px; }
.tag-glass--nda { color: #ffdca8; background: rgba(245, 179, 1, .12); border-color: rgba(245, 179, 1, .32); }
.back-link { display: flex; width: max-content; gap: 8px; align-items: center; color: rgba(233, 237, 255, .75); margin-bottom: 24px; font-size: .92rem; }
.back-link:hover { color: #fff; text-decoration: none; }

/* ---------------------------------------------------------- Sections ---- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 48px; }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section__lead { font-size: 1.1rem; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #dde1ea; }
.service-card { padding: 30px; }
.service-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; color: var(--brand); background: var(--brand-soft); transition: transform .5s var(--ease), background .3s, color .3s; }
.service-card__icon .ico { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.06); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.service-card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------------------------------------------------------- Projects ---- */
.project-card { overflow: hidden; display: flex; }
.project-card__link { display: flex; flex-direction: column; color: inherit; width: 100%; }
.project-card__link:hover { text-decoration: none; }
/* Portfolio covers use only two brand colours: dark blue and dark green */
:root {
  --cover-blue: linear-gradient(140deg, #0c1f4a 0%, #123a86 55%, #0a1636 100%);
  --cover-green: linear-gradient(140deg, #062a22 0%, #0d5b3f 55%, #04211a 100%);
}
.project-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
  background: var(--cover-blue);
}
.project-card__media--blue { background: var(--cover-blue); }
.project-card__media--green { background: var(--cover-green); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 15%, rgba(255,255,255,.14), transparent 60%); pointer-events: none; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s; }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__initials { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; color: rgba(255, 255, 255, .92); text-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .9s var(--ease); }
.project-card:hover .project-card__initials { transform: scale(1.08); }
.project-card__initials--xl { font-size: clamp(4rem, 12vw, 8rem); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge--right { left: auto; right: 14px; }
.badge--glass { color: #fff; background: rgba(6, 11, 26, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2); }
.project-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-card__cat { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.project-card__body p { color: var(--muted); font-size: .95rem; }
.project-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-card__platform { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.project-card__platform .ico { width: 15px; height: 15px; color: var(--brand); }
.project-card__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap; }
.project-card__more .ico { transition: transform .4s var(--ease); }
.project-card:hover .project-card__more .ico { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #f1f3f8; color: var(--ink-2); }
.chips--light .chip { background: rgba(255, 255, 255, .1); color: #dfe5ff; }

.swipe-row { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px; cursor: grab; -webkit-overflow-scrolling: touch; }
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.swipe-row.is-dragging a { pointer-events: none; }
.swipe-row__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 44px) / 3)); gap: 22px; }
.swipe-row__track > * { scroll-snap-align: start; }
.swipe-row__controls { display: flex; gap: 10px; justify-content: flex-end; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 .9rem var(--font); cursor: pointer; transition: all .3s var(--ease); }
.filter:hover { border-color: #cfd4e0; }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter__count { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: rgba(11, 18, 32, .07); }
.filter.is-active .filter__count { background: rgba(255, 255, 255, .18); }
.portfolio-grid.is-loading { opacity: .45; transition: opacity .2s; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

.project-cover { border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 8; max-height: 520px; width: 100%; display: grid; place-items: center; margin-top: -90px; position: relative; z-index: 2; box-shadow: var(--shadow); background: var(--cover-blue); }
.project-cover--blue { background: var(--cover-blue); }
.project-cover--green { background: var(--cover-green); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-detail { margin-top: 56px; }
.facts { padding: 26px; }
.facts:hover { transform: none; }
.facts dl { margin: 0 0 18px; display: grid; gap: 14px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.facts h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose p { color: var(--ink-2); }
.nda-note { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 24px; padding: 18px; border-radius: 18px; background: #fff8ec; border: 1px solid #f5e0b8; }
.nda-note__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #b7791f; box-shadow: var(--shadow-sm); }
.nda-note strong { display: block; color: var(--ink); }
.nda-note p { margin: 4px 0 0; font-size: .95rem; }

/* ---------------------------------------------------------- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), transparent); }
.timeline__item { position: relative; padding: 0 0 34px; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.timeline__period { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.timeline__org { font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.timeline__item p:last-child { color: var(--muted); margin: 0; }
.timeline--wide { max-width: 760px; }

/* ---------------------------------------------------------- Quotes / about ---- */
.quote-card { padding: 28px; margin: 0; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 14px 0 20px; font-size: 1.02rem; color: var(--ink-2); flex: 1; }
.quote-card figcaption { display: grid; }
.quote-card figcaption span { color: var(--muted); font-size: .9rem; }
.stars { display: flex; gap: 2px; color: #d6dae3; }
.stars .on { color: #f5b301; }
.stars .ico { width: 18px; height: 18px; fill: currentColor; }
.profile-card { padding: 32px; border-radius: 28px; background: linear-gradient(160deg, #fff, #f6f8ff); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; position: sticky; top: 100px; }
.profile-card__avatar { width: 108px; height: 108px; border-radius: 32px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 20px 40px -16px rgba(48, 86, 245, .8); }
.profile-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.profile-card > p { color: var(--muted); }
.profile-card__facts { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; text-align: left; }
.profile-card__facts li { display: flex; gap: 10px; align-items: center; font-size: .95rem; word-break: break-word; }
.profile-card__facts .ico { color: var(--brand); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat { padding: 20px; border-radius: 18px; background: var(--tint); }
.stat strong { display: block; font-size: 2.2rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------- Contact ---- */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--tint); }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-list__icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.form { padding: clamp(22px, 4vw, 36px); }
.form:hover { transform: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: #fbfcfe;
  font: 400 1rem var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(48, 86, 245, .12); }
.field.has-error input, .field.has-error textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.field__error { margin: 6px 0 0; font-size: .82rem; color: #d93b40; min-height: 0; }
.field__error:empty { display: none; }
.form__note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------- Footer ---- */
.footer { background: var(--navy); color: rgba(233, 237, 255, .7); padding: 0 0 30px; }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 56px clamp(24px, 5vw, 56px); border-radius: 32px; margin-top: -90px; position: relative; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent), linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 30px 60px -24px rgba(48, 86, 245, .6); }
.footer__cta h2 { margin: 0; max-width: 620px; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; margin-top: 64px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(233, 237, 255, .75); }
.footer a:hover { color: #fff; }
.footer .btn--light, .footer .btn--light:hover { color: var(--navy); }
.footer__about p { margin: 18px 0; max-width: 420px; }
.footer__contact li { display: flex; gap: 10px; align-items: center; word-break: break-word; }
.brand--light { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: background .25s, transform .3s var(--ease); }
.socials a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: .86rem; }
.brand__logo { display: block; height: 36px; width: auto; max-width: 190px; object-fit: contain; }
.footer .brand__logo { filter: brightness(0) invert(1); opacity: .95; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------- Subscribe ---- */
.subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 8px 0 40px; padding: 26px clamp(20px,4vw,34px); border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.subscribe__text h3 { color: #fff; margin: 0 0 6px; font-size: 1.25rem; }
.subscribe__text p { color: rgba(233,237,255,.7); margin: 0; max-width: 420px; font-size: .95rem; }
.subscribe__form { flex: 1 1 340px; max-width: 460px; }
.subscribe__field { display: flex; gap: 10px; }
.subscribe__field input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.subscribe__field input::placeholder { color: rgba(233,237,255,.5); }
.subscribe__field input:focus { outline: 0; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
.subscribe__field .btn { flex: none; height: 50px; }
.subscribe__note { margin: 10px 0 0; font-size: .85rem; min-height: 0; color: #7cf0bf; }
.subscribe__note.is-error { color: #ff9a9d; }
.subscribe.is-done .subscribe__field { display: none; }

/* ---------------------------------------------------------- Chat widget ---- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 95; }
.chat-launcher { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: var(--chat-color, #3056f5); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--chat-color, #3056f5) 70%, transparent), 0 4px 10px rgba(0,0,0,.2);
  display: grid; place-items: center; transition: transform .35s var(--ease), box-shadow .35s; }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .ico { width: 28px; height: 28px; position: absolute; transition: transform .35s var(--ease), opacity .25s; }
.chat-launcher__close { transform: rotate(-90deg) scale(.4); opacity: 0; }
.chat-widget.is-open .chat-launcher__open { transform: rotate(90deg) scale(.4); opacity: 0; }
.chat-widget.is-open .chat-launcher__close { transform: none; opacity: 1; }
.chat-launcher__badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e5484d; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.chat-panel { position: fixed; right: 22px; bottom: 94px; z-index: 95; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(8,15,40,.5), 0 4px 14px rgba(8,15,40,.12);
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none; transform-origin: bottom right; transition: transform .4s var(--ease), opacity .3s; }
.chat-widget.is-open .chat-panel { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { padding: 18px 20px; color: #fff; background: linear-gradient(135deg, var(--chat-color, #3056f5), color-mix(in srgb, var(--chat-color, #3056f5) 55%, #6d4df2)); display: flex; align-items: center; gap: 12px; }
.chat-head__avatar { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; flex: none; }
.chat-head__title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.chat-head__status { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.chat-head__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.chat-head__close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-head__close .ico { width: 18px; height: 18px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #f5f7fb; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: chat-in .3s var(--ease); }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } }
.chat-msg--bot, .chat-msg--admin { align-self: flex-start; background: #fff; color: #0b1220; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(11,18,32,.06); }
.chat-msg--admin { background: #eef2ff; }
.chat-msg--visitor { align-self: flex-end; background: var(--chat-color, #3056f5); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg__meta { display: block; font-size: .68rem; margin-top: 4px; opacity: .6; }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(11,18,32,.06); }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c0d0; animation: chat-bounce 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; } .chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-lead { margin: 4px 0 0; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(11,18,32,.06); }
.chat-lead p { margin: 0 0 8px; font-size: .82rem; color: #667085; }
.chat-lead form { display: flex; gap: 8px; }
.chat-lead input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #e6e8ef; border-radius: 10px; font: inherit; }
.chat-lead button { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--chat-color, #3056f5); color: #fff; font-weight: 600; cursor: pointer; }
.chat-foot { padding: 12px; border-top: 1px solid #e9ecf3; background: #fff; }
.chat-foot form { display: flex; gap: 8px; align-items: flex-end; }
.chat-foot textarea { flex: 1; resize: none; max-height: 90px; min-height: 42px; padding: 11px 14px; border: 1px solid #e6e8ef; border-radius: 14px; font: inherit; line-height: 1.4; }
.chat-foot textarea:focus { outline: 0; border-color: var(--chat-color, #3056f5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chat-color, #3056f5) 15%, transparent); }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--chat-color, #3056f5); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.chat-send:hover { transform: scale(1.05); } .chat-send:disabled { opacity: .5; }
.chat-send .ico { width: 20px; height: 20px; }
.chat-branding { text-align: center; font-size: .68rem; color: #9aa2b4; padding: 6px; background: #fff; }
@media (max-width: 640px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 86px; height: min(70vh, calc(100vh - 110px)); }
  .chat-widget { right: 16px; bottom: 16px; }
}

/* ---------------------------------------------------------- Error page ---- */
.page-hero--error { min-height: 80vh; display: flex; align-items: center; }
.error-page { text-align: center; }
.error-page .page-hero__lead { margin: 0 auto; }
.error-page .hero__actions { justify-content: center; }
.error-page__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0 0 10px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page__ref { margin-top: 20px; color: rgba(233, 237, 255, .7); }
.error-page__ref code { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-size: .9rem; }

/* ---------------------------------------------------------- Reveal animations ---- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.lazy-img { opacity: 0; }
.lazy-img.is-loaded { opacity: 1; }

/* ---------------------------------------------------------- Responsive ---- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .glass-card { transform: none; }
  .swipe-row__track { grid-auto-columns: minmax(300px, calc((100% - 22px) / 2)); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .split { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding-top: 110px; }
  .hero__scroll { display: none; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__stats dd { font-size: 1.5rem; }
  .hero__company { font-size: 1rem !important; line-height: 1.6rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .swipe-row__track { grid-auto-columns: 84%; gap: 14px; }
  .swipe-row__controls { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 14px 10px; }
  .stat strong { font-size: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cta { margin-top: -70px; padding: 32px 22px; border-radius: 24px; }
  .footer__grid { margin-top: 44px; }
  .footer__cta .btn { width: 100%; }
  .page-hero { padding: 120px 0 60px; }
  .project-cover { margin-top: -50px; border-radius: 20px; }
  .subscribe { flex-direction: column; align-items: stretch; text-align: left; }
  .subscribe__field { flex-direction: column; }
  .subscribe__field .btn { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .brand__logo { height: 30px; }
}
