/* ==========================================================================
   ASTRO ANUGRAHAM - "ALMANAC" LANDING DESIGN SYSTEM  (v2)
   --------------------------------------------------------------------------
   An original, self-contained front-end system for the landing page only.
   Loaded exclusively by home/includes/landing-header.php + landing-footer.php
   so no other page and no admin theme is affected.

   Language:  editorial almanac. Hairline lattice grid, square corners,
              mono index labels, high-contrast serif display, deep indigo
              "night" bands alternating with warm paper.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Ink - all primary copy is near-black for maximum readability */
  --ink:        #14141f;
  --ink-2:      #34344a;
  --ink-3:      #55556b;

  /* Light surfaces */
  --paper:      #ffffff;
  --canvas:     #f5f3ee;
  --canvas-2:   #ebe7de;
  --line:       #d8d2c6;
  --line-2:     #c3bcac;

  /* Night surfaces */
  --night:      #111129;
  --night-2:    #191937;
  --night-3:    #23234a;
  --night-line: #34345f;
  --sand:       #e9e3d6;
  --sand-2:     #bfb8a6;

  /* Action */
  --jade:       #0e6f57;
  --jade-700:   #0a5642;
  --jade-300:   #52d0a7;

  --focus:      #2f6bff;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans:    "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r:    2px;   /* the system is square: 2px max */
  --r-lg: 3px;

  --gut: 20px;
  --max: 1280px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --sec: 72px;   /* vertical section rhythm (mobile) */
}
@media (min-width: 768px)  { :root { --gut: 32px; --sec: 96px; } }
@media (min-width: 1200px) { :root { --gut: 40px; --sec: 120px; } }

/* ----------------------------------------------------------- 2. FOUNDATION */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.av-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 450;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.av-body.is-locked { overflow: hidden; }

/* Element resets use `.av :where(el)` — specificity (0,1,0). High enough to
   beat Bootstrap's reboot (element selectors), low enough that every
   component class declared below can still override it. */
.av :where(img) { max-width: 100%; height: auto; display: block; }
.av img.av-img--failed { visibility: hidden; }
.av :where(a) { color: inherit; text-decoration: none; }
.av :where(p) { margin: 0 0 1em; }
.av :where(p:last-child) { margin-bottom: 0; }
.av :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-weight: 600; }
.av :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.av :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.av :where(hr) { border: 0; border-top: 1px solid var(--line); margin: 0; }
.av :where(blockquote, figure) { margin: 0; }

.av :focus-visible,
body.av-body :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r);
}

.av-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
  font: 600 14px/1 var(--font-sans);
}
.av-skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------- 3. LAYOUT */
.av-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.av-wrap--wide { max-width: 1480px; }

.av-section { padding-block: var(--sec); position: relative; }
.av-section--tight { padding-block: calc(var(--sec) * 0.66); }
.av-section--paper  { background: var(--paper); }
.av-section--canvas { background: var(--canvas); }
.av-section--night  { background: var(--night); color: var(--sand); }

.av-rule { height: 1px; background: var(--line); }
.av-section--night .av-rule { background: var(--night-line); }

/* -------------------------------------------------------- 4. TYPE SCALE */
.av-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 42;
}
.av-d1 { font-size: clamp(2.15rem, 5.1vw, 3.85rem); }
.av-d2 { font-size: clamp(1.85rem, 3.9vw, 2.9rem); }
.av-d3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; }
.av-d4 { font-size: clamp(1.18rem, 1.7vw, 1.45rem); line-height: 1.2; }

.av-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.av-label::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }
.av-label--plain::before { display: none; }
.av-section--night .av-label,
.av-hero .av-label { color: var(--sand-2); }

.av-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.av-section--night .av-num { color: var(--sand-2); }

.av-lead { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--ink-2); max-width: 62ch; }
.av-section--night .av-lead { color: var(--sand); }

.av-head { display: grid; gap: var(--s-5); align-items: end; margin-bottom: var(--s-7); }
@media (min-width: 900px) { .av-head { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } }
.av-head__title { margin-top: 14px; }
.av-head__sub { margin-top: 14px; }

