/* =============================================================================
   Al-Andaluzza · FX layer (Agent J · 2026-05-13)
   Award-grade additive motion + illustration pass. Purely additive — no
   existing rules are overridden. All animations respect prefers-reduced-motion.
   ========================================================================== */

/* Reduced-motion master switch ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .aa-illu path,
  .aa-illu polygon,
  .aa-illu line,
  .aa-illu circle,
  .aa-illu ellipse,
  .aa-method__path,
  .aa-climate__path,
  .aa-timeline__segment {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    animation: none !important;
    transition: none !important;
  }
  .aa-hero-fx__layer,
  .aa-wanderer,
  .aa-progress__fill {
    transform: none !important;
    animation: none !important;
  }
}

/* ---------------------------------------------------------------------------
   1 · HERO 3-D PARALLAX
   The original <img> inside .hero__bg stays in place; we *add* sibling
   layers via JS that render in front/behind. The mid layer is a Gaussian-
   blurred copy of the hero photo; the front layer is an inline SVG of
   grasses + two corner Cordoban arches. Slow Ken-Burns zoom kicks in via
   --aa-hero-scroll (set by JS to 0 → 1 across 60vh of scroll).
   --------------------------------------------------------------------------- */
.aa-hero-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aa-hero-fx__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 280ms cubic-bezier(.22,.61,.36,1);
}
.aa-hero-fx__layer--mid {
  /* slight desaturation; sits between back photo and foreground silhouette */
  mix-blend-mode: normal;
  opacity: 0.55;
}
.aa-hero-fx__layer--mid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.aa-hero-fx__layer--front {
  /* foreground hand-drawn grasses + corner arches; pinned to the bottom */
  bottom: 0;
  height: 36%;
  top: auto;
  inset-inline: 0;
}
.aa-hero-fx__layer--front svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--terracotta);
  opacity: 0.82;
}
.aa-hero-fx__arch {
  position: absolute;
  bottom: 0;
  width: 90px;
  height: 130px;
  color: var(--gold-leaf);
  opacity: 0.35;
}
.aa-hero-fx__arch--left  { inset-inline-start: 0; }
.aa-hero-fx__arch--right { inset-inline-end: 0; transform: scaleX(-1); }

/* Ken-Burns zoom applied on the back image only.
   --aa-hero-scroll is set by JS in [0, 1]; scale 1.00 → 1.08 */
.hero__bg {
  --aa-hero-scroll: 0;
  transform: scale(calc(1 + 0.08 * var(--aa-hero-scroll)));
  transition: transform 60ms linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { transform: none; }
}

/* The hero needs the FX overlay to *sit* below the .hero__inner copy.
   The existing .hero already has position:relative and z-index ordering. */
.aa-hero-fx { z-index: 1; }
.hero__inner, .hero__scroll { position: relative; z-index: 3; }

/* ---------------------------------------------------------------------------
   2 · 3-D TILT + CURSOR SPOTLIGHT ON PRODUCT CARDS
   The .product-card structure is untouched. We only add CSS variables
   --aa-rx / --aa-ry (rotation degrees) and --aa-mx / --aa-my (cursor %
   for the spotlight). JS toggles a body class .aa-has-hover and the
   card class .is-tilted to drive transitions.
   --------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .product-card {
    transform-style: preserve-3d;
    transition: transform 360ms cubic-bezier(.22,.61,.36,1),
                box-shadow 360ms cubic-bezier(.22,.61,.36,1);
    --aa-rx: 0deg;
    --aa-ry: 0deg;
    --aa-mx: 50%;
    --aa-my: 50%;
  }
  .product-card.is-tilted {
    /* perspective + rotateX/Y · max ±8° */
    transform: perspective(1000px)
               rotateX(var(--aa-rx))
               rotateY(var(--aa-ry))
               translateY(-6px);
    box-shadow: 0 22px 48px -22px rgba(42, 45, 95, 0.42),
                0 8px 18px -10px rgba(184, 90, 54, 0.18);
    transition-duration: 80ms;
  }
  .product-card.is-tilted:active {
    transform: perspective(1000px)
               rotateX(var(--aa-rx))
               rotateY(var(--aa-ry))
               translateY(-4px) scale(0.985);
    transition-duration: 120ms;
  }
  /* The cursor-tracked spotlight – radial gradient overlay above the photo,
     below the card text. Sits inside .product-card__frame which is already
     position:relative. */
  .product-card__frame {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .product-card__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(180px circle at var(--aa-mx) var(--aa-my),
                                rgba(244, 236, 216, 0.42),
                                rgba(244, 236, 216, 0.0) 60%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 320ms cubic-bezier(.22,.61,.36,1);
    z-index: 2;
  }
  .product-card.is-tilted .product-card__frame::after { opacity: 1; }
  /* Counter-parallax on the photo so it feels behind the mihrab frame */
  .product-card__frame img {
    transition: transform 360ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
  }
  .product-card.is-tilted .product-card__frame img {
    transform: translate3d(
                 calc(var(--aa-ry) / 1deg * -0.7px),
                 calc(var(--aa-rx) / 1deg *  0.7px),
                 0) scale(1.04);
  }
}

