/* ==========================================================================
   MITA CHAKRABORTY — DESIGN SYSTEM & EDITORIAL STYLES
   High-Fidelity Contemporary Gallery Experience (Inspired by Jeff Koons)
   ========================================================================== */

/* --- Reset & Variables --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --color-bg: #ffffff;
  --color-fg: #000000;
  --color-heading: var(--color-fg);
  --color-muted: #707070;
  --color-light-muted: #999999;
  --color-border: #e8e8e8;
  --color-subtle-bg: #f9f9f9;

  --header-height: 72px;
  --header-height-mobile: 60px;
  --site-padding: clamp(20px, 3.8vw, 60px);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-bg);
  color: var(--color-fg);
  overflow-x: visible;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-fg);
  overflow-x: visible;
  width: 100%;
  min-height: 100vh;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--site-padding);
}

/* Logo */
.brand-logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.75vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #444444;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.7;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
  margin-left: auto;
  margin-right: clamp(24px, 3.5vw, 50px);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-fg);
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  opacity: 0.55;
}

.nav-link.active {
  font-weight: 600;
  opacity: 1;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-fg);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: opacity 0.2s ease;
}

.header-search-btn:hover {
  opacity: 0.6;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.action-item:hover {
  opacity: 0.6;
}

.icon-bag {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  display: inline-block;
  flex-shrink: 0;
}

.bag-count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.toggle-icon-bar {
  position: absolute;
  background-color: var(--color-fg);
  transition: transform 0.3s var(--ease-editorial), opacity 0.3s ease;
}

.toggle-h {
  width: 18px;
  height: 1.5px;
}

.toggle-v {
  width: 1.5px;
  height: 18px;
}

.mobile-menu-toggle[aria-expanded="true"] .toggle-h {
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .toggle-v {
  transform: rotate(45deg);
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-editorial), visibility 0.35s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-mobile);
  padding: 0 var(--site-padding);
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drawer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.drawer-content {
  flex: 1;
  padding: 30px var(--site-padding) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  line-height: 1.2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.drawer-link.active {
  font-weight: 800;
}

.drawer-link:hover {
  opacity: 0.5;
  transform: translateX(6px);
}

.drawer-footer {
  margin-top: auto;
  padding-bottom: 20px;
}

.drawer-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 8px;
}

.drawer-search input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  background: transparent;
}

/* ==========================================================================
   APP CONTAINER & ROUTE VIEWS
   ========================================================================== */
.page-main {
  width: 100%;
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.view-transition-wrap {
  opacity: 1;
}

.view-transition-wrap.view-visible {
  opacity: 1;
}

/* ==========================================================================
   HOMEPAGE STREAM & FLOATING GALLERY (PRESERVED)
   ========================================================================== */
.stream-section {
  position: relative;
  width: 100%;
  min-height: 760vh;
  background-color: var(--color-bg);
}

.hero-stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--header-height) + clamp(10px, 1.8vh, 22px));
  padding-bottom: 0;
  position: relative;
  box-sizing: border-box;
  z-index: 20;
}

.hero-artwork-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(480px, 46vw, 760px);
  max-width: 90vw;
  height: auto;
  will-change: opacity, transform;
  pointer-events: auto;
}

.hero-artwork-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-height) - clamp(20px, 3.5vh, 44px));
  max-height: calc(100dvh - var(--header-height) - clamp(20px, 3.5vh, 44px));
  object-fit: contain;
  aspect-ratio: 1 / 1;
  box-shadow: none;
  transition: transform 0.8s var(--ease-editorial);
  cursor: pointer;
}

/* Pinned Identity Stage (Desktop Persistent Wordmark) */
.wordmark-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin-bottom: -100vh;
  margin-bottom: -100dvh;
  pointer-events: none;
  z-index: 25;
}

.sticky-display-anchor {
  position: absolute;
  bottom: clamp(12px, 2.0vh, 24px);
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 25;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 clamp(12px, 2.5vw, 40px);
  margin-top: 0;
}

.sticky-display-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  text-align: center;
}

.giant-display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9.5vw, 16.5rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 0.82;
  text-transform: uppercase;
  color: #444444;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  display: inline-block;
  user-select: none;
  max-width: 100%;
}

.floating-gallery-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  pointer-events: none;
}

/* Curated Desktop Moments: Side-by-Side Artwork and Editorial Side Caption */
.stream-item {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  will-change: transform;
  opacity: 1;
}

.desktop-stream-only {
  display: flex;
}

.stream-artwork-box {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  display: block;
  flex-shrink: 0;
  min-height: 200px;
}

.stream-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease-editorial);
  cursor: pointer;
}

.stream-item:hover .stream-img {
  transform: scale(1.02);
}

/* Minimal Editorial Side Caption directly attached to artwork */
.artwork-side-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 240px;
  flex-shrink: 0;
  user-select: text;
  cursor: pointer;
}

.artwork-side-meta.side-left {
  text-align: right;
  align-items: flex-end;
}

.artwork-side-meta.side-right {
  text-align: left;
  align-items: flex-start;
}

.meta-title {
  font-family: var(--font-display);
  font-size: clamp(0.96rem, 1.15vw, 1.20rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--color-fg);
  line-height: 1.15;
  transition: opacity 0.2s ease;
}