/* ------------------------------------------------------------ 5. BUTTONS */
.av-btn {
  --btn-bg: var(--jade);
  --btn-fg: #fff;
  --btn-bd: var(--jade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.av-btn:hover { --btn-bg: var(--jade-700); --btn-bd: var(--jade-700); transform: translateY(-1px); }
.av-btn svg { flex: none; }

.av-btn--ink       { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.av-btn--ink:hover { --btn-bg: #000; --btn-bd: #000; }

.av-btn--ghost       { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.av-btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }

.av-btn--onnight       { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(233,227,214,.5); }
.av-btn--onnight:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.av-btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.av-btn--block { width: 100%; }

.av-alink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.av-alink:hover { gap: 16px; color: var(--jade); border-bottom-color: var(--jade); }
.av-alink svg { flex: none; }
.av-section--night .av-alink { color: #fff; border-bottom-color: rgba(233,227,214,.55); }
.av-section--night .av-alink:hover { color: var(--jade-300); border-bottom-color: var(--jade-300); }

/* ------------------------------------------------------------- 6. HEADER */
.av-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.av-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 28px -24px rgba(20,20,31,.6); }

.av-header__bar { display: flex; align-items: center; gap: var(--s-5); height: 72px; }
@media (min-width: 1024px) { .av-header__bar { height: 84px; } }

.av-brand { display: flex; align-items: center; gap: 12px; flex: none; margin-right: auto; }
.av .av-brand__mark { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
@media (min-width: 1024px) { .av .av-brand__mark { height: 46px; max-width: 230px; } }
.av-brand__word {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
  color: var(--ink);
}
.av-brand__word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.av-nav { display: none; }
@media (min-width: 1024px) { .av-nav { display: flex; align-items: center; gap: 4px; } }
.av-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  border-radius: var(--r);
  position: relative;
}
.av-nav__link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--jade);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.av-nav__link:hover::after,
.av-nav__item.is-open > .av-nav__link::after,
.av-nav__link.is-current::after { transform: scaleX(1); }
.av-nav__link.is-current { color: var(--jade); }

.av-nav__item { position: relative; }
.av-nav__caret { transition: transform .22s ease; }
.av-nav__item.is-open .av-nav__caret { transform: rotate(180deg); }

.av-mega {
  position: absolute;
  top: calc(100% + 1px);
  left: -12px;
  width: 520px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--s-5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 18px 18px 0 -6px rgba(20,20,31,.08);
}
.av-nav__item.is-open .av-mega { opacity: 1; visibility: visible; transform: none; }
.av-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.av-mega__link {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 12px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid transparent;
}
.av-mega__link span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.av-mega__link:hover { background: var(--canvas); border-color: var(--line); }
.av-mega__foot { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }

.av-header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.av-phone { display: none; }
@media (min-width: 1200px) {
  .av-phone {
    display: flex; flex-direction: column; line-height: 1.15;
    padding-right: var(--s-4);
    border-right: 1px solid var(--line);
    margin-right: var(--s-2);
  }
  .av-phone small {
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-3);
  }
  .av-phone strong { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--ink); }
}
.av-header__cta { display: none; }
@media (min-width: 620px) { .av-header__cta { display: inline-flex; } }

.av-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 0 12px;
  flex: none;
}
@media (min-width: 1024px) { .av-burger { display: none; } }
.av-burger i { display: block; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.av-burger i:nth-child(2) { width: 70%; }

/* ------------------------------------------------------------- 7. DRAWER */
.av-drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.av-drawer__veil {
  position: absolute; inset: 0;
  background: rgba(17,17,41,.55);
  opacity: 0; transition: opacity .3s ease;
}
.av-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.av-drawer.is-open { pointer-events: auto; }
.av-drawer.is-open .av-drawer__veil { opacity: 1; }
.av-drawer.is-open .av-drawer__panel { transform: none; }

.av-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.av-drawer__close {
  width: 44px; height: 44px;
  border: 1px solid var(--ink); border-radius: var(--r);
  display: grid; place-items: center;
}
.av-drawer__body { padding: var(--s-5); flex: 1; }
.av-drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
  text-align: left;
}
.av-drawer__link .av-num { font-family: var(--font-mono); font-size: 11px; }
.av-drawer__sub { display: none; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.av-drawer__sub.is-open { display: block; }
.av-drawer__sub a {
  display: block; padding: 9px 0 9px 18px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  border-left: 2px solid var(--line);
}
.av-drawer__sub a:hover { color: var(--jade); border-left-color: var(--jade); }
.av-drawer__meta { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 2px solid var(--ink); }
.av-drawer__meta a { display: block; font-size: 15px; font-weight: 600; padding: 6px 0; }
.av-drawer__meta .av-label { margin-bottom: 10px; }
.av-drawer__apps { display: grid; gap: 10px; margin-top: var(--s-5); }

/* ---------------------------------------------------------------- 8. HERO */
.av-hero {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--night-line);
}
/* CMS-managed hero photograph (site_settings.slider_bg_image), heavily
   scrimmed so headline contrast stays above 10:1 */
.av-hero__bg { position: absolute; inset: 0; z-index: 0; }
.av-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.av-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--night) 2%, rgba(17,17,41,.94) 34%, rgba(17,17,41,.5) 100%),
    linear-gradient(180deg, rgba(17,17,41,.5), rgba(17,17,41,.14) 45%, rgba(17,17,41,.78));
}
@media (max-width: 1023px) {
  .av-hero__bg::after { background: linear-gradient(180deg, rgba(17,17,41,.88), rgba(17,17,41,.94)); }
}

.av-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 12%, rgba(255,255,255,.40) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 78%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 44%, rgba(255,255,255,.30) 50%, transparent 51%),
    radial-gradient(1200px 520px at 78% -10%, rgba(82,208,167,.16), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, 96px 100%;
  pointer-events: none;
}
.av-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--s-7);
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
@media (min-width: 1024px) {
  .av-hero__inner {
    grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
    gap: var(--s-9);
    align-items: center;
  }
}

.av-hero__stage { position: relative; }
.av-slide { display: none; animation: avFade .6s ease both; }
.av-slide.is-active { display: block; }
@keyframes avFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .av-slide { animation: none; } }

