/* =========================================================
   TEQAN — Modern redesign
   Brand colors preserved from teqan.com
   ========================================================= */

:root {
  --brand: #8f4070;
  --brand-hot: #ac2c81;
  --brand-deep: #c02886;
  --brand-dark: #3c225f;
  --brand-ink: #2a1545;
  --teal: #009fac;
  --text: #1a1224;
  --muted: #6b6178;
  --surface: #faf7fb;
  --white: #ffffff;
  --line: rgba(143, 64, 112, 0.15);
  --radius: 1.25rem;
  --nav-h: 80px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 60px rgba(60, 34, 95, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ---------- Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand-ink), var(--brand-dark) 55%, #5a1f55);
  transition: opacity 0.65s var(--ease-out), visibility 0.65s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader.is-done .loader-mark {
  transform: scale(0.96);
  opacity: 0;
}

.loader-mark {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 2.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.55s var(--ease-out), opacity 0.55s var(--ease-out);
}

.loader-ring {
  position: absolute;
  inset: -10px;
  border-radius: 1.75rem;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(22, 13, 40, 0.01), rgba(22, 13, 40, 0.01)) padding-box,
    linear-gradient(120deg, rgba(255, 158, 216, 0.55), transparent 40%, rgba(0, 207, 220, 0.45), transparent 75%, rgba(172, 44, 129, 0.4)) border-box;
  animation: loader-ring-spin 4s linear infinite;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.loader-mark img {
  position: relative;
  margin: 0 auto 0.85rem;
  filter: brightness(0) invert(1);
  animation: loader-logo-breathe 2.4s ease-in-out infinite;
}

.loader-tag {
  margin: 0 0 1.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.loader-bar {
  width: 140px;
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  border-radius: 2px;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--teal), var(--brand-hot), #ff7ec8);
  animation: loader-slide 1s ease-in-out infinite;
}

@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes loader-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-logo-breathe {
  0%, 100% { transform: scale(1); filter: brightness(0) invert(1); }
  50% { transform: scale(1.04); filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 158, 216, 0.45)); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-ring,
  .loader-mark img,
  .loader-bar span {
    animation: none;
  }
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(172, 44, 129, 0.18), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: multiply;
}

body:hover .cursor-glow {
  opacity: 1;
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- Nav ---------- */
.site-nav {
  height: var(--nav-h);
  padding-block: 0.75rem;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-nav .navbar-brand {
  position: relative;
  z-index: 1100;
}

.brand-logo {
  height: 58px;
  width: auto;
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 48px;
  }
}

.brand-logo--color {
  display: none;
}

.site-nav.is-scrolled .brand-logo--light {
  display: none;
}

.site-nav.is-scrolled .brand-logo--color {
  display: block;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(42, 21, 69, 0.08);
}

.site-nav .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88) !important;
  padding: 0.55rem 0.85rem !important;
  position: relative;
  transition: color 0.25s;
}

.site-nav.is-scrolled .nav-link {
  color: var(--text) !important;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 0;
  padding: 0.5rem;
  box-shadow: none !important;
  position: relative;
  z-index: 1100;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.toggler-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0;
  border-radius: 2px;
  transition: background 0.3s, transform 0.35s var(--ease-out), opacity 0.25s;
  transform-origin: center;
}

.site-nav.is-scrolled .toggler-line {
  background: var(--brand-dark);
}

.site-nav.menu-open .toggler-line {
  background: #fff;
}

