/* Asmara Bella — shared motion & polish layer.
   Page transitions, parallax, scroll reveals, hero slideshow and micro-interactions.
   Hidden "before reveal" states only apply under html.ab-live, which motion.js sets,
   so content is never hidden if the script fails to load. */

:root {
  --ab-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ab-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ab-ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ab-gold: #b3934d;
  --ab-gold-hi: #e6c277;
  --ab-brown: #755a1a;
  --ab-ink: #211b12;
  --ab-cream: #fff8f3;
}

/* ---------- Page transitions ---------- */

/* Cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+). */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: ab-vt-out 0.42s var(--ab-ease-io) both; }
::view-transition-new(root) { animation: ab-vt-in 0.75s var(--ab-ease-out) both; }

@keyframes ab-vt-out { to { opacity: 0; transform: scale(0.985); filter: blur(6px); } }
@keyframes ab-vt-in { from { opacity: 0; transform: translateY(28px); } }

/* The nav stays put while the page changes underneath it. */
#ab-nav { view-transition-name: ab-nav; }
::view-transition-group(ab-nav) { animation: none; }
::view-transition-old(ab-nav) { display: none; }
::view-transition-new(ab-nav) { animation: none; }

/* The hero photograph morphs from one page's hero into the next. */
.ab-home-hero,
body > section:first-of-type[style*="url("],
body > section:first-of-type[data-bgslot],
.os-hero, .ev-hero, .cc-hero, .ab-is-hero, .ab-hero-photo {
  view-transition-name: ab-hero;
}
::view-transition-group(ab-hero) { animation-duration: 0.85s; animation-timing-function: var(--ab-ease-out); overflow: clip; }
::view-transition-old(ab-hero),
::view-transition-new(ab-hero) { height: 100%; object-fit: cover; animation-duration: 0.85s; }

/* Fallback for browsers without cross-document transitions. */
html.ab-no-vt body { animation: ab-page-in 0.7s var(--ab-ease-out) both; }
html.ab-no-vt.ab-leaving body { opacity: 0; transition: opacity 0.32s var(--ab-ease-io); }
@keyframes ab-page-in { from { opacity: 0; } }

/* ---------- Scroll progress + nav ---------- */

#ab-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000001;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ab-brown), var(--ab-gold-hi) 60%, #fff3cf);
  transform-origin: 0 50%;
  transform: scaleX(var(--ab-progress, 0));
  box-shadow: 0 0 12px rgba(230, 194, 119, 0.6);
}

#ab-nav {
  transition: transform 0.5s var(--ab-ease-out), background-color 0.35s, box-shadow 0.35s, border-color 0.35s;
}
#ab-nav.ab-scrolled {
  background: rgba(255, 248, 243, 0.82);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom-color: rgba(179, 147, 77, 0.35);
  box-shadow: 0 10px 40px rgba(33, 27, 18, 0.1);
}
#ab-nav.ab-nav-hidden { transform: translateY(-105%); }
#ab-bar { transition: height 0.4s var(--ab-ease-out); }
#ab-nav.ab-scrolled #ab-bar { height: 58px; }

/* Animated underline on top-level links. */
.ab-lnk, .ab-btn { position: relative; }
.ab-lnk::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1.5px;
  background: var(--ab-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ab-ease-out);
}
.ab-lnk:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Reveal on scroll ---------- */

html.ab-live [data-reveal] {
  transition:
    opacity 0.9s var(--ab-ease-out),
    transform 1.1s var(--ab-ease-out),
    clip-path 1.35s var(--ab-ease-io),
    filter 0.9s var(--ab-ease-out);
  transition-delay: var(--ab-delay, 0ms);
}
html.ab-live [data-reveal]:not(.is-in) { opacity: 0; }
html.ab-live [data-reveal="up"]:not(.is-in) { transform: translate3d(0, 46px, 0); }
html.ab-live [data-reveal="left"]:not(.is-in) { transform: translate3d(-56px, 0, 0); }
html.ab-live [data-reveal="right"]:not(.is-in) { transform: translate3d(56px, 0, 0); }
html.ab-live [data-reveal="zoom"]:not(.is-in) { transform: scale(0.9); }
html.ab-live [data-reveal="blur"]:not(.is-in) { transform: translate3d(0, 24px, 0); filter: blur(14px); }