/* ---------------------------------------------------------------------------
   3-4 · ILLUSTRATIONS · scroll-draw signature animation
   Every <path>, <circle>, <ellipse>, <polygon> inside .aa-illu draws itself
   when the SVG scrolls into view. JS sets --aa-len per path and toggles
   .is-drawing. We use stroke-dasharray with a single var so we can stagger
   per element via animation-delay.
   --------------------------------------------------------------------------- */
.aa-illu {
  color: var(--ink);
  vertical-align: middle;
  overflow: visible;
}
.aa-illu path,
.aa-illu polygon,
.aa-illu line,
.aa-illu circle,
.aa-illu ellipse {
  stroke-dasharray: var(--aa-len, 400);
  stroke-dashoffset: var(--aa-len, 400);
  transition: stroke-dashoffset 1200ms cubic-bezier(.65,.05,.36,1);
}
/* small filled details inside illustrations (eyes, polygon stars) restore
   their fill only after the contour has begun to draw. */
.aa-illu [fill="currentColor"] {
  opacity: 0;
  transition: opacity 320ms ease 600ms;
}
.aa-illu.is-drawing path,
.aa-illu.is-drawing polygon,
.aa-illu.is-drawing line,
.aa-illu.is-drawing circle,
.aa-illu.is-drawing ellipse {
  stroke-dashoffset: 0;
}
.aa-illu.is-drawing [fill="currentColor"] { opacity: 1; }

/* Colour variants for illustrations sprinkled in sections */
.aa-illu--terracotta { color: var(--terracotta); }
.aa-illu--olive      { color: var(--olive); }
.aa-illu--gold       { color: var(--gold-leaf); }
.aa-illu--indigo     { color: var(--indigo); }
.aa-illu--bone       { color: var(--bone); }

/* The illustration ribbon we drop between sections – a quiet divider that
   shows the sierra-sagra ridge silhouette drawing itself in. */
.aa-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 4px;
  margin: 0 auto;
  max-width: 720px;
}
.aa-section-divider svg {
  width: 100%;
  height: auto;
  max-height: 96px;
  color: var(--olive);
  opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   5 · INTERACTIVE METHOD PATH
   We append .aa-method to #metodo (after the existing .method-grid which we
   keep untouched as a fallback). 4 nodes on an SVG path that draws on
   scroll-in. Each node is a zellige medallion in HTML, absolutely positioned
   over the SVG. Mobile: vertical stack via media query.
   --------------------------------------------------------------------------- */
.aa-method {
  position: relative;
  margin-top: 48px;
  padding: 36px 0 16px;
  --aa-method-h: 200px;
}
.aa-method__svg {
  width: 100%;
  height: var(--aa-method-h);
  display: block;
  overflow: visible;
}
.aa-method__path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: var(--aa-len, 1000);
  stroke-dashoffset: var(--aa-len, 1000);
  transition: stroke-dashoffset 1400ms cubic-bezier(.65,.05,.36,1);
  opacity: 0.55;
}
.aa-method.is-active .aa-method__path { stroke-dashoffset: 0; }

.aa-method__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.aa-method__node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  text-align: center;
  pointer-events: auto;
}
.aa-method__node:nth-child(1) { inset-inline-start: 8%; }
.aa-method__node:nth-child(2) { inset-inline-start: 36%; }
.aa-method__node:nth-child(3) { inset-inline-start: 64%; }
.aa-method__node:nth-child(4) { inset-inline-start: 92%; }