.site-nav.menu-open .toggler-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.site-nav.menu-open .toggler-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .site-nav.menu-open {
    height: auto;
  }

  .site-nav.menu-open .brand-logo--light {
    display: block;
  }

  .site-nav.menu-open .brand-logo--color {
    display: none;
  }

  #mainNav.navbar-collapse {
    position: fixed;
    inset: 0;
    z-index: 1090;
    width: 100%;
    height: 100svh !important;
    max-height: none !important;
    margin: 0;
    padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2.5rem;
    border-radius: 0;
    background:
      radial-gradient(ellipse at top right, rgba(172, 44, 129, 0.35), transparent 45%),
      linear-gradient(160deg, var(--brand-ink), var(--brand-dark) 55%, #5a1f55);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mainNav.navbar-collapse.show,
  #mainNav.navbar-collapse.collapsing {
    display: flex !important;
  }

  #mainNav .navbar-nav {
    width: 100%;
    gap: 0.35rem !important;
    align-items: stretch !important;
  }

  #mainNav .nav-item {
    width: 100%;
    text-align: center;
  }

  #mainNav .nav-link {
    color: #fff !important;
    font-size: 1.55rem !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.85rem 1rem !important;
  }

  #mainNav .nav-link::after {
    left: 50%;
    right: auto;
    width: 2.5rem;
    bottom: 0.35rem;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
  }

  #mainNav .nav-link:hover::after,
  #mainNav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
  }

  #mainNav .nav-item.ms-lg-3 {
    margin-top: 1.25rem !important;
    margin-left: 0 !important;
  }

  #mainNav .btn-brand {
    width: 100%;
    max-width: 280px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  body.nav-locked {
    overflow: hidden;
  }
}

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hot);
  --bs-btn-hover-border-color: var(--brand-hot);
  --bs-btn-active-bg: var(--brand-deep);
  --bs-btn-active-border-color: var(--brand-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding-inline: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(172, 44, 129, 0.35);
}

.btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding-inline: 1.5rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-outline-brand:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(172, 44, 129, 0.25);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 1.5rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Hero / Swiper ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
}

.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-net {
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.hero-code {
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.hero-code.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-code.is-hidden .code-line,
.hero-code.is-hidden .code-rain {
  animation-play-state: paused;
}

.hero-code .code-line {
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(0, 220, 230, 0.45);
  text-shadow: 0 0 12px rgba(0, 207, 220, 0.25);
  opacity: 0;
  animation: code-drift linear infinite;
  pointer-events: none;
}

.hero-code .code-line:nth-child(odd) {
  color: rgba(255, 158, 216, 0.42);
  text-shadow: 0 0 12px rgba(172, 44, 129, 0.25);
}

.hero-code .code-line:nth-child(1) { left: 55%; top: 18%; animation-duration: 18s; animation-delay: 0s; }
.hero-code .code-line:nth-child(2) { left: 62%; top: 32%; animation-duration: 22s; animation-delay: 2s; }
.hero-code .code-line:nth-child(3) { left: 70%; top: 48%; animation-duration: 16s; animation-delay: 4s; }
.hero-code .code-line:nth-child(4) { left: 58%; top: 62%; animation-duration: 20s; animation-delay: 1s; }
.hero-code .code-line:nth-child(5) { left: 78%; top: 28%; animation-duration: 24s; animation-delay: 5s; }
.hero-code .code-line:nth-child(6) { left: 66%; top: 72%; animation-duration: 17s; animation-delay: 3s; }
.hero-code .code-line:nth-child(7) { left: 82%; top: 55%; animation-duration: 21s; animation-delay: 6s; }
.hero-code .code-line:nth-child(8) { left: 74%; top: 40%; animation-duration: 19s; animation-delay: 7s; }

.hero-code .code-rain {
  position: absolute;
  top: -20%;
  width: 1.1em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(0, 207, 220, 0.35);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.15em;
  white-space: nowrap;
  opacity: 0;
  animation: code-rain-fall linear infinite;
}

.hero-code .code-rain::before {
  content: "01001101011010010110111001100001";
}

.hero-code .code-rain:nth-child(9)  { left: 8%;  animation-duration: 11s; animation-delay: 0s; }
.hero-code .code-rain:nth-child(10) { left: 18%; animation-duration: 14s; animation-delay: 2s; color: rgba(255, 158, 216, 0.3); }
.hero-code .code-rain:nth-child(11) { left: 28%; animation-duration: 12s; animation-delay: 4s; }
.hero-code .code-rain:nth-child(12) { left: 86%; animation-duration: 13s; animation-delay: 1s; }
.hero-code .code-rain:nth-child(13) { left: 92%; animation-duration: 15s; animation-delay: 3s; color: rgba(255, 158, 216, 0.28); }
.hero-code .code-rain:nth-child(14) { left: 96%; animation-duration: 10s; animation-delay: 5s; }

@keyframes code-drift {
  0% {
    transform: translate3d(0, 12px, 0);
    opacity: 0;
  }
  15% { opacity: 0.7; }
  70% { opacity: 0.35; }
  100% {
    transform: translate3d(-40px, -28px, 0);
    opacity: 0;
  }
}

@keyframes code-rain-fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% { opacity: 0.55; }
  85% { opacity: 0.25; }
  100% {
    transform: translateY(120vh);
    opacity: 0;
  }
}

@media (max-width: 991.98px) {
  .hero-net,
  .hero-code {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-code .code-line,
  .hero-code .code-rain {
    animation: none;
    opacity: 0;
  }
}

.hero-swiper {
  position: relative;
  z-index: 1;
}

.hero-swiper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-controls,
.scroll-hint,
.slide-content {
  z-index: 4;
}

.swiper-slide {
  background: #1a0f2e;
}

.slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.slide-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  filter: brightness(1.08) contrast(1.08) saturate(1.1);
  transition: transform 7s linear;
}

.swiper-slide-active .slide-media img {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 15, 46, 0.42) 0%, rgba(26, 15, 46, 0.18) 38%, rgba(26, 15, 46, 0.05) 70%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-top: var(--nav-h);
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
}

