/* Premium refinements use the shared tokens from color-font.css. */
html {
  scroll-padding-top: 84px;
}

body {
  color: var(--navy);
  background: var(--bg-page);
  font-family: var(--primaryfont);
  letter-spacing: -.008em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy);
  font-family: var(--headingfont);
  letter-spacing: -.04em;
}

p {
  color: var(--muted);
}

a {
  transition: color .2s ease;
}

::selection {
  color: #fff;
  background: #6951df;
}

/* Refined shared header */
.site-header {
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(223, 229, 242, .82);
  box-shadow: 0 8px 32px rgba(21, 32, 62, .045);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.site-header .custom-navbar {
  min-height: 76px;
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.site-header .navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 54px;
  flex: 0 0 158px;
  overflow: hidden;
}

.site-header .navbar-brand .brand-logo {
  width: 158px;
  height: 158px;
  max-width: none;
  flex: 0 0 158px;
  object-fit: contain;
}

.site-header .nav-links {
  gap: .25rem !important;
}

.site-header .nav-links .nav-link {
  padding: .64rem .95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #536078;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.site-header .nav-links .nav-link:hover,
.site-header .nav-links .nav-link.active {
  color: var(--purple-dark);
  background: #f1efff;
  border-color: #e8e3ff;
  transform: translateY(-1px);
}

.site-header .navbar-toggler {
  padding: .55rem .7rem;
  border: 1px solid #e3e7f0;
  border-radius: 12px;
  color: #27344d;
  box-shadow: none;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(101, 79, 224, .14);
}

.btn-gradient {
  background: var(--grad-primary);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(89, 78, 215, .22);
  font-weight: 800;
  letter-spacing: -.01em;
}

.btn-gradient:hover {
  box-shadow: 0 14px 26px rgba(89, 78, 215, .28);
  transform: translateY(-2px);
}

.btn-outline-soft {
  border-radius: 12px;
}

/* Shared section rhythm and elevated cards */
.section-eyebrow {
  color: var(--purple);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-title {
  color: var(--navy);
  font-family: var(--headingfont);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -.055em;
}

.section-desc {
  color: #68748c;
}

.stat-card,
.service-card,
.info-card,
.location-card,
.featured-card,
.case-card,
.testimonial-card,
.privacy-intro-card,
.privacy-box,
.privacy-mini-card {
  border: 1px solid rgba(225, 230, 241, .92);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(30, 43, 78, .065);
}

.stat-card,
.service-card,
.info-card,
.location-card,
.testimonial-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stat-card:hover,
.service-card:hover,
.info-card:hover,
.location-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #d9dafa;
  box-shadow: 0 24px 48px rgba(30, 43, 78, .105);
}

/* Homepage: editorial hero and animated accents */
.hero {
  padding: clamp(5.2rem, 9vw, 8.2rem) 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-lavender) 0%, var(--bg-page) 78%);
}

.hero-blob {
  opacity: .25;
  filter: blur(95px);
  animation: premium-float 13s ease-in-out infinite alternate;
}

