/* =====================================================================
   AVINA SYSTEM v1.0 — single source of truth
   Imported by: sandbox.html, hub/index.html, portal v2.3, visual canvas
   Authored: 03/05/2026 (Fabian)
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Palette */
  --paper: #FDFCFA;
  --paper-soft: #F4F3EF;
  --paper-warm: #FAF9F6;
  --surface: #FFFFFF;
  --ivory: #F4EEE3;
  --ivory-soft: rgba(244, 238, 227, 0.78);
  --graphite: #2B2A27;
  --graphite-deep: #1e1d1a;
  --graphite-text: #4A4845;
  --graphite-soft: #7C7A75;
  --ochre: #A87E3F;
  --ochre-soft: #C8A472;
  --ochre-light: #E5D4B5;
  --ochre-bg: rgba(168, 126, 63, 0.08);
  --ochre-glow: rgba(168, 126, 63, 0.18);
  --rule: rgba(43, 42, 39, 0.10);
  --rule-strong: rgba(43, 42, 39, 0.20);
  --rule-light: rgba(244, 238, 227, 0.15);
  --critical: #A83A2D;
  --warn: #B8914F;
  --ok: #3E6632;
  --info: #2B65A2;

  /* Typography */
  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-text: 'Cormorant', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 280ms;
  --t-card: 360ms;
  --t-reveal: 800ms;
}

/* ---------- BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.av-body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--graphite);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.av-body ::selection { background: var(--ochre-glow); color: var(--graphite); }
.av-body a { color: inherit; text-decoration: none; }
.av-body img, .av-body video { max-width: 100%; display: block; }
.av-body code, .av-body kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--ochre-bg);
  color: var(--ochre);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}



/* ---------- TOOLBAR (persistent cross-surface nav) ---------- */
.av-toolbar {
  position: sticky;
  top: 30px; /* below sandbox banner */
  z-index: 99;
  background: var(--graphite-deep);
  color: var(--ivory);
  border-bottom: 1px solid rgba(244, 238, 227, 0.08);
}
.av-toolbar__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px clamp(1.4rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.av-toolbar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.av-toolbar__monogram {
  width: 28px;
  height: 28px;
  background: var(--ochre);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 50%;
}
.av-toolbar__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.av-toolbar__name em {
  font-style: italic;
  color: var(--ochre-soft);
  font-weight: 400;
}
.av-toolbar__links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0 0 0 1rem;
  padding: 0;
  flex-wrap: wrap;
  flex-grow: 1;
}
.av-toolbar__links a {
  display: inline-block;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.65);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 200ms var(--ease);
}
.av-toolbar__links a:hover {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.04);
}
.av-toolbar__links a.is-active {
  color: var(--ochre-soft);
  border-color: rgba(168, 126, 63, 0.35);
  background: rgba(168, 126, 63, 0.08);
}
.av-toolbar__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.42);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .av-toolbar__inner { gap: 0.8rem; padding: 10px 14px; }
  .av-toolbar__name { font-size: 1rem; }
  .av-toolbar__links { margin-left: 0; gap: 0; }
  .av-toolbar__links a { padding: 6px 8px; font-size: 0.65rem; letter-spacing: 0.12em; }
  .av-toolbar__meta { display: none; }
}

/* ---------- SANDBOX BANNER (brand-aligned, sits above toolbar) ---------- */
.av-sb-banner {
  background: var(--graphite-deep);
  border-bottom: 1px solid rgba(168, 126, 63, 0.25);
  padding: 7px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
}
.av-sb-banner strong { letter-spacing: 0.22em; font-weight: 600; color: var(--ochre); }
.av-sb-banner a { color: var(--ochre-soft); border-bottom: 1px solid rgba(168, 126, 63, 0.4); }
.av-sb-banner a:hover { color: var(--ochre); }