/* Image wipe: the photo is uncovered bottom-up while settling from a slight zoom. */
html.ab-live [data-reveal="wipe"]:not(.is-in) { opacity: 1; clip-path: inset(100% 0 0 0); transform: scale(1.14); }
html.ab-live [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
html.ab-live [data-reveal="wipe"] { transition-duration: 0.6s, 1.7s, 1.35s, 0.6s; }

/* Ornamental lines draw themselves in. */
html.ab-live [data-reveal="line"]:not(.is-in) { opacity: 1; transform: scaleX(0); }

/* Headings rise word by word from behind a mask. */
html.ab-live [data-reveal="split"]:not(.is-in) { opacity: 1; }
.ab-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  overflow-wrap: normal;
}
.ab-wi { display: inline-block; overflow-wrap: normal; }
html.ab-live [data-reveal="split"] .ab-wi {
  transition: transform 1.05s var(--ab-ease-out), opacity 0.8s var(--ab-ease-out);
  transition-delay: calc(var(--ab-delay, 0ms) + var(--i, 0) * 55ms);
}
html.ab-live [data-reveal="split"]:not(.is-in) .ab-wi { transform: translate3d(0, 108%, 0) rotate(3deg); opacity: 0; }

/* ---------- Inner-page heroes ---------- */

/* Text in the first hero of each page rises in on load (pure CSS, no flash). */
body > section:first-of-type:not(.ab-home-hero) :is(h1, h1 ~ *, :has(~ h1)) {
  animation: ab-rise 1.1s var(--ab-ease-out) both;
}
body > section:first-of-type:not(.ab-home-hero) :is(h1, h1 ~ *, :has(~ h1)):nth-child(2) { animation-delay: 0.12s; }
body > section:first-of-type:not(.ab-home-hero) :is(h1, h1 ~ *, :has(~ h1)):nth-child(3) { animation-delay: 0.24s; }
body > section:first-of-type:not(.ab-home-hero) :is(h1, h1 ~ *, :has(~ h1)):nth-child(4) { animation-delay: 0.36s; }
body > section:first-of-type:not(.ab-home-hero) :is(h1, h1 ~ *, :has(~ h1)):nth-child(n + 5) { animation-delay: 0.48s; }

@keyframes ab-rise { from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); } }

/* Parallax background layer built by motion.js from a section's own background. */
.ab-plx-host { position: relative; overflow: hidden; isolation: isolate; }
.ab-plx-layer {
  position: absolute;
  inset: -16% 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  pointer-events: none;
}
[data-parallax-img] { will-change: transform; }
.ab-hero-fg { will-change: transform, opacity; }

/* Slow cinematic drift on inner-page hero photos. */
.ab-plx-host.ab-is-hero .ab-plx-layer { inset: 0; animation: ab-hero-settle 2.2s var(--ab-ease-out) both; }
@keyframes ab-hero-settle { from { filter: brightness(0.6) saturate(0.8); } }

/* ---------- Homepage hero slideshow ---------- */

.ab-home-hero {
  position: relative;
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ab-ink);
  color: #fff;
}
.ab-hero-slides { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.ab-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.ab-slide > i {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: var(--pos, center);
  background-repeat: no-repeat;
  transform-origin: var(--origin, 50% 50%);
}
.ab-slide.is-active { z-index: 2; opacity: 1; visibility: visible; }
.ab-slide.is-leaving { z-index: 1; opacity: 1; visibility: visible; }

/* Ken Burns: the same declaration on active + leaving so the zoom never restarts mid-crossfade. */
.ab-slide.is-active > i,
.ab-slide.is-leaving > i { animation: ab-kb 11s linear both; }
.ab-slide:nth-child(even).is-active > i,
.ab-slide:nth-child(even).is-leaving > i { animation-name: ab-kb-alt; }
@keyframes ab-kb { from { transform: scale(1.18) translate3d(-1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes ab-kb-alt { from { transform: scale(1.02) translate3d(1%, 0, 0); } to { transform: scale(1.16) translate3d(-1%, -1.5%, 0); } }

/* Four alternating picture transitions. */
.ab-slide.is-active.fx-fade { animation: ab-fx-fade 1.8s var(--ab-ease-io) both; }
.ab-slide.is-active.fx-wipe { animation: ab-fx-wipe 1.6s var(--ab-ease-io) both; }
.ab-slide.is-active.fx-iris { animation: ab-fx-iris 1.9s var(--ab-ease-io) both; }
.ab-slide.is-active.fx-diag { animation: ab-fx-diag 1.7s var(--ab-ease-io) both; }
@keyframes ab-fx-fade { from { opacity: 0; filter: blur(14px) brightness(1.3); } }
@keyframes ab-fx-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes ab-fx-iris { from { clip-path: circle(0% at 50% 55%); } to { clip-path: circle(75% at 50% 55%); } }
@keyframes ab-fx-diag {
  from { clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%); }
  to { clip-path: polygon(0 0, 125% 0, 100% 100%, -25% 100%); }
}
/* A thin gold edge rides the wipe. */
.ab-slide.is-active.fx-wipe::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(transparent, var(--ab-gold-hi), transparent);
  box-shadow: 0 0 24px 4px rgba(230, 194, 119, 0.55);
  animation: ab-fx-edge 1.6s var(--ab-ease-io) both;
}
@keyframes ab-fx-edge { from { left: 100%; opacity: 1; } 90% { opacity: 1; } to { left: 0; opacity: 0; } }

.ab-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 48%, rgba(20, 12, 4, 0.3), rgba(20, 12, 4, 0.72) 100%),
    linear-gradient(180deg, rgba(20, 12, 4, 0.45) 0%, rgba(20, 12, 4, 0.25) 40%, rgba(20, 12, 4, 0.82) 100%);
}
/* Fine film grain for a printed, editorial feel. */
.ab-hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ab-hero-content { position: relative; max-width: 900px; padding: 72px 24px 120px; }
.ab-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ab-gold-hi);
  animation: ab-eyebrow 1.6s var(--ab-ease-out) 0.1s both;
}
.ab-hero-eyebrow::before,
.ab-hero-eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  animation: ab-grow 1.4s var(--ab-ease-out) 0.5s both;
}
@keyframes ab-eyebrow { from { opacity: 0; letter-spacing: 0.7em; } }
@keyframes ab-grow { from { transform: scaleX(0); } }