.stream-item:hover .meta-title {
  opacity: 0.7;
}

.meta-sub {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 0.82vw, 0.84rem);
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.35;
}

.meta-dim {
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.76vw, 0.78rem);
  font-weight: 500;
  color: var(--color-light-muted);
  letter-spacing: 0.02em;
}

/* Formations: Left, Right, Inset & Center */
.moment-desk-left {
  left: 7vw;
  right: auto;
}

.moment-desk-right {
  left: auto;
  right: 7vw;
}

.moment-desk-inset-left {
  left: 16vw;
  right: auto;
}

.moment-desk-center {
  left: 0;
  right: 0;
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

/* Authored Spatial Coordinates & Scales for 12 Gallery Moments (Continuous Asymmetric Gallery) */
.moment-desk-1  { top: 115vh; left: 7vw; right: auto; }
.moment-desk-1 .stream-artwork-box { width: clamp(300px, 28vw, 440px); }

.moment-desk-2  { top: 140vh; left: auto; right: 8vw; }
.moment-desk-2 .stream-artwork-box { width: clamp(260px, 24vw, 380px); }

.moment-desk-3  { top: 195vh; left: auto; right: 10vw; }
.moment-desk-3 .stream-artwork-box { width: clamp(280px, 25vw, 400px); }

.moment-desk-4  { top: 215vh; left: 9vw; right: auto; }
.moment-desk-4 .stream-artwork-box { width: clamp(270px, 24vw, 380px); }

.moment-desk-5  { top: 275vh; left: 6vw; right: auto; }
.moment-desk-5 .stream-artwork-box { width: clamp(330px, 29vw, 460px); }

.moment-desk-6  { top: 295vh; left: auto; right: 9vw; }
.moment-desk-6 .stream-artwork-box { width: clamp(260px, 23vw, 360px); }

.moment-desk-7  { top: 355vh; left: 7vw; right: auto; }
.moment-desk-7 .stream-artwork-box { width: clamp(380px, 35vw, 550px); }

.moment-desk-8  { top: 380vh; left: auto; right: 8vw; }
.moment-desk-8 .stream-artwork-box { width: clamp(280px, 24vw, 390px); }

.moment-desk-9  { top: 440vh; left: 10vw; right: auto; }
.moment-desk-9 .stream-artwork-box { width: clamp(260px, 22vw, 360px); }

.moment-desk-10 { top: 465vh; left: auto; right: 8vw; }
.moment-desk-10 .stream-artwork-box { width: clamp(280px, 25vw, 400px); }

.moment-desk-11 { top: 530vh; left: 7vw; right: auto; }
.moment-desk-11 .stream-artwork-box { width: clamp(300px, 26vw, 420px); }

.moment-desk-12 {
  top: 610vh;
  left: calc(50% - clamp(380px, 34vw, 540px) / 2);
  right: auto;
  width: clamp(380px, 34vw, 540px);
  margin: 0;
  display: flex;
  justify-content: center;
}
.moment-desk-12 .stream-artwork-box { width: 100%; }

/* Monograph section on Home */
.monograph-section {
  position: relative;
  width: 100%;
  max-width: 100vw;
  background-color: var(--color-bg);
  padding: clamp(140px, 18vh, 240px) var(--site-padding) clamp(100px, 14vh, 200px);
  z-index: 30;
}

.monograph-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.monograph-media {
  width: 100%;
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.monograph-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-subtle-bg);
}

.monograph-portrait {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: opacity;
  transition: opacity 0.15s ease-out;
}

.monograph-portrait-1 { opacity: 1; z-index: 1; }
.monograph-portrait-2 { opacity: 0; z-index: 2; }

.monograph-content {
  padding-top: 10px;
}

.monograph-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.monograph-text p {
  font-family: var(--font-body);
  font-size: clamp(1.0rem, 1.25vw, 1.22rem);
  line-height: 1.72;
  font-weight: 400;
  color: #7e7e7e;
  letter-spacing: -0.01em;
}

/* Reveal State */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease-editorial), transform 0.35s var(--ease-editorial);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   COMMON ARCHIVE & INTERNAL PAGE LAYOUTS
   ========================================================================== */
.archive-page-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 48px) var(--site-padding) clamp(80px, 12vh, 140px);
}

.archive-back-nav {
  margin-bottom: 32px;
}

.archive-back-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.archive-back-link:hover {
  color: var(--color-fg);
  transform: translateX(-4px);
}

/* --- Primary Heading Colour Consistency (Aligned to .brand-logo) --- */
.page-title-hero,
.series-title-text,
.featured-artwork-title,
.record-title-block h2,
.bio-section-title,
.collection-subgroup h3,
.bibliography-cat-title,
.exhibitions-section-heading,
.exhibitions-group-title,
.period-title,
.exhibition-title-text,
.exhibition-title-cell h3,
.shop-item-title,
.shop-card-title,
.shop-card-title a,
.shop-detail-title,
.inquiry-heading {
  color: var(--color-heading);
}

.shop-card-title a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.shop-card-title a:hover {
  opacity: 0.7;
}

