/* =====================================================================
   Digital9Agency — Main Stylesheet (single CSS file for the whole site)
   ===================================================================== */

/* ==================== Variables Start ==================== */
:root {
  --navy: #0F1660;
  --navy-dark: #0A0F45;
  --purple: #5B2EF0;
  --magenta: #B415E0;
  --orange: #FF6A3D;
  --amber: #FFA21A;
  --blue: #2E8BFF;
  --text: #0F1660;
  --muted: #5D6290;
  --light-bg: #F5F4FC;
  --border: #E3E2F2;
  --white: #FFFFFF;
  --box-radius: 16px;  /* corner radius for all cards / boxes */

  --grad-primary: linear-gradient(135deg, #5B2EF0 0%, #B415E0 100%);
  --grad-warm: linear-gradient(135deg, #FF6A3D 0%, #FFA21A 100%);
  --grad-brand: linear-gradient(120deg, #FFA21A 0%, #FF6A3D 30%, #B415E0 65%, #5B2EF0 100%);

  --font: "Outfit", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* ==================== Variables End ==================== */

/* ==================== Base Start ==================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

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

img {
  max-width: 100%;
}

button {
  font-family: inherit;
}

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

.container-fluid {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-space {
  padding: clamp(80px, 10vw, 150px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 70px);
}

.section-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* ==================== Base End ==================== */

/* ==================== Custom Cursor Start ==================== */
.cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

/* The normal system cursor stays; the canvas only adds the "View" bubble on project cards */
.has-custom-cursor .cursor-canvas {
  display: block;
}

/* Logo plane replaces the default arrow (hotspot = the plane's nose, top-left).
   Links and buttons keep the hand, form fields keep the text cursor. */
body {
  cursor: url("../images/icons/cursor-plane.png") 1 1, auto;
}
/* ==================== Custom Cursor End ==================== */

/* ==================== Buttons Start ==================== */
.btn-gradient,
.btn-outline-dark-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-position 0.6s var(--ease), color 0.3s;
}

.btn-gradient {
  color: var(--white);
  background: linear-gradient(120deg, #5B2EF0 0%, #B415E0 50%, #FF6A3D 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  box-shadow: 0 10px 30px rgba(91, 46, 240, 0.25);
}

.btn-gradient:hover {
  color: var(--white);
  background-position: 100% 0%;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(180, 21, 224, 0.35);
}

.btn-gradient img,
.link-arrow img {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn-gradient:hover img,
.link-arrow:hover img {
  transform: rotate(45deg);
}

.btn-outline-dark-custom {
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline-dark-custom:hover {
  color: var(--white);
  background: var(--navy);
  transform: translateY(-3px);
}

.btn-lg-custom {
  padding: 20px 40px;
  font-size: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--navy);
}
/* ==================== Buttons End ==================== */

/* ==================== Header Start ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s, height 0.4s;
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(15, 22, 96, 0.06);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 54px;
  width: auto;
  transition: height 0.4s;
}

.is-scrolled .header-logo img {
  height: 46px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.4vw, 8px);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu link: larger text; on hover a thin pill outline appears (same as reference) */
.nav-link-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(6px, 0.55vw, 10px) clamp(12px, 1.1vw, 20px);
  border: 1px solid transparent;
  border-radius: 2.25em;
  background: none;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  transition: border-color 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95), color 0.3s;
}

.nav-link-item:hover,
.nav-link-item.is-active,
.has-dropdown:hover .nav-link-item,
.has-dropdown.is-open .nav-link-item {
  border-color: var(--navy);
  color: var(--navy);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

/* ---------- Services mega menu (dark panel, 3 groups — like reference) ---------- */
.header-inner {
  position: relative;
}

.has-dropdown {
  position: static;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 22px);
  right: var(--gutter);
  z-index: 5;
  padding: clamp(24px, 1.75vw, 32px) clamp(24px, 1.75vw, 32px) clamp(26px, 2vw, 36px);
  border-radius: var(--box-radius);
  background: var(--navy-dark);
  box-shadow: 0 10px 37px rgba(10, 15, 69, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0.35s;
}

/* Invisible bridge so the menu stays open while the mouse moves down to it */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 30px;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(28px, 3vw, 56px);
}

.mega-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1vw, 16px);
}

/* Columns slide in one after another when the menu opens */
.mega-col,
.mega-all {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.has-dropdown:hover .mega-col,
.has-dropdown:hover .mega-all,
.has-dropdown.is-open .mega-col,
.has-dropdown.is-open .mega-all {
  opacity: 1;
  transform: translateY(0);
}

.has-dropdown:hover .mega-col:nth-child(2),
.has-dropdown.is-open .mega-col:nth-child(2) { transition-delay: 0.06s; }
.has-dropdown:hover .mega-col:nth-child(3),
.has-dropdown.is-open .mega-col:nth-child(3) { transition-delay: 0.12s; }
.has-dropdown:hover .mega-all,
.has-dropdown.is-open .mega-all { transition-delay: 0.18s; }

.mega-title {
  margin-bottom: clamp(4px, 0.4vw, 8px);
  font-size: clamp(24px, 2.25vw, 36px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
}

a.mega-title {
  transition: color 0.3s;
}

a.mega-title:hover {
  color: var(--amber);
}

/* Service link: icon + text that rolls up to an orange copy on hover */
.mega-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.6vw, 12px);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
}

.mega-link-icon {
  flex-shrink: 0;
  width: clamp(18px, 1.25vw, 22px);
  height: clamp(18px, 1.25vw, 22px);
  transition: transform 0.4s var(--ease);
}

.mega-link:hover .mega-link-icon {
  transform: rotate(-10deg) scale(1.12);
}

.mega-link-text {
  position: relative;
  display: block;
  overflow: hidden;
}

.mega-link-text span {
  display: block;
  transition: transform 0.3s ease;
}

.mega-link-text span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  color: var(--amber);
}

.mega-link:hover .mega-link-text span {
  transform: translateY(-100%);
}

/* "Explore all services" with a line that thickens on hover */
.mega-all {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(26px, 2vw, 36px);
}

.mega-all .mega-title {
  margin: 0;
}

.mega-all-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: height 0.5s ease, background 0.4s;
}

.mega-all:hover .mega-all-line {
  height: 5px;
  background: var(--grad-brand);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  z-index: 1002;
}

.menu-toggle span {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* ==================== Header End ==================== */

/* ==================== Hero Start ==================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 110px));
}

.hero-title {
  font-size: clamp(44px, 7.6vw, 132px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* Line 1 — "Leading Full-Service" on one line, words slide up on load */
.hero-line-1 {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.06em 0 0.24em;
  margin: -0.06em 0 -0.16em;
}

.hero-word {
  display: inline-block;
}

.js .hero-word {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
}

.js .hero-word:nth-child(2) {
  transition-delay: 0.12s;
}

.is-loaded .hero-word {
  transform: translateY(0);
}

/* Line 2 — vertical ticker of changing points */
.hero-ticker {
  display: block;
  height: 1.3em;
  overflow: hidden;
}

.ticker-inner {
  display: block;
  position: relative;
  height: 1.3em;
}

.ticker-inner.no-transition .ticker-item {
  transition: none;
}

.ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  height: 1.3em;
  line-height: 1.3em;
  white-space: nowrap;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ticker-inner:not([class*="step-"]) .ticker-item:nth-child(1),
.ticker-inner.step-1 .ticker-item:nth-child(2),
.ticker-inner.step-2 .ticker-item:nth-child(3),
.ticker-inner.step-3 .ticker-item:nth-child(4),
.ticker-inner.step-4 .ticker-item:nth-child(5),
.ticker-inner.step-5 .ticker-item:nth-child(6),
.ticker-inner.step-6 .ticker-item:nth-child(7) {
  opacity: 1;
  filter: none;
  transform: none;
}

.js .hero-ticker {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease) 0.3s, transform 1s var(--ease) 0.3s;
}

.is-loaded .hero-ticker {
  opacity: 1;
  transform: translateY(0);
}

/* Showreel video — tilted & small at first, opens to full screen on scroll */
.hero-video-track {
  position: relative;
  height: 230vh;
  margin-top: clamp(30px, 4vw, 60px);
}

.hero-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-frame {
  --vf-start-w: 88%;
  --vf-start-h: 82vh;
  position: relative;
  width: var(--vf-start-w);
  height: var(--vf-start-h);
  background: var(--navy);
  clip-path: polygon(18% 1%, 89% 36%, 99% 99%, 0% 76%);
  transition: width 1.2s var(--ease), height 1.2s var(--ease), clip-path 1.2s var(--ease);
}

/* Modern browsers: the frame follows the scroll position up and down */
@supports (animation-timeline: scroll()) {
  .hero-video-frame {
    transition: none;
    animation: heroVideoOpen linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 110vh;
  }
}

@keyframes heroVideoOpen {
  from {
    width: var(--vf-start-w);
    height: var(--vf-start-h);
    clip-path: polygon(18% 1%, 89% 36%, 99% 99%, 0% 76%);
  }
  to {
    width: 100%;
    height: 100vh;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero slider — a strip of 4 identical images that glides left to right forever.
   Moving by -50% → 0 shifts exactly two copies, so the loop has no visible jump. */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: heroSlideLR 60s linear infinite;
}

.hero-slider-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

@keyframes heroSlideLR {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

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

.video-sound-btn {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 10px 30px rgba(15, 22, 96, 0.35);
  transition: transform 0.4s var(--ease);
}

.video-sound-btn:hover {
  transform: scale(1.1);
}

.video-sound-btn img {
  width: 24px;
  height: 24px;
}

.video-sound-btn .sound-on,
.video-sound-btn.is-unmuted .sound-off {
  display: none;
}

.video-sound-btn.is-unmuted .sound-on {
  display: block;
}
/* ==================== Hero End ==================== */

/* ==================== Marquee / Clients Start ==================== */
.clients-section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Each client: dot + name; on hover the name shrinks and the logo pops in */
.client-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 56px;
  height: 96px;
  margin-right: 56px;
}

.client-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.4s, transform 0.4s var(--ease);
}

.client-item:hover .client-dot {
  background: var(--grad-primary);
  transform: scale(1.6);
}

