/* =====================================================================
   ArtistHub — design system
   Obsidian gallery atmosphere · warm ivory type · champagne-gold accents
   Layers: tokens → base → layout → components → pages → motion
   ===================================================================== */

:root {
  --ah-obsidian: #0B0B0D;
  --ah-charcoal: #17171B;
  --ah-charcoal-2: #1E1E23;
  --ah-charcoal-3: #26262C;
  --ah-ivory: #F5F0E7;
  --ah-ivory-dim: rgba(245, 240, 231, .72);
  --ah-ivory-faint: rgba(245, 240, 231, .5);
  --ah-gold: #C6A66B;
  --ah-gold-bright: #E2C68E;
  --ah-gold-deep: #9C8049;
  --ah-grey: #A5A5AA;
  --ah-white: #FFFFFF;
  --ah-line: rgba(245, 240, 231, .10);
  --ah-line-strong: rgba(245, 240, 231, .18);
  --ah-gold-line: rgba(198, 166, 107, .35);
  --ah-success: #8FB996;
  --ah-info: #9DB4CC;
  --ah-warning: #D9B36C;
  --ah-danger: #D98579;

  --ah-font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --ah-font-body: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;

  --ah-radius: 4px;
  --ah-radius-lg: 10px;
  --ah-ease: cubic-bezier(.22, .61, .36, 1);
  --ah-ease-out: cubic-bezier(.16, 1, .3, 1);
  --ah-shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.6);
  --ah-shadow-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(0,0,0,.75), 0 12px 24px -12px rgba(0,0,0,.6);
  --ah-shadow-gold: 0 0 0 1px var(--ah-gold-line), 0 20px 50px -20px rgba(198,166,107,.35);
  --ah-nav-h: 76px;
  --ah-gutter: clamp(16px, 4vw, 56px);

  /* Bootstrap bridges */
  --bs-body-bg: var(--ah-obsidian);
  --bs-body-color: var(--ah-ivory);
  --bs-border-color: var(--ah-line);
  --bs-link-color: var(--ah-gold);
  --bs-link-hover-color: var(--ah-gold-bright);
  --bs-emphasis-color: var(--ah-ivory);
  --bs-secondary-color: var(--ah-grey);
  --bs-tertiary-bg: var(--ah-charcoal);
  --bs-font-sans-serif: var(--ah-font-body);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ah-obsidian);
  color: var(--ah-ivory);
  font-family: var(--ah-font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.ah-has-fixed-nav main { padding-top: var(--ah-nav-h); }
::selection { background: var(--ah-gold); color: var(--ah-obsidian); }
a { color: var(--ah-gold); text-decoration: none; transition: color .2s var(--ah-ease); }
a:hover { color: var(--ah-gold-bright); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, .ah-serif {
  font-family: var(--ah-font-display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.08;
  color: var(--ah-ivory);
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
h4 { font-size: 1.35rem; }
p { color: var(--ah-ivory-dim); }
strong { color: var(--ah-ivory); font-weight: 600; }
hr { border-color: var(--ah-line); opacity: 1; }
.text-muted, .ah-muted { color: var(--ah-grey) !important; }
.text-gold { color: var(--ah-gold) !important; }
.small, small { font-size: .85rem; }

:focus-visible {
  outline: 2px solid var(--ah-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.ah-skip {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--ah-gold); color: var(--ah-obsidian); padding: .6rem 1rem; border-radius: var(--ah-radius);
  font-weight: 600; transition: top .2s;
}
.ah-skip:focus { top: 12px; color: var(--ah-obsidian); }
.visually-hidden-focusable:not(:focus) { position: absolute !important; }

.ah-container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--ah-gutter); }
.ah-container--narrow { max-width: 860px; }
.ah-section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.ah-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.ah-section--ivory { background: var(--ah-ivory); color: var(--ah-obsidian); }
.ah-section--ivory h2, .ah-section--ivory h3, .ah-section--ivory strong { color: var(--ah-obsidian); }
.ah-section--ivory p { color: #4a463e; }
.ah-section--charcoal { background: var(--ah-charcoal); }

.ah-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--ah-font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ah-gold);
}
.ah-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.ah-eyebrow--plain::before { display: none; }

.ah-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.ah-section-head h2 { margin: .6rem 0 0; max-width: 18ch; }
.ah-section-head p { max-width: 46ch; margin: 0; }
.ah-index { font-family: var(--ah-font-display); font-style: italic; color: var(--ah-gold); font-size: 1.1rem; }

.ah-display {
  font-family: var(--ah-font-display);
  font-weight: 300;
  font-size: clamp(2.9rem, min(6.6vw, 11.5vh), 7.4rem);
  line-height: .94;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin: 0;
}
.ah-display em, .ah-accent em, h1 em, h2 em {
  font-style: italic; text-transform: none; color: var(--ah-gold);
  font-weight: 300; letter-spacing: -.01em;
}
.ah-lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ah-ivory-dim); max-width: 52ch; line-height: 1.7; }