.page-title-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: clamp(36px, 5vh, 64px);
}

.archive-separator {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin: clamp(40px, 6vh, 70px) 0;
}

.archive-separator-subtle {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin: 32px 0;
}

/* ==========================================================================
   PAGE 01: ARTWORK INDEX & CATEGORY PRESENTATIONS
   ========================================================================== */
.artwork-featured-stage {
  margin-bottom: clamp(80px, 12vh, 140px);
}

.featured-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.featured-artwork-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.featured-artwork-image-box {
  width: 100%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-subtle-bg);
  overflow: hidden;
  cursor: pointer;
}

.featured-artwork-image-box img {
  max-height: 76vh;
  width: auto;
  object-fit: contain;
  transition: transform 0.7s var(--ease-editorial);
}

.featured-artwork-image-box:hover img {
  transform: scale(1.015);
}

.featured-artwork-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.featured-artwork-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.0rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.featured-artwork-sub {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Series Section */
.artwork-series-section {
  margin-bottom: clamp(90px, 14vh, 160px);
}

.series-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 16px;
  margin-bottom: 40px;
}

.series-title-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.0vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.series-view-all {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.series-view-all:hover {
  opacity: 0.55;
  transform: translateX(4px);
}

.series-curated-flow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* Editorial Artwork Items in Series */
.curated-work-col-8 {
  grid-column: span 8;
}

.curated-work-col-4 {
  grid-column: span 4;
}

.curated-work-col-6 {
  grid-column: span 6;
}

.curated-work-col-12 {
  grid-column: span 12;
}

.editorial-artwork-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editorial-art-img-wrap {
  width: 100%;
  background-color: var(--color-subtle-bg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-art-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  transition: transform 0.6s var(--ease-editorial);
}

.editorial-art-img-wrap:hover img {
  transform: scale(1.02);
}

.editorial-art-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.editorial-art-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.editorial-art-details {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-muted);
}

.editorial-art-action {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.editorial-art-action:hover {
  color: var(--color-fg);
}

/* ==========================================================================
   PAGE 01b: ARTWORK SERIES DETAIL VIEW
   ========================================================================== */
.series-detail-lead {
  max-width: 860px;
  margin-bottom: clamp(48px, 8vh, 80px);
}

.series-detail-statement {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.65;
  color: #555;
  font-weight: 400;
  margin-top: 16px;
}

.series-artwork-record {
  margin-bottom: clamp(80px, 12vh, 140px);
}

.series-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(36px, 5.5vw, 84px);
  align-items: start;
}

.series-record-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.series-primary-img-wrap {
  width: 100%;
  background-color: var(--color-subtle-bg);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.series-primary-img-wrap img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.6s var(--ease-editorial);
}

.series-primary-img-wrap:hover img {
  transform: scale(1.015);
}

.series-thumb-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.series-thumb-item {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  background-color: var(--color-subtle-bg);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  overflow: hidden;
}

.series-thumb-item.active {
  border-color: var(--color-fg);
}

.series-thumb-item:hover {
  opacity: 0.7;
}

.series-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-record-info {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.record-title-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.0rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.15;
}

.record-year-tag {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--color-muted);
  margin-top: 6px;
}

.record-meta-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.record-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.meta-value {
  font-family: var(--font-body);
  font-size: 0.90rem;
  color: var(--color-fg);
  line-height: 1.45;
}

.record-description-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: #666;
}

.record-inquire-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  background-color: var(--color-fg);
  color: #ffffff;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.record-inquire-btn:hover {
  opacity: 0.85;
}

/* ==========================================================================
   PAGE 02: BIOGRAPHY ARCHIVE
   ========================================================================== */
.bio-grid-stage {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  margin-bottom: clamp(80px, 12vh, 120px);
}

.bio-portrait-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-subtle-bg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.bio-portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-prose-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-prose-stream p {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.25vw, 1.20rem);
  line-height: 1.72;
  color: #555555;
}

.bio-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 14px;
  margin-bottom: 36px;
}

.bio-archive-group {
  margin-bottom: clamp(60px, 8vh, 90px);
}

.bio-chronology-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio-year-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
}

.bio-year-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

.bio-entries-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-entry-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444444;
}

.bio-entry-item strong {
  font-weight: 600;
  color: var(--color-fg);
}

.bio-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.collection-subgroup h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-list li {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555555;
}

/* ==========================================================================
   PAGE 03: BIBLIOGRAPHY ARCHIVE
   ========================================================================== */
.bibliography-category-block {
  margin-bottom: clamp(60px, 9vh, 100px);
}

.bibliography-cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.0rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.bibliography-year-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 28px;
}

.bibliography-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-fg);
}

.bibliography-entries {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
}

.bibliography-item {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444444;
}

.bibliography-item em {
  font-style: italic;
}

/* ==========================================================================
   PAGE 04: EXHIBITIONS INDEX & PERIOD VIEWS
   ========================================================================== */
.exhibitions-group-block {
  margin-bottom: clamp(70px, 10vh, 110px);
}

.exhibitions-section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 14px;
  margin-bottom: 32px;
}

.exhibitions-period-list {
  display: flex;
  flex-direction: column;
}

