/* ═══════════════════════════════════════════
   J Corrigan LLC Chimney Restoration, Home Page
   Editorial / Asymmetric / Warm Architecture
   ═══════════════════════════════════════════ */

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(88, 155, 238, 0.4);
}

/* ── Home Hero, soot-dark brick wall with drifting smoke ── */
.hero--home {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  background-color: #061458;
  overflow: hidden;
}

/* Dedicated brick-wall layer. The brick grid is generated by JS as
   absolutely-positioned .brick children so each course can be laid in and
   unlaid on scroll individually. This container only sets the stage. */
.hero-bricks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #061458;
  overflow: hidden;
  /* Subtle soot vignette so the wall fades to black at the edges and keeps
     focus on the hero text even while bricks are being laid. */
  -webkit-mask-image: radial-gradient(ellipse 120% 120% at 50% 50%, #000 40%, rgba(0, 0, 0, 0.85) 72%, rgba(0, 0, 0, 0.55) 100%);
  mask-image: radial-gradient(ellipse 120% 120% at 50% 50%, #000 40%, rgba(0, 0, 0, 0.85) 72%, rgba(0, 0, 0, 0.55) 100%);
}

/* Individual brick. JS sets left / bottom / width / height inline. */
.brick {
  position: absolute;
  border-radius: 1.5px;
  /* Vertical brick-face gradient: darker top and bottom, warmer middle */
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 100%),
    linear-gradient(180deg,
      #5A1F10 0%,
      #6E2515 45%,
      #4A180C 100%);
  box-shadow:
    inset 0 1px 0 rgba(224, 122, 95, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.04),
    inset -1px 0 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(32, 18, 10, 0.92),
    0 2px 4px rgba(0, 0, 0, 0.35);
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  will-change: transform, opacity;
  opacity: 0;
  /* Allow a per-brick hue shift without changing the base gradient */
  filter: none;
}
/* Lighter tint row, alternates with base rows for natural visual rhythm */
.brick--light {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 100%),
    linear-gradient(180deg,
      #6E2515 0%,
      #7A2A17 45%,
      #5A1F10 100%);
}
.brick--dim {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 100%),
    linear-gradient(180deg,
      #4A180C 0%,
      #5A1F10 45%,
      #3D1408 100%);
}

/* Reduced motion: skip JS animation, just show the wall fully assembled.
   JS checks prefers-reduced-motion and sets bricks to their final state. */
@media (prefers-reduced-motion: reduce) {
  .brick { opacity: 1 !important; transform: none !important; }
}
/* No scroll-over effect on homepage */
.hero--home + * {
  border-radius: 0;
  box-shadow: none;
}
/* Home hero decoration removed */
/* Video + bg image container */
.hero--home .hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: hero-media-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}
@keyframes hero-media-reveal {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
/* Warm radial overlay, brown center fading out */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(14, 31, 94, 0.55) 0%,
    rgba(10, 25, 82, 0.7) 30%,
    rgba(6, 20, 88, 0.85) 55%,
    rgba(10, 25, 82, 0.95) 80%,
    #0A1A5A 100%
  );
}
.hero-dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, #0A1A5A, transparent 45%, rgba(10, 25, 82, 0.15));
}

/* Hero shell, two-column on desktop (content left, slider right) */
.hero-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
    padding: 9rem 2.5rem 7rem;
  }
}