/* ------------------------------------------------------------- buttons */
.btn { font-family: var(--ah-font-body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; border-radius: 2px; padding: .95rem 1.6rem; transition: transform .35s var(--ah-ease-out), box-shadow .35s var(--ah-ease-out), background-color .25s, color .25s, border-color .25s; }
.btn-sm { padding: .55rem .95rem; font-size: .68rem; }
.btn-lg { padding: 1.15rem 2rem; font-size: .8rem; }
.btn-ah {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--ah-gold-bright) 0%, var(--ah-gold) 55%, var(--ah-gold-deep) 100%);
  color: var(--ah-obsidian); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 12px 28px -12px rgba(198,166,107,.65);
}
.btn-ah::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.5) 45%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ah-ease-out);
}
.btn-ah:hover, .btn-ah:focus-visible { color: var(--ah-obsidian); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 20px 36px -14px rgba(198,166,107,.8); }
.btn-ah:hover::after { transform: translateX(120%); }
.btn-ah:active { transform: translateY(0); }
.btn-ah-ghost {
  background: rgba(245,240,231,.02); color: var(--ah-ivory); border: 1px solid var(--ah-line-strong);
  backdrop-filter: blur(6px); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.btn-ah-ghost:hover, .btn-ah-ghost:focus-visible { color: var(--ah-ivory); border-color: var(--ah-gold); background: rgba(198,166,107,.08); transform: translateY(-2px); }
.btn-ah-dark { background: var(--ah-obsidian); color: var(--ah-ivory); border: 1px solid var(--ah-obsidian); }
.btn-ah-dark:hover { background: #222; color: var(--ah-ivory); transform: translateY(-2px); }
.btn-ah-danger { background: transparent; color: var(--ah-danger); border: 1px solid rgba(217,133,121,.45); }
.btn-ah-danger:hover { background: rgba(217,133,121,.12); color: #f0a497; border-color: var(--ah-danger); }
.btn-ah-success { background: rgba(143,185,150,.14); color: #b9dcbf; border: 1px solid rgba(143,185,150,.45); }
.btn-ah-success:hover { background: rgba(143,185,150,.24); color: #d5efd9; }
.btn-link-ah { background: none; border: 0; padding: 0; color: var(--ah-gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; display: inline-flex; align-items: center; gap: .55rem; }
.btn-link-ah .ah-arrow { transition: transform .35s var(--ah-ease-out); }
.btn-link-ah:hover .ah-arrow { transform: translateX(6px); }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .6em; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ah-spin .7s linear infinite; }
@keyframes ah-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ navigation */
.ah-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1030; height: var(--ah-nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ah-ease), border-color .4s, backdrop-filter .4s, height .4s var(--ah-ease);
  border-bottom: 1px solid transparent;
}
.ah-nav.is-scrolled, .ah-nav.is-solid {
  background: rgba(11,11,13,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--ah-line);
}
.ah-nav__inner { display: flex; align-items: center; gap: 2rem; width: 100%; }
.ah-logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ah-ivory); font-family: var(--ah-font-display); font-size: 1.65rem; letter-spacing: .01em; line-height: 1; }
.ah-logo:hover { color: var(--ah-ivory); }
.ah-logo b { color: var(--ah-gold); font-weight: 400; }
.ah-logo svg { width: 30px; height: 30px; flex: none; }
.ah-nav__links { display: flex; gap: 1.9rem; margin: 0 auto; padding: 0; list-style: none; }
.ah-nav__links a { color: var(--ah-ivory-dim); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; position: relative; padding: .4rem 0; }
.ah-nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ah-gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ah-ease-out); }
.ah-nav__links a:hover, .ah-nav__links a[aria-current="page"] { color: var(--ah-ivory); }
.ah-nav__links a:hover::after, .ah-nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.ah-nav__actions { display: flex; align-items: center; gap: 1rem; }
.ah-nav__login { color: var(--ah-ivory-dim); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.ah-nav__toggle { display: none; background: none; border: 1px solid var(--ah-line-strong); color: var(--ah-ivory); width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; }
.ah-nav__toggle span { display: block; width: 18px; height: 1px; background: currentColor; position: relative; }
.ah-nav__toggle span::before, .ah-nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; }
.ah-nav__toggle span::before { top: -6px; } .ah-nav__toggle span::after { top: 6px; }
@media (max-width: 1099.98px) {
  .ah-nav__links, .ah-nav__actions .ah-hide-mobile { display: none; }
  .ah-nav__toggle { display: inline-flex; }
  .ah-nav__actions { margin-left: auto; }
}
.ah-offcanvas.offcanvas { background: rgba(11,11,13,.96); backdrop-filter: blur(20px); color: var(--ah-ivory); border-left: 1px solid var(--ah-line); width: min(420px, 100vw); }
.ah-offcanvas .offcanvas-header { padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--ah-line); }
.ah-offcanvas .btn-close { filter: invert(1) grayscale(1); }
.ah-offcanvas nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--ah-line); color: var(--ah-ivory); font-family: var(--ah-font-display); font-size: 1.7rem; }
.ah-offcanvas nav a span { font-family: var(--ah-font-body); font-size: .7rem; color: var(--ah-gold); letter-spacing: .2em; }

.ah-user-chip { display: inline-flex; align-items: center; gap: .6rem; color: var(--ah-ivory); font-size: .85rem; border: 1px solid var(--ah-line-strong); padding: .3rem .9rem .3rem .3rem; border-radius: 999px; background: rgba(255,255,255,.02); }
.ah-user-chip:hover { border-color: var(--ah-gold); color: var(--ah-ivory); }
.ah-user-chip .ah-avatar { width: 30px; height: 30px; font-size: .7rem; }

/* --------------------------------------------------------------- hero */
.ah-hero {
  position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; padding-bottom: clamp(48px, 9vh, 110px); padding-top: calc(var(--ah-nav-h) + 40px);
  background:
    radial-gradient(1200px 700px at 78% 30%, rgba(198,166,107,.14), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(120,110,160,.10), transparent 60%),
    var(--ah-obsidian);
}
.ah-hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s var(--ah-ease); }
.ah-hero.has-webgl .ah-hero__canvas { opacity: 1; }
.ah-hero.has-webgl .ah-hero__stage { opacity: 0; visibility: hidden; }
.ah-hero__stage { position: absolute; inset: 0; z-index: -3; perspective: 1400px; transition: opacity 1.2s; }
.ah-hero__vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,13,.55) 0%, rgba(11,11,13,0) 26%, rgba(11,11,13,0) 52%, rgba(11,11,13,.92) 100%),
              linear-gradient(90deg, rgba(11,11,13,.85) 0%, rgba(11,11,13,.2) 55%, rgba(11,11,13,0) 100%); }