.av-hero__eyebrow { color: var(--jade-300); margin-bottom: var(--s-4); }
.av-hero__eyebrow::before { background: var(--jade-300); opacity: 1; }
.av-hero__title { color: #fff; }
.av-hero__text { margin-top: var(--s-5); color: var(--sand); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 56ch; }
.av-hero__note { margin-top: var(--s-3); color: var(--sand-2); font-size: 15px; max-width: 56ch; }
.av-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.av-hero__ticks { display: flex; gap: 10px; margin-top: var(--s-7); flex-wrap: wrap; }
.av-tick {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em;
  color: var(--sand-2);
  padding-top: 10px;
  border-top: 2px solid var(--night-line);
  min-width: 52px;
  text-align: left;
  transition: color .2s ease, border-color .2s ease;
}
.av-tick:hover { color: #fff; border-top-color: var(--sand-2); }
.av-tick.is-active { color: #fff; border-top-color: var(--jade-300); }

/* right-hand column: portrait plate + compact stat grid */
.av-hero__aside { display: grid; gap: var(--s-4); align-content: start; }

.av-plate {
  position: relative;
  border: 1px solid var(--night-line);
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(82,208,167,.16), transparent 62%),
    linear-gradient(180deg, var(--night-3), var(--night-2) 58%, var(--night));
  aspect-ratio: 5 / 5.8;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.av-plate__ring {
  position: absolute; left: 50%; top: 11%;
  width: 72%; aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(233,227,214,.20);
  border-radius: 50%;
}
.av-plate__ring::after {
  content: "";
  position: absolute; inset: 11%;
  border: 1px solid rgba(82,208,167,.24);
  border-radius: 50%;
}
.av-plate .av-plate__img {
  position: relative; z-index: 1;
  width: auto; max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.45));
}
.av-plate__tag {
  position: absolute; top: var(--s-4); left: var(--s-4); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(233,227,214,.32);
  background: rgba(17,17,41,.6);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
}
.av-plate__tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jade-300);
  font-style: normal; flex: none;
}

/* below the two-column breakpoint the plate would otherwise scale with the
   full content width and make the hero several screens tall */
@media (max-width: 1023px) {
  .av-hero__aside { width: 100%; max-width: 400px; margin-inline: auto; }
  .av-plate { aspect-ratio: 5 / 5.2; }
  .av-trust__cell { padding: var(--s-3) var(--s-4); }
  .av-trust__top { padding: var(--s-3) var(--s-4); }
}
@media (max-width: 639px) {
  .av-hero__aside { max-width: 340px; }
  .av-plate { aspect-ratio: 5 / 4.2; }
}

.av-trust {
  border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.av-trust__top { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--night-line); }
.av-trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--night-line);
}
.av-trust__cell { background: var(--night); padding: var(--s-4) var(--s-5); }
.av-trust__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 600; line-height: 1; letter-spacing: -.03em;
  color: #fff;
}
.av-trust__n i { font-style: normal; color: var(--jade-300); }
.av-trust__t { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--sand); }

/* ------------------------------------------------- 9. MODES (4-up rules) */
.av-modes { display: grid; }
@media (min-width: 560px) { .av-modes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .av-modes { grid-template-columns: repeat(4, 1fr); } }

