/* ==========================================================================
   AVO — motion. Elegant, slow, controlled.
   ========================================================================== */

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
}

/* Intro */
@keyframes intro-mark-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes intro-wave { from { transform: scaleY(0.28); } to { transform: scaleY(1); } }
.intro img { animation: intro-mark-in 1.1s var(--ease) both; }
.intro__wave span { animation: intro-wave 0.9s ease-in-out infinite alternate; }
.intro.is-hidden { opacity: 0; pointer-events: none; transition: opacity 0.9s var(--ease); }

/* Hero line-by-line reveal (GSAP takes over when available) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); opacity: 0; }
.is-revealed .line-mask > span { animation: line-up 1.05s var(--ease) both; }
.is-revealed .line-mask:nth-child(2) > span { animation-delay: 0.09s; }
.is-revealed .line-mask:nth-child(3) > span { animation-delay: 0.18s; }
.is-revealed .line-mask:nth-child(4) > span { animation-delay: 0.27s; }
@keyframes line-up { to { transform: none; opacity: 1; } }

.hero-fade { opacity: 0; }
.is-revealed .hero-fade { animation: hero-fade-in 0.9s 0.55s var(--ease) both; }
@keyframes hero-fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

/* Image mask reveal */
.mask-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.mask-reveal.is-in { clip-path: inset(0 0 0 0); }

/* Modal transitions */
@keyframes modal-rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal.is-open { animation: modal-fade 0.35s ease both; }
.modal.is-open .modal__panel { animation: modal-rise 0.55s var(--ease) both; }

/* Page transition */
.page-fade { animation: modal-fade 0.6s var(--ease) both; }

/* Accordion */
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.accordion-body.is-open { max-height: 500px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mask-reveal { clip-path: none; }
  .line-mask > span, .hero-fade { transform: none; opacity: 1; }
  body::after { animation: none; }
}

/* ==========================================================================
   Engagement layer — living detail, gold light, tactile feedback
   ========================================================================== */

/* Gold shimmer across the wordmark and key headings */
@keyframes gold-sweep {
  0%   { background-position: 200% 50%; }
  100% { background-position: -100% 50%; }
}
.gold-text {
  background: linear-gradient(100deg,
    var(--avo-accent-deep) 0%, #F3D488 22%, var(--avo-accent) 40%,
    var(--avo-accent-deep) 62%, #F3D488 80%, var(--avo-accent) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gold-sweep 7s linear infinite;
}

/* Hairline that draws itself in as a section arrives */
.rule-draw { position: relative; }
.rule-draw::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--avo-accent), transparent);
  transition: width 1.4s var(--ease);
}
.rule-draw.is-in::after { width: 100%; }

/* Breathing scroll cue */
@keyframes cue-drift {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(6px); opacity: 1; }
}
.scroll-cue [data-icon] { animation: cue-drift 2.4s ease-in-out infinite; }

/* Soft gold glow that follows the pointer across dark panels */
.glow-surface { position: relative; overflow: hidden; }
.glow-surface::before {
  content: ''; position: absolute; inset: -40%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
    rgba(230,106,67, 0.16), transparent 42%);
  transition: opacity 0.6s var(--ease);
}
.glow-surface:hover::before { opacity: 1; }

/* Link underline that wipes in from the left */
.accent, .link-arrow { position: relative; }
a.accent { background-image: linear-gradient(var(--avo-accent), var(--avo-accent));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease); }
a.accent:hover { background-size: 100% 1px; }

/* Buttons lift and settle */
.btn { will-change: transform; }
.btn--ghost:hover { background: rgba(230,106,67, 0.07); }

/* Chip selection pulse */
@keyframes chip-pulse { from { box-shadow: 0 0 0 0 rgba(230,106,67,0.45); } to { box-shadow: 0 0 0 12px rgba(230,106,67,0); } }
.chip.is-selected { animation: chip-pulse 0.6s var(--ease); }

/* Field focus lights the label */
.field:focus-within > span { color: var(--avo-accent); transition: color 0.3s var(--ease); }

/* Counter ticks up */
.count-up { font-variant-numeric: tabular-nums; }

/* Marquee for the roster ticker */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__inner { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__inner { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-size: clamp(20px, 4vw, 34px);
  letter-spacing: -0.02em; color: rgba(244,241,234,0.28); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__item::after { content: '—'; color: var(--avo-accent); opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .gold-text { animation: none; }
  .marquee__inner { animation: none; }
  .scroll-cue [data-icon] { animation: none; }
  .rule-draw::after { width: 100%; transition: none; }
}

/* ==========================================================================
   Brand-led engagement — the gold wordmark drives the motion
   ========================================================================== */

/* Intro: the mark draws itself in with a light sweep across the gold */
@keyframes mark-in {
  0%   { opacity: 0; transform: scale(.9) translateY(14px); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.intro img { animation: mark-in 1.25s var(--ease) both; }

.intro__sheen {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.intro__sheen::after {
  content: ''; position: absolute; top: -60%; left: -40%;
  width: 26%; height: 220%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: sheen-sweep 1.5s .55s var(--ease) both;
}
@keyframes sheen-sweep { from { left: -40%; } to { left: 130%; } }

/* Nav mark lifts on hover */
.nav__logo { display: inline-block; transition: transform .5s var(--ease); }
.nav__logo:hover { transform: translateY(-2px); }
.nav__logo img { transition: height .5s var(--ease), filter .5s var(--ease); }
.nav__logo:hover img { filter: drop-shadow(0 4px 22px rgba(230,106,67,.55)); }

/* Footer mark breathes very slowly */
@keyframes mark-breathe {
  0%, 100% { filter: drop-shadow(0 4px 26px rgba(230,106,67,.16)); }
  50%      { filter: drop-shadow(0 6px 38px rgba(230,106,67,.34)); }
}
.footer-grid img { animation: mark-breathe 6s ease-in-out infinite; }

/* Section headings get a thin gold rule that grows from the mark's colour */
.h-accent { position: relative; display: inline-block; padding-bottom: 14px; }
.h-accent::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--avo-gold-grad); transition: width 1.1s var(--ease) .15s;
}
.h-accent.is-in::after { width: 62px; }

/* Cards tilt very slightly toward the pointer */
.tilt { transition: transform .5s var(--ease); transform-style: preserve-3d; }

/* Number badges count in */
@keyframes badge-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.badge-in { animation: badge-in .7s var(--ease) both; }

/* Gold divider between major sections */
.gold-divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(230,106,67,.55), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .intro img, .intro__sheen::after, .footer-grid img { animation: none; }
  .h-accent::after { width: 62px; transition: none; }
}
