@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Brand Tagline Lockup: "Brands, Reforged." matching the UDM logo mark typography */
.brand-tagline,
.brands-reforged {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-tagline strong,
.brand-tagline b,
.brands-reforged strong,
.brands-reforged b {
  font-family: inherit;
  font-style: italic;
  font-weight: 800;
}

:root {
  --purple: #38138d;
  --purple-dark: #250d60;
  --purple-vivid: #7c3aed;
  --lilac: #e7defa;
  --lilac-2: #e0d4ff;
  --ink: #0c0c10;
  --muted: #555560;
  --paper: #ffffff;
  --line: #e4e2ea;
  --soft: #f6f4f8;
  --card-blue: #e2e8f4;
  --pad: clamp(1.25rem, 3.5vw, 4rem);
  --radius: clamp(1.1rem, 2vw, 2rem);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --shadow: 0 18px 60px rgba(30, 17, 72, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

.page {
  min-height: 100vh;
}

.shell {
  padding-inline: var(--pad);
  max-width: 1440px;
  margin-inline: auto;
}

/* Shared banner-heading rhythm across every page. */
:is(
  h1.hero-title,
  .services-hero h1.services-title,
  .method-hero h1.method-title,
  .about-hero h1,
  .contact-hero h1,
  .tamil-case .hero h1,
  .vpj-case .hero h1,
  .aachi-case h1.case-title,
  .not-found-copy h1
) {
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
}

/* ============================================================
   GLOBAL HEADER & NAVIGATION
   ============================================================ */
.header {
  height: 76px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--pad);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}

.header.scrolled {
  border-color: var(--line);
}

.logo {
  width: clamp(140px, 13vw, 100px);
  display: block;
}

.nav {
  display: none;
  gap: clamp(1rem, 2vw, 2.2rem);
  align-items: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.nav a {
  padding: 0.55rem 0;
  position: relative;
  color: #0c0c10;
  transition: color 0.2s ease;
}

.nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: 0.3s var(--ease);
}

.nav a:hover:after,
.nav a.active:after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #0c0c10;
  color: #ffffff;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: var(--purple);
  color: #ffffff;
  transform: translateY(-1px);
}

.header-cta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
}

.menu {
  display: flex;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 110;
}

.header > .header-cta {
  margin-left: auto;
  /* margin-right: 1.5rem; */
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  position: relative;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 0.2s ease,
    background-color 0.2s ease;
  transform-origin: center;
}

.menu[aria-expanded="true"] .hamburger .bar:nth-child(1) {
  transform: translateY(7.75px) rotate(45deg);
}

.menu[aria-expanded="true"] .hamburger .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu[aria-expanded="true"] .hamburger .bar:nth-child(3) {
  transform: translateY(-7.75px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 99;
  inset: 76px 0 0;
  background: #fff;
  padding: 2rem var(--pad);
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav > a {
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.2s ease;
}

.mobile-nav > a:hover,
.mobile-nav > a.active {
  color: var(--purple);
}

main {
  padding-top: 76px;
}

/* ============================================================
   SHARED TYPOGRAPHY & COMMON UTILITIES
   ============================================================ */
.purple-highlight {
  color: var(--purple);
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: var(--purple);
  margin: 0 0 1.4rem;
}

.eyebrow.light {
  color: var(--lilac-2);
}

.display {
  font-size: clamp(3.35rem, 9vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 900;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}

.display.medium {
  font-size: clamp(2.9rem, 7vw, 7rem);
  max-width: 15ch;
}

.display.small {
  font-size: clamp(2.4rem, 5.7vw, 5.8rem);
}

.kicker {
  font-size: clamp(1.2rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 750;
  max-width: 35ch;
  margin: 0;
}

.body-lg {
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  line-height: 1.42;
  letter-spacing: -0.025em;
  max-width: 46ch;
  color: var(--muted);
  margin: 0;
}

.body {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

.section {
  position: relative;
}

.section-tight {
  padding: clamp(3.5rem, 7vw, 7rem) var(--pad);
}

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

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: #0b0712;
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.rule {
  border-top: 1px solid currentColor;
  padding-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--purple);
  transition: 0.3s var(--ease);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.button.light {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}

.button.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.arrow {
  font-size: 1.25rem;
  line-height: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE BASE OVERRIDES
   ============================================================ */

@media (min-width: 1440px) {
  .shell {
    max-width: 1440px;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 68px;
  }

  .mobile-nav {
    top: 68px;
  }

  .header {
    height: 68px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu {
    display: flex;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 1rem;
    --radius: 1rem;
  }

  .header {
    height: 68px;
  }

  .mobile-nav {
    top: 68px;
  }

  .logo {
    width: clamp(90px, 1vw, 100px);
  }

  main {
    padding-top: 68px;
  }

  .display {
    font-size: clamp(3.15rem, 16vw, 5.5rem);
    line-height: 0.91;
    letter-spacing: -0.07em;
    max-width: 10.7ch;
  }

  .display.medium,
  .display.small {
    font-size: clamp(2.75rem, 14vw, 4.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
