/* ============================================================================
   Aviral Asthana Portfolio — SIFT EDITION (final theme)
   Palette : black #0A0A0A · neon lime #D7FF3A · dark card #161616
   Type    : Inter 800/900 + Playfair Display Italic accents + JetBrains Mono
   Reuses  : all .av-* class names from the original modular sections so every
             section file renders unchanged under the Sift visual language.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding-left: 56px; }
@media (max-width: 900px) { body { padding-left: 0; } }

:root {
  --bg-base:        #0A0A0A;
  --bg-elevated:    #141414;
  --bg-3:           #1A1A1A;
  --bg-card:        #161616;
  --surface-glass:  rgba(255,255,255,.04);
  --border-glass:   rgba(255,255,255,.08);
  --rule:           rgba(255,255,255,.08);
  --text-1:         #FFFFFF;
  --text-2:         #B5B5B5;
  --text-3:         #8A8A8A;
  --accent-1:       #D7FF3A;
  --accent-2:       #B6FFEC;
  --accent-3:       #FF61E1;
  --gradient-hero:  linear-gradient(135deg, #D7FF3A 0%, #B6FFEC 100%);
  --lime:           #D7FF3A;
  --lime-dim:       rgba(215,255,58,.12);
  --success:        #00FFA3;
  --warning:        #FFB800;
  --danger:         #FF4757;
}

.av-body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: #000; }

/* Italic Playfair accents */
.av-section__title em, .av-hero__name-text em, .av-detail__title em, .av-italic {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: none;
}

/* Skip link */
.av-skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999;
  background: var(--lime); color: #000; padding: .6rem 1rem;
  border-radius: 4px; font-weight: 700;
  transform: translateY(-200%); transition: transform .25s;
}
.av-skip:focus { transform: translateY(0); }

.av-progress {
  position: fixed; left: 0; top: 0; right: 0; height: 2px;
  background: var(--lime); transform-origin: 0 50%;
  transform: scaleX(0); z-index: 100;
  box-shadow: 0 0 12px rgba(215,255,58,.4);
}

.av-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  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='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .4; mix-blend-mode: overlay;
}

.av-cursor, .av-cursor-ring { display: none !important; }
body { cursor: auto !important; }
a, button, [role="button"] { cursor: pointer !important; }

/* ============================================================================
   SIDEBAR RAIL + NAV
   ========================================================================== */
.av-rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: 56px; z-index: 40;
  background: var(--bg-elevated); border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; padding: 1.4rem 0;
}
.av-rail__logo { width: 32px; height: 32px; display: grid; place-items: center; color: var(--lime); margin-bottom: 1.5rem; }
.av-rail__logo svg { width: 100%; height: 100%; fill: currentColor; }
.av-rail__socials { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.av-rail__socials a { width: 30px; height: 30px; display: grid; place-items: center; background: var(--bg-3); border-radius: 6px; color: var(--text-2); transition: background .2s, color .2s; }
.av-rail__socials a:hover { background: var(--lime); color: #000; }
.av-rail__socials i, .av-rail__socials svg { width: 14px; height: 14px; }
.av-rail__txt { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; margin-bottom: 2rem; font-size: .68rem; letter-spacing: .35em; color: var(--text-2); text-transform: uppercase; font-weight: 500; }
@media (max-width: 900px) { .av-rail { display: none; } }

.av-nav {
  position: fixed; top: 0; left: 56px; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10,10,10,0.7); backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--rule);
  transition: padding .25s ease, background .25s ease;
}
@media (max-width: 900px) { .av-nav { left: 0; } }
.av-nav.is-shrunk { padding: .8rem clamp(1rem, 4vw, 2.5rem); background: rgba(10,10,10,0.92); }
.av-nav__brand { display: flex; align-items: center; gap: .55rem; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.av-nav__brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--lime); }
.av-nav__brand-mark svg { width: 100%; height: 100%; fill: currentColor; }
.av-nav__brand-text { color: var(--text-1); }
.av-nav__brand-text span { color: var(--lime); }
.av-nav__links { display: flex; align-items: center; gap: 1.5rem; }
.av-nav__links a { font-size: .8rem; color: var(--text-2); font-weight: 600; position: relative; padding: .35rem 0; transition: color .2s; text-transform: uppercase; letter-spacing: .1em; }
.av-nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; }
.av-nav__links a:hover, .av-nav__links a.is-active { color: var(--lime); }
.av-nav__links a:hover::after, .av-nav__links a.is-active::after { transform: scaleX(1); }
.av-nav__cta { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 4px; background: var(--lime); color: #000; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, transform .15s, box-shadow .25s; }
.av-nav__cta:hover { background: #E8FF6B; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(215,255,58,.25); }
.av-nav__cta i { width: 15px; height: 15px; }
.av-nav__burger { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg-elevated); color: var(--text-1); cursor: pointer; display: grid; place-items: center; }
.av-nav__burger span { display: none; }
.av-nav__burger i { width: 18px; height: 18px; }

/* Mobile/portrait-tablet brand text (matches footer widget 1 — Playfair italic) */
.av-nav__brand-mobile {
  display: none;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500;
  font-size: 1.25rem; letter-spacing: -.01em; color: var(--text-1); line-height: 1;
}
.av-nav__brand-mobile-dot { color: var(--lime); font-style: normal; }

@media (max-width: 900px) {
  .av-nav__links, .av-nav__cta { display: none; }
  .av-nav__brand-mobile { display: inline-flex; align-items: center; }
}

.av-mobile-nav { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,10,.97); backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transition: opacity .25s ease; display: flex; flex-direction: column; }
.av-mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.av-mobile-nav__inner { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4rem clamp(1.5rem, 6vw, 4rem) 2rem; gap: .3rem; max-width: 1240px; margin: 0 auto; width: 100%; }
.av-mobile-nav__link { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; color: var(--text-1); padding: .25rem 0; transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 1rem; }
.av-mobile-nav__link:hover { color: var(--lime); transform: translateX(8px); }
.av-mobile-nav__link em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--lime); }
.av-mobile-nav__cta { margin-top: 1.5rem; padding: .85rem 1.4rem; border-radius: 4px; background: var(--lime); color: #000; font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }

/* ============================================================================
   GENERIC SECTIONS
   ========================================================================== */
.av-section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 3.5rem); position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.av-section--tight { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.av-section--placeholder { opacity: .55; }
.av-section__head { max-width: 980px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.av-section__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--lime); text-transform: uppercase; font-size: .76rem; letter-spacing: .25em; margin-bottom: 1rem; font-weight: 600; }
.av-section__eyebrow::before { content: '✱'; color: var(--lime); }
.av-section__title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 3.4rem); margin: 0 0 .8rem; line-height: 1.08; letter-spacing: -.025em; text-transform: uppercase; color: var(--text-1); }
.av-section__title em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; background: linear-gradient(135deg, var(--lime), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.av-section__sub { font-size: clamp(.95rem, 1.4vw, 1.1rem); color: var(--text-2); margin: 0; max-width: 64ch; margin-left: auto; margin-right: auto; }
.av-section__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.4rem; }

/* Buttons */
.av-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 4px; font-weight: 700; font-size: .85rem; border: 1px solid transparent; cursor: pointer; letter-spacing: .06em; text-transform: uppercase; transition: transform .15s ease, box-shadow .25s ease, background .2s, color .2s, border-color .2s; }
.av-btn i { width: 16px; height: 16px; }
.av-btn--primary { background: var(--lime); color: #000; box-shadow: 0 6px 18px rgba(215,255,58,.18); }
.av-btn--primary:hover { transform: translateY(-2px); background: #E8FF6B; box-shadow: 0 12px 26px rgba(215,255,58,.28); }
.av-btn--ghost { background: transparent; color: var(--text-1); border-color: var(--rule); }
.av-btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.av-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--surface-glass); border: 1px solid var(--rule); color: var(--text-2); font-size: .8rem; font-weight: 500; }
.av-chip i { width: 13px; height: 13px; color: var(--lime); }

.av-card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; transition: border-color .25s, transform .25s, background .25s; position: relative; overflow: hidden; }
.av-card:hover { border-color: var(--lime); transform: translateY(-3px); background: #1A1A1A; }

.av-reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.av-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .av-reveal, .av-reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; } }
.av-tilt { transition: transform .25s ease; will-change: transform; }

/* ============================================================================
   HERO
   ========================================================================== */