.ah-hero__grain { position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: ah-grain 1.2s steps(6) infinite; }
@keyframes ah-grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }
.ah-hero__content { position: relative; z-index: 2; }
.ah-hero__content .ah-display { max-width: 13ch; }
.ah-hero__reveal > * { opacity: 0; transform: translateY(28px); animation: ah-rise 1.3s var(--ah-ease-out) forwards; }
.ah-hero__reveal > *:nth-child(1) { animation-delay: .15s; }
.ah-hero__reveal > *:nth-child(2) { animation-delay: .32s; }
.ah-hero__reveal > *:nth-child(3) { animation-delay: .55s; }
.ah-hero__reveal > *:nth-child(4) { animation-delay: .72s; }
@keyframes ah-rise { to { opacity: 1; transform: none; } }
.ah-hero__meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: clamp(1.6rem, 4vh, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--ah-line); max-width: 720px; }
.ah-hero__meta div { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-grey); }
.ah-hero__meta strong { display: block; font-family: var(--ah-font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--ah-ivory); }
.ah-hero__scroll { position: absolute; right: var(--ah-gutter); bottom: clamp(48px, 9vh, 110px); z-index: 2; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ah-grey); display: flex; align-items: center; gap: 1rem; }
.ah-hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--ah-gold), transparent); animation: ah-drip 2.4s var(--ah-ease) infinite; }
@keyframes ah-drip { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@media (max-width: 767.98px) { .ah-hero__scroll { display: none; } }

/* CSS fallback stage: floating frames in layered depth */
.ah-frame-float {
  position: absolute; border-radius: 2px; transform-style: preserve-3d;
  box-shadow: 0 50px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(198,166,107,.25);
  background-size: cover; background-position: center;
  will-change: transform; transition: transform 1.2s var(--ah-ease-out);
}
.ah-frame-float::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(198,166,107,.22); border-radius: 3px; }
.ah-frame-float::after { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255,255,255,.18), transparent 40%); mix-blend-mode: soft-light; }
.ah-frame-float--1 { width: 26vw; max-width: 380px; aspect-ratio: 4/5; right: 9vw; top: 16%; animation: ah-float 14s ease-in-out infinite; }
.ah-frame-float--2 { width: 15vw; max-width: 230px; aspect-ratio: 1; right: 33vw; top: 22%; opacity: .75; filter: blur(.6px); animation: ah-float 17s ease-in-out -4s infinite; }
.ah-frame-float--3 { width: 19vw; max-width: 270px; aspect-ratio: 3/4; right: 2vw; top: 54%; opacity: .55; filter: blur(1.4px); animation: ah-float 19s ease-in-out -8s infinite; }
.ah-frame-float--4 { width: 11vw; max-width: 160px; aspect-ratio: 4/5; right: 42vw; top: 60%; opacity: .35; filter: blur(2.5px); animation: ah-float 21s ease-in-out -2s infinite; }
@keyframes ah-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@media (max-width: 767.98px) {
  .ah-frame-float--1 { width: 56vw; right: -8vw; top: 12%; opacity: .55; }
  .ah-frame-float--2, .ah-frame-float--4 { display: none; }
  .ah-frame-float--3 { width: 34vw; right: 52vw; top: 18%; opacity: .3; }
}
/* Generative "paintings" used only as decorative hero texture (no real artworks) */
.ah-gen-1 { background: radial-gradient(circle at 30% 35%, #e2c68e 0 12%, transparent 13%), radial-gradient(circle at 70% 70%, #3a5a6b 0 28%, transparent 29%), linear-gradient(160deg, #1c2a33, #0e0f12 60%, #4b3a24); }
.ah-gen-2 { background: conic-gradient(from 210deg at 40% 60%, #c6a66b, #6b2e2a, #1b1b22, #2c4a52, #c6a66b); }
.ah-gen-3 { background: linear-gradient(0deg, #0f0f12 0 30%, transparent 30%), radial-gradient(ellipse at 50% 30%, #d8c7a7, #8a6f45 40%, #2a2a33 75%); }
.ah-gen-4 { background: repeating-linear-gradient(115deg, #17171b 0 14px, #c6a66b 14px 15px, #26262c 15px 34px); }

/* ---------------------------------------------------------- marquee */
.ah-marquee { border-block: 1px solid var(--ah-line); overflow: hidden; padding: 1.4rem 0; background: var(--ah-obsidian); }
.ah-marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: ah-marquee 48s linear infinite; }
.ah-marquee a { font-family: var(--ah-font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ah-ivory-faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; font-style: italic; }
.ah-marquee a:hover { color: var(--ah-gold); }
.ah-marquee a::after { content: "✦"; font-style: normal; font-size: .9rem; color: var(--ah-gold); }
.ah-marquee:hover .ah-marquee__track { animation-play-state: paused; }
@keyframes ah-marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------- artwork cards */
.ah-grid { display: grid; gap: clamp(20px, 2.4vw, 36px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ah-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .ah-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .ah-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 420px) { .ah-grid--4 { grid-template-columns: 1fr; } }

.ah-card { position: relative; display: block; color: var(--ah-ivory); perspective: 900px; }
.ah-card:hover { color: var(--ah-ivory); }
.ah-card__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ah-radius);
  background: var(--ah-charcoal); transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .6s var(--ah-ease-out), box-shadow .6s var(--ah-ease-out);
  box-shadow: var(--ah-shadow-1);
}
.ah-card:hover .ah-card__frame, .ah-card:focus-visible .ah-card__frame { box-shadow: var(--ah-shadow-2), 0 0 0 1px var(--ah-gold-line); }
.ah-card.is-tilting .ah-card__frame { transition: transform .12s linear, box-shadow .6s var(--ah-ease-out); }
.ah-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ah-ease-out), opacity .6s; transform: scale(1.02) translateZ(0); }
.ah-card:hover .ah-card__frame img { transform: scale(1.07); }
.ah-card__shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 42%); mix-blend-mode: soft-light; }
.ah-card:hover .ah-card__shine { opacity: 1; }
.ah-card__flag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.ah-card__body { padding: 1rem .15rem 0; display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; }
.ah-card__title { font-family: var(--ah-font-display); font-size: 1.32rem; line-height: 1.2; margin: 0; color: var(--ah-ivory); grid-column: 1; }
.ah-card__artist { font-size: .8rem; color: var(--ah-grey); grid-column: 1; }
.ah-card__price { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-size: .88rem; color: var(--ah-ivory); white-space: nowrap; padding-top: .3rem; }
.ah-card__meta { grid-column: 1 / -1; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-grey); margin-top: .35rem; }

.ah-media { position: relative; background: linear-gradient(110deg, var(--ah-charcoal) 30%, var(--ah-charcoal-2) 50%, var(--ah-charcoal) 70%); background-size: 300% 100%; animation: ah-shimmer 1.6s linear infinite; }
.ah-media.is-loaded { animation: none; background: var(--ah-charcoal); }
.ah-media img { opacity: 0; }
.ah-media.is-loaded img, .no-js .ah-media img { opacity: 1; }
@keyframes ah-shimmer { to { background-position: -300% 0; } }

.ah-placeholder-art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ah-grey); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }

/* ------------------------------------------------------------ badges */
.ah-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 2px; border: 1px solid; line-height: 1.2; white-space: nowrap; }
.ah-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ah-badge--success { color: var(--ah-success); border-color: rgba(143,185,150,.4); background: rgba(143,185,150,.08); }
.ah-badge--info { color: var(--ah-info); border-color: rgba(157,180,204,.4); background: rgba(157,180,204,.08); }
.ah-badge--warning { color: var(--ah-warning); border-color: rgba(217,179,108,.45); background: rgba(217,179,108,.08); }
.ah-badge--danger { color: var(--ah-danger); border-color: rgba(217,133,121,.45); background: rgba(217,133,121,.08); }
.ah-badge--neutral { color: var(--ah-grey); border-color: var(--ah-line-strong); background: rgba(255,255,255,.03); }
.ah-badge--gold { color: var(--ah-obsidian); border-color: var(--ah-gold); background: var(--ah-gold); }
.ah-badge--gold::before { display: none; }
.ah-badge--glass { color: var(--ah-ivory); border-color: rgba(255,255,255,.18); background: rgba(11,11,13,.55); backdrop-filter: blur(8px); }

/* ------------------------------------------------------------ glass */
.ah-glass {
  background: linear-gradient(160deg, rgba(38,38,44,.72), rgba(23,23,27,.58));
  border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--ah-shadow-2);
}
.ah-panel { background: var(--ah-charcoal); border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--ah-shadow-1); }
.ah-panel--flush { padding: 0; overflow: hidden; }
.ah-panel + .ah-panel { margin-top: 24px; }
.ah-panel__title { font-family: var(--ah-font-display); font-size: 1.6rem; margin: 0 0 1.2rem; }
.ah-panel--gold { border-color: var(--ah-gold-line); box-shadow: var(--ah-shadow-gold); }
.ah-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--ah-gold-line), transparent); border: 0; margin: 2rem 0; }

/* ------------------------------------------------------------- forms */
.form-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-grey); font-weight: 600; margin-bottom: .45rem; }
.form-control, .form-select {
  background-color: rgba(11,11,13,.6); color: var(--ah-ivory); border: 1px solid var(--ah-line-strong);
  border-radius: var(--ah-radius); padding: .8rem 1rem; font-size: .98rem; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.form-control::placeholder { color: rgba(165,165,170,.6); }
.form-control:focus, .form-select:focus { background-color: rgba(11,11,13,.85); color: var(--ah-ivory); border-color: var(--ah-gold); box-shadow: 0 0 0 4px rgba(198,166,107,.14); }
.form-control:disabled, .form-control[readonly] { background-color: rgba(255,255,255,.03); color: var(--ah-grey); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C6A66B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--ah-charcoal); color: var(--ah-ivory); }
.form-text { color: var(--ah-grey); font-size: .82rem; }
.form-check-input { background-color: transparent; border-color: var(--ah-line-strong); }
.form-check-input:checked { background-color: var(--ah-gold); border-color: var(--ah-gold); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(198,166,107,.18); border-color: var(--ah-gold); }
.form-check-label { color: var(--ah-ivory-dim); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--ah-danger); }
.invalid-feedback { color: var(--ah-danger); font-size: .82rem; }
.input-group-text { background: var(--ah-charcoal-2); color: var(--ah-grey); border-color: var(--ah-line-strong); }
.ah-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ah-fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.ah-fieldset legend { font-family: var(--ah-font-display); font-size: 1.5rem; margin-bottom: 1rem; float: none; width: auto; }
.ah-dropzone { border: 1px dashed var(--ah-gold-line); border-radius: var(--ah-radius-lg); padding: 2rem; text-align: center; background: rgba(198,166,107,.03); transition: background .3s, border-color .3s; position: relative; }
.ah-dropzone.is-dragover { background: rgba(198,166,107,.1); border-color: var(--ah-gold); }
.ah-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ah-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 1rem; }
.ah-previews img { aspect-ratio: 1; object-fit: cover; border-radius: var(--ah-radius); border: 1px solid var(--ah-line); }

