/* ==========================================================================
   MAULIK MEHTA — DIGITAL ILLUSTRATOR & ART GALLERY PORTFOLIO
   Brand Language tuned with Swati's Journal & AuthorKit
   Modern, bloat-free, compact editorial design for Cloudflare Pages
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  /* Color Palette — Light Mode (Clean Editorial Paper & Obsidian) */
  --bg-canvas: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F2EFEB;
  --bg-subtle-hover: #E7E3DD;
  
  --border-subtle: #E8E5DF;
  --border-medium: #D5D0C7;
  --border-strong: #9C9588;

  --text-primary: #121316;
  /* Dividers match swatisjournal: 1px ink, inverts in dark mode */
  --rule: 1px solid var(--text-primary);
  --gutter: 1.25rem;
  --text-secondary: #4A4D57;
  --text-tertiary: #5F6575;
  --text-inverse: #FFFFFF;

  /* Buttons: Bold Obsidian Black (No AI-like gold/brown) */
  --btn-primary-bg: #111215;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #27282D;

  --btn-secondary-bg: #EAE6DF;
  --btn-secondary-text: #121316;
  --btn-secondary-border: #D5D0C7;
  --btn-secondary-hover: #DDD8D0;

  /* Subtle Editorial Accent */
  --accent-ink: #111215;
  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(18, 19, 22, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(18, 19, 22, 0.06), 0 2px 4px -2px rgba(18, 19, 22, 0.03);
  --shadow-hover: 0 12px 28px -6px rgba(18, 19, 22, 0.12), 0 4px 10px -2px rgba(18, 19, 22, 0.05);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 68px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-canvas: #0B0D11;
  --bg-surface: #13161D;
  --bg-surface-elevated: #1A1E28;
  --bg-subtle: #1C202B;
  --bg-subtle-hover: #252B3A;

  --border-subtle: #222735;
  --border-medium: #2F3649;
  --border-strong: #46506B;

  --text-primary: #F4F5F7;
  --text-secondary: #9FA6B7;
  --text-tertiary: #676E80;
  --text-inverse: #0B0D11;

  /* Dark mode buttons: Crisp Pure White with black text */
  --btn-primary-bg: #F4F5F7;
  --btn-primary-text: #0B0D11;
  --btn-primary-hover: #FFFFFF;

  --btn-secondary-bg: #1C202B;
  --btn-secondary-text: #F4F5F7;
  --btn-secondary-border: #2F3649;
  --btn-secondary-hover: #252B3A;

  --accent-ink: #F4F5F7;
  --accent-emerald: #10B981;
  --accent-emerald-light: #064E3B;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 14px 30px -8px rgba(0, 0, 0, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Compact section padding throughout */
.section-padding {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(11, 13, 17, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}


.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle-hover);
  border-color: var(--border-medium);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* --- Buttons: Bold Obsidian Black --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  color: var(--btn-primary-text);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-upwork {
  background-color: #0E7A00;
  color: #FFFFFF !important;
  border: 1px solid #0E7A00;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(14, 122, 0, 0.25);
  text-decoration: none;
}

.btn-upwork:hover {
  background-color: #0B6600;
  border-color: #0B6600;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 122, 0, 0.35);
}

.header-upwork-btn {
  background-color: #0E7A00 !important;
  color: #FFFFFF !important;
  border: 1px solid #0E7A00 !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(14, 122, 0, 0.2);
}

.header-upwork-btn:hover {
  background-color: #0B6600 !important;
  border-color: #0B6600 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(14, 122, 0, 0.3);
}

.mobile-menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-canvas);
  z-index: 99;
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  border-bottom: var(--rule);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-links a,
.mobile-nav-link {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 0.45rem 0;
  border-bottom: var(--rule);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-emerald);
}

.hero-section {
  position: relative;
  width: 100%;
}

/* --- Focused Artist Hero Section (Pure, Compact, Zero SaaS Noise) --- */
.hero-pure {
  padding-top: 3rem;
  padding-bottom: 2.75rem;
  background: var(--bg-canvas);
}

@media (min-width: 768px) {
  .hero-pure {
    padding-top: 4.25rem;
    padding-bottom: 3.5rem;
  }
}