.av-hero { position: relative; min-height: 92vh; padding: clamp(7rem, 11vw, 9rem) clamp(1rem, 5vw, 3.5rem) 4rem; display: flex; align-items: center; overflow: hidden; }
.av-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.av-hero__orb { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(130px); opacity: .25; mix-blend-mode: screen; animation: orb 22s ease-in-out infinite alternate; }
.av-hero__orb--1 { background: radial-gradient(circle, var(--lime) 0%, transparent 60%); top: -25vw; left: -10vw; opacity: .15; }
.av-hero__orb--2 { background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%); bottom: -25vw; right: -10vw; opacity: .1; animation-delay: -10s; }
.av-hero__orb--3 { display: none; }
@keyframes orb { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px,-30px) scale(1.1); } }
.av-hero__grid { position: absolute; inset: 0; opacity: .12; background: linear-gradient(rgba(215,255,58,.06) 1px, transparent 1px) 0 0/64px 64px, linear-gradient(90deg, rgba(215,255,58,.06) 1px, transparent 1px) 0 0/64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.av-hero__rays { display: none; }

/* Floating tech icons drifting in the hero background */
.av-hero__icons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.av-hero__icon {
  position: absolute; width: 24px; height: 24px;
  color: var(--lime); opacity: .045;
  filter: drop-shadow(0 0 4px rgba(215,255,58,.08));
  will-change: transform;
}
.av-hero__icon--1  { top:  8%; left:  6%; animation: hero-float-a 22s ease-in-out infinite; }
.av-hero__icon--2  { top: 18%; left: 84%; animation: hero-float-b 26s ease-in-out infinite; width: 28px; height: 28px; }
.av-hero__icon--3  { top: 32%; left: 12%; animation: hero-float-c 19s ease-in-out infinite; width: 30px; height: 30px; }
.av-hero__icon--4  { top: 64%; left: 78%; animation: hero-float-d 24s ease-in-out infinite; }
.av-hero__icon--5  { top: 78%; left:  8%; animation: hero-float-a 28s ease-in-out infinite reverse; width: 26px; height: 26px; }
.av-hero__icon--6  { top: 12%; left: 56%; animation: hero-float-b 21s ease-in-out infinite; }
.av-hero__icon--7  { top: 84%; left: 44%; animation: hero-float-c 18s ease-in-out infinite reverse; }
.av-hero__icon--8  { top: 48%; left: 92%; animation: hero-float-d 25s ease-in-out infinite reverse; }
.av-hero__icon--9  { top: 52%; left:  3%; animation: hero-float-a 20s ease-in-out infinite; }
.av-hero__icon--10 { top: 26%; left: 38%; animation: hero-float-b 23s ease-in-out infinite reverse; }
.av-hero__icon--11 { top:  4%; left: 30%; animation: hero-float-c 27s ease-in-out infinite; }
.av-hero__icon--12 { top: 22%; left: 22%; animation: hero-float-d 19s ease-in-out infinite reverse; width: 26px; height: 26px; }
.av-hero__icon--13 { top: 40%; left: 48%; animation: hero-float-a 24s ease-in-out infinite reverse; }
.av-hero__icon--14 { top: 60%; left: 18%; animation: hero-float-b 22s ease-in-out infinite; width: 28px; height: 28px; }
.av-hero__icon--15 { top: 70%; left: 62%; animation: hero-float-c 20s ease-in-out infinite reverse; }
.av-hero__icon--16 { top:  6%; left: 72%; animation: hero-float-d 26s ease-in-out infinite; }
.av-hero__icon--17 { top: 36%; left: 66%; animation: hero-float-a 21s ease-in-out infinite; }
.av-hero__icon--18 { top: 88%; left: 24%; animation: hero-float-b 25s ease-in-out infinite reverse; width: 26px; height: 26px; }
.av-hero__icon--19 { top: 14%; left: 96%; animation: hero-float-c 23s ease-in-out infinite; }
.av-hero__icon--20 { top: 56%; left: 50%; animation: hero-float-d 28s ease-in-out infinite reverse; }
.av-hero__icon--21 { top: 10%; left: 16%; animation: hero-float-b 24s ease-in-out infinite; }
.av-hero__icon--22 { top: 28%; left: 60%; animation: hero-float-c 21s ease-in-out infinite reverse; width: 26px; height: 26px; }
.av-hero__icon--23 { top: 46%; left: 28%; animation: hero-float-d 23s ease-in-out infinite; }
.av-hero__icon--24 { top: 72%; left: 36%; animation: hero-float-a 26s ease-in-out infinite reverse; }
.av-hero__icon--25 { top: 80%; left: 70%; animation: hero-float-b 19s ease-in-out infinite; }
.av-hero__icon--26 { top: 20%; left: 46%; animation: hero-float-c 25s ease-in-out infinite reverse; }
.av-hero__icon--27 { top: 92%; left: 86%; animation: hero-float-d 22s ease-in-out infinite; }
.av-hero__icon--28 { top: 44%; left: 80%; animation: hero-float-a 27s ease-in-out infinite; width: 26px; height: 26px; }
.av-hero__icon--29 { top: 66%; left:  6%; animation: hero-float-b 20s ease-in-out infinite reverse; }
.av-hero__icon--30 { top:  2%; left: 48%; animation: hero-float-c 28s ease-in-out infinite; }

@keyframes hero-float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(40px, -28px) rotate(8deg); }
  50%      { transform: translate(-20px, -48px) rotate(-6deg); }
  75%      { transform: translate(-44px, 18px) rotate(4deg); }
}
@keyframes hero-float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(-36px, 30px) rotate(-10deg); }
  60%      { transform: translate(28px, 42px) rotate(6deg); }
}
@keyframes hero-float-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(24px, 36px) rotate(12deg); }
  66%      { transform: translate(-32px, -20px) rotate(-8deg); }
}
@keyframes hero-float-d {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40%      { transform: translate(-26px, -34px) rotate(-12deg); }
  80%      { transform: translate(36px, 22px) rotate(10deg); }
}
@media (max-width: 700px) {
  .av-hero__icon { opacity: .035; }
  .av-hero__icon--3, .av-hero__icon--8, .av-hero__icon--10,
  .av-hero__icon--13, .av-hero__icon--17, .av-hero__icon--20,
  .av-hero__icon--23, .av-hero__icon--26, .av-hero__icon--30 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .av-hero__icon { animation: none !important; }
}
.av-hero__wrap { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; }
@media (max-width: 900px) {
  .av-hero__wrap { grid-template-columns: 1fr; }
}

/* ============================================================================
   av-hero--bg  →  Full-width photo background, left-aligned copy, no right photo
   ========================================================================== */
.av-hero--bg {
  background-image: var(--hero-bg), linear-gradient(135deg, #0A0A0A, #1a1a1a);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.av-hero--bg .av-hero__wrap {
  grid-template-columns: 1fr;
  max-width: 1280px;
  align-items: center;
  min-height: 80vh;
}
.av-hero--bg .av-hero__copy {
  max-width: 640px;
  /* Soft dark gradient pad behind the text only — keeps the rest of the photo
     visible while ensuring the copy stays legible on any background. */
  padding: 2rem 2.4rem;
  background: linear-gradient(135deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.55) 70%, rgba(10,10,10,0) 100%);
  border-radius: 18px;
  backdrop-filter: blur(2px);
}
.av-hero--bg .av-hero__name-text { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
@media (max-width: 900px) {
  .av-hero--bg { min-height: 100vh; background-position: 60% center; }
  .av-hero--bg .av-hero__copy { padding: 1.4rem 1.6rem; }
}
.av-hero__pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface-glass); border: 1px solid var(--rule); padding: .4rem .9rem; border-radius: 999px; font-size: .78rem; color: var(--text-2); margin-bottom: 1.5rem; font-weight: 500; }
.av-hero__pill-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 8px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.av-hero__name { margin: 0 0 1rem; font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -.025em; line-height: 1; text-transform: uppercase; }
.av-hero__name-hi { display: block; font-size: clamp(.95rem, 1.4vw, 1.1rem); color: var(--text-2); font-weight: 500; margin-bottom: .7rem; letter-spacing: .05em; text-transform: none; }
.av-hero__name-hi::before { content: '✱ '; color: var(--lime); }
.av-hero__name-text { display: block; font-size: clamp(2.5rem, 8vw, 5.4rem); color: var(--text-1); font-weight: 900; }
.av-hero__name-text em { display: block; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; background: linear-gradient(135deg, var(--lime), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-top: .15em; font-size: .92em; }
.av-hero__type { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--text-1); font-size: clamp(.92rem, 1.6vw, 1.1rem); margin: 0 0 2rem; min-height: 1.8em; padding-left: 1rem; border-left: 2px solid var(--lime); }
.av-hero__caret { color: var(--lime); animation: caret 1s infinite; margin-left: 2px; }
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.av-hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.av-hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.av-hero__visual { position: relative; }
.av-hero__portrait { position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #1F2937, #0A0A0A); border: 1px solid var(--lime); box-shadow: 0 0 0 12px var(--bg-base), 0 0 0 13px var(--lime), 0 30px 80px rgba(215,255,58,.15); }
.av-hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.av-hero__portrait-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.av-hero__portrait-placeholder span { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: clamp(6rem, 16vw, 12rem); color: var(--text-1); opacity: .35; line-height: 1; }
.av-hero__portrait-placeholder p { color: var(--text-3); font-size: .85rem; max-width: 220px; }
.av-hero__portrait-frame, .av-hero__portrait-glow { display: none; }
.av-hero__portrait-badge { position: absolute; bottom: 8%; left: 4%; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); border: 1px solid var(--rule); padding: .5rem 1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--text-1); z-index: 3; }
.av-hero__portrait-badge i { width: 14px; height: 14px; color: var(--lime); }
.av-hero__portrait-badge--alt { left: auto; right: 4%; top: 8%; bottom: auto; }
.av-hero__visual::before { content: '✱'; position: absolute; top: -2%; left: -2%; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--lime); z-index: 4; filter: drop-shadow(0 0 18px rgba(215,255,58,.5)); background: var(--bg-base); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; line-height: 1; }
.av-hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--text-3); font-size: .72rem; font-family: 'JetBrains Mono', monospace; letter-spacing: .15em; text-transform: uppercase; }
.av-hero__scroll span { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--lime)); animation: scroll-line 2s infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================================
   ABOUT
   ========================================================================== */
.av-about { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; max-width: 1180px; margin: 0 auto; }
.av-about__col { display: flex; flex-direction: column; gap: 1.2rem; }
.av-about__photo-cta { align-self: flex-start; }
@media (max-width: 900px) { .av-about { grid-template-columns: 1fr; } .av-about__photo-cta { align-self: center; } }

