body {
  font-family: 'Manrope', sans-serif;
  color: #171717;
  background-color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
#nl-badge-frame{
  display: none !important;
}
/* Light Mode Defaults (Clean reference look) */
.stripe-navbar {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 12px 36px -4px rgba(23, 23, 23, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stripe-navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 42px -6px rgba(23, 23, 23, 0.12);
  border-color: rgba(209, 213, 219, 1);
}

/* Dark Mode Overrides when body.dark-mode is active */
body.dark-mode {
  background-color: #121212 !important;
  color: #F3F4F6 !important;
}

body.dark-mode .bg-white,
body.dark-mode .stripe-navbar,
body.dark-mode #mobile-menu,
body.dark-mode #info-modal > div {
  background-color: #181818 !important;
  color: #F3F4F6 !important;
  border-color: #2D2D2D !important;
}

body.dark-mode .text-brand-black,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode .font-heading {
  color: #FFFFFF !important;
}

body.dark-mode .text-gray-600,
body.dark-mode .text-gray-500,
body.dark-mode .text-gray-700 {
  color: var(--text-soft) !important;
}

body.dark-mode .text-brand-blue {
  color: var(--link) !important;
}

body.dark-mode .bg-\[\#F4F5F7\],
body.dark-mode .bg-\[\#F7F8FA\],
body.dark-mode .bg-\[\#F8F9FA\],
body.dark-mode .bg-\[\#F5F6F8\],
body.dark-mode .bg-gray-50,
body.dark-mode .bg-gray-100 {
  background-color: #1E1E1E !important;
}

body.dark-mode .border-gray-100,
body.dark-mode .border-gray-200,
body.dark-mode .border-gray-300 {
  border-color: #2D2D2D !important;
}

body.dark-mode .stripe-navbar {
  background-color: rgba(24, 24, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5);
}
body.dark-mode .stripe-navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Navigation active bar & hover pill */
.nav-pill {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
  color: #4B5563;
}
body.dark-mode .nav-pill {
  color: #D1D5DB;
}
.nav-pill::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-pill.active {
  color: var(--blue);
  font-weight: 600;
}
.nav-pill.active::after,
.nav-pill:hover::after {
  transform: scaleX(1);
}
.nav-pill:hover {
  color: #111827;
  background-color: rgba(40, 96, 235, 0.08);
}
body.dark-mode .nav-pill:hover {
  color: #FFFFFF;
  background-color: rgba(40, 96, 235, 0.1);
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

/* Tinted and responsive divider lines (e.g. border-gray-200/80, lg:border-gray-200) */
body.dark-mode [class*=":border-gray-"],
body.dark-mode [class*="border-gray-200/"] {
  border-color: #2D2D2D !important;
}

/* Text on yellow stays dark in both themes */
body.dark-mode .bg-brand-yellow.text-brand-black,
body.dark-mode .bg-brand-yellow .text-brand-black {
  color: #171717 !important;
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  padding: 100px 0 48px;
  background: var(--surface-alt);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.hero-lead {
  max-width: 42ch;
  margin-top: 18px;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
#hero-text-wrapper {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#hero-text-wrapper.is-swapping {
  opacity: 0;
  transform: translateY(-6px);
}
.hero-media {
  position: relative;
  min-width: 0;
  height: clamp(360px, 60vh, 520px);
}
.hero-swiper {
  height: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.hero-controls {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .hero {
    padding: 112px 0 40px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
  }
  .hero-media {
    height: clamp(520px, calc(100vh - 152px), 680px);
  }
}

/* =====================================================================
   Services, estimator, call-to-action bands and contact details
   ===================================================================== */
.service-card {
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  border-color: var(--link);
  box-shadow: var(--shadow);
}
.estimator {
  margin-top: 8px;
  padding: 20px;
}
@media (min-width: 640px) {
  .estimator {
    padding: 24px 28px;
  }
}
.estimator-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--blue-tint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.cta-banner {
  padding: 64px 0;
  background: var(--blue);
  color: #FFFFFF;
}
.cta-banner .title-lg {
  color: #FFFFFF;
}
@media (min-width: 1024px) {
  .cta-banner {
    padding: 80px 0;
  }
}
.cta-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--blue);
  color: #FFFFFF;
}
body.dark-mode .cta-strip p {
  color: #FFFFFF !important;
}
@media (min-width: 640px) {
  .cta-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.contact-link,
.contact-link + span {
  color: var(--ink);
}
.contact-link:hover {
  color: var(--link);
}

/* Map across the bottom of the contact section */
.map-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
}
@media (min-width: 1024px) {
  .map-card {
    height: 380px;
  }
}
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Google has no dark embed, so the colours are flipped */
body.dark-mode .map-card iframe {
  filter: invert(0.9) hue-rotate(180deg) contrast(0.9);
}

/* Theme button on the right edge */
.theme-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  background: #171717;
  color: #FFFFFF;
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}
body.dark-mode .theme-tab {
  background: var(--yellow);
  color: #171717;
}

/* Swiper Custom Pagination Dots */
.reviews-pagination .swiper-pagination-bullet,
.services-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--field-line);
  opacity: 1;
  transition: all 0.25s ease;
}
.reviews-pagination .swiper-pagination-bullet-active,
.services-pagination .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: var(--blue);
}

#services {
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.services-swiper {
  width: 100%;
  overflow: hidden;
  padding: 4px 2px 32px 2px;
}
.services-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.services-swiper .swiper-slide {
  height: auto;
  display: flex;
  opacity: 1 !important;
  visibility: visible !important;
}
.service-card {
  width: 100%;
  opacity: 1;
  visibility: visible;
}

.swiper-slide {
  height: auto;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* =====================================================================
   Our Work — video showcase
   ===================================================================== */
#work [hidden] {
  display: none !important;
}
#work button:focus-visible,
#work input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Category filter */
.reel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-self: flex-start;
  padding: 4px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #DCE4F5;
}
@media (min-width: 768px) {
  .reel-filters {
    align-self: flex-end;
  }
}
.reel-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.reel-filter span {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.reel-filter:hover {
  color: #171717;
  background: rgba(40, 96, 235, 0.08);
}
.reel-filter[aria-pressed="true"] {
  background: var(--blue);
  color: #FFFFFF;
}

/* Layout: player left, details and playlist right */
.reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 900px) {
  .reel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 48px;
    /* Top aligned so the details don't move when the list is filtered */
    align-items: start;
  }
}
.reel-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Portrait player: the main feature of the page */
.reel-stage-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  scroll-margin-top: 96px;
}
@media (min-width: 900px) {
  .reel-stage-wrap {
    /* Tall as possible while still fitting under the fixed navbar */
    width: calc(clamp(560px, 100vh - 120px, 760px) * 9 / 16);
  }
}
.reel-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(23, 23, 23, 0.4);
}
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-stage.is-enhanced .reel-video {
  cursor: pointer;
}
.reel-stage:fullscreen {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.reel-stage:fullscreen .reel-video {
  object-fit: contain;
}

.reel-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #F9D601;
  color: #171717;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.reel-big-play svg {
  transform: translateX(2px);
}
.reel-big-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
}
.reel-stage.is-playing .reel-big-play {
  opacity: 0;
  pointer-events: none;
}

