/* ————— Attested · Meiyappan & Associates ————— */

:root {
  --paper: #FAF7F1;
  --paper-2: #FFFFFF;
  --ink: #17161E;
  --ink-soft: #4A4956;
  --muted: #8B8A94;
  --blue: #2B4BFF;
  --blue-deep: #1E38C7;
  --blue-tint: rgba(43, 75, 255, 0.08);
  --shadow: 0 10px 30px rgba(43, 75, 255, 0.10), 0 2px 8px rgba(23, 22, 30, 0.05);
  --shadow-lift: 0 18px 44px rgba(43, 75, 255, 0.16), 0 4px 12px rgba(23, 22, 30, 0.07);
  --radius: 22px;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --head: "Outfit", -apple-system, sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.anim { scroll-behavior: auto; } /* Lenis takes over when animating */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ————— nav ————— */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(23, 22, 30, 0.07);
}

.brand, .brand-mark {
  font-family: var(--head); font-weight: 800; font-size: 1.4rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.amp { color: var(--blue); }

.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  font-weight: 600; transition: color 0.2s ease;
}

.nav-cta {
  display: inline-block;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 1.25rem; border-radius: 2rem;
  box-shadow: 0 6px 18px rgba(43, 75, 255, 0.28);
  transition: background-color 0.2s ease;
}

/* ————— type ————— */

.display {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.04; letter-spacing: -0.025em;
  max-width: 12em;
}

.kicker {
  color: var(--blue); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.lede {
  color: var(--ink-soft); max-width: 34em;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-top: 1.6rem;
}

.section h2 {
  position: relative; display: inline-block;
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em; line-height: 1.1;
}
.ink {
  position: absolute; left: 0; bottom: -0.12em;
  width: 100%; height: 0.14em; border-radius: 99px;
  background: var(--blue);
  transform-origin: left center;
}
html.anim .ink { transform: scaleX(0); }

.section-sub { color: var(--muted); font-weight: 500; margin-top: 1.4rem; }

.fine { color: var(--muted); font-size: 0.85rem; }

/* ————— hero ————— */

.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(8rem, 20vh, 12rem) var(--pad) clamp(3rem, 7vh, 5rem);
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  /* narrower copy column: size so each phrase wraps cleanly at the commas */
  .display { font-size: clamp(2.6rem, 5vw, 4.5rem); }
}

.hero-art { position: relative; max-width: 400px; justify-self: center; width: 100%; }
.chart { width: 100%; height: auto; display: block; }

.float-dot {
  position: absolute; border-radius: 50%;
  background: var(--blue-tint); border: 2px solid rgba(43, 75, 255, 0.35);
}
.fd-1 { width: 22px; height: 22px; top: -8%; right: 12%; }
.fd-2 { width: 14px; height: 14px; bottom: 4%; left: -4%; }
.fd-3 { width: 10px; height: 10px; top: 34%; right: -5%; }

.hero-cta { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 1rem 2rem; border-radius: 2.5rem;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-blue {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 26px rgba(43, 75, 255, 0.30);
}
.btn-ghost { color: var(--ink); border: 2px solid rgba(23, 22, 30, 0.14); }

/* ————— marquee ————— */

.marquee { padding: 1rem 0 0; }
.marquee-track {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; padding: 0 var(--pad);
}
html.anim .marquee { overflow: hidden; }
html.anim .marquee-track {
  flex-wrap: nowrap; justify-content: flex-start;
  width: max-content; padding: 0;
  gap: 0; /* chips carry margin-right instead — 16 equal spacings so the -50% loop wraps seamlessly */
  will-change: transform;
}
.chip {
  flex: none;
  background: var(--blue-tint); color: var(--blue-deep);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  padding: 0.55rem 1.2rem; border-radius: 2rem;
}
html.anim .chip { margin-right: 0.8rem; }

/* ————— sections ————— */

.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 8rem) var(--pad) 0;
  scroll-margin-top: 72px; /* native anchor offset; Lenis path mirrors as -64 in main.js */
}

/* ————— stats ————— */