.client-text {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  white-space: nowrap;
  color: var(--navy);
  opacity: 0.3;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.client-item:hover .client-text {
  transform: scale(0);
  opacity: 0;
}

.client-logo {
  position: absolute;
  left: calc(7px + 56px);
  right: 0;
  top: 50%;
  height: 64px;
  width: auto;
  max-width: none;
  margin: -32px auto 0;
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.client-item:hover .client-logo {
  transform: scale(1);
}
/* ==================== Marquee / Clients End ==================== */

/* ==================== Selected Work Start ==================== */
/*
  Hover (same as reference): the cover shrinks away in a circle to reveal
  the playing video, tags slide in from the right one by one, and the
  project name wipes in from the left.
*/
.work-card {
  --work-radius: var(--box-radius);
  position: relative;
  display: block;
  height: clamp(380px, 36vw, 580px);
  border-radius: var(--work-radius);
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.work-card-wide {
  height: clamp(380px, 42vw, 680px);
}

/* Cover image / placeholder — sits above the video */
.work-media {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(75% at 50% 50%);
  transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.work-card:hover .work-media {
  clip-path: circle(0% at 50% 50%);
}

.work-media-1 { background: linear-gradient(135deg, #5B2EF0 0%, #B415E0 100%); }
.work-media-2 { background: linear-gradient(135deg, #0F1660 0%, #2E8BFF 100%); }
.work-media-3 { background: linear-gradient(120deg, #FF6A3D 0%, #FFA21A 100%); }
.work-media-4 { background: linear-gradient(135deg, #B415E0 0%, #FF6A3D 100%); }
.work-media-5 { background: linear-gradient(135deg, #0A0F45 0%, #5B2EF0 100%); }

.work-media-text {
  font-size: clamp(40px, 6vw, 110px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* Video underneath, slightly zoomed; settles in on hover */
.work-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease);
}

.work-card:hover .work-video {
  transform: scale(1);
}

/* Tags top-right, title bottom-left — both hidden until hover */
.work-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 1.5vw, 24px) clamp(20px, 1.75vw, 28px) clamp(24px, 2.25vw, 36px) clamp(24px, 2.5vw, 40px);
  pointer-events: none;
}

.work-tags {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
}

.work-tags span {
  padding: 8px 16px;
  border-radius: 300px;
  background: var(--white);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.work-card:hover .work-tags span {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger: first tag arrives first on hover */
.work-card:hover .work-tags span:nth-child(1) { transition-delay: 0.1s; }
.work-card:hover .work-tags span:nth-child(2) { transition-delay: 0.18s; }
.work-card:hover .work-tags span:nth-child(3) { transition-delay: 0.26s; }

.work-title {
  font-size: clamp(22px, 1.75vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(10, 15, 69, 0.35);
  clip-path: inset(0 100% 0 0);
  padding-bottom: 0.12em;
  transition: clip-path 0.8s var(--ease) 0.15s;
}

.work-card:hover .work-title {
  clip-path: inset(0 0 0 0);
}

/* ---------- Project cover + 3-second "guided tour" of the full page design ----------
   At rest the card shows the thumbnail. On hover the cover opens in a circle and
   the tall page image pans and zooms over two focus points per project, then
   returns to the top — one cycle is 3 seconds and it loops while hovered.
   Focus points (--ay/--by = vertical position, --ax/--bx = zoom origin,
   --as/--bs = zoom) are set per project with the .tour-* classes below. */
.work-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-tour {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform-origin: 50% 50%;
}

.work-card:hover .work-tour {
  animation: workTour 3s ease-in-out infinite;
}

@keyframes workTour {
  0%, 100% { object-position: 50% 0%; transform: scale(1); transform-origin: 50% 50%; }
  20%, 40% { object-position: 50% var(--ay); transform: scale(var(--as)); transform-origin: var(--ax) 50%; }
  62%, 82% { object-position: 50% var(--by); transform: scale(var(--bs)); transform-origin: var(--bx) 50%; }
}

/* R8TR: the buyers app section, then latest events & news */
.tour-1 { --ay: 39%; --ax: 35%; --as: 1.3; --by: 83%; --bx: 50%; --bs: 1.25; }
/* Add Watermark: pricing plans, then the download section */
.tour-2 { --ay: 54%; --ax: 50%; --as: 1.3; --by: 79%; --bx: 40%; --bs: 1.25; }
/* The Goofy Pets: collections, then the harness product */
.tour-3 { --ay: 15%; --ax: 50%; --as: 1.3; --by: 68%; --bx: 35%; --bs: 1.3; }
/* Imperium: sell anywhere, then manage simply */
.tour-4 { --ay: 35%; --ax: 70%; --as: 1.3; --by: 67%; --bx: 70%; --bs: 1.3; }
/* Global Shop: available colours, then the product grid */
.tour-5 { --ay: 25%; --ax: 60%; --as: 1.3; --by: 66%; --bx: 60%; --bs: 1.25; }
/* SehgalMotors.pk: top categories, then the 360° seat cover */
.tour-6 { --ay: 57%; --ax: 50%; --as: 1.25; --by: 86%; --bx: 35%; --bs: 1.3; }

/* Touch screens have no hover: show tags and title all the time */
@media (hover: none) {
  .work-tags span {
    opacity: 1;
    transform: none;
  }

  .work-title {
    clip-path: none;
  }
}
/* ==================== Selected Work End ==================== */

/* ==================== Statement Start ==================== */
.statement-section {
  background: var(--light-bg);
}

.statement-section {
  overflow: hidden;
  padding: clamp(60px, 7vw, 100px) 0;
}

.statement-text {
  font-size: clamp(38px, 5vw, 86px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.js-words .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0.15;
  transition: opacity 0.4s;
}

.js-words .word.is-lit {
  opacity: 1;
}

.statement-sub {
  max-width: 680px;
  margin-top: 40px;
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--muted);
}

/* ---------- Flying logo plane with pixel smoke ---------- */
.plane-scene {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* Text sits above the plane so a slight overlap looks intentional */
.statement-copy {
  position: relative;
  z-index: 2;
}

/* Desktop: pull the plane left into the gap next to the text */
@media (min-width: 992px) {
  .plane-scene {
    width: 125%;
    max-width: none;
    margin-left: -30%;
    margin-top: -4%;
    margin-bottom: -10%;
    aspect-ratio: 4 / 3;
  }
}

.plane-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(180, 21, 224, 0.28), rgba(255, 106, 61, 0.14) 45%, transparent 70%);
  filter: blur(20px);
  animation: planeGlow 6s ease-in-out infinite;
}

@keyframes planeGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Speed lines streaming opposite to the flight direction */
.plane-wind {
  position: absolute;
  width: 2px;
  height: 26%;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(91, 46, 240, 0.45), transparent);
  opacity: 0;
  animation: planeWind 2.2s linear infinite;
}

.plane-wind-1 { left: 58%; top: 10%; }
.plane-wind-2 { left: 74%; top: 30%; animation-delay: 0.7s; }
.plane-wind-3 { left: 46%; top: 30%; animation-delay: 1.4s; }

@keyframes planeWind {
  0% { transform: rotate(36deg) translateY(-40%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: rotate(36deg) translateY(220%); opacity: 0; }
}

/* The plane: flies in once visible, then keeps gliding */
.plane-flyer {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 62%;
}

.js .plane-flyer {
  opacity: 0;
}

.plane-scene.is-visible .plane-flyer {
  animation: planeEnter 1.6s var(--ease) forwards, planeGlide 6s ease-in-out 1.6s infinite;
}

.plane-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 30px rgba(91, 46, 240, 0.25));
}

@keyframes planeEnter {
  from { transform: translate(-70%, 90%) scale(0.4) rotate(8deg); opacity: 0; }
  to { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes planeGlide {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  25% { transform: translate(10px, -16px) rotate(-2.5deg); opacity: 1; }
  50% { transform: translate(-6px, 6px) rotate(1deg); opacity: 1; }
  75% { transform: translate(12px, -8px) rotate(-1.5deg); opacity: 1; }
}

/* Pixel smoke: logo-coloured squares leave the tail and drift away */
.plane-smoke {
  position: absolute;
  left: 40%;
  top: 74%;
  z-index: 1;
  width: 0;
  height: 0;
  font-size: clamp(12px, 1.8vw, 22px);
}

.plane-smoke span {
  --s: 1em;
  --c: #B415E0;
  --x: -10em;
  --y: 14em;
  --r: 90deg;
  --t: 3s;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s);
  height: var(--s);
  background: var(--c);
  border-radius: 2px;
  opacity: 0;
  animation: pixelSmoke var(--t) linear infinite;
}

@keyframes pixelSmoke {
  0% { transform: translate(0, 0) scale(0.3) rotate(0deg); opacity: 0; }
  12% { transform: translate(calc(var(--x) * 0.1), calc(var(--y) * 0.1)) scale(1) rotate(calc(var(--r) * 0.1)); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(0.15) rotate(var(--r)); opacity: 0; }
}

.plane-smoke span:nth-child(1)  { --s: 1.6em; --c: #9B1FE0; --x: -9em;  --y: 12em; --t: 3.2s; animation-delay: 0s; }
.plane-smoke span:nth-child(2)  { --s: 0.8em; --c: #FF6A3D; --x: -13em; --y: 9em;  --t: 2.6s; animation-delay: -0.3s; }
.plane-smoke span:nth-child(3)  { --s: 1.2em; --c: #FFA21A; --x: -7em;  --y: 15em; --t: 3s;   animation-delay: -0.6s; }
.plane-smoke span:nth-child(4)  { --s: 0.5em; --c: #1565F0; --x: -15em; --y: 13em; --t: 3.4s; animation-delay: -0.9s; }
.plane-smoke span:nth-child(5)  { --s: 1.4em; --c: #1565F0; --x: -11em; --y: 17em; --t: 3.6s; animation-delay: -1.2s; }
.plane-smoke span:nth-child(6)  { --s: 0.6em; --c: #FFA21A; --x: -5em;  --y: 11em; --t: 2.4s; animation-delay: -1.5s; }
.plane-smoke span:nth-child(7)  { --s: 1em;   --c: #B415E0; --x: -14em; --y: 16em; --t: 3.3s; animation-delay: -1.8s; --r: -120deg; }
.plane-smoke span:nth-child(8)  { --s: 0.4em; --c: #FF6A3D; --x: -8em;  --y: 8em;  --t: 2.2s; animation-delay: -2.1s; }
.plane-smoke span:nth-child(9)  { --s: 1.1em; --c: #FFA21A; --x: -12em; --y: 12em; --t: 2.9s; animation-delay: -2.4s; }
.plane-smoke span:nth-child(10) { --s: 0.7em; --c: #5B2EF0; --x: -6em;  --y: 16em; --t: 3.1s; animation-delay: -2.7s; --r: 160deg; }
.plane-smoke span:nth-child(11) { --s: 1.3em; --c: #FF6A3D; --x: -16em; --y: 10em; --t: 3.5s; animation-delay: -0.15s; }
.plane-smoke span:nth-child(12) { --s: 0.5em; --c: #9B1FE0; --x: -10em; --y: 18em; --t: 2.8s; animation-delay: -0.45s; }
.plane-smoke span:nth-child(13) { --s: 0.9em; --c: #1565F0; --x: -4em;  --y: 13em; --t: 2.5s; animation-delay: -0.75s; --r: -60deg; }
.plane-smoke span:nth-child(14) { --s: 0.6em; --c: #FFA21A; --x: -17em; --y: 15em; --t: 3.4s; animation-delay: -1.05s; }
.plane-smoke span:nth-child(15) { --s: 1.5em; --c: #B415E0; --x: -12em; --y: 19em; --t: 3.8s; animation-delay: -1.35s; }
.plane-smoke span:nth-child(16) { --s: 0.4em; --c: #5B2EF0; --x: -7em;  --y: 10em; --t: 2.3s; animation-delay: -1.65s; }
.plane-smoke span:nth-child(17) { --s: 0.8em; --c: #FF6A3D; --x: -15em; --y: 18em; --t: 3.2s; animation-delay: -1.95s; --r: 200deg; }
.plane-smoke span:nth-child(18) { --s: 1em;   --c: #1565F0; --x: -9em;  --y: 20em; --t: 3.7s; animation-delay: -2.25s; }
/* ==================== Statement End ==================== */

/* ==================== Services Start ==================== */
.services-section {
  position: relative;
  padding: clamp(90px, 10vw, 150px) 0;
  background: var(--light-bg);
  color: var(--muted);
  overflow: hidden;
}

/* Soft brand-coloured light behind the cards */
.services-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
  animation: blobMove 14s ease-in-out infinite;
}

.services-orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: var(--purple);
}

.services-orb-2 {
  width: 460px;
  height: 460px;
  bottom: 60px;
  left: -160px;
  background: var(--orange);
  opacity: 0.12;
  animation-direction: reverse;
}

@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.12); }
}

.services-inner {
  position: relative;
  z-index: 1;
}

.services-head {
  margin-bottom: clamp(44px, 5vw, 72px);
}

.services-title {
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.services-intro {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Service card ---------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 2.6vw, 40px);
  border-radius: var(--box-radius);
  background: var(--white);
  box-shadow: 0 10px 40px rgba(15, 22, 96, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease);
}

/* Gradient fill that rises from the bottom on hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(91, 46, 240, 0) 0%, rgba(91, 46, 240, 0.06) 55%, rgba(180, 21, 224, 0.13) 100%);
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

/* Thin gradient line on top that grows on hover */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.service-card:hover {
  color: var(--navy);
  transform: translateY(-10px);
  border-color: rgba(180, 21, 224, 0.35);
  box-shadow: 0 30px 60px rgba(91, 46, 240, 0.16);
}

.service-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: var(--grad-primary);
  box-shadow: 0 14px 30px rgba(91, 46, 240, 0.35);
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease), background 0.4s;
}

.service-card-icon img {
  width: 32px;
  height: 32px;
}

.service-card:hover .service-card-icon {
  transform: rotate(-8deg) scale(1.08);
  border-radius: 50%;
  background: var(--grad-warm);
}

.service-card-num {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 22, 96, 0.18);
  transition: -webkit-text-stroke-color 0.4s;
}

.service-card:hover .service-card-num {
  -webkit-text-stroke-color: var(--orange);
}

.service-card-title {
  margin-bottom: 12px;
  font-size: clamp(26px, 2.2vw, 34px);
  color: var(--navy);
}

.service-card-text {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.6;
}

.service-card-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
}

.service-card-wide .service-card-list {
  column-count: 2;
  column-gap: 30px;
}

.service-card-list li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 16px;
  break-inside: avoid;
  transition: transform 0.4s var(--ease), color 0.3s;
}

.service-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: url("../images/icons/icon-check-arrow.svg") center / contain no-repeat;
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-card-list li {
  color: var(--navy);
}

.service-card-list li:hover {
  transform: translateX(6px);
}

.service-card-list li:hover::before {
  transform: translateX(3px);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
}

.service-card-link img {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--navy);
  transition: transform 0.5s var(--ease), background 0.4s;
}

.service-card:hover .service-card-link img {
  transform: rotate(45deg);
  background: var(--orange);
}
/* ==================== Services End ==================== */

/* ==================== About + Counters Start ==================== */
.about-text {
  font-size: 18px;
  color: var(--muted);
  margin: 24px 0 0;
}

.about-section .btn-gradient {
  margin-top: 36px;
}

.stat-card {
  height: 100%;
  padding: 36px 32px;
  border-radius: var(--box-radius);
  background: var(--light-bg);
  transition: transform 0.5s var(--ease);
}

.stat-card:hover {
  transform: translateY(-8px);
}

.stat-card-dark {
  background: var(--navy);
}

.stat-number {
  font-size: clamp(54px, 6vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card-dark .stat-number {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.stat-card-dark .stat-label {
  color: #B7B9D3;
}
/* ==================== About + Counters End ==================== */

/* ==================== Testimonials Start ==================== */
.testimonial-section {
  background: var(--light-bg);
  overflow: hidden;
}

.testimonial-head {
  margin-bottom: clamp(48px, 5vw, 80px);
  text-align: center;
}

/* ---------- Slider ---------- */
.t-slider {
  position: relative;
  padding: 0 clamp(80px, 8vw, 130px);
}

.t-slides {
  display: grid;
}

.t-slide {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.t-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.t-quote {
  max-width: 1050px;
  margin: 0 auto;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* Quote words rise with a slight skew, one after another */
.t-slides .t-quote.is-visible .split-inner {
  animation-name: quoteUp;
  animation-duration: 0.9s;
}

@keyframes quoteUp {
  from { transform: translateY(100%) skewX(-6deg); }
  to { transform: translateY(0) skewX(0deg); }
}

.t-slides .t-quote .split-word:nth-child(2) .split-inner { animation-delay: 0.025s; }
.t-slides .t-quote .split-word:nth-child(3) .split-inner { animation-delay: 0.050s; }
.t-slides .t-quote .split-word:nth-child(4) .split-inner { animation-delay: 0.075s; }
.t-slides .t-quote .split-word:nth-child(5) .split-inner { animation-delay: 0.100s; }
.t-slides .t-quote .split-word:nth-child(6) .split-inner { animation-delay: 0.125s; }
.t-slides .t-quote .split-word:nth-child(7) .split-inner { animation-delay: 0.150s; }
.t-slides .t-quote .split-word:nth-child(8) .split-inner { animation-delay: 0.175s; }
.t-slides .t-quote .split-word:nth-child(9) .split-inner { animation-delay: 0.200s; }
.t-slides .t-quote .split-word:nth-child(10) .split-inner { animation-delay: 0.225s; }
.t-slides .t-quote .split-word:nth-child(11) .split-inner { animation-delay: 0.250s; }
.t-slides .t-quote .split-word:nth-child(12) .split-inner { animation-delay: 0.275s; }
.t-slides .t-quote .split-word:nth-child(13) .split-inner { animation-delay: 0.300s; }
.t-slides .t-quote .split-word:nth-child(14) .split-inner { animation-delay: 0.325s; }
.t-slides .t-quote .split-word:nth-child(15) .split-inner { animation-delay: 0.350s; }
.t-slides .t-quote .split-word:nth-child(16) .split-inner { animation-delay: 0.375s; }
.t-slides .t-quote .split-word:nth-child(17) .split-inner { animation-delay: 0.400s; }
.t-slides .t-quote .split-word:nth-child(18) .split-inner { animation-delay: 0.425s; }
.t-slides .t-quote .split-word:nth-child(19) .split-inner { animation-delay: 0.450s; }
.t-slides .t-quote .split-word:nth-child(20) .split-inner { animation-delay: 0.475s; }
.t-slides .t-quote .split-word:nth-child(21) .split-inner { animation-delay: 0.500s; }
.t-slides .t-quote .split-word:nth-child(22) .split-inner { animation-delay: 0.525s; }
.t-slides .t-quote .split-word:nth-child(23) .split-inner { animation-delay: 0.550s; }
.t-slides .t-quote .split-word:nth-child(24) .split-inner { animation-delay: 0.575s; }
.t-slides .t-quote .split-word:nth-child(25) .split-inner { animation-delay: 0.600s; }
.t-slides .t-quote .split-word:nth-child(26) .split-inner { animation-delay: 0.625s; }
.t-slides .t-quote .split-word:nth-child(27) .split-inner { animation-delay: 0.650s; }
.t-slides .t-quote .split-word:nth-child(28) .split-inner { animation-delay: 0.675s; }
.t-slides .t-quote .split-word:nth-child(29) .split-inner { animation-delay: 0.700s; }
.t-slides .t-quote .split-word:nth-child(30) .split-inner { animation-delay: 0.725s; }
.t-slides .t-quote .split-word:nth-child(n+31) .split-inner { animation-delay: 0.75s; }

/* Client: logo + name + role */
.t-client {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(32px, 3vw, 48px);
  text-align: left;
}

.t-slide.is-active .t-client {
  animation: revealUp 0.9s var(--ease) 0.45s backwards;
}

.t-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 22, 96, 0.08);
}

.t-client-logo img {
  height: 38px;
  width: auto;
}

.t-client-info {
  display: flex;
  flex-direction: column;
}

.t-client-info strong {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.t-client-info span {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Arrows on the sides */
.t-arrow {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 4.4vw, 68px);
  height: clamp(52px, 4.4vw, 68px);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.t-arrow-prev { left: 0; }
.t-arrow-next { right: 0; }

.t-arrow img {
  width: 24px;
  height: 24px;
  transition: filter 0.3s, transform 0.4s var(--ease);
}

.t-arrow:hover {
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.t-arrow:hover img {
  filter: brightness(0) invert(1);
}

.t-arrow-prev:hover img { transform: translateX(-3px); }
.t-arrow-next:hover img { transform: translateX(3px); }

/* Dots */
.t-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(40px, 4vw, 60px);
}

.t-dot {
  width: 20px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 80px;
  background: #D5D4EA;
  transition: width 0.5s var(--ease), background 0.4s;
}

.t-dot:hover {
  background: var(--muted);
}

.t-dot.is-active {
  width: 48px;
  background: var(--grad-primary);
}
/* ==================== Testimonials End ==================== */

/* ==================== CTA Start ==================== */
.cta-section {
  position: relative;
  padding: clamp(100px, 12vw, 180px) 0;
  background: var(--navy-dark);
  text-align: center;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.cta-section::before {
  width: 500px;
  height: 500px;
  left: -120px;
  top: -160px;
  background: var(--purple);
}

.cta-section::after {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -160px;
  background: var(--orange);
}

.cta-section .container-fluid {
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B7B9D3;
}

.cta-title {
  max-width: 1000px;
  margin: 20px auto 48px;
  font-size: clamp(40px, 6.4vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
}

/* ---------- Contact form (underline fields, like the reference) ---------- */
.cta-form {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--box-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

@media (min-width: 768px) {
  .cta-form-grid > .col-md-6:nth-child(odd) {
    padding-right: clamp(14px, 2vw, 28px);
  }

  .cta-form-grid > .col-md-6:nth-child(even) {
    padding-left: clamp(14px, 2vw, 28px);
  }
}

.form-field {
  position: relative;
  padding-top: 14px;
  margin-bottom: 18px;
}

/* Animated gradient underline on focus */
.form-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.form-field:focus-within::after {
  transform: scaleX(1);
}

.form-input {
  display: block;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

/* Floating label: sits in the field, moves up when typing */
.form-label {
  position: absolute;
  left: 0;
  top: 30px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.4s var(--ease), color 0.3s;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-30px) scale(0.6);
  color: var(--amber);
}

.form-error {
  position: absolute;
  left: 0;
  bottom: -20px;
  font-size: 13px;
  color: #FF7A7A;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.form-field.is-invalid .form-input {
  border-bottom-color: #FF7A7A;
}

.form-field.is-invalid .form-error {
  opacity: 1;
  transform: translateY(0);
}

.form-submit {
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 20px 28px;
  border: 0;
  font-size: 19px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(255, 162, 26, 0.1);
  color: var(--white);
  animation: revealUp 0.6s var(--ease);
}

.form-success img {
  width: 26px;
  flex-shrink: 0;
}
/* ==================== CTA End ==================== */

/* ==================== Footer Start ==================== */
.site-footer {
  padding: 90px 0 36px;
  background: var(--navy);
  color: #B7B9D3;
  font-size: 18px;
  line-height: 2;
  overflow: hidden;
}

.footer-logo {
  width: 220px;
}

.footer-about {
  max-width: 340px;
  margin: 20px 0 28px;
  font-size: 18px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.footer-social a:hover {
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-4px);
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-heading {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.25vw, 32.4px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a,
.footer-contact a,
.footer-bottom-links a {
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom-links a:hover {
  color: var(--amber);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-contact img {
  width: 20px;
  margin-top: 8px;
}

/* Footer logo: falling pieces (drawn on canvas by js/main.js with Matter.js) */
.footer-physics {
  position: relative;
  display: none;
  height: clamp(220px, 22vw, 340px);
  overflow: hidden;
}

.footer-physics.is-ready {
  display: block;
}

.footer-physics-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.footer-physics-hint {
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16.2px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 18px;
}

.back-to-top span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  transition: transform 0.4s var(--ease);
}

.back-to-top:hover span {
  transform: translateY(-5px);
}

.back-to-top img {
  width: 18px;
}
/* ==================== Footer End ==================== */

/* ==================== Inner Page Hero Start ==================== */
/* Shared top section for inner pages (Case Studies, About, Services...) */
.page-hero {
  padding: calc(var(--header-h) + clamp(50px, 6vw, 100px)) 0 clamp(40px, 5vw, 70px);
}

.page-hero-title {
  max-width: 1100px;
  font-size: clamp(56px, 7.75vw, 112px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero-text {
  max-width: 620px;
  margin: clamp(24px, 2.5vw, 36px) 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.6;
  color: var(--muted);
}

/* 404 page */
.notfound-hero {
  min-height: 70vh;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 40px);
}

/* Text sits above the plane so the pixel smoke can drift behind it */
.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero {
  overflow-x: clip;
}

/* Flying logo plane next to an inner-page heading (reuses the Home plane scene) */
.plane-scene.plane-scene-hero {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 5 / 4;
}

/* No drop shadow on the inner-page plane */
.plane-scene-hero .plane-img {
  filter: none;
}

@media (min-width: 992px) {
  .plane-scene.plane-scene-hero {
    width: 115%;
    max-width: none;
    margin: -40px 0 -60px -15%;
    aspect-ratio: 5 / 4;
  }
}
/* ==================== Inner Page Hero End ==================== */

/* ==================== Case Studies Page Start ==================== */
.cases-section {
  padding-bottom: clamp(90px, 10vw, 150px);
}

/* Project count on the left, filter pills on the right */
.case-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(24px, 2.5vw, 36px);
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-filter {
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  font-size: 15px;
  line-height: 1.2;
  color: var(--navy);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.case-filter:hover {
  border-color: var(--navy);
}

.case-filter.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Filtering: hidden cards leave the grid, shown cards pop back in */
.case-col.is-hidden {
  display: none;
}

.cases-grid .case-col.is-filter-in .case-card,
.cases-grid .case-col.is-filter-in .svc-dir-card,
.cases-grid .case-col.is-filter-in .project-card {
  animation: revealZoom 0.6s var(--ease) backwards;
}

.cases-empty {
  padding: 60px 0;
  font-size: 18px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Project card: hover scrolls the full page design ----------
   The tall page image starts at the top; on hover it slowly scrolls to the
   bottom, and returns quickly when the mouse leaves. */
.project-card {
  display: block;
  color: inherit;
}

.project-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  overflow: hidden;
  background: var(--light-bg);
  transition: border-color 0.4s;
}

.project-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: object-position 1.2s var(--ease);
}

.project-card:hover .project-frame {
  border-color: rgba(91, 46, 240, 0.35);
}

.project-card:hover .project-frame .project-page {
  object-position: 50% 100%;
  transition: object-position 6s ease-in-out 0.5s;
}

/* Thumbnail on top; on hover it shrinks away in a circle, then the page scrolls */
.project-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: circle(75% at 50% 50%);
  transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.project-frame .project-cover img {
  object-position: 50% 50%;
  transition: transform 0.9s var(--ease);
}

.project-card:hover .project-cover {
  clip-path: circle(0% at 50% 50%);
}

.project-card:hover .project-cover img {
  transform: scale(1.08);
}

.project-info {
  padding-top: clamp(16px, 1.6vw, 22px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tags span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
}

.project-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.3s;
}

.project-title::after {
  content: "";
  width: 24px;
  height: 24px;
  background: url("../images/icons/icon-arrow-up-right.svg") center / contain no-repeat;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.project-card:hover .project-title {
  color: var(--purple);
}

.project-card:hover .project-title::after {
  opacity: 1;
  transform: translate(0, 0);
}

.project-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Project card ---------- */
.case-card {
  --work-radius: var(--box-radius);
  position: relative;
  display: block;
  aspect-ratio: 11 / 10;
  border-radius: var(--box-radius);
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

/* Cover (placeholder gradient — replace with the project image) */
.case-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease);
}

.case-card:hover .case-media {
  transform: scale(1.06);
}

.case-media-1 { background: linear-gradient(135deg, #5B2EF0 0%, #B415E0 100%); }
.case-media-2 { background: linear-gradient(135deg, #0F1660 0%, #2E8BFF 100%); }
.case-media-3 { background: linear-gradient(120deg, #FF6A3D 0%, #FFA21A 100%); }
.case-media-4 { background: linear-gradient(135deg, #B415E0 0%, #FF6A3D 100%); }
.case-media-5 { background: linear-gradient(135deg, #0A0F45 0%, #5B2EF0 100%); }
.case-media-6 { background: linear-gradient(135deg, #2E8BFF 0%, #5B2EF0 100%); }

.case-media-text {
  padding: 0 20px;
  font-size: clamp(36px, 5vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  color: rgba(255, 255, 255, 0.16);
}

/* Tags top-right, title + description bottom-left */
.case-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 2.75vw, 40px) clamp(22px, 2.5vw, 36px);
  background: linear-gradient(180deg, rgba(10, 15, 69, 0) 45%, rgba(10, 15, 69, 0.6) 100%);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.case-tags span {
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.2;
  color: #2E2E2E;
  transition: background 0.3s;
}

.case-card:hover .case-tags span {
  background: rgba(255, 255, 255, 0.85);
}

.case-info {
  max-width: 80%;
}

.case-title {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.25vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

.case-desc {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* Arrow button pops in on hover (bottom-right) */
.case-arrow {
  position: absolute;
  right: clamp(22px, 2.5vw, 36px);
  bottom: clamp(22px, 2.75vw, 40px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  transform: scale(0) rotate(-45deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-arrow img {
  width: 22px;
  height: 22px;
}

.case-card:hover .case-arrow {
  transform: scale(1) rotate(0deg);
}
/* ==================== Case Studies Page End ==================== */

/* ==================== About Page Start ==================== */
/* ---------- Hero: heading + big team image ---------- */
.about-hero-title {
  max-width: none;
}

.about-hero-media {
  margin-top: clamp(40px, 5vw, 80px);
  border-radius: var(--box-radius);
  overflow: hidden;
}

/* Creative banner: dark canvas with moving brand light, a fine grid,
   rising logo pixels, the tagline and floating service chips */
.about-hero-media-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  background: var(--navy-dark);
  overflow: hidden;
  isolation: isolate;
}

/* Moving colour light */
.ab-blob {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.ab-blob-1 {
  width: 45%;
  aspect-ratio: 1;
  left: -8%;
  top: -25%;
  background: var(--purple);
  animation: abBlob 14s ease-in-out infinite;
}

.ab-blob-2 {
  width: 38%;
  aspect-ratio: 1;
  right: -6%;
  bottom: -30%;
  background: var(--orange);
  opacity: 0.55;
  animation: abBlob 16s ease-in-out infinite reverse;
}

.ab-blob-3 {
  width: 30%;
  aspect-ratio: 1;
  left: 40%;
  top: 30%;
  background: var(--magenta);
  opacity: 0.45;
  animation: abBlob 12s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes abBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12%, 10%) scale(1.15); }
  66% { transform: translate(-8%, 6%) scale(0.92); }
}

/* Fine grid that fades out towards the edges */
.ab-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Logo pixels rising from the bottom */
.ab-pixels span {
  position: absolute;
  bottom: -40px;
  width: var(--s, 14px);
  height: var(--s, 14px);
  border-radius: 2px;
  background: var(--c, var(--amber));
  opacity: 0;
  animation: abPixelRise var(--t, 9s) linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes abPixelRise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(-560px) rotate(180deg); opacity: 0; }
}

.ab-pixels span:nth-child(1)  { left: 5%;  --s: 18px; --c: #9B1FE0; --t: 10s; --d: 0s; }
.ab-pixels span:nth-child(2)  { left: 12%; --s: 10px; --c: #FFA21A; --t: 8s;  --d: -3s; }
.ab-pixels span:nth-child(3)  { left: 20%; --s: 24px; --c: #1565F0; --t: 12s; --d: -6s; }
.ab-pixels span:nth-child(4)  { left: 27%; --s: 12px; --c: #FF6A3D; --t: 9s;  --d: -1s; }
.ab-pixels span:nth-child(5)  { left: 34%; --s: 8px;  --c: #FFA21A; --t: 7s;  --d: -4s; }
.ab-pixels span:nth-child(6)  { left: 42%; --s: 16px; --c: #B415E0; --t: 11s; --d: -8s; }
.ab-pixels span:nth-child(7)  { left: 50%; --s: 10px; --c: #FF6A3D; --t: 8s;  --d: -2s; }
.ab-pixels span:nth-child(8)  { left: 57%; --s: 20px; --c: #5B2EF0; --t: 13s; --d: -5s; }
.ab-pixels span:nth-child(9)  { left: 64%; --s: 9px;  --c: #FFA21A; --t: 7s;  --d: -7s; }
.ab-pixels span:nth-child(10) { left: 71%; --s: 14px; --c: #1565F0; --t: 10s; --d: -3.5s; }
.ab-pixels span:nth-child(11) { left: 78%; --s: 22px; --c: #FF6A3D; --t: 12s; --d: -9s; }
.ab-pixels span:nth-child(12) { left: 85%; --s: 11px; --c: #9B1FE0; --t: 8s;  --d: -0.5s; }
.ab-pixels span:nth-child(13) { left: 91%; --s: 16px; --c: #FFA21A; --t: 11s; --d: -6.5s; }
.ab-pixels span:nth-child(14) { left: 96%; --s: 8px;  --c: #B415E0; --t: 9s;  --d: -2.5s; }

/* Tagline: three big words, the middle one outlined */
.ab-words {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ab-word {
  font-size: clamp(40px, 7.4vw, 128px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
  animation: abWordIn 1.1s var(--ease) backwards;
}

.ab-word-2 {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  animation-delay: 0.15s;
}

.ab-word-3 {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.3s;
}

@keyframes abWordIn {
  from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Floating glass chips around the tagline */
.ab-chip {
  position: absolute;
  z-index: 3;
  padding: clamp(8px, 0.8vw, 12px) clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
  animation: abChipFloat 6s ease-in-out infinite;
}

.ab-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--grad-warm);
  vertical-align: 1px;
}

.ab-chip-1 { left: 7%;  top: 16%; }
.ab-chip-2 { left: 14%; bottom: 20%; animation-delay: -1.5s; }
.ab-chip-3 { right: 9%; top: 14%;  animation-delay: -3s; }
.ab-chip-4 { right: 16%; bottom: 24%; animation-delay: -4.5s; }
.ab-chip-5 { left: 30%; top: 8%;   animation-delay: -2s; }
.ab-chip-6 { right: 30%; bottom: 9%; animation-delay: -5s; }

@keyframes abChipFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* Small labels in the bottom corners */
.ab-corner {
  position: absolute;
  bottom: clamp(16px, 2vw, 28px);
  z-index: 3;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ab-corner-left { left: clamp(18px, 2.4vw, 36px); }
.ab-corner-right { right: clamp(18px, 2.4vw, 36px); }

/* Image settles from a slight zoom as it scrolls into view */
@supports (animation-timeline: view()) {
  .about-hero-media-inner {
    animation: aboutMediaZoom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 55%;
  }
}

@keyframes aboutMediaZoom {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

/* ---------- Intro + counters + story ---------- */
.about-intro-title {
  max-width: 92%;
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Small plane inside the sentence, like the reference's inline icon */
.about-intro-icon img {
  height: 0.9em;
  width: auto;
  vertical-align: -0.12em;
  animation: aboutIconWiggle 3s ease-in-out infinite;
}

@keyframes aboutIconWiggle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-4px); }
}

/* Intro sits close to the Creatives section below it */
.about-intro {
  padding-bottom: 0;
}

.about-story-section {
  padding-bottom: 0;
}

/* Story paragraph (right column); words light up while scrolling */
.about-story {
  max-width: 640px;
}

/* ---------- Logo wall: client logos in staggered floating tiles ---------- */
.logo-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 600px;
}

.logo-wall-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
  animation: logoWallFloat 7s ease-in-out infinite;
}

/* Middle column sits lower and floats the other way */
.logo-wall-col-offset {
  margin-top: clamp(40px, 5vw, 70px);
  animation-direction: reverse;
}

@keyframes logoWallFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 14%;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--white);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.logo-tile:hover {
  transform: translateY(-6px) rotate(-2deg);
  border-color: rgba(91, 46, 240, 0.35);
}

.logo-tile img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.4s, opacity 0.4s;
}

.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Highlight tile with the brand count */
.logo-tile-badge {
  border-color: transparent;
  background: var(--grad-primary);
}

.logo-tile-num {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.logo-tile-label {
  margin-top: 6px;
  font-size: clamp(12px, 1vw, 14px);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.about-story-title {
  margin-bottom: clamp(20px, 2vw, 30px);
  font-size: clamp(34px, 3.8vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-story-text {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.6;
  color: var(--navy);
}

.about-story-text .word {
  margin-right: 0.25em;
}

/* Work heading on this page is a sentence, so a smaller size */
.about-work-title {
  max-width: 900px;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.15;
}

/* ---------- "We Love To Create": words fill with colour while scrolling ---------- */
.love-section {
  position: relative;
  height: 300vh;
  view-timeline-name: --love;
}

.love-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.love-words {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.love-word {
  position: relative;
  display: flex;
}

.love-word-base,
.love-word-fill {
  padding: 0 1vw;
  font-size: clamp(64px, 12vw, 220px);
  font-weight: 500;
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

.love-word-base {
  color: var(--navy);
}

/* Coloured copy on top; its width grows from 0 to 100% */
.love-word-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  overflow: hidden;
  background: var(--grad-primary);
  color: var(--white);
}

.love-word:nth-child(even) .love-word-fill {
  background: var(--grad-warm);
}

@supports (animation-timeline: view()) {
  .love-word-fill {
    animation: loveFill linear both;
    animation-timeline: --love;
  }

  .love-word:nth-child(1) .love-word-fill { animation-range: contain 0% contain 22%; }
  .love-word:nth-child(2) .love-word-fill { animation-range: contain 22% contain 44%; }
  .love-word:nth-child(3) .love-word-fill { animation-range: contain 44% contain 66%; }
  .love-word:nth-child(4) .love-word-fill { animation-range: contain 66% contain 88%; }
}

@keyframes loveFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ---------- Divider line between two blocks (draws in from the left) ---------- */
.section-divider {
  display: block;
  height: 1px;
  margin-top: clamp(32px, 3.5vw, 56px);
  background: var(--border);
  transform-origin: left;
}

.section-divider.js-fade.is-visible {
  animation: dividerDraw 1.4s var(--ease) backwards;
}

@keyframes dividerDraw {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
/* ==================== About Page End ==================== */

/* ==================== Scroll Animations Start ==================== */
/*
  Usage (HTML classes):
  .js-fade                 fade up (default)
  .js-fade.fade-left       slide in from the left
  .js-fade.fade-right      slide in from the right
  .js-fade.fade-zoom       scale up
  .js-fade.fade-clip       wipe open from the bottom (cards / images)
  .js-fade.fade-blur       come into focus
  .js-split                heading: words rise one by one
  .anim-d1 ... .anim-d6    start delay (0.1s steps)

  Keyframe animations (fill: backwards) are used instead of transitions so
  that, once finished, each element's own hover transforms still work.
*/
.js .js-fade:not(.is-visible) {
  opacity: 0;
}

.js-fade.is-visible {
  animation: revealUp 1.1s var(--ease) backwards;
}

.js-fade.fade-left.is-visible  { animation-name: revealLeft; }
.js-fade.fade-right.is-visible { animation-name: revealRight; }
.js-fade.fade-zoom.is-visible  { animation-name: revealZoom; }
.js-fade.fade-blur.is-visible  { animation-name: revealBlur; }
.js-fade.fade-clip.is-visible  { animation-name: revealClip; animation-duration: 1.4s; }

.anim-d1 { animation-delay: 0.1s !important; }
.anim-d2 { animation-delay: 0.2s !important; }
.anim-d3 { animation-delay: 0.3s !important; }
.anim-d4 { animation-delay: 0.4s !important; }
.anim-d5 { animation-delay: 0.5s !important; }
.anim-d6 { animation-delay: 0.6s !important; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealZoom {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes revealBlur {
  from { opacity: 0; filter: blur(14px); transform: translateY(30px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes revealClip {
  from { opacity: 1; clip-path: inset(100% 0 0 0 round var(--work-radius, 16px)); transform: translateY(80px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round var(--work-radius, 16px)); transform: translateY(0); }
}

/* Heading word reveal — words are wrapped by js/main.js */
/* Mask for the word-rise animation. Extra room above and below (cancelled
   by negative margins) so tall letters and descenders like g, y, p are not
   clipped on large headings. */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.04em 0.24em;
  margin: -0.08em -0.04em -0.24em;
}

.split-inner {
  display: inline-block;
}

.js .js-split:not(.is-visible) .split-inner {
  opacity: 0;
}

.js-split.is-visible .split-inner {
  animation: splitUp 1s var(--ease) backwards;
}

.js-split .split-word:nth-child(2) .split-inner { animation-delay: 0.07s; }
.js-split .split-word:nth-child(3) .split-inner { animation-delay: 0.14s; }
.js-split .split-word:nth-child(4) .split-inner { animation-delay: 0.21s; }
.js-split .split-word:nth-child(5) .split-inner { animation-delay: 0.28s; }
.js-split .split-word:nth-child(6) .split-inner { animation-delay: 0.35s; }
.js-split .split-word:nth-child(7) .split-inner { animation-delay: 0.42s; }
.js-split .split-word:nth-child(8) .split-inner { animation-delay: 0.49s; }
.js-split .split-word:nth-child(9) .split-inner { animation-delay: 0.56s; }
.js-split .split-word:nth-child(n+10) .split-inner { animation-delay: 0.63s; }

@keyframes splitUp {
  from { opacity: 0; filter: blur(6px); transform: translateX(-0.25em); }
  to { opacity: 1; filter: blur(0); transform: translateX(0); }
}

/* Counter cards: number pops after the card arrives */
.stat-card .stat-number {
  transform-origin: left bottom;
}

.js-fade.is-visible .stat-number {
  animation: numberPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards;
}

@keyframes numberPop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js .js-fade:not(.is-visible),
  .js-words .word {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js-fade.is-visible,
  .js-split.is-visible .split-inner,
  .js-fade.is-visible .stat-number,
  .marquee-track,
  .plane-glow,
  .plane-wind,
  .plane-smoke span,
  .plane-scene.is-visible .plane-flyer,
  .work-card:hover .work-tour,
  .ab-blob,
  .ab-pixels span,
  .ab-chip,
  .ab-word,
  .logo-wall-col {
    animation: none;
  }

  .js .js-split:not(.is-visible) .split-inner {
    transform: none;
  }

  .js .plane-flyer {
    opacity: 1;
  }

  .js .hero-word,
  .js .hero-ticker {
    transform: none;
    opacity: 1;
  }
}
/* ==================== Scroll Animations End ==================== */

/* ==================== Contact Page Start ==================== */
.contact-section {
  padding-bottom: clamp(90px, 10vw, 150px);
}

/* ---------- Left panel: reach us + next steps ---------- */
.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}


.contact-aside-title {
  margin: 0 0 22px;
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

a.contact-info:hover {
  border-color: var(--purple);
  transform: translateX(6px);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFF4E6;
}

.contact-info-icon img {
  width: 22px;
  height: 22px;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.3;
  word-break: break-word;
}

.contact-info-text small {
  margin-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Office cards */
.contact-offices {
  margin-top: clamp(34px, 3.4vw, 50px);
}

.contact-office {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--white);
}

.contact-office + .contact-office {
  margin-top: 12px;
}

.contact-office strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}

.contact-office p {
  margin: 4px 0 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.contact-office a {
  display: block;
  font-size: 15px;
  color: var(--navy);
  transition: color 0.3s;
}

.contact-office a:hover {
  color: var(--purple);
}

.contact-steps {
  margin-top: clamp(30px, 3vw, 44px);
  padding: clamp(22px, 2vw, 30px);
  border-radius: var(--box-radius);
  background: var(--light-bg);
}

/* Small headings inside the contact panel */
.contact-block-title {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
}

.contact-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* Numbered steps joined by a thin line */
.contact-steps-list li {
  position: relative;
  padding: 0 0 20px 48px;
  counter-increment: step;
}

.contact-steps-list li:last-child {
  padding-bottom: 0;
}

.contact-steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.contact-steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.contact-steps-list strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
}

.contact-steps-list span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Right: project brief card ---------- */
.brief-card {
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--white);
}

/* Progress bar that fills as required fields are completed */
.brief-progress {
  margin-bottom: clamp(26px, 2.5vw, 36px);
}

.brief-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.brief-progress-title {
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.1;
  color: var(--navy);
}

.brief-progress-count {
  font-size: 14px;
  color: var(--muted);
}

.brief-bar {
  height: 6px;
  border-radius: 10px;
  background: var(--light-bg);
  overflow: hidden;
}

.brief-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 10px;
  background: var(--grad-brand);
  transition: width 0.5s var(--ease);
}

.brief-bar.step-1 span { width: 20%; }
.brief-bar.step-2 span { width: 40%; }
.brief-bar.step-3 span { width: 60%; }
.brief-bar.step-4 span { width: 80%; }
.brief-bar.step-5 span { width: 100%; }

.brief-group {
  margin: 0 0 clamp(34px, 3vw, 46px);
  padding: 0;
  border: 0;
}

/* A line above every step after the first gives each one room */
.brief-group + .brief-group {
  padding-top: clamp(30px, 2.6vw, 40px);
  border-top: 1px solid var(--border);
}

.brief-legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
}

.brief-legend span {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--purple);
}

/* Boxed field with a floating label */
.brief-field {
  position: relative;
}

.brief-input {
  display: block;
  width: 100%;
  padding: 26px 18px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--navy);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.brief-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(91, 46, 240, 0.12);
}

.brief-label {
  position: absolute;
  left: 19px;
  top: 18px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s;
}

.brief-input:focus + .brief-label,
.brief-input:not(:placeholder-shown) + .brief-label,
.brief-label-static {
  transform: translateY(-10px) scale(0.75);
  color: var(--purple);
}

.brief-select {
  padding-right: 44px;
  background: var(--white) url("../images/icons/icon-chevron-down.svg") right 16px center / 18px no-repeat;
  cursor: pointer;
}

.brief-textarea {
  min-height: 150px;
  resize: vertical;
}

.brief-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.brief-question {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
}

.brief-choice {
  margin-bottom: 28px;
}

/* Service chips with icons */
.brief-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brief-chip,
.brief-segment label {
  position: relative;
  display: flex;
  cursor: pointer;
}

.brief-chip input,
.brief-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-chip span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--navy);
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.brief-chip img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: filter 0.3s;
}

.brief-chip:hover span {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.brief-chip input:checked + span {
  border-color: transparent;
  background: var(--grad-primary);
  color: var(--white);
}

.brief-chip input:checked + span img {
  filter: brightness(0) invert(1);
}

/* Budget as a segmented control */
.brief-segment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  border-radius: 14px;
  background: var(--light-bg);
}

.brief-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 6px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.brief-segment label:hover span {
  color: var(--navy);
}

.brief-segment input:checked + span {
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(15, 22, 96, 0.1);
}

.brief-chip input:focus-visible + span,
.brief-segment input:focus-visible + span {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Errors */
.brief-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #E5484D;
}

.brief-field.is-invalid .brief-error {
  display: block;
}

.brief-field.is-invalid .brief-input,
.brief-field.is-invalid .brief-chip span {
  border-color: #E5484D;
}

.brief-field.is-invalid .brief-segment {
  box-shadow: inset 0 0 0 1px #E5484D;
}

/* Footer: privacy note + submit */
.brief-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.brief-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.brief-privacy img {
  width: 18px;
  height: 18px;
}

.brief-submit {
  padding: 16px 34px;
  border: 0;
  font-size: 17px;
}

.brief-success {
  color: var(--navy);
  background: rgba(91, 46, 240, 0.08);
}
/* ==================== Contact Page End ==================== */

/* ==================== Service Page Start ==================== */
/* Shared layout for service detail pages (Website Development, ...) */

/* ---------- Hero ---------- */
/* Hero title on exactly two lines */
.title-2line .split-word {
  display: block;
  width: fit-content;
}

.svc-hero-text {
  max-width: 640px;
  margin: clamp(20px, 2vw, 30px) 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Full-width hero banner (dummy image) ---------- */
/* Edge to edge, tall, but never wider than the screen.
   Replace images/website-development/hero-banner.jpg with your own collage. */
.svc-hero {
  padding-bottom: 0;
}

.svc-banner {
  --work-radius: 0px;
  width: 100%;
  height: clamp(340px, 78vh, 860px);
  margin: clamp(24px, 2.6vw, 40px) 0 0;
  overflow: hidden;
  background: var(--light-bg);
}

.svc-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Banner that holds the moving hero slider (strip styles live in the Hero block) */
/* Never taller than slider.jpg itself (646px) so the image is never stretched or pixelated */
.svc-banner-slider {
  position: relative;
  height: clamp(280px, 72vh, 646px);
}

.svc-banner .hero-slider-img {
  width: auto;
  object-fit: initial;
}

/* ---------- Intro: centred headline + quote button ---------- */
.svc-intro {
  padding-top: clamp(50px, 5vw, 80px);
}

.svc-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.svc-intro-title {
  margin-bottom: clamp(18px, 1.8vw, 26px);
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* Wider call-to-action button */
.svc-intro-btn {
  justify-content: center;
  min-width: min(100%, 340px);
  padding: 18px 46px;
  font-size: 18px;
}

.svc-intro-sub {
  max-width: 720px;
  margin: 0 0 clamp(26px, 2.6vw, 38px);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- What we build: alternating rows ---------- */
/* Centred heading, same style as the intro headline above */
.svc-center-head {
  max-width: 980px;
  margin: 0 auto clamp(50px, 5vw, 80px);
  text-align: center;
}

.svc-offer {
  padding-bottom: clamp(40px, 5vw, 80px);
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  margin-bottom: clamp(60px, 7vw, 110px);
}

.offer-row-reverse .offer-visual {
  order: 2;
}

.offer-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: var(--box-radius);
  overflow: hidden;
  background: var(--light-bg);
}

/* Dummy image per point — replace images/website-development/build-*.jpg later */
.offer-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.offer-row:hover .offer-visual img {
  transform: scale(1.05);
}

.offer-title {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.offer-text + .offer-text {
  margin-top: -10px;
}

.offer-text {
  margin: 0 0 24px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}

/* Links to related services inside the text */
.offer-text a,
.svc-industries-text a,
.text-link {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.offer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  color: var(--navy);
}

.offer-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("../images/icons/icon-check-arrow.svg") center / contain no-repeat;
}

/* ---------- Process ---------- */
.svc-process {
  padding-top: clamp(60px, 6vw, 96px);
  background: var(--light-bg);
}

/* Heading with its intro line underneath */
.process-head {
  margin-bottom: clamp(34px, 3.5vw, 54px);
}

.svc-process-intro {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.process-card {
  padding: clamp(26px, 2.4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--white);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 46, 240, 0.35);
}

.process-num {
  display: block;
  font-size: clamp(40px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--purple);
  transition: color 0.4s;
}

.process-card:hover .process-num {
  color: var(--purple);
}

.process-card h3 {
  margin: 20px 0 10px;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 400;
}

.process-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Industries + tech ---------- */
.svc-industries-text {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.industry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--navy);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

/* Category icon in a soft square; icon turns white on hover */
.industry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F1ECFF;
  transition: background 0.4s, transform 0.5s var(--ease);
}

.industry-icon img {
  width: 22px;
  height: 22px;
  transition: filter 0.4s;
}

.industry:hover .industry-icon {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-8deg);
}

.industry:hover .industry-icon img {
  filter: brightness(0) invert(1);
}

.industry:hover {
  border-color: transparent;
  background: var(--grad-primary);
  color: var(--white);
}

.tech-strip {
  margin-top: clamp(60px, 7vw, 100px);
}

.tech-strip-label {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

.tech-track span {
  margin-right: 12px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-size: 17px;
  white-space: nowrap;
  color: var(--navy);
}

/* ---------- Related case studies ---------- */
.svc-cases {
  padding-top: 0;
}

/* ---------- Services overview: filterable service directory ---------- */
.svc-directory {
  padding-bottom: clamp(70px, 8vw, 120px);
}

.svc-dir-filters {
  justify-content: center;
}

.svc-dir-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.svc-dir-card:hover {
  transform: translateY(-8px);
  border-color: rgba(91, 46, 240, 0.35);
}

.svc-dir-img {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-bg);
}

.svc-dir-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.svc-dir-card:hover .svc-dir-img img {
  transform: scale(1.06);
}

.svc-dir-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2vw, 30px);
}

.svc-dir-cat {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

.svc-dir-title {
  margin-bottom: 10px;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.2;
}

.svc-dir-text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.svc-dir-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
}

.svc-dir-link img {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.svc-dir-card:hover .svc-dir-link {
  color: var(--purple);
}

.svc-dir-card:hover .svc-dir-link img {
  transform: rotate(45deg);
}

/* Case studies after the process section need their top spacing back */
.svc-cases.svc-cases-spaced {
  padding-top: clamp(80px, 9vw, 140px);
}

/* ---------- FAQ accordion ---------- */
.svc-faq {
  padding-bottom: clamp(50px, 5vw, 80px);
  background: var(--light-bg);
}

/* Testimonials right after the FAQ (same background): no extra gap on top */
.testimonial-section.testimonial-tight {
  padding-top: 0;
}

/* Heading with its intro line underneath */
.faq-head {
  margin-bottom: clamp(30px, 3vw, 46px);
}

.svc-faq-text {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.svc-faq-text a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item {
  border-bottom: 1px solid #D9D8EB;
}

.faq-item:first-child {
  border-top: 1px solid #D9D8EB;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(20px, 2vw, 28px) 0;
  border: 0;
  background: none;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.3;
  text-align: left;
  color: var(--navy);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  transition: background 0.4s, transform 0.5s var(--ease);
}

/* Plus sign that turns into a cross when open */
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: var(--navy);
  transition: background 0.4s;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--navy);
  transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--white);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq-a > div {
  overflow: hidden;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a p {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
/* ==================== Service Page End ==================== */


/* ==================== Browser Compatibility Start ==================== */
/*
  Firefox (and older Safari) do not support scroll-driven CSS animations
  (animation-timeline). For those browsers js/main.js measures the scroll
  position and switches a step class (0-20) on the section; the rules below
  give every step its look. No inline styles are used — only classes.
*/
@supports not (animation-timeline: scroll()) {
  /* Home hero video: grows from the tilted card to full screen */
  .hero-video-track.is-stepped .hero-video-frame {
    transition: width 0.35s ease-out, height 0.35s ease-out, clip-path 0.35s ease-out;
  }

  .hero-video-track.vp-0 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.00); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.00); clip-path: polygon(18.0% 1.00%, 89.0% 36.0%, 99.00% 99.00%, 0% 76.0%); }
  .hero-video-track.vp-1 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.05); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.05); clip-path: polygon(17.1% 0.95%, 89.5% 34.2%, 99.05% 99.05%, 0% 77.2%); }
  .hero-video-track.vp-2 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.10); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.10); clip-path: polygon(16.2% 0.90%, 90.1% 32.4%, 99.10% 99.10%, 0% 78.4%); }
  .hero-video-track.vp-3 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.15); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.15); clip-path: polygon(15.3% 0.85%, 90.7% 30.6%, 99.15% 99.15%, 0% 79.6%); }
  .hero-video-track.vp-4 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.20); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.20); clip-path: polygon(14.4% 0.80%, 91.2% 28.8%, 99.20% 99.20%, 0% 80.8%); }
  .hero-video-track.vp-5 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.25); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.25); clip-path: polygon(13.5% 0.75%, 91.8% 27.0%, 99.25% 99.25%, 0% 82.0%); }
  .hero-video-track.vp-6 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.30); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.30); clip-path: polygon(12.6% 0.70%, 92.3% 25.2%, 99.30% 99.30%, 0% 83.2%); }
  .hero-video-track.vp-7 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.35); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.35); clip-path: polygon(11.7% 0.65%, 92.8% 23.4%, 99.35% 99.35%, 0% 84.4%); }
  .hero-video-track.vp-8 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.40); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.40); clip-path: polygon(10.8% 0.60%, 93.4% 21.6%, 99.40% 99.40%, 0% 85.6%); }
  .hero-video-track.vp-9 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.45); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.45); clip-path: polygon(9.9% 0.55%, 94.0% 19.8%, 99.45% 99.45%, 0% 86.8%); }
  .hero-video-track.vp-10 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.50); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.50); clip-path: polygon(9.0% 0.50%, 94.5% 18.0%, 99.50% 99.50%, 0% 88.0%); }
  .hero-video-track.vp-11 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.55); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.55); clip-path: polygon(8.1% 0.45%, 95.0% 16.2%, 99.55% 99.55%, 0% 89.2%); }
  .hero-video-track.vp-12 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.60); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.60); clip-path: polygon(7.2% 0.40%, 95.6% 14.4%, 99.60% 99.60%, 0% 90.4%); }
  .hero-video-track.vp-13 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.65); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.65); clip-path: polygon(6.3% 0.35%, 96.2% 12.6%, 99.65% 99.65%, 0% 91.6%); }
  .hero-video-track.vp-14 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.70); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.70); clip-path: polygon(5.4% 0.30%, 96.7% 10.8%, 99.70% 99.70%, 0% 92.8%); }
  .hero-video-track.vp-15 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.75); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.75); clip-path: polygon(4.5% 0.25%, 97.2% 9.0%, 99.75% 99.75%, 0% 94.0%); }
  .hero-video-track.vp-16 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.80); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.80); clip-path: polygon(3.6% 0.20%, 97.8% 7.2%, 99.80% 99.80%, 0% 95.2%); }
  .hero-video-track.vp-17 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.85); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.85); clip-path: polygon(2.7% 0.15%, 98.3% 5.4%, 99.85% 99.85%, 0% 96.4%); }
  .hero-video-track.vp-18 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.90); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.90); clip-path: polygon(1.8% 0.10%, 98.9% 3.6%, 99.90% 99.90%, 0% 97.6%); }
  .hero-video-track.vp-19 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 0.95); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 0.95); clip-path: polygon(0.9% 0.05%, 99.5% 1.8%, 99.95% 99.95%, 0% 98.8%); }
  .hero-video-track.vp-20 .hero-video-frame { width: calc(var(--vf-start-w) + (100% - var(--vf-start-w)) * 1.00); height: calc(var(--vf-start-h) + (100vh - var(--vf-start-h)) * 1.00); clip-path: polygon(0.0% 0.00%, 100.0% 0.0%, 100.00% 100.00%, 0% 100.0%); }
}