/* ------------------------------------------------------------- alerts */
.ah-flash-stack { position: fixed; top: calc(var(--ah-nav-h) + 12px); right: 16px; z-index: 1090; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.ah-flash { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--ah-radius-lg); border: 1px solid var(--ah-line-strong); background: rgba(23,23,27,.92); backdrop-filter: blur(16px); box-shadow: var(--ah-shadow-2); color: var(--ah-ivory); font-size: .92rem; animation: ah-toast .6s var(--ah-ease-out); }
.ah-flash__icon { width: 8px; height: 8px; border-radius: 50%; margin-top: .45rem; flex: none; }
.ah-flash--success .ah-flash__icon { background: var(--ah-success); box-shadow: 0 0 12px var(--ah-success); }
.ah-flash--danger .ah-flash__icon { background: var(--ah-danger); box-shadow: 0 0 12px var(--ah-danger); }
.ah-flash--warning .ah-flash__icon { background: var(--ah-warning); }
.ah-flash--info .ah-flash__icon { background: var(--ah-info); }
.ah-flash button { margin-left: auto; background: none; border: 0; color: var(--ah-grey); font-size: 1.2rem; line-height: 1; padding: 0 .2rem; }
@keyframes ah-toast { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.ah-callout { border: 1px solid var(--ah-line-strong); border-left: 2px solid var(--ah-gold); background: rgba(198,166,107,.05); padding: 1rem 1.2rem; border-radius: var(--ah-radius); color: var(--ah-ivory-dim); font-size: .92rem; }
.ah-callout strong { color: var(--ah-ivory); }
.ah-callout--danger { border-left-color: var(--ah-danger); background: rgba(217,133,121,.06); }
.ah-callout--warning { border-left-color: var(--ah-warning); background: rgba(217,179,108,.06); }
.ah-callout--success { border-left-color: var(--ah-success); background: rgba(143,185,150,.06); }
.ah-callout--info { border-left-color: var(--ah-info); background: rgba(157,180,204,.06); }
.ah-callout p:last-child, .ah-callout ul:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- empty state */
.ah-empty { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border: 1px dashed var(--ah-line-strong); border-radius: var(--ah-radius-lg); background: radial-gradient(400px 200px at 50% 0%, rgba(198,166,107,.07), transparent); }
.ah-empty__mark { width: 64px; height: 64px; margin: 0 auto 1.4rem; border: 1px solid var(--ah-gold-line); display: grid; place-items: center; color: var(--ah-gold); transform: rotate(45deg); }
.ah-empty__mark span { transform: rotate(-45deg); font-family: var(--ah-font-display); font-size: 1.6rem; }
.ah-empty h3 { margin-bottom: .6rem; }
.ah-empty p { max-width: 44ch; margin: 0 auto 1.6rem; }

/* ------------------------------------------------------------- steps */
.ah-steps { display: grid; gap: 1px; background: var(--ah-line); border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.ah-step { background: var(--ah-obsidian); padding: clamp(24px, 3vw, 40px); position: relative; transition: background .4s; }
.ah-step:hover { background: var(--ah-charcoal); }
.ah-step__num { font-family: var(--ah-font-display); font-style: italic; color: var(--ah-gold); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 1.4rem; }
.ah-step h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.ah-step p { font-size: .94rem; margin: 0; }

/* ------------------------------------------------------- feature spotlight */
.ah-spotlight { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 991.98px) { .ah-spotlight { grid-template-columns: 1fr; } }
.ah-spotlight__media { position: relative; }
.ah-spotlight__media .ah-card__frame { aspect-ratio: 4/5; }
.ah-spotlight__media::before { content: ""; position: absolute; inset: 6% -4% -4% 6%; border: 1px solid var(--ah-gold-line); border-radius: var(--ah-radius); z-index: -1; transition: transform 1s var(--ah-ease-out); }
.ah-spotlight:hover .ah-spotlight__media::before { transform: translate(10px, 10px); }
.ah-spotlight__title { font-size: clamp(2.4rem, 4.6vw, 4.2rem); margin: 1rem 0; }
.ah-dl { display: grid; grid-template-columns: max-content 1fr; gap: .65rem 2rem; margin: 1.8rem 0; padding: 1.4rem 0; border-block: 1px solid var(--ah-line); }
.ah-dl dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ah-grey); font-weight: 600; padding-top: .2rem; }
.ah-dl dd { margin: 0; color: var(--ah-ivory); }

/* ------------------------------------------------------------- artists */
.ah-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--ah-gold-line); background: var(--ah-charcoal-2); }
.ah-avatar--initials { display: inline-grid; place-items: center; color: var(--ah-gold); font-family: var(--ah-font-display); font-size: 1.3rem; }
.ah-avatar--xl { width: 132px; height: 132px; font-size: 2.6rem; }
.ah-artist-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); color: var(--ah-ivory); transition: border-color .4s, transform .6s var(--ah-ease-out), background .4s; height: 100%; }
.ah-artist-card:hover { color: var(--ah-ivory); border-color: var(--ah-gold-line); transform: translateY(-6px); background: linear-gradient(180deg, rgba(198,166,107,.06), transparent); }
.ah-artist-card__name { font-family: var(--ah-font-display); font-size: 1.5rem; line-height: 1.1; }
.ah-artist-card__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ah-artist-card__strip img, .ah-artist-card__strip span { aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--ah-charcoal-2); width: 100%; }

/* --------------------------------------------------------- categories */
.ah-cat { position: relative; display: block; overflow: hidden; border-radius: var(--ah-radius-lg); aspect-ratio: 5/4; color: var(--ah-ivory); border: 1px solid var(--ah-line); background: var(--ah-charcoal); isolation: isolate; }
.ah-cat:hover { color: var(--ah-ivory); }
.ah-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ah-ease-out); opacity: .85; }
.ah-cat:hover img { transform: scale(1.08); }
.ah-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(11,11,13,.92)); }
.ah-cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.4rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.ah-cat__name { font-family: var(--ah-font-display); font-size: 1.7rem; line-height: 1; }
.ah-cat__count { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ah-gold); white-space: nowrap; }
.ah-cat--gen-0 { background: radial-gradient(circle at 80% 20%, rgba(198,166,107,.35), transparent 50%), var(--ah-charcoal); }
.ah-cat--gen-1 { background: radial-gradient(circle at 20% 30%, rgba(120,140,170,.3), transparent 55%), var(--ah-charcoal); }
.ah-cat--gen-2 { background: linear-gradient(135deg, rgba(198,166,107,.18), transparent 60%), var(--ah-charcoal); }

/* ------------------------------------------------------------ collections */
.ah-collection { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; border-radius: var(--ah-radius-lg); overflow: hidden; border: 1px solid var(--ah-line); color: var(--ah-ivory); background: var(--ah-charcoal); }
.ah-collection:hover { color: var(--ah-ivory); border-color: var(--ah-gold-line); }
.ah-collection__media { position: relative; overflow: hidden; background: var(--ah-charcoal-2); }
.ah-collection__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ah-ease-out); }
.ah-collection:hover .ah-collection__media img { transform: scale(1.06); }
.ah-collection__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.ah-collection__body h3 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin: 0; }
@media (max-width: 767.98px) { .ah-collection { grid-template-columns: 1fr; } .ah-collection__media { aspect-ratio: 16/10; } }

