/* ==========================================================================
   Bluebook profile — design tokens
   Palette sampled from the Bluebook "B" logo (logo8) and the live Systimate site.
   ========================================================================== */
:root {
  --indigo: #3245D3;          /* logo mid */
  --indigo-hover: #2838B8;
  --periwinkle: #6B7CFA;      /* logo light */
  --deep: #2A2A9C;            /* logo shadow */
  --lavender: #A5B4FC;
  --indigo-50: #EEF0FF;
  --indigo-100: #E0E4FF;

  --navy-950: #060A1F;
  --navy-900: #0B1030;
  --navy-800: #141A45;
  --navy-700: #222A63;

  --text: #0F1330;
  --body: #3D4361;
  --muted: #6A7090;
  --line: #E5E7F0;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FC;

  --green: #16A34A;
  --amber: #D97706;

  --font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 19, 48, .06), 0 1px 3px rgba(15, 19, 48, .04);
  --shadow: 0 12px 32px -12px rgba(15, 19, 48, .18), 0 2px 6px rgba(15, 19, 48, .05);
  --shadow-lg: 0 40px 80px -24px rgba(6, 10, 31, .45);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[dir="rtl"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[dir="rtl"] body { font-size: 17px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--indigo-100); color: var(--text); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; padding: 8px 14px; background: var(--indigo); color: #fff; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px -6px rgba(50, 69, 211, .6); }
.btn-primary:hover { background: var(--indigo-hover); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--indigo-50); transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--indigo); font-size: .95rem; }
.link-arrow .icon { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }
[dir="rtl"] .link-arrow:hover .icon { translate: -4px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--lavender);
  background: rgba(107, 124, 250, .12); border: 1px solid rgba(107, 124, 250, .25); margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--periwinkle); box-shadow: 0 0 0 4px rgba(107,124,250,.2); }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--indigo); margin-bottom: 12px; letter-spacing: .02em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--indigo-50); color: var(--indigo); }