.reel-controls {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  transition: opacity 0.25s ease;
}
/* With a mouse, controls fade away during playback. Touch screens keep them. */
@media (hover: hover) {
  .reel-stage.is-playing .reel-controls {
    opacity: 0;
  }
  .reel-stage.is-playing:hover .reel-controls,
  .reel-stage.is-playing:focus-within .reel-controls {
    opacity: 1;
  }
}
.reel-seek {
  width: 100%;
  height: 18px;
  accent-color: #F9D601;
  cursor: pointer;
}
.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s ease;
}
.reel-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.reel-stage .icon-pause,
.reel-stage.is-playing .icon-play {
  display: none;
}
.reel-stage.is-playing .icon-pause {
  display: block;
}

.reel-spinner {
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #F9D601;
  animation: reelSpin 0.8s linear infinite;
  pointer-events: none;
}
.reel-error {
  position: absolute;
  inset: 16px 16px auto 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #7F1D1D;
  font-size: 12.5px;
  font-weight: 600;
}

/* Now playing */
/* Fixed heights stop the playlist jumping when the text changes */
.reel-info #reel-title {
  font-size: clamp(24px, 2.4vw, 30px);
}
#reel-desc {
  min-height: 3.3em;
}
.reel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 16px;
}

/* Playlist: swipeable rail on phones, two columns from tablet up */
.reel-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 3px;
}
.reel-list li {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}
#work .reel-list li.is-filtered {
  display: none;
}
@media (min-width: 640px) {
  .reel-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}