.ab-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 7.2vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 22px;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}
.ab-hero-title em { font-style: italic; font-weight: 600; color: var(--ab-gold-hi); }
.ab-hero-title .ab-wi { animation: ab-word 1.25s var(--ab-ease-out) both; animation-delay: calc(0.35s + var(--i, 0) * 0.09s); }
@keyframes ab-word { from { transform: translate3d(0, 110%, 0) rotate(4deg); opacity: 0; } }

.ab-hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #f0e6d3;
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.7;
  animation: ab-rise 1.2s var(--ab-ease-out) 0.95s both;
}
.ab-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: ab-rise 1.2s var(--ab-ease-out) 1.1s both; }
.ab-hero-badges {
  margin-top: 30px;
  display: flex;
  gap: 10px 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #e6d8c4;
  letter-spacing: 0.03em;
  animation: ab-rise 1.2s var(--ab-ease-out) 1.25s both;
}
.ab-hero-badges span + span::before { content: "\2022"; margin-right: 18px; opacity: 0.45; }

.ab-hbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.45s var(--ab-ease-out), box-shadow 0.45s var(--ab-ease-out), background-color 0.3s, border-color 0.3s;
}
.ab-hbtn--solid { background: linear-gradient(135deg, #8a6a22, var(--ab-brown)); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.ab-hbtn--glass {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.ab-hbtn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.ab-hbtn--glass:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.ab-hbtn svg { transition: transform 0.4s var(--ab-ease-out); }
.ab-hbtn:hover svg { transform: translateX(4px); }

.ab-hero-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  animation: ab-rise 1.2s var(--ab-ease-out) 1.5s both;
}
.ab-hero-caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #f0e6d3;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: left;
  min-height: 24px;
  overflow: hidden;
}
.ab-hero-caption b { font-family: "Playfair Display", serif; font-size: 22px; color: var(--ab-gold-hi); font-weight: 600; letter-spacing: 0; }
.ab-hero-caption span { display: inline-block; transition: transform 0.7s var(--ab-ease-out), opacity 0.5s; }
.ab-hero-caption.is-swapping span { transform: translateY(110%); opacity: 0; transition-duration: 0.35s; }
.ab-hero-dots { display: flex; gap: 8px; }
.ab-hero-dot {
  position: relative;
  width: 44px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ab-hero-dot::before,
.ab-hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.ab-hero-dot::after { background: var(--ab-gold-hi); transform: scaleX(0); transform-origin: left; }
.ab-hero-dot.is-active::after { animation: ab-dot var(--ab-slide-ms, 6500ms) linear both; }
.ab-home-hero.is-paused .ab-hero-dot.is-active::after { animation-play-state: paused; }
.ab-hero-dot:focus-visible { outline: 2px solid var(--ab-gold-hi); outline-offset: 3px; }
@keyframes ab-dot { to { transform: scaleX(1); } }

.ab-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.ab-scroll-cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgba(255, 255, 255, 0.25); }
.ab-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 1px;
  height: 50%;
  background: var(--ab-gold-hi);
  animation: ab-cue 2.2s var(--ab-ease-io) infinite;
}
@keyframes ab-cue { to { top: 100%; } }

@media (max-width: 760px) {
  .ab-hero-content { padding: 56px 18px 170px; }
  /* Sit above the floating chat button. */
  .ab-hero-ui { flex-direction: column; align-items: center; gap: 10px; padding: 0 18px; bottom: 92px; }
  .ab-hero-badges { gap: 6px 14px; }
  .ab-hero-badges span + span::before { content: none; }
  .ab-hero-caption { justify-content: center; }
  .ab-scroll-cue { display: none; }
  .ab-hbtn { padding: 13px 22px; font-size: 14px; }
  .ab-hero-eyebrow { font-size: 11px; letter-spacing: 0.2em; }
  .ab-hero-eyebrow::before, .ab-hero-eyebrow::after { width: 22px; }
}