.hero .blob-2 {
  animation-delay: -6s;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 1.25rem;
  color: var(--navy);
  font-family: var(--headingfont);
  font-size: clamp(3rem, 7.2vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 660px;
  color: #64708a;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.hero .eyebrow-pill {
  padding: .55rem 1rem;
  color: #5345ae;
  background: rgba(255, 255, 255, .78);
  border-color: #e7e2ff;
  box-shadow: 0 8px 24px rgba(67, 55, 138, .07);
}

.hero .hero-fineprint {
  margin-top: 1.25rem;
}

.hero .stats-row {
  margin-top: 3.2rem;
}

.stat-card {
  padding: 1.55rem 1.5rem;
}

.stat-value {
  color: var(--navy);
  font-family: var(--headingfont);
  letter-spacing: -.05em;
}

.services-section,
.case-study-section,
.faq-section {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.service-card {
  padding: 1.8rem;
}

.service-title {
  font-family: var(--headingfont);
  font-size: 1.08rem;
  letter-spacing: -.03em;
}

.brand-showcase {
  background: var(--surface);
  border-color: var(--border-soft);
}

/* Keep the marquee self-contained in the last-loaded stylesheet for deployment reliability. */
.brand-showcase {
  padding: 2.6rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background-image: url(https://www.vyaparinfotech.com/images/pattern/02.png);
}

.brand-showcase-heading {
  margin-bottom: 1.2rem;
  text-align: center;
}

.brand-showcase-heading .section-eyebrow {
  margin-bottom: .25rem;
}

.brand-showcase-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.brand-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  animation: brand-marquee-slide 34s linear infinite;
}

.brand-marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(1rem, 6vw, 2rem);
  padding: 0 clamp(1.25rem, 3vw, 1rem);
}

.brand-marquee-group img {
  display: block;
  width: auto;
  height: 68px;
  max-width: 180px;
  object-fit: contain;
  opacity: .78;
  /* filter: grayscale(1); */
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
  padding: 5px 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.brand-marquee-group img:hover {
  opacity: 1;
  filter: grayscale(0);
  /* transform: translateY(-2px); */
}

@keyframes brand-marquee-slide {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767.98px) {
  .brand-showcase {
    padding: 2.1rem 0;
  }

  .brand-marquee-group {
    gap: 2.2rem;
  }

  .brand-marquee-group img {
    height: 34px;
    max-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .brand-marquee-track {
    animation: none;
  }

  .brand-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* Keep the footer logo's dimensions stable across flex and mobile layouts. */
.site-footer .logo-container {
  width: 190px;
  min-width: 190px;
  height: 48px;
  flex: 0 0 190px;
  overflow: hidden;
}

.site-footer .logo-container .brand-logo {
  display: block;
  width: 190px;
  min-width: 190px;
  max-width: none;
  height: 48px;
  flex: 0 0 190px;
  object-fit: cover;
  object-position: center;
}

/* Contact page */
.contact-hero {
  padding: clamp(3.6rem, 6vw, 5.5rem) 0;
  background: radial-gradient(ellipse at 15% 10%, #f0edff 0, transparent 43%), linear-gradient(145deg, #f8f9ff 0%, #f2f7ff 100%);
}

.contact-title {
  max-width: 820px;
  font-family: var(--headingfont);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.065em;
  line-height: 1.08;
}

.contact-subtitle {
  max-width: 680px;
  color: #68748b;
  line-height: 1.8;
}

.contact-hero .info-card {
  border-radius: 22px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.form-card {
  border: 1px solid #e5e8f2;
}

.custom-input {
  border-color: #dfe4ef;
  border-radius: 12px;
  padding: .78rem .9rem;
}

.custom-input:focus {
  border-color: #8f81e8;
  box-shadow: 0 0 0 4px rgba(111, 87, 220, .12);
}

.pill-select {
  border-radius: 999px;
}

.location-card {
  overflow: hidden;
}

/* Portfolio page */
body:has(.hero-section) {
  background: var(--bg-page);
}

.hero-section {
  padding: clamp(3.8rem, 7vw, 6.3rem) 0 3rem;
  background: radial-gradient(ellipse at 78% 0%, var(--bg-lavender) 0%, var(--bg-page) 78%);
}

.hero-section h1 {
  color: var(--navy);
  font-family: var(--headingfont);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1.02;
}

.hero-copy {
  color: #68748b;
  font-size: 1rem;
  line-height: 1.8;
}

.filter-chip {
  padding: .65rem 1rem;
  border: 1px solid #e5e8f2;
  background: #fff;
  color: #5c6880;
}

.filter-chip.active {
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(88, 75, 206, .19);
}

.featured-card {
  border-radius: 26px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 65px rgba(30, 43, 78, .085);
}

.featured-card h2 {
  color: var(--navy);
  font-family: var(--headingfont);
  letter-spacing: -.055em;
  line-height: 1.12;
}

.featured-visual img,
.case-image-wrap img {
  border-radius: 18px;
}

.cta-card {
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(57, 64, 173, .19);
}

/* Services page refinement */
.services-hero {
  background: radial-gradient(ellipse at 72% 0%, #ebe9ff 0%, #f5f7ff 43%, #f9faff 82%);
}

.services-hero h1 {
  font-family: var(--headingfont);
  letter-spacing: -.07em;
}

.capability-card {
  border-radius: 22px;
  box-shadow: 0 17px 42px rgba(30, 43, 78, .07);
}

.method-step {
  border-radius: 18px;
}

/* Policy and thank-you pages */
.privacy-hero {
  background: radial-gradient(ellipse at 78% 0%, var(--bg-lavender) 0%, var(--bg-page) 100%);
}

.privacy-title {
  font-family: var(--headingfont);
  letter-spacing: -.06em;
}

.privacy-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.privacy-table {
  border-radius: 16px;
}

.thankyou-page main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.thankyou-page .card {
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--purple);
  border-image: none;
  border-radius: 22px;
}

.thankyou-page h1 {
  font-family: var(--headingfont);
  letter-spacing: -.065em;
}

.thankyou-page .step {
  padding: 1rem;
  border-radius: 15px;
  background: #f8f9ff;
}

.thankyou-page .site-header {
  position: sticky;
}

.thankyou-page .site-header nav {
  justify-content: initial;
  padding: 0;
}

.thankyou-page .site-header nav a {
  padding: .64rem .95rem;
  border-radius: 999px;
}

.thankyou-page .site-header .nav-links .nav-link:hover,
.thankyou-page .site-header .nav-links .nav-link.active {
  background: #f1efff;
}

/* Footer: balanced spacing and clear hierarchy */
.site-footer {
  padding: 2rem 0 1.2rem;
  background: #f6f7fc;
  border-top: 1px solid #e8ebf3;
}

.site-footer .footer-layout {
  gap: 1.5rem !important;
}

.site-footer .footer-links {
  gap: .6rem 1.2rem;
}

.site-footer .footer-links a {
  color: #64708a;
  font-weight: 700;
}

.site-footer .footer-links a:hover {
  color: #5e48d4;
}

.site-footer .footer-social a {
  width: 40px;
  height: 40px;
  color: #596680;
  background: #fff;
  border-color: #e4e8f1;
  transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}

.site-footer .footer-social a:hover {
  transform: translateY(-3px);
  color: #5d49cf;
  box-shadow: 0 8px 20px rgba(48, 59, 102, .1);
}

.site-footer hr {
  border-top-color: #e2e6f0 !important;
}

@keyframes premium-float {
  from {
    transform: translate3d(0, 0, 0) scale(.96);
  }

  to {
    transform: translate3d(16px, 22px, 0) scale(1.05);
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: .8rem;
    padding: .9rem 1rem 1rem;
    border: 1px solid rgba(216, 220, 234, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 34px rgba(20, 29, 53, .08);
  }

  .site-header .nav-links {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    gap: .35rem !important;
  }

  .site-header .nav-links .nav-link {
    width: 100%;
    padding: .8rem .9rem;
    border-radius: 12px;
    display: block;
  }

  .site-header .nav-cta-group {
    width: 100%;
    margin-top: .65rem;
  }

  .site-header .nav-cta-group .btn {
    width: 100%;
  }

  .hero {
    padding-top: 5.5rem;
  }
}

@media (max-width: 767.98px) {
  .site-header .custom-navbar {
    min-height: 66px;
  }

  .site-header .navbar-brand {
    width: 145px;
    height: 48px;
    flex-basis: 145px;
  }

  .site-header .navbar-brand .brand-logo {
    width: 145px;
    height: 145px;
    flex-basis: 145px;
  }

  .hero {
    padding: 4.2rem 0 3.4rem;
  }

  .hero-title {
    font-size: clamp(2.55rem, 11vw, 3.8rem);
  }

  .hero .stats-row {
    margin-top: 2.2rem;
  }

  .hero-section {
    padding-top: 3.6rem;
  }

  .featured-card {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: clamp(2.25rem, 9vw, 3.3rem);
  }

  .site-footer {
    padding-top: 1.6rem;
  }

  .site-footer .logo-container {
    flex-basis: 48px;
  }



  .thankyou-page .card {
    padding: 1.35rem;
  }
}

@media (hover: none),
(pointer: coarse) {

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }

  body,
  a,
  button,
  input,
  textarea {
    cursor: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal-ready .reveal,
  .reveal-ready .reveal-top,
  .reveal-ready .reveal-bottom,
  .reveal-ready .reveal-left,
  .reveal-ready .reveal-right,
  .reveal-ready .reveal-scale,
  .reveal-ready .reveal-scale-down,
  .reveal-ready .reveal-fade,
  .reveal-ready .reveal-rotate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Two equally sized groups keep each logo row seamless. */
.brand-marquee+.brand-marquee {
  margin-top: 1.8rem;
}

.brand-marquee-reverse .brand-marquee-track {
  animation-direction: reverse;
}

.brand-showcase.is-paused .brand-marquee-track {
  animation-play-state: paused;
}

.brand-motion-toggle {
  margin-top: .65rem;
  padding: .25rem .65rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
}



/* The outer section supplies scroll distance; the inner stage stays in view. */
.services-scroll.is-pinned {
  padding: 0;
  position: relative;
}

.services-scroll.is-pinned>.services-stage {
  position: sticky;
  top: var(--services-top);
  padding-top: 24px;
  padding-bottom: 24px;
  overflow: clip;
}

.services-scroll.is-pinned .services-header,
.services-scroll.is-pinned .services-section-heading {
  margin-bottom: 24px;
}

.services-scroll.is-pinned .services-track {
  flex-wrap: nowrap;
  margin: 0;
  gap: 24px;
  will-change: transform;
}

.services-scroll.is-pinned .services-track>div {
  flex: 0 0 clamp(290px, 30vw, 380px);
  width: clamp(290px, 30vw, 380px);
  padding: 0;
  margin: 0;
}

.services-scroll.is-pinned .service-card,
.services-scroll.is-pinned .capability-card {
  opacity: 1;
  transform: none;
  height: 100%;
}

.services-scroll.is-pinned .services-stage [class*="reveal"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-motion-toggle {
    display: none;
  }
}

/* Page-specific artwork fills the open side of left-aligned heroes. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.hero-copy-column {
  min-width: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, #e7e2ff 0%, #eaf4ff66 50%, transparent 72%);
  filter: blur(18px);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: hero-art-float 6s ease-in-out infinite;
}

.hero-visual.is-paused img {
  animation-play-state: paused;
}

.hero-motion-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ded9f3;
  border-radius: 50%;
  color: #6e5ca2;
  background: #ffffffd9;
  font-size: .7rem;
}

.hero-motion-toggle[hidden] {
  display: none;
}

.hero-motion-toggle:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.hero-split h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
}

.blog-main .blog-hero .hero-split h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
}

.contact-hero .hero-split {
  margin-bottom: 2rem;
}

.hero-section .hero-split {
  margin-bottom: 1.5rem;
}

.privacy-hero .hero-visual {
  max-width: 310px;
}

.privacy-hero .hero-split h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
}

.thankyou-page .hero-split {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.thankyou-page .thankyou-hero .hero-split h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

@keyframes hero-art-float {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@media (max-width: 991.98px) {

  .hero-split,
  .thankyou-page .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero-visual {
    max-width: 320px;
  }

  .privacy-hero .hero-visual {
    max-width: 250px;
  }
}

@media (max-width: 575.98px) {
  .hero-visual {
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img {
    animation: none;
  }

  .hero-motion-toggle {
    display: none;
  }
}

/* Website previews: full-page artwork travels inside a fixed browser window. */
.website-showcase {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--bg-lavender);
  color: var(--navy);
}

.website-showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.8rem;
}

.website-showcase .section-eyebrow {
  color: var(--purple);
}

.website-showcase-heading h2 {
  color: var(--navy);
  margin: .75rem 0 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.07;
  letter-spacing: -.05em;
}

.website-showcase-heading h2 span {
  color: var(--purple);
  font: inherit;
}

.website-showcase-heading p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.website-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.website-card[hidden] {
  display: none;
}

.website-browser {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  background: var(--lavender);
}

.website-browser>span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-soft);
}

.website-browser>span:first-child {
  background: var(--blue);
}

.website-browser>span:nth-child(2) {
  background: var(--purple);
}

.website-browser>span:nth-child(3) {
  background: var(--teal);
}

.website-browser small {
  margin-left: auto;
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.website-preview {
  --preview-height: 420px;
  height: var(--preview-height);
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  text-align: left;
}

.website-preview img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 6s cubic-bezier(.2, .55, .3, 1);
}

.website-preview.is-scrolled img,
.website-preview:focus-visible img {
  transform: translateY(min(0px, calc(var(--preview-height) - 100%)));
}

@media (hover: hover) {
  .website-preview:hover img {
    transform: translateY(min(0px, calc(var(--preview-height) - 100%)));
  }
}

.preview-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--purple-dark);
  color: #fff;
  font-size: .66rem;
  pointer-events: none;
}

.website-preview:hover .preview-hint,
.website-preview.is-scrolled .preview-hint {
  opacity: 0;
}

.website-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px;
}

.website-caption h3 {
  color: var(--navy);
  margin: 0 0 5px;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.website-caption span {
  color: var(--muted);
  font-size: .7rem;
}

.website-caption a {
  color: var(--purple-dark);
  padding: 10px;
}

.website-showcase-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: .8rem;
}

.website-showcase-bottom a {
  color: var(--purple-dark);
  text-decoration: none;
}

.website-preview:focus-visible,
.website-caption a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: -3px;
}

