/* ============================================================
   XYZ Events — Demo Website Stylesheet
   Warm Festive Design System
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg-primary:      #FDF8F2;
  --bg-surface:      #F5EBE0;
  --text-primary:    #241914;
  --text-muted:      #6B584E;
  --accent-primary:  #C85A32;
  --accent-gold:     #D99B26;
  --accent-deep:     #7A2E1D;
  --white:           #ffffff;
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition:      0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:       0 2px 8px rgba(36, 25, 20, 0.08);
  --shadow-md:       0 8px 32px rgba(36, 25, 20, 0.14);
  --shadow-lg:       0 20px 60px rgba(36, 25, 20, 0.18);
  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-pill:     9999px;
  --nav-h:           72px;
  --banner-h:        40px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 100px 0; }
.bg-cream { background: var(--bg-surface); }

/* ── Typography ── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ── Scroll Progress Bar ── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #C85A32, #D99B26);
  z-index: 2500;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* ── Continuous Floating Motion for Badges / Accent Pills ── */
@keyframes ambientFloatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.about-img-badge,
.demo-badge {
  animation: ambientFloatBadge 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   DEMO BANNER & BADGE
═══════════════════════════════════════════ */
.demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-h);
  background: var(--accent-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2000;
  padding: 0 20px;
  transition: transform var(--transition), opacity var(--transition);
}
.demo-banner.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.demo-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.demo-banner-close:hover { background: rgba(255,255,255,0.35); }

.demo-badge {
  position: fixed;
  bottom: 24px; left: 24px;
  background: rgba(253, 248, 242, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(200, 90, 50, 0.3);
  color: var(--accent-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 1999;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--banner-h);
  left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1500;
  transition: background var(--transition), box-shadow var(--transition), top var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 2px 20px rgba(36, 25, 20, 0.1);
}
.navbar.banner-hidden { top: 0; }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1300px;
  margin: 0 auto;
}
.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.logo-xyz {
  color: var(--accent-primary);
  font-style: italic;
}
.logo-events { color: var(--white); transition: color var(--transition); }
.navbar.scrolled .logo-events { color: var(--text-primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.navbar.scrolled .nav-link { color: var(--text-muted); }
.nav-link:hover { color: var(--accent-primary) !important; }
.nav-link.active {
  color: var(--accent-primary) !important;
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.navbar-cta {
  margin-left: 12px;
  font-size: 0.875rem;
  padding: 10px 22px !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1600;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text-primary); }

/* Mobile nav open state */
body.nav-open .navbar-nav {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text-primary); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text-primary); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-primary);
  color: var(--white);
  border-color: var(--accent-primary);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--accent-gold);
}
.btn-outline:hover { background: var(--accent-gold); color: var(--text-primary); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--banner-h) + var(--nav-h));
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #241914 0%, #7a2e1d 100%);
  overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 18s ease-in-out infinite alternate;
  transform-origin: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(36,25,20,0.72) 0%, rgba(122,46,29,0.52) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(217, 155, 38, 0.25);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(22px);
  animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0ms;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(28px);
  animation: heroSlideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 120ms;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-gold);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  animation: heroSlideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 240ms;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 360ms;
}

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  animation: fadeUp 0.6s ease forwards 1.2s;
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  display: block;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-body {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-features { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 36px; height: 36px;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.feature-title { display: block; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.about-image-wrap { position: relative; }
.about-img-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #c9a96e 0%, #8b6914 100%);
}
.about-img-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--bg-surface) 100%);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  pointer-events: none;
}
.about-img-container.is-visible::after {
  transform: scaleX(0);
}
.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transform: scale(1.14);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-img-container.is-visible .about-img {
  transform: scale(1);
}
.about-img-accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 80%; height: 80%;
  border: 3px solid var(--accent-gold);
  border-radius: var(--radius-md);
  z-index: 1;
  opacity: 0.5;
}
.about-img-badge {
  position: absolute;
  bottom: 24px; left: -24px;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.img-badge-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.img-badge-text { font-size: 0.75rem; font-weight: 600; opacity: 0.9; }

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(200, 90, 50, 0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--text-primary);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════ */
.process-steps {
  display: flex;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.step-num-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 24px;
}
.step-num {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(200,90,50,0.35);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  border-top: 2px dashed rgba(200,90,50,0.3);
}
.process-step:last-child .step-connector { display: none; }
.step-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════ */
.portfolio {
  position: relative;
  overflow: hidden;
}

/* Warm Festive Ambient Bokeh Shimmer (Fairy-light effect) */
.portfolio-ambient-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bokeh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.bokeh-orb-1 {
  top: 10%;
  left: 6%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(217, 155, 38, 0.32) 0%, rgba(217, 155, 38, 0) 70%);
  animation: bokehDrift1 20s ease-in-out infinite alternate;
}
.bokeh-orb-2 {
  bottom: 8%;
  right: 6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(200, 90, 50, 0.28) 0%, rgba(200, 90, 50, 0) 70%);
  animation: bokehDrift2 24s ease-in-out infinite alternate;
}
.bokeh-orb-3 {
  top: 48%;
  left: 48%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(217, 155, 38, 0.25) 0%, rgba(217, 155, 38, 0) 70%);
  animation: bokehDrift3 17s ease-in-out infinite alternate;
}