.reel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  text-align: left;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #DCE4F5;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.reel-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.reel-item[aria-current="true"] {
  background: #DFE8FF;
  border-color: var(--blue);
}
.reel-thumb {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: #000000;
}
.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.reel-item-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #171717;
}
.reel-item-meta {
  font-size: 11.5px;
  color: #4B5563;
}

/* Animated bars on the clip that is playing */
.reel-eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.reel-eq i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #F9D601;
  animation: reelEq 0.9s ease-in-out infinite;
}
.reel-eq i:nth-child(2) {
  animation-delay: -0.6s;
}
.reel-eq i:nth-child(3) {
  animation-delay: -0.3s;
}
.reel.is-playing .reel-item[aria-current="true"] .reel-eq {
  display: flex;
}

/* Video showcase: dark theme */
body.dark-mode #work button:focus-visible,
body.dark-mode #work input:focus-visible,
#work .reel-stage button:focus-visible,
#work .reel-stage input:focus-visible {
  outline-color: #F9D601;
}
body.dark-mode .reel-filters {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .reel-filter {
  color: #D1D5DB;
}
body.dark-mode .reel-filter:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
body.dark-mode .reel-filter[aria-pressed="true"] {
  background: #F9D601;
  color: #171717;
}
body.dark-mode .reel-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}
body.dark-mode .reel-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .reel-item[aria-current="true"] {
  background: rgba(249, 214, 1, 0.12);
  border-color: #F9D601;
}
body.dark-mode .reel-item-title {
  color: #FFFFFF;
}
body.dark-mode .reel-item-meta {
  color: #9CA3AF;
}

@keyframes reelSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes reelEq {
  0%, 100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reel-eq i {
    animation: none;
  }
  .reel-item,
  .reel-big-play {
    transition: none;
  }
}

/* =====================================================================
   What We've Repaired — photo gallery + viewer
   ===================================================================== */
.fix-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fix-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fix-filter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #374151;
  font-size: 11.5px;
}
.fix-filter:hover {
  border-color: var(--blue);
}
.fix-filter[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
}
.fix-filter[aria-pressed="true"] span {
  background: #F9D601;
  color: #171717;
}
body.dark-mode .fix-filter[aria-pressed="false"] {
  background: #1E1E1E;
  border-color: #2D2D2D;
  color: #E5E7EB;
}