.stats {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.stat {
  background: var(--paper-2); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem;
  text-align: center;
}
.icon { width: 30px; height: 30px; display: block; }
.stat .icon { margin: 0 auto 0.7rem; }
.card .icon { margin-bottom: 0.9rem; }
.value .icon { margin-bottom: 0.7rem; }
.tap .icon { margin-bottom: 0.5rem; }
.card-no + .icon { margin-top: 0.2rem; }

.stat .count {
  font-family: var(--head); font-weight: 800; color: var(--blue);
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat p { color: var(--ink-soft); font-weight: 600; margin-top: 0.4rem; font-size: 0.95rem; }

/* ————— cards (services / values / contact) ————— */

.cards {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.card {
  background: var(--paper-2); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
  transition: box-shadow 0.3s ease;
}
.card-no {
  display: inline-block;
  background: var(--blue-tint); color: var(--blue-deep);
  font-weight: 800; font-size: 0.8rem;
  padding: 0.25rem 0.7rem; border-radius: 2rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--head); font-weight: 700;
  font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.5rem; }

/* ————— about ————— */

.about { margin-top: 2.6rem; max-width: 46em; display: grid; gap: 1.2rem; }
.about-lead {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.35;
}
.about p:not(.about-lead) { color: var(--ink-soft); }

.values {
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}

/* ————— reviews ————— */

.reviews {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  align-items: start;
}
.review {
  background: var(--paper-2); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}
.review:nth-child(odd) { rotate: -1deg; }
.review:nth-child(even) { rotate: 1.2deg; margin-top: 1.2rem; }
.review blockquote { font-weight: 500; line-height: 1.6; }
.review blockquote::before { content: "\201C"; color: var(--blue); font-family: var(--head); font-weight: 800; font-size: 1.6em; line-height: 0; margin-right: 0.15em; vertical-align: -0.3em; }
.review figcaption {
  margin-top: 1.2rem; font-weight: 800; font-family: var(--head); font-size: 0.95rem;
}
.review figcaption span { display: block; color: var(--muted); font-family: var(--body); font-weight: 500; font-size: 0.85rem; }

/* ————— contact ————— */

.contact {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.tap {
  display: flex; flex-direction: column; gap: 0.4rem;
  text-decoration: none; color: var(--ink);
  padding: 2.2rem 1.8rem;
}
.tap-label {
  color: var(--blue); font-weight: 800; font-family: var(--head);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.tap strong { font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.tap-fine { color: var(--muted); font-size: 0.88rem; font-weight: 500; }

/* ————— footer ————— */

.footer {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vh, 6rem) var(--pad) 3rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.footer p { color: var(--ink-soft); font-size: 0.95rem; }

/* ————— reveal states (only when JS + motion active) ————— */

html.anim .reveal { opacity: 0; }
html.anim .split-hidden { opacity: 0; }
html.anim .stat, html.anim .card, html.anim .review { opacity: 0; }

/* ————— hover & press affordances ————— */

@media (hover: hover) {
  .nav-links a:hover { color: var(--blue); }
  .nav-cta:hover { background: var(--blue-deep); }
  .btn-blue:hover { background: var(--blue-deep); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
  .card:hover { box-shadow: var(--shadow-lift); }
}
@media (hover: none) {
  /* !important so the squash beats the inline transform GSAP leaves after entrances */
  .card:active, .btn:active, .nav-cta:active { transform: scale(0.97) !important; transition: transform 0.1s ease; }
}

/* ————— responsive ————— */

@media (max-width: 980px) {
  .cards, .values { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reviews, .contact { grid-template-columns: 1fr; }
  .review:nth-child(even) { margin-top: 0; }
}

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .nav-links {
    order: 3; width: 100%;
    justify-content: space-between; gap: 0.8rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.85rem; white-space: nowrap; }
  .nav-cta { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .hero { padding-top: 8.5rem; }
}

@media (max-width: 560px) {
  .cards, .values { grid-template-columns: 1fr; }
  .stats { gap: 1rem; }
  .stat { padding: 1.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