.hero-pure-container {
  max-width: var(--container-max);
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-pure-container {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 2.5rem;
  }
  .hero-avatar {
    grid-row: 1 / span 3;
    width: 128px;
    height: 128px;
    margin-bottom: 0;
  }
  .hero-pure-container > :not(.hero-avatar) { grid-column: 2; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-statement {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-statement p + p {
  margin-top: 0.75rem;
}

.text-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.text-link:hover {
  text-decoration-color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Art Gallery Section --- */
.gallery-section {
  background-color: var(--bg-canvas);
}

.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .gallery-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--bg-subtle-hover);
  color: var(--text-primary);
}

/* Active filter button: Solid Obsidian Black */
.filter-btn.active {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
  box-shadow: var(--shadow-sm);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 580px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Art Card */
.art-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}

.art-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.art-thumb-wrap.panoramic {
  aspect-ratio: 4 / 3;
}

.art-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.art-card:hover .art-thumb {
  transform: scale(1.05);
}

/* Protected Art Anti-scraping */
.protected-art {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.05) 0%, rgba(12, 14, 20, 0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: 1.15rem;
}

.art-card:hover .art-overlay {
  opacity: 1;
}

.art-overlay-content {
  color: #FFFFFF;
  width: 100%;
  transform: translateY(8px);
  transition: transform var(--transition-normal);
}

.art-card:hover .art-overlay-content {
  transform: translateY(0);
}

.art-overlay-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D2D5E0;
  margin-bottom: 0.2rem;
}

.art-overlay-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.art-overlay-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.art-info {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.art-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.art-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.art-excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.check-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-primary);
  flex-shrink: 0;
}

/* --- Commission Inquiry / Contact Section --- */
.contact-section {
  background-color: var(--bg-canvas);
}

/* --- Lightbox Modal (Protected - No High-Res Download) --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(11, 13, 17, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 1.25rem;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

@media (min-width: 900px) {
  .lightbox-container {
    flex-direction: row;
    height: 80vh;
  }
}

.lightbox-image-stage {
  flex: 1;
  background-color: #06080C;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  user-select: none;
  -webkit-user-select: none;
}

/* Watermark overlay to protect against direct right click / drag */
.protected-watermark-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
  background: transparent;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
}

.lightbox-sidebar {
  width: 100%;
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
}

@media (min-width: 900px) {
  .lightbox-sidebar {
    width: 340px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-subtle);
  }
}

.lightbox-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.lightbox-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 1rem 0;
  margin-bottom: 1.25rem;
}

.lightbox-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.lightbox-meta-key {
  color: var(--text-tertiary);
  font-weight: 500;
}

.lightbox-meta-val {
  color: var(--text-primary);
  font-weight: 600;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.lightbox-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.lightbox-action-row {
  margin-top: auto;
  display: flex;
  gap: 0.65rem;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(18, 19, 22, 0.85);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background-color: #000000;
  transform: scale(1.05);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: rgba(18, 19, 22, 0.85);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background-color: #000000;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev-btn { left: 0.85rem; }
.lightbox-next-btn { right: 0.85rem; }

/* --- Footer --- */
.site-footer {
  background-color: #07090D;
  color: #C5C9D6;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid #1A1F2C;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #8E96AA;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: #8E96AA;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: #8E96AA;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #8E96AA;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid #1A1F2C;
  font-size: 0.82rem;
  color: #646A7D;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8E96AA;
  transition: color var(--transition-fast);
}

.back-to-top-btn:hover {
  color: #FFFFFF;
}

/* Cards are links now; filters hide them with [hidden] */
a.art-thumb-wrap { display: block; color: inherit; }
.art-card[hidden] { display: none; }
.lightbox-img { width: auto; height: auto; }

/* Hero H1 wraps greeting + role */
.hero-h1 > span { display: block; }


.contact-actions { display: flex; justify-content: center; }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.partner-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.partner-title { font-family: var(--font-display); font-size: 1.4rem; }
.partner-desc { color: var(--text-secondary); line-height: 1.6; flex: 1; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.contact-actions { flex-wrap: wrap; gap: 0.65rem; }

/* Upwork mark: PNG used as a mask so it takes the button text colour */
.upwork-mark {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url(/assets/images/branding/upwork-mark.png) center / contain no-repeat;
  mask: url(/assets/images/branding/upwork-mark.png) center / contain no-repeat;
}

.art-card-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn[hidden] { display: none; }

/* Section dividers sit inside the content width, as on swatisjournal */
@media (min-width: 768px) { :root { --gutter: 2rem; } }
.contact-section { position: relative; }
.hero-pure::after,
.contact-section::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(100%, var(--container-max)) - 2 * var(--gutter));
  border-top: var(--rule);
}
.hero-pure::after { bottom: 0; }
.contact-section::before { top: 0; }

/* Touch screens have no hover: keep the "View larger" chip visible, skip the overlay */
@media (hover: none) {
  .art-overlay { opacity: 1; background: none; padding: 0.75rem; }
  .art-overlay-content { transform: none; }
  .art-overlay-category,
  .art-overlay-title { display: none; }
  .art-overlay-action { background: rgba(12, 14, 20, 0.72); }
}

/* Phones: brand on one line; Upwork lives in the hero and the menu drawer */
.brand-name, .brand-tagline { white-space: nowrap; }
@media (max-width: 599px) {
  .header-upwork-btn { display: none; }
  .header-inner { gap: 0.75rem; }
}
