/* BAUNOVA — vanilla CSS */

:root {
  --bg: #f4f5f7;
  --bg-alt: #ffffff;
  --ink: #14161a;
  --muted: #5a606a;
  --line: #dde1e8;
  --red: #e85a1a;
  --blue: #2b6cff;
  --yellow: #f0b429;
  --green: #18c39a;
  --accent: #2b6cff;
  --accent-hot: #e85a1a;
  --dark: #0e1014;
  --shadow: 0 18px 50px rgba(14, 16, 20, 0.14);
  --radius: 18px;
  --header-h: 78px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Outfit", "DM Sans", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2b6cff 0%, #6a3dff 55%, #e85a1a 100%);
  color: #fff;
  border: 0;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #2a2f38;
}

.btn-block {
  width: 100%;
}

.nav a.is-current {
  color: var(--ink);
}

.section-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 224, 216, 0.8);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  width: auto;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font);
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slider img.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.45) 48%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 740px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 740px);
}

.hero .eyebrow {
  color: #7eb6ff;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badges li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Services */
.services {
  padding: 5rem 0 4rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.04);
}

.service-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.service-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-body ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.service-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.service-card:nth-child(1) .service-body ul li::before {
  background: var(--yellow);
}

.service-card:nth-child(2) .service-body ul li::before {
  background: var(--red);
}

.service-card:nth-child(3) .service-body ul li::before {
  background: var(--green);
}

