/* ==========================================================
   Sofia Walking Tour — Landing Page
   Mobile-first. "The scroll is the walk."
   All motion lives inside @media (prefers-reduced-motion: no-preference)
   so the page is fully usable with animations disabled.
   ========================================================== */

:root {
  --navy: #1a2744;
  --navy-dark: #111d33;
  --navy-light: #243156;
  --gold: #c9a84c;
  --gold-light: #e0c377;
  --white: #ffffff;
  --grey: #8a8a8a;
  --light-grey: #f5f5f5;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  text-wrap: balance;
}

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

::selection {
  background: var(--gold);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Accessibility: skip link ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Shared elements ---------- */

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: #8a7433;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--navy);
}

.section-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
}

.section-title.gold {
  color: var(--gold);
}

.section-title.small {
  font-size: 30px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--grey);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-subtitle.light {
  color: var(--white);
  opacity: 0.85;
}

@media (min-width: 768px) {
  .section-title { font-size: 40px; }
  .section-title.small { font-size: 36px; }
}

/* ---------- Progress bar (walking route being traced) ---------- */

#progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 0%;
  background: var(--gold);
  transition: height 0.1s linear;
  z-index: 100;
}

/* ---------- Section 1 — Navigation ---------- */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: var(--gold-light);
}

/* ---------- Section 2 — Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Layer 1 (back): photo with ken-burns. */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Layer 2: navy gradient overlay for legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 39, 68, 0.4) 0%, rgba(26, 39, 68, 0.75) 100%);
  z-index: -1;
}

/* Layer 3: content */
.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 780px;
}

.hero-label {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 38px;
  line-height: 1.12;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-line {
  display: block;
}

.hero-line-accent {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  color: var(--white);
  font-size: 16px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  padding: 16px 40px;
  font-size: 16px;
}

.hero-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-top: 16px;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.scroll-cue.hidden {
  opacity: 0;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 64px; }
  .hero-subtitle { font-size: 18px; }
}

/* ---------- Section 3 — Urgency banner ---------- */

.urgency-banner {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 14px 20px;
}

.urgency-banner a {
  font-weight: 700;
}

.urgency-banner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Section 4 — Stats strip ---------- */

.stats {
  background: var(--white);
  padding: 56px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  line-height: 1;
  color: var(--navy);
}

.stat-bar {
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.stat-label {
  font-size: 13px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Section 5 — How it works ---------- */

.how-it-works {
  background: var(--white);
  padding: 90px 0;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}

/* Dotted gold route connector between the step cards (desktop).
   Draws itself left-to-right via clip-path when the section reveals. */
.steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3%;
  right: 3%;
  border-top: 2px dashed rgba(201, 168, 76, 0.55);
  z-index: 0;
  display: none;
}

.step-card {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.step-card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Inner wrapper carries the tilt-hover transform so it never fights
   the reveal transition on the card itself */
.tilt {
  padding: 36px 24px 24px;
  border-radius: 8px;
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
}

.step-number {
  position: absolute;
  top: 6px;
  left: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  color: var(--navy);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.step-icon {
  color: var(--gold);
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--grey);
}

@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { display: block; }
}

/* ---------- Section 6 — What you'll discover (centerpiece) ---------- */

.discover {
  background: var(--light-grey);
  padding: 100px 0;
}

.discover-route {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 52px; /* room for the route line on mobile */
}

/* The route line track: left edge on mobile, center on desktop */
.route-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 44px;
  pointer-events: none;
}

.route-line {
  width: 100%;
  height: 100%;
  display: block;
}

.route-marker {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--light-grey);
  box-shadow: 0 0 0 2px var(--gold);
}

.route-row {
  position: relative;
}

.route-card {
  background: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.route-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 22px;
}

.card-stop {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin: 6px 0 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

.discover-more {
  text-align: center;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .discover-route {
    padding-left: 0;
    gap: 48px;
  }

  .route-track {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
  }

  .route-row {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
  }

  .route-row.left .route-card { grid-column: 1; }
  .route-row.right .route-card { grid-column: 3; }
}

/* ---------- Section 7 — Cinematic break ---------- */

.cinematic {
  position: relative;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Oversized so the 55%-speed parallax never shows edges */
.cinematic-bg {
  position: absolute;
  top: -62%;
  left: 0;
  width: 100%;
  height: 224%;
  object-fit: cover;
  z-index: -2;
}

.cinematic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.55);
  z-index: -1;
}

.cinematic-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--white);
  font-size: 24px;
  line-height: 1.45;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .cinematic-quote { font-size: 32px; }
}

/* ---------- Section 8 — Discover local Sofia ---------- */