/* Framed certificate carousel. Sample status stays visible on every card. */
.certification-section {
  padding: 5rem 0;
  background: radial-gradient(var(--border-soft) 1px, transparent 1px) 0 0 / 16px 16px, var(--bg-page);
  overflow: hidden;
}

.certification-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.certification-heading p {
  margin-bottom: 0;
  font-size: .92rem;
}

.certificate-track {
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 25px max(24px, calc((100% - 430px) / 2));
  scrollbar-width: none;
}

.certificate-track::-webkit-scrollbar {
  display: none;
}

.certificate-slide {
  flex: 0 0 430px;
  min-width: 0;
  scroll-snap-align: center;
  transform: scale(.94);
  transition: transform .35s ease;
}

.certificate-slide.is-active {
  transform: scale(1);
}

.certificate-frame {
  padding: 15px;
  background: linear-gradient(135deg, #462016, #bc7730 7%, #f3c577 10%, #723216 14%, #a15722 87%, #e4aa50 92%, #552417);
  border: 3px solid #63311d;
  box-shadow: 0 12px 26px #36251a26, inset 0 0 0 3px #df9950;
}

.certificate-paper {
  position: relative;
  min-height: 326px;
  padding: 23px 17px 19px;
  border: 3px double #c6ad7b;
  background: #fffefa;
  text-align: center;
}

.certificate-sample {
  display: block;
  color: #986223;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 15px;
}

.certificate-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border: 1px dashed #b5b3af;
  border-radius: 50%;
}