.period-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.period-link-row:hover {
  opacity: 0.6;
  padding-left: 8px;
}

.period-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.period-count-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Exhibition Period View */
.period-exhibition-record {
  margin-bottom: clamp(60px, 9vh, 90px);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 40px;
}

.period-exhibition-record:last-child {
  border-bottom: none;
}

.exhibition-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.exhibition-year-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-muted);
}

.exhibition-title-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.0rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 6px 0;
}

.exhibition-location-text {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: #555555;
}

.exhibition-artwork-feature {
  margin-top: 24px;
  width: 100%;
  max-width: 880px;
  background-color: var(--color-subtle-bg);
  cursor: pointer;
  overflow: hidden;
}

.exhibition-artwork-feature img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  transition: transform 0.6s var(--ease-editorial);
}

.exhibition-artwork-feature:hover img {
  transform: scale(1.015);
}

/* ==========================================================================
   PAGE 05: SHOP & EDITIONS (EDITORIAL COMMERCE)
   ========================================================================== */
.shop-intro-statement {
  max-width: 820px;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: #666;
  margin-bottom: clamp(60px, 9vh, 100px);
}

.shop-products-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vh, 140px);
}

.shop-item-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.shop-item-card.reverse-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
}

.shop-item-card.reverse-layout .shop-item-media {
  order: 2;
}

.shop-item-card.reverse-layout .shop-item-info {
  order: 1;
}

.shop-item-media {
  width: 100%;
  background-color: var(--color-subtle-bg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  transition: transform 0.6s var(--ease-editorial);
}

.shop-item-media:hover img {
  transform: scale(1.02);
}

.shop-item-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-item-category {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.shop-item-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.15;
}

.shop-item-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #555555;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

.shop-item-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: #666666;
}

.shop-actions-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-inquire-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  background-color: var(--color-fg);
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.shop-inquire-btn:hover {
  opacity: 0.85;
}

.shop-detail-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  padding: 14px 0;
  transition: opacity 0.2s ease;
}

.shop-detail-link:hover {
  opacity: 0.55;
}

/* ==========================================================================
   MODALS: LIGHTBOX, SEARCH & INQUIRY
   ========================================================================== */
/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--site-padding);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-editorial), visibility 0.3s ease;
}

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

.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.lightbox-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lightbox-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lightbox-close-btn:hover {
  opacity: 0.5;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-nav-prev {
  left: 10px;
}

.lightbox-nav-next {
  right: 10px;
}

.lightbox-nav-btn:hover {
  opacity: 0.5;
}

.lightbox-footer {
  text-align: center;
  padding-top: 12px;
}

.lightbox-caption-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lightbox-caption-sub {
  font-family: var(--font-body);
  font-size: 0.80rem;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding: 32px var(--site-padding);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-editorial), visibility 0.3s ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.search-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--color-fg);
  padding-bottom: 12px;
  margin-bottom: 40px;
}

.search-input-box input {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--color-fg);
}

.search-results-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.search-result-item:hover {
  opacity: 0.6;
  padding-left: 8px;
}

.search-item-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-item-cat {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.search-empty-note {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-muted);
  padding: 20px 0;
}

/* Inquiry Modal */
.inquiry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inquiry-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inquiry-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 580px;
  padding: clamp(32px, 5vw, 48px);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.inquiry-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
}

.inquiry-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.inquiry-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-input, .form-textarea {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--color-fg);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit-btn {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px;
  background-color: var(--color-fg);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 8px;
}

.form-submit-btn:hover {
  opacity: 0.85;
}

/* ==========================================================================
   EDITORIAL FOOTER (CONSISTENT ACROSS ALL VIEWS)
   ========================================================================== */
.site-footer {
  width: 100%;
  max-width: 100vw;
  background-color: var(--color-bg);
  padding: clamp(60px, 8vh, 100px) var(--site-padding) clamp(60px, 8vh, 100px);
  position: relative;
  z-index: 30;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 30px;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  align-items: flex-start;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-fg);
}

.copy-symbol {
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu li a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-fg);
  transition: opacity 0.2s ease;
}

.footer-menu li a:hover {
  opacity: 0.5;
}

.footer-search-col {
  display: flex;
  justify-content: flex-end;
}

.footer-search-form {
  width: 100%;
  max-width: 280px;
}

.footer-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 8px;
}

.footer-search-icon {
  color: var(--color-fg);
  flex-shrink: 0;
}

.footer-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--color-fg);
  width: 100%;
}

