/* ==========================================================
   Acid Graphics — exhibit hero (founder, 2026-09-30, from her artifact kit).
   Load after x-acid-graphics.css. The kit's site nav is not ported: the rail stays
   Scope: .ag-hero only. Side rail, ticker band and stats are untouched.
   Every overlay is positioned in % and sized in cqi against the art,
   so it stays locked to the picture at any column width.
   ========================================================== */
.ag-hero {
  --ag-black: #050505;
  --ag-green: #39FF14;
  --ag-magenta: #FF1AC6;
  --ag-paper: #E8E8E8;
  --ag-ink: #0A0A0A;
  container-type: inline-size;
  container-name: ag-hero;
  position: relative;
  background: #000;
  color: var(--ag-paper);
  isolation: isolate;
}

/* Art frame: fixed to the art's own aspect (1685 × 934).
   The top 66px of the art is a black band the site nav sits in. */
.ag-hero__stage {
  position: relative;
  aspect-ratio: 1685 / 934;
  overflow: hidden;
}
.ag-hero__art,
.ag-hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Page-wide grain rule: a static noise layer over art and live type,
   so the live text sits in the same surface as the picture */
.ag-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The title is the art. Keep a real h1 for screen readers and SEO */
.ag-hero__title {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ag-hero__tagline {
  position: absolute;
  z-index: 2;
  left: 4.87%;
  bottom: 7.4%;
  margin: 0;
  font: 700 2.3cqi/1.04 "ArchivoX", system-ui, sans-serif;
  letter-spacing: -.03em;      /* tight tracking, per the exhibit's own rule */
  color: var(--ag-paper);
}
.ag-hero__tagline span { display: block; white-space: nowrap; }

/* Sticker. Sits exactly over the patched area of the art */
.ag-hero__sticker {
  position: absolute;
  z-index: 2;
  left: 83.2%;
  top: 83.25%;
  min-width: 27.5cqi;
  margin: 0;
  padding: 1.5cqi 1.6cqi 1.35cqi;
  transform: translate(-50%, -50%) rotate(-5deg);
  background: var(--ag-magenta);
  color: var(--ag-ink);
  box-shadow: -.55cqi .6cqi 0 var(--ag-green);   /* hard offset, never a glow */
  /* "Never flat", so the sticker's own words are extruded too (founder, 2026-10-01). */
  text-shadow: 1px 1px 0 var(--ag-green), 2px 2px 0 var(--ag-green), 3px 3px 0 #20a808;
  font: 400 1.8cqi/1.1 "ArchivoBlackX", "ArchivoX", sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.ag-hero__sticker span { display: block; white-space: nowrap; }

/* Narrow column: the art stays whole, text moves under it at readable sizes */
@container ag-hero (max-width: 719px) {
  .ag-hero__tagline,
  .ag-hero__sticker {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
  }
  .ag-hero__copy {
    display: grid;
    gap: 22px;
    padding: 18px 20px 30px;
  }
  .ag-hero__tagline {
    font-size: clamp(22px, 6.4cqi, 30px);
  }
  .ag-hero__tagline span { display: inline; white-space: normal; }
  .ag-hero__sticker {
    justify-self: end;
    min-width: 0;
    padding: 12px 16px 10px;
    transform: rotate(-4deg);
    box-shadow: -5px 5px 0 var(--ag-green);
    font-size: clamp(15px, 4.4cqi, 20px);
    margin-right: 6px;
  }
}
@container ag-hero (min-width: 720px) {
  .ag-hero__copy { display: contents; }
}

/* In the page: full width of the page column (founder, 2026-09-30), the art's
   top black band rising behind the empty top bar. */
.ac-page .ac-hero-w { margin: calc(-3rem - var(--s2, 0.5rem)) calc(-1 * var(--s6, 2rem)) 0; }
@media (max-width: 60rem) { .ac-page .ac-hero-w { margin-inline: calc(-1 * var(--s4, 1rem)); } }

/* The mock nav (founder, 2026-09-30: every redesigned hero reads as a home page):
   laid in the art's top black band (66 of 934), left-aligned so the action
   cluster keeps the right and nothing lands on the A's spike. Links are this
   page's own sections. */
.ag-nav {
  position: absolute; z-index: 4; left: 4.87%; top: 0; height: calc(100cqi * 66 / 1685);
  display: flex; align-items: center; gap: max(14px, 2.1cqi);
  font: 600 max(11px, 1.05cqi)/1 "ArchivoX", system-ui, sans-serif; letter-spacing: .02em;
}
.ag-nav a { color: var(--ag-paper); text-decoration: none; }
.ag-nav a:hover, .ag-nav a:focus-visible { color: var(--ag-green); }
.ag-nav__logo { display: block; margin-right: max(8px, 1.4cqi); }
.ag-nav__logo img { display: block; height: max(10px, 1.2cqi); width: auto; }
@container ag-hero (max-width: 719px) {
  .ag-nav { position: relative; height: auto; left: auto; padding: 14px 20px; flex-wrap: wrap; gap: 10px 16px; background: #000; }
}

/* The art was generated (founder, 2026-09-30); it says so on the picture. */
.ag-hero__gen { position: absolute; z-index: 2; left: 50%; bottom: 2.2%; transform: translateX(-50%); margin: 0; white-space: nowrap; font: 500 max(10px, 0.78cqi)/1.3 "ArchivoX", system-ui, sans-serif; letter-spacing: .02em; color: rgba(232, 232, 232, .78); }
@container ag-hero (max-width: 719px) { .ag-hero__gen { position: static; transform: none; white-space: normal; order: 3; } }

/* The ticker runs the full width of the page column, straight under the hero
   (founder, 2026-10-01). The record stops clipping; the column clips instead. */
#main:has(.ac-rec) { overflow-x: clip; }
.ac-page .ac-rec { overflow: visible; margin-block-start: 0; }
.ac-page .ac-rec > .ac-tick { margin-inline: calc(-1 * var(--s6, 2rem)); }
@media (max-width: 60rem) { .ac-page .ac-rec > .ac-tick { margin-inline: calc(-1 * var(--s4, 1rem)); } }

/* Tap area (audit 2026-10-01): the links were 11–16px tall. Padding grows
   the hit area, the matching negative margin keeps the line where it was. */
.ag-nav a { padding-block: 10px; margin-block: -10px; }