.slide-eyebrow {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.15rem;
  opacity: 0;
  transform: translateY(24px);
}

.slide-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 1.35rem;
  color: #fff;
  text-shadow: 0 4px 32px rgba(26, 15, 46, 0.55);
}

.slide-title .line {
  display: block;
  overflow: hidden;
}

.slide-title .line > span,
.slide-title .line {
  opacity: 0;
  transform: translateY(110%);
}

.slide-title .accent {
  color: #ffb6e0;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.slide-copy {
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  max-width: 38rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.15rem;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 2px 18px rgba(26, 15, 46, 0.45);
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
}

.swiper-slide-active .slide-eyebrow,
.swiper-slide-active .slide-copy,
.swiper-slide-active .slide-actions {
  animation: rise-in 0.9s var(--ease-out) forwards;
}

.swiper-slide-active .slide-eyebrow { animation-delay: 0.15s; }
.swiper-slide-active .slide-title .line:nth-child(1) {
  animation: rise-in 0.85s var(--ease-out) 0.25s forwards;
}
.swiper-slide-active .slide-title .line:nth-child(2) {
  animation: rise-in 0.85s var(--ease-out) 0.38s forwards;
}
.swiper-slide-active .slide-copy { animation-delay: 0.5s; }
.swiper-slide-active .slide-actions { animation-delay: 0.62s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: auto;
}

.hero-nav {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(8px);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.hero-nav:hover {
  background: var(--brand-hot);
  border-color: var(--brand-hot);
  transform: scale(1.05);
}

.hero-nav svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.hero-playpause .icon-play {
  display: none;
}

.hero-playpause:not(.is-playing) .icon-pause {
  display: none;
}

.hero-playpause:not(.is-playing) .icon-play {
  display: block;
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 10px;
  line-height: 0;
}

.hero-pagination .swiper-pagination-bullet {
  box-sizing: border-box;
  flex: 0 0 8px;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1 !important;
  display: inline-block;
  vertical-align: middle;
  transition: width 0.35s var(--ease-out), background 0.3s, border-radius 0.35s;
}

.hero-pagination .swiper-pagination-bullet-active {
  flex: 0 0 22px;
  width: 22px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #fff;
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.hero-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-hot), #ff9ed8, var(--teal));
}