/* ---------- Marquee band ---------- */

.ab-marquee {
  position: relative;
  overflow: hidden;
  background: var(--ab-ink);
  color: #f0e6d3;
  padding: 18px 0;
  border-top: 1px solid rgba(179, 147, 77, 0.35);
  border-bottom: 1px solid rgba(179, 147, 77, 0.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ab-marquee-track { display: flex; width: max-content; animation: ab-marquee 38s linear infinite; }
.ab-marquee:hover .ab-marquee-track { animation-play-state: paused; }
.ab-marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap; }
.ab-marquee-group span { font-family: "Playfair Display", serif; font-size: 19px; font-style: italic; letter-spacing: 0.01em; overflow-wrap: normal; }
.ab-marquee-group i { font-style: normal; color: var(--ab-gold); font-size: 13px; }
@keyframes ab-marquee { to { transform: translateX(-50%); } }

/* ---------- Micro-interactions ---------- */

/* Cursor-following gold spotlight on cards. */
.ab-spot { position: relative; isolation: isolate; }
.ab-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 194, 119, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.ab-spot:hover::before { opacity: 1; }
.ab-lift { transition: transform 0.55s var(--ab-ease-out), box-shadow 0.55s var(--ab-ease-out), border-color 0.3s; }
.ab-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(117, 90, 26, 0.16); }

/* A light sheen sweeps across solid buttons on hover. */
.ab-shine { position: relative; overflow: hidden; isolation: isolate; }
.ab-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  z-index: 1;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ab-ease-out);
}
.ab-shine:hover::after { left: 130%; }

/* Image frames: slow, deep zoom on hover. */
.ab-zoom { overflow: hidden; }
.ab-zoom img { transition: transform 1.4s var(--ab-ease-out), filter 0.8s; }
.ab-zoom:hover img { transform: scale(1.08); filter: saturate(1.08); }

/* Gallery tiles get a caption that slides up on hover. */
.ab-gal-tile .ab-gal-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ab-ease-out), opacity 0.4s;
}
.ab-gal-tile:hover .ab-gal-cap,
.ab-gal-tile:focus-visible .ab-gal-cap { transform: none; opacity: 1; }
.ab-gal-tile::after { background: linear-gradient(transparent 40%, rgba(20, 12, 4, 0.62)) !important; }

/* Back to top, with a ring that fills as you read. */
#ab-totop {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99990;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 243, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ab-brown);
  box-shadow: 0 10px 30px rgba(33, 27, 18, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.5s var(--ab-ease-back);
}
#ab-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
#ab-totop:hover { transform: translateY(-3px); }
#ab-totop svg.ab-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
#ab-totop .ab-ring circle { fill: none; stroke-width: 2; }
#ab-totop .ab-ring .bg { stroke: rgba(179, 147, 77, 0.22); }
#ab-totop .ab-ring .fg { stroke: var(--ab-gold); stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: calc(144.5 * (1 - var(--ab-progress, 0))); }
#ab-totop:focus-visible { outline: 3px solid rgba(117, 90, 26, 0.45); outline-offset: 3px; }

/* Lightbox: images bloom in rather than popping. */
#ab-lb { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#ab-lb.open { animation: ab-lb-bg 0.45s var(--ab-ease-out) both; }
#ab-lb.open img { animation: ab-lb-img 0.7s var(--ab-ease-out) both; }
@keyframes ab-lb-bg { from { opacity: 0; } }
@keyframes ab-lb-img { from { opacity: 0; transform: scale(0.9) translateY(18px); filter: blur(8px); } }

/* Mega-menu panels: soften the reveal. */
.ab-panel .ab-row { transition: transform 0.35s var(--ab-ease-out), background-color 0.2s; }
.ab-panel .ab-row:hover { transform: translateX(4px); }

/* Smooth focus for form fields site-wide. */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  transition: border-color 0.25s, box-shadow 0.35s var(--ab-ease-out);
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px rgba(179, 147, 77, 0.18);
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.ab-live [data-reveal],
  html.ab-live [data-reveal] .ab-wi {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
  }
  .ab-home-hero *, .ab-home-hero *::before, .ab-home-hero *::after,
  body > section:first-of-type *,
  .ab-marquee-track, .ab-plx-layer, html.ab-no-vt body {
    animation: none !important;
  }
  .ab-slide { transition: opacity 0.01s; }
  #ab-nav.ab-nav-hidden { transform: none; }
  .ab-shine::after { display: none; }
}

@media print {
  html.ab-live [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  #ab-progress, #ab-totop, .ab-scroll-cue, .ab-hero-ui { display: none !important; }
}