.footer-search-input::placeholder {
  color: #777;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Matching Jeff Koons Mobile Reference)
   ========================================================================== */
@media (min-width: 1600px) {
  .hero-artwork-wrap {
    width: min(960px, 56vw);
  }
}

/* Tablet / Medium Screens (768px - 1024px) */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-artwork-wrap {
    width: clamp(340px, 48vw, 520px);
  }

  .wordmark-sticky-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin-bottom: 0;
  }

  .sticky-display-anchor {
    top: calc(100vh - clamp(2.4rem, 8.4vw, 5.2rem) * 0.90 - 20px);
    top: calc(100dvh - clamp(2.4rem, 8.4vw, 5.2rem) * 0.90 - 20px);
    padding: 0 4vw;
    margin-top: calc(-1 * (clamp(2.4rem, 8.4vw, 5.2rem) * 0.50 + 12px));
  }

  .giant-display-title {
    font-size: clamp(2.4rem, 8.4vw, 5.2rem);
    letter-spacing: -0.035em;
    line-height: 0.90;
  }

  .series-curated-flow {
    grid-template-columns: repeat(6, 1fr);
  }

  .curated-work-col-8, .curated-work-col-4, .curated-work-col-6, .curated-work-col-12 {
    grid-column: span 6;
  }

  .series-record-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .series-record-info {
    position: static;
  }

  .bio-grid-stage {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio-portrait-box {
    max-width: 440px;
    position: static;
  }

  .shop-item-card, .shop-item-card.reverse-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .shop-item-card.reverse-layout .shop-item-media { order: 1; }
  .shop-item-card.reverse-layout .shop-item-info { order: 2; }

  .monograph-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .monograph-content {
    order: 1;
    width: 100%;
  }

  .monograph-media {
    order: 2;
    width: 100%;
    max-width: 520px;
    margin-top: 40px;
    position: relative;
    top: 0;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    align-items: start;
  }

  .footer-search-col {
    grid-column: 1 / -1;
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }

  .footer-col-1 {
    order: 2;
    grid-column: 1;
  }

  .footer-col-2 {
    order: 2;
    grid-column: 2;
  }

  .footer-col-3 {
    order: 3;
    grid-column: 1;
    padding-top: 8px;
  }

  .footer-brand-col {
    order: 3;
    grid-column: 2;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 8px;
  }

  .footer-search-form {
    max-width: 100%;
  }

  .stream-section { min-height: 640vh; }
  .moment-desk-left { left: 4vw; right: auto; }
  .moment-desk-right { left: auto; right: 4vw; }
  .moment-desk-left .stream-artwork-box,
  .moment-desk-right .stream-artwork-box {
    width: clamp(230px, 25vw, 320px);
  }
}