/* Scroll-driven line-by-line highlight for the long bio */
.av-about__long--scroll .av-about__para {
  color: var(--text-3);
  transition: color .35s ease, opacity .35s ease;
  opacity: .5;
}
.av-about__long--scroll .av-about__para.is-active { color: var(--text-1); opacity: 1; }
.av-about__long--scroll .av-about__para.is-active::before {
  content: ''; display: inline-block; width: 4px; height: 1em;
  background: var(--lime); margin-right: .6rem; vertical-align: middle;
  border-radius: 2px;
}
.av-about__photo { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1F2937, #0A0A0A); border: 1px solid var(--rule); }
.av-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.av-about__photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-style: italic; font-size: 8rem; color: var(--lime); opacity: .85; }
.av-about__photo-ring { display: none; }
.av-about__photo::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--lime); z-index: 2; }
.av-about__lead { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--text-1); margin: 0 0 1.5rem; }
.av-about__long p { color: var(--text-2); margin: 0 0 1.1rem; font-size: .98rem; line-height: 1.85; }
.av-about__vision { margin-top: 2rem; padding: 1.4rem 1.6rem; background: var(--bg-card); border-left: 3px solid var(--lime); border-radius: 0 12px 12px 0; position: relative; }
.av-about__vision i { position: absolute; top: 1rem; right: 1.2rem; width: 28px; height: 28px; color: var(--lime); opacity: .25; }
.av-about__vision p { margin: 0; color: var(--text-1); font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05rem; line-height: 1.6; }
.av-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 2.5rem auto 0; max-width: 1180px; }
.av-facts__card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; transition: border-color .2s, transform .2s, background .2s; }
.av-facts__card:hover { border-color: var(--lime); transform: translateY(-2px); background: #1A1A1A; }
.av-facts__icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime); }
.av-facts__icon i { width: 18px; height: 18px; }
.av-facts__label { font-size: .66rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.av-facts__value { color: var(--text-1); font-weight: 500; font-size: .9rem; }

/* ============================================================================
   METRICS
   ========================================================================== */
.av-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; max-width: 1280px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.av-metric { padding: 1.8rem 1.4rem; position: relative; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .25s ease; }
.av-metric:hover { background: #1A1A1A; }
.av-metric::after { display: none; }
.av-metric__icon { width: 38px; height: 38px; border-radius: 8px; background: var(--lime-dim); color: var(--lime); display: grid; place-items: center; margin-bottom: 1rem; }
.av-metric__icon i { width: 20px; height: 20px; }
.av-metric__num { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: var(--text-1); }
.av-metric__suffix { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; color: var(--lime); margin-left: 2px; }
.av-metric__label { font-size: .78rem; color: var(--text-3); margin-top: .5rem; line-height: 1.3; }

/* ============================================================================
   VENTURES
   ========================================================================== */
.av-ventures { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; }
.av-venture { position: relative; padding: 1.6rem 1.6rem 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; transition: border-color .3s, transform .3s, background .25s; overflow: hidden; }
.av-venture::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--lime); }
.av-venture:hover { border-color: var(--lime); transform: translateY(-4px); background: #1A1A1A; }
.av-venture__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.av-venture__mark { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-weight: 400; font-style: italic; font-size: 1.6rem; background: var(--lime-dim); color: var(--lime); border: 1px solid rgba(215,255,58,.3); }
.av-venture__logo { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: var(--bg-3); padding: .4rem; }
.av-venture__name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; margin: 0 0 .2rem; }
.av-venture__role { font-size: .8rem; color: var(--text-3); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.av-venture__desc { color: var(--text-2); font-size: .92rem; line-height: 1.65; margin: 0 0 1.2rem; }
.av-venture__stats { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.av-venture__stats li { display: flex; justify-content: space-between; padding: .55rem .8rem; background: rgba(255,255,255,.03); border-radius: 6px; font-size: .8rem; }
.av-venture__stat-label { color: var(--text-3); }
.av-venture__stat-value { color: var(--text-1); font-weight: 500; font-family: 'JetBrains Mono', monospace; }
.av-venture__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--lime); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.av-venture__link i { width: 14px; height: 14px; transition: transform .2s; }
.av-venture__link:hover i { transform: translate(3px, -3px); }

/* ============================================================================
   TIMELINE
   ========================================================================== */
.av-timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; position: relative; }
.av-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--lime), transparent); transform: translateX(-50%); }
.av-timeline__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1rem 0; }
.av-timeline__item--right .av-timeline__card { grid-column: 2; }
.av-timeline__item--left  .av-timeline__card { grid-column: 1; }
.av-timeline__dot { position: absolute; left: 50%; top: 1.5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime), 0 0 0 4px var(--bg-base); transform: translateX(-50%); }
.av-timeline__card { padding: 1.3rem 1.5rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 10px; transition: border-color .25s, transform .25s, background .25s; }
.av-timeline__card:hover { border-color: var(--lime); transform: translateY(-3px); background: #1A1A1A; }
.av-timeline__year { font-family: 'JetBrains Mono', monospace; font-size: .76rem; color: var(--lime); margin-bottom: .4rem; letter-spacing: .1em; text-transform: uppercase; }
.av-timeline__role { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 .2rem; }
.av-timeline__org { color: var(--text-2); font-size: .9rem; margin-bottom: .8rem; }
.av-timeline__summary { color: var(--text-3); font-size: .88rem; line-height: 1.6; margin: 0; }
@media (max-width: 800px) {
  .av-timeline::before { left: 20px; }
  .av-timeline__item { grid-template-columns: 1fr; padding-left: 50px; }
  .av-timeline__item--right .av-timeline__card, .av-timeline__item--left .av-timeline__card { grid-column: 1; }
  .av-timeline__dot { left: 20px; }
}

/* ============================================================================
   PROJECTS
   ========================================================================== */
.av-projects__filter { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 0 auto 2.5rem; max-width: 1200px; }
.av-projects__filter button { background: var(--bg-card); border: 1px solid var(--rule); color: var(--text-2); padding: .5rem 1.05rem; border-radius: 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; transition: color .2s, border-color .2s, background .2s; }
.av-projects__filter button:hover { color: var(--text-1); border-color: var(--lime); }
.av-projects__filter button.is-active { background: var(--lime); color: #000; border-color: transparent; }
.av-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; }
.av-project { position: relative; }
.av-project--featured { grid-column: span 2; }
@media (max-width: 900px) { .av-project--featured { grid-column: span 1; } }
.av-project__inner { display: flex; flex-direction: column; height: 100%; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s, background .25s; }
.av-project__inner:hover { border-color: var(--lime); transform: translateY(-4px); background: #1A1A1A; box-shadow: 0 18px 40px rgba(215,255,58,.06); }
.av-project__cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, rgba(215,255,58,.08), rgba(255,255,255,.02)); }
.av-project--featured .av-project__cover { aspect-ratio: 21/9; }
.av-project__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.av-project__inner:hover .av-project__cover img { transform: scale(1.04); }
.av-project__cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--lime); opacity: .55; }
.av-project__cover-placeholder i { width: 56px; height: 56px; }
.av-project__featured-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .35rem; background: var(--lime); color: #000; font-weight: 700; font-size: .68rem; padding: .35rem .75rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
.av-project__featured-badge i { width: 14px; height: 14px; }
.av-project__cat-badge { position: absolute; bottom: 1rem; right: 1rem; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); color: var(--text-1); font-size: .68rem; padding: .25rem .7rem; border-radius: 4px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--rule); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.av-project__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.av-project__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0 0 .4rem; line-height: 1.25; }
.av-project__client { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-3); font-size: .72rem; margin-bottom: .8rem; font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.av-project__client i { width: 13px; height: 13px; }
.av-project__desc { color: var(--text-2); font-size: .9rem; line-height: 1.65; margin: 0 0 1rem; }
.av-project__tech { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.av-project__tech span { font-family: 'JetBrains Mono', monospace; font-size: .7rem; padding: .25rem .55rem; background: var(--lime-dim); color: var(--lime); border-radius: 4px; }
.av-project__quote { margin: 0 0 1rem; padding: .9rem 1.1rem .9rem 2rem; position: relative; background: rgba(215,255,58,.04); border-left: 2px solid var(--lime); border-radius: 0 8px 8px 0; }
.av-project__quote i { position: absolute; top: .85rem; left: .55rem; width: 18px; height: 18px; color: var(--lime); opacity: .6; }
.av-project__quote p { margin: 0 0 .35rem; color: var(--text-1); font-family: 'Playfair Display', serif; font-style: italic; font-size: .92rem; line-height: 1.55; }
.av-project__quote cite { color: var(--text-3); font-size: .76rem; font-style: normal; }
.av-project__cta { margin-top: auto; padding-top: .8rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--lime); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.av-project__cta i { width: 14px; height: 14px; transition: transform .2s; }
.av-project__inner:hover .av-project__cta i { transform: translate(3px, -3px); }
.av-project.is-hidden { display: none; }

/* ============================================================================
   SKILLS
   ========================================================================== */
.av-skills, .av-skills--preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; }
.av-skill-group { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem 1.5rem; transition: border-color .25s, background .25s; }
.av-skill-group:hover { border-color: var(--lime); background: #1A1A1A; }
.av-skill-group__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.av-skill-group__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime); }
.av-skill-group__icon i { width: 22px; height: 22px; }
.av-skill-group__name { font-family: 'Inter', sans-serif; font-weight: 700; margin: 0 0 .15rem; font-size: 1.05rem; }
.av-skill-group__count { font-size: .7rem; color: var(--text-3); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.av-skill-group__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.av-skill__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.av-skill__name { font-size: .85rem; color: var(--text-1); }
.av-skill__pct { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--lime); }
.av-skill__bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; position: relative; }
.av-skill__bar span { display: block; height: 100%; background: var(--lime); border-radius: 4px; box-shadow: 0 0 10px rgba(215,255,58,.5); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.av-skill-group.is-in .av-skill__bar span { transform: scaleX(1); }
.av-skill-group__more { color: var(--text-3); font-size: .8rem; padding-top: .55rem; border-top: 1px dashed var(--rule); margin-top: .55rem; text-align: center; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================================
   RESEARCH
   ========================================================================== */
.av-research { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .av-research { grid-template-columns: 1fr; } }
.av-paper__cover { display: block; margin: -1.6rem -1.6rem 1.2rem; overflow: hidden; aspect-ratio: 16/9; }
.av-paper__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.av-paper__cover:hover img { transform: scale(1.04); }
.av-paper { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; padding: 2rem 2.2rem; position: relative; overflow: hidden; transition: border-color .25s, background .25s; }
.av-paper:hover { border-color: var(--lime); background: #1A1A1A; }
.av-paper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--lime); }
.av-paper__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.av-paper__type { display: inline-flex; align-items: center; gap: .4rem; color: var(--lime); font-family: 'JetBrains Mono', monospace; font-size: .76rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.av-paper__type i { width: 16px; height: 16px; }
.av-paper__year { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 2.2rem; color: var(--lime); }
.av-paper__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0 0 1rem; line-height: 1.3; }
.av-paper__title a { color: var(--text-1); }
.av-paper__title a:hover { color: var(--lime); }
.av-paper__authors, .av-paper__journal { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--text-2); font-size: .9rem; margin: 0 0 .55rem; }
.av-paper__authors i, .av-paper__journal i { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; }
.av-paper__authors strong { color: var(--lime); }
.av-paper__journal em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; color: var(--text-1); }
.av-paper__abstract { color: var(--text-2); font-size: .94rem; line-height: 1.85; margin: 1.2rem 0; }
.av-paper__badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.av-paper__badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--lime-dim); border: 1px solid rgba(215,255,58,.35); padding: .45rem .9rem; border-radius: 4px; font-size: .76rem; color: var(--lime); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.av-paper__badge i { width: 14px; height: 14px; }
.av-paper__institutions { margin: 1.2rem 0; padding: 1rem 1.2rem; background: rgba(255,255,255,.02); border-radius: 8px; border: 1px solid var(--rule); }
.av-paper__inst-label { color: var(--text-3); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.av-paper__inst-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.av-paper__inst-list span { font-family: 'JetBrains Mono', monospace; font-size: .72rem; padding: .3rem .6rem; background: var(--lime-dim); color: var(--text-1); border-radius: 4px; }
.av-paper__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }

/* ============================================================================
   BOOKS
   ========================================================================== */
.av-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; max-width: 1280px; margin: 0 auto; }
.av-book--featured { grid-column: span 2; }
@media (max-width: 900px) { .av-book--featured { grid-column: span 1; } }
.av-book--soon { opacity: .65; }
.av-book__inner { display: flex; flex-direction: column; height: 100%; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.av-book__inner:hover { border-color: var(--lime); transform: translateY(-4px); background: #1A1A1A; }
.av-book__cover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(160deg, rgba(215,255,58,.22), rgba(182,255,236,.12), rgba(10,10,10,.6)); }
.av-book--featured .av-book__cover { aspect-ratio: 16/10; }
.av-book__cover img { width: 100%; height: 100%; object-fit: cover; }
.av-book__cover-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; color: var(--text-1); }
.av-book__cover-placeholder i { width: 42px; height: 42px; color: var(--lime); opacity: .9; }
.av-book__cover-placeholder div { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.av-book__badge { position: absolute; top: .9rem; left: .9rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.av-book__badge i { width: 12px; height: 12px; }
.av-book__badge--bs   { background: var(--lime); color: #000; }
.av-book__badge--new  { background: var(--accent-2); color: #000; }
.av-book__badge--soon { background: rgba(255,255,255,.1); color: var(--text-1); border: 1px solid var(--rule); }
.av-book__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.av-book__genre { font-family: 'JetBrains Mono', monospace; font-size: .66rem; color: var(--lime); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; font-weight: 600; }
.av-book__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 .25rem; line-height: 1.25; }
.av-book__subtitle { font-family: 'Playfair Display', serif; font-style: italic; color: var(--text-3); font-size: .85rem; margin-bottom: .7rem; }
.av-book__desc { color: var(--text-2); font-size: .85rem; line-height: 1.55; margin: 0 0 .9rem; flex: 1; }
.av-book__meta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .9rem; color: var(--text-3); font-size: .7rem; }
.av-book__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.av-book__meta i { width: 12px; height: 12px; }
.av-book__cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--lime); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.av-book__cta i { width: 14px; height: 14px; transition: transform .2s; }
.av-book__inner:hover .av-book__cta i { transform: translate(3px, -3px); }

/* ============================================================================
   ACHIEVEMENTS
   ========================================================================== */
.av-achievements { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; }
.av-award { display: block; text-decoration: none; color: inherit; position: relative; padding: 2rem 1.8rem 1.8rem 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; cursor: pointer; }
.av-award:hover { transform: translateY(-4px); border-color: var(--lime); }
.av-award:hover { border-color: var(--lime); transform: translateY(-3px); background: #1A1A1A; }
.av-award__ribbon { position: absolute; top: -10px; right: 24px; width: 50px; height: 70px; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); display: grid; place-items: center; }
.av-award__ribbon i { width: 22px; height: 22px; color: #000; margin-top: -8px; }
.av-award__cat { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: .66rem; color: var(--lime); text-transform: uppercase; letter-spacing: .15em; margin-bottom: .4rem; font-weight: 600; }
.av-award__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0 0 .8rem; line-height: 1.3; padding-right: 70px; }
.av-award__desc { color: var(--text-2); font-size: .88rem; line-height: 1.65; margin: 0 0 1rem; }
.av-award__meta { display: flex; flex-direction: column; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.av-award__row { display: flex; align-items: flex-start; gap: .7rem; }
.av-award__row i { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.av-award__row div { display: flex; flex-direction: column; gap: .15rem; }
.av-award__row span { color: var(--text-3); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-family: 'JetBrains Mono', monospace; }
.av-award__row strong { color: var(--text-1); font-size: .85rem; font-weight: 500; }

/* ============================================================================
   CERTIFICATIONS
   ========================================================================== */
.av-certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 1280px; margin: 0 auto; }
@media (max-width: 1100px) { .av-certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .av-certs { grid-template-columns: 1fr; } }
.av-cert { display: block; text-decoration: none; color: inherit; position: relative; padding: 0 0 1.1rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; cursor: pointer; }
.av-cert:hover { border-color: var(--lime); transform: translateY(-3px); background: #1A1A1A; }
.av-cert__body { padding: 0 1.2rem; min-width: 0; }
.av-cert__logo { width: 54px; height: 54px; flex-shrink: 0; border-radius: 10px; background: var(--lime-dim); border: 1px solid rgba(215,255,58,.25); display: grid; place-items: center; color: var(--lime); }
.av-cert__logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.av-cert__logo i { width: 22px; height: 22px; }
.av-cert__body { flex: 1; min-width: 0; }
.av-cert__issuer { color: var(--lime); font-family: 'JetBrains Mono', monospace; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; font-weight: 600; }
.av-cert__title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem; margin: 0; line-height: 1.35; }
.av-cert__link { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 8px; color: var(--text-3); background: rgba(255,255,255,.03); transition: color .2s, background .2s; }
.av-cert__link:hover { color: var(--lime); background: var(--lime-dim); }
.av-cert__link i { width: 16px; height: 16px; }

/* ============================================================================
   NEWS · MARQUEE · GALLERY · SPEAKING · BEYOND · IMPACT · TESTIMONIALS
   ========================================================================== */
.av-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; }
.av-news__card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.av-news__card:hover { border-color: var(--lime); transform: translateY(-3px); background: #1A1A1A; }
.av-news__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, rgba(215,255,58,.08), rgba(255,255,255,.02)); }
.av-news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.av-news__thumb-placeholder { width:100%; height:100%; display:grid; place-items:center; color: var(--lime); opacity:.55; }
.av-news__thumb-placeholder i { width: 42px; height: 42px; }
.av-news__type-badge { position: absolute; top: .85rem; left: .85rem; display: inline-flex; align-items: center; gap: .35rem; background: rgba(10,10,10,.85); border: 1px solid var(--rule); color: var(--text-1); font-size: .64rem; padding: .25rem .6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.av-news__type-badge i { width: 12px; height: 12px; color: var(--lime); }
.av-news__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.av-news__meta { display: flex; flex-wrap: wrap; gap: .7rem; color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: .66rem; margin-bottom: .55rem; text-transform: uppercase; letter-spacing: .08em; }
.av-news__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.02rem; margin: 0 0 1rem; line-height: 1.35; flex: 1; }
.av-news__cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--lime); font-weight: 700; font-size: .76rem; margin-top: auto; text-transform: uppercase; letter-spacing: .08em; }
.av-news__cta i { width: 14px; height: 14px; transition: transform .2s; }
.av-news__card:hover .av-news__cta i { transform: translate(3px,-3px); }
.av-marquee { max-width: 1400px; margin: 0 auto; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 1rem 0; }
.av-marquee__track { display: flex; gap: 3rem; animation: av-marquee 40s linear infinite; width: max-content; }
.av-marquee:hover .av-marquee__track { animation-play-state: paused; }
@keyframes av-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.av-marquee__item { flex-shrink: 0; min-width: 160px; height: 64px; display: grid; place-items: center; padding: 0 1.6rem; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--rule); transition: border-color .2s, color .2s; color: var(--text-2); font-family: 'Inter', sans-serif; font-weight: 700; }
.av-marquee__item:hover { border-color: var(--lime); color: var(--lime); }
.av-marquee__item img { max-height: 32px; max-width: 120px; filter: grayscale(1) opacity(.7); transition: filter .2s; }
.av-marquee__item:hover img { filter: grayscale(0) opacity(1); }
.av-marquee__name { white-space: nowrap; font-size: 1rem; }
.av-gallery-albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; }
.av-gallery-album__cover { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, rgba(215,255,58,.08), rgba(255,255,255,.02)); border: 1px solid var(--rule); cursor: pointer; transition: border-color .25s, transform .25s; }
.av-gallery-album__cover:hover { border-color: var(--lime); transform: translateY(-3px); }
.av-gallery-album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.av-gallery-album__cover:hover img { transform: scale(1.05); }
.av-gallery-album__cover-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--lime); opacity: .55; }
.av-gallery-album__cover-empty i { width: 42px; height: 42px; }
.av-gallery-album__overlay { position: absolute; inset: 0; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,.9) 100%); }
.av-gallery-album__overlay h3 { font-family: 'Inter', sans-serif; font-weight: 700; margin: 0 0 .2rem; font-size: 1.05rem; }
.av-gallery-album__overlay span { color: var(--text-3); font-size: .7rem; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.av-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.96); backdrop-filter: blur(20px); display: none; align-items: center; justify-content: center; padding: 2rem; }
.av-lightbox.is-open { display: flex; }
.av-lightbox__stage { margin: 0; max-width: 95vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.av-lightbox__stage img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.av-lightbox__stage figcaption { color: var(--text-2); font-size: .9rem; text-align: center; }
.av-lightbox__close, .av-lightbox__prev, .av-lightbox__next { position: absolute; background: var(--bg-card); border: 1px solid var(--rule); color: var(--text-1); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.av-lightbox__close:hover, .av-lightbox__prev:hover, .av-lightbox__next:hover { background: var(--lime); color: #000; border-color: var(--lime); }
.av-lightbox__close { top: 1.5rem; right: 1.5rem; }
.av-lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.av-lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.av-speaking { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1280px; margin: 0 auto; }
@media (max-width: 1000px) { .av-speaking { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .av-speaking { grid-template-columns: 1fr; } }
.av-talk { display: block; text-decoration: none; color: inherit; padding: 0; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; cursor: pointer; }
.av-talk:hover { border-color: var(--lime); transform: translateY(-4px); background: #1A1A1A; }
.av-talk__photo { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--lime-dim); }
.av-talk__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.av-talk:hover .av-talk__photo img { transform: scale(1.04); }
.av-talk__body { padding: 1.3rem 1.4rem 1.5rem; }
.av-talk__cta-row { display: flex; margin-top: 1rem; }
.av-talk__cta-text { display: inline-flex; align-items: center; gap: .35rem; color: var(--lime); font-family: 'JetBrains Mono', monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.av-talk__cta-text i { width: 14px; height: 14px; }
.av-talk__meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-3); font-size: .7rem; margin-bottom: .55rem; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.av-talk__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.av-talk__meta i { width: 13px; height: 13px; color: var(--lime); }
.av-talk__institution { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 .3rem; }
.av-talk__topic { color: var(--lime); font-family: 'Playfair Display', serif; font-style: italic; font-size: .92rem; margin-bottom: .55rem; }
.av-talk__desc { color: var(--text-2); font-size: .85rem; line-height: 1.65; margin: 0 0 .8rem; }
.av-talk__cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--lime); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.av-talk__cta i { width: 16px; height: 16px; }
.av-beyond { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; max-width: 1180px; margin: 0 auto; }
.av-beyond__card { position: relative; padding: 2rem 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.av-beyond__card:hover { border-color: var(--lime); transform: translateY(-4px); background: #1A1A1A; }
.av-beyond__card::before { content: ''; position: absolute; top: 0; right: 0; width: 180px; height: 180px; background: radial-gradient(circle, var(--lime-dim) 0%, transparent 70%); pointer-events: none; }
.av-beyond__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--lime-dim); color: var(--lime); margin-bottom: 1.2rem; border: 1px solid rgba(215,255,58,.3); }
.av-beyond__icon i { width: 26px; height: 26px; }
.av-beyond__dim { font-family: 'JetBrains Mono', monospace; font-size: .66rem; color: var(--lime); text-transform: uppercase; letter-spacing: .15em; margin-bottom: .5rem; font-weight: 600; }
.av-beyond__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.2rem; margin: 0 0 .8rem; line-height: 1.3; }
.av-beyond__content { color: var(--text-2); font-size: .92rem; line-height: 1.75; margin: 0; }
.av-impact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .av-impact { grid-template-columns: 1fr; } }
.av-impact__card { padding: 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.av-impact__card:hover { border-color: var(--lime); transform: translateY(-3px); background: #1A1A1A; }
.av-impact__card--hero { background: linear-gradient(135deg, var(--lime-dim), rgba(255,255,255,.02)); border-color: rgba(215,255,58,.35); }
.av-impact__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--lime-dim); color: var(--lime); margin-bottom: 1rem; }
.av-impact__icon i { width: 24px; height: 24px; }
.av-impact__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0 0 .4rem; line-height: 1.3; }
.av-impact__date { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--text-3); margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.av-impact__desc { color: var(--text-2); font-size: .9rem; line-height: 1.7; margin: 0 0 1rem; }
.av-impact__highlight { display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem; background: rgba(215,255,58,.07); border-radius: 12px; border: 1px solid rgba(215,255,58,.3); }
.av-impact__big { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: clamp(3rem, 8vw, 5rem); color: var(--lime); line-height: 1; }
.av-impact__big-label { color: var(--text-2); font-size: .8rem; margin-top: .3rem; }
.av-impact__images { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .55rem; margin-top: 1rem; }
.av-impact__images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); }
.av-testimonials { max-width: 1080px; margin: 0 auto; padding-bottom: 4rem; position: relative; }
.av-testi { position: relative; padding: 2.5rem 2.5rem 2rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.av-testi__quote-mark { position: absolute; top: 1.4rem; right: 1.6rem; width: 50px; height: 50px; color: var(--lime); opacity: .18; }
.av-testi__quote { margin: 0 0 1.5rem; padding: 0; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; color: var(--text-1); }
.av-testi__author { display: flex; align-items: center; gap: .9rem; }
.av-testi__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--rule); }
.av-testi__avatar--initials { display: grid; place-items: center; background: var(--lime); color: #000; font-weight: 800; font-family: 'Inter', sans-serif; }
.av-testi__name { color: var(--text-1); font-weight: 700; font-size: .95rem; }
.av-testi__role { color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.av-testi__source { margin-left: auto; color: var(--text-3); }
.av-testi__source:hover { color: var(--lime); }
.av-testi__source i { width: 18px; height: 18px; }
.av-testi__pagination { bottom: 0 !important; }
.av-testi__pagination .swiper-pagination-bullet { background: var(--text-3); opacity: .5; }
.av-testi__pagination .swiper-pagination-bullet-active { background: var(--lime); opacity: 1; width: 22px; border-radius: 4px; }
.swiper-button-prev.av-testi__nav, .swiper-button-next.av-testi__nav { color: var(--lime); }
.swiper-button-prev.av-testi__nav::after, .swiper-button-next.av-testi__nav::after { font-size: 22px; font-weight: 700; }

/* Flash + Contact */
.av-flash { max-width: 920px; margin: 0 auto 1.5rem; padding: 1rem 1.2rem; border-radius: 8px; display: flex; align-items: center; gap: .7rem; font-size: .92rem; border: 1px solid var(--rule); }
.av-flash--success { background: rgba(0,255,163,.08); border-color: rgba(0,255,163,.35); color: #B6FFEC; }
.av-flash--error { background: rgba(255,71,87,.08); border-color: rgba(255,71,87,.35); color: #FFC1C7; }
.av-flash i { width: 20px; height: 20px; flex-shrink: 0; }
.av-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .av-contact { grid-template-columns: 1fr; } }
.av-contact__side { padding: 2rem 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; align-self: start; }
.av-contact__side-title { font-family: 'Inter', sans-serif; font-weight: 700; margin: 0 0 .6rem; font-size: 1.4rem; }
.av-contact__side-sub { color: var(--text-2); margin: 0 0 1.6rem; font-size: .9rem; line-height: 1.65; }
/* PRIVACY-FIRST icon strip — no email/phone text shown anywhere */
.av-contact__icons { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.av-contact__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--rule); border-radius: 12px; color: var(--text-1); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.av-contact__icon:hover { background: var(--lime); color: #000; border-color: var(--lime); transform: translateY(-2px); }
.av-contact__icon i, .av-contact__icon svg { width: 22px; height: 22px; }
.av-contact__icon--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.av-contact__icon--mail:hover { background: var(--lime); border-color: var(--lime); color: #000; }
.av-contact__icon--cal:hover { background: var(--lime); border-color: var(--lime); color: #000; }
/* Hide legacy contact tiles entirely */
.av-contact__tiles, .av-contact__details { display: none !important; }
.av-contact__locale { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 1.4rem; }
.av-contact__locale i { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.av-contact__locale span { display: block; color: var(--text-3); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.av-contact__locale strong { color: var(--text-1); font-weight: 600; font-size: .9rem; }
.av-contact__socials { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.av-contact__socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--rule); color: var(--text-2); transition: color .2s, border-color .2s, transform .2s, background .2s; }
.av-contact__socials a:hover { color: #000; background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.av-contact__socials i, .av-contact__socials svg { width: 18px; height: 18px; }
.av-contact__form { padding: 2rem 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 14px; display: flex; flex-direction: column; gap: 1rem; }
.av-contact__form label { display: flex; flex-direction: column; gap: .35rem; font-size: .7rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-family: 'JetBrains Mono', monospace; }
.av-contact__form input, .av-contact__form textarea { width: 100%; padding: .85rem 1rem; border-radius: 8px; font-family: inherit; font-size: .95rem; background: var(--bg-base); border: 1px solid var(--rule); color: var(--text-1); transition: border-color .2s, background .2s; }
.av-contact__form input:focus, .av-contact__form textarea:focus { outline: none; border-color: var(--lime); background: rgba(215,255,58,.04); }
.av-contact__form textarea { resize: vertical; min-height: 140px; }
.av-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .av-form-row { grid-template-columns: 1fr; } }
.av-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.av-contact__form-note { color: var(--text-3); font-size: .72rem; margin: 0; }
.av-contact__form button { align-self: flex-start; }
.av-contact__thanks { padding: 3rem 2.4rem; background: var(--bg-card); border: 1px solid var(--lime); border-radius: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.av-contact__thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--lime-dim); color: var(--lime); display: grid; place-items: center; border: 1px solid rgba(215,255,58,.35); margin-bottom: .4rem; animation: thanksPulse 2s ease-in-out infinite; }
.av-contact__thanks-icon i { width: 36px; height: 36px; }
@keyframes thanksPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(215,255,58,.25); } 50% { box-shadow: 0 0 0 12px rgba(215,255,58,0); } }
.av-contact__thanks h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0; color: var(--text-1); }
.av-contact__thanks p { color: var(--text-1); font-size: clamp(.95rem, 1.5vw, 1.1rem); margin: 0; line-height: 1.6; max-width: 50ch; }
.av-contact__thanks-sub { color: var(--text-2) !important; font-size: .9rem !important; }
.av-contact__thanks-meta { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem; background: rgba(255,255,255,.04); border: 1px solid var(--rule); border-radius: 8px; color: var(--text-2); font-size: .85rem; margin-top: 1rem; }
.av-contact__thanks-meta i { width: 16px; height: 16px; color: var(--lime); flex-shrink: 0; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.av-footer { margin-top: 4rem; padding: 4rem clamp(1rem, 5vw, 3.5rem) 2rem; border-top: 1px solid var(--rule); background: var(--bg-base); }
.av-footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .av-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .av-footer__grid { grid-template-columns: 1fr; } }
.av-footer__brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--lime); border-radius: 10px; margin-bottom: .8rem; }
.av-footer__brand-mark svg { width: 100%; height: 100%; fill: currentColor; }
.av-footer__name { margin: 0 0 .4rem; font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.av-footer__tagline { color: var(--text-2); font-size: .88rem; line-height: 1.65; max-width: 28ch; }
.av-footer__col h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: .78rem; margin: 0 0 1rem; color: var(--text-1); text-transform: uppercase; letter-spacing: .1em; }
.av-footer__col a { display: block; padding: .25rem 0; color: var(--text-2); font-size: .88rem; transition: color .2s; }
.av-footer__col a:hover { color: var(--lime); }
.av-footer__socials { display: flex; gap: .55rem; flex-wrap: wrap; }
.av-footer__socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--rule); color: var(--text-2); transition: color .2s, border-color .2s, transform .2s, background .2s; }
.av-footer__socials a:hover { color: #000; background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.av-footer__socials i, .av-footer__socials svg { width: 18px; height: 18px; }
.av-footer__bottom { max-width: 1280px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--text-3); font-size: .82rem; text-align: center; }
.av-footer__bottom a { color: var(--text-3); }
.av-footer__bottom a:hover { color: var(--text-2); }