.aa-method__medallion {
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--terracotta);
  transition: color 600ms cubic-bezier(.65,.05,.36,1),
              filter 600ms cubic-bezier(.65,.05,.36,1);
  filter: drop-shadow(0 0 0 transparent);
}
.aa-method__medallion svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.aa-method__medallion span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--bone-soft);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.6px solid currentColor;
}
/* sequential activation — set via inline transition-delay on the medallion */
.aa-method.is-active .aa-method__node.is-lit .aa-method__medallion {
  color: var(--gold-leaf);
  /* gold-leaf glow on medallion activation — terracotta→gold 600ms with
     bone halo fade-in 200ms after */
  filter: drop-shadow(0 0 14px rgba(196, 162, 75, 0.55));
}
.aa-method__label {
  font-family: var(--font-display, Georgia, serif);
  font-size: 15px;
  color: var(--indigo);
  letter-spacing: 0.04em;
}
.aa-method__detail {
  position: absolute;
  bottom: calc(100% + 12px);
  inset-inline-start: 50%;
  transform: translate(-50%, 6px);
  width: 220px;
  padding: 12px 14px;
  background: var(--bone);
  color: var(--indigo);
  border-radius: 12px;
  box-shadow: 0 14px 28px -16px rgba(42, 45, 95, 0.4);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(.22,.61,.36,1),
              transform 280ms cubic-bezier(.22,.61,.36,1);
  z-index: 5;
}
.aa-method__detail::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--bone);
}
@media (hover: hover) {
  .aa-method__node:hover .aa-method__detail,
  .aa-method__node:focus-within .aa-method__detail {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 760px) {
  /* Mobile: stack vertically along a 200px-wide centred column */
  .aa-method { --aa-method-h: 520px; }
  .aa-method__svg { max-width: 200px; margin: 0 auto; }
  .aa-method__node { inset-inline-start: 50% !important; }
  .aa-method__node:nth-child(1) { top: 8%; }
  .aa-method__node:nth-child(2) { top: 36%; }
  .aa-method__node:nth-child(3) { top: 64%; }
  .aa-method__node:nth-child(4) { top: 92%; }
  .aa-method__detail {
    inset-inline-start: calc(100% + 14px);
    bottom: auto;
    top: 50%;
    transform: translate(6px, -50%);
  }
  .aa-method__detail::after {
    top: 50%; left: -7px;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-right-color: var(--bone);
    border-top-color: transparent;
  }
  @media (hover: hover) {
    .aa-method__node:hover .aa-method__detail,
    .aa-method__node:focus-within .aa-method__detail {
      transform: translate(0, -50%);
    }
  }
}

/* The Retinta wanderer hides in the method-section background. */
.aa-method-cow {
  position: absolute;
  inset-inline-end: 6%;
  bottom: 12%;
  width: 130px;
  height: 130px;
  color: var(--olive);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------------------------
   6 · CLIMATE DIAGRAM (terroir)
   We don't touch the existing static climate-svg. Instead we add a sibling
   .aa-climate block beneath it with the sun-arc, moon-arc, elevation pin
   and animated tick labels.
   --------------------------------------------------------------------------- */
.aa-climate {
  margin-top: 22px;
  position: relative;
  color: var(--bone);
}
.aa-climate__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.aa-climate__path {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: var(--aa-len, 800);
  stroke-dashoffset: var(--aa-len, 800);
  transition: stroke-dashoffset 1400ms cubic-bezier(.65,.05,.36,1);
}
.aa-climate__path--temp { stroke: var(--terracotta); }
.aa-climate__path--humid { stroke: var(--indigo); }
.aa-climate__path--sun  { stroke: var(--gold-leaf); stroke-width: 1.4; opacity: 0.75; }
.aa-climate__path--moon { stroke: var(--bone); stroke-width: 1.4; opacity: 0.55; }

.aa-climate.is-active .aa-climate__path { stroke-dashoffset: 0; }

.aa-climate__tick {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--bone);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(.22,.61,.36,1);
}
.aa-climate.is-active .aa-climate__tick { opacity: 0.7; transform: translateY(0); }
/* stagger inline via JS – setting --i, falling back to 0 */
.aa-climate__tick { transition-delay: calc(var(--i, 0) * 60ms); }

.aa-climate__legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.8;
  flex-wrap: wrap;
}
.aa-climate__legend i {
  display: inline-block;
  width: 18px; height: 2px; vertical-align: middle;
  margin-inline-end: 8px;
  border-radius: 1px;
}
.aa-climate__legend i.l-temp  { background: var(--terracotta); }
.aa-climate__legend i.l-humid { background: var(--indigo); border: 1px solid var(--bone); }
.aa-climate__legend i.l-sun   { background: var(--gold-leaf); }
.aa-climate__legend i.l-moon  { background: var(--bone); opacity: 0.7; }