.av-mode {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  transition: background .25s ease;
}
.av-modes .av-mode:last-child { border-right: 1px solid var(--line); }
@media (max-width: 559px) { .av-mode { border-right: 1px solid var(--line); } }
@media (min-width: 560px) and (max-width: 991px) {
  .av-modes .av-mode:nth-child(2n) { border-right: 1px solid var(--line); }
}
.av-mode:hover { background: var(--canvas); }
.av-mode__ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
}
.av-mode__body { display: block; min-width: 0; }
.av-mode__ttl { display: block; font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.av-mode__txt { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

/* ------------------------------------------------------------ 10. RAILS */
.av-rail { position: relative; }
.av-rail__track {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--s-4);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.av-rail__track::-webkit-scrollbar { display: none; }
.av-rail__track > * { scroll-snap-align: start; flex: none; }

.av-rail__nav { display: flex; gap: 8px; }
.av-rail__btn {
  width: 46px; height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  display: grid; place-items: center;
  color: var(--ink);
  background: transparent;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.av-rail__btn:hover { background: var(--ink); color: #fff; }
.av-rail__btn[disabled] { opacity: .25; pointer-events: none; }
.av-section--night .av-rail__btn { border-color: var(--night-line); color: #fff; }
.av-section--night .av-rail__btn:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------- 11. EXPERT CARD */
.av-expert {
  width: 248px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .22s ease, transform .22s ease;
  display: flex; flex-direction: column;
}
.av-expert:hover { border-color: var(--ink); transform: translateY(-3px); }
.av-expert__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--canvas-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.av-expert__media img { width: 100%; height: 100%; object-fit: cover; }
.av-expert__badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 8px;
}
.av-expert__badge--live { background: var(--jade); }
.av-expert__body { padding: var(--s-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.av-expert__name {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink);
}
.av-expert__meta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.av-expert__foot {
  margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; color: var(--jade);
}

/* -------------------------------------------------- 12. SERVICE INDEX */
.av-index { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .av-index { grid-template-columns: minmax(320px, 1fr) minmax(0, 1.72fr); gap: var(--s-8); align-items: start; }
  .av-index__aside { position: sticky; top: 118px; }
}
.av-index__list { border-top: 1px solid var(--line); }

.av-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left .25s ease;
}
@media (min-width: 640px) { .av-row { gap: var(--s-6); padding-block: var(--s-6); } }
.av-row::before {
  content: "";
  position: absolute; inset: 0 -20px;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.av-row:hover::before { transform: scaleY(1); }
.av-row > * { position: relative; z-index: 1; }
.av-row:hover { padding-left: 20px; }
.av-row:hover .av-row__n,
.av-row:hover .av-row__desc { color: var(--sand-2); }
.av-row:hover .av-row__ttl { color: #fff; }
.av-row:hover .av-row__go { background: var(--jade); border-color: var(--jade); color: #fff; }
.av-row:hover .av-row__thumb { border-color: var(--night-line); }

.av-row__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); transition: color .25s ease; }
.av-row__main { display: block; min-width: 0; }
.av-row__ttl {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.1vw, 1.75rem);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.12;
  color: var(--ink); transition: color .25s ease;
}
.av-row__desc { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); transition: color .25s ease; max-width: 60ch; }
.av-row__side { display: flex; align-items: center; gap: var(--s-4); flex: none; }
.av-row__thumb {
  display: none;
  width: 66px; height: 66px;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  overflow: hidden;
  transition: border-color .25s ease;
}
@media (min-width: 860px) { .av-row__thumb { display: block; } }
.av-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.av-row__go {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

/* ------------------------------------------------------- 13. FOCUS BAND */
.av-focus { display: grid; }
@media (min-width: 768px) { .av-focus { grid-template-columns: repeat(3, 1fr); } }
.av-focus__item { padding: var(--s-6) 0; border-top: 1px solid var(--night-line); }
@media (min-width: 768px) {
  .av-focus__item { padding: var(--s-6); border-top: 0; border-left: 1px solid var(--night-line); }
  .av-focus__item:first-child { padding-left: 0; border-left: 0; }
  .av-focus__item:last-child { padding-right: 0; }
}
.av-focus__n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600; line-height: 1; letter-spacing: -.035em;
  color: var(--jade-300);
}
.av-focus__t { margin-top: var(--s-3); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.av-focus__s { margin-top: 6px; font-size: 14px; color: var(--sand); }

/* ---------------------------------------------------------- 14. POOJA */
.av-mosaic { display: grid; gap: var(--s-4); }
@media (min-width: 700px)  { .av-mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .av-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; } }

.av-tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px;
  padding: var(--s-5);
  background: var(--night-2);
  border: 1px solid var(--line);
  overflow: hidden;
  color: #fff;
}
@media (min-width: 1024px) {
  .av-tile { min-height: 0; }
  .av-tile--feature { grid-column: span 2; grid-row: span 2; padding: var(--s-7); }
}
.av-tile__bg { position: absolute; inset: 0; }
.av-tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.av-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,41,.15) 0%, rgba(17,17,41,.72) 55%, rgba(17,17,41,.94) 100%);
}
.av-tile > *:not(.av-tile__bg) { position: relative; z-index: 2; }
.av-tile:hover .av-tile__bg img { transform: scale(1.06); }
.av-tile .av-tile__n {
  position: absolute; top: var(--s-5); left: var(--s-5); z-index: 2;
  width: auto;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.4);
  padding: 4px 8px;
}
.av-tile__ttl { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.av-tile--feature .av-tile__ttl { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.av-tile__txt { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.9); max-width: 46ch; }
.av-tile__go {
  margin-top: var(--s-4);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  border-bottom: 2px solid rgba(255,255,255,.5);
  padding-bottom: 3px;
  transition: gap .2s ease, border-color .2s ease;
}
.av-tile:hover .av-tile__go { gap: 14px; border-bottom-color: var(--jade-300); }

/* ---------------------------------------------------------- 15. ABOUT */
.av-about { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .av-about { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: var(--s-9); } }
.av-about__frame { position: relative; }
.av-about__frame::before {
  content: "";
  position: absolute; inset: -18px -18px 18px 18px;
  border: 1px solid var(--night-line);
  pointer-events: none;
}
.av-about__img {
  position: relative;
  aspect-ratio: 4 / 3.2;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  overflow: hidden;
}
.av-about__img img { width: 100%; height: 100%; object-fit: cover; }
.av-about__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: var(--s-6);
  background: var(--night-line);
  border: 1px solid var(--night-line);
}
.av-about__fact { background: var(--night); padding: var(--s-4); }
.av-about__fact b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.av-about__fact span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-2); }

/* ------------------------------------------------------- 16. WHY LATTICE */
.av-lattice {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px)  { .av-lattice { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .av-lattice { grid-template-columns: repeat(4, 1fr); } }
.av-cell {
  background: var(--paper);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
  min-height: 168px;
  transition: background .22s ease;
}
.av-cell:hover { background: var(--canvas); }
/* The choose_us glyphs are white-filled SVGs uploaded for the previous dark
   theme, so the tile has to be dark for them to read. `contain` + padding
   keeps the whole glyph visible instead of cropping it. */
.av-cell__ico {
  width: 52px; height: 52px;
  border: 1px solid var(--ink);
  background: var(--ink);
  display: grid; place-items: center;
  padding: 12px;
  overflow: hidden;
  flex: none;
  color: #fff;
  transition: background .22s ease, border-color .22s ease;
}
.av-cell__ico img { width: 100%; height: 100%; object-fit: contain; }
.av-cell:hover .av-cell__ico { background: var(--jade); border-color: var(--jade); }
.av-cell__t { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin-top: auto; }
.av-cell__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); }