/* 404 */
.av-404 { min-height: 80vh; display: grid; place-items: center; padding: 6rem 2rem; text-align: center; }
.av-404__inner { max-width: 580px; }
.av-404__code { font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--lime); text-shadow: 0 0 60px rgba(215,255,58,.3); }
.av-404 h1 { font-family: 'Inter', sans-serif; font-weight: 800; text-transform: uppercase; margin: 1rem 0 .5rem; }
.av-404 p { color: var(--text-2); margin: 0 0 2rem; }

/* ============================================================================
   DETAIL PAGES + STANDALONE PAGE HERO
   ========================================================================== */
.av-detail { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(6rem, 11vw, 9rem) clamp(1rem, 5vw, 3rem) 4rem; }
.av-detail__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.av-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .74rem; color: var(--text-3); margin-bottom: 2rem; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.av-breadcrumb a { color: var(--text-2); display: inline-flex; align-items: center; gap: .35rem; transition: color .2s; }
.av-breadcrumb a:hover { color: var(--lime); }
.av-breadcrumb i { width: 14px; height: 14px; }
.av-breadcrumb span { color: var(--text-1); }
.av-detail__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', monospace; color: var(--lime); text-transform: uppercase; font-size: .76rem; letter-spacing: .25em; margin-bottom: 1rem; font-weight: 600; }
.av-detail__eyebrow::before { content: '✱'; color: var(--lime); }
.av-detail__title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 3.4rem); margin: 0 0 1rem; line-height: 1.08; letter-spacing: -.025em; text-transform: uppercase; color: var(--text-1); }
.av-detail__title em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--lime); }
.av-detail__subtitle { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 0 0 2rem; line-height: 1.55; font-family: 'Playfair Display', serif; font-style: italic; }
.av-detail__sub { color: var(--text-3); font-size: .92rem; margin: -.5rem 0 1.4rem; }
.av-detail__h2 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: -.01em; }
.av-detail__block { margin-top: 3rem; }
.av-detail__article p { color: var(--text-1); font-size: 1rem; line-height: 1.85; margin: 0 0 1.2rem; }
.av-detail__article--rich h2, .av-detail__article--rich h3 { color: var(--text-1); font-family: 'Inter', sans-serif; font-weight: 700; margin: 1.6rem 0 .8rem; }
.av-detail__article--rich ul, .av-detail__article--rich ol { color: var(--text-2); padding-left: 1.4rem; line-height: 1.75; }
.av-detail__article--rich a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(215,255,58,.4); }
.av-detail__article--rich a:hover { text-decoration-color: var(--lime); }
.av-detail__back { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.av-detail__notice { display: flex; align-items: center; gap: .8rem; padding: 1.2rem 1.4rem; border-radius: 10px; background: var(--lime-dim); border: 1px solid rgba(215,255,58,.35); color: var(--text-1); }
.av-detail__notice i { width: 22px; height: 22px; color: var(--lime); }
.av-detail__notice p { margin: 0; }
.av-book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; max-width: 1180px; margin: 0 auto; }
@media (max-width: 800px) { .av-book-detail { grid-template-columns: 1fr; } }