/* ---------- CINEMATIC HERO ---------- */
.av-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  background: var(--graphite-deep);
}
.av-hero--compact { min-height: 60vh; }
.av-hero__video, .av-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.05) saturate(0.85);
}
.av-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(168, 126, 63, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, rgba(30, 29, 26, 0.88) 0%, rgba(43, 42, 39, 0.65) 50%, rgba(30, 29, 26, 0.85) 100%);
}
.av-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem clamp(2rem, 4vw, 6rem);
  width: 100%;
}
.av-monogram {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ochre-soft);
  color: var(--ochre-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.av-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin-bottom: 1.6rem;
  opacity: 0.92;
}
.av-eyebrow--dark { color: var(--ochre); }
.av-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin-bottom: 2rem;
  max-width: 22ch;
  font-weight: 500;
}
.av-title--dark { color: var(--graphite); }
.av-title em { font-style: italic; color: var(--ochre-soft); font-weight: 400; }
.av-title--dark em { color: var(--ochre); }
.av-lede {
  font-family: var(--font-text);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.55;
  color: var(--ivory-soft);
  max-width: 56ch;
  margin-bottom: 3rem;
  font-weight: 400;
}
.av-lede--dark { color: var(--graphite-text); }
.av-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3.6rem;
}
.av-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  background: rgba(168, 126, 63, 0.10);
  border: 1px solid rgba(168, 126, 63, 0.32);
  color: var(--ochre-soft);
  backdrop-filter: blur(8px);
}
.av-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2rem;
  background: var(--ochre);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--t-hover) var(--ease);
  border: 1px solid var(--ochre);
  cursor: pointer;
  font-weight: 500;
}
.av-cta:hover {
  background: transparent;
  color: var(--ochre-soft);
  border-color: var(--ochre-soft);
  transform: translateY(-1px);
}
.av-cta--ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(244, 238, 227, 0.30);
  margin-left: 0.6rem;
}
.av-cta--ghost:hover { border-color: var(--ochre-soft); color: var(--ochre-soft); transform: translateY(-1px); }
.av-cta--small { padding: 0.85rem 1.4rem; font-size: 0.74rem; letter-spacing: 0.18em; }
.av-cta--dark { background: var(--graphite); color: var(--ivory); border-color: var(--graphite); }
.av-cta--dark:hover { background: var(--ochre); border-color: var(--ochre); color: var(--ivory); }
.av-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244, 238, 227, 0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  animation: avScrollPulse 2.4s ease-in-out infinite;
}
@keyframes avScrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.85; transform: translateX(-50%) translateY(8px); }
}

/* ---------- CONTAINERS ---------- */
.av-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6.5rem clamp(2rem, 4vw, 6rem);
}
.av-container--wide { max-width: 1480px; }
.av-container--tight { padding-top: 4rem; padding-bottom: 4rem; }
.av-section { margin-bottom: 6rem; }
.av-section:last-child { margin-bottom: 0; }

/* ---------- SECTION LEAD ---------- */
.av-section__lead {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: end;
}
@media (max-width: 800px) {
  .av-section__lead { grid-template-columns: 1fr; gap: 1.4rem; }
}
.av-section__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.6rem;
}
.av-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  color: var(--graphite);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.av-section__title em { font-style: italic; color: var(--ochre); font-weight: 400; }
.av-section__lede {
  font-family: var(--font-text);
  font-size: 1.4rem;
  line-height: 1.65;
  color: var(--graphite-text);
  max-width: 56ch;
}

/* ---------- PREFACE BLOCK ---------- */
.av-preface {
  background: var(--paper-soft);
  border-left: 3px solid var(--ochre);
  padding: 3rem clamp(2rem, 3.5vw, 3.5rem);
  margin: 0 auto 4rem;
  max-width: 76ch;
}
.av-preface p {
  font-family: var(--font-text);
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--graphite-text);
  margin-bottom: 1rem;
  font-weight: 400;
}
.av-preface p:last-child { margin-bottom: 0; }
.av-preface strong { color: var(--graphite); font-weight: 600; }

/* ---------- GRID + CARDS ---------- */
.av-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.4rem;
}
.av-grid--tight { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
@media (max-width: 720px) {
  .av-grid, .av-grid--tight { grid-template-columns: 1fr; }
}
.av-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 2.4rem 2rem 2rem;
  transition: all var(--t-card) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.av-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--ochre);
  transition: width 480ms var(--ease);
}
.av-card:hover::before { width: 100%; }
.av-card:hover {
  border-color: var(--ochre-soft);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(43, 42, 39, 0.08);
}
.av-card--featured {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--surface) 100%);
  border-color: var(--ochre-light);
}
.av-card--featured::before { width: 100%; height: 2px; background: var(--ochre); }
.av-card--placeholder {
  opacity: 0.55;
  background: var(--paper-soft);
  border-style: dashed;
}
.av-card--dark {
  background: var(--graphite);
  border-color: rgba(244, 238, 227, 0.10);
}
.av-card--dark .av-card__title { color: var(--ivory); }
.av-card--dark .av-card__body { color: var(--ivory-soft); }
.av-card--dark .av-card__meta { color: rgba(244, 238, 227, 0.55); border-top-color: rgba(244, 238, 227, 0.12); }
.av-card--dark .av-card__meta strong { color: var(--ivory); }