.nearby {
  background: var(--navy);
  padding: 90px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.business-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.business-card {
  background: var(--navy-light);
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.business-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

/* Placeholder photo strips — replace via background-image, remove the <span> */
.business-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.business-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.business-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.business-head h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.business-location {
  color: var(--gold);
  font-size: 13px;
}

.business-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 4px;
}

.nearby-tagline {
  font-style: italic;
  color: var(--white);
  opacity: 0.7;
  font-size: 16px;
  text-align: center;
  margin-top: 44px;
}

@media (min-width: 768px) {
  .business-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Section 9 — Email capture ---------- */

.email-capture {
  background: var(--light-grey);
  padding: 80px 20px;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.email-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.email-envelope {
  color: var(--gold);
  margin-bottom: 16px;
}

.email-subtitle {
  font-size: 16px;
  color: var(--grey);
  margin-bottom: 32px;
}

.email-form input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
}

.email-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: transparent;
}

.btn-gold.full {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.email-note {
  font-size: 13px;
  color: var(--grey);
  margin-top: 12px;
}

/* ---------- Section 10 — FAQ ---------- */

.faq {
  background: var(--white);
  padding: 80px 20px;
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

.faq-inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  padding: 20px 0;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #8a7433;
}

.faq-icon {
  color: var(--gold);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* "+" rotates 45° into "×" when open */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ---------- Section 11 — Final CTA ---------- */

.final-cta {
  position: relative;
  background: var(--navy);
  padding: 110px 20px;
  text-align: center;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Subtle repeating line-art of Sofia landmark silhouettes */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150' viewBox='0 0 260 150'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='1.5'%3E%3Cpath d='M18 128 v-32 a17 14 0 0 1 34 0 v32'/%3E%3Cpath d='M35 82 v-12 M27 76 h16'/%3E%3Crect x='78' y='100' width='44' height='28'/%3E%3Cpath d='M88 100 v-12 h24 v12'/%3E%3Cpath d='M150 128 v-44 l9 -16 9 16 v44'/%3E%3Cpath d='M159 68 l0 -10'/%3E%3Cpath d='M205 128 v-26 a12 10 0 0 1 24 0 v26'/%3E%3Cpath d='M217 92 v-10 M211 87 h12'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.final-cta > div {
  position: relative;
}

.final-cta h2 {
  color: var(--gold);
  font-size: 36px;
}

.final-subtitle {
  color: var(--white);
  font-size: 18px;
  opacity: 0.85;
  margin-top: 16px;
}

.btn-gold.final {
  margin-top: 40px;
  padding: 18px 48px;
  font-size: 17px;
}

.final-note {
  color: var(--white);
  font-size: 13px;
  opacity: 0.6;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .final-cta h2 { font-size: 52px; }
}

/* ---------- Section 12 — Footer ---------- */

footer {
  background: var(--navy-dark);
  padding: 40px 20px 24px;
}

.footer-columns {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 16px;
}

.footer-made,
.footer-links {
  color: var(--grey);
  font-size: 13px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid #ffffff15;
  margin-top: 24px;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--white);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--navy-dark);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
  max-width: 640px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn-ghost,
.cookie-banner-actions .btn-gold {
  padding: 10px 20px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
}

/* ==========================================================
   ANIMATION SYSTEM — gated behind prefers-reduced-motion
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* --- ken-burns: hero background slowly breathes --- */
  .hero-bg {
    animation: ken-burns 12s ease-in-out infinite alternate;
    will-change: transform;
  }

  @keyframes ken-burns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
  }

  /* ken-burns on hover for landmark photos */
  .card-photo {
    transition: transform 6s ease;
  }
  .route-card:hover .card-photo {
    transform: scale(1.08);
  }

  /* --- hero load sequence (reveal-up on page load) --- */
  .fade-load {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-up-anim 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .fade-load-1 { animation-delay: 0.2s; }
  .fade-load-2 { animation-delay: 0.45s; }
  .fade-load-3 { animation-delay: 0.7s; }
  .fade-load-4 { animation-delay: 0.95s; }
  .fade-load-5 { animation-delay: 1.2s; }
  .fade-load-6 { animation-delay: 1.7s; }

  @keyframes reveal-up-anim {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* --- CTA gold pulse: expanding box-shadow ring, subtle --- */
  .btn-pulse {
    animation: gold-pulse 2.5s ease-out infinite;
  }

  @keyframes gold-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.45); }
    60%  { box-shadow: 0 0 0 14px rgba(201, 168, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
  }

  .btn-gold:hover,
  .nav-cta:hover {
    transform: translateY(-2px);
  }

  /* --- scroll cue bounce --- */
  .scroll-cue svg {
    animation: cue-bounce 1.8s ease-in-out infinite;
  }

  @keyframes cue-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
  }

  /* --- reveal-up / reveal-stagger (class .visible added by IO) --- */
  .reveal,
  .stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.visible,
  .stagger > *.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Landmark cards slide in from their side of the route (desktop) */
  @media (min-width: 900px) {
    .route-row.left .route-card.reveal  { transform: translateX(-40px); }
    .route-row.right .route-card.reveal { transform: translateX(40px); }
    .route-row .route-card.reveal.visible { transform: translateX(0); }
  }

  /* --- draw-line: steps connector draws left-to-right on reveal --- */
  .steps::before {
    clip-path: inset(-4px 100% -4px 0);
    transition: clip-path 1.4s ease 0.4s;
  }
  .steps.visible::before {
    clip-path: inset(-4px 0 -4px 0);
  }

  /* --- route stop markers pop in (scale bounce) as the line reaches them --- */
  .route-marker {
    transform: scale(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .route-marker.active {
    transform: scale(1);
  }

  /* --- stats: gold underline grows 0 → 100% on reveal --- */
  .stat-bar {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  }
  .stat.visible .stat-bar {
    transform: scaleX(1);
  }

  /* --- envelope float --- */
  .email-envelope {
    animation: float 3s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(-6px); }
    50%      { transform: translateY(6px); }
  }

  /* Parallax backgrounds are translated by JS; hint the compositor */
  .cinematic-bg {
    will-change: transform;
  }
}