.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .fix-grid {
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .fix-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fix-grid li.is-filtered {
  display: none;
}

.fix-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #E5E7EB;
  text-align: left;
  box-shadow: 0 10px 30px -10px rgba(23, 23, 23, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fix-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -14px rgba(40, 96, 235, 0.35);
}
.fix-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fix-card:hover img {
  transform: scale(1.05);
}
.fix-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 56px 14px 14px;
  background: linear-gradient(to top, rgba(10, 14, 28, 0.92), rgba(10, 14, 28, 0.55) 55%, transparent);
  color: #FFFFFF;
}
.fix-title {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.fix-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #D1D5DB;
}
.fix-zoom {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fix-card:hover .fix-zoom {
  background: var(--blue);
  color: #FFFFFF;
}
@media (min-width: 640px) {
  .fix-caption {
    padding: 70px 20px 20px;
  }
  .fix-title {
    font-size: 17px;
  }
  .fix-sub {
    font-size: 13px;
  }
  .fix-zoom {
    display: inline-flex;
  }
}

/* Full photo viewer */
.fix-viewer {
  width: min(92vw, 560px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #171717;
  color: #FFFFFF;
}
.fix-viewer::backdrop {
  background: rgba(8, 10, 18, 0.86);
}
.fix-viewer-photo {
  display: block;
  width: 100%;
  height: min(62vh, 620px);
  object-fit: contain;
  background: #000000;
}
.fix-viewer-media.is-loading {
  background: #000000;
}
.fix-viewer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fix-viewer-btn:hover {
  background: #F9D601;
  color: #171717;
}
.fix-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
}
@media (prefers-reduced-motion: reduce) {
  .fix-card,
  .fix-card img {
    transition: none;
  }
}

/* =====================================================================
   Video showcase on phones: thumbnail strip, screen-sized player
   ===================================================================== */
@media (max-width: 639px) {
  #work {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  #work .reel-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1.9fr;
    align-self: stretch;
  }
  #work .reel-filter {
    justify-content: center;
    padding: 0 8px;
    white-space: nowrap;
  }

  /* Order: thumbnails, player, then details */
  #work .reel {
    gap: 18px;
  }
  #work .reel-side {
    display: contents;
  }
  #work .reel-list {
    position: relative;
    order: -1;
    grid-auto-columns: 58px;
    gap: 10px;
    padding: 3px;
    scrollbar-width: none;
  }
  #work .reel-list::-webkit-scrollbar {
    display: none;
  }
  #work .reel-item {
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    transform: none;
  }
  #work .reel-thumb {
    width: 58px;
    height: 78px;
    border-radius: 14px;
    opacity: 0.6;
    border: 3px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
  }
  #work .reel-item[aria-current="true"] .reel-thumb {
    opacity: 1;
    border-color: var(--blue);
  }
  body.dark-mode #work .reel-item[aria-current="true"] .reel-thumb {
    border-color: #F9D601;
  }
  /* Hidden visually but still read by screen readers */
  #work .reel-item-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Small enough that the whole player and its controls fit on screen */
  #work .reel-stage-wrap {
    width: min(100%, calc(72vh * 9 / 16));
    width: min(100%, calc(72svh * 9 / 16));
    min-width: 250px;
    scroll-margin-top: 80px;
  }
  #work .reel-big-play {
    width: 64px;
    height: 64px;
  }
  #work #reel-desc {
    min-height: 0;
  }
  #work .reel-cta > div {
    margin-inline: auto;
  }
  #work #reel-book {
    width: 100%;
    justify-content: center;
  }
  #work #reel-book[hidden] {
    display: none;
  }

  /* Keep the floating buttons from covering the player controls */
  .floating-contacts,
  #theme-toggle-btn {
    transition: opacity 0.25s ease;
  }
  body.reel-in-view .floating-contacts,
  body.reel-in-view #theme-toggle-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
/* Sideways swipes change the video; up and down still scroll the page */
.reel-stage.is-enhanced {
  touch-action: pan-y;
}

/* =====================================================================
   About
   ===================================================================== */
.about-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.about-points {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .about-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* =====================================================================
   How It Works: three numbered steps joined by one line
   Phones: vertical line on the left. Wider screens: line across the top.
   ===================================================================== */
.flow {
  display: grid;
  gap: 32px;
  margin: var(--head-gap) 0 40px;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
}
.flow-step h3 {
  padding-top: 10px;
}
.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
/* Grey track (::before) with the blue line (::after) drawn over it */
.flow-step:not(:last-child)::before,
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 52px;
  bottom: -24px;
  width: 4px;
  border-radius: 4px;
}
.flow-step:not(:last-child)::before {
  background: var(--line);
}
.flow-step:not(:last-child)::after {
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
  transition: transform 0.15s linear;
}
.flow.is-scrolling .flow-step:not(.is-lit) .flow-node {
  opacity: 0.35;
  transform: scale(0.75);
}
@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .flow-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .flow-step h3 {
    padding-top: 0;
  }
  .flow-step:not(:last-child)::before,
  .flow-step:not(:last-child)::after {
    left: 56px;
    top: 20px;
    bottom: auto;
    width: calc(100% - 36px);
    height: 4px;
  }
  .flow-step:not(:last-child)::after {
    transform-origin: left;
    transform: scaleX(var(--fill, 1));
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-node {
    transition: none;
  }
}