.av-card__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.av-card__status {
  background: var(--ochre-bg);
  color: var(--ochre);
  padding: 0.2rem 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  border-radius: 1px;
}
.av-card__status--working { background: rgba(62, 102, 50, 0.10); color: var(--ok); }
.av-card__status--sandbox { background: rgba(255, 221, 77, 0.35); color: #6B5400; }
.av-card__status--critical { background: rgba(168, 58, 45, 0.12); color: var(--critical); }
.av-card__title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  color: var(--graphite);
  margin-bottom: 0.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.av-card__title em { font-style: italic; color: var(--ochre); font-weight: 400; }
.av-card__sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--graphite-soft);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.av-card__body {
  font-family: var(--font-text);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--graphite-text);
  margin-bottom: 1.6rem;
  flex-grow: 1;
}
.av-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.av-card__meta strong {
  display: block;
  color: var(--graphite);
  margin-top: 0.25rem;
  font-weight: 500;
}
.av-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--graphite);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 240ms var(--ease);
  align-self: flex-start;
  cursor: pointer;
  border: 0;
}
.av-card__cta::after {
  content: '→';
  transition: transform 240ms;
}
.av-card__cta:hover { background: var(--ochre); }
.av-card__cta:hover::after { transform: translateX(4px); }
.av-card__cta--primary { background: var(--ochre); }
.av-card__cta--primary:hover { background: var(--graphite); }
.av-card__notes {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--graphite-soft);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ---------- CINEMATIC DIVIDER ---------- */
.av-divider {
  position: relative;
  height: 320px;
  margin: 5rem 0;
  overflow: hidden;
  background: var(--graphite);
}
.av-divider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.av-divider__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 29, 26, 0.4) 0%, rgba(30, 29, 26, 0.85) 100%);
}
.av-divider__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: end;
  padding: 0 clamp(2rem, 4vw, 6rem) 3rem;
  color: var(--ivory);
}
.av-divider__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 28ch;
  font-weight: 500;
  color: var(--ivory);
}
.av-divider__inner h2 em { font-style: italic; color: var(--ochre-soft); }

/* ---------- TABLES ---------- */
.av-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.av-table th, .av-table td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  font-family: var(--font-text);
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
}
.av-table th {
  background: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
}
.av-table tr:last-child td { border-bottom: none; }
.av-table tr:hover td { background: var(--paper-warm); }
.av-table strong { color: var(--graphite); font-weight: 600; }
.av-table a {
  color: var(--ochre);
  border-bottom: 1px solid rgba(168, 126, 63, 0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 1px;
}
.av-table a:hover { color: #8E6932; border-bottom-color: var(--ochre); }

/* ---------- QUICKREF ---------- */
.av-quickref {
  background: var(--graphite);
  color: var(--ivory);
  padding: 5rem clamp(2rem, 4vw, 6rem);
  margin: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.av-quickref::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(168, 126, 63, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.av-quickref__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.av-quickref h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  color: var(--ivory);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.av-quickref h2 em { font-style: italic; color: var(--ochre-soft); }
.av-quickref__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.5);
  margin-bottom: 3rem;
}
.av-quickref__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}
@media (max-width: 800px) {
  .av-quickref__grid { grid-template-columns: 1fr; }
}
.av-quickref__col h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin-bottom: 1rem;
}
.av-quickref__col p {
  font-family: var(--font-text);
  font-size: 1.08rem;
  color: rgba(244, 238, 227, 0.78);
  line-height: 1.7;
  margin-bottom: 0.7rem;
}
.av-quickref__col strong { color: var(--ivory); font-weight: 600; }
.av-quickref__col ul { list-style: none; padding: 0; }
.av-quickref__col li {
  font-family: var(--font-text);
  font-size: 1.02rem;
  color: rgba(244, 238, 227, 0.78);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.4rem;
  position: relative;
}
.av-quickref__col li::before {
  content: '→';
  color: var(--ochre-soft);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
}

/* ---------- FOOTER ---------- */
.av-footer {
  background: var(--graphite-deep);
  color: rgba(244, 238, 227, 0.55);
  padding: 3rem clamp(2rem, 4vw, 6rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.7;
}
.av-footer span { display: inline-block; margin: 0 0.6rem; }

/* ---------- TABS (inline component for portal/canvas) ---------- */
.av-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.av-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite-text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 240ms var(--ease);
  margin-bottom: -1px;
}
.av-tab:hover { color: var(--graphite); }
.av-tab.is-active {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
  font-weight: 600;
}