/* Full-width book description + buy buttons span (sit OUTSIDE the side-by-side grid) */
.av-book-detail__desc { max-width: 1180px; margin: 3rem auto 1rem; }
.av-book-detail__desc p { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); margin: 0 0 1.2rem; }
.av-book-stores--wide { max-width: 1180px; margin: 2rem auto 1rem; }
.av-book-stores--wide .av-book-stores__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.av-book-detail__cover { position: sticky; top: 100px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, rgba(215,255,58,.22), rgba(255,255,255,.04), rgba(10,10,10,.6)); border: 1px solid var(--rule); position: relative; }
.av-book-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.av-book-detail__cover-empty { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.av-book-detail__cover-empty i { width: 60px; height: 60px; color: var(--lime); }
.av-book-detail__cover-empty div { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.3rem; font-weight: 400; color: var(--text-1); line-height: 1.25; }
.av-book-detail__cover-empty em { color: var(--text-2); font-size: .85rem; font-family: 'Inter', sans-serif; font-style: normal; }
.av-book-detail__meta { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.av-book-detail__meta li { display: flex; align-items: flex-start; gap: .8rem; }
.av-book-detail__meta i { width: 20px; height: 20px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.av-book-detail__meta div { display: contents; }
.av-book-detail__meta span { color: var(--text-3); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; min-width: 110px; padding-top: 2px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.av-book-detail__meta strong { color: var(--text-1); font-size: .92rem; font-weight: 500; }
.av-book-stores { margin-top: 3rem; }
.av-book-stores__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.av-store { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 10px; transition: border-color .25s, transform .25s, background .25s; }
.av-store:hover { border-color: var(--lime); background: #1A1A1A; transform: translateY(-3px); }
.av-store__logo { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: var(--lime-dim); border: 1px solid rgba(215,255,58,.25); display: grid; place-items: center; color: var(--lime); }
.av-store__logo img { max-width: 26px; max-height: 26px; object-fit: contain; }
.av-store__logo i { width: 18px; height: 18px; }
.av-store__body { flex: 1; min-width: 0; }
.av-store__name { color: var(--text-1); font-weight: 600; font-size: .92rem; }
.av-store__host { color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.av-store__ext { width: 16px; height: 16px; color: var(--text-3); }
.av-store:hover .av-store__ext { color: var(--lime); }
.av-project-detail__head { margin-bottom: 2rem; }
.av-project-detail__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.av-project-detail__meta li { display: flex; align-items: center; gap: .55rem; }
.av-project-detail__meta i { width: 16px; height: 16px; color: var(--lime); }
.av-project-detail__meta span { color: var(--text-3); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-family: 'JetBrains Mono', monospace; }
.av-project-detail__meta strong { color: var(--text-1); font-size: .9rem; font-weight: 500; }
.av-project-detail__meta a { color: var(--lime); font-weight: 500; }
.av-project-detail__hero { margin: 1rem 0 3rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: linear-gradient(135deg, rgba(215,255,58,.08), rgba(255,255,255,.02)); aspect-ratio: 21/9; }
.av-project-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.av-project-detail__tech { display: flex; flex-wrap: wrap; gap: .5rem; }
.av-project-detail__tech span { font-family: 'JetBrains Mono', monospace; font-size: .82rem; padding: .45rem .9rem; background: var(--lime-dim); color: var(--lime); border-radius: 4px; border: 1px solid rgba(215,255,58,.25); }
.av-project-detail__quote { margin: 0; padding: 2rem 2.2rem 2rem 3rem; position: relative; background: rgba(215,255,58,.04); border-left: 3px solid var(--lime); border-radius: 0 14px 14px 0; }
.av-project-detail__quote i { position: absolute; top: 1.4rem; left: 1rem; width: 28px; height: 28px; color: var(--lime); opacity: .55; }
.av-project-detail__quote p { color: var(--text-1); font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 1.2rem; line-height: 1.55; margin: 0 0 .8rem; }
.av-project-detail__quote cite { color: var(--text-3); font-size: .9rem; font-style: normal; }
.av-project-detail__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.av-project-detail__gallery-item { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); transition: transform .25s, border-color .25s; }
.av-project-detail__gallery-item:hover { transform: scale(1.02); border-color: var(--lime); }
.av-project-detail__gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.av-research-detail__head { margin-bottom: 2rem; }
.av-research-detail__journal { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--text-2); font-size: 1.05rem; padding: .65rem 1rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; }
.av-research-detail__journal i { width: 18px; height: 18px; color: var(--lime); }
.av-research-detail__journal em { color: var(--text-1); font-weight: 500; font-family: 'Playfair Display', serif; font-style: italic; }
.av-research-detail__badges { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.av-research-detail__authors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.av-research-detail__author { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 10px; }
.av-research-detail__author.is-self { border-color: var(--lime); background: var(--lime-dim); }
.av-research-detail__author-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; background: var(--lime-dim); color: var(--lime); }
.av-research-detail__author.is-self .av-research-detail__author-avatar { background: var(--lime); color: #000; }
.av-research-detail__author-name { color: var(--text-1); font-weight: 600; font-size: .9rem; }
.av-research-detail__author-tag { color: var(--lime); font-family: 'JetBrains Mono', monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.av-research-detail__insts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.av-research-detail__inst { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 8px; }
.av-research-detail__inst i { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.av-research-detail__inst span { color: var(--text-1); font-size: .9rem; }
.av-research-detail__cite { display: flex; align-items: stretch; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 10px; }
.av-research-detail__cite code { flex: 1; color: var(--text-2); font-family: 'JetBrains Mono', monospace; font-size: .85rem; line-height: 1.7; white-space: pre-wrap; }
.av-research-detail__copy { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; height: fit-content; align-self: center; border-radius: 6px; background: var(--lime); color: #000; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; border: 0; transition: opacity .2s; }
.av-research-detail__copy:hover { opacity: .85; }
.av-research-detail__copy i { width: 14px; height: 14px; }
.av-news-detail__hero { margin: 0 0 2rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 16/9; }
.av-news-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.av-page__head { margin-bottom: 2rem; }
.av-pagehero { position: relative; padding: clamp(7rem, 14vw, 10rem) clamp(1rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; min-height: 50vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-color: var(--bg-elevated); }
.av-pagehero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.5) 60%, rgba(10,10,10,1) 100%); z-index: 1; }
.av-pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.av-pagehero__wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%; }
.av-pagehero__title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 1rem; color: var(--text-1); text-transform: uppercase; }
.av-pagehero__title em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; text-transform: none; color: var(--lime); }
.av-pagehero__sub { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 68ch; margin: 0 0 1.2rem; }
.av-pagehero__stats { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--rule); color: var(--text-2); font-size: .82rem; font-family: 'JetBrains Mono', monospace; }
.av-pagehero__stats strong { color: var(--lime); }
html[data-theme="light"] { color-scheme: dark; }

/* ============================================================================
   POST-LAUNCH OVERRIDES (Sift refinements)
   ========================================================================== */

/* Nav: PC = menu only · Mobile/Tablet = hamburger only */
.av-nav { justify-content: center; }
.av-nav__links { justify-content: center; flex-wrap: wrap; gap: 2rem; }
.av-nav__burger { display: none; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) {
  .av-nav { justify-content: space-between; padding: 0 1.2rem; }
  .av-nav__links { display: none !important; }
  .av-nav__burger { display: inline-grid !important; position: static; transform: none; }
}

/* Active page = boxed border (Sift-style breadcrumb) */
.av-nav__links a.is-active {
  border: 1px solid var(--lime);
  padding: .35rem .9rem;
  border-radius: 4px;
  color: var(--lime);
  background: rgba(215,255,58,.05);
}
.av-nav__links a.is-active::after { display: none; }

/* Hamburger overlay close button (X in top-right) */
.av-mobile-nav__close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--rule); color: var(--text-1);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.av-mobile-nav__close:hover { background: var(--lime); color: #000; border-color: var(--lime); }
.av-mobile-nav__close i { width: 22px; height: 22px; }

/* Hero photo badges — bring fully in front of circle */
.av-hero__portrait { overflow: visible; }
.av-hero__portrait img,
.av-hero__portrait .av-hero__portrait-placeholder { border-radius: 50%; }
.av-hero__portrait::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  pointer-events: none; z-index: 1;
}
.av-hero__portrait-badge {
  z-index: 10 !important;
  white-space: nowrap;
  padding: .6rem 1.1rem !important;
  background: rgba(10,10,10,.95) !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
}
.av-hero__portrait-badge--alt { right: -8% !important; }
.av-hero__portrait-badge:not(.av-hero__portrait-badge--alt) { left: -8% !important; }

/* Section CTAs centred */
.av-section__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.4rem; }
.av-section__cta--top { margin: 0 auto 2.4rem; }