@supports not (animation-timeline: view()) {
  /* About "We Love To Create": each word fills in turn while scrolling */
  .love-section.is-stepped .love-word-fill {
    transition: width 0.3s ease-out;
  }

  .love-section.lp-0 .love-word:nth-child(1) .love-word-fill { width: 0%; }
  .love-section.lp-0 .love-word:nth-child(2) .love-word-fill { width: 0%; }
  .love-section.lp-0 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-0 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-1 .love-word:nth-child(1) .love-word-fill { width: 23%; }
  .love-section.lp-1 .love-word:nth-child(2) .love-word-fill { width: 0%; }
  .love-section.lp-1 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-1 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-2 .love-word:nth-child(1) .love-word-fill { width: 45%; }
  .love-section.lp-2 .love-word:nth-child(2) .love-word-fill { width: 0%; }
  .love-section.lp-2 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-2 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-3 .love-word:nth-child(1) .love-word-fill { width: 68%; }
  .love-section.lp-3 .love-word:nth-child(2) .love-word-fill { width: 0%; }
  .love-section.lp-3 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-3 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-4 .love-word:nth-child(1) .love-word-fill { width: 91%; }
  .love-section.lp-4 .love-word:nth-child(2) .love-word-fill { width: 0%; }
  .love-section.lp-4 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-4 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-5 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-5 .love-word:nth-child(2) .love-word-fill { width: 14%; }
  .love-section.lp-5 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-5 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-6 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-6 .love-word:nth-child(2) .love-word-fill { width: 36%; }
  .love-section.lp-6 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-6 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-7 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-7 .love-word:nth-child(2) .love-word-fill { width: 59%; }
  .love-section.lp-7 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-7 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-8 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-8 .love-word:nth-child(2) .love-word-fill { width: 82%; }
  .love-section.lp-8 .love-word:nth-child(3) .love-word-fill { width: 0%; }
  .love-section.lp-8 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-9 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-9 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-9 .love-word:nth-child(3) .love-word-fill { width: 5%; }
  .love-section.lp-9 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-10 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-10 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-10 .love-word:nth-child(3) .love-word-fill { width: 27%; }
  .love-section.lp-10 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-11 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-11 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-11 .love-word:nth-child(3) .love-word-fill { width: 50%; }
  .love-section.lp-11 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-12 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-12 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-12 .love-word:nth-child(3) .love-word-fill { width: 73%; }
  .love-section.lp-12 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-13 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-13 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-13 .love-word:nth-child(3) .love-word-fill { width: 95%; }
  .love-section.lp-13 .love-word:nth-child(4) .love-word-fill { width: 0%; }
  .love-section.lp-14 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-14 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-14 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-14 .love-word:nth-child(4) .love-word-fill { width: 18%; }
  .love-section.lp-15 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-15 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-15 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-15 .love-word:nth-child(4) .love-word-fill { width: 41%; }
  .love-section.lp-16 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-16 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-16 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-16 .love-word:nth-child(4) .love-word-fill { width: 64%; }
  .love-section.lp-17 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-17 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-17 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-17 .love-word:nth-child(4) .love-word-fill { width: 86%; }
  .love-section.lp-18 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-18 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-18 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-18 .love-word:nth-child(4) .love-word-fill { width: 100%; }
  .love-section.lp-19 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-19 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-19 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-19 .love-word:nth-child(4) .love-word-fill { width: 100%; }
  .love-section.lp-20 .love-word:nth-child(1) .love-word-fill { width: 100%; }
  .love-section.lp-20 .love-word:nth-child(2) .love-word-fill { width: 100%; }
  .love-section.lp-20 .love-word:nth-child(3) .love-word-fill { width: 100%; }
  .love-section.lp-20 .love-word:nth-child(4) .love-word-fill { width: 100%; }

  /* About banner: settles from a slight zoom when it appears */
  .about-hero-media-inner {
    transform: scale(1.12);
    transition: transform 1.6s var(--ease);
  }

  .about-hero-media.is-visible .about-hero-media-inner {
    transform: scale(1);
  }
}
/* ==================== Browser Compatibility End ==================== */

