/*
 * FiveNeurals brand layer on top of the Agenio template (style.css).
 * Loaded last. Only add rules here for things the template cannot express
 * with FiveNeurals content (our logo, photo aspect ratios, longer words).
 */

:root {
  --font-primary: var(--font-space-grotesk), "Space Grotesk", sans-serif;
  --font-secondary: var(--font-urbanist), "Urbanist", sans-serif;
}

/* ---------- Logo (header / footer / comparison card) ---------- */
.fn-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}
.fn-logo-mark {
  height: 31px;
  width: auto;
}
.fn-logo-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-heading-1);
  white-space: nowrap;
}
.fn-logo--footer {
  gap: clamp(16px, 2.4vw, 32px);
}
.fn-logo--footer .fn-logo-mark {
  height: min(190px, 13vw);
}
.fn-logo--footer .fn-logo-text {
  font-size: min(150px, 9.4vw);
  font-weight: 500;
  letter-spacing: -0.06em;
  background: linear-gradient(137.66deg, #55595c 21.13%, #000000 80.53%), #030712;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}

/* ---------- Hero centre tile (replaces center-hero.webp) ---------- */
.fn-hero-tile {
  position: relative;
  display: block;
  width: 303px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(145deg, #fbfbfc 0%, #f1f2f4 100%);
  border: 1px solid #e5e7eb;
}
.fn-hero-tile::before {
  content: "";
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  border: 1px dashed rgba(3, 7, 18, 0.18);
  background: radial-gradient(circle at 45% 40%, #ffffff 0%, #ffffff 58%, #f5f6f7 100%);
}
.fn-hero-tile img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 56%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* "INTELLIGENT" is longer than the template's "CREATIVE": size the hero
   words from the banner's real width (container query), never wrap them. */
.wpr-banner-area .banner-content-area {
  container-type: inline-size;
}
.wpr-banner-area .banner-content-area .section-title.fn-hero-title {
  font-size: min(108px, calc((100cqw - 340px) / 12));
}
.wpr-banner-area .banner-content-area .section-title.fn-hero-title .text {
  white-space: nowrap;
}
@media (max-width: 1439px) {
  .wpr-banner-area .banner-content-area .section-title.fn-hero-title {
    font-size: min(90px, calc((100cqw - 290px) / 12));
  }
}
@media (max-width: 1200px) {
  .wpr-banner-area .banner-content-area .section-title.fn-hero-title {
    font-size: min(72px, calc((100cqw - 240px) / 12));
  }
}
@media (max-width: 768px) {
  .wpr-banner-area .banner-content-area .section-title.fn-hero-title {
    font-size: min(44px, calc((100cqw - 170px) / 12));
  }
}
@media (max-width: 576px) {
  .wpr-banner-area .banner-content-area .section-title.fn-hero-title {
    font-size: min(44px, calc((100cqw - 40px) / 6.5));
  }
}

/* ---------- CTA centre logo (replaces cta-logo.svg) ---------- */
.fn-cta-logo {
  position: relative;
  display: inline-block;
  width: 105px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #ffffff 60%, #f2f3f5 100%);
  box-shadow: 0 10px 30px rgba(3, 7, 18, 0.08);
}
.wpr-cta-area .section-inner .logo .fn-cta-logo img,
.fn-cta-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 52%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  /* filter: drop-shadow(6px 8px 8px rgba(0, 0, 0, 0.18)); */
}

/* ---------- Pillars: 3-column variant (PillarsSection columns={3}) ---------- */
.wpr-why-choose-us-area2 .section-inner .bottom-content-area.fn-cols-3 {
  flex-wrap: wrap;
}
.wpr-why-choose-us-area2 .section-inner .bottom-content-area.fn-cols-3 .why-choose-wrapper2 {
  width: 33.3333%;
}
.wpr-why-choose-us-area2 .section-inner .bottom-content-area.fn-cols-3 .why-choose-wrapper2:nth-child(n + 4) {
  border-top: 1px solid rgba(3, 7, 18, 0.1);
}
@media (max-width: 991px) {
  .wpr-why-choose-us-area2 .section-inner .bottom-content-area.fn-cols-3 .why-choose-wrapper2 {
    width: 50%;
  }
}
@media (max-width: 576px) {
  .wpr-why-choose-us-area2 .section-inner .bottom-content-area.fn-cols-3 .why-choose-wrapper2 {
    width: 100%;
  }
}

/* ---------- Careers: roles in the awards accordion (OpenRoles.tsx) ---------- */
.award-item.fn-role.active .left .content .desc {
  height: auto;
}
.award-item.fn-role .left .content .desc p {
  margin-bottom: 20px;
}
.fn-role-meta {
  display: block;
  margin-top: 8px;
  text-transform: none;
  color: var(--color-body-1);
}

/* ---------- Blog ---------- */
.fn-blog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, #fbfbfc 0%, #eceef1 100%);
}
.fn-blog-placeholder img {
  height: 70px;
  width: auto;
  opacity: 0.9;
}
.fn-blog-placeholder--sm {
  min-height: 80px;
  width: 80px;
  height: 80px;
}
.fn-blog-placeholder--sm img {
  height: 32px;
}
.article-blog .blog-image img {
  object-fit: cover;
}
.relatest-post-item .image img {
  object-fit: cover;
}
.fn-blog-filter {
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-heading-1);
  margin-bottom: 24px;
}
.fn-blog-filter a {
  color: var(--color-primary);
  text-decoration: underline;
}
.sidebar-categories .item a.fn-active {
  color: var(--color-primary);
  font-weight: 600;
}
.blog-sidebar .sidebar-item + .sidebar-item {
  margin-top: 40px;
}

/* post body (HTML from the dashboard editor) */
.fn-blog-content {
  color: #2d3139;
  margin-bottom: 40px;
}
.fn-blog-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1.4em;
}
.fn-blog-content h1,
.fn-blog-content h2,
.fn-blog-content h3,
.fn-blog-content h4 {
  font-family: var(--font-secondary);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-heading-1);
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}
.fn-blog-content h1 { font-size: 34px; }
.fn-blog-content h2 { font-size: 30px; }
.fn-blog-content h3 { font-size: 24px; }
.fn-blog-content h4 { font-size: 20px; }
.fn-blog-content ul,
.fn-blog-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
.fn-blog-content ul { list-style: disc; }
.fn-blog-content ol { list-style: decimal; }
.fn-blog-content li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0.4em;
}
.fn-blog-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.fn-blog-content img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1em 0;
}
.fn-blog-content blockquote {
  margin: 1.6em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-1);
  font-size: 19px;
  font-weight: 500;
  color: var(--color-heading-1);
}
.fn-blog-content pre,
.fn-blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  background: #0b0f19;
  color: #f3f4f6;
  border-radius: 8px;
}
.fn-blog-content code {
  padding: 2px 6px;
}
.fn-blog-content pre {
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 1.4em;
}
.fn-blog-content pre code {
  padding: 0;
  background: none;
}

