:root {
  --purple: #5b2d91;
  --purple-deep: #3d1a6b;
  --green: #5aad2a;
  --green-dark: #3d8a18;
  --ink: #121214;
  --muted: #5c5c66;
  --paper: #f7f5f2;
  --white: #ffffff;
  --line: rgba(18, 18, 20, 0.08);
  --gold: #c4a574;
  --max: 1160px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 7vw;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; letter-spacing: 0.04em; }
.nav-links a { position: relative; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--purple); font-weight: 500; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--purple); border-radius: 2px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff !important;
  padding: 12px 22px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover { background: var(--purple-deep); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(91,45,145,0.2); }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(18, 18, 20, 0.04);
  transform: translateY(-2px);
}

.hero {
  padding: 88px 7vw 72px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(91,45,145,0.08), transparent 50%),
    radial-gradient(ellipse at 100% 80%, rgba(90,173,42,0.08), transparent 45%),
    var(--paper);
}
.kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--purple); font-weight: 600; margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
.lede { font-size: 18px; color: var(--muted); max-width: 540px; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-mark {
  background: #fff; border-radius: 24px; padding: 48px;
  box-shadow: 0 30px 80px rgba(61,26,107,0.12);
  display: grid; place-items: center;
}
.hero-mark img { width: min(100%, 420px); }

.section { padding: 88px 7vw; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(18, 18, 20, 0.04);
}
.card h3 { font-size: 26px; margin: 8px 0 10px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--green));
}
.num { font-family: var(--serif); font-size: 42px; color: var(--purple); }

.work-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; grid-template-rows: auto auto; gap: 16px; }
.work-item {
  position: relative; min-height: 260px; border-radius: 18px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 24px; color: #fff;
  transition: transform 0.4s ease;
}
.work-item:hover {
  transform: scale(1.02);
}
.work-item:first-child { grid-row: 1 / 3; min-height: 540px; }
.work-item h3 { font-size: 28px; }
.w1, .w2, .w3 { position: relative; z-index: 1; background: none; }
.w1::before, .w2::before, .w3::before,
.w1::after, .w2::after, .w3::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; opacity: 1;
}
.w1::before, .w2::before, .w3::before {
  animation: slideFade 10s infinite alternate ease-in-out;
  z-index: 0;
}
.w1::after, .w2::after, .w3::after {
  z-index: -1;
}
@keyframes slideFade {
  0%, 30% { opacity: 0; transform: scale(1); }
  70%, 100% { opacity: 1; transform: scale(1.05); }
}

.w1::after { background: linear-gradient(to top, rgba(42, 15, 64, 0.9) 0%, rgba(61, 26, 107, 0.1) 60%), url('../img/contracts_work.jpg') center/cover no-repeat; }
.w1::before { background: linear-gradient(to top, rgba(42, 15, 64, 0.9) 0%, rgba(61, 26, 107, 0.1) 60%), url('../img/contracts_work_2.jpg') center/cover no-repeat; }

.w2::after { background: linear-gradient(to top, rgba(31, 87, 10, 0.9) 0%, rgba(90, 173, 42, 0.1) 60%), url('../img/digital_work.jpg') center/cover no-repeat; }
.w2::before { background: linear-gradient(to top, rgba(31, 87, 10, 0.9) 0%, rgba(90, 173, 42, 0.1) 60%), url('../img/digital_work_2.jpg') center/cover no-repeat; }

.w3::after { background: linear-gradient(to top, rgba(20, 20, 25, 0.9) 0%, rgba(61, 26, 107, 0.1) 60%), url('../img/advisory_work.jpg') center/cover no-repeat; }
.w3::before { background: linear-gradient(to top, rgba(20, 20, 25, 0.9) 0%, rgba(61, 26, 107, 0.1) 60%), url('../img/advisory_work_2.jpg') center/cover no-repeat; }

.quote {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 36px);
  max-width: 800px; margin: 0 auto; text-align: center; font-style: italic;
}
.quote cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.meta { font-size: 13px; color: var(--muted); }
.footer {
  background: var(--ink); color: #d8d4ce; padding: 64px 7vw 32px;
}
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto 40px; }
.footer img { height: 56px; background: #fff; border-radius: 8px; padding: 6px 10px; }
.legal { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 12px; color: #8a8680; max-width: var(--max); margin: 0 auto; }

form { display: grid; gap: 14px; }
input, textarea, select {
  font: inherit; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
textarea { min-height: 140px; resize: vertical; }

.page-hero { padding: 72px 7vw 40px; background: var(--paper); }
.page-hero h1 { max-width: 800px; }

.timeline { border-left: 2px solid var(--purple); padding-left: 28px; display: grid; gap: 28px; }
.t-item h3 { font-size: 22px; }

@media (max-width: 880px) {
  .hero, .grid-3, .grid-2, .work-grid, .footer-grid, .nav { display: flex; flex-direction: column; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
  .work-item, .work-item:first-child { min-height: 220px; }
}

/* WhatsApp floating button */
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff !important;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  transition: all 0.3s ease;
  text-decoration: none;
}
.wa-btn:hover { background: #128C7E; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.wa-btn svg { width: 18px; height: 18px; flex-shrink: 0; }


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* LinkedIn button */
.li-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0A66C2; color: #fff !important;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  transition: all 0.3s ease; text-decoration: none;
}
.li-btn:hover { background: #004182; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(10,102,194,0.3); }
.li-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Footer social row */
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Back-to-top button */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(91,45,145,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); background: var(--purple-deep); }
.back-top svg { width: 20px; height: 20px; }