.aa-climate__pin {
  position: absolute;
  inset-inline-end: 2%;
  top: 22%;
  width: 110px;
  text-align: end;
  color: var(--gold-leaf);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease 600ms, transform 600ms cubic-bezier(.22,.61,.36,1) 600ms;
}
.aa-climate.is-active .aa-climate__pin { opacity: 1; transform: translateY(0); }
.aa-climate__pin b {
  display: block;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.aa-climate__pin small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
}
@media (max-width: 880px) {
  .aa-climate__pin { position: static; text-align: start; margin-top: 18px; }
}

/* Sheep + lamb wanderer at the bottom of the terroir section ------------- */
.aa-wanderer-band {
  position: absolute;
  inset: auto 0 6%;
  height: 90px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aa-wanderer {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 80px;
  color: var(--bone);
  opacity: 0.30;
  animation: aa-wander-rtl 45s linear infinite;
  will-change: transform;
}
[dir="rtl"] .aa-wanderer {
  animation-name: aa-wander-ltr;
}
@keyframes aa-wander-rtl {
  from { transform: translateX(120vw); }
  to   { transform: translateX(-120%); }
}
@keyframes aa-wander-ltr {
  from { transform: translateX(-120%) scaleX(-1); }
  to   { transform: translateX(120vw)  scaleX(-1); }
}

/* ---------------------------------------------------------------------------
   7 · STORY TIMELINE
   Appended inside #story.section after the existing two-column .story grid.
   A thin vertical rail with 4 dots; each milestone enters with horizontal
   slide + dot fill on activation.
   --------------------------------------------------------------------------- */
.aa-timeline {
  margin-top: 64px;
  position: relative;
  padding-inline-start: 64px;
  --rail: var(--olive-2, #495630);
}
[dir="rtl"] .aa-timeline {
  padding-inline-start: 0;
  padding-inline-end: 64px;
}
.aa-timeline__rail {
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 24px;
  width: 2px;
  background: transparent;
}
[dir="rtl"] .aa-timeline__rail { inset-inline-start: auto; inset-inline-end: 24px; }
.aa-timeline__rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(73,86,48,0.18), rgba(73,86,48,0.1));
}
.aa-timeline__milestone {
  position: relative;
  padding-block: 28px 28px;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1),
              transform 700ms cubic-bezier(.22,.61,.36,1);
}
[dir="rtl"] .aa-timeline__milestone { transform: translateX(18px); }
.aa-timeline__milestone.is-active { opacity: 1; transform: translateX(0); }
.aa-timeline__dot {
  position: absolute;
  top: 30px;
  inset-inline-start: -49px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bone-soft);
  border: 2px solid var(--olive-2, #495630);
  transition: background 600ms cubic-bezier(.65,.05,.36,1),
              border-color 600ms cubic-bezier(.65,.05,.36,1),
              box-shadow 600ms cubic-bezier(.65,.05,.36,1);
  z-index: 2;
}
[dir="rtl"] .aa-timeline__dot { inset-inline-start: auto; inset-inline-end: -49px; }
.aa-timeline__milestone.is-active .aa-timeline__dot {
  background: var(--terracotta);
  border-color: var(--gold-leaf);
  box-shadow: 0 0 0 4px rgba(196, 162, 75, 0.18);
}
.aa-timeline__milestone.is-current .aa-timeline__dot {
  /* glow ring for the milestone the viewer is currently aligned with */
  box-shadow: 0 0 0 6px rgba(196, 162, 75, 0.22),
              0 0 18px rgba(196, 162, 75, 0.5);
}
.aa-timeline__segment {
  position: absolute;
  inset-inline-start: -41px;
  top: 12px;
  width: 2px;
  height: 100%;
  background: var(--olive-2, #495630);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 800ms cubic-bezier(.65,.05,.36,1);
}
[dir="rtl"] .aa-timeline__segment { inset-inline-start: auto; inset-inline-end: -41px; }
.aa-timeline__milestone.is-active .aa-timeline__segment { transform: scaleY(1); }
.aa-timeline__milestone:last-child .aa-timeline__segment { display: none; }

.aa-timeline__year {
  display: inline-block;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(28px, 3vw, 36px);
  color: var(--terracotta-2, #9E4A2B);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}
.aa-timeline__line {
  font-size: 17px;
  line-height: 1.45;
  color: var(--indigo);
  margin: 0;
  max-width: 48ch;
}

@media (max-width: 600px) {
  .aa-timeline { padding-inline-start: 44px; }
  [dir="rtl"] .aa-timeline { padding-inline-end: 44px; padding-inline-start: 0; }
  .aa-timeline__rail { inset-inline-start: 14px; }
  [dir="rtl"] .aa-timeline__rail { inset-inline-start: auto; inset-inline-end: 14px; }
  .aa-timeline__dot { inset-inline-start: -39px; }
  [dir="rtl"] .aa-timeline__dot { inset-inline-start: auto; inset-inline-end: -39px; }
  .aa-timeline__segment { inset-inline-start: -31px; }
  [dir="rtl"] .aa-timeline__segment { inset-inline-start: auto; inset-inline-end: -31px; }
}

/* ---------------------------------------------------------------------------
   9 · MAGNETIC CTAs
   JS sets --aa-mx / --aa-my (px from button centre) on .aa-magnetic buttons.
   We translate the button by those offsets with a hand-tuned overshoot
   cubic-bezier so the release "settles" with a tiny bounce of character.
   --------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .aa-magnetic {
    --aa-mx: 0;
    --aa-my: 0;
    transform: translate3d(var(--aa-mx, 0), var(--aa-my, 0), 0);
    transition: transform 400ms cubic-bezier(.34, 1.56, .64, 1);
    will-change: transform;
  }
  .aa-magnetic.is-magnetised {
    transition-duration: 200ms;
  }
}

/* ---------------------------------------------------------------------------
   10 · SCROLL-PROGRESS BRUSHSTROKE
   A 2px gold-leaf hairline at the top of the viewport. Its width is driven
   by --aa-scroll (0..1) and clipped through a hand-drawn ragged SVG mask
   so the leading edge has an imperfect, sumi-e quality. Fades out at 100%.
   --------------------------------------------------------------------------- */
.aa-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  pointer-events: none;
  z-index: 60;
  --aa-scroll: 0;
  opacity: 1;
  transition: opacity 320ms cubic-bezier(.22,.61,.36,1);
}
.aa-progress.is-complete { opacity: 0; }
.aa-progress__fill {
  position: absolute;
  inset: 0;
  width: calc(100% * var(--aa-scroll));
  background: linear-gradient(90deg,
                              rgba(196, 162, 75, 0.0) 0%,
                              rgba(196, 162, 75, 0.92) 12%,
                              var(--gold-leaf) 60%,
                              rgba(196, 162, 75, 0.92) 100%);
  transform-origin: left;
  /* The leading edge mask: an SVG with a torn-paper / brushed gradient
     drawn at the right edge. We approximate via a CSS mask gradient with
     irregular stops – effective hand-drawn ragged feel at this scale. */
  -webkit-mask-image: linear-gradient(90deg,
                          #000 0%, #000 80%,
                          rgba(0,0,0,0.86) 85%, rgba(0,0,0,0.62) 90%,
                          rgba(0,0,0,0.32) 95%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(90deg,
                          #000 0%, #000 80%,
                          rgba(0,0,0,0.86) 85%, rgba(0,0,0,0.62) 90%,
                          rgba(0,0,0,0.32) 95%, rgba(0,0,0,0) 100%);
  transition: width 60ms linear;
}
[dir="rtl"] .aa-progress__fill {
  inset-inline-start: auto;
  inset-inline-end: 0;
  -webkit-mask-image: linear-gradient(-90deg,
                          #000 0%, #000 80%,
                          rgba(0,0,0,0.86) 85%, rgba(0,0,0,0.62) 90%,
                          rgba(0,0,0,0.32) 95%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(-90deg,
                          #000 0%, #000 80%,
                          rgba(0,0,0,0.86) 85%, rgba(0,0,0,0.62) 90%,
                          rgba(0,0,0,0.32) 95%, rgba(0,0,0,0) 100%);
}

/* ---------------------------------------------------------------------------
   Misc · small ornamental illustrations dropped into existing copy
   --------------------------------------------------------------------------- */
.aa-eyebrow-illu {
  display: inline-block;
  width: 22px; height: 22px;
  vertical-align: -5px;
  margin-inline-end: 8px;
  color: var(--gold-leaf);
}
.aa-eyebrow-illu svg { width: 100%; height: 100%; display: block; }

/* Hero needs to clip its parallax layers but the existing .hero already
   has overflow:hidden in /css/site.css. We rely on that. */