/* ==================== Responsive Start ==================== */
@media (max-width: 1199.98px) {
  .nav-list {
    gap: 2px;
  }

  .main-nav {
    gap: 18px;
  }
}

@media (max-width: 991.98px) {
  /* Service page */
  /* Wide grid gutters overflow the page edge on small screens */
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .svc-banner {
    height: clamp(260px, 55vh, 480px);
  }

  .offer-row {
    grid-template-columns: 1fr;
  }

  .offer-row-reverse .offer-visual {
    order: 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-aside {
    position: static;
  }

  :root {
    --header-h: 76px;
  }

  .header-logo img,
  .is-scrolled .header-logo img {
    height: 44px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 100px var(--gutter) 40px;
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s, transform 0.5s var(--ease), visibility 0.4s;
  }

  .menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-link-item {
    padding: 6px 0;
    border: 0;
    font-size: 32px;
  }

  .nav-link-item:hover,
  .nav-link-item.is-active,
  .has-dropdown.is-open .nav-link-item {
    color: var(--purple);
  }

  .dropdown-arrow {
    width: 24px;
    height: 24px;
  }

  /* Mega menu inside the full-screen mobile menu: plain stacked list */
  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    margin-top: 12px;
    padding: 22px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .has-dropdown.is-open .nav-dropdown {
    display: block;
  }

  .has-dropdown:hover .nav-dropdown {
    transform: none;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mega-title {
    font-size: 22px;
  }

  .mega-link {
    font-size: 16px;
  }

  .mega-col,
  .mega-all {
    opacity: 1;
    transform: none;
  }

  .hero-video-frame {
    --vf-start-w: 92%;
    --vf-start-h: 62vh;
  }

  .hero-video-track {
    height: 200vh;
  }

  .plane-scene {
    max-width: 460px;
  }
}

@media (max-width: 767.98px) {
  .process-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  /* Contact brief: chips and budget in two columns */
  .brief-chips,
  .brief-segment {
    grid-template-columns: repeat(2, 1fr);
  }

  .brief-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .brief-submit {
    justify-content: center;
  }

  .ab-chip-5,
  .ab-chip-6 {
    display: none;
  }

  .ab-corner {
    font-size: 11px;
  }

  .logo-wall {
    margin: 0 auto;
  }

  .about-story {
    max-width: 100%;
  }

  .about-hero-media-inner {
    aspect-ratio: 4 / 3;
  }

  .love-section {
    height: 220vh;
  }

  .case-card {
    aspect-ratio: 4 / 5;
  }

  .case-info {
    max-width: 100%;
  }

  .case-arrow {
    display: none;
  }

  body {
    font-size: 16px;
  }

  .service-card-wide .service-card-list {
    column-count: 1;
  }

  .service-card-num {
    font-size: 42px;
  }

  /* Slider arrows drop below the quote, either side of the dots */
  .t-slider {
    padding: 0;
  }

  .t-arrow {
    top: auto;
    bottom: -14px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .t-arrow:hover {
    transform: scale(1.08);
  }

  .t-client {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .client-item {
    gap: 36px;
    height: 80px;
    margin-right: 36px;
  }

  .client-logo {
    left: calc(7px + 36px);
    height: 52px;
    margin-top: -26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 8.6vw;
  }

  .hero-video-frame {
    --vf-start-w: 94%;
    --vf-start-h: 56vh;
  }

  .video-sound-btn {
    width: 46px;
    height: 46px;
  }

  .btn-lg-custom {
    padding: 16px 30px;
    font-size: 18px;
  }

  .stat-card {
    padding: 28px 24px;
  }
}
/* ==================== Responsive End ==================== */

/* ==================== Client Feedback Updates Start ==================== */
/* Hero: centred heading above a plain rounded band */
.hero-title {
  font-size: clamp(38px, 6vw, 104px);
  font-weight: 600;
  text-align: center;
}

.hero-line-1 {
  white-space: normal;
}

/* Hero project wall: three rows of real projects moving in opposite directions */
.hero-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.hero-wall-row {
  min-height: 0;
  overflow: hidden;
}

.hero-wall-track {
  display: flex;
  gap: 10px;
  width: max-content;
  height: 100%;
  animation: heroSlideLR 70s linear infinite;
}

.hero-wall-row-2 .hero-wall-track {
  animation-duration: 85s;
  animation-direction: reverse;
}

.hero-wall-row-3 .hero-wall-track {
  animation-duration: 60s;
}

.hero-wall-row:hover .hero-wall-track {
  animation-play-state: paused;
}

.hero-wall-card {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
}

.hero-wall-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hero-wall-card:hover img {
  transform: scale(1.06);
}

.hero-wall-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.hero-wall-card:hover .hero-wall-name {
  opacity: 1;
  transform: translateY(0);
}

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

/* Section headings: short brand bar under the title */
.section-title {
  font-weight: 600;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.4em;
  border-radius: 2px;
  background: var(--grad-brand);
}

/* Testimonials: a soft card with the arrows grouped in its corner */
.testimonial-head {
  text-align: left;
}

.t-slider {
  padding: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(100px, 8vw, 128px);
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  background: var(--light-bg);
}

.t-slide {
  text-align: left;
}

.t-quote {
  max-width: none;
  margin: 0;
  font-size: clamp(22px, 2.3vw, 36px);
}

.t-arrow {
  top: auto;
  bottom: clamp(24px, 3vw, 44px);
  width: 52px;
  height: 52px;
  transform: none;
}

.t-arrow:hover {
  transform: scale(1.08);
}

.t-arrow-prev {
  left: auto;
  right: calc(clamp(24px, 4vw, 64px) + 64px);
}

.t-arrow-next {
  right: clamp(24px, 4vw, 64px);
}

/* WhatsApp button (bottom right on every page) */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1FA855;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  background: #178C46;
  transform: scale(1.08);
}

/* Project detail pages */
.project-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--purple);
  font-weight: 500;
}

.project-back::before {
  content: "\2190\00a0";
}

.project-hero .project-tags {
  margin-top: 22px;
}

.project-hero-cover,
.project-full-frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  overflow: hidden;
  background: var(--light-bg);
}