/* Ventures top-of-card image (Aviral asked for image-on-top cards) */
.av-venture__cover {
  display: block; aspect-ratio: 16/9; border-radius: 12px 12px 0 0; overflow: hidden;
  margin: -1.6rem -1.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(215,255,58,.1), rgba(255,255,255,.02));
}
.av-venture__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.av-venture:hover .av-venture__cover img { transform: scale(1.04); }

/* Card placeholder image (Unsplash background) */
.av-card-img {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 8px 8px 0 0; margin-bottom: 1rem;
}

/* Projects asymmetric layout — 70/30 with 50%-height secondary cards */
.av-projects--asymmetric {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  max-width: 1280px; margin: 0 auto;
}
.av-projects--asymmetric .av-project:nth-child(1) {
  grid-row: 1 / span 2;
  grid-column: 1;
}
.av-projects--asymmetric .av-project:nth-child(2) { grid-column: 2; grid-row: 1; }
.av-projects--asymmetric .av-project:nth-child(3) { grid-column: 2; grid-row: 2; }
@media (max-width: 800px) {
  .av-projects--asymmetric { grid-template-columns: 1fr; grid-template-rows: auto; }
  .av-projects--asymmetric .av-project { grid-column: 1 !important; grid-row: auto !important; }
}

/* All buttons: lime border + lime text by default, filled lime on hover (reverse of current) */
.av-btn--neon {
  background: transparent;
  color: var(--lime);
  border: 1px solid var(--lime);
  box-shadow: 0 0 0 0 rgba(215,255,58,0);
}
.av-btn--neon:hover {
  background: var(--lime);
  color: #000;
  box-shadow: 0 12px 26px rgba(215,255,58,.28);
}

/* Theme toggle button (footer widget 4) */
.av-theme-toggle {
  margin-top: 1.4rem; padding: .65rem 1.1rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--rule); color: var(--text-1);
  font-family: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: .08em;
  transition: border-color .2s, color .2s, background .2s;
}
.av-theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
.av-theme-toggle i { width: 14px; height: 14px; }

/* Icon contrast — when background is lime, icon must be black/dark */
.av-footer__socials a:hover svg,
.av-contact__icon:hover svg,
.av-contact__socials a:hover svg,
.av-rail__socials a:hover svg,
.av-card-arrow:hover svg { color: #000 !important; stroke: #000 !important; }

/* Award ribbon icon — already lime bg with black icon (good) — explicit */
.av-award__ribbon i,
.av-award__ribbon svg { color: #000 !important; stroke: #000 !important; fill: none !important; }
.av-award__ribbon svg * { stroke: #000 !important; }

/* Gallery / Speaking / Beyond / Impact card image headers (top placeholder) */
.av-cardimg {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 0; margin: -1.6rem -1.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(215,255,58,.1), rgba(255,255,255,.02));
}
.av-cardimg-thumb { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Footer brand name — stylish */
.av-footer__brand-mark { display: none; }
.av-footer__name { font-family: 'Playfair Display', serif !important; font-style: italic !important; font-weight: 500 !important; font-size: 2rem !important; letter-spacing: -.01em !important; text-transform: none !important; margin: 0 0 .6rem !important; }
.av-footer__name span { color: var(--lime); font-style: normal; }

/* ============================================================================
   LIGHT THEME — Sift palette inverted
   ========================================================================== */
html[data-theme="light"] {
  --bg-base:        #FAFAF7;
  --bg-elevated:    #FFFFFF;
  --bg-3:           #F0EFEA;
  --bg-card:        #FFFFFF;
  --surface-glass:  rgba(0,0,0,.025);
  --border-glass:   rgba(0,0,0,.08);
  --rule:           rgba(0,0,0,.08);
  --text-1:         #0A0A0A;
  --text-2:         #4A4A4A;
  --text-3:         #7A7A7A;
  --lime-dim:       rgba(115,140,32,.12);
  --lime:           #6FA300;
  --accent-1:       #6FA300;
  color-scheme: light;
}
html[data-theme="light"] body { background: var(--bg-base); color: var(--text-1); }
html[data-theme="light"] .av-noise { opacity: .15; mix-blend-mode: multiply; }
html[data-theme="light"] .av-rail { background: var(--bg-elevated); border-right-color: rgba(0,0,0,.08); }
html[data-theme="light"] .av-rail__socials a { background: #F0EFEA; color: #4A4A4A; }
html[data-theme="light"] .av-rail__socials a:hover { background: var(--lime); color: #fff; }
html[data-theme="light"] .av-nav { background: rgba(250,250,247,.75); border-bottom-color: rgba(0,0,0,.08); }
html[data-theme="light"] .av-nav.is-shrunk { background: rgba(250,250,247,.95); }
html[data-theme="light"] .av-mobile-nav { background: rgba(250,250,247,.97); }
html[data-theme="light"] .av-mobile-nav__close { background: #fff; color: #0A0A0A; }
html[data-theme="light"] .av-skill__bar { background: rgba(0,0,0,.08); }
html[data-theme="light"] .av-noise { opacity: .15; }
html[data-theme="light"] body.av-body { cursor: auto; }
html[data-theme="light"] .av-hero__portrait-badge { background: rgba(255,255,255,.92) !important; color: #0A0A0A; }

/* 5-in-a-row facts grid (About) */
.av-facts--row5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .av-facts--row5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .av-facts--row5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .av-facts--row5 { grid-template-columns: 1fr; } }

/* Metrics — 5 in a row */
.av-metrics--row5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .av-metrics--row5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .av-metrics--row5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .av-metrics--row5 { grid-template-columns: 1fr; } }

/* ============================================================================
   FEEDBACK PASS — extra polish
   ========================================================================== */

/* Footer Playfair name + credit link */
.av-footer__name--script { font-family: 'Playfair Display', serif !important; font-style: italic !important; font-weight: 500 !important; font-size: 2.2rem !important; letter-spacing: -.01em !important; line-height: 1.05; }
.av-footer__name-dot { color: var(--lime); font-style: normal; }
.av-footer__credit { color: inherit; border-bottom: 1px dotted currentColor; padding-bottom: 1px; }
.av-footer__credit:hover { color: var(--lime); border-bottom-color: var(--lime); }
.av-footer__legal { margin-top: 1rem; display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--text-3); }
.av-footer__legal a { color: var(--text-3); }
.av-footer__legal a:hover { color: var(--lime); }

/* Certifications — 4 in a row with cover */
.av-certs { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .av-certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .av-certs { grid-template-columns: 1fr; } }
.av-cert { position: relative; overflow: hidden; padding-top: 0 !important; }
.av-cert__cover { display: block; width: 100%; margin: 0 0 1.1rem; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.av-cert__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-cert__cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.75) 100%); }

/* Beyond Code — link card with CTA */
.av-beyond__card { text-decoration: none; cursor: pointer; transition: transform .2s, border-color .2s; }
.av-beyond__card:hover { transform: translateY(-4px); border-color: var(--lime); }
.av-beyond__cta { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--lime); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.av-beyond__cta i { width: 14px; height: 14px; }

/* Social Impact — link card */
.av-impact__card { display: block; text-decoration: none; cursor: pointer; transition: transform .2s, border-color .2s; }
.av-impact__card:hover { transform: translateY(-4px); border-color: var(--lime); }

/* Gallery — 5 in a row */
.av-gallery-albums--row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 1280px; margin: 0 auto; }
@media (max-width: 1100px) { .av-gallery-albums--row4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .av-gallery-albums--row4 { grid-template-columns: 1fr; } }
.av-gallery-albums--row4 .av-gallery-album { display: block; text-decoration: none; color: inherit; }
.av-gallery-albums--row4 .av-gallery-album__cover { aspect-ratio: 1/1; width: 100%; }

/* Testimonials — 2 in a row static (replaces swiper) */
.av-testimonials--row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 800px) { .av-testimonials--row2 { grid-template-columns: 1fr; } }
.av-testimonials--row2 .av-testi { position: relative; padding: 1.8rem; background: var(--bg-card); border: 1px solid var(--rule); border-radius: 18px; }