.certificate-seal i {
  color: #4285f4;
  font-size: 26px;
}

.certificate-seal span {
  font-size: 6px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.certificate-paper p {
  font-size: .68rem;
  margin: 5px 0;
  color: #777;
}

.certificate-paper h3 {
  font-size: 1.25rem;
  margin: 7px 0;
  font-weight: 500;
  letter-spacing: .01em;
  color: #454545;
}

.certificate-paper h4 {
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
  margin: 14px 0;
  color: #4b4b4b;
}

.certificate-rule {
  height: 1px;
  width: 60px;
  background: #d1b36c;
  margin: 12px auto;
}

.certificate-paper small {
  font-size: .62rem;
  color: #8b7453;
  line-height: 1.5;
  display: block;
}

.certificate-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.certificate-controls button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  font-size: 1.3rem;
  color: var(--navy);
  box-shadow: 0 3px 8px #15102c09;
}

.certificate-controls button:hover {
  background: var(--lavender);
}

.certificate-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.certificate-count {
  font-size: .8rem;
  color: var(--muted);
  min-width: 38px;
  text-align: center;
}

/* Reference layout using the shared light palette and brand typography. */
.site-footer.agency-footer {
  background: #fff !important;
  border-top: 1px solid var(--border-soft);
  padding: 4.5rem 0 0;
  color: var(--muted);
  text-align: left;
}

