/* ═══════════════════════════════════════════════════════════════════════════
   RVR BUILDING PROJECTS — World-Class Stylesheet
   Colors: #111111 (Black) | #CC0000 (Red) | #FFFFFF (White) | #F5F5F3 (Grey)
   Fonts: Montserrat (headings, 900) | Inter (body)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #111111;
  --black-deep: #0a0a0a;
  --red:        #CC0000;
  --red-dark:   #A30000;
  --white:      #FFFFFF;
  --grey:       #F5F5F3;
  --grey-mid:   #E0E0DE;
  --grey-dark:  #CCCCCA;
  --text-dark:  #1A1A1A;
  --text-mid:   #555555;
  --text-light: #888888;
  --nav-h:      76px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--black);
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
blockquote { quotes: none; }
blockquote::before, blockquote::after { content: none; }

/* ─── Container ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Section Utilities ────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--black); }

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-label.center { text-align: center; }
.section-label.light { color: rgba(204, 0, 0, 0.85); }

.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.section-heading.center { text-align: center; }
.section-heading.light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 60px;
  max-width: 580px;
  line-height: 1.75;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

.btn--red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn--red:hover, .btn--red:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(204, 0, 0, 0.38);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid rgba(26,26,26,0.4);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn--full { width: 100%; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.preloader.slide-up {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preloader__logo-rvr {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0;
  transform: translateY(40px);
  animation: preloaderRvrIn 0.2s var(--ease-out) 0s forwards;
}

.preloader__logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.55rem, 1.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  animation: preloaderSubIn 0.12s var(--ease-out) 0.18s forwards;
}

.preloader__bar-track {
  width: 240px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 32px;
  overflow: hidden;
  opacity: 0;
  animation: preloaderSubIn 0.1s var(--ease-out) 0.08s forwards;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.25s var(--ease-out);
}

@keyframes preloaderRvrIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderSubIn {
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 9999;
  transition: width 0.08s linear;
  transform-origin: left center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.nav__logo-rvr {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav__logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav__links li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
  padding: 5px 0;
  position: relative;
}

.nav__links li a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}

.nav__links li a:hover { color: var(--white); }
.nav__links li a:hover::after { transform: scaleX(1); }

.nav__links li a.active {
  color: var(--white);
}
.nav__links li a.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 11px 24px !important;
  border-radius: 2px;
  font-size: 0.75rem !important;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition) !important;
  letter-spacing: 0.1em;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(204,0,0,0.35) !important;
  color: var(--white) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 10;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

/* Background image with Ken Burns zoom */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  background-color: var(--black);
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.1); }
}

/* Multi-layer overlay: strong left, lighter right */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.68) 45%,
      rgba(0,0,0,0.30) 75%,
      rgba(0,0,0,0.15) 100%
    ),
    linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 18%),
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 40%);
}

/* Red 4px vertical accent line — left edge */
.hero__red-line {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  z-index: 3;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  padding-bottom: 180px;
  max-width: 820px;
}

/* Hero reveal animation - triggered after preloader */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.hero--loaded .reveal-up {
  opacity: 1;
  transform: translateY(0);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(204, 0, 0, 0.45);
  padding: 8px 16px;
  border-radius: 2px;
  margin-bottom: 32px;
  background: rgba(204,0,0,0.06);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* Floating stats bar at bottom of hero */
.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.hero__stats-inner {
  display: flex;
  align-items: center;
  padding: 0;
  height: 80px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 36px;
  flex: 1;
}

.hero__stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero__stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: var(--red);
  opacity: 0.45;
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 104px;
  right: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(204,0,0,0.8), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); opacity: 0; }
  30% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0) translateY(100%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARQUEE STRIP
   ═══════════════════════════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--black);
  height: 48px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: inline-block;
  padding-right: 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.marquee-sep {
  color: var(--red);
  margin: 0 20px;
  font-size: 0.6rem;
  opacity: 0.7;
}

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

/* Pause on hover */
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 88px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

/* Decorative red border frame offset behind image */
.about__image-frame {
  position: absolute;
  top: -14px;
  left: -14px;
  right: 32px;
  bottom: 32px;
  border: 2px solid var(--red);
  border-radius: 3px;
  z-index: 0;
  opacity: 0.55;
}