/* ------------------------------------------------------------- 17. APP */
.av-app { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .av-app { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s-8); } }
.av-shots { display: flex; gap: var(--s-4); overflow-x: auto; padding-bottom: var(--s-3); scrollbar-width: none; }
.av-shots::-webkit-scrollbar { display: none; }
.av-shot {
  flex: none;
  width: 190px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  overflow: hidden;
  border-radius: 6px;
}
@media (min-width: 768px) { .av-shot { width: 216px; } }
.av-shot img { width: 100%; height: 100%; object-fit: cover; }
.av-store { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------------------------------------------------------- 18. JOURNAL */
.av-journal { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .av-journal { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: var(--s-8); } }

.av-feature { display: block; border: 1px solid var(--line); background: var(--paper); transition: border-color .22s ease; }
.av-feature:hover { border-color: var(--ink); }
.av-feature__media { display: block; aspect-ratio: 16 / 9; background: var(--canvas-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.av-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.av-feature:hover .av-feature__media img { transform: scale(1.04); }
.av-feature__body { display: block; padding: var(--s-5); }
@media (min-width: 768px) { .av-feature__body { padding: var(--s-6); } }
.av-feature__ttl {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.14;
  color: var(--ink); margin-top: var(--s-3);
}
.av-feature__txt { display: block; margin-top: var(--s-3); font-size: 15px; color: var(--ink-2); }
.av-feature__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.av-post {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.av-post:first-child { border-top: 1px solid var(--line); }
.av-post__date { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.av-post__ttl { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; color: var(--ink); }
.av-post:hover .av-post__ttl { color: var(--jade); }
.av-post__txt { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* --------------------------------------------------------- 19. VOICES */
.av-quote {
  width: min(430px, 84vw);
  border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-5);
}
.av-quote__mark { font-family: var(--font-display); font-size: 56px; line-height: .6; color: var(--jade-300); }
.av-quote__txt { font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; line-height: 1.5; letter-spacing: -.012em; color: #fff; flex: 1; }
.av-quote__by { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--night-line); }
.av-quote__pic { width: 46px; height: 46px; flex: none; border: 1px solid var(--night-line); background: var(--night-3); overflow: hidden; }
.av-quote__pic img { width: 100%; height: 100%; object-fit: cover; }
.av-quote__who b { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.av-quote__who span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-2); }

/* ------------------------------------------------------- 20. CTA STRIP */
.av-cta { background: var(--jade); color: #fff; }
.av-cta__inner { display: grid; gap: var(--s-5); padding-block: var(--s-8); align-items: center; }
@media (min-width: 900px) { .av-cta__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } }
.av-cta__ttl { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.av-cta__txt { margin-top: 10px; color: rgba(255,255,255,.94); max-width: 52ch; }
.av-cta__btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.av-cta .av-btn--onnight { --btn-bd: rgba(255,255,255,.7); }

/* --------------------------------------------------------- 21. FOOTER */
.av-footer { background: #0c0c1d; color: var(--sand); }
.av-footer__grid { display: grid; gap: var(--s-7); padding-block: var(--sec) var(--s-8); }
@media (min-width: 720px)  { .av-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .av-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: var(--s-8); } }

.av-footer__about p { font-size: 14.5px; color: var(--sand); max-width: 42ch; }
.av-footer__logo img { max-width: 190px; height: auto; margin-bottom: var(--s-4); }
.av-footer__word { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; letter-spacing: -.02em; margin-bottom: var(--s-4); }
.av-fh {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--jade-300);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--night-line);
}
.av-footer li a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--sand); transition: color .2s ease, padding-left .2s ease; }
.av-footer li a:hover { color: #fff; padding-left: 6px; }
.av-contact li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(52,52,95,.5); font-size: 14.5px; color: var(--sand); }
.av-contact li:last-child { border-bottom: 0; }
.av-contact svg { flex: none; margin-top: 3px; color: var(--jade-300); }
.av-contact a { color: var(--sand); }
.av-contact a:hover { color: #fff; }

.av-social { display: flex; gap: 10px; margin-top: var(--s-5); }
.av-social a {
  width: 42px; height: 42px;
  border: 1px solid var(--night-line);
  display: grid; place-items: center;
  color: var(--sand);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.av-social a:hover { background: #fff; color: var(--ink); border-color: #fff; }

.av-footer__bar {
  border-top: 1px solid var(--night-line);
  padding-block: var(--s-5);
  display: grid; gap: 10px;
  font-size: 13px; color: var(--sand-2);
}
@media (min-width: 768px) { .av-footer__bar { grid-template-columns: 1fr auto; align-items: center; } }
.av-footer__bar a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.av-footer__bar a:hover { color: #fff; }

/* ------------------------------------------------ 22. CONSULT DOCK / BAR */
.av-dock { display: none; }
@media (min-width: 1280px) {
  .av-dock {
    display: flex; flex-direction: column; gap: 1px;
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 55;
    background: var(--ink);
    border: 1px solid var(--ink);
  }
  .av-dock a {
    display: flex; align-items: center; gap: 0;
    height: 58px; padding: 0 17px;
    background: var(--ink); color: #fff;
    transition: background .22s ease, gap .22s ease;
    overflow: hidden; white-space: nowrap;
  }
  .av-dock a span { max-width: 0; opacity: 0; font-size: 13.5px; font-weight: 700; transition: max-width .3s ease, opacity .2s ease; }
  .av-dock a:hover { background: var(--jade); gap: 12px; }
  .av-dock a:hover span { max-width: 220px; opacity: 1; }
  .av-dock svg { flex: none; }
}

.av-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: grid;
  background: var(--ink);
  border-top: 1px solid var(--ink);
}
@media (min-width: 1280px) { .av-bottombar { display: none; } }
.av-bottombar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 10px 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,.14);
  min-height: 58px;
  text-align: center;
}
.av-bottombar a:first-child { border-left: 0; }
.av-bottombar a:active { background: var(--jade); }
body.av-body.has-bottombar { padding-bottom: 58px; }
@media (min-width: 1280px) { body.av-body.has-bottombar { padding-bottom: 0; } }

/* ------------------------------------------------------- 23. REVEAL FX */
.av-reveal { opacity: 0; transform: translateY(18px); }
.av-reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .av-reveal, .av-reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------- 24. MODALS / FORMS */
body.av-body .modal { z-index: 1090; }
body.av-body .modal-backdrop { background: #0c0c1d; }
body.av-body .modal-backdrop.show { opacity: .72; }
body.av-body .modal-content {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 22px 22px 0 -8px rgba(12,12,29,.22);
  color: var(--ink);
}
body.av-body .modal-header { border-bottom: 1px solid var(--line); padding: var(--s-5); align-items: center; }
body.av-body .modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
}
body.av-body .modal-body { padding: var(--s-5); }
body.av-body .btn-close {
  width: 38px; height: 38px; opacity: 1;
  border: 1px solid var(--ink); border-radius: var(--r);
  background-size: 12px; margin: 0;
}
body.av-body .btn-close:hover { background-color: var(--canvas); }

.av-field { margin-bottom: var(--s-4); }
.av-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 7px;
}
body.av-body .modal .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--canvas);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}
body.av-body .modal textarea.form-control { min-height: 96px; resize: vertical; }
body.av-body .modal .form-control::placeholder { color: var(--ink-3); opacity: 1; }
body.av-body .modal .form-control:focus {
  background: var(--paper);
  border-color: var(--ink);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
body.av-body .modal .error { display: block; margin-top: 6px; font-size: 13px; color: #b3261e !important; }

.av-popup .modal-content { border: 1px solid var(--ink); background: var(--ink); overflow: hidden; max-height: 88vh; }
.av-popup .modal-body { padding: 0; }
/* keep the ad image inside the viewport so the close button is always reachable */
.av-popup img { display: block; width: auto; max-width: 100%; max-height: 88vh; height: auto; margin-inline: auto; }
.av-popup__close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 40px; height: 40px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; line-height: 1;
}
.av-popup__close:hover { background: var(--ink); color: #fff; }

/* -------------------------------------------------------- 25. UTILITIES */
.av-hide { display: none !important; }
.av-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.av-mt4 { margin-top: var(--s-4); }
.av-mt5 { margin-top: var(--s-5); }
.av-mt6 { margin-top: var(--s-6); }
.av-mt7 { margin-top: var(--s-7); }

/* ==========================================================================
   26. INNER PAGES
   Page head, prose, cards, pagination, forms, sidebars, tabs, profile.
   ========================================================================== */

/* ------------------------------------------------------- 26.1 PAGE HEAD */
.av-pagehead {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(40px, 5.5vw, 76px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--night-line);
}
.av-pagehead::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(255,255,255,.38) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 66%, rgba(255,255,255,.42) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 82%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(900px 380px at 88% -30%, rgba(82,208,167,.16), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, 96px 100%;
  pointer-events: none;
}
.av-pagehead > * { position: relative; z-index: 1; }
.av-pagehead__label { margin-bottom: var(--s-4); color: var(--jade-300); }
.av-pagehead__label::before { background: var(--jade-300); opacity: 1; }
.av-pagehead__title { color: #fff; max-width: 22ch; }
.av-pagehead__lead { margin-top: var(--s-4); color: var(--sand); max-width: 66ch; }

.av-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sand-2);
}
.av-crumbs a { color: var(--sand-2); border-bottom: 1px solid transparent; }
.av-crumbs a:hover { color: #fff; border-bottom-color: var(--jade-300); }
.av-crumbs em { font-style: normal; color: #fff; }
.av-crumbs span { opacity: .5; }

/* ---------------------------------------------------------- 26.2 PROSE */
/* Rich text straight from the CMS. Everything is ink on paper. */
.av-prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; max-width: 76ch; }
.av-prose > :first-child { margin-top: 0; }
.av-prose > :last-child { margin-bottom: 0; }
.av-prose p { margin: 0 0 1.15em; }
.av-prose h1, .av-prose h2, .av-prose h3, .av-prose h4, .av-prose h5, .av-prose h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.024em;
  line-height: 1.16;
  color: var(--ink);
  margin: 1.9em 0 .55em;
}
.av-prose h1 { font-size: 1.95rem; }
.av-prose h2 { font-size: 1.6rem; }
.av-prose h3 { font-size: 1.32rem; }
.av-prose h4, .av-prose h5, .av-prose h6 { font-size: 1.12rem; }
.av-prose strong, .av-prose b { color: var(--ink); font-weight: 700; }
.av-prose a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.av-prose a:hover { color: var(--jade-700); }
.av-prose ul, .av-prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.av-prose ul { list-style: none; padding-left: 0; }
.av-prose ul > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .5em;
}
.av-prose ul > li::before {
  content: "";
  position: absolute; left: 4px; top: .72em;
  width: 7px; height: 7px;
  border: 1px solid var(--jade);
  transform: rotate(45deg);
}
.av-prose ol { list-style: decimal; }
.av-prose ol > li { margin-bottom: .5em; padding-left: 4px; }
.av-prose ol > li::marker { color: var(--jade); font-weight: 700; }
.av-prose img { margin: 1.5em 0; border: 1px solid var(--line); }
.av-prose blockquote {
  margin: 1.6em 0;
  padding: var(--s-5);
  border-left: 3px solid var(--jade);
  background: var(--canvas);
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}
.av-prose hr { margin: 2em 0; border-top: 1px solid var(--line); }
.av-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.av-prose th, .av-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.av-prose th { background: var(--canvas); color: var(--ink); font-weight: 700; }
.av-prose iframe { max-width: 100%; }