/* Speaking — link cover */

/* Section CTA wrapper */
.av-section__cta { display: flex; justify-content: center; margin-top: 2.4rem; }

/* Contact form — submit spinner + inline status */
.av-contact__submit-label { display: inline-flex; align-items: center; gap: .5rem; }
#avContactSubmit.is-loading { opacity: .9; cursor: progress; }
#avContactSubmit.is-loading .av-contact__submit-label { color: #000; }
.av-spinner {
  width: 16px; height: 16px; display: inline-block;
  border: 2px solid rgba(0,0,0,.25); border-top-color: #000;
  border-radius: 50%; animation: av-spin .8s linear infinite;
}
@keyframes av-spin { to { transform: rotate(360deg); } }
.av-contact__form-status {
  margin: .8rem 0 0; padding: .8rem 1rem; border-radius: 10px;
  font-size: .9rem; border: 1px solid var(--rule);
}
.av-contact__form-status.is-error {
  background: rgba(255, 71, 87, .08); border-color: rgba(255, 71, 87, .35);
  color: #ff8a96;
}

/* ============================================================================
   PAGE HERO — universal banner for listing & detail pages
   ========================================================================== */
.av-page-hero { position: relative; min-height: 56vh; padding: 9rem 6vw 5rem; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.av-page-hero__bg { position: absolute; inset: 0; background-image: var(--page-hero-img); background-size: cover; background-position: center; z-index: -2; transform: scale(1.04); transition: transform .6s ease; }
.av-page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 60%, rgba(10,10,10,.95) 100%); z-index: -1; }
.av-page-hero__wrap { width: 100%; max-width: 1100px; margin: 0 auto; }
.av-page-hero__eyebrow { color: var(--lime); font-family: 'JetBrains Mono', monospace; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.av-page-hero__title { font-family: 'Inter', sans-serif; font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; margin: 0 0 1.1rem; }
.av-page-hero__title em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; color: var(--lime); }
.av-page-hero__sub { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 720px; line-height: 1.6; }
@media (max-width: 700px) { .av-page-hero { padding: 7rem 5vw 3rem; min-height: 44vh; } }

/* Detail page body — prose + meta sidebar */
.av-detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .av-detail-body { grid-template-columns: 1fr; gap: 2rem; } }
.av-detail-body__prose p { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); margin: 0 0 1.2rem; }
.av-detail-body__meta { background: var(--bg-card); border: 1px solid var(--rule); border-radius: 18px; padding: 1.6rem; align-self: start; position: sticky; top: 110px; }
.av-detail-body__meta h3 { margin: 0 0 1rem; font-family: 'Inter', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--lime); }
.av-detail-body__meta dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: .7rem; }
.av-detail-body__meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0; }
.av-detail-body__meta dd { margin: 0 0 .4rem; font-weight: 600; color: var(--text-1); }
.av-detail-body__cta { margin-top: 1rem; }

/* 3D buy buttons — book detail page */
.av-book-stores__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.av-buy-3d {
  position: relative;
  display: block;
  text-decoration: none;
  perspective: 800px;
  transform-style: preserve-3d;
}
.av-buy-3d__inner {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: linear-gradient(140deg, #1a1a1a 0%, #0d0d0d 50%, #050505 100%);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 -2px 0 rgba(0,0,0,.6) inset,
    0 10px 22px rgba(0,0,0,.55),
    0 2px 0 rgba(215,255,58,.06);
  transform: translateZ(0) translateY(0) rotateX(0deg);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.av-buy-3d:hover .av-buy-3d__inner {
  transform: translateY(-3px) rotateX(2deg);
  border-color: var(--lime);
  box-shadow:
    0 1px 0 rgba(215,255,58,.18) inset,
    0 -2px 0 rgba(0,0,0,.6) inset,
    0 18px 36px rgba(0,0,0,.7),
    0 6px 0 rgba(215,255,58,.18);
}
.av-buy-3d:active .av-buy-3d__inner {
  transform: translateY(0) rotateX(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 8px 14px rgba(0,0,0,.55),
    0 2px 0 rgba(215,255,58,.18);
}
.av-buy-3d__logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.06), rgba(0,0,0,.4));
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.av-buy-3d__logo img { width: 80%; height: 80%; object-fit: contain; }
.av-buy-3d__logo i { width: 22px; height: 22px; color: var(--lime); }
.av-buy-3d__body { display: flex; flex-direction: column; min-width: 0; }
.av-buy-3d__label { font-family: 'JetBrains Mono', monospace; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.av-buy-3d__name { font-family: 'Inter', sans-serif; font-weight: 800; color: #fff; font-size: 1rem; line-height: 1.2; margin-top: .15rem; }
.av-buy-3d__host { font-size: .72rem; color: var(--text-3); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-buy-3d__arrow { width: 18px; height: 18px; color: var(--lime); transition: transform .25s ease; }
.av-buy-3d:hover .av-buy-3d__arrow { transform: translate(2px, -2px); }

/* Detail gallery (used by gallery-album + social-impact images) */
.av-detail-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.av-detail-gallery-grid__item { aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; border: 1px solid var(--rule); display: block; }
.av-detail-gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.av-detail-gallery-grid__item:hover img { transform: scale(1.05); }

/* Full-width beautiful gallery used on entity detail pages (ventures etc.) */
.av-detail-gallery { padding: 4rem 4vw 2rem; width: 100%; }
.av-detail-gallery__head { max-width: 1180px; margin: 0 auto 2rem; text-align: center; }
.av-detail-gallery__mosaic {
  width: 100%; display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.av-detail-gallery__cell {
  display: block; position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--rule);
  background: var(--bg-card); cursor: zoom-in;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.av-detail-gallery__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.av-detail-gallery__cell:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: 0 18px 38px rgba(215,255,58,.12); }
.av-detail-gallery__cell:hover img { transform: scale(1.06); }
.av-detail-gallery__cell--xl { grid-column: span 2; grid-row: span 2; }
.av-detail-gallery__cell--lg { grid-column: span 2; }
@media (max-width: 1000px) {
  .av-detail-gallery__mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .av-detail-gallery__cell--xl { grid-column: span 2; grid-row: span 2; }
  .av-detail-gallery__cell--lg { grid-column: span 2; }
}
@media (max-width: 600px) {
  .av-detail-gallery__mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .av-detail-gallery__cell--xl,
  .av-detail-gallery__cell--lg { grid-column: span 1; grid-row: span 1; }
}

/* Admin-only "Maintenance mode is ON" banner (top of every public page) */
.av-admin-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: .8rem;
  background: #D7FF3A; color: #000;
  padding: .75rem 1.2rem; font: 600 .88rem/1.4 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.av-admin-banner i { width: 18px; height: 18px; flex-shrink: 0; }
.av-admin-banner a { color: #000; text-decoration: underline; font-weight: 800; }
.av-admin-banner + .av-rail,
.av-admin-banner ~ .av-nav { margin-top: 42px; }

/* ============================================================================
   SECURITY LAYER — copy/drag/save protection + DevTools blur
   Honest scope: deterrent, not a hard guarantee. JS partner is security.js.
   ========================================================================== */

/* Disable text selection + image drag site-wide. Form inputs + opt-in nodes
   still allow selection so the contact form and reachable details still work. */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable], .av-allow-copy,
.av-contact__form, .av-contact__form *, .av-contact__icon, .av-contact__icon * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

/* Block image drag-and-drop save + native long-press save sheet. */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* Print = bad. Hide everything when printing. */
@media print {
  body * { visibility: hidden !important; }
  body::after {
    content: 'Printing of this site is disabled.';
    position: fixed; inset: 0; display: grid; place-items: center;
    visibility: visible !important;
    font: 600 1.4rem 'Inter', sans-serif; color: #000;
  }
}

/* DevTools-open overlay — soft blur + warning watermark.
   Honest: heuristic; users with docked DevTools on tall monitors may not trigger it. */
html.av-dev-open body { filter: blur(8px) saturate(.5); pointer-events: none; }
html.av-dev-open::after {
  content: 'Developer tools detected — close them to continue browsing.';
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: rgba(10,10,10,.85);
  color: var(--lime); font: 700 1.4rem 'Inter', sans-serif;
  letter-spacing: .04em; text-align: center; padding: 2rem;
  text-transform: uppercase;
}

/* Tab-out dim — soft signal when user is about to take a screenshot from another app. */
html.av-blurred body { filter: blur(6px) saturate(.6); transition: filter .15s; }

/* Diagonal watermark overlay shown on hover/long-press of large images,
   making any cropped screenshot carry the visitor IP + timestamp. */
.av-protected-img { position: relative; display: inline-block; }
.av-protected-img::after {
  content: attr(data-wm);
  position: absolute; inset: 0; pointer-events: none;
  display: grid; place-items: center;
  font: 600 .8rem 'JetBrains Mono', monospace;
  color: rgba(255,255,255,.18);
  background: repeating-linear-gradient(
    -28deg,
    transparent 0, transparent 80px,
    rgba(255,255,255,.04) 80px, rgba(255,255,255,.04) 81px
  );
  opacity: 0; transition: opacity .25s;
}
.av-protected-img:hover::after { opacity: 1; }