.project-hero-cover img,
.project-full-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.project-story-title {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.project-story-text {
  margin-bottom: 32px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}

.project-facts {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
}

.project-facts-title {
  margin-bottom: 14px;
  font-size: 20px;
}

.project-facts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.project-facts-list li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.project-next-link {
  display: block;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  transition: border-color 0.3s;
}

.project-next-link:hover {
  border-color: var(--purple);
}

.project-next-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.project-next-name {
  display: block;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  color: var(--navy);
}

/* Blog */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--box-radius);
  transition: border-color 0.3s;
}

.post-card:hover {
  border-color: var(--purple);
}

.post-card-cat {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

.post-card-title {
  margin-bottom: 14px;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.25;
  color: var(--navy);
}

.post-card-text {
  flex: 1;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 500;
}

.post-card-link img {
  width: 18px;
  height: 18px;
}

.post {
  padding: calc(var(--header-h) + clamp(30px, 5vw, 70px)) 0 clamp(50px, 6vw, 90px);
}

.post-head,
.post-body {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post-title {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
  font-weight: 600;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 clamp(28px, 3vw, 40px);
  color: var(--muted);
}

.post-body h2 {
  margin: 34px 0 12px;
  font-size: clamp(22px, 2vw, 28px);
}

.post-body p,
.post-body li {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.75;
  color: var(--muted);
}

.post-body p {
  margin-bottom: 18px;
}

.post-body ul {
  margin-bottom: 18px;
  padding-left: 22px;
}

.post-body a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Forms: reCAPTCHA, send status and the hidden bot trap */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-captcha {
  margin: 22px 0 8px;
}

.form-captcha-box {
  min-height: 78px;
}

.form-captcha-error {
  display: none;
  margin-top: 8px;
  color: #E5484D;
  font-size: 14px;
}

.form-captcha.is-invalid .form-captcha-error {
  display: block;
}

.form-failure {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(229, 72, 77, 0.12);
  line-height: 1.5;
}

.cta-form .form-failure,
.cta-form .form-failure a {
  color: var(--white);
}

.brief-card .form-failure,
.brief-card .form-failure a {
  color: var(--navy);
}

.form-failure a {
  text-decoration: underline;
}

.form-submit.is-sending,
.brief-submit.is-sending {
  opacity: 0.6;
  pointer-events: none;
}

/* The Google widget has a fixed 304px width */
@media (max-width: 400px) {
  .form-captcha-box {
    transform: scale(0.88);
    transform-origin: left top;
  }
}
/* ==================== Client Feedback Updates End ==================== */
