/* ============================================================
   MALANOS + CO: Modern site styles
   Brand: deep purple #3C0084 · charcoal #4D4D4D
   ============================================================ */

:root {
  --purple:        #3C0084;
  --purple-dark:   #2B005F;
  --purple-deep:   #1D0040;
  --purple-night:  #150030;
  --violet:        #6B2BD9;
  --lilac:         #A78BDA;
  --lavender:      #F6F2FC;
  --lavender-2:    #ECE3FA;
  --ink:           #2E2A36;
  --grey:          #4D4D4D;
  --grey-soft:     #6F6A7A;
  --line:          #E6DFF3;
  --bg:            #FDFCFF;
  --white:         #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 10px rgba(60, 0, 132, .06);
  --shadow-md: 0 12px 32px rgba(60, 0, 132, .10);
  --shadow-lg: 0 24px 60px rgba(29, 0, 64, .16);

  --radius: 18px;
  --header-h: 120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--purple); color: #fff; }

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--purple-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--violet);
  border-radius: 2px;
}
.eyebrow-light { color: var(--lilac); }
.eyebrow-light::before { background: var(--lilac); }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -.01em;
  margin-bottom: 1.2rem;
}
.section-title em {
  font-style: italic;
  color: var(--purple);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-title em { color: var(--lilac); }

.section-sub {
  max-width: 560px;
  color: var(--grey-soft);
  font-size: 1.1rem;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-tint { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--lavender); }
.section-dark { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--purple-deep); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(60, 0, 132, .28);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(60, 0, 132, .38); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--purple);
}
.btn-ghost:hover { background: var(--purple); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.btn-light:hover { color: var(--purple-dark); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}
.btn-outline-light:hover { background: #fff; color: var(--purple); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  transition: height .35s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(253, 252, 255, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.site-header.scrolled .header-inner { height: 100px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--purple);
}
.brand-mark { width: 44px; height: 28px; flex: none; }
.brand-logo { height: 100px; width: auto; display: block; }
.site-header.scrolled .brand-logo { height: 84px; }
.site-footer .brand-logo { height: 112px; }
.brand-light .brand-logo { filter: brightness(0) invert(1); opacity: .95; }
body.menu-open .brand-logo { filter: brightness(0) invert(1); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--purple-deep);
}
.brand-plus { color: var(--purple); margin: 0 .18em; font-weight: 400; }
.brand-light, .brand-light .brand-text { color: #fff; }
.brand-light .brand-plus { color: var(--lilac); }

.site-nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  padding: .3rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.header-cta { flex: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 10px;
  border-radius: 10px;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--purple);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.mobile-menu nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.mobile-menu nav a.mobile-cta {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: .8rem;
  color: var(--purple);
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu-foot { color: var(--lilac); font-size: .9rem; letter-spacing: .05em; }

/* While the menu is open, keep the header (brand + close button) on top of it */
body.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
body.menu-open .brand-text,
body.menu-open .brand { color: #fff; }
body.menu-open .brand-plus { color: var(--lilac); }
body.menu-open .nav-toggle span { background: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--lavender-2) 0%, transparent 60%),
    linear-gradient(180deg, var(--lavender) 0%, var(--bg) 92%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  animation: fadeDown .8s var(--ease-out) both .2s;
}
.eyebrow-diamond { color: var(--purple); font-size: .7em; }

.hero-title {
  font-size: clamp(2.7rem, 7.2vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(115%);
  animation: riseUp .85s var(--ease-out) forwards;
}
.hero-title .accent { font-style: italic; color: var(--purple); }
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: .35s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .43s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: .51s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .65s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .73s; }
.hero-title .line:nth-child(2) .word:nth-child(3) { animation-delay: .81s; }

.hero-sub {
  max-width: 590px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--grey-soft);
  margin-bottom: 2.4rem;
  animation: fadeUp .9s var(--ease-out) both 1.05s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .9s var(--ease-out) both 1.25s;
}

/* Hero decorations */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob-1 {
  width: 560px; height: 560px;
  right: -140px; top: -80px;
  background: radial-gradient(circle at 35% 35%, #C9B2F0 0%, #E6DAFB 55%, transparent 75%);
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.blob-2 {
  width: 420px; height: 420px;
  left: -160px; bottom: -120px;
  background: radial-gradient(circle at 60% 40%, #DCCBF7 0%, transparent 70%);
  animation: blobDrift 20s ease-in-out infinite alternate-reverse;
}

.float-diamond {
  position: absolute;
  color: var(--purple);
  opacity: .16;
  transition: transform .1s linear;
}
.float-diamond path {
  transform-box: fill-box;
  transform-origin: center;
  animation: bob 7s ease-in-out infinite;
}
.fd-1 { width: 90px; right: 14%; top: 22%; }
.fd-2 { width: 46px; right: 26%; top: 58%; }
.fd-2 path { animation-delay: -2.5s; animation-duration: 6s; }
.fd-3 { width: 140px; right: 6%; bottom: 12%; opacity: .1; }
.fd-3 path { animation-delay: -4s; animation-duration: 9s; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: fadeUp 1s var(--ease-out) both 1.7s;
}
.hero-scroll-track {
  width: 26px; height: 42px;
  border: 2px solid var(--grey-soft);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero-scroll-dot {
  width: 4px; height: 8px;
  background: var(--purple);
  border-radius: 4px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
.hero-scroll-label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-soft);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding: 1.8rem 0;
}
.trustbar-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trustbar-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-soft);
}
.trustbar-logos {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  flex-wrap: wrap;
  justify-content: center;
}
.trustbar-logos img {
  height: 54px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .3s, opacity .3s, transform .3s var(--ease-out);
}
.trustbar-logos li:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.about-heading { position: sticky; top: calc(var(--header-h) + 2rem); }

.about-quote {
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--purple);
  background: var(--lavender);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--purple-dark);
}