/* ---------- Review form (review/ReviewForm.tsx) ---------- */
.wpr-contact-area .fn-label {
  display: block;
  color: #f9fafb;
  font-size: 14px;
  margin-bottom: 10px;
}
.fn-rating {
  display: flex;
  gap: 6px;
}
.fn-rating button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.2s;
}
.fn-rating button.on {
  color: var(--color-primary);
}
.wpr-contact-area #form-messages {
  margin-top: 16px;
  font-size: 14px;
}
.wpr-contact-area #form-messages.success {
  color: #4ade80;
}
.wpr-contact-area #form-messages.error {
  color: #f87171;
}

/* ---------- Team member profile (team/[id]) ---------- */
.fn-profile-bio {
  font-family: var(--font-secondary);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-heading-1);
  max-width: 980px;
  margin-bottom: 28px;
}
.wpr-about-area .about-bottom-content .left-area .with-icon .icon svg {
  display: block;
}
.wpr-about-area .about-bottom-content .left-area .with-icon .text .fn-profile-contact {
  font-size: 22px;
  word-break: break-word;
}
.wpr-about-area .about-bottom-content .left-area .with-icon .text .fn-profile-contact a {
  color: var(--color-heading-1);
}
.wpr-about-area .about-bottom-content .left-area .with-icon .text .fn-profile-contact a:hover {
  color: var(--color-primary);
}
.wpr-about-area .section-inner .about-bottom-content .right-area .image-area img.fn-cover--portrait {
  object-position: center 20%;
}
@media (max-width: 768px) {
  .fn-profile-bio {
    font-size: 18px;
  }
}