/* About */
.about {
  padding: 2rem 0 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media > img:first-child {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-media-secondary {
  position: absolute;
  width: 48%;
  right: -4%;
  bottom: -12%;
  border-radius: 14px;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.stats span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* Process */
.process {
  padding: 4.5rem 0;
  background: #111;
  color: #fff;
}

.process .eyebrow {
  color: #7eb6ff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

/* Contact */
.contact {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-list span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.contact-list a:hover {
  color: var(--accent);
}

.map-embed {
  margin-top: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.map-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid var(--line);
}

.map-link:hover {
  background: var(--bg);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 163, 214, 0.2);
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: var(--accent-hot);
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(124, 184, 47, 0.12);
  color: #3d6e12;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Office */
.office {
  padding: 4.5rem 0;
  background: #111;
  color: #fff;
}

.office-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.office-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.office .eyebrow {
  color: #7eb6ff;
}

.office-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.office-address {
  margin: 1.25rem 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #fff !important;
}

/* Status pages */
.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg);
}

.status-card {
  width: min(100%, 460px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.status-card img {
  margin: 0 auto 1.25rem;
  height: 88px;
  width: auto;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Work gallery */
.work {
  padding: 4.5rem 0 5rem;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  grid-column: span 4;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-item--lg {
  grid-column: span 8;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.gallery-full .gallery-item:nth-child(7),
.gallery-full .gallery-item:nth-child(10) {
  grid-column: span 6;
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 380px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 2.75rem;
  max-width: 720px;
}

.page-hero .eyebrow {
  color: #7eb6ff;
}

.work-page {
  padding-top: 2.5rem;
}

.service-detail {
  padding: 3.5rem 0 4rem;
}

.service-detail-grid {
  display: grid;
  gap: 1.5rem;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0.85rem;
}

.service-detail-card.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.service-detail-card.reverse img {
  order: 2;
}

.service-detail-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
}

.service-detail-card ul {
  margin-top: 1rem;
}

.service-detail-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.service-detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-compact {
  padding: 2rem 0 4rem;
}

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: #111;
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}

.contact-banner p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(7, 9, 15, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.footer-brand img {
  height: 72px;
  width: auto;
  margin-bottom: 0.35rem;
}

.footer-brand p,
.footer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  text-align: right;
}

/* Mobile */
@media (max-width: 960px) {
  .service-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid,
  .office-grid {
    grid-template-columns: 1fr;
  }

  .office-media img {
    aspect-ratio: 16 / 11;
  }

  .about-media-secondary {
    position: static;
    width: 100%;
    margin-top: 1rem;
    border: 0;
  }

  .header-cta {
    display: none;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-item,
  .gallery-item--lg,
  .gallery-full .gallery-item:nth-child(7),
  .gallery-full .gallery-item:nth-child(10) {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }

  .service-detail-card,
  .service-detail-card.reverse {
    grid-template-columns: 1fr;
  }

  .service-detail-card.reverse img {
    order: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 70px;
  }

  .brand-logo {
    height: 54px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 245, 241, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .service-grid,
  .steps,
  .stats,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--lg,
  .gallery-full .gallery-item:nth-child(7),
  .gallery-full .gallery-item:nth-child(10) {
    grid-column: span 12;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1.2rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 60px);
  }

  .lightbox-next {
    right: calc(50% - 60px);
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .footer-meta {
    text-align: left;
  }

  .services,
  .contact {
    padding: 3.5rem 0;
  }

  .about {
    padding-bottom: 3.5rem;
  }
}

/* ——— Magnificent preloader ——— */
body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #07090f;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orbFloat 6s ease-in-out infinite;
}

.orb-a {
  width: 340px;
  height: 340px;
  background: #2b6cff;
  top: -8%;
  left: -6%;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: #e85a1a;
  right: -4%;
  bottom: 10%;
  animation-delay: -2s;
}

.orb-c {
  width: 220px;
  height: 220px;
  background: #18c39a;
  left: 40%;
  bottom: -10%;
  animation-delay: -4s;
}

.splash {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 40% 60% 55% 45%;
  opacity: 0.18;
  background: radial-gradient(circle at 30% 30%, #fff 0%, transparent 55%),
    conic-gradient(from 90deg, #2b6cff, #6a3dff, #e85a1a, #f0b429, #18c39a, #2b6cff);
  filter: blur(2px);
  animation: splashPulse 4.5s ease-in-out infinite;
}

.splash-1 {
  top: 12%;
  right: 14%;
}

.splash-2 {
  bottom: 16%;
  left: 10%;
  animation-delay: -1.5s;
  transform: rotate(40deg);
}

.preloader-inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  text-align: center;
  animation: preloaderIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.preloader-logo-wrap {
  position: relative;
  margin: 0 auto 1.25rem;
  width: min(78vw, 260px);
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #2b6cff, #6a3dff, #e85a1a, #f0b429, #18c39a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 25px 80px rgba(43, 108, 255, 0.35);
  animation: logoGlow 2.4s ease-in-out infinite;
}

.preloader-logo {
  width: 100%;
  border-radius: 20px;
  display: block;
  background: #fff;
}

.preloader-tag {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.72);
}

.preloader-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b6cff, #6a3dff, #e85a1a, #f0b429);
  background-size: 200% 100%;
  animation: barShimmer 1.4s linear infinite;
  transition: width 0.2s ease;
}

.preloader-pct {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
}

@keyframes preloaderIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoGlow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(43, 108, 255, 0.28);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 28px 90px rgba(232, 90, 26, 0.38);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -22px) scale(1.08);
  }
}

@keyframes splashPulse {
  0%,
  100% {
    opacity: 0.14;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.28;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes barShimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .splash,
  .preloader-logo-wrap,
  .preloader-bar-fill,
  .preloader-inner {
    animation: none !important;
  }
}

/* Floating call button (appears on scroll) */
.call-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem 0.9rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #18c39a 0%, #2b6cff 55%, #6a3dff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 14px 40px rgba(43, 108, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, filter 0.2s ease;
}

.call-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.call-fab:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.02);
}

.call-fab-icon {
  flex-shrink: 0;
  animation: callPulse 1.8s ease-in-out infinite;
}

.call-fab-text {
  letter-spacing: 0.02em;
}

@keyframes callPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 520px) {
  .call-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.95rem;
    width: 56px;
    height: 56px;
    justify-content: center;
  }

  .call-fab-text {
    display: none;
  }
}