/* =====================================================================
   Footer — soft gradient mesh with drifting "airflow" waves
   ===================================================================== */
.site-footer {
  --prev: #FFFFFF; /* colour of the section above, used by the top wave */
  --ink: #171717;
  --muted: #475569;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-line: rgba(255, 255, 255, 0.95);
  --rule: rgba(40, 96, 235, 0.18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--muted);
  background:
    radial-gradient(60% 55% at 8% 30%, rgba(56, 189, 248, 0.38), transparent 70%),
    radial-gradient(50% 55% at 92% 22%, rgba(40, 96, 235, 0.30), transparent 70%),
    radial-gradient(45% 45% at 62% 100%, rgba(249, 214, 1, 0.24), transparent 70%),
    linear-gradient(180deg, #EEF4FF, #E4EEFF);
}
body.dark-mode .site-footer {
  --prev: #181818;
  --ink: #FFFFFF;
  --muted: #A8B3C7;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.1);
  --rule: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(60% 55% at 8% 30%, rgba(14, 165, 233, 0.24), transparent 70%),
    radial-gradient(50% 55% at 92% 22%, rgba(40, 96, 235, 0.32), transparent 70%),
    radial-gradient(45% 45% at 62% 100%, rgba(249, 214, 1, 0.09), transparent 70%),
    linear-gradient(180deg, #0B1020, #070A14);
}
.footer-waves {
  position: relative;
  height: 40px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .footer-waves {
    height: 54px;
  }
}
.footer-waves svg {
  position: absolute;
  top: -1px;
  left: 0;
  width: 200%;
  height: 72%;
  animation: footerDrift 18s linear infinite;
}
.footer-waves svg:nth-child(1) {
  top: 26%;
  fill: rgba(40, 96, 235, 0.22);
  animation-duration: 26s;
}
.footer-waves svg:nth-child(2) {
  top: 13%;
  fill: rgba(56, 189, 248, 0.32);
  animation-duration: 15s;
  animation-direction: reverse;
}
.footer-waves svg:nth-child(3) {
  fill: var(--prev);
}
@keyframes footerDrift {
  to {
    transform: translateX(-50%);
  }
}


.footer-ink {
  color: var(--ink);
}
.footer-heading {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.footer-link {
  display: inline-block;
  padding: 6px 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link:hover {
  color: var(--blue);
  transform: translateX(4px);
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social:hover {
  background: var(--blue);
  color: #FFFFFF;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid var(--rule);
}
/* Brand name in giant letters. It scales with the screen and sits behind the
   bottom row, so the footer needs a little extra room underneath */
.site-footer {
  padding-bottom: clamp(36px, 8vw, 120px);
}
.footer-watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: calc(100% - 32px);
  max-width: 1360px;
  transform: translateX(-50%);
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 190px;
  font-weight: 800;
  pointer-events: none;
  user-select: none;
}
body.dark-mode .footer-watermark {
  color: #FFFFFF;
  opacity: 0.6;
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 700;
  transition: background-color 0.2s ease;
}
.footer-top-link:hover {
  background: #245BE6;
}
@media (prefers-reduced-motion: reduce) {
  .footer-waves svg {
    animation: none;
  }
  .footer-link,
  .footer-social {
    transition: none;
  }
}

/* Footer on phones: one screen tall */
@media (max-width: 639px) {
  .footer-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .footer-brand .footer-social {
    width: 36px;
    height: 36px;
  }
}
.footer-bottom button {
  padding: 4px 0;
}
/* Phones: comfortable spacing that still fits one screen */
@media (max-width: 639px) {
  .footer-waves {
    height: 30px;
  }
  .footer-link {
    padding: 4px 0;
  }
  .footer-heading {
    margin-bottom: 10px;
  }
}

/* Phones: keep the last links clear of the floating buttons on the right */
@media (max-width: 639px) {
  .footer-bottom {
    align-items: flex-start;
    padding-right: 68px;
    padding-bottom: 28px;
  }
  .footer-bottom > div {
    justify-content: flex-start;
  }
}
/* Two classes so these win over the Tailwind utilities on the same elements */
@media (max-width: 639px) {
  .site-footer .footer-bottom {
    align-items: flex-start;
  }
  /* Social icons under the logo, clear of the Theme tab on the right */
  .site-footer .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =====================================================================
   Testimonials — review-card style
   ===================================================================== */
.reviews-swiper .swiper-wrapper {
  padding-top: 6px;
}
.g-review {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  box-shadow: 0 14px 30px -14px rgba(23, 23, 23, 0.2), 0 2px 8px -2px rgba(23, 23, 23, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.g-review:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -16px rgba(23, 23, 23, 0.28);
}
.g-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.g-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
}
.g-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #1A5FD0;
}
.g-meta {
  font-size: 12.5px;
  color: #6B7280;
}
/* Content lines up with the name, as in the reference design */
.g-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-left: 66px;
}
.g-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.g-stars {
  display: inline-flex;
  gap: 1px;
}
.g-stars svg {
  width: 17px;
  height: 17px;
  fill: #FBBC04;
}
.g-badge {
  padding: 2px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
}
.g-text {
  flex: 1;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}
.g-services {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #4B5563;
}
.g-services strong {
  display: block;
  color: #171717;
}
@media (max-width: 400px) {
  .g-body {
    padding-left: 0;
  }
}
body.dark-mode .g-review {
  background: #1E1E1E;
  box-shadow: 0 0 0 1px #2D2D2D;
}
body.dark-mode .g-name {
  color: #8FB0FF;
}
body.dark-mode .g-meta,
body.dark-mode .g-services {
  color: #9CA3AF;
}
body.dark-mode .g-text,
body.dark-mode .g-badge {
  color: #E5E7EB;
}
body.dark-mode .g-badge {
  border-color: #4B5563;
}
body.dark-mode .g-services strong {
  color: #FFFFFF;
}
@media (prefers-reduced-motion: reduce) {
  .g-review {
    transition: none;
  }
}

/* =====================================================================
   Brands marquee
   ===================================================================== */
.brand-section.section {
  padding-block: 40px;
}
.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.brand-track {
  display: flex;
  width: max-content;
  animation: brandScroll 40s linear infinite;
}
.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}
.brand-list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  /* Same as the gap, so the join between the two lists is invisible */
  padding: 6px 14px 6px 0;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px;
  border: 1px solid #E3EAF8;
  border-radius: 16px;
  background: #F6F8FE;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #24324D;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.brand-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
body.dark-mode .brand-chip {
  background: #1E1E1E;
  border-color: #2D2D2D;
  color: #E5E7EB;
}
body.dark-mode .brand-chip:hover {
  border-color: var(--blue);
  color: #8FB0FF;
}
@keyframes brandScroll {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 639px) {
  .brand-track {
    animation-duration: 30s;
  }
  .brand-list {
    gap: 10px;
    padding-right: 10px;
  }
  .brand-chip {
    height: 46px;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 15px;
  }
}
/* No motion: show every brand once, wrapped and centred */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .brand-track {
    width: auto;
    animation: none;
  }
  .brand-list {
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
  }
  .brand-list[aria-hidden="true"] {
    display: none;
  }
}

/* Brand logos sit on white cards in both themes so their colours stay true */
.brand-chip,
body.dark-mode .brand-chip {
  justify-content: center;
  min-width: 168px;
  height: 76px;
  background: #FFFFFF;
  color: #24324D;
}
body.dark-mode .brand-chip {
  border-color: #FFFFFF;
}
body.dark-mode .brand-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.brand-chip img {
  width: auto;
  height: auto;
  max-width: 124px;
  max-height: 44px;
}
/* SVG files need a set width to scale up to the same visual size */
.brand-chip img[src$=".svg"] {
  width: 124px;
  max-height: 44px;
  object-fit: contain;
}
@media (max-width: 639px) {
  .brand-chip,
  body.dark-mode .brand-chip {
    min-width: 128px;
    height: 58px;
  }
  .brand-chip img,
  .brand-chip img[src$=".svg"] {
    max-width: 94px;
    max-height: 32px;
  }
  .brand-chip img[src$=".svg"] {
    width: 94px;
  }
}