/* --------------------------------------------------------------- join CTA */
.ah-join { position: relative; overflow: hidden; border-radius: 14px; padding: clamp(40px, 7vw, 100px); background: radial-gradient(700px 400px at 85% 10%, rgba(198,166,107,.25), transparent 60%), linear-gradient(135deg, #1b1a1f, #0e0e11); border: 1px solid var(--ah-gold-line); isolation: isolate; }
.ah-join::before { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border: 1px solid var(--ah-gold-line); border-radius: 50%; z-index: -1; }
.ah-join::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; border: 1px solid rgba(198,166,107,.18); border-radius: 50%; z-index: -1; }
.ah-join h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 14ch; }
.ah-fee-tag { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--ah-font-display); }
.ah-fee-tag strong { font-size: 3.6rem; font-weight: 300; color: var(--ah-gold); line-height: 1; }
.ah-fee-tag span { font-family: var(--ah-font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-grey); }

/* ---------------------------------------------------------- page header */
.ah-page-head { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(32px, 4vw, 56px); position: relative; border-bottom: 1px solid var(--ah-line); background: radial-gradient(900px 300px at 80% 0%, rgba(198,166,107,.10), transparent 70%); }
.ah-page-head h1 { margin: .9rem 0 1rem; max-width: 20ch; }
.ah-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-grey); list-style: none; padding: 0; margin: 0; }
.ah-breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--ah-gold); }
.ah-breadcrumb a { color: var(--ah-grey); }
.ah-breadcrumb a:hover { color: var(--ah-ivory); }

/* --------------------------------------------------------------- explore */
.ah-explore { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 991.98px) { .ah-explore { grid-template-columns: 1fr; } }
.ah-filters { position: sticky; top: calc(var(--ah-nav-h) + 20px); }
@media (max-width: 991.98px) { .ah-filters { position: static; } }
.ah-filters .form-label { margin-top: 1.1rem; }
.ah-searchbar { position: relative; }
.ah-searchbar .form-control { padding-left: 2.8rem; height: 56px; font-size: 1.05rem; }
.ah-searchbar svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ah-gold); }
.ah-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.ah-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 1px solid var(--ah-line-strong); border-radius: 999px; font-size: .78rem; color: var(--ah-ivory-dim); }
.ah-chip:hover { border-color: var(--ah-gold); color: var(--ah-ivory); }
.ah-chip--active { border-color: var(--ah-gold); color: var(--ah-obsidian); background: var(--ah-gold); }
.ah-chip--active:hover { color: var(--ah-obsidian); }

.pagination { --bs-pagination-bg: transparent; --bs-pagination-color: var(--ah-ivory-dim); --bs-pagination-border-color: var(--ah-line-strong); --bs-pagination-hover-bg: rgba(198,166,107,.08); --bs-pagination-hover-color: var(--ah-ivory); --bs-pagination-hover-border-color: var(--ah-gold); --bs-pagination-active-bg: var(--ah-gold); --bs-pagination-active-border-color: var(--ah-gold); --bs-pagination-active-color: var(--ah-obsidian); --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: rgba(165,165,170,.4); --bs-pagination-disabled-border-color: var(--ah-line); --bs-pagination-focus-box-shadow: 0 0 0 4px rgba(198,166,107,.2); gap: 6px; }
.pagination .page-link { border-radius: 2px !important; min-width: 44px; text-align: center; }

/* -------------------------------------------------------- artwork detail */
.ah-viewer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 991.98px) { .ah-viewer { grid-template-columns: 1fr; } }
.ah-viewer__stage { position: relative; border-radius: var(--ah-radius); background: radial-gradient(circle at 50% 40%, #222228, #111114 70%); padding: clamp(18px, 4vw, 56px); display: grid; place-items: center; min-height: 420px; box-shadow: inset 0 0 120px rgba(0,0,0,.6); }
.ah-viewer__stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(255,240,210,.10), transparent 70%); pointer-events: none; }
.ah-viewer__main { position: relative; cursor: zoom-in; border: 0; padding: 0; background: none; display: block; }
.ah-viewer__main img { max-height: 72vh; width: auto; box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 0 8px #0d0d10, 0 0 0 9px rgba(198,166,107,.35); border-radius: 1px; transition: transform .8s var(--ah-ease-out); }
.ah-viewer__main:hover img { transform: translateY(-4px); }
.ah-viewer__hint { position: absolute; bottom: 14px; right: 14px; }
.ah-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.ah-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 1px solid var(--ah-line); border-radius: 2px; overflow: hidden; background: var(--ah-charcoal); opacity: .6; transition: opacity .3s, border-color .3s; }
.ah-thumbs button[aria-current="true"], .ah-thumbs button:hover { opacity: 1; border-color: var(--ah-gold); }
.ah-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ah-detail__price { font-family: var(--ah-font-display); font-size: 2.4rem; font-weight: 300; color: var(--ah-ivory); }
.ah-detail__sticky { position: sticky; top: calc(var(--ah-nav-h) + 24px); }
.ah-prose { color: var(--ah-ivory-dim); }
.ah-prose h2 { font-size: 2rem; margin: 2.4rem 0 1rem; }
.ah-prose h3 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.ah-prose h4 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.ah-prose ul { padding-left: 1.2rem; }
.ah-prose li { margin-bottom: .4rem; }
.ah-prose li::marker { color: var(--ah-gold); }
.ah-prose a { text-decoration: underline; text-decoration-color: var(--ah-gold-line); text-underline-offset: 3px; }

/* ----------------------------------------------------------- lightbox */
.ah-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6,6,8,.97); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s; }
.ah-lightbox.is-open { display: flex; opacity: 1; }
.ah-lightbox__img-wrap { max-width: 92vw; max-height: 88vh; overflow: hidden; cursor: zoom-in; touch-action: pinch-zoom; }
.ah-lightbox__img-wrap.is-zoomed { cursor: zoom-out; overflow: hidden; }
.ah-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; transition: transform .45s var(--ah-ease-out); transform-origin: var(--ox, 50%) var(--oy, 50%); user-select: none; }
.ah-lightbox__img-wrap.is-zoomed img { transform: scale(2.4); }
.ah-lightbox__btn { position: absolute; background: rgba(23,23,27,.7); border: 1px solid var(--ah-line-strong); color: var(--ah-ivory); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; backdrop-filter: blur(8px); transition: border-color .3s, background .3s; }
.ah-lightbox__btn:hover { border-color: var(--ah-gold); background: rgba(198,166,107,.15); }
.ah-lightbox__close { top: 20px; right: 20px; }
.ah-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ah-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.ah-lightbox__caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-grey); text-align: center; }