.agency-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.1fr 1.15fr 1fr;
  gap: 24px;
}

.agency-footer-brand {
  min-width: 0;
}

.agency-footer-logo {
  display: inline-block;
  width: 175px;
  margin-bottom: 24px;
}

.agency-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.agency-footer-brand p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-label {
  color: var(--muted);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .28em;
}

.agency-footer-social {
  display: flex;
  gap: 9px;
  margin-left: auto;
  align-self: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width:767px) {
  .agency-footer-social {
  
  margin-left:unset !important;
   margin:auto !important;

}
.agency-footer-bottom p{
  margin:auto !important;
}
}

.agency-footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--muted);
  font-size: .8rem;
}

.agency-footer-social a:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.agency-footer-column {
  border-left: 1px solid var(--border-soft);
  padding-left: 22px;
  min-width: 0;
}

.agency-footer-column h2 {
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0 0 22px;
}

.agency-footer-column h2>i {
  color: var(--purple);
  font-size: 1rem;
}

.agency-footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.agency-footer-column li {
  margin-bottom: 13px;
  font-size: .82rem;
  line-height: 1.5;
}

.agency-footer-column li a {
  display: flex;
  gap: 8px;
}

.agency-footer-column li a::before {
  content: '›';
  color: var(--purple-dark);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: .9;
  flex: 0 0 11px;
}