.scroll-hint {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 767.98px) {
  .scroll-hint { display: none; }
  .hero-controls { bottom: 1.5rem; }

  .slide-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
  }

  .slide-title {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
    line-height: 1.15;
    margin-bottom: 0.9rem;
  }

  .slide-copy {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .slide-actions .btn,
  .slide-actions .btn.btn-lg {
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-hot);
  margin-bottom: 0.85rem;
}

.section-eyebrow.light {
  color: #ff9ed8;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub,
.lead-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

/* ---------- About ---------- */
.about-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
}

.stat span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-hot);
}

.stat em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.marquee {
  margin-top: 4.5rem;
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: var(--brand-dark);
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee-track span:nth-child(even) {
  color: var(--brand-hot);
}

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

/* ---------- Services ---------- */
.services-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(172, 44, 129, 0.07), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 159, 172, 0.07), transparent 45%),
    var(--surface);
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%238f4070' stroke-width='1.2'%3E%3Cpath d='M40 80L180 40L320 140L520 60L700 120L860 50L1040 150L1160 90'/%3E%3Cpath d='M60 280L200 220L360 300L500 200L680 280L820 180L980 260L1140 200'/%3E%3Cpath d='M30 480L190 420L340 520L520 400L700 500L880 380L1040 480L1180 420'/%3E%3Cpath d='M80 650L240 580L420 660L600 560L780 640L960 550L1120 620'/%3E%3Cpath d='M180 40L200 220L190 420L240 580'/%3E%3Cpath d='M320 140L360 300L340 520L420 660'/%3E%3Cpath d='M520 60L500 200L520 400L600 560'/%3E%3Cpath d='M700 120L680 280L700 500L780 640'/%3E%3Cpath d='M860 50L820 180L880 380L960 550'/%3E%3Cpath d='M1040 150L980 260L1040 480L1120 620'/%3E%3Cpath d='M180 40L360 300L520 60L680 280L860 50L980 260L700 120L500 200L320 140L200 220'/%3E%3Cpath d='M200 220L340 520L500 200L700 500L820 180L1040 480L880 380L600 560L420 660L190 420'/%3E%3C/g%3E%3Cg fill='%238f4070'%3E%3Ccircle cx='40' cy='80' r='5'/%3E%3Ccircle cx='180' cy='40' r='6'/%3E%3Ccircle cx='320' cy='140' r='5'/%3E%3Ccircle cx='520' cy='60' r='6'/%3E%3Ccircle cx='700' cy='120' r='5'/%3E%3Ccircle cx='860' cy='50' r='6'/%3E%3Ccircle cx='1040' cy='150' r='5'/%3E%3Ccircle cx='1160' cy='90' r='5'/%3E%3Ccircle cx='60' cy='280' r='5'/%3E%3Ccircle cx='200' cy='220' r='6'/%3E%3Ccircle cx='360' cy='300' r='5'/%3E%3Ccircle cx='500' cy='200' r='6'/%3E%3Ccircle cx='680' cy='280' r='5'/%3E%3Ccircle cx='820' cy='180' r='6'/%3E%3Ccircle cx='980' cy='260' r='5'/%3E%3Ccircle cx='1140' cy='200' r='5'/%3E%3Ccircle cx='30' cy='480' r='5'/%3E%3Ccircle cx='190' cy='420' r='6'/%3E%3Ccircle cx='340' cy='520' r='5'/%3E%3Ccircle cx='520' cy='400' r='6'/%3E%3Ccircle cx='700' cy='500' r='5'/%3E%3Ccircle cx='880' cy='380' r='6'/%3E%3Ccircle cx='1040' cy='480' r='5'/%3E%3Ccircle cx='1180' cy='420' r='5'/%3E%3Ccircle cx='80' cy='650' r='5'/%3E%3Ccircle cx='240' cy='580' r='6'/%3E%3Ccircle cx='420' cy='660' r='5'/%3E%3Ccircle cx='600' cy='560' r='6'/%3E%3Ccircle cx='780' cy='640' r='5'/%3E%3Ccircle cx='960' cy='550' r='6'/%3E%3Ccircle cx='1120' cy='620' r='5'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}