/* ------------------------------------------------------------ footer */
.ah-footer { border-top: 1px solid var(--ah-line); padding-top: clamp(56px, 8vw, 110px); padding-bottom: 32px; background: linear-gradient(180deg, var(--ah-obsidian), #070708); position: relative; overflow: hidden; }
.ah-footer__wordmark { font-family: var(--ah-font-display); font-size: clamp(4rem, 15vw, 15rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(198,166,107,.22); white-space: nowrap; margin-top: 4rem; user-select: none; text-align: center; }
.ah-footer h3 { font-family: var(--ah-font-body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ah-gold); font-weight: 600; margin-bottom: 1.2rem; }
.ah-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ah-footer ul a { color: var(--ah-ivory-dim); font-size: .92rem; }
.ah-footer ul a:hover { color: var(--ah-ivory); }
.ah-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--ah-line); padding-top: 1.6rem; margin-top: 3rem; font-size: .8rem; color: var(--ah-grey); }
.ah-footer__legal p { color: var(--ah-grey); margin: 0; max-width: 70ch; }

.ah-cookie { position: fixed; right: 16px; bottom: 16px; z-index: 1080; max-width: 420px; padding: 1.2rem 1.3rem; font-size: .88rem; display: none; }
.ah-cookie.is-visible { display: block; animation: ah-toast .6s var(--ah-ease-out); }
.ah-cookie p { margin-bottom: .9rem; }

/* ----------------------------------------------------------- tables */
.ah-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ah-table th { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-grey); font-weight: 600; text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--ah-line-strong); white-space: nowrap; background: rgba(255,255,255,.015); }
.ah-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--ah-line); vertical-align: middle; color: var(--ah-ivory-dim); }
.ah-table tr:last-child td { border-bottom: 0; }
.ah-table tbody tr { transition: background .25s; }
.ah-table tbody tr:hover { background: rgba(198,166,107,.04); }
.ah-table a { color: var(--ah-ivory); }
.ah-table a:hover { color: var(--ah-gold); }
.ah-table__thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 2px; background: var(--ah-charcoal-2); display: block; }
.ah-table-wrap { overflow-x: auto; }
.ah-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; letter-spacing: .02em; word-break: break-all; }

/* --------------------------------------------------- studio & admin shell */
.ah-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.ah-shell__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--ah-line); background: linear-gradient(180deg, #121215, #0c0c0e); padding: 1.6rem 1.1rem; display: flex; flex-direction: column; gap: 1.6rem; }
.ah-shell__side .ah-logo { font-size: 1.45rem; padding: 0 .6rem; }
.ah-shell__label { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ah-grey); padding: 0 .75rem; margin: 0 0 .4rem; font-weight: 600; }
.ah-shell__nav { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.ah-shell__nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: var(--ah-radius); color: var(--ah-ivory-dim); font-size: .9rem; transition: background .2s, color .2s; position: relative; }
.ah-shell__nav a:hover { background: rgba(255,255,255,.04); color: var(--ah-ivory); }
.ah-shell__nav a[aria-current="page"] { background: rgba(198,166,107,.1); color: var(--ah-ivory); }
.ah-shell__nav a[aria-current="page"]::before { content: ""; position: absolute; left: -1.1rem; top: 8px; bottom: 8px; width: 2px; background: var(--ah-gold); }
.ah-shell__nav svg { width: 17px; height: 17px; flex: none; color: var(--ah-gold); opacity: .9; }
.ah-shell__nav .ah-count { margin-left: auto; font-size: .68rem; background: var(--ah-gold); color: var(--ah-obsidian); border-radius: 999px; padding: .05rem .5rem; font-weight: 700; }
.ah-shell__main { min-width: 0; display: flex; flex-direction: column; }
.ah-shell__top { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--ah-line); background: rgba(11,11,13,.8); backdrop-filter: blur(14px); }
.ah-shell__content { padding: clamp(20px, 3vw, 44px); flex: 1; }
.ah-shell__footer { padding: 1.2rem clamp(16px, 3vw, 44px); border-top: 1px solid var(--ah-line); font-size: .78rem; color: var(--ah-grey); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.ah-shell__burger { display: none; }
.ah-shell__scrim { display: none; }
@media (max-width: 991.98px) {
  .ah-shell { grid-template-columns: 1fr; }
  .ah-shell__side { position: fixed; z-index: 1045; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .4s var(--ah-ease-out); }
  .ah-shell.is-open .ah-shell__side { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  .ah-shell__burger { display: inline-flex; }
  .ah-shell__scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1040; display: none; }
  .ah-shell.is-open .ah-shell__scrim { display: block; }
}
.ah-shell--admin .ah-shell__side { background: linear-gradient(180deg, #141418, #0b0b0d); }
.ah-role-tag { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-obsidian); background: var(--ah-gold); padding: .15rem .45rem; border-radius: 2px; margin-left: .4rem; vertical-align: middle; }

.ah-headline { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.ah-headline h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: .4rem 0 0; }
.ah-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ah-stat { position: relative; padding: 1.3rem 1.4rem; border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg); background: linear-gradient(160deg, var(--ah-charcoal), #121215); overflow: hidden; color: var(--ah-ivory); display: block; transition: border-color .3s, transform .4s var(--ah-ease-out); }
a.ah-stat:hover { color: var(--ah-ivory); border-color: var(--ah-gold-line); transform: translateY(-3px); }
.ah-stat__label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ah-grey); font-weight: 600; }
.ah-stat__value { font-family: var(--ah-font-display); font-size: 2.6rem; line-height: 1.05; margin-top: .4rem; }
.ah-stat--alert { border-color: rgba(217,179,108,.4); }
.ah-stat--alert .ah-stat__value { color: var(--ah-gold-bright); }
.ah-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(198,166,107,.14); }

.ah-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.ah-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--ah-line-strong); }
.ah-timeline li { position: relative; padding: 0 0 1.2rem 1.8rem; font-size: .9rem; }
.ah-timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--ah-obsidian); border: 1px solid var(--ah-gold); }
.ah-timeline time { display: block; font-size: .74rem; color: var(--ah-grey); }

