@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import 'tokens.css';
@import 'scroll-motion.css';
/* SAFARI-EARTH-START – revert: remove next line + delete photo-treatment.css */
@import 'photo-treatment.css';
/* SAFARI-EARTH-END */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--wg-font-sans);
  background: var(--wg-surface);
  color: var(--wg-text);
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wg-container {
  width: var(--wg-container);
  margin-inline: auto;
}

@keyframes wgFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wgScaleIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes wgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes wgGrowBox {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.wg-pop {
  opacity: 0;
  animation: wgFadeUp 0.95s var(--wg-ease) forwards;
}

.wg-pop.d1 { animation-delay: calc(var(--wg-hero-content-delay) + 0.1s); }
.wg-pop.d2 { animation-delay: calc(var(--wg-hero-content-delay) + 0.26s); }
.wg-pop.d3 { animation-delay: calc(var(--wg-hero-content-delay) + 0.42s); }
.wg-pop.d4 { animation-delay: calc(var(--wg-hero-content-delay) + 0.58s); }
.wg-pop.d5 { animation-delay: calc(var(--wg-hero-content-delay) + 0.74s); }
.wg-pop.d6 { animation-delay: calc(var(--wg-hero-content-delay) + 0.9s); }
.wg-pop.d7 { animation-delay: calc(var(--wg-hero-content-delay) + 1.06s); }

/* Scroll reveal – see scroll-motion.css; legacy hooks kept for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wg-pop,
  .wg-reveal-section,
  .wg-reveal-item,
  .wg-reveal-block,
  .wg-img-enter > img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .wg-badge--live { animation: none !important; }
}

/* Animated badge rectangles – always live */
.wg-badge {
  display: inline-block;
  padding: 0.08em 0.38em 0.12em;
  border-radius: 5px;
  line-height: 1.05;
  vertical-align: baseline;
}

.wg-badge--live {
  animation: wgBadgeDrift 3.2s ease-in-out infinite;
}

.wg-badge--teal.wg-badge--live {
  animation: wgBadgeShift 3.4s ease-in-out infinite 0.5s;
}

@keyframes wgBadgeDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(3px, -4px) rotate(-2deg); }
  66% { transform: translate(-2px, 2px) rotate(1.5deg); }
}

@keyframes wgBadgeShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(-4px, -3px) rotate(2deg); }
  70% { transform: translate(3px, 3px) rotate(-1.5deg); }
}

.wg-badge--gold {
  background: var(--wg-gold);
  color: #fff;
}

.wg-badge--teal {
  background: var(--wg-gold);
  color: #fff;
}

.wg-badge--sky {
  background: var(--wg-sky);
  color: #fff;
}

.wg-badge--outline {
  background: transparent;
  color: var(--wg-text);
  border: 1.5px solid var(--wg-border-strong);
}

.wg-highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.06em;
}

.wg-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--wg-gold-dim);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: wgGrowBox 0.75s var(--wg-ease) calc(var(--wg-hero-content-delay) + 0.65s) forwards;
}

.wg-script {
  font-family: var(--wg-font-sans);
  font-weight: inherit;
  color: var(--wg-gold);
  line-height: 1.05;
}

/* Section typography – eyebrow → title (gold accent) → lead */
.wg-title-script {
  font-family: var(--wg-font-sans);
  font-weight: inherit;
  color: var(--wg-gold-olive);
  font-size: 1em;
  letter-spacing: -0.02em;
  line-height: inherit;
  vertical-align: baseline;
}

.wg-section-sign {
  font-family: var(--wg-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wg-gold-olive);
  line-height: 1.45;
  margin-top: 0.45rem;
}

.wg-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wg-gold-olive);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.wg-section-head {
  text-align: center;
  margin-bottom: clamp(1.15rem, 3vw, 1.65rem);
}

.wg-section-head .wg-section-lead {
  margin-inline: auto;
}

.wg-section-title {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0;
  color: var(--wg-text);
}

.wg-section-lead {
  margin-top: 0.85rem;
  max-width: 36rem;
  color: var(--wg-text-muted);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Subtle breath between major sections (not oversized gaps) */
.wg-section-rhythm,
main > section.wg-reveal-section:not(:last-child),
main > .wg-xp:not(:last-child),
.wg-trust-band {
  margin-bottom: clamp(1rem, 2.2vw, 1.75rem);
}