.agency-footer a {
  text-decoration: none;
}

.agency-footer-column a {
  color: var(--muted);
}

.agency-footer-column a:hover {
  color: var(--purple);
}

.footer-contact-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .8rem;
  margin-bottom: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-contact-row>i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: var(--purple);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--surface);
  font-size: .7rem;
}

.agency-footer-column .footer-contact-cta {
  margin-top: 22px;
  max-width: 100%;
}

.footer-credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.footer-credential-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 73px;
  padding: 9px 5px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: 4px;
  text-align: center;
}

.footer-credential-grid i {
  font-size: 1.35rem;
  color: var(--blue);
}

.footer-credential-grid a:nth-child(2) i {
  color: var(--purple);
}

.footer-credential-grid a:nth-child(3) i {
  color: var(--blue);
}

.footer-credential-grid a:nth-child(4) i {
  color: var(--teal);
}

.footer-credential-grid span {
  font-size: .6rem;
}

.footer-credential-note {
  display: block;
  margin-top: 12px;
  font-size: .66rem;
}

.footer-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 30px 20px;
  margin: 45px 0;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface);
}

.footer-values>div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border-right: 1px solid var(--border-soft);
}

.footer-values>div:last-child {
  border: 0;
}

.footer-values i {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  height: 39px;
  border-radius: 12px;
  color: var(--purple);
  border: 1px solid var(--border-soft);
  background: var(--lavender);
  box-shadow: 0 0 15px rgba(124, 58, 237, .06);
}

.footer-values strong {
  display: block;
  color: var(--navy);
  font-size: .8rem;
  margin-bottom: 5px;
}

.footer-values small {
  display: block;
  font-size: .66rem;
  line-height: 1.6;
  color: var(--muted);
}

.agency-footer-bottom {
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 0;
  font-size: .7rem;
}

.agency-footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.agency-footer-bottom a {
  color: var(--muted);
}

.agency-footer-bottom .agency-footer-social a:hover {
  color: var(--purple);
}

.agency-footer a:focus-visible,
.certificate-controls button:focus-visible,
.certificate-track:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

@media (max-width:1199.98px) {
  .agency-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .agency-footer-column {
    padding-left: 18px;
  }

  .footer-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-values>div:nth-child(2) {
    border: 0;
  }

  .website-preview {
    --preview-height: 360px;
  }
}

@media (max-width:991.98px) {
  .website-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .website-showcase-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .website-showcase-heading p {
    margin: 0;
  }

  .website-preview {
    --preview-height: 400px;
  }
}

@media (max-width:767.98px) {
  .agency-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .agency-footer-brand {
    grid-column: 1/-1;
    max-width: 420px;
  }

  .agency-footer-column {
    padding-left: 0;
    border: 0;
  }

  .agency-footer-column h2 {
    font-size: .98rem;
  }

  .footer-values {
    padding: 22px 8px;
  }

  .footer-values>div {
    padding: 0 10px;
    border: 0;
    gap: 10px;
  }

  .agency-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .certificate-slide {
    flex-basis: min(430px, calc(100vw - 48px));
  }

  .certificate-track {
    gap: 16px;
    padding-inline: 24px;
  }

  .certificate-paper {
    padding-inline: 9px;
  }

  .certificate-paper h3 {
    font-size: 1.08rem;
  }

  .certificate-paper h4 {
    font-size: .9rem;
  }
}