/* ---------------------------------------------------- 26.3 CARD GRIDS */
/* Breakpoints MUST stay in ascending order — equal specificity means the last
   matching rule wins, so a narrow query placed after a wide one would clobber it. */
.av-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 560px)  { .av-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .av-grid--3, .av-grid--4, .av-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .av-grid--4, .av-grid--5 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .av-grid--5 { grid-template-columns: repeat(5, 1fr); } }

.av-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .22s ease, transform .22s ease;
}
.av-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.av-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--canvas-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.av-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.av-card:hover .av-card__media img { transform: scale(1.05); }
.av-card__n {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: #fff; background: rgba(17,17,41,.72);
  border: 1px solid rgba(255,255,255,.35);
  padding: 4px 8px;
}
.av-card__body { display: flex; flex-direction: column; gap: 8px; padding: var(--s-5); flex: 1; }
.av-card__ttl {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 600; letter-spacing: -.022em; line-height: 1.18;
  color: var(--ink);
}
.av-card__txt { display: block; font-size: 14px; color: var(--ink-3); }
.av-card__price {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--jade); font-weight: 500;
}
.av-card__foot { margin-top: auto; padding-top: var(--s-4); }

/* ----------------------------------------------------- 26.4 PAGINATION */
.av-pager {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.av-pager a, .av-pager span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.av-pager a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.av-pager .is-current { background: var(--jade); border-color: var(--jade); color: #fff; }

/* --------------------------------------------------- 26.5 EMPTY STATE */
.av-empty {
  border: 1px dashed var(--line-2);
  background: var(--canvas);
  padding: var(--s-8) var(--s-5);
  text-align: center;
}
.av-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
}
.av-empty p { margin-top: 8px; color: var(--ink-3); font-size: 14.5px; }

/* ---------------------------------------------------------- 26.6 FORMS */
.av-form { display: grid; gap: var(--s-4); }
.av-form__row { display: grid; gap: var(--s-4); }
@media (min-width: 560px) { .av-form__row--2 { grid-template-columns: 1fr 1fr; } }

.av-form label,
.av-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 7px;
}
body.av-body .av-form .form-control,
body.av-body .av-form .form-select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}
body.av-body .av-form textarea.form-control { min-height: 120px; resize: vertical; }
body.av-body .av-form .form-control::placeholder { color: var(--ink-3); opacity: 1; }
body.av-body .av-form .form-control:focus,
body.av-body .av-form .form-select:focus {
  border-color: var(--ink);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
body.av-body .av-form .error,
body.av-body .error {
  display: block; margin-top: 6px;
  font-size: 13px; font-weight: 600;
  color: #b3261e !important;
}

/* --------------------------------------------------------- 26.7 SPLIT */
.av-split { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 992px) {
  .av-split { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: var(--s-8); }
  .av-split--left { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); }
  .av-split__aside--sticky { position: sticky; top: 110px; }
}

