/* ==========================================================================
   ARSEN SAVADOV — OFFICIAL ARCHIVE & PORTFOLIO
   Ultra-Minimalist Museum Editorial Stylesheet (Bootstrap 5.3 + Custom CSS)
   [FIXED: Removed transform on body so position:fixed Lightbox anchors to viewport]
   ========================================================================== */

:root {
  --bg-primary: #E4E4E0;
  --bg-elevated: #DCDCD6;
  --bg-glass: rgba(228, 228, 224, 0.92);
  --bg-lightbox: rgba(228, 228, 224, 0.98);
  --text-primary: #0A0A0A;
  --text-secondary: #62625E;
  --text-muted: #85857F;
  --accent-red: #CC0000;
  --border-subtle: #CBCBC4;
  --font-sans: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 0;
  overflow-x: hidden;
  opacity: 0;
  transform: none !important;
  transition: opacity 0.55s var(--ease-editorial);
}

body.page-ready {
  opacity: 1;
  transform: none !important;
}

body.page-leaving {
  opacity: 0;
  transform: none !important;
  transition: opacity 0.28s var(--ease-editorial);
}

body.home-fullscreen {
  padding-bottom: 0;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s var(--ease-editorial), opacity 0.25s var(--ease-editorial);
}

a:hover {
  color: var(--accent-red);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease-editorial), border-color 0.35s var(--ease-editorial), backdrop-filter 0.35s var(--ease-editorial);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.header-over-slider {
  background-color: rgba(10, 10, 10, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header.header-over-slider.scrolled {
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary) !important;
  line-height: 1;
}

.site-header.header-over-slider:not(.scrolled) .brand-logo,
.site-header.header-over-slider:not(.scrolled) .nav-link-editorial,
.site-header.header-over-slider:not(.scrolled) .mobile-menu-trigger {
  color: #FFFFFF !important;
}

.nav-editorial {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-editorial {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
}

.nav-link-editorial::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-editorial);
}

.nav-link-editorial:hover::after,
.nav-link-editorial.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link-editorial.active {
  color: var(--accent-red) !important;
}

.site-header.header-over-slider:not(.scrolled) .nav-link-editorial.active {
  color: #FFFFFF !important;
}

.mobile-menu-trigger {
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Offcanvas */
.offcanvas-editorial {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  width: 100vw !important;
  border: none !important;
}

.offcanvas-nav-link {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-block;
  padding: 0.35rem 0;
}

.offcanvas-nav-link.active,
.offcanvas-nav-link:hover {
  color: var(--accent-red);
}

/* ==========================================================================
   FULL-SCREEN SLIDERS (HOME & PROJECTS HERO)
   ========================================================================== */

.fullscreen-slider {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #111111;
}

body.home-fullscreen .fullscreen-slider {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  z-index: 1;
}

/* Projects page slider: 2/3 of viewport height so content below is immediately visible */
.fullscreen-slider.projects-hero-slider {
  height: 66.67vh;
  height: 66.67dvh;
  min-height: 420px;
  max-height: 68vh;
}

.fullscreen-slider.projects-hero-slider .slider-caption-wrap {
  padding: 1.75rem 0 2.25rem;
}

.slider-track {
  position: absolute;
  inset: 0;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.35s var(--ease-editorial), visibility 1.35s var(--ease-editorial);
  will-change: opacity;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 7s ease-out;
}

.slider-slide.active img {
  transform: scale(1.065);
}

/* 5% overall darkening + strong bottom gradient */
.slider-overlay-tint {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 2;
  pointer-events: none;
}

.slider-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.86) 0%,
    rgba(0, 0, 0, 0.46) 36%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.slider-caption-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 2.5rem 0 4.25rem;
  color: #FFFFFF;
}