/* ---------- Get access form ---------- */
.wpr-contact-area .fn-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  color: rgba(249, 250, 251, 0.7);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.wpr-contact-area .fn-consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--color-primary);
}
.wpr-contact-area .fn-form-success {
  padding: 40px 0;
}
.wpr-contact-area .fn-form-success .h4 {
  color: #f9fafb;
  text-transform: none;
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
.wpr-contact-area .fn-form-success p {
  color: rgba(249, 250, 251, 0.7);
}

/* ---------- Approach cards: hover images missing from the template package ---------- */
.single-approach-area-start::before {
  background-image: linear-gradient(rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.82)), url(/projectimage/sustainpro-2400.webp);
}
.single-approach-area-start.two::before {
  background-image: linear-gradient(rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.82)), url(/projectimage/highvalue-2400.webp);
}
.single-approach-area-start.three::before {
  background-image: linear-gradient(rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.82)), url(/projectimage/ponteSriLanka-1908.webp);
}
.single-approach-area-start .left-area .disc {
  max-width: 76%;
}

/* ---------- Preloader brand ---------- */
.preloader .site-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.preloader .site-name .fn-preloader-mark {
  width: clamp(96px, 12vw, 160px);
  height: auto;
}
.preloader .site-name span {
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ---------- Blog cards: fixed image column so every card lines up ---------- */
@media (min-width: 577px) {
  .article-blog.style-horizontal .blog-image {
    flex: 0 0 38%;
    max-width: 300px;
  }
}
.article-blog.style-horizontal .blog-image img,
.article-blog.style-horizontal .blog-image .fn-blog-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.article-blog.style-horizontal .blog-content {
  flex: 1;
  min-width: 0;
}

/* ---------- Chatbot (components/Chatbot.tsx) ---------- */
.fn-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  font-family: var(--font-secondary);
}
.fn-chat p,
.fn-chat ul,
.fn-chat ol {
  margin: 0;
}
.fn-chat button {
  border: 0;
  cursor: pointer;
}
.fn-chat-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454a 21.13%, #292c2e 80.53%);
  box-shadow: 0 10px 30px rgba(3, 7, 18, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 #1a1a1a;
}
.fn-chat-launcher > span {
  display: flex;
}
.fn-chat-launcher-mark {
  width: 26px;
  height: 26px;
}
.fn-chat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
}
.fn-chat-badge::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: fn-chat-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fn-chat-ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.fn-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  height: 500px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.18);
}
.fn-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #030712;
}
.fn-chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fn-chat-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.fn-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(249, 250, 251, 0.6);
}
.fn-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.fn-chat .fn-chat-close {
  display: flex;
  padding: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}