.services-section > .container {
  position: relative;
  z-index: 1;
}

.service-tile {
  height: 100%;
  padding: 1.85rem 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(42, 21, 69, 0.04);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hot), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.service-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line);
}

.service-tile:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(143, 64, 112, 0.08);
  margin-bottom: 1.25rem;
}

.service-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-icon i {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--brand);
}

.service-tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-tile p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.service-tile--accent {
  background: linear-gradient(160deg, var(--brand-dark), #5a1f55 60%, var(--brand));
  color: #fff;
}

.service-tile--accent h3 {
  color: #fff;
}

.service-tile--accent p {
  color: rgba(255, 255, 255, 0.85);
}

.service-tile--accent .service-icon {
  background: rgba(255, 255, 255, 0.16);
}

.services-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1rem;
}

.services-ctas-portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.services-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.services-ctas .btn i {
  font-size: 1.15em;
  line-height: 1;
}

.services-ctas-or {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: 0.25rem;
}

@media (max-width: 767.98px) {
  .services-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 20.5rem;
    margin-inline: auto;
  }

  .services-ctas-portals {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .services-ctas .btn {
    width: 100%;
  }

  .services-ctas-or {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding-block: 0.15rem;
  }

  .services-ctas-or::before,
  .services-ctas-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
}

.service-tile--accent .service-icon img {
  filter: brightness(0) invert(1);
}

.service-tile--accent .service-icon i {
  color: #fff;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-hot);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s;
}

.service-link:hover {
  gap: 0.65rem;
}

/* ---------- Work grid ---------- */
.work-section {
  background: #fff;
}

.work-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.work-browse-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--brand-dark);
  transition: color 0.25s, gap 0.25s;
}

.work-browse-all:hover {
  color: var(--brand);
  gap: 0.7rem;
}

.work-page {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  min-height: 70vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(194, 24, 91, 0.06), transparent 55%),
    var(--surface);
}

.work-page .work-grid {
  gap: 1.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

/* Home work mobile slider only */
.work-section .work-swiper {
  display: block;
  overflow: hidden;
  margin-inline: -1rem;
  padding-inline: 1rem;
  padding-bottom: 2.25rem;
  background: transparent;
}

.work-section .work-swiper .swiper-slide {
  height: auto;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
}

.work-section .work-swiper .work-item,
.work-section .work-swiper .work-item--wide,
.work-section .work-swiper .work-item--tall {
  grid-column: auto;
  min-height: 260px;
  height: 280px;
  width: 100%;
  /* Avoid dark #1a1224 peeking through rounded corners on mobile */
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.work-section .work-swiper-pagination {
  bottom: 0;
}

.work-section .work-swiper-pagination .swiper-pagination-bullet {
  background: var(--brand-dark);
  opacity: 0.25;
}

.work-section .work-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--brand);
  opacity: 1;
}

.work-item {
  position: relative;
  grid-column: span 4;
  border: 0;
  padding: 0;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  min-height: 280px;
  background: #1a1224;
  isolation: isolate;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
  color: inherit;
}

.work-item--wide {
  grid-column: span 8;
}

.work-item--tall {
  min-height: 360px;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out), filter 0.5s;
}

.work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      var(--work-shade-angle, 180deg),
      transparent 12%,
      var(--work-shade-mid, rgba(42, 21, 69, 0.55)) 62%,
      var(--work-shade-end, rgba(42, 21, 69, 0.9)) 100%
    ),
    linear-gradient(
      180deg,
      transparent 48%,
      var(--work-shade-base, rgba(26, 18, 36, 0.78)) 100%
    );
  z-index: 1;
}