/* ---------- FILTER BAR ---------- */
.av-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
  align-items: center;
}
.av-filter-chip {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--graphite-text);
  transition: all 200ms var(--ease);
}
.av-filter-chip:hover { border-color: var(--ochre-soft); color: var(--graphite); }
.av-filter-chip.is-active {
  background: var(--ochre);
  color: var(--ivory);
  border-color: var(--ochre);
  font-weight: 600;
}

/* ---------- SCROLL REVEALS ---------- */
.av-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
.av-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.av-reveal--delay-1 { transition-delay: 80ms; }
.av-reveal--delay-2 { transition-delay: 160ms; }
.av-reveal--delay-3 { transition-delay: 240ms; }
.av-reveal--delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .av-reveal,
  .av-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .av-hero__scroll { animation: none; }
}

/* ---------- UTILITY ---------- */
.av-mono { font-family: var(--font-mono); }
.av-display { font-family: var(--font-display); }
.av-text { font-family: var(--font-text); }
.av-italic { font-style: italic; }
.av-italic em { font-style: italic; color: var(--ochre); font-weight: 400; }

@media (max-width: 600px) {
  .av-cta--ghost { margin-left: 0; margin-top: 0.6rem; display: flex; }
  .av-cta { display: flex; justify-content: center; }
}


/* ---------- STATUS DISCIPLINE (PROTOTYPE → DRAFT → WORKING → FINAL → SHIPPED) ---------- */
.av-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 1px;
  border: 1px solid transparent;
}
.av-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.av-status--prototype  { background: rgba(168,126,63,0.10); color: var(--ochre); border-color: rgba(168,126,63,0.30); }
.av-status--draft      { background: var(--paper-soft); color: var(--graphite-soft); border-color: var(--rule); }
.av-status--working    { background: rgba(62,102,50,0.10); color: var(--ok); border-color: rgba(62,102,50,0.30); }
.av-status--final      { background: var(--ochre); color: var(--ivory); border-color: var(--ochre); }
.av-status--final::before { background: var(--ivory); }
.av-status--shipped    { background: var(--graphite); color: var(--ivory); border-color: var(--graphite); }
.av-status--shipped::before { background: var(--ochre-soft); }
.av-status--sandbox    { background: rgba(168,126,63,0.06); color: var(--ochre); border-color: rgba(168,126,63,0.18); }
.av-status--critical   { background: rgba(168,58,45,0.10); color: var(--critical); border-color: rgba(168,58,45,0.28); }

/* ---------- BRAND CARD GRID (for visual asset previews) ---------- */
.av-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.av-brand-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 1.2rem;
  position: relative;
  transition: all 280ms var(--ease);
  display: flex;
  flex-direction: column;
}
.av-brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--ochre);
  transition: width 480ms var(--ease);
}
.av-brand-card:hover::before { width: 100%; }
.av-brand-card:hover { transform: translateY(-3px); border-color: var(--ochre-soft); box-shadow: 0 14px 32px rgba(43,42,39,0.08); }
.av-brand-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-soft);
  margin-bottom: 1rem;
  border: 1px solid var(--rule-soft, rgba(43,42,39,0.04));
}
.av-brand-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-bottom: 0.4rem;
}
.av-brand-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--graphite);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.av-brand-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
  flex-wrap: wrap;
}


/* Toolbar action buttons (Search / Ask / Capture) */
.av-toolbar__actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.av-toolbar__action {
  background: rgba(168, 126, 63, 0.10);
  border: 1px solid rgba(168, 126, 63, 0.32);
  color: var(--ochre-soft);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 200ms var(--ease);
  font-weight: 500;
}
.av-toolbar__action:hover {
  background: rgba(168, 126, 63, 0.20);
  border-color: var(--ochre-soft);
  color: var(--ivory);
}
.av-toolbar__action--primary {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ivory);
}
.av-toolbar__action--primary:hover {
  background: var(--ochre-soft);
  color: var(--graphite);
}
@media (max-width: 900px) {
  .av-toolbar__actions { gap: 0.3rem; }
  .av-toolbar__action { padding: 5px 7px; font-size: 0.6rem; }
}
@media (max-width: 600px) {
  .av-toolbar__action { display: none; }
  .av-toolbar__actions::after { content: '⌕ /'; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ochre-soft); }
}