.av-panel { border: 1px solid var(--line); background: var(--paper); }
.av-panel + .av-panel { margin-top: var(--s-4); }
.av-panel__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.av-panel__head h3 {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
}
.av-panel__body { padding: var(--s-5); }

.av-linklist li { border-bottom: 1px solid var(--line); }
.av-linklist li:last-child { border-bottom: 0; }
.av-linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px var(--s-5);
  font-size: 14.5px; font-weight: 600;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.av-linklist a:hover { background: var(--canvas); color: var(--jade); }
.av-linklist a span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.av-mini { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.av-mini:last-child { border-bottom: 0; }
.av-mini__img { aspect-ratio: 4 / 3; background: var(--canvas-2); border: 1px solid var(--line); overflow: hidden; }
.av-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.av-mini__ttl { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.22; letter-spacing: -.018em; color: var(--ink); }
.av-mini:hover .av-mini__ttl { color: var(--jade); }
.av-mini__date { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.av-appbox { border: 1px solid var(--ink); background: var(--night); color: var(--sand); padding: var(--s-6) var(--s-5); text-align: center; }
.av-appbox img.av-appbox__logo { max-width: 150px; margin: 0 auto var(--s-4); }
.av-appbox h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.av-appbox p { margin-top: 8px; font-size: 14px; color: var(--sand-2); }
.av-appbox .av-btn { margin-top: var(--s-4); }
.av-appbox__btns { display: grid; gap: 10px; margin-top: var(--s-5); }

/* ----------------------------------------------------- 26.8 INFO ROWS */
.av-info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.av-info__row { background: var(--paper); display: flex; gap: var(--s-4); padding: var(--s-5); align-items: flex-start; }
.av-info__ico {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.av-info__k { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.av-info__v { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--ink); word-break: break-word; }
.av-info__v a { color: var(--ink); }
.av-info__v a:hover { color: var(--jade); }

.av-map { border: 1px solid var(--line); line-height: 0; background: var(--canvas-2); }
.av-map iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 767px) { .av-map iframe { height: 300px; } }

/* ----------------------------------------------------------- 26.9 TABS */
body.av-body .av-tabs .nav-tabs {
  border-bottom: 1px solid var(--line);
  gap: 4px;
  background: transparent;
}
body.av-body .av-tabs .nav-tabs .nav-link {
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-2);
  background: transparent;
}
body.av-body .av-tabs .nav-tabs .nav-link:hover { color: var(--ink); background: var(--canvas); }
body.av-body .av-tabs .nav-tabs .nav-link.active {
  color: var(--ink);
  background: transparent;
  border-bottom-color: var(--jade);
}
.av-tabs .tab-content { padding-top: var(--s-6); }

/* --------------------------------------------------- 26.10 PROFILE PAGE */
.av-profile { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .av-profile { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: var(--s-8); } }

.av-profile__card { border: 1px solid var(--line); background: var(--paper); }
.av-profile__photo { aspect-ratio: 1; background: var(--canvas-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.av-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.av-profile__meta { padding: var(--s-5); }
.av-profile__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.024em; line-height: 1.14; color: var(--ink); }
.av-profile__tag { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.av-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.av-chip::before { content: ""; width: 6px; height: 6px; background: var(--jade); transform: rotate(45deg); flex: none; }

.av-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.av-stats__cell { background: var(--paper); padding: var(--s-5); text-align: center; }
.av-stats__n { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.av-stats__k { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* --------------------------------------------- 26.11 SECTION SUB-HEADS */
.av-subhead { margin-bottom: var(--s-5); }
.av-subhead h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600; letter-spacing: -.026em; line-height: 1.14;
  color: var(--ink);
  margin-top: 12px;
}
.av-section--night .av-subhead h2 { color: #fff; }

/* the blog article body gets a lead image and a date strip */
.av-article__media { border: 1px solid var(--line); background: var(--canvas-2); aspect-ratio: 16 / 9; overflow: hidden; }
.av-article__media img { width: 100%; height: 100%; object-fit: cover; }
.av-article__meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin: var(--s-5) 0;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.av-article__split { display: grid; gap: var(--s-5); margin: var(--s-6) 0; align-items: center; }
@media (min-width: 768px) { .av-article__split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-6); } }
.av-article__split img { width: 100%; height: 280px; object-fit: cover; border: 1px solid var(--line); }

/* the daily-planetary rail on the article page */
.av-planet {
  width: min(360px, 82vw);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: 10px;
}
.av-planet h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.av-planet p { font-size: 14px; color: var(--ink-3); }
.av-planet__date { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--jade); }

/* the birth-details form on the article page */
.av-zodiac { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .av-zodiac { grid-template-columns: repeat(3, 1fr) auto; align-items: end; } }

/* ------------------------------------------ 26.12 LIGHT QUOTE VARIANT */
.av-quote--light {
  border-color: var(--line);
  background: var(--paper);
}
.av-quote--light .av-quote__mark { color: var(--jade); }
.av-quote--light .av-quote__txt { color: var(--ink); }
.av-quote--light .av-quote__by { border-top-color: var(--line); }
.av-quote--light .av-quote__pic { border-color: var(--line); background: var(--canvas-2); }
.av-quote--light .av-quote__who b { color: var(--ink); }
.av-quote--light .av-quote__who span { color: var(--ink-3); }

/* night-band form fields (the zodiac block on the article page) */
.av-section--night .av-form label { color: var(--sand-2); }
body.av-body .av-section--night .av-form .form-control,
body.av-body .av-section--night .av-form .form-select {
  background: rgba(255,255,255,.06);
  border-color: var(--night-line);
  color: #fff;
}
body.av-body .av-section--night .av-form .form-control::placeholder { color: var(--sand-2); }
body.av-body .av-section--night .av-form .form-control:focus,
body.av-body .av-section--night .av-form .form-select:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--sand-2);
}

/* grid cards in a 4-up grid should not carry the rail's fixed width */
.av-grid .av-expert { width: auto; }

/* current page marker inside the mobile drawer */
.av-drawer__link.is-current { color: var(--jade); }
.av-drawer__link.is-current .av-num { color: var(--jade); }

/* ------------------------------------------- 26.13 AVATAR PLACEHOLDER
   Sits behind the photo. When nothing was uploaded (or the file 404s and
   .av-img--failed hides the <img>), this glyph is what the visitor sees
   instead of an empty tile. */
.av-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: var(--canvas-2);
  color: var(--ink);
}
.av-ph svg {
  width: 40%;
  max-width: 96px;
  height: auto;
  opacity: .26;
}
.av-expert__media img,
.av-profile__photo img { position: relative; z-index: 1; }
.av-expert__badge { z-index: 2; }
.av-profile__photo { position: relative; }