/* Hero content, left aligned */
.hero-content {
  max-width: 620px;
  text-align: left;
}
.hero-content .hero-trust-pills,
.hero-content .hero-actions {
  justify-content: flex-start;
}
.hero-content .hero-lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 55ch;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
}
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.hero-word-1 { animation: hero-word-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.hero-word-2 { animation: hero-word-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards; }
.hero-word-3 { animation: hero-word-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards; }
.hero-word-4 { animation: hero-word-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards; }

/* Flashy accent words, kiln-fire gradient: brick → ember → smoke */
.hero-word-flash {
  position: relative;
  background: linear-gradient(120deg, #A2BFEB 0%, #589BEE 28%, #A2BFEB 52%, #7BA7E5 76%, #061458 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent); /* fallback for browsers without bg-clip */
  filter: drop-shadow(0 0 18px rgba(88, 155, 238, 0.55)) drop-shadow(0 2px 8px rgba(6, 20, 88, 0.45));
  animation: hero-word-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             hero-flash-shimmer 6s ease-in-out infinite;
}
.hero-word-2.hero-word-flash { animation-delay: 0.45s, 1.6s; }
.hero-word-4.hero-word-flash { animation-delay: 0.95s, 2.1s; }

@keyframes hero-flash-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-lead {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.005em;
  max-width: 50ch;
  margin: 0 auto 1.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-word-enter {
  0% { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Trust pills, centered */
.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(88, 155, 238, 0.05);
  border: 1px solid rgba(88, 155, 238, 0.12);
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hero-trust-pill:hover {
  background: rgba(88, 155, 238, 0.1);
  border-color: rgba(88, 155, 238, 0.3);
}

/* Hero actions, centered */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

/* Stats grid, glass cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 640px;
  margin: 3rem auto 0;
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
}
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.stat-icon {
  color: var(--accent);
  margin-bottom: 0.75rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 155, 238, 0.08);
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--accent-dark);
}
.stat-label {
  color: var(--text-faint);
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Hero image slider (right column of the two-column hero) ── */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
@media (max-width: 899px) {
  .hero-slider {
    justify-self: center;
    max-width: 520px;
  }
}
.hero-slider-track {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(10, 25, 82, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.85rem;
  background: rgba(6, 20, 88, 0.78);
  color: #F3F5F5;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid rgba(162, 191, 235, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.hero-slider-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(243, 245, 245, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-slider-dot:hover {
  background: rgba(243, 245, 245, 0.5);
}
.hero-slider-dot.is-active {
  background: #1D7DFF;
  transform: scaleY(1.5);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.2s linear; }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  opacity: 0;
  animation: scroll-indicator-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards, bounce-down 2.5s ease-in-out 2.4s infinite;
}
@keyframes scroll-indicator-in {
  to { opacity: 0.6; }
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Trust Marquee ── */
.trust-marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 25, 82, 0.6);
  padding: 1.5rem 0;
  overflow: hidden;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.marquee-item-icon { color: var(--accent); flex-shrink: 0; }
.marquee-label {
  color: var(--text-mid);
  font-size: 1rem;
  font-weight: 600;
}
.marquee-sublabel {
  color: var(--text-faint);
  font-size: 1.1rem;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-text { max-width: 55ch; }
.about-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-link {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-link:hover { gap: 0.75rem; }

.about-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-image:hover img {
  transform: scale(1.05);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(88, 155, 238, 0.2), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.about-image::after {
  content: none;
}
.about-image-frame { display: none; }

/* ── How We Work ── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Timeline connector */
.how-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 56px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(88, 155, 238, 0.3), rgba(88, 155, 238, 0.05));
  z-index: 0;
}
.how-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.how-step-num {
  width: 56px;
  height: 56px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  flex-shrink: 0;
  opacity: 0.12;
  line-height: 1;
  transition: opacity 0.3s ease;
}
.how-step:hover .how-step-num {
  opacity: 0.25;
}
.how-step-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.how-step-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Gallery Preview, Bento Grid ── */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .gallery-preview-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 1.75rem;
  }
  .gallery-preview-grid > .gallery-item:first-child,
  .gallery-preview-grid > a:first-child,
  .gallery-preview-grid > .gallery-preview-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}
/* Reset .gallery-item aspect-ratio inside the home preview grid so items
   actually fill their grid cell instead of overflowing into the next row */
.gallery-preview-grid .gallery-item {
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
}
.gallery-preview-grid a,
.gallery-preview-grid .gallery-item,
.gallery-preview-grid .gallery-preview-item {
  border-radius: 4px;
  overflow: hidden;
  display: block;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.gallery-preview-grid a:hover,
.gallery-preview-grid .gallery-item:hover,
.gallery-preview-grid .gallery-preview-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.gallery-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-preview-grid a:hover img,
.gallery-preview-grid .gallery-item:hover img,
.gallery-preview-grid .gallery-preview-item:hover img {
  transform: scale(1.06);
}

/* ── Testimonials Slider ── */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonials-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 0.25rem;
}
@media (min-width: 768px) {
  .testimonials-slide { grid-template-columns: repeat(2, 1fr); }
}
.testimonials-slide .testimonial-card {
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
/* Large decorative quotation mark */
.testimonials-slide .testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(88, 155, 238, 0.1);
  pointer-events: none;
}
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.testimonials-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.testimonials-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(88, 155, 238, 0.06);
}
.testimonials-dots { display: flex; gap: 0.6rem; }
.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.testimonials-dot:hover {
  background: rgba(88, 155, 238, 0.3);
  transform: scale(1.15);
}
.testimonials-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

/* ── Final CTA, Warm Background ── */
.final-cta {
  text-align: center;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem;
}
@media (max-width: 767px) {
  .final-cta { padding: 4rem 1.5rem; }
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(88, 155, 238, 0.08) 0%, rgba(88, 155, 238, 0.03) 35%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}
.final-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(88, 155, 238, 0.05) 0%, transparent 55%);
  pointer-events: none;
}
.final-cta .section-title {
  margin-bottom: 1rem;
  color: #061458;
}
.final-cta .section-intro {
  margin: 0 auto 2.5rem;
  text-align: center;
  color: #061458;
  font-weight: 500;
}
/* .final-cta-actions moved to styles.css so it works on all pages */
/* Ghost button on warm CTA, dark text + dark border so it reads on cream bg */
.final-cta .btn-ghost {
  border-color: #061458;
  color: #061458;
}
.final-cta .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Dark variant of the final CTA, used on the gallery page (and anywhere we
   want a high-contrast pitch block instead of the warm cream version). */
.final-cta--dark {
  background: #061458 !important;
}
.final-cta--dark::before,
.final-cta--dark::after {
  background: radial-gradient(circle, rgba(88, 155, 238, 0.18) 0%, rgba(88, 155, 238, 0.06) 35%, transparent 65%) !important;
}
.final-cta--dark .section-title {
  color: #ffffff !important;
  margin-bottom: 1.5rem;
}
.final-cta--dark .section-intro {
  color: #061458 !important;
  font-weight: 400;
  margin-bottom: 0;
}
.final-cta--dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.final-cta--dark .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Dark trust cards section, overrides .section-warm cream styling
   so the cards stand out as dark contrast blocks on the cream bg. */
.trust-section-dark .trust-card {
  background: #E6ECF3 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #061458;
}
.trust-section-dark .trust-card:hover {
  background: #FFFFFF !important;
  border-color: rgba(88, 155, 238, 0.35) !important;
}
.trust-section-dark .trust-card-title {
  color: #ffffff !important;
}
.trust-section-dark .trust-card-desc {
  color: #1A2A5C !important;
  font-weight: 400;
}
.trust-section-dark .trust-card-icon {
  background: rgba(88, 155, 238, 0.15) !important;
  border-color: rgba(88, 155, 238, 0.35) !important;
  color: #589BEE;
}
/* Decorative numeral becomes faint white instead of dark on dark */
.trust-section-dark .trust-card::before {
  color: rgba(255, 255, 255, 0.06) !important;
}


/* ═══════════════════════════════════════════
   HOME, light-theme overrides (J Corrigan)
   ═══════════════════════════════════════════ */

/* Home hero, sooted brick wall with drifting smoke.
   Base brick pattern is defined in the main .hero--home rule above; this
   override block tunes overlays + text for the dark masonry backdrop. */
.hero-overlay {
  /* Soft vignette, lets brick texture read at edges while keeping
     the title area dark enough for the smoke-cream text. */
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(6, 20, 88, 0.55) 0%,
    rgba(6, 20, 88, 0.35) 40%,
    rgba(6, 20, 88, 0.20) 75%,
    rgba(6, 20, 88, 0.05) 100%
  );
}
.hero-dark-overlay {
  /* Bottom fade to pure soot so the hero merges into the next section */
  background: linear-gradient(to top, #040C3A 0%, rgba(4, 12, 58, 0.3) 30%, transparent 70%);
}

/* Hero title, warm smoke-cream serif against soot backdrop */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #F3F5F5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Smoking "i" in Chimneys: puffs emerge from the tittle of the "i"
   and drift upward continuously so the character reads like a chimney
   venting smoke. Puffs are absolutely-positioned children so they
   don't affect text layout. */
.smoking-i {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.smoking-i-letter {
  position: relative;
  display: inline-block;
  z-index: 2;
}
.smoke-puff {
  position: absolute;
  left: 50%;
  top: 0.25em;
  width: 0.18em;
  height: 0.18em;
  margin-left: -0.09em;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%,
    #FFFFFF 0%,
    #F3F5F5 45%,
    rgba(213, 222, 235, 0.5) 75%,
    transparent 95%);
  filter: blur(0);
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  animation: smoke-puff-rise 8.5s linear infinite;
  will-change: transform, opacity, filter;
  mix-blend-mode: screen;
}
/* Blue smoke for the "ı" inside the accent word "rebuilt" — same
   dot + trail animation but tinted to match the vibrant flash color. */
.smoke-puff--flash {
  background: radial-gradient(circle at 45% 45%,
    #6AB5FF 0%,
    #1D7DFF 45%,
    rgba(29, 125, 255, 0.4) 78%,
    transparent 96%);
}
/* Staggered so a new dot is always emerging from inside the letter while
   the older ones drift upward, keeping a long persistent trail. */
.smoke-puff-1 { animation-delay: 0s; }
.smoke-puff-2 { animation-delay: 1.7s; }
.smoke-puff-3 { animation-delay: 3.4s; }
.smoke-puff-4 { animation-delay: 5.1s; }

@keyframes smoke-puff-rise {
  /* Born tiny, deep inside the letter body, hidden behind the glyph */
  0% {
    opacity: 0;
    transform: translate(0, 0.5em) scale(0.15);
    filter: blur(0);
  }
  /* Fade in as a small dot inside the letter */
  4% {
    opacity: 1;
    transform: translate(0, 0.48em) scale(0.3);
    filter: blur(0);
  }
  /* Grow while sliding up out from behind the letter glyph */
  9% {
    transform: translate(0, 0.25em) scale(0.65);
    filter: blur(0);
  }
  /* Arrive at the tittle position at full dot size */
  13% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
  }
  /* Brief hold at the tittle position as a sharp dot */
  17% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
  }
  /* Begin drifting up, still quite visible */
  35% {
    opacity: 0.9;
    transform: translate(-0.15em, -1em) scale(1.6);
    filter: blur(2px);
  }
  /* Fully smoke, still holding its trail strongly */
  60% {
    opacity: 0.7;
    transform: translate(-0.3em, -2.4em) scale(2.4);
    filter: blur(5px);
  }
  /* Slow fade-out so the trail lingers up in the cloud area */
  85% {
    opacity: 0.35;
    transform: translate(-0.45em, -4em) scale(3.1);
    filter: blur(8px);
  }
  100% {
    opacity: 0;
    transform: translate(-0.55em, -5em) scale(3.6);
    filter: blur(11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-puff { animation: none; opacity: 0; }
}
/* Vibrant blue accent for the flashy words, clearly distinct from the
   cream main title. No glow, just a dark legibility shadow. */
.hero--home .hero-word-flash {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #1D7DFF;
  color: #1D7DFF;
  filter: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hero-lead {
  color: #F3F5F5;
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Hero trust pills on dark brick hero, smoke-glass chips */
.hero--home .hero-trust-pill {
  background: rgba(243, 245, 245, 0.08);
  border: 1px solid rgba(243, 245, 245, 0.22);
  color: #F3F5F5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero--home .hero-trust-pill:hover {
  background: rgba(243, 245, 245, 0.16);
  border-color: rgba(162, 191, 235, 0.65);
}
.hero--home .hero-trust-pill svg { color: #A2BFEB; }

/* Hero ghost button on dark brick hero, warm ember outline */
.hero--home .btn-ghost {
  border-color: rgba(243, 245, 245, 0.5);
  color: #F3F5F5;
}
.hero--home .btn-ghost:hover {
  border-color: #A2BFEB;
  color: #A2BFEB;
}
.hero-scroll-indicator { color: rgba(243, 245, 245, 0.55); }

/* Trust marquee on home, cream surface */
.trust-marquee {
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-surface);
}
.marquee-item {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--bg-border);
}
.marquee-item-icon { color: var(--accent); }
.marquee-label { color: var(--text); }
.marquee-sublabel { color: var(--text-muted); }

/* Stat cards, cream glass */
.stat-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.stat-card:hover { box-shadow: var(--shadow-md); }

/* Scroll progress, shorter bar, blue */
.scroll-progress { box-shadow: 0 0 12px rgba(88, 155, 238, 0.35); }

/* About image, soft rectangle, not the asymmetric blob shape */
.about-image {
  border-radius: 4px;
}
.about-image img {
  border-radius: 4px;
  aspect-ratio: 4 / 5;
}
.about-image::before {
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(88, 155, 238, 0.25), transparent 60%);
}

/* How-we-work, numeric stamps become solid circular badges */
.how-step-num {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}
.how-steps::before {
  left: 27px;
  background: linear-gradient(to bottom, rgba(88, 155, 238, 0.35), rgba(88, 155, 238, 0.05));
}

/* Trust-section-dark override, we use cream homey surface instead */
.trust-section-dark {
  background: var(--bg-warm) !important;
}
.trust-section-dark .trust-card-inner {
  background: var(--bg-card) !important;
}
.trust-section-dark .trust-card-title { color: var(--text) !important; }
.trust-section-dark .trust-card-desc { color: var(--text-muted) !important; }
.trust-section-dark .trust-card::before { color: rgba(88, 155, 238, 0.07) !important; }