.work-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem;
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.45s var(--ease-out);
}

.work-meta .work-cat {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9ed8;
}

.work-meta h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

/* Work page: light cards so dark covers stay readable as a list */
.work-page .work-item {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 10px 28px rgba(42, 21, 69, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.work-page .work-item::after {
  display: none;
}

.work-page .work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(42, 21, 69, 0.14);
}

.work-page .work-item__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ede7f2;
}

.work-page .work-item img {
  position: absolute;
  inset: 0;
}

.work-page .work-meta {
  position: static;
  transform: none;
  padding: 1rem 1.15rem 1.15rem;
  color: var(--text);
  background: #fff;
  border-top: 1px solid rgba(42, 21, 69, 0.06);
}

.work-page .work-meta h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--brand-dark);
}

.work-page .work-item:hover .work-meta h3 {
  color: var(--brand);
}

.work-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  margin: 0;
  padding: 2rem;
}

/* ---------- Project modal ---------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.project-modal[hidden] {
  display: none !important;
}

.project-modal.is-open[hidden] {
  display: grid !important;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 8, 30, 0.72);
  backdrop-filter: blur(10px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88svh, 820px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: 0 30px 80px rgba(20, 8, 36, 0.35);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
}

.project-modal.is-open .project-modal__dialog {
  transform: none;
}

.project-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.25s, transform 0.25s;
}

.project-modal__close svg {
  width: 18px;
  height: 18px;
}

.project-modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.project-modal__media {
  min-height: 320px;
  background: #1a1224;
}

.project-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-modal__body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  overflow: auto;
}

.project-modal__cat {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-hot);
}

.project-modal__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.project-modal__body p:not(.project-modal__cat) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.project-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.btn-modal-primary,
.btn-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-modal-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
}

.btn-modal-primary strong,
.btn-modal-secondary strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-modal-primary {
  background: linear-gradient(135deg, var(--brand-hot), var(--brand-dark));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(172, 44, 129, 0.28);
}

.btn-modal-primary .btn-modal-icon {
  color: #fff;
}

.btn-modal-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(172, 44, 129, 0.38);
}

.btn-modal-primary:hover .btn-modal-icon {
  transform: translate(2px, -2px);
}

.btn-modal-secondary {
  background: #fff;
  border: 1px solid rgba(143, 64, 112, 0.18);
  color: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(42, 21, 69, 0.06);
}

.btn-modal-secondary .btn-modal-icon {
  color: var(--brand-hot);
}

.btn-modal-secondary:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(42, 21, 69, 0.12);
  background: linear-gradient(180deg, #fff, rgba(172, 44, 129, 0.04));
}

.btn-modal-secondary:hover .btn-modal-icon {
  transform: translateY(-2px) rotate(-8deg);
}

.btn-ghost-dark {
  background: transparent;
  border: 1px solid rgba(143, 64, 112, 0.35);
  color: var(--brand-dark);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-ghost-dark:hover {
  background: rgba(143, 64, 112, 0.08);
  border-color: var(--brand);
  color: var(--brand-hot);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .project-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .project-modal__dialog {
    grid-template-columns: 1fr;
    max-height: 90svh;
    overflow: auto;
  }

  .project-modal__media {
    min-height: 220px;
    max-height: 240px;
  }

  .project-modal__body {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

.work-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.work-item:hover .work-meta {
  transform: translateY(0);
}

.work-page .work-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.work-page .work-item:hover .work-meta {
  transform: none;
}

.work-item.is-hidden {
  display: none;
}

@media (max-width: 991.98px) {
  .work-item,
  .work-item--wide {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .work-item,
  .work-item--wide {
    grid-column: span 12;
    min-height: 240px;
  }

  .work-page .work-item,
  .work-page .work-item--wide {
    min-height: 0;
  }

  .work-page .work-grid {
    gap: 1.25rem;
  }
}

/* ---------- Clients ---------- */
.clients-section {
  background: var(--surface);
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 0.5rem 1rem;
}