.about__image {
  position: relative;
  z-index: 1;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 72px rgba(0,0,0,0.14);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.about__certs {
  position: absolute;
  bottom: -24px;
  right: -24px;
  z-index: 2;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.cert__icon svg { width: 100%; height: 100%; }

.cert strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 2px;
}
.cert span {
  font-size: 0.72rem;
  color: var(--text-mid);
}

.about__content { display: flex; flex-direction: column; }

.about__content p {
  color: var(--text-mid);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about__stats {
  display: flex;
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--grey-mid);
  border-bottom: 1px solid var(--grey-mid);
  margin: 32px 0;
}

.stat { display: flex; flex-direction: column; }

.stat__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 3px;
  padding: 44px 36px;
  border: 1px solid var(--grey-mid);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Top border that appears on hover */
.service-card__top-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}

.service-card__top-border--white {
  background: var(--white);
  opacity: 0.5;
}

.service-card:hover .service-card__top-border,
.service-card:focus .service-card__top-border { transform: scaleX(1); }

.service-card:hover {
  border-color: rgba(204,0,0,0.2);
  box-shadow: 0 20px 56px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.75;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__list li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 1.5px;
  background: var(--red);
}

/* Featured card — Renovations */
.service-card--featured {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.service-card--featured h3 { color: var(--white); }
.service-card--featured p { color: rgba(255,255,255,0.55); }
.service-card--featured .service-card__list li { color: rgba(255,255,255,0.55); }
.service-card--featured .service-card__list li::before { background: var(--red); }

.service-card--featured:hover {
  border-color: var(--red);
  box-shadow: 0 20px 56px rgba(0,0,0,0.4);
}

.service-card__badge {
  position: absolute;
  top: 0; right: 28px;
  background: var(--red);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 3px 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════════════════════ */
.portfolio__filters {
  display: flex;
  gap: 8px;
  margin-bottom: 44px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 2px;
  border: 1px solid var(--grey-mid);
  color: var(--text-mid);
  background: var(--white);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(204,0,0,0.3);
}

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

.portfolio-item {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-item:hover {
  transform: scale(0.993);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.portfolio-item--tall { grid-row: span 2; }
.portfolio-item--wide { grid-column: span 2; }

.portfolio-item__img {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  filter: grayscale(35%) brightness(0.88);
  transition: transform 0.6s var(--ease),
              filter 0.55s var(--ease-out);
}

.portfolio-item:hover .portfolio-item__img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1);
}

/* Hover overlay slides up from bottom */
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.0) 100%
  );
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 1;
}

.portfolio-item__overlay > * {
  transform: translateY(12px);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
  opacity: 0;
}

.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item:hover .portfolio-item__overlay > * {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item:hover .portfolio-item__overlay .portfolio-item__tag { transition-delay: 0s; }
.portfolio-item:hover .portfolio-item__overlay h4 { transition-delay: 0.05s; }
.portfolio-item:hover .portfolio-item__overlay p { transition-delay: 0.08s; }
.portfolio-item:hover .portfolio-item__overlay .portfolio-item__link { transition-delay: 0.12s; }

.portfolio-item__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
  width: fit-content;
}

.portfolio-item__overlay h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.portfolio-item__overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  line-height: 1.5;
}

.portfolio-item__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-item.hidden {
  display: none;
}

/* Filter fade-in animation */
@keyframes portfolioFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  cursor: pointer;
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: calc(100% - 160px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0e0e0e;
  border-radius: 3px;
  overflow: hidden;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.35s var(--ease-spring);
}

.lightbox.active .lightbox__inner {
  transform: scale(1) translateY(0);
}

.lightbox__img-wrap {
  width: 100%;
  max-height: 72vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox__img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s var(--ease-out);
}

.lightbox__img.loading { opacity: 0; }

.lightbox__info {
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lightbox__info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lightbox__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 4px 10px;
  border-radius: 2px;
}

.lightbox__counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}

.lightbox__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lightbox__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.lightbox__arrow svg { width: 20px; height: 20px; }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

.lightbox__arrow:hover { background: var(--red); }
.lightbox__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__arrow--next:hover { transform: translateY(-50%) translateX(2px); }

/* ═══════════════════════════════════════════════════════════════════════════
   WHY RVR
   ═══════════════════════════════════════════════════════════════════════════ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border: 1px solid rgba(255,255,255,0.06);
}

.why-card {
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 44px 32px;
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card:last-child { border-right: none; }

/* Left red border on hover */
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.35s var(--ease-out);
}

.why-card:hover::before { transform: scaleY(1); }

.why-card:hover {
  background: rgba(204,0,0,0.055);
}

.why-card__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.why-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}
.why-card__icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.72;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS SLIDER
   ═══════════════════════════════════════════════════════════════════════════ */
.stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}
.stars-row.center { justify-content: center; }