@keyframes bokehDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, 35px) scale(1.14); }
  100% { transform: translate(-30px, 60px) scale(0.96); }
}
@keyframes bokehDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-45px, -40px) scale(1.18); }
  100% { transform: translate(35px, -25px) scale(0.92); }
}
@keyframes bokehDrift3 {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.22; }
  50%  { transform: translate(-42%, -58%) scale(1.22); opacity: 0.35; }
  100% { transform: translate(-58%, -42%) scale(1.04); opacity: 0.24; }
}

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

.portfolio-filters-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.portfolio-filters {
  position: relative;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid rgba(200, 90, 50, 0.18);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 3px rgba(36, 25, 20, 0.05);
}
.filter-pill-slider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(200, 90, 50, 0.35);
  border: 1.5px solid var(--accent-gold);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.filter-pill-slider.active {
  opacity: 1;
}
.filter-btn {
  position: relative;
  z-index: 2;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  line-height: 1.2;
}
.filter-btn:hover {
  color: var(--accent-primary);
}
.filter-btn.active {
  color: var(--white);
  background: var(--accent-primary);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(200, 90, 50, 0.25);
}
.portfolio-filters.has-slider .filter-btn.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* ── Common Portfolio Card Styles ── */
.portfolio-item {
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  position: relative;
  user-select: none;
}
.portfolio-item:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-gold);
}
.portfolio-item.hidden {
  display: none !important;
}
.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #241914 0%, #7a2e1d 100%);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.portfolio-item:hover .portfolio-img-wrap {
  border-color: var(--accent-gold);
  box-shadow: 0 16px 36px rgba(36, 25, 20, 0.2), 0 0 0 1px var(--accent-gold);
  transform: translateY(-4px);
}

/* ── Living Ken Burns Photo Animation (Active Everywhere) ── */
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: portfolioKenBurns1 14s ease-in-out infinite alternate;
  will-change: transform;
}
.portfolio-item:nth-child(2n) .portfolio-img {
  animation-name: portfolioKenBurns2;
  animation-duration: 16s;
  animation-delay: -3.8s;
}
.portfolio-item:nth-child(3n) .portfolio-img {
  animation-name: portfolioKenBurns3;
  animation-duration: 13.5s;
  animation-delay: -7.2s;
}
.portfolio-item:nth-child(4n) .portfolio-img {
  animation-name: portfolioKenBurns4;
  animation-duration: 15s;
  animation-delay: -10.5s;
}

.portfolio-item:hover .portfolio-img {
  animation-play-state: paused;
  transform: scale(1.12);
}