@media (max-width:575.98px) {
  .website-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .website-preview {
    --preview-height: 430px;
  }

  .website-showcase-bottom {
    flex-direction: column;
  }

  .footer-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .certificate-frame {
    padding: 10px;
  }

  .certification-section {
    padding-block: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .website-preview img,
  .certificate-slide {
    transition: none;
  }

  .certificate-track {
    scroll-behavior: auto;
  }
}

/* Use the real transparent mark; the legacy light-logo asset contains a checkerboard. */
.agency-footer-logo {
  width: 190px;
  height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.agency-footer-logo img {
  width: 190px;
  height: 190px;
  max-width: none;
  flex: 0 0 190px;
  filter: none;
}

/* Keep typography consistent with every other section of the site. */
.website-showcase,
.certification-section,
.agency-footer {
  font-family: var(--primaryfont);
}

.website-showcase :is(h2, h3),
.certification-section :is(h2, h3, h4),
.agency-footer h2 {
  font-family: var(--headingfont);
}

.website-showcase button,
.certificate-controls button {
  font-family: var(--primaryfont);
}

.certificate-controls .certificate-autoplay {
  width: 42px;
  font-size: .85rem;
  color: var(--purple);
}

.certificate-controls .certificate-autoplay[hidden] {
  display: none;
}

/* Autoplay wraps between identical copies; native snap must not fight frame updates. */
.certificate-track.is-looping {
  position: relative;
  scroll-snap-type: none;
  scroll-behavior: auto !important;
  overflow-anchor: none;
}

.certificate-track.is-looping .certificate-slide {
  transform: scale(var(--certificate-scale, .94));
  transition: none;
}
/* Contact discovery begins alongside the introduction, before supporting cards. */
.contact-hero {
  padding-top: clamp(1.75rem, 3vw, 3rem);
}
.contact-hero .contact-intro {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "intro form" "details form";
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 2rem;
}
.contact-intro .hero-copy-column { grid-area: intro; padding-top: 1rem; }
.contact-intro .contact-grid { grid-area: details; margin: 0; }
.contact-intro .contact-details-grid { padding: 0; grid-template-columns: minmax(0, 1fr); }
.contact-intro .contact-title {
  font-size: clamp(2.1rem, 3.7vw, 3.5rem);
  letter-spacing: -.045em;
}
.contact-intro .contact-subtitle { margin-bottom: 0; }
.contact-form-column { grid-area: form; min-width: 0; }
.contact-intro .form-card {
  border-top: 3px solid var(--purple);
  box-shadow: 0 18px 55px #302e7010;
}
.contact-intro .info-title { margin-bottom: .65rem; }
.contact-intro .custom-input { padding: .65rem .85rem; }
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.contact-details-grid .info-card { min-width: 0; }
.contact-details-grid .chip-value { overflow-wrap: anywhere; }
.contact-details-grid .review-stars { flex-wrap: wrap; }

/* Account for the fixed navigation on same-page and cross-page anchor links. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { overflow-x: clip; }
.page-scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1100;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.motion-item {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition: opacity .7s ease, translate .8s cubic-bezier(.22, 1, .36, 1),
    scale .8s cubic-bezier(.22, 1, .36, 1), transform .3s ease, box-shadow .3s ease;
}
.motion-ready .motion-item:not(.is-visible) {
  opacity: 0;
  translate: 0 28px;
  scale: .985;
  transition-delay: 0s;
}
.motion-ready .motion-item.is-above:not(.is-visible) { translate: 0 0; }
.motion-ready .motion-item.is-visible { transition-delay: var(--motion-delay, 0ms); }
.motion-ready .motion-item:focus-within { opacity: 1; translate: 0 0; scale: 1; }
/* Horizontal service cards are already animated by their pinned scroll track. */
.services-scroll.is-pinned .services-stage .motion-item {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.blog-read { display: inline-flex; align-items: center; gap: .4rem; }
.blog-read::after { content: '\2192'; transition: translate .25s ease; }
.blog-read:hover::after { translate: 4px 0; }
.blog-read:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1200px) {
  .agency-footer-grid { grid-template-columns: 1.2fr .8fr 1.1fr 1.2fr; }
}
@media (max-width: 991.98px) {
  .contact-hero .contact-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "form" "details";
  }
  .contact-intro .hero-copy-column { padding-top: 0; }
}
@media (max-width: 767.98px) {
  .contact-details-grid { grid-template-columns: minmax(0, 1fr); }
  .motion-ready .motion-item:not(.is-visible) { translate: 0 18px; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .motion-item,
  .motion-ready .motion-item:not(.is-visible) {
    opacity: 1;
    translate: none;
    scale: 1;
    transition: none;
  }
  .blog-read::after { transition: none; }
}