.star {
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1;
}

.stars-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-left: 10px;
  font-weight: 500;
}

.testimonials__slider {
  position: relative;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.testimonial-card {
  background: var(--grey);
  border-radius: 3px;
  padding: 40px;
  position: relative;
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid transparent;
}

.testimonial-card:hover {
  box-shadow: 0 18px 52px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: rgba(204,0,0,0.12);
}

/* Large decorative quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(204,0,0,0.09);
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}

.testimonial-card__stars {
  color: var(--red);
  font-size: 0.92rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonial-card blockquote p {
  font-size: 0.98rem;
  color: var(--text-mid);
  line-height: 1.78;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-card__author span {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.testimonial-card__source {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 0.65rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(204,0,0,0.45);
  text-transform: uppercase;
}

/* Slider controls */
.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonials__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
  flex-shrink: 0;
}

.testimonials__arrow svg { width: 18px; height: 18px; }
.testimonials__arrow:hover {
  background: var(--red);
  box-shadow: 0 6px 20px rgba(204,0,0,0.35);
}
.testimonials__arrow--prev:hover { transform: translateX(-2px); }
.testimonials__arrow--next:hover { transform: translateX(2px); }

.testimonials__dots {
  display: flex;
  gap: 0;
  align-items: center;
}

.testimonials__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-mid);
  transition: background var(--transition), transform var(--transition);
}

.testimonials__dot.active::before {
  background: var(--red);
  transform: scale(1.3);
}

.testimonials__dot:hover:not(.active)::before {
  background: var(--grey-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */
.contact {
  position: relative;
  padding: 104px 0;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.contact__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1;
}

.contact .container { position: relative; z-index: 2; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 88px;
  align-items: start;
}

.contact__sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 44px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 44px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-detail__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-detail__icon svg { width: 100%; height: 100%; }

.contact-detail strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--red); }

.contact__certs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.cert-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(204,0,0,0.35);
  padding: 8px 18px;
  border-radius: 2px;
  background: rgba(204,0,0,0.05);
}

/* Map placeholder */
.contact__map {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0;
}

.map-placeholder {
  height: 200px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-weight: 500;
}

.map-placeholder svg { width: 48px; height: 48px; }

/* Contact Form */
.contact__form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.form-group label span { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition),
              box-shadow var(--transition);
  width: 100%;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.40);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

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

/* Select wrapper */
.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.select-wrap select option { background: #1a1a1a; color: var(--white); }

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,0.35);
}
.select-arrow svg { width: 16px; height: 16px; }

.form__success {
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(204,0,0,0.08);
  border: 1px solid rgba(204,0,0,0.28);
  border-radius: 3px;
  padding: 18px 20px;
  margin-top: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form__success:not([hidden]) { display: flex; }

.form__success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--black-deep);
  border-top: 1px solid rgba(255,255,255,0.055);
}

.footer__top { padding: 60px 0; }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.footer__logo-rvr {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer__logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

.footer__certs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer__certs span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(204,0,0,0.55);
  border: 1px solid rgba(204,0,0,0.2);
  padding: 5px 12px;
  border-radius: 2px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  padding: 2px 0;
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__links a:hover::after { width: 100%; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  transition: color var(--transition);
}

.footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer__contact-item:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom-inner span,
.footer__bottom-inner a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  transition: color var(--transition);
}
.footer__bottom-inner a:hover { color: rgba(255,255,255,0.75); }

.footer__verto {
  text-align: center;
  padding: 10px 0 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 2px;
}
.footer__verto a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  font-weight: 500;
}
.footer__verto a:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(204,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition),
              background var(--transition), box-shadow var(--transition);
}

.back-to-top svg { width: 18px; height: 18px; stroke-width: 2.5; }

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(204,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FLOATING CTA BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  transform: translateY(0);
  transition: transform var(--transition);
}

.mobile-cta.hidden { transform: translateY(100%); }

.mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--transition), transform var(--transition);
}

.mobile-cta__btn:active { transform: scale(0.97); opacity: 0.85; }
.mobile-cta__btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.mobile-cta__btn--call {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}