@keyframes portfolioKenBurns1 {
  0%   { transform: scale(1.02) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-2.2%, -1.6%); }
  100% { transform: scale(1.06) translate(1.8%, 1.2%); }
}
@keyframes portfolioKenBurns2 {
  0%   { transform: scale(1.03) translate(0, 0); }
  50%  { transform: scale(1.11) translate(2.2%, -1.2%); }
  100% { transform: scale(1.05) translate(-1.6%, 1.8%); }
}
@keyframes portfolioKenBurns3 {
  0%   { transform: scale(1.04) translate(0, 0); }
  50%  { transform: scale(1.10) translate(-1.8%, 2.2%); }
  100% { transform: scale(1.07) translate(1.4%, -1.6%); }
}
@keyframes portfolioKenBurns4 {
  0%   { transform: scale(1.02) translate(0, 0); }
  50%  { transform: scale(1.12) translate(1.6%, 1.8%); }
  100% { transform: scale(1.06) translate(-2.2%, -1.2%); }
}

/* Diagonal light-sheen sweep across the card on hover */
.portfolio-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 3;
}
.portfolio-item:hover .portfolio-img-wrap::after {
  left: 150%;
}

/* Warm bottom-up gradient overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(36, 25, 20, 0.94) 0%,
    rgba(36, 25, 20, 0.62) 45%,
    transparent 82%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(36, 25, 20, 0.65);
  border: 1px solid rgba(217, 155, 38, 0.45);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.portfolio-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.portfolio-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 4px;
  opacity: 0.95;
}

/* ═══════════════════════════════════════════
   CELEBRATION REEL (DUAL-ROW INFINITE MARQUEE)
═══════════════════════════════════════════ */
.portfolio-reel {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 24px;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-reel[hidden] {
  display: none !important;
}
.marquee-row {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  padding: 6px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.marquee-track-left {
  animation: marqueeGlideLeft 36s linear infinite;
}
.marquee-track-right {
  animation: marqueeGlideRight 36s linear infinite;
}
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track .portfolio-item {
  flex: 0 0 350px;
  width: 350px;
}

@keyframes marqueeGlideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeGlideRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ═══════════════════════════════════════════
   FILTERED GRID VIEW (GENTLE FLOATING MOTION)
═══════════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
  gap: 32px;
  min-height: 380px;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-grid[hidden] {
  display: none !important;
}

@keyframes cardFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.portfolio-grid .portfolio-item {
  animation: cardFloat 4.2s ease-in-out infinite alternate;
}
.portfolio-grid .portfolio-item:nth-child(even) {
  animation-duration: 4.8s;
  animation-delay: -2.1s;
}
.portfolio-grid .portfolio-item:hover {
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════
   LIGHTBOX MODAL
═══════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 25, 20, 0.88);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.lightbox-modal {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  box-shadow: 0 25px 60px rgba(36, 25, 20, 0.35), 0 0 0 1px rgba(217, 155, 38, 0.3);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.lightbox-overlay.open .lightbox-modal {
  transform: scale(1) translateY(0);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(36, 25, 20, 0.65);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover {
  background: var(--accent-primary);
  transform: rotate(90deg);
}
.lightbox-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(253, 248, 242, 0.88);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  border: 1.5px solid rgba(200, 90, 50, 0.3);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.lightbox-btn:hover {
  background: var(--accent-primary);
  color: var(--white);
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev {
  left: 16px;
}
.lightbox-next {
  right: 16px;
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.lightbox-image-container {
  width: 100%;
  height: min(480px, 55vh);
  background: linear-gradient(135deg, #241914 0%, #7a2e1d 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.lightbox-details {
  padding: 24px 32px 28px;
  background: var(--bg-primary);
  border-top: 1px solid rgba(200, 90, 50, 0.12);
}
.lightbox-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.lightbox-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.lightbox-counter {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.lightbox-caption {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc(50% - 12px);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  scroll-snap-align: start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; right: 28px;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--accent-gold);
  opacity: 0.25;
  line-height: 1;
}
.stars { color: var(--accent-gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 24px;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { display: block; font-weight: 700; font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-muted); }

.carousel-prev, .carousel-next {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid rgba(200,90,50,0.2);
  color: var(--accent-primary);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-prev:hover, .carousel-next:hover {
  background: var(--accent-primary);
  color: var(--white);
  border-color: var(--accent-primary);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(200,90,50,0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.carousel-dot.active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-container { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,90,50,0.15);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent-primary); }
.faq-question[aria-expanded="true"] { color: var(--accent-primary); }
.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding var(--transition);
  padding: 0 24px;
}
.faq-answer:not([hidden]) {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-muted); line-height: 1.75; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact { background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-intro {
  color: var(--text-muted);
  margin: 16px 0 32px;
  line-height: 1.75;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-detail-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-detail-item a:hover { color: var(--accent-primary); }
.contact-social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200,90,50,0.3);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(200,90,50,0.05); }

/* Forms */
.contact-form-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-label span { color: var(--accent-primary); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(107,88,78,0.25);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(200,90,50,0.15);
}
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B584E' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-success {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(80,160,80,0.12);
  border-radius: var(--radius-sm);
  color: #2d7a2d;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: var(--text-primary); color: rgba(255,255,255,0.75); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.footer-tagline {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.footer-about-short { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-link:hover { color: var(--accent-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8125rem; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  text-align: right;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 25, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 44px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-content { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.modal-close:hover { background: var(--accent-primary); color: var(--white); }
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.modal-form .form-group { margin-bottom: 16px; }
.modal-form .form-control {
  background: var(--bg-surface);
}

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--accent-primary);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 4000;
  transform: translateY(80px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast::before { content: '✓'; font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   SCROLL REVEAL & SYSTEM ANIMATIONS (EXCEPT #PORTFOLIO)
═══════════════════════════════════════════ */

/* ── Section Headings: Masked Slide-Up & Gold Underline ── */
section:not(#portfolio) .section-title {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  padding-bottom: 12px;
}
section:not(#portfolio) .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.section-header .section-title::after {
  left: calc(50% - 32px);
  transform-origin: left;
}
section:not(#portfolio) .section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}
section:not(#portfolio) .section-title.is-visible::after {
  transform: scaleX(1);
}

/* ── Eyebrow Labels & Badges: Pop-In ── */
section:not(#portfolio) .section-label {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
section:not(#portfolio) .section-label.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Paragraphs & Lists: Soft Fade-Up (120ms delay) ── */
section:not(#portfolio) .section-subtitle,
.about-body,
.about-features,
.contact-intro,
.contact-details {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}
section:not(#portfolio) .section-subtitle.is-visible,
.about-body.is-visible,
.about-features.is-visible,
.contact-intro.is-visible,
.contact-details.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Service Cards: Staggered Pop-Out & Hover Lift ── */
.service-card {
  opacity: 0;
  transform: scale(0.92) translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition), border-color var(--transition);
}
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }
.service-card:nth-child(3) { transition-delay: 0.25s; }
.service-card:nth-child(4) { transition-delay: 0.35s; }
.service-card:nth-child(5) { transition-delay: 0.45s; }
.service-card:nth-child(6) { transition-delay: 0.55s; }

.service-card.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.service-card.is-visible:hover {
  transform: scale(1) translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-icon {
  transform: scale(1.08);
}

/* ── Process Steps & Contact Visuals: Alternating Slide-In ── */
.process-step:nth-child(odd),
.contact-info {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step:nth-child(even),
.contact-form-wrap {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step.is-visible,
.contact-info.is-visible,
.contact-form-wrap.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Testimonials, FAQ & Stats: Cascading Fade-Up (80ms stagger) ── */
.testimonial-card,
.faq-item,
.stat-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-card.is-visible,
.faq-item.is-visible,
.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-card:nth-child(1), .faq-item:nth-child(1), .stat-item:nth-child(1) { transition-delay: 0.08s; }
.testimonial-card:nth-child(2), .faq-item:nth-child(2), .stat-item:nth-child(2) { transition-delay: 0.16s; }
.testimonial-card:nth-child(3), .faq-item:nth-child(3), .stat-item:nth-child(3) { transition-delay: 0.24s; }
.testimonial-card:nth-child(4), .faq-item:nth-child(4), .stat-item:nth-child(4) { transition-delay: 0.32s; }
.faq-item:nth-child(5) { transition-delay: 0.40s; }
.faq-item:nth-child(6) { transition-delay: 0.48s; }

/* Legacy support helper */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible, .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.1) translate(-2%, -1%); }
  100% { transform: scale(1.05) translate(2%, 1%); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%  { opacity: 1; transform: scaleY(1.3); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { order: -1; }
  .about-img { height: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; --banner-h: 40px; }
  .section-pad { padding: 72px 0; }
  .hamburger { display: flex; }
  .navbar-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 24px) 32px 32px;
    box-shadow: -4px 0 32px rgba(36,25,20,0.15);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 1550;
    gap: 4px;
  }
  .nav-link { color: var(--text-muted) !important; font-size: 1rem; padding: 10px 0; width: 100%; }
  .navbar-cta { display: none; }
  .process-steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .process-step { flex-direction: row; text-align: left; gap: 20px; }
  .step-num-wrap { width: auto; margin-bottom: 0; }
  .step-num { margin: 0; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonial-card { flex: 0 0 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .hero-title { font-size: clamp(2rem, 10vw, 3.2rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-content { padding: 32px 24px; }
  .lightbox-modal { max-width: 600px; }
  .lightbox-image-container { height: 360px; }
  .lightbox-details { padding: 20px 24px; }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .portfolio-filters { padding: 4px; gap: 4px; }
  .filter-btn { padding: 7px 14px; font-size: 0.8125rem; }
  .lightbox-overlay { padding: 16px 12px; }
  .lightbox-modal { width: 100%; max-height: 94vh; }
  .lightbox-image-container { height: 260px; }
  .lightbox-details { padding: 16px 18px 20px; }
  .lightbox-title { font-size: 1.25rem; }
  .lightbox-btn { width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-img { height: 260px; }
  .about-img-badge { left: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .demo-banner { font-size: 0.7rem; }
  .testimonials-wrapper { flex-direction: column; }
  .carousel-prev, .carousel-next { display: none; }
}

@media (max-width: 768px) {
  .marquee-track .portfolio-item {
    flex: 0 0 290px;
    width: 290px;
  }
}

@media (max-width: 480px) {
  .marquee-track .portfolio-item {
    flex: 0 0 250px;
    width: 250px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scroll-progress-bar { display: none !important; }
  .about-img-badge,
  .demo-badge {
    animation: none !important;
    transform: none !important;
  }
  .about-img-container::after {
    display: none !important;
  }
  .about-img {
    transform: none !important;
    transition: none !important;
  }
  section:not(#portfolio) .section-label,
  section:not(#portfolio) .section-title,
  section:not(#portfolio) .section-title::after,
  section:not(#portfolio) .section-subtitle,
  .about-content,
  .about-body,
  .about-features,
  .about-img-container,
  .service-card,
  .stat-item,
  .process-step,
  .testimonial-card,
  .faq-item,
  .contact-info,
  .contact-form-wrap {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-scroll-hint {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg-img { animation: none !important; }
  .portfolio-img { animation: none !important; transform: none !important; transition: none !important; }
  .portfolio-img-wrap::after { display: none !important; }
  .portfolio-img-wrap:hover { transform: none !important; }
  .portfolio-overlay { transform: none !important; }
  .filter-pill-slider { transition: none !important; }
  .marquee-track { animation: none !important; }
  .marquee-row { overflow-x: auto; }
  .portfolio-grid .portfolio-item { animation: none !important; transform: none !important; }
  .bokeh-orb { animation: none !important; opacity: 0.15; }
  .lightbox-modal { transform: none !important; transition: none !important; }
  .lightbox-overlay { transition: none !important; }
  html { scroll-behavior: auto; }
}