.fn-chat .fn-chat-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.fn-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}
.fn-chat-avatar img {
  width: 55%;
  height: 55%;
}
.fn-chat-avatar--md {
  width: 40px;
  height: 40px;
}
.fn-chat-avatar--sm {
  width: 28px;
  height: 28px;
}
.fn-chat-avatar--user {
  background: #030712;
}
.fn-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-bg-1);
}
.fn-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fn-chat-row.is-user {
  flex-direction: row-reverse;
}
.fn-chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #2d3139;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px 14px 14px 4px;
  word-wrap: break-word;
}
.fn-chat-bubble p + p {
  margin-top: 8px;
}
.fn-chat-bubble ul,
.fn-chat-bubble ol {
  padding-left: 18px;
  list-style: disc;
}
.fn-chat-bubble strong {
  font-weight: 600;
}
.fn-chat-bubble a {
  color: var(--color-primary);
  text-decoration: underline;
}
.fn-chat-row.is-user .fn-chat-bubble {
  color: #fff;
  background: #030712;
  border-color: #030712;
  border-radius: 14px 14px 4px 14px;
}
.fn-chat-typing {
  display: flex;
  gap: 5px;
  padding: 14px;
}
.fn-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: fn-chat-bounce 1s infinite;
}
.fn-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.fn-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes fn-chat-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.fn-chat-input {
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}
.fn-chat-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 16px;
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.fn-chat-field:focus-within {
  border-color: var(--color-primary);
}
.fn-chat .fn-chat-field input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading-1);
  box-shadow: none;
}
.fn-chat .fn-chat-field button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.2s, opacity 0.2s;
}
.fn-chat .fn-chat-field button:hover:not(:disabled) {
  background: #e06d15;
}
.fn-chat .fn-chat-field button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 576px) {
  .fn-chat {
    right: 16px;
    bottom: 16px;
  }
  .fn-chat-panel {
    position: fixed;
    right: 8px;
    left: 8px;
    bottom: 88px;
    width: auto;
    height: 70vh;
  }
}
.fn-chat .fn-chat-close {
  width: auto;
  flex: 0 0 auto;
}
.wpr-banner-area .banner-content-area p.fn-banner-eyebrow {
  text-align: center;
  position: relative;
  z-index: 2;
}
.wpr-about-area .about-bottom-content .left-area .with-icon .text .fn-profile-contact {
  text-transform: none;
}

/* ---------- Tech Stack Brand Marquee (Black & White, Proportional Sizing) ---------- */
.wpr-brand-area .section-inner .right-marquee-area {
  overflow: hidden;
}

@keyframes fnTechMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.wpr-brand-area .section-inner .right-marquee-area .brand-inner.fn-marquee {
  display: flex !important;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: fnTechMarquee 35s linear infinite;
}

.wpr-brand-area .section-inner .right-marquee-area .brand-inner.fn-marquee:hover {
  animation-play-state: paused;
}

.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 200px;
  height: 200px;
  line-height: normal !important;
  padding: 24px 28px;
  border-width: 0 1px;
  border-style: solid;
  border-color: rgba(3, 7, 18, 0.1);
  flex: 0 0 auto;
  box-sizing: border-box;
}

.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper img,
.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .brand-tech-logo,
.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .brand-client-logo {
  display: block;
  max-height: 46px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  pointer-events: none;
}

.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper:hover img,
.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper:hover .brand-tech-logo,
.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper:hover .brand-client-logo {
  filter: grayscale(100%) contrast(120%);
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 991px) {
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper {
    width: 160px;
    height: 140px;
    padding: 16px 20px;
  }
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper img,
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .brand-tech-logo,
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .brand-client-logo {
    max-height: 38px;
    max-width: 110px;
  }
}

@media (max-width: 576px) {
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper {
    width: 130px;
    height: 100px;
    padding: 12px 16px;
  }
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper img,
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .brand-tech-logo,
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .brand-client-logo {
    max-height: 30px;
    max-width: 90px;
  }
}