.mobile-cta__btn--quote {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.fade-in-stagger > *.visible { opacity: 1; transform: translateY(0); }
.fade-in-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }

  .about__grid { grid-template-columns: 1fr 1fr; gap: 56px; }

  .services__grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 280px;
  }
  .portfolio-item--tall { grid-column: auto; grid-row: span 2; }
  .portfolio-item--wide { grid-column: span 2; grid-row: auto; }

  .why__grid { grid-template-columns: 1fr 1fr; }
  .why-card:nth-child(2) { border-right: none; }
  .why-card:nth-child(3),
  .why-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.06); }
  .why-card:nth-child(4) { border-right: none; }

  .contact__grid { grid-template-columns: 1fr; gap: 52px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__contact { grid-column: 1 / -1; flex-direction: row; gap: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 76px 0; }
  .container { padding: 0 20px; }

  /* Nav mobile */
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(12,12,12,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px 24px;
    gap: 8px;
    transform: translateY(-110%);
    transition: transform 0.38s var(--ease-out);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    z-index: -1;
  }

  .nav__links.open { transform: translateY(0); }

  .nav__links li { width: 100%; }

  .nav__links li a {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav__links li:last-child a { border-bottom: none; }

  .nav__cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 16px 22px !important;
    margin-top: 8px;
    font-size: 0.9rem !important;
  }

  /* Hero */
  .hero__heading { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .hero__content { padding-bottom: 160px; }
  .hero__scroll { display: none; }

  .hero__stats-inner { flex-wrap: wrap; height: auto; padding: 16px 0; }
  .hero__stat { padding: 8px 16px; flex: 1 1 calc(50% - 1px); }
  .hero__stat-divider { display: none; }
  .hero__stat:nth-child(1), .hero__stat:nth-child(3) {
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .hero__stat:nth-child(3), .hero__stat:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__image { max-width: 360px; margin: 0 auto; }
  .about__certs { bottom: -18px; right: -8px; padding: 16px 18px; }
  .about__stats { gap: 20px; }

  /* Services */
  .services__grid { max-width: 100%; }
  .service-card { padding: 32px 24px; }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .portfolio-item { height: 260px; }
  .portfolio-item--wide,
  .portfolio-item--tall { grid-column: auto; grid-row: auto; }
  .portfolio-item__overlay { opacity: 1; }
  .portfolio-item__overlay > * { transform: none; opacity: 1; }

  /* Why */
  .why__grid { grid-template-columns: 1fr; gap: 0; }
  .why-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 32px 24px; }
  .why-card:last-child { border-bottom: none; }
  .why-card:nth-child(3), .why-card:nth-child(4) { border-top: none; }

  /* Testimonials */
  .testimonials__track { gap: 16px; }
  .testimonial-card { flex: 0 0 100%; padding: 28px 24px; }

  /* Lightbox */
  .lightbox__inner { width: calc(100% - 88px); }
  .lightbox__arrow--prev { left: 8px; }
  .lightbox__arrow--next { right: 8px; }

  /* Contact */
  .contact { padding: 76px 0; }
  .contact__form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__contact { flex-direction: column; gap: 12px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Back to top offset for mobile cta */
  .back-to-top { bottom: 90px; right: 16px; }

  /* Show mobile CTA */
  .mobile-cta { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__badge { font-size: 0.6rem; padding: 7px 12px; }
  .portfolio__filters { justify-content: flex-start; gap: 6px; }
  .filter-btn { padding: 9px 16px; font-size: 0.72rem; }
  .contact__form-wrap { padding: 24px 16px; }
  .footer__certs { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT SELECTION
   ═══════════════════════════════════════════════════════════════════════════ */
::selection {
  background: var(--red);
  color: var(--white);
}
::-moz-selection {
  background: var(--red);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   — Hidden on touch devices via JS class on <body>
   ═══════════════════════════════════════════════════════════════════════════ */
body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out),
              opacity 0.2s var(--ease-out),
              width 0.25s var(--ease-spring),
              height 0.25s var(--ease-spring),
              background 0.2s var(--ease-out);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(204, 0, 0, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear,
              width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring),
              border-color 0.2s var(--ease-out),
              opacity 0.25s var(--ease-out);
  will-change: transform;
}

/* Hover state — expand ring, shrink dot */
body.cursor-hover .cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
}

body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--red);
  border-width: 1.5px;
}

/* Click state — compress both */
body.cursor-click .cursor-dot {
  transform: translate(-50%, -50%) scale(0.6);
}

body.cursor-click .cursor-ring {
  width: 28px;
  height: 28px;
  border-color: var(--red);
  opacity: 0.8;
}

/* Text state — thin I-beam style ring */
body.cursor-text .cursor-ring {
  width: 2px;
  height: 28px;
  border-radius: 2px;
  border-width: 1px;
}

body.cursor-text .cursor-dot {
  opacity: 0;
}

/* Hide on page load until mouse moves */
.cursor-dot, .cursor-ring {
  opacity: 0;
}
.cursor-dot.visible, .cursor-ring.visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILM GRAIN — premium texture on hero + dark sections
   ═══════════════════════════════════════════════════════════════════════════ */
.hero::after,
.section--dark::after,
.cta-strip::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grainShift 0.6s steps(1) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0%  { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  20% { transform: translate(-15%,5%); }
  30% { transform: translate(7%,-25%); }
  40% { transform: translate(-5%,25%); }
  50% { transform: translate(-15%,10%); }
  60% { transform: translate(15%,0); }
  70% { transform: translate(0,15%); }
  80% { transform: translate(3%,35%); }
  90% { transform: translate(-10%,10%); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   3D CARD TILT — shine overlay + perspective
   ═══════════════════════════════════════════════════════════════════════════ */
.service-card { transform-style: preserve-3d; }

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: transparent;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.service-card:hover .card-shine { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   CURSOR SPOTLIGHT — ambient glow on dark sections
   ═══════════════════════════════════════════════════════════════════════════ */
.why,
.contact {
  --spot-x: 50%;
  --spot-y: 50%;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--spot-x) var(--spot-y),
    rgba(204, 0, 0, 0.07) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.why .container,
.why .section-label,
.why .section-heading { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   SPLIT TEXT HEADINGS
   ═══════════════════════════════════════════════════════════════════════════ */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.28em;
  line-height: 1.15;
}
.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.75s var(--ease-spring), opacity 0.45s var(--ease-out);
}
.split-visible .split-word-inner { transform: translateY(0); opacity: 1; }
.split-word:nth-child(1) .split-word-inner { transition-delay: 0.00s; }
.split-word:nth-child(2) .split-word-inner { transition-delay: 0.07s; }
.split-word:nth-child(3) .split-word-inner { transition-delay: 0.14s; }
.split-word:nth-child(4) .split-word-inner { transition-delay: 0.21s; }
.split-word:nth-child(5) .split-word-inner { transition-delay: 0.28s; }
.split-word:nth-child(6) .split-word-inner { transition-delay: 0.35s; }
.split-word:nth-child(7) .split-word-inner { transition-delay: 0.42s; }
.split-word:nth-child(8) .split-word-inner { transition-delay: 0.49s; }
.split-word:nth-child(9) .split-word-inner { transition-delay: 0.56s; }

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT — hover glow on photo
   ═══════════════════════════════════════════════════════════════════════════ */
.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(204,0,0,0.28) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(204,0,0,0.12) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.45s ease;
}
.about__image-wrap:hover .about__image::after { opacity: 1; }

/* Also scale the photo very slightly on hover for depth */
.about__image-wrap:hover .about__image img {
  transform: scale(1.03);
  transition: transform 0.7s var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAGNETIC BUTTON override — spring back
   ═══════════════════════════════════════════════════════════════════════════ */
.magnetic-btn {
  transition: transform 0.5s var(--ease-spring),
              background var(--transition),
              border-color var(--transition),
              box-shadow var(--transition) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OUTLINE WHITE BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline-white:hover,
.btn--outline-white:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FULL-WIDTH CTA STRIP
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-strip {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
}

.cta-strip__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 12s ease-out;
}

.cta-strip.in-view .cta-strip__bg {
  transform: scale(1);
}

.cta-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.93) 0%,
    rgba(0,0,0,0.78) 50%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.cta-strip .container {
  position: relative;
  z-index: 2;
}

.cta-strip__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-strip__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-strip__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.cta-strip__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta-strip__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  max-width: 460px;
  line-height: 1.72;
}

.cta-strip__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  min-width: 220px;
}

/* Pulsing red ring behind the quote button */
.cta-strip__actions .btn--red {
  position: relative;
}
.cta-strip__actions .btn--red::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 4px;
  border: 1.5px solid rgba(204,0,0,0.35);
  animation: ctaPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 0; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cta-strip__content {
    flex-direction: column;
    gap: 44px;
    align-items: flex-start;
  }
  .cta-strip__actions {
    flex-direction: row;
    width: 100%;
    min-width: 0;
  }
  .cta-strip__actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .cta-strip { padding: 80px 0; }
  .cta-strip__actions { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  .preloader, .scroll-progress, .nav__burger, .back-to-top,
  .mobile-cta, .hero__scroll, .marquee-strip,
  .cursor-dot, .cursor-ring { display: none !important; }
  .nav { position: relative; }
  .hero { min-height: auto; }
  * { animation: none !important; transition: none !important; }
}