.ah-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 1.4rem 0; }
.ah-progress__step { border-top: 2px solid var(--ah-line-strong); padding-top: .7rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-grey); }
.ah-progress__step.is-done { border-color: var(--ah-success); color: var(--ah-ivory-dim); }
.ah-progress__step.is-current { border-color: var(--ah-gold); color: var(--ah-gold); }
@media (max-width: 575.98px) { .ah-progress { grid-template-columns: repeat(2, 1fr); } }

.ah-ref { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem 1.2rem; border: 1px dashed var(--ah-gold); border-radius: var(--ah-radius); background: rgba(198,166,107,.06); }
.ah-ref code { font-size: 1.35rem; color: var(--ah-gold-bright); letter-spacing: .08em; background: none; }
.ah-copy { background: none; border: 1px solid var(--ah-line-strong); color: var(--ah-ivory-dim); border-radius: 2px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .7rem; }
.ah-copy:hover { border-color: var(--ah-gold); color: var(--ah-ivory); }
.ah-method { display: block; position: relative; border: 1px solid var(--ah-line-strong); border-radius: var(--ah-radius-lg); padding: 1.1rem 1.2rem 1.1rem 3rem; cursor: pointer; transition: border-color .3s, background .3s; }
.ah-method:hover { border-color: var(--ah-gold-line); }
.ah-method input { position: absolute; left: 1.1rem; top: 1.35rem; }
.ah-method:has(input:checked) { border-color: var(--ah-gold); background: rgba(198,166,107,.06); }
.ah-method__panel { display: none; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--ah-line); }
.ah-method:has(input:checked) .ah-method__panel { display: block; }
.no-has .ah-method__panel { display: block; }

.modal-content { background: var(--ah-charcoal); color: var(--ah-ivory); border: 1px solid var(--ah-line-strong); border-radius: var(--ah-radius-lg); box-shadow: var(--ah-shadow-2); }
.modal-header, .modal-footer { border-color: var(--ah-line); }
.modal-title { font-family: var(--ah-font-display); font-size: 1.6rem; }
.modal-backdrop.show { opacity: .7; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.dropdown-menu { background: var(--ah-charcoal); border: 1px solid var(--ah-line-strong); box-shadow: var(--ah-shadow-2); }
.dropdown-item { color: var(--ah-ivory-dim); font-size: .9rem; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(198,166,107,.1); color: var(--ah-ivory); }
.dropdown-divider { border-color: var(--ah-line); }
.nav-tabs { border-color: var(--ah-line); gap: 4px; }
.nav-tabs .nav-link { color: var(--ah-grey); border: 0; border-bottom: 2px solid transparent; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: .8rem 1rem; }
.nav-tabs .nav-link:hover { color: var(--ah-ivory); border-color: transparent; }
.nav-tabs .nav-link.active { background: none; color: var(--ah-ivory); border-bottom-color: var(--ah-gold); }
.accordion { --bs-accordion-bg: transparent; --bs-accordion-color: var(--ah-ivory-dim); --bs-accordion-border-color: var(--ah-line); --bs-accordion-btn-color: var(--ah-ivory); --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--ah-gold); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C6A66B' stroke-width='1.5'%3e%3cpath d='M8 2v12M2 8h12'/%3e%3c/svg%3e"); --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C6A66B' stroke-width='1.5'%3e%3cpath d='M2 8h12'/%3e%3c/svg%3e"); }
.accordion-button { font-family: var(--ah-font-display); font-size: 1.45rem; padding: 1.4rem 0; }
.accordion-body { padding: 0 0 1.6rem; }
.accordion-item { border-left: 0; border-right: 0; }

/* ------------------------------------------------------------ auth */
.ah-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 991.98px) { .ah-auth { grid-template-columns: 1fr; } .ah-auth__art { display: none !important; } }
.ah-auth__art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 72px); isolation: isolate; background: radial-gradient(800px 500px at 30% 20%, rgba(198,166,107,.22), transparent 60%), linear-gradient(160deg, #18171c, #09090b); border-right: 1px solid var(--ah-line); }
.ah-auth__art .ah-frame-float { z-index: -1; }
.ah-auth__form { display: flex; align-items: center; justify-content: center; padding: calc(var(--ah-nav-h) + 24px) var(--ah-gutter) 48px; }
.ah-auth__card { width: 100%; max-width: 440px; }
.ah-auth__card h1 { font-size: clamp(2.2rem, 3.4vw, 3rem); margin: .8rem 0 .6rem; }

/* ------------------------------------------------------------ motion */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ah-ease-out), transform 1.1s var(--ah-ease-out); transition-delay: var(--reveal-delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
[data-depth] { will-change: transform; transition: transform .9s var(--ah-ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ah-hero__reveal > * { opacity: 1; transform: none; }
  .ah-marquee__track { animation: none; }
}
html.ah-reduce-motion *, html.ah-reduce-motion *::before, html.ah-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.ah-reduce-motion [data-reveal], html.ah-reduce-motion .ah-hero__reveal > * { opacity: 1; transform: none; }
html.ah-reduce-motion .ah-marquee__track { animation: none; }

/* utilities */
.ah-gap-sm { gap: .6rem; } .ah-gap { gap: 1rem; }
.ah-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-grey); }
.ah-line-top { border-top: 1px solid var(--ah-line); }
.ah-max-60 { max-width: 60ch; }
.ah-error-code { font-family: var(--ah-font-display); font-size: clamp(7rem, 22vw, 16rem); line-height: .8; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--ah-gold); }

@media print {
  .ah-nav, .ah-footer, .ah-cookie, .ah-shell__side, .ah-shell__top { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (max-width: 767.98px) {
  .ah-hero__stage { opacity: .45; }
  .ah-hero__vignette { background: linear-gradient(180deg, rgba(11,11,13,.6) 0%, rgba(11,11,13,.35) 40%, rgba(11,11,13,.95) 100%); }
}
.ah-shell__top .ah-avatar { width: 36px; height: 36px; font-size: .8rem; }
@media (max-width: 575.98px) {
  .ah-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ah-stat { padding: 1rem; }
  .ah-stat__value { font-size: 2rem; }
}