.slider-work-title {
  font-size: clamp(1.65rem, 3.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.slider-projects-heading {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.slider-work-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.slider-exhibition-location {
  font-size: 0.96rem;
  font-weight: 600;
  color: #FFFFFF;
}

.slider-exhibition-works {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.15rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slider-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 2px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.slider-btn:hover {
  color: #FFFFFF;
  border-bottom-color: var(--accent-red);
}

.slider-counter {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SINGLE PROJECT DARK HERO (80% VIEWPORT HEIGHT)
   ========================================================================== */

.project-page-main {
  padding-bottom: 96px;
}

.project-hero {
  position: relative;
  width: 100%;
  min-block-size: 80vh;
  min-block-size: 80dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: #111111;
  color: #FFFFFF;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

/* Exact 10% overall darkening tint over hero background */
.project-hero-tint {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.10);
  z-index: 2;
  pointer-events: none;
}

/* Readability gradient scrim guaranteeing >= 4.5:1 reversed white text contrast */
.project-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.90) 0%,
    rgba(10, 10, 10, 0.68) 44%,
    rgba(10, 10, 10, 0.22) 78%,
    rgba(10, 10, 10, 0.36) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.project-hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-top: calc(76px + 2.5rem);
  padding-bottom: clamp(2.5rem, 5dvh, 4.25rem);
  color: #FFFFFF;
}

.project-hero .editorial-link.project-hero-back {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.project-hero .editorial-link.project-hero-back:hover {
  color: #FFFFFF;
  border-bottom-color: var(--accent-red);
}

.project-hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.55rem;
}

.project-hero-title {
  font-size: clamp(2.15rem, 1.15rem + 3.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  text-wrap: balance;
  max-width: 24ch;
}

.project-hero-meta {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 1.35rem;
}

.project-hero-lead {
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 65ch;
  margin-bottom: 0;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.project-page-body {
  padding-top: clamp(2.75rem, 5dvh, 4.25rem);
}

.project-essay-body {
  max-width: 68ch;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
  .project-hero-content {
    padding-top: calc(76px + 1.75rem);
    padding-bottom: 2.25rem;
  }
}

@media (forced-colors: active) {
  .project-hero {
    background-color: Canvas;
    color: CanvasText;
    border-bottom: 1px solid CanvasText;
  }
  .project-hero-bg,
  .project-hero-tint,
  .project-hero-scrim {
    display: none;
  }
  .project-hero-content,
  .project-hero-kicker,
  .project-hero-title,
  .project-hero-meta,
  .project-hero-lead,
  .project-hero-back {
    color: CanvasText;
  }
  .project-hero-back {
    color: LinkText;
    border-bottom-color: LinkText;
  }
}

/* ==========================================================================
   EDITORIAL LAYOUT & TYPOGRAPHY
   ========================================================================== */

.page-main {
  padding-top: 124px;
  padding-bottom: 96px;
  transform: translateY(6px);
  transition: transform 0.55s var(--ease-editorial);
}

body.page-ready .page-main {
  transform: none;
}

.editorial-container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.page-title {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.page-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-primary);
  max-width: 780px;
}

.text-meta {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.divider-line {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 3.5rem 0;
  opacity: 1;
}

/* Editorial Typographic Link (No rectangular buttons) */
.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--text-primary);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: color 0.25s var(--ease-editorial), border-color 0.25s var(--ease-editorial), gap 0.25s var(--ease-editorial);
}

button.editorial-link {
  padding: 0 0 3px;
}

.editorial-link:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  gap: 0.7rem;
}

.editorial-link-muted {
  color: var(--text-secondary);
  border-bottom-color: var(--border-subtle);
}

/* ==========================================================================
   PROJECTS LIST: 2-COLUMN STACKED BLOCKS (UNIFORM LEFT BLOCK, UNCROPPED)
   ========================================================================== */

.project-row-block {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.project-row-block:first-child {
  border-top: 1px solid var(--border-subtle);
}

/* Uniform width container on the left, image never cropped */
.project-cover-frame {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.project-cover-frame img {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: transform 0.65s var(--ease-editorial);
}

.project-row-block:hover .project-cover-frame img {
  transform: scale(1.015);
}

.project-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-block-title {
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.project-block-summary {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 580px;
}

/* ==========================================================================
   HORIZONTAL HEIGHT-ALIGNED GALLERIES (PAINTINGS, PROJECT PLATES, PRESS)
   All artworks share uniform vertical height, natural width, NEVER cropped
   ========================================================================== */

.height-aligned-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3.25rem 2.25rem;
}

.gallery-plate-item {
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: 100%;
}

.gallery-plate-status {
  min-height: 1.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-inquire-trigger {
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-secondary);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0 0 1px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-inquire-trigger:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.gallery-plate-img-wrap {
  height: 315px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: zoom-in;
  position: relative;
}

.gallery-plate-img-wrap img {
  height: 315px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.55s var(--ease-editorial), opacity 0.55s var(--ease-editorial);
}

.gallery-plate-img-wrap:hover img {
  transform: translateY(-2px);
}

.gallery-plate-caption {
  padding-top: 0.7rem;
  max-width: 100%;
}

.gallery-plate-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.gallery-plate-dims {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 991.98px) {
  .gallery-plate-img-wrap,
  .gallery-plate-img-wrap img {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .height-aligned-gallery {
    flex-direction: column;
    gap: 2.75rem;
  }
  .gallery-plate-item {
    width: 100%;
    max-width: 100% !important;
    height: auto;
    max-height: none;
    gap: 0.45rem;
  }
  .gallery-plate-status {
    min-height: 0;
    margin-bottom: 0;
  }
  .gallery-plate-status:empty {
    display: none;
  }
  .gallery-plate-img-wrap {
    width: 100%;
    height: auto;
    max-height: none;
    justify-content: center;
  }
  .gallery-plate-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }
  .gallery-plate-caption {
    padding-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* ==========================================================================
   PROGRESSIVE IMAGE REVEAL & SCROLL REVEAL ANIMATIONS
   ========================================================================== */

img.progressive-img {
  opacity: 0;
  transform: scale(0.992);
  transition: opacity 0.65s var(--ease-editorial), transform 0.65s var(--ease-editorial);
}

img.progressive-img.img-loaded {
  opacity: 1;
  transform: scale(1);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-editorial), transform 0.65s var(--ease-editorial);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FULL-SCREEN LIGHTBOX (98% OPAQUE / 2% TRANSPARENT LIGHT GALLERY OVERLAY)
   With Smooth Prev/Next Work Transition & Macro Zoom
   ========================================================================== */

.savadov-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  background-color: var(--bg-lightbox); /* rgba(228, 228, 224, 0.98) — 98% opaque */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-editorial), visibility 0.38s var(--ease-editorial);
}

/* A closed translated menu must not enlarge the mobile document. */
.offcanvas:not(.show):not(.showing):not(.hiding) {
  display: none;
}

.savadov-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 3.5vw, 3rem);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  z-index: 5;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  touch-action: none;
}

.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s var(--ease-editorial), transform 0.32s var(--ease-editorial);
}

.lightbox-img-wrapper.switching-next {
  opacity: 0;
  transform: translateX(-22px) scale(0.985);
}

.lightbox-img-wrapper.switching-prev {
  opacity: 0;
  transform: translateX(22px) scale(0.985);
}

.lightbox-img {
  max-width: 88vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.35s var(--ease-editorial);
  will-change: transform;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-img.zoomed {
  cursor: grab;
}

.lightbox-img.dragging {
  cursor: grabbing;
  transition: none !important;
}

.lightbox-bottombar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 3.5vw, 3rem) 1.35rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  z-index: 5;
}

.lightbox-bottom-prev {
  justify-self: start;
}

.lightbox-caption-center {
  text-align: center;
  min-width: 0;
}

.lightbox-bottom-next {
  justify-self: end;
}

@media (max-width: 767.98px) {
  .lightbox-bottombar {
    grid-template-columns: 1fr 1fr;
    row-gap: 0.75rem;
  }
  .lightbox-caption-center {
    grid-column: 1 / -1;
    order: 1;
    text-align: center;
  }
  .lightbox-bottom-prev {
    order: 2;
    justify-self: start;
  }
  .lightbox-bottom-next {
    order: 3;
    justify-self: end;
  }
}

/* ==========================================================================
   BIOGRAPHY & ARCHIVE TABLES
   ========================================================================== */

.bio-year-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.bio-year-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.bio-year-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bio-year-items li {
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-size: 0.96rem;
}

.bio-year-items li:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .bio-year-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   COOKIE SETTINGS & FOOTER
   ========================================================================== */

.cookie-settings-link {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 10, 10, 0.25);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cookie-settings-link:hover {
  color: var(--accent-red);
  text-decoration-color: var(--accent-red);
}

.cookie-settings-link[hidden] {
  display: none !important;
}

.home-minimal-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 0.4rem 0;
  background: rgba(10, 10, 10, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.02em;
}

.home-minimal-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-minimal-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.home-minimal-footer .cookie-settings-link {
  font-size: inherit;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.home-minimal-footer .cookie-settings-link:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

body.home-fullscreen .cookie-banner {
  bottom: 38px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0 3.25rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-copyright-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.footer-copyright-disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
}

.footer-meta-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 10, 10, 0.2);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-meta-links a:hover {
  color: var(--accent-red);
  text-decoration-color: var(--accent-red);
}

.footer-studios {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.artist-note-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  margin-top: 2px;
}

/* ==========================================================================
   COOKIE & GOOGLE ANALYTICS CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 18px;
  right: 24px;
  max-width: 440px;
  width: calc(100vw - 32px);
  z-index: 1060;
  background-color: rgba(228, 228, 224, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(10, 10, 10, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-editorial), transform 0.35s var(--ease-editorial);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner.dismissed {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-banner-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
}

.cookie-banner-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cookie-banner-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-policy-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-policy-link:hover {
  color: var(--accent-red);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.cookie-banner-more {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.btn-cookie-accept {
  background-color: var(--text-primary);
  color: #FFFFFF;
  border: 1px solid var(--text-primary);
  padding: 0.38rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 44px;
    padding: 1.1rem;
  }
}

/* ==========================================================================
   HTML SITEMAP DIRECTORY
   ========================================================================== */

.sitemap-section-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  height: 100%;
}