/* Mobile & Small Tablet (<= 767px) */
@media (max-width: 767px) {
  /* All 12 curated artworks active on mobile in staggered editorial sequence */
  .desktop-stream-only {
    display: flex !important;
  }

  .stream-item {
    position: absolute;
    z-index: 10;
    pointer-events: auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    will-change: transform;
    opacity: 1 !important;
  }

  .stream-artwork-box {
    width: 100% !important;
    position: relative;
    overflow: hidden;
    min-height: 180px;
  }

  .stream-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: none;
    cursor: pointer;
    border-radius: 0;
  }

  /* Exclude side captions from mobile stream — purely visual imagery matching reference */
  .artwork-side-meta {
    display: none !important;
  }

  :root {
    --header-height: var(--header-height-mobile);
    --site-padding: 16px;
  }

  .site-header {
    height: var(--header-height-mobile);
    padding-top: var(--safe-top);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  }

  /* Compact header matching reference: suppress search icon on mobile header (dedicated to drawer/footer) */
  .header-search-btn {
    display: none;
  }

  .brand-logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .archive-page-wrap {
    padding-top: calc(var(--header-height-mobile) + var(--safe-top) + 24px);
    padding-bottom: max(60px, var(--safe-bottom));
  }

  /* Mobile Hero Stage: Compact, Prominent Ballerina Composition */
  .hero-stage {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--header-height-mobile) + var(--safe-top, 0px) + 12px);
    padding-bottom: 0;
    position: relative;
    z-index: 20;
    pointer-events: auto;
  }

  .hero-artwork-wrap {
    width: min(88vw, 420px);
    max-width: 90vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    will-change: opacity, transform;
  }

  .hero-artwork-img {
    width: 100%;
    height: auto;
    max-height: min(48vh, 390px);
    aspect-ratio: 1600 / 1556;
    object-fit: contain;
    display: block;
    box-shadow: none;
    cursor: pointer;
    border-radius: 0;
  }

  /* Persistent Wordmark Mobile Composition & Positioning */
  .wordmark-sticky-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 35;
  }

  .sticky-display-anchor {
    position: absolute;
    top: calc(var(--header-height-mobile) + min(48vh, 390px) + 24px);
    bottom: auto !important;
    left: 0;
    width: 100%;
    height: auto !important;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center !important;
    padding: 0 16px;
    margin: 0;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 35;
  }

  .sticky-display-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .giant-display-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.032em;
    line-height: 0.90;
    text-transform: uppercase;
    color: #444444;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    text-align: center;
    display: block;
    user-select: none;
  }

  .stream-section {
    position: relative;
    z-index: 25;
    min-height: 590vh;
  }

  .floating-gallery-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
  }

  /* Staggered Spatial Moments (Mita Chakraborty Mobile Editorial Sequence) */
  /* Moment 01: Kathakali (Portrait 1277×1600, ratio 0.80) — Left Anchor */
  .moment-desk-1 { top: 88vh; left: 5vw; right: auto; width: 46vw; }

  /* Moment 02: The King Peacock (Square 647×616, ratio 1.05) — Right Counterbalance */
  .moment-desk-2 { top: 125vh; left: auto; right: 5vw; width: 50vw; }

  /* Moment 03: Face Off (Square 1289×1305, ratio 0.99) — Left Pop Anchor */
  .moment-desk-3 { top: 165vh; left: 6vw; right: auto; width: 48vw; }

  /* Moment 04: Born Free (Square 523×536, ratio 0.98) — Right Figurative */
  .moment-desk-4 { top: 205vh; left: auto; right: 6vw; width: 46vw; }

  /* Moment 05: Waves (Landscape Impasto 1138×901, ratio 1.26) — Left Wide Wave */
  .moment-desk-5 { top: 245vh; left: 4vw; right: auto; width: 56vw; }

  /* Moment 06: Contemporary Study I (Square 1449×1313, ratio 1.10) — Right Flank Study */
  .moment-desk-6 { top: 285vh; left: auto; right: 5vw; width: 48vw; }

  /* Moment 07: The Art of Racing in the Rain (Wide Landscape Wood 1600×1046, ratio 1.53) — Left Wide Masterpiece */
  .moment-desk-7 { top: 325vh; left: 4vw; right: auto; width: 58vw; }

  /* Moment 08: Baseline (Square 1496×1510, ratio 0.99) — Right Flank Structure */
  .moment-desk-8 { top: 360vh; left: auto; right: 5vw; width: 46vw; }

  /* Moment 09: The Rise (Tall 24K Gold Leaf Portrait 1062×1596, ratio 0.67) — Left Luminous Flank */
  .moment-desk-9 { top: 400vh; left: 6vw; right: auto; width: 44vw; }

  /* Moment 10: Walk in the Rain (Square 1221×1200, ratio 1.02) — Right Atmospheric Counterbalance */
  .moment-desk-10 { top: 440vh; left: auto; right: 5vw; width: 50vw; }

  /* Moment 11: Falls (Square Acrylic 907×945, ratio 0.96) — Left Flank Water Descent */
  .moment-desk-11 { top: 480vh; left: 6vw; right: auto; width: 48vw; }

  /* Moment 12: Crown (Grand Centerpiece Finale 1124×1028, ratio 1.09) — Centered Finale */
  .moment-desk-12 {
    top: 525vh;
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    width: min(88vw, 420px) !important;
    align-items: center !important;
  }

  /* Monograph / About Mobile Section (Matching Reference Transition) */
  .monograph-section {
    padding: 32px var(--site-padding) 48px;
    background-color: var(--color-bg);
    position: relative;
    z-index: 20;
  }

  .monograph-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .monograph-content {
    order: 1;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
  }

  .monograph-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .monograph-text p {
    font-family: var(--font-body);
    font-size: clamp(1.02rem, 3.8vw, 1.15rem);
    line-height: 1.72;
    font-weight: 400;
    color: #6e6e6e;
    margin-bottom: 0;
    letter-spacing: -0.005em;
    will-change: opacity, transform;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  }

  .monograph-media {
    order: 2;
    width: 100%;
    margin-top: 48px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    position: relative;
    top: 0;
  }

  .monograph-img-wrap {
    position: relative;
    width: min(88vw, 420px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-subtle-bg);
  }

  .monograph-portrait {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: opacity;
  }

  /* Internal Pages Mobile */
  .series-curated-flow {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .curated-work-col-8, .curated-work-col-4, .curated-work-col-6, .curated-work-col-12 {
    grid-column: span 1;
  }

  .bio-year-row, .bibliography-year-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Footer Mobile (Matching Jeff Koons Mobile Reference) */
  .site-footer {
    padding: 48px var(--site-padding) max(120px, calc(16vh + var(--safe-bottom)));
    background-color: var(--color-bg);
    position: relative;
    z-index: 20;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    align-items: start;
  }

  .footer-search-col {
    grid-column: 1 / -1;
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }

  .footer-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-fg);
  }

  .footer-search-icon {
    width: 16px;
    height: 16px;
    stroke: var(--color-fg);
    flex-shrink: 0;
  }

  .footer-search-input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.0rem;
    color: var(--color-fg);
    outline: none;
    width: 100%;
    padding: 0;
  }

  .footer-search-input::placeholder {
    color: #555555;
    font-family: var(--font-body);
  }

  .footer-col-1 {
    order: 2;
    grid-column: 1;
  }

  .footer-col-2 {
    order: 2;
    grid-column: 2;
  }

  .footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-menu li a {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
    color: var(--color-fg);
    text-decoration: none;
    line-height: 1.35;
  }

  .footer-col-3 {
    order: 3;
    grid-column: 1;
    padding-top: 10px;
  }

  .footer-brand-col {
    order: 3;
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding-top: 10px;
  }

  .footer-copyright {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--color-fg);
    line-height: 1.35;
  }

  /* Mobile Modals */
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
  }

  .lightbox-img-wrap {
    max-width: 94vw;
    max-height: 72vh;
    max-height: 72dvh;
  }

  .lightbox-img {
    max-height: 70vh;
    max-height: 70dvh;
  }
}