.clients-logos img {
  height: 78px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s, opacity 0.35s, transform 0.35s var(--ease-out);
}

.clients-logos img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 991.98px) {
  .clients-logos {
    gap: 2rem 2.5rem;
  }

  .clients-logos img {
    height: 64px;
    max-width: 150px;
  }
}

@media (max-width: 575.98px) {
  .clients-logos {
    gap: 1.5rem 1.75rem;
  }

  .clients-logos img {
    height: 52px;
    max-width: 130px;
  }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: #fff;
}

.quote-card {
  margin: 0;
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-hot), var(--teal)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-card strong {
  font-family: var(--font-display);
  color: var(--brand-dark);
}

.quote-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.testimonial-nav .hero-nav {
  border-color: var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.testimonial-nav .hero-nav:hover {
  color: #fff;
}

.testimonial-nav .hero-nav svg {
  stroke: currentColor;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(172, 44, 129, 0.45), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 159, 172, 0.25), transparent 40%),
    linear-gradient(145deg, var(--brand-ink), var(--brand-dark) 50%, #5a1f55);
}

.contact-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.newsletter-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.newsletter-form input {
  flex: 1 1 220px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  border-color: #ff9ed8;
  background: rgba(255, 255, 255, 0.12);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
}

.contact-list i {
  font-size: 1.2rem;
  color: #ff9ed8;
  margin-top: 0.15rem;
}

.contact-list a {
  display: block;
  transition: color 0.25s;
}

.contact-list a:hover {
  color: #ff9ed8;
}

.cta-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2.25rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-logo {
  filter: brightness(0) invert(1);
  margin-bottom: 0.5rem;
}

.cta-panel h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.5rem;
  line-height: 1.65;
}

.project-form {
  margin-top: 0.35rem;
}

.project-form .honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  overflow: hidden;
  height: 0;
  width: 0;
}

#send_message {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
}

#send_message.is-loading,
#send_message:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

#send_message .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

#send_message .btn-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: teqan-spin 0.7s linear infinite;
}

@keyframes teqan-spin {
  to {
    transform: rotate(360deg);
  }
}

.project-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  font-size: 0.95rem;
}

.project-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.project-input:focus {
  border-color: #ff9ed8;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* Bootstrap-style validation: red border only, no browser/tooltips/feedback text */
#contact_form.was-validated .project-input:invalid,
#contact_form .project-input.is-invalid {
  border-color: #ff4d6d !important;
  box-shadow: none !important;
  background-image: none !important;
  padding-right: 1.1rem !important;
}

#contact_form.was-validated .project-input:invalid:focus,
#contact_form .project-input.is-invalid:focus {
  border-color: #ff4d6d !important;
  box-shadow: 0 0 0 0.15rem rgba(255, 77, 109, 0.25) !important;
}

#contact_form .invalid-feedback,
#contact_form .valid-feedback {
  display: none !important;
}

textarea.project-input {
  resize: vertical;
  min-height: 110px;
}

.form-alert {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-alert--success {
  background: rgba(0, 159, 172, 0.2);
  border: 1px solid rgba(0, 207, 220, 0.45);
  color: #9ef0f6;
}

.form-alert--error {
  background: rgba(172, 44, 129, 0.22);
  border: 1px solid rgba(255, 158, 216, 0.4);
  color: #ffd0ea;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.social-row a:hover {
  background: var(--brand-hot);
  border-color: var(--brand-hot);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a0f2e;
  color: rgba(255, 255, 255, 0.65);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.back-top {
  font-weight: 600;
  color: #ff9ed8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s, color 0.3s;
}

.back-top:hover {
  gap: 0.65rem;
  color: #fff;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }
}