.about-body p {
  margin-bottom: 1.4rem;
  color: var(--grey);
  font-size: 1.09rem;
}
.about-body p:first-child {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 550;
  color: var(--purple);
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: .35rem;
  font-size: .92rem;
  color: var(--grey-soft);
  font-weight: 500;
}

/* ============================================================
   VALUES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm);
}
.value-card.reveal-done:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-2) 100%);
  color: var(--purple);
  margin-bottom: 1.4rem;
}
.value-icon svg { width: 32px; height: 32px; }
.value-card h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.value-card p { color: var(--grey-soft); font-size: 1rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 2.4rem 2.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.service-card.reveal-done:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  position: absolute;
  top: 1.4rem; right: 1.8rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--lavender-2);
  transition: color .3s;
}
.service-card:hover .service-number { color: var(--lilac); }

.service-card h3 { font-size: 1.55rem; margin-bottom: .5rem; max-width: 80%; }
.service-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--violet);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.service-card ul { display: grid; gap: .45rem; }
.service-card li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--grey);
  font-size: .98rem;
}
.service-card li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 0;
  font-size: .55rem;
  line-height: 2.9;
  color: var(--purple);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm);
}
.process-step.reveal-done:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--violet);
  background: var(--lavender);
  border: 1px solid var(--lavender-2);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.process-step h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.process-step p { color: var(--grey-soft); font-size: 1rem; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-card.reveal-done:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.team-photo {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  background: var(--lavender);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease-out);
}
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-info { padding: 1.5rem 1.5rem 1.7rem; }
.team-info h3 { font-size: 1.22rem; margin-bottom: .1rem; }
.team-cred {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--violet);
  vertical-align: middle;
  background: var(--lavender);
  padding: .15rem .5rem;
  border-radius: 6px;
  margin-left: .3rem;
}
.team-role {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: .8rem;
}
.team-bio { font-size: .93rem; color: var(--grey); line-height: 1.65; }

/* ============================================================
   TESTIMONIALS (dark)
   ============================================================ */
.testimonials { position: relative; overflow: hidden; }
.testimonials::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  right: -260px; top: -260px;
  background: radial-gradient(circle, rgba(107, 43, 217, .35) 0%, transparent 65%);
  pointer-events: none;
}

.slider { max-width: 780px; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  pointer-events: none;
}
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.quote-mark { width: 44px; color: var(--violet); margin-bottom: 1.4rem; }
.slide p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  color: #fff;
  margin-bottom: 1.6rem;
}
.slide cite {
  font-style: normal;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--lilac);
}

.slider-dots { display: flex; gap: .7rem; margin-top: 2.2rem; }
.dot {
  width: 34px; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  transition: background .3s;
}
.dot.is-active { background: var(--lilac); }
.dot:hover { background: rgba(255, 255, 255, .5); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--purple-dark) 0%, var(--purple) 55%, var(--violet) 130%);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-diamond { position: absolute; color: rgba(255, 255, 255, .14); }
.cta-diamond path {
  transform-box: fill-box;
  transform-origin: center;
  animation: spinSlow 30s linear infinite;
}
.cd-1 { width: 220px; left: -70px; top: -70px; }
.cd-2 { width: 320px; right: -100px; bottom: -140px; }
.cd-2 path { animation-duration: 45s; animation-direction: reverse; }

.cta-inner { position: relative; }
.cta-inner h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 1rem;
}
.cta-inner h2 em { color: #E4D5FF; }
.cta-inner p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2.4rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-lead { color: var(--grey-soft); margin-bottom: 2.2rem; max-width: 460px; }

.contact-list { display: grid; gap: 1.6rem; }
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--purple);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-list strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: .15rem;
}
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; line-height: 1.5; }
.contact-list a:hover { color: var(--purple); }
.contact-list small {
  display: block;
  color: var(--grey-soft);
  font-size: .85rem;
  margin-top: .2rem;
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 1.6rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: .35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--lavender);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: .8rem 1rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(60, 0, 132, .1);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: #C0392B; }
.form-note {
  margin-top: .9rem;
  font-size: .82rem;
  color: var(--grey-soft);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--purple-night);
  color: rgba(255, 255, 255, .78);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lilac);
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a, .footer-col span {
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
  line-height: 1.55;
  transition: color .25s;
}
.footer-col a:hover { color: #fff; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}
.footer-legal a {
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: #fff; }
@media (min-width: 561px) {
  /* keep clear of the floating back-to-top button */
  .footer-legal { padding-right: 5.5rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease-out), background .25s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--violet); }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }
.reveal-done {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes riseUp { to { transform: translateY(0); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.12); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 880px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-heading { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-card h3 { max-width: 100%; padding-right: 3.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: min(1180px, 100% - 2.2rem); }
  .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-bottom: 7rem; }
  .hero-ctas .btn { width: 100%; }
  .trustbar-logos img { height: 42px; }
  .footer-legal { justify-content: center; text-align: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-title .word { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