/* Small Smartphone Viewports (<= 480px: iPhone SE, Pixel 7, Galaxy S23) */
@media (max-width: 480px) {
  :root {
    --site-padding: 18px;
  }

  .brand-logo {
    font-size: 1.18rem;
    letter-spacing: -0.02em;
  }

  .giant-display-title {
    font-size: clamp(1.68rem, 7.4vw, 2.25rem);
    letter-spacing: -0.035em;
    line-height: 0.90;
  }

  .sticky-display-anchor {
    padding: 0 12px;
  }

  .page-title-hero {
    font-size: clamp(1.8rem, 7.2vw, 2.4rem);
    margin-bottom: 24px;
  }

  .series-title-text {
    font-size: clamp(1.3rem, 5.2vw, 1.7rem);
  }

  .series-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .featured-artwork-title,
  .record-title-block h2,
  .shop-item-title,
  .exhibition-title-text {
    font-size: clamp(1.25rem, 5.4vw, 1.6rem);
  }

  .bio-section-title,
  .exhibitions-section-heading,
  .bibliography-cat-title {
    font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  }

  .bio-year-tag, .bibliography-year {
    font-size: 1.0rem;
  }

  .shop-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .shop-inquire-btn {
    width: 100%;
    text-align: center;
  }

  .shop-detail-link {
    text-align: center;
  }

  .inquiry-card {
    padding: 24px 18px;
  }
}

/* Ultra-Compact Screens (<= 360px: 320px iPhone SE) */
@media (max-width: 360px) {
  :root {
    --site-padding: 14px;
  }

  .brand-logo {
    font-size: 1.1rem;
  }

  .giant-display-title {
    font-size: clamp(1.45rem, 6.8vw, 1.85rem);
    letter-spacing: -0.03em;
  }

  .sticky-display-anchor {
    padding: 0 8px;
  }

  .page-title-hero {
    font-size: 1.65rem;
  }
}

/* Mobile Landscape Handling */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-stage {
    min-height: 90vh;
    padding-top: calc(var(--header-height-mobile) + 10px);
    padding-bottom: 20px;
  }

  .hero-artwork-img {
    max-height: 48vh;
  }

  .sticky-display-anchor {
    top: calc(100vh - 2.2rem * 1.1 - 8px);
    margin-top: -10px;
  }

  .giant-display-title {
    font-size: 2.2rem;
  }

  .lightbox-img-wrap {
    max-height: 60vh;
  }

  .lightbox-img {
    max-height: 58vh;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stream-artwork-box {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   ADMINISTRATION DASHBOARD DESIGN SYSTEM
   High-Fidelity Studio Administration (Restrained, Editorial, Monochromatic)
   ========================================================================== */

body.admin-mode {
  background-color: #ffffff;
  color: #111111;
  overflow-x: hidden;
}

body.admin-mode .site-header,
body.admin-mode .site-footer {
  display: none !important;
}

body.admin-mode .page-main {
  padding-top: 0 !important;
  min-height: 100vh;
  background-color: #ffffff;
}

/* Subtle footer admin entry */
.footer-admin-link {
  display: inline-block;
  margin-left: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888888;
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.footer-admin-link:hover {
  opacity: 1;
  color: #000000;
  text-decoration: underline;
}

/* Admin Top Bar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #000000;
  text-decoration: none;
}

.admin-topbar-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background-color: #f4f4f4;
  color: #444444;
  border-radius: 2px;
}

.admin-topbar-crumb {
  font-size: 0.82rem;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-topbar-crumb span {
  color: #111111;
  font-weight: 500;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-sync-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #555555;
}

.admin-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.admin-user-pill {
  font-size: 0.8rem;
  color: #333333;
  border-left: 1px solid #e8e8e8;
  padding-left: 18px;
  font-weight: 500;
}

.admin-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #000000;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.admin-exit-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.admin-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #000000;
}

/* Shell Layout */
.admin-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-right: 1px solid #e8e8e8;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-nav-group-label {
  padding: 16px 28px 6px 28px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888888;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 28px;
  font-size: 0.86rem;
  font-weight: 400;
  color: #333333;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.admin-nav-link:hover {
  background-color: #f7f7f7;
  color: #000000;
}
.admin-nav-link.active {
  background-color: #f5f5f5;
  color: #000000;
  font-weight: 600;
  border-left-color: #000000;
}

.admin-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.admin-sidebar-footer {
  padding: 18px 28px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.72rem;
  color: #888888;
  line-height: 1.4;
}

/* Main Workspace */
.admin-workspace {
  flex-grow: 1;
  padding: 40px 48px;
  max-width: 1240px;
  background-color: #ffffff;
}

.admin-view-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-view-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #000000;
  margin-bottom: 6px;
}

.admin-view-desc {
  font-size: 0.92rem;
  color: #666666;
  max-width: 720px;
  line-height: 1.5;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}

.admin-btn-primary {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}
.admin-btn-primary:hover {
  background-color: #222222;
  border-color: #222222;
}

.admin-btn-secondary {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #cccccc;
}
.admin-btn-secondary:hover {
  border-color: #000000;
  background-color: #fafafa;
}

.admin-btn-danger {
  background-color: #ffffff;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.admin-btn-danger:hover {
  background-color: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
}

.admin-btn-sm {
  padding: 6px 12px;
  font-size: 0.76rem;
}

/* Metric / Stat Boxes */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.admin-stat-box {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 24px;
}

.admin-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777777;
  margin-bottom: 8px;
}