/* ---------- Button with Icon (Warm Orange 3D Bevel Shadow, No Green Line) ---------- */
.wpr-btn.with-icon .icon {
  background: linear-gradient(178.82deg, #FF9B4E 1.01%, #f57e22 105.12%) !important;
  box-shadow: 4px 8px 2px rgba(0, 0, 0, 0.08), inset 0px -2px 0.5px #c4580a, inset 0px 1px 0px #FFFFFF !important;
}

.toggle {
  color: var(--color-primary) !important;
}

/* ---------- Project Showcase Pin & Smooth Scale Animation (Small to Big on Scroll) ---------- */
.wpr-project-area .section-inner .floating-content {
  position: sticky;
  z-index: 2;
  left: 0;
  max-width: 100%;
  width: 100%;
  top: 32.5%;
  margin-bottom: 20px;
}

.fn-title-thumb {
  display: inline-block;
  vertical-align: middle;
  height: 48px;
  width: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin: -10px 8px 0 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wpr-project-area .fn-pin-track {
  position: relative;
  height: 250vh;
  width: 100%;
}

.wpr-project-area .fn-pin-track .wpr-video-pin {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
  overflow: hidden;
}

.wpr-project-area .fn-pin-track .wpr-video-wrapper {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .wpr-project-area .fn-pin-track {
    height: auto !important;
  }
  .wpr-project-area .fn-pin-track .wpr-video-pin {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    display: block !important;
  }
  .wpr-project-area .section-inner .floating-content {
    position: relative !important;
    top: auto !important;
    margin-bottom: 30px;
  }
}

/* ---------- Contact Item Icon Enhancements ---------- */
.box-contact-item .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 80px !important;
  height: 80px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 28px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #1f232b 0%, #11141a 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.6) !important;
  transition: all 0.3s ease !important;
}

.box-contact-item .icon svg {
  width: 36px !important;
  height: 36px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 1.75px !important;
  transition: all 0.3s ease !important;
}

.box-contact-item:hover .icon {
  transform: translateY(-3px) !important;
  background: linear-gradient(145deg, #262c37 0%, #161a22 100%) !important;
  box-shadow: 0 8px 24px rgba(245, 126, 34, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 #f57e22 !important;
}

.box-contact-item:hover .icon svg {
  color: #f57e22 !important;
  stroke: #f57e22 !important;
  transform: scale(1.1) !important;
}

/* ---------- Hero Section Top Line Alignment ---------- */
/* Aligns the top line above the hero text with the bottom of the corner orange square */
.wpr-banner-area .banner-content-area .section-title.fn-hero-title {
  margin-top: -14px;
}

/* ---------- Team Section Member Face Visibility & Sizing Fixes ---------- */
.wpr-team-area .team-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f3f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wpr-team-area .team-wrapper .image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #e9ecef;
}

.wpr-team-area .team-wrapper .image-area a {
  display: block;
  width: 100%;
  height: 100%;
}

.wpr-team-area .team-wrapper .image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.wpr-team-area .team-wrapper:hover .image-area img {
  transform: scale(1.03);
}

.wpr-team-area .team-wrapper .author-area {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92%;
  width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), inset 0px 1px 0px rgba(255, 255, 255, 0.9), inset 0px -3px 0px #E4E4E4;
  border-radius: 12px;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpr-team-area .team-wrapper .author-area .title {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0;
  text-align: center;
  white-space: nowrap;
}

.wpr-team-area .team-wrapper .author-area .designation {
  font-size: 13px;
  line-height: 1.2;
  color: #64748b;
  margin-bottom: 0;
  text-align: center;
}

.wpr-team-area .team-wrapper .author-area .social {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wpr-team-area .team-wrapper:hover .author-area .social {
  max-height: 40px;
  opacity: 1;
  margin-top: 6px;
}

.wpr-team-area .team-wrapper .author-area .social ul {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wpr-team-area .team-wrapper .author-area .social ul li a {
  width: 32px;
  height: 32px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #23272d;
  opacity: 1;
  pointer-events: auto;
}

.wpr-team-area .team-wrapper .author-area .social ul li a img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.wpr-team-area .team-apply-wrapper {
  height: 100%;
  min-height: 340px;
}

/* ---------- Comparison Card Header Exact Alignment ---------- */
.why-choose-wrapper .wrapper-header,
.why-choose-wrapper .wrapper-header.two {
  height: 104px !important;
  padding: 0 28px !important;
  margin-bottom: 40px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.why-choose-wrapper .wrapper-header .title {
  margin: 0 !important;
  font-family: var(--font-secondary) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.why-choose-wrapper .wrapper-header.two .logo {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fn-logo--comparison {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  line-height: 1 !important;
}

.fn-logo--comparison .fn-logo-mark {
  height: 34px !important;
  width: auto !important;
  display: block !important;
  transform: translateY(-1px);
}

.fn-logo--comparison .fn-logo-text {
  font-family: var(--font-secondary) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: var(--color-heading-1) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

@media (max-width: 991px) {
  .why-choose-wrapper .wrapper-header,
  .why-choose-wrapper .wrapper-header.two {
    height: 92px !important;
    padding: 0 20px !important;
  }
  .why-choose-wrapper .wrapper-header .title,
  .fn-logo--comparison .fn-logo-text {
    font-size: 26px !important;
  }
  .fn-logo--comparison .fn-logo-mark {
    height: 28px !important;
  }
}

@media (max-width: 576px) {
  .why-choose-wrapper .wrapper-header,
  .why-choose-wrapper .wrapper-header.two {
    height: 80px !important;
    padding: 0 16px !important;
  }
  .why-choose-wrapper .wrapper-header .title,
  .fn-logo--comparison .fn-logo-text {
    font-size: 22px !important;
  }
  .fn-logo--comparison .fn-logo-mark {
    height: 24px !important;
  }
}


.fn-tech-tags li img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ---------- Project status + tech strip fallbacks ---------- */
.fn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 10px 5px 8px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
}
.fn-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: fn-pulse 1.6s ease-in-out infinite;
}
@keyframes fn-pulse {
  50% {
    opacity: 0.3;
  }
}
.award-item .date .fn-status-badge {
  display: flex;
  width: max-content;
  margin: 10px 0 0;
}
.fn-tech-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #030712;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ---------- Tech stack strip on case study pages (TechStackStrip.tsx) ---------- */
.wpr-brand-area .brand-wrapper .fn-tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  line-height: 1;
  text-align: center;
}
.wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .fn-tech img {
  width: 52px;
  height: 52px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.wpr-brand-area .brand-wrapper .fn-tech > span:last-child {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading-1);
}
@media (max-width: 991px) {
  .wpr-brand-area .section-inner .right-marquee-area .brand-wrapper .fn-tech img,
  .wpr-brand-area .brand-wrapper .fn-tech .fn-tech-fallback {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Inner-page hero titles: ~20% smaller than the template ---------- */
.wpr-banner-area.breadcrumb:not(.error-page) .banner-content-area .section-title {
  font-size: 96px;
}
@media (max-width: 1439px) {
  .wpr-banner-area.breadcrumb:not(.error-page) .banner-content-area .section-title {
    font-size: 80px;
  }
}
@media (max-width: 1200px) {
  .wpr-banner-area.breadcrumb:not(.error-page) .banner-content-area .section-title {
    font-size: 64px;
  }
}
@media (max-width: 991px) {
  .wpr-banner-area.breadcrumb:not(.error-page) .banner-content-area .section-title {
    font-size: 48px;
  }
}
@media (max-width: 768px) {
  .wpr-banner-area.breadcrumb:not(.error-page) .banner-content-area .section-title {
    font-size: 40px;
  }
}
@media (max-width: 576px) {
  .wpr-banner-area.breadcrumb:not(.error-page) .banner-content-area .section-title {
    font-size: 28px;
  }
}

/* ---------- Legal pages (qr-studio/privacy) ---------- */
/* Same article typography as the blog; only tables and the glance list are new. */
.fn-blog-content h2[id] {
  scroll-margin-top: 120px;
}
.fn-legal-table {
  overflow-x: auto;
  margin-bottom: 1.4em;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.fn-legal-table table {
  width: 100%;
  border-collapse: collapse;
}
.fn-legal-table th,
.fn-legal-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
}
.fn-legal-table tr:last-child td {
  border-bottom: 0;
}
.fn-legal-table th {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-heading-1);
  background: #f7f7f8;
}
.fn-legal-table td:first-child {
  width: 38%;
}
.fn-legal-glance {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.fn-legal-glance li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
}
.fn-legal-glance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- Mobile: never let anything widen the page ---------- */
/* `clip` (unlike `hidden`) doesn't create a scroll container, so the
   sticky / pinned sections keep working. */
html,
body.overflow-x-visible {
  overflow-x: clip;
}
@media (max-width: 576px) {
  .fn-logo--footer .fn-logo-mark {
    height: 16vw;
  }
  .fn-logo--footer .fn-logo-text {
    font-size: 11vw;
  }
  .wpr-footer-area .footer-logo-area {
    padding-left: 12px;
    padding-right: 12px;
  }
  .wpr-footer-area .footer-logo-area a {
    display: inline-block;
    max-width: 100%;
  }
}