.sitemap-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sitemap-badge-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sitemap-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sitemap-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.sitemap-nav-link:hover {
  color: var(--accent-red);
}

.sitemap-nav-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
  white-space: nowrap;
}

/* ==========================================================================
   LEGAL & PRIVACY DOCUMENT STYLES
   ========================================================================== */

.legal-document {
  max-width: 860px;
}

.legal-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-block:last-child {
  border-bottom: none;
}

.legal-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.legal-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-block p, .legal-block li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-block ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.legal-highlight-box {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-red);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

@media print {
  .site-header,
  .site-footer,
  .home-minimal-footer,
  .cookie-banner,
  .cookie-settings-link,
  .savadov-lightbox,
  .offcanvas,
  .modal,
  .bio-quick-nav,
  [data-print-cv] {
    display: none !important;
  }

  html,
  body {
    background: #FFFFFF !important;
    color: #0A0A0A !important;
  }

  .page-main {
    padding-top: 0 !important;
  }

  .project-hero {
    min-block-size: auto;
    background: #FFFFFF !important;
    color: #0A0A0A !important;
  }

  .project-hero-bg,
  .project-hero-tint,
  .project-hero-scrim {
    display: none !important;
  }

  .project-hero-content,
  .project-hero-kicker,
  .project-hero-title,
  .project-hero-meta,
  .project-hero-lead {
    color: #0A0A0A !important;
    padding-top: 0 !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .bio-year-row {
    break-inside: avoid;
  }
}