.chip-muted { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.chip-dark { background: rgba(255,255,255,.08); color: #C9CFF0; border: 1px solid rgba(255,255,255,.12); }
.chip-live { background: #E8F7EE; color: #15803D; }
.chip-live::before, .chip-dev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-dev { background: #FEF3E2; color: #B45309; }

/* ==========================================================================
   Header (dark, matches the hero and the live Systimate site)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.06); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { background: rgba(11, 16, 48, .92); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
[dir="rtl"] .brand { letter-spacing: 0; }
.brand img { height: 36px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; font-size: .95rem; font-weight: 500; }
.main-nav a:not(.btn) { color: #B9BFE0; padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .88rem; font-weight: 600;
  background: none; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 8px 12px; color: #DDE1F5; cursor: pointer;
}
.lang-switch button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.lang-switch .icon { width: 16px; height: 16px; }
.lang-switch button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang-switch button[lang="en"] { font-family: "Plus Jakarta Sans", sans-serif; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; background: none; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.25px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.05rem; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a:not(.btn) { padding: 12px 14px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; }
}

/* ==========================================================================
   Dark bands: hero and page heads
   ========================================================================== */
.hero, .page-head {
  position: relative; isolation: isolate; color: #C9CFF0; background: var(--navy-900); overflow: hidden;
}
.hero::before, .page-head::before {
  /* fine grid, fading out toward the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
}
.hero::after, .page-head::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%;
  inset-inline-end: -180px; top: -320px; background: radial-gradient(circle, rgba(50,69,211,.45), transparent 65%);
}
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(120px, 14vw, 170px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-grid-single { grid-template-columns: minmax(0, 820px); }
.hero-title { color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
[dir="rtl"] .hero-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.35; font-weight: 700; }
.hero-lead { margin-top: 22px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #AEB5D9; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9rem; color: #AEB5D9; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--periwinkle); }

.hero-visual { position: relative; }
.browser {
  display: block; border-radius: 14px; overflow: hidden; background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.browser-bar em { font-style: normal; font-size: .75rem; color: #8A92BF; margin-inline-start: 12px; direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero-visual .browser { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
[dir="rtl"] .hero-visual .browser { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); }
.hero-visual .browser:hover { transform: none; }
.float-card {
  position: absolute; display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; min-width: 170px;
  background: rgba(255,255,255,.96); box-shadow: var(--shadow); color: var(--muted); font-size: .8rem;
}
.float-card strong { color: var(--indigo); font-size: 1.5rem; line-height: 1.1; font-weight: 800; }
.float-card-a { inset-inline-start: -28px; bottom: -28px; }
.float-card-b { inset-inline-end: -16px; top: 28%; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .float-card-a { inset-inline-start: 12px; }
  .float-card-b { inset-inline-end: 12px; }
}

/* Highlights: a card overlapping the hero */
.highlights-wrap { position: relative; z-index: 2; margin-top: clamp(-96px, -8vw, -64px); }
.highlights {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.highlights > div { padding: clamp(20px, 3vw, 32px); display: grid; gap: 4px; }
[dir="rtl"] .highlights dd, [dir="rtl"] .mini-stats dd, [dir="rtl"] .float-card strong { text-align: right; }
.highlights > div + div { border-inline-start: 1px solid var(--line); }
.highlights dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1.1; }
[dir="rtl"] .highlights dd { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -0.02em; }
.highlights dt { font-size: .9rem; color: var(--muted); }
.highlights-flat { box-shadow: none; background: var(--bg-soft); }
@media (max-width: 760px) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights > div:nth-child(3) { border-inline-start: 0; }
  .highlights > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Page heads */
.page-head { padding-block: clamp(56px, 8vw, 96px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
[dir="rtl"] .page-head h1 { font-weight: 700; letter-spacing: 0; }
.page-lead { margin-top: 18px; font-size: 1.1rem; color: #AEB5D9; max-width: 62ch; }
.page-head-compact { padding-block: 28px; }
.page-head-project { padding-bottom: clamp(140px, 16vw, 220px); }
.page-head-project .chips { margin-bottom: 18px; }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: #8A92BF; margin-bottom: 20px; }
.crumbs a { color: #C9CFF0; }
.crumbs a:hover { color: #fff; }
.page-head-compact .crumbs { margin: 0; }
.cover-overlap { position: relative; z-index: 2; margin-top: clamp(-180px, -13vw, -110px); }
.browser-lg img { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
[dir="rtl"] .section-title { font-weight: 700; letter-spacing: 0; }
.section-lead { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.empty { padding: 56px 0; text-align: center; color: var(--muted); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover { border-color: var(--indigo-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card h3 { font-size: 1.15rem; margin-top: 8px; }
.service-card p { color: var(--muted); font-size: .96rem; }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--indigo-50); color: var(--indigo); flex: none; }
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile-green { background: #E8F7EE; color: var(--green); }
.service-card-cta { background: var(--navy-900); border-color: var(--navy-900); color: #AEB5D9; justify-content: flex-end; }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: #AEB5D9; }
.service-card-cta .link-arrow { color: var(--lavender); margin-top: 8px; }
.service-card-cta:hover { border-color: var(--navy-700); }

/* Featured work */
.feature-list { display: grid; gap: clamp(48px, 7vw, 88px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.feature-flip .feature-media { order: 2; }
.feature-media .browser { transition: transform .5s var(--ease); }
.feature-media:hover .browser { transform: translateY(-4px); }
.feature-body { display: grid; gap: 16px; justify-items: start; }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.feature-body h3 a:hover { color: var(--indigo); }
.feature-body > p { font-size: 1.05rem; color: var(--muted); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 4px 0; padding: 16px 0; border-block: 1px solid var(--line); width: 100%; }
.mini-stats dd { margin: 0; font-weight: 800; font-size: 1.4rem; color: var(--text); font-family: "Plus Jakarta Sans", sans-serif; }
.mini-stats dt { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-flip .feature-media { order: 0; } }

.cover-placeholder {
  display: grid; place-items: center; padding: 10%; aspect-ratio: 16 / 10; border-radius: 14px; text-align: center;
  background: radial-gradient(circle at 80% 0%, rgba(107,124,250,.5), transparent 55%), var(--navy-900);
  color: #fff; font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25;
}

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }
.project-card-link {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.project-card-link:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--indigo-100); }
.project-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-900); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project-card-link:hover .project-media img { transform: scale(1.04); }
.project-media .cover-placeholder { border-radius: 0; height: 100%; aspect-ratio: auto; }
.status-chip { position: absolute; top: 14px; inset-inline-start: 14px; box-shadow: var(--shadow-sm); }
.project-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.project-body .meta { font-size: .82rem; color: var(--muted); font-weight: 500; }
.project-body h3 { font-size: 1.15rem; }
.project-summary { color: var(--muted); font-size: .94rem; flex: 1; }
.project-body .link-arrow { margin-top: 8px; font-size: .9rem; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; }
.filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--body); background: #fff; }
.filters a:hover { border-color: var(--indigo); color: var(--indigo); }
.filters a.is-active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.filters-sep { width: 1px; height: 24px; background: var(--line); margin-inline: 6px; }

/* Case study */
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .case-layout { grid-template-columns: 1fr; } }
.case-main { display: grid; gap: 40px; }
.case-block h2 { font-size: 1.35rem; margin-bottom: 12px; }
.prose { font-size: 1.05rem; color: var(--body); }
.prose p + p { margin-top: 1em; }
.case-aside { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.facts { margin: 0; display: grid; gap: 16px; }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 500; }
.facts dd { margin: 2px 0 0; color: var(--text); font-weight: 600; }
.aside-title { font-size: .8rem; color: var(--muted); font-weight: 500; margin: 24px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.status-live { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.status-in_development { background: var(--amber); box-shadow: 0 0 0 4px rgba(217,119,6,.15); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--body); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.gallery figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.next-project {
  display: flex; align-items: center; gap: 16px; padding: 28px 32px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.next-project span { font-size: .85rem; color: var(--muted); }
.next-project strong { color: var(--text); font-size: 1.25rem; flex: 1; }
.next-project .icon { color: var(--indigo); }
.next-project:hover { border-color: var(--indigo-100); box-shadow: var(--shadow); }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; top: 24px; inset-inline: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--indigo-100) 15%, var(--indigo-100) 85%, transparent); }
.process li { position: relative; text-align: center; display: grid; gap: 8px; justify-items: center; }
.step { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--indigo-100); color: var(--indigo); font-weight: 800; box-shadow: 0 0 0 6px #fff; margin-bottom: 8px; }
.process h3 { font-size: 1.05rem; }
.process p { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .process::before { top: 0; bottom: 0; inset-inline-start: 23px; inset-inline-end: auto; width: 1px; height: auto; background: var(--indigo-100); }
  .process li { grid-template-columns: 48px 1fr; text-align: start; justify-items: start; column-gap: 20px; padding-bottom: 28px; }
  .step { grid-row: span 2; margin: 0; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { margin-top: 20px; font-size: 1.08rem; }
.about-cards { display: grid; gap: 16px; }
.about-card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.about-card h3 { font-size: 1.05rem; color: var(--indigo); margin-bottom: 8px; }
.about-card-dark { background: var(--navy-900); border-color: var(--navy-900); color: #C9CFF0; }
.about-card-dark h3 { color: var(--lavender); }
.about-mark { position: absolute; width: 140px; inset-inline-end: -24px; bottom: -28px; opacity: .14; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { margin: 0; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--text); line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; }
.quote strong { color: var(--text); font-size: .95rem; }
.quote small { color: var(--muted); font-size: .85rem; }

/* Team */
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.member-grid-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .member-grid, .member-grid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .member-grid, .member-grid-lg { grid-template-columns: 1fr; } }
.member-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.member-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.member-photo { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(160deg, var(--indigo-50), var(--indigo-100)); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member-card:hover .member-photo img { transform: scale(1.04); }
.member-initials { font-size: 2.6rem; font-weight: 800; color: var(--indigo); }
.member-info { padding: 18px 20px 20px; }
.member-info h3 { font-size: 1.05rem; }
.member-info h3 a:hover { color: var(--indigo); }
.member-info p { font-size: .9rem; color: var(--muted); }
.member-links { display: flex; gap: 6px; margin-top: 12px; }
.member-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.member-links a:hover { color: var(--indigo); border-color: var(--indigo); }
.member-links .icon { width: 17px; height: 17px; }
.member-profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.member-photo-lg { border-radius: var(--radius-lg); border: 1px solid var(--line); }
.profile-name { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.profile-role { font-size: 1.1rem; color: var(--indigo); font-weight: 600; margin: 8px 0 24px; }
.member-profile .tag-list { margin-top: 24px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 760px) { .member-profile { grid-template-columns: 1fr; } .member-photo-lg { max-width: 300px; } }

/* Contact */
.contact-section { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.contact-form { display: grid; gap: 20px; margin-top: clamp(-72px, -6vw, -40px); position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field label span { color: var(--indigo); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: #CDD1E3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(50,69,211,.12); }
.kind-picker { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kind-picker legend { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.kind-picker > div, .kind-picker > div > div { display: contents; }
.kind-option { position: relative; cursor: pointer; }
.kind-option input { position: absolute; opacity: 0; }
.kind-option span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; transition: all .2s var(--ease); }
.kind-option:hover span { border-color: var(--indigo); }
.kind-option input:checked + span { background: var(--indigo-50); border-color: var(--indigo); color: var(--indigo); font-weight: 600; }
.kind-option input:focus-visible + span { outline: 2px solid var(--periwinkle); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.form-error { color: #DC2626; font-size: .85rem; }
.hp { position: absolute; inset-inline-start: -10000px; }
.contact-direct h2 { font-size: 1.35rem; }
.contact-direct > p { margin-top: 8px; }
.direct-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.direct-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
a.direct-item:hover { border-color: var(--indigo-100); box-shadow: var(--shadow); }
.direct-item > span:last-child { display: grid; min-width: 0; }
.direct-item small { font-size: .8rem; color: var(--muted); }
.direct-item strong { color: var(--text); font-size: 1rem; overflow-wrap: anywhere; }
.flash-wrap { background: #E8F7EE; border-bottom: 1px solid #C7EBD3; }
.flash { display: flex; align-items: center; gap: 10px; padding-block: 14px; color: #166534; font-weight: 500; }

/* CTA panel */
.cta-section { padding-bottom: var(--section); }
.section-soft + .cta-section, .contact-section + .cta-section { padding-top: var(--section); background: var(--bg-soft); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--indigo); color: #DDE1FF;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 100% 0%, rgba(107,124,250,.9), transparent 50%), radial-gradient(circle at 0% 100%, var(--deep), transparent 60%);
}
.cta-panel h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-panel p { margin-top: 8px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #8A92BF; padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { margin-top: 16px; max-width: 40ch; font-size: .93rem; }
.footer-title { font-size: .9rem; color: #fff; margin-bottom: 16px; font-weight: 700; letter-spacing: 0; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--periwinkle); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); color: #C9CFF0; }
.social a:hover { border-color: var(--periwinkle); color: #fff; }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* WhatsApp button */
.whatsapp-fab {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 24px -6px rgba(37,211,102,.55);
  transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.07); }

/* Scroll reveal (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