.admin-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #000000;
  line-height: 1.1;
  margin-bottom: 6px;
}

.admin-stat-sub {
  font-size: 0.8rem;
  color: #666666;
}

/* Panels */
.admin-panel {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 28px;
  margin-bottom: 32px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.admin-panel-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000000;
}

.admin-panel-subtitle {
  font-size: 0.82rem;
  color: #777777;
}

/* Data Tables */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  background-color: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.admin-table th {
  background-color: #fafafa;
  color: #555555;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 18px;
  border-bottom: 1px solid #e8e8e8;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #222222;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: #fcfcfc;
}

.admin-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e8e8e8;
  background-color: #f7f7f7;
  display: block;
}

/* Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-badge-live {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.admin-badge-draft {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Form Layouts */
.admin-form-group {
  margin-bottom: 22px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.admin-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 6px;
}

.admin-hint {
  display: block;
  font-size: 0.74rem;
  color: #777777;
  margin-top: 5px;
  line-height: 1.4;
}

.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #111111;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  border-color: #000000;
}

.admin-textarea {
  min-height: 110px;
  line-height: 1.5;
  resize: vertical;
}

/* Filter & Search Bar */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-search-input-wrap {
  position: relative;
  min-width: 280px;
  flex-grow: 1;
  max-width: 440px;
}

.admin-search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777777;
  pointer-events: none;
}

.admin-search-input-wrap input {
  padding-left: 38px;
}

/* Media Grid */
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.admin-media-card {
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.admin-media-card:hover {
  border-color: #000000;
}

.admin-media-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f7f7f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-info {
  padding: 10px 12px;
}

.admin-media-filename {
  font-size: 0.78rem;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.admin-media-meta {
  font-size: 0.7rem;
  color: #888888;
}

/* Modal Dialog */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.admin-dialog {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.admin-dialog-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000000;
}

.admin-dialog-msg {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 24px;
}

.admin-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Notification */
.admin-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1200;
  background-color: #000000;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 2px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .admin-topbar {
    padding: 0 16px;
  }
  .admin-mobile-toggle {
    display: block;
  }
  .admin-user-pill {
    display: none;
  }
  .admin-topbar-crumb {
    display: none;
  }
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    display: none;
  }
  .admin-sidebar.mobile-open {
    display: flex;
  }
  .admin-workspace {
    padding: 24px 16px;
  }
  .admin-view-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   STAGE 3: PREVIEW MODE & REVISION SAFEGUARDS STYLES
   ========================================================================== */

.preview-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 10000;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  font-family: var(--font-body);
  font-size: 0.82rem;
}

body.in-preview-mode {
  padding-top: 48px !important;
}

body.in-preview-mode .site-header {
  top: 48px !important;
}

.preview-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #d97706;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
}

.preview-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.preview-btn-publish {
  background-color: #10b981;
  color: #ffffff;
  border: 1px solid #10b981;
}
.preview-btn-publish:hover {
  background-color: #059669;
  border-color: #059669;
}

.preview-btn-admin {
  background-color: #262626;
  color: #ffffff;
  border: 1px solid #404040;
}
.preview-btn-admin:hover {
  background-color: #404040;
}

.preview-btn-exit {
  background-color: transparent;
  color: #cccccc;
  border: 1px solid #555555;
}
.preview-btn-exit:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Role Switcher in Admin Topbar */
.admin-role-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #555555;
  border-left: 1px solid #e8e8e8;
  padding-left: 16px;
}

.admin-role-select {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  background-color: #ffffff;
  color: #111111;
  cursor: pointer;
}

/* Publication State Badges */
.admin-badge-draft-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.admin-badge-published-live {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Revisions Timeline List */
.admin-revision-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
  font-size: 0.84rem;
}
.admin-revision-item:last-child {
  border-bottom: none;
}
.admin-revision-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-revision-time {
  font-family: var(--font-display);
  font-weight: 600;
  color: #111111;
}
.admin-revision-summary {
  font-size: 0.8rem;
  color: #666666;
}


/* ==========================================================================
   STAGE 4: AUTHENTICATION, RBAC & USER MANAGEMENT STYLES
   ========================================================================== */

.admin-login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #fafafa;
  font-family: var(--font-body);
}

.admin-login-card {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 44px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.admin-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #737373;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.admin-login-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.admin-login-desc {
  font-size: 0.84rem;
  color: #666666;
  line-height: 1.45;
  margin: 0;
}

.admin-login-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  font-size: 0.82rem;
  border-radius: 2px;
  margin-bottom: 18px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-btn {
  width: 100%;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 6px;
}

.admin-login-helper {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.admin-login-helper-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #737373;
  margin-bottom: 12px;
  text-align: center;
}

.admin-login-demo-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-login-demo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s ease;
  text-align: left;
}

.admin-login-demo-btn:hover {
  background-color: #ffffff;
  border-color: #111111;
}

.admin-login-demo-btn strong {
  font-size: 0.78rem;
  color: #111111;
}

.admin-login-demo-btn span {
  font-size: 0.72rem;
  color: #6b7280;
}

.admin-notice-viewer {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.83rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: space-between;
}