/* Ashwamedh Group — base
   Reset helpers, type, links, focus, utilities, reduced motion.
   Every rule that changes the page is scoped to body.ag. */

html {
  scroll-behavior: smooth;
}

body.ag :where(img, video, iframe, svg) {
  max-width: 100%;
}

:where(body.ag) img[width][height] {
  height: auto;
}

body.ag :where(h1, h2, h3, h4, td, th) {
  overflow-wrap: anywhere;
}

body.ag :where(pre) {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 767.98px) {
  body.ag :where(input, select, textarea) {
    font-size: 1rem;
  }
}

body.ag {
  margin: 0;
  font-family: var(--ag-font-ui);
  font-size: var(--ag-fs-md);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ag-ink);
  background: var(--ag-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ag h1,
body.ag h2,
body.ag h3 {
  font-family: var(--ag-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ag-ink);
  margin: 0 0 var(--ag-s3);
}

body.ag h1 { font-size: var(--ag-fs-4xl); line-height: 1.08; }
body.ag h2 { font-size: var(--ag-fs-2xl); line-height: 1.2; }
body.ag h3 { font-size: var(--ag-fs-xl); }

body.ag h4,
body.ag h5,
body.ag h6 {
  font-family: var(--ag-font-ui);
  font-weight: 700;
  color: var(--ag-ink);
  margin: 0 0 var(--ag-s2);
}

body.ag p {
  margin: 0 0 var(--ag-s4);
  color: var(--ag-muted);
}

body.ag a {
  color: var(--ag-green-700);
  text-underline-offset: 3px;
}

body.ag a:hover {
  color: var(--ag-green-800);
}

body.ag :focus {
  outline: none;
}

body.ag :focus-visible {
  outline: 2px solid var(--ag-green-700);
  outline-offset: 3px;
  border-radius: var(--ag-r-sm);
}

body.ag .ag-skip {
  position: absolute;
  left: var(--ag-s3);
  top: -48px;
  z-index: 2000;
  background: var(--ag-green-800);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--ag-r-sm);
  text-decoration: none;
  font-weight: 700;
}

body.ag .ag-skip:focus {
  top: var(--ag-s3);
  outline-color: #fff;
}

.ag-wrap {
  width: min(1200px, calc(100% - clamp(1.5rem, 5vw, 4rem)));
  margin-inline: auto;
}

.ag-section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.js body.ag .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ag-ease), transform 0.6s var(--ag-ease);
}

html.js body.ag .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js body.ag [data-stagger] > .reveal:nth-child(2) { transition-delay: 75ms; }
html.js body.ag [data-stagger] > .reveal:nth-child(3) { transition-delay: 150ms; }
html.js body.ag [data-stagger] > .reveal:nth-child(4) { transition-delay: 225ms; }
html.js body.ag [data-stagger] > .reveal:nth-child(5) { transition-delay: 300ms; }
html.js body.ag [data-stagger] > .reveal:nth-child(6) { transition-delay: 375ms; }

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: var(--ag-ease, ease);
}

@media (prefers-reduced-motion: reduce) {
  html.js body.ag [data-stagger] > .reveal { transition-delay: 0ms; }

  html { scroll-behavior: auto; }

  body.ag *,
  body.ag *::before,
  body.ag *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js body.ag .reveal,
  html.js .hero-rise {
    opacity: 1;
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

@media (scripting: none) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
